configure 835 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59.
  4. #
  5. # Copyright (C) 2003 Free Software Foundation, Inc.
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. ## --------------------- ##
  9. ## M4sh Initialization. ##
  10. ## --------------------- ##
  11. # Be Bourne compatible
  12. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  13. emulate sh
  14. NULLCMD=:
  15. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  16. # is contrary to our usage. Disable this feature.
  17. alias -g '${1+"$@"}'='"$@"'
  18. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  19. set -o posix
  20. fi
  21. DUALCASE=1; export DUALCASE # for MKS sh
  22. # Support unset when possible.
  23. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  24. as_unset=unset
  25. else
  26. as_unset=false
  27. fi
  28. # Work around bugs in pre-3.0 UWIN ksh.
  29. $as_unset ENV MAIL MAILPATH
  30. PS1='$ '
  31. PS2='> '
  32. PS4='+ '
  33. # NLS nuisances.
  34. for as_var in \
  35. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  36. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  37. LC_TELEPHONE LC_TIME
  38. do
  39. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  40. eval $as_var=C; export $as_var
  41. else
  42. $as_unset $as_var
  43. fi
  44. done
  45. # Required to use basename.
  46. if expr a : '\(a\)' >/dev/null 2>&1; then
  47. as_expr=expr
  48. else
  49. as_expr=false
  50. fi
  51. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  52. as_basename=basename
  53. else
  54. as_basename=false
  55. fi
  56. # Name of the executable.
  57. as_me=`$as_basename "$0" ||
  58. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  59. X"$0" : 'X\(//\)$' \| \
  60. X"$0" : 'X\(/\)$' \| \
  61. . : '\(.\)' 2>/dev/null ||
  62. echo X/"$0" |
  63. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  64. /^X\/\(\/\/\)$/{ s//\1/; q; }
  65. /^X\/\(\/\).*/{ s//\1/; q; }
  66. s/.*/./; q'`
  67. # PATH needs CR, and LINENO needs CR and PATH.
  68. # Avoid depending upon Character Ranges.
  69. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  70. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  71. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  72. as_cr_digits='0123456789'
  73. as_cr_alnum=$as_cr_Letters$as_cr_digits
  74. # The user is always right.
  75. if test "${PATH_SEPARATOR+set}" != set; then
  76. echo "#! /bin/sh" >conf$$.sh
  77. echo "exit 0" >>conf$$.sh
  78. chmod +x conf$$.sh
  79. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  80. PATH_SEPARATOR=';'
  81. else
  82. PATH_SEPARATOR=:
  83. fi
  84. rm -f conf$$.sh
  85. fi
  86. as_lineno_1=$LINENO
  87. as_lineno_2=$LINENO
  88. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  89. test "x$as_lineno_1" != "x$as_lineno_2" &&
  90. test "x$as_lineno_3" = "x$as_lineno_2" || {
  91. # Find who we are. Look in the path if we contain no path at all
  92. # relative or not.
  93. case $0 in
  94. *[\\/]* ) as_myself=$0 ;;
  95. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  96. for as_dir in $PATH
  97. do
  98. IFS=$as_save_IFS
  99. test -z "$as_dir" && as_dir=.
  100. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  101. done
  102. ;;
  103. esac
  104. # We did not find ourselves, most probably we were run as `sh COMMAND'
  105. # in which case we are not to be found in the path.
  106. if test "x$as_myself" = x; then
  107. as_myself=$0
  108. fi
  109. if test ! -f "$as_myself"; then
  110. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  111. { (exit 1); exit 1; }; }
  112. fi
  113. case $CONFIG_SHELL in
  114. '')
  115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  116. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  117. do
  118. IFS=$as_save_IFS
  119. test -z "$as_dir" && as_dir=.
  120. for as_base in sh bash ksh sh5; do
  121. case $as_dir in
  122. /*)
  123. if ("$as_dir/$as_base" -c '
  124. as_lineno_1=$LINENO
  125. as_lineno_2=$LINENO
  126. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  127. test "x$as_lineno_1" != "x$as_lineno_2" &&
  128. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  129. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  130. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  131. CONFIG_SHELL=$as_dir/$as_base
  132. export CONFIG_SHELL
  133. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  134. fi;;
  135. esac
  136. done
  137. done
  138. ;;
  139. esac
  140. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  141. # uniformly replaced by the line number. The first 'sed' inserts a
  142. # line-number line before each line; the second 'sed' does the real
  143. # work. The second script uses 'N' to pair each line-number line
  144. # with the numbered line, and appends trailing '-' during
  145. # substitution so that $LINENO is not a special case at line end.
  146. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  147. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  148. sed '=' <$as_myself |
  149. sed '
  150. N
  151. s,$,-,
  152. : loop
  153. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  154. t loop
  155. s,-$,,
  156. s,^['$as_cr_digits']*\n,,
  157. ' >$as_me.lineno &&
  158. chmod +x $as_me.lineno ||
  159. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  160. { (exit 1); exit 1; }; }
  161. # Don't try to exec as it changes $[0], causing all sort of problems
  162. # (the dirname of $[0] is not the place where we might find the
  163. # original and so on. Autoconf is especially sensible to this).
  164. . ./$as_me.lineno
  165. # Exit status is that of the last command.
  166. exit
  167. }
  168. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  169. *c*,-n*) ECHO_N= ECHO_C='
  170. ' ECHO_T=' ' ;;
  171. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  172. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  173. esac
  174. if expr a : '\(a\)' >/dev/null 2>&1; then
  175. as_expr=expr
  176. else
  177. as_expr=false
  178. fi
  179. rm -f conf$$ conf$$.exe conf$$.file
  180. echo >conf$$.file
  181. if ln -s conf$$.file conf$$ 2>/dev/null; then
  182. # We could just check for DJGPP; but this test a) works b) is more generic
  183. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  184. if test -f conf$$.exe; then
  185. # Don't use ln at all; we don't have any links
  186. as_ln_s='cp -p'
  187. else
  188. as_ln_s='ln -s'
  189. fi
  190. elif ln conf$$.file conf$$ 2>/dev/null; then
  191. as_ln_s=ln
  192. else
  193. as_ln_s='cp -p'
  194. fi
  195. rm -f conf$$ conf$$.exe conf$$.file
  196. if mkdir -p . 2>/dev/null; then
  197. as_mkdir_p=:
  198. else
  199. test -d ./-p && rmdir ./-p
  200. as_mkdir_p=false
  201. fi
  202. as_executable_p="test -f"
  203. # Sed expression to map a string onto a valid CPP name.
  204. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  205. # Sed expression to map a string onto a valid variable name.
  206. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  207. # IFS
  208. # We need space, tab and new line, in precisely that order.
  209. as_nl='
  210. '
  211. IFS=" $as_nl"
  212. # CDPATH.
  213. $as_unset CDPATH
  214. # Check that we are running under the correct shell.
  215. SHELL=${CONFIG_SHELL-/bin/sh}
  216. case X$ECHO in
  217. X*--fallback-echo)
  218. # Remove one level of quotation (which was required for Make).
  219. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  220. ;;
  221. esac
  222. echo=${ECHO-echo}
  223. if test "X$1" = X--no-reexec; then
  224. # Discard the --no-reexec flag, and continue.
  225. shift
  226. elif test "X$1" = X--fallback-echo; then
  227. # Avoid inline document here, it may be left over
  228. :
  229. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  230. # Yippee, $echo works!
  231. :
  232. else
  233. # Restart under the correct shell.
  234. exec $SHELL "$0" --no-reexec ${1+"$@"}
  235. fi
  236. if test "X$1" = X--fallback-echo; then
  237. # used as fallback echo
  238. shift
  239. cat <<EOF
  240. $*
  241. EOF
  242. exit 0
  243. fi
  244. # The HP-UX ksh and POSIX shell print the target directory to stdout
  245. # if CDPATH is set.
  246. if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  247. if test -z "$ECHO"; then
  248. if test "X${echo_test_string+set}" != Xset; then
  249. # find a string as large as possible, as long as the shell can cope with it
  250. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  251. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  252. if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  253. echo_test_string="`eval $cmd`" &&
  254. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  255. then
  256. break
  257. fi
  258. done
  259. fi
  260. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  261. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  262. test "X$echo_testing_string" = "X$echo_test_string"; then
  263. :
  264. else
  265. # The Solaris, AIX, and Digital Unix default echo programs unquote
  266. # backslashes. This makes it impossible to quote backslashes using
  267. # echo "$something" | sed 's/\\/\\\\/g'
  268. #
  269. # So, first we look for a working echo in the user's PATH.
  270. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  271. for dir in $PATH /usr/ucb; do
  272. IFS="$lt_save_ifs"
  273. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  274. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  275. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  276. test "X$echo_testing_string" = "X$echo_test_string"; then
  277. echo="$dir/echo"
  278. break
  279. fi
  280. done
  281. IFS="$lt_save_ifs"
  282. if test "X$echo" = Xecho; then
  283. # We didn't find a better echo, so look for alternatives.
  284. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  285. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  286. test "X$echo_testing_string" = "X$echo_test_string"; then
  287. # This shell has a builtin print -r that does the trick.
  288. echo='print -r'
  289. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  290. test "X$CONFIG_SHELL" != X/bin/ksh; then
  291. # If we have ksh, try running configure again with it.
  292. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  293. export ORIGINAL_CONFIG_SHELL
  294. CONFIG_SHELL=/bin/ksh
  295. export CONFIG_SHELL
  296. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  297. else
  298. # Try using printf.
  299. echo='printf %s\n'
  300. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  301. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  302. test "X$echo_testing_string" = "X$echo_test_string"; then
  303. # Cool, printf works
  304. :
  305. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  306. test "X$echo_testing_string" = 'X\t' &&
  307. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  308. test "X$echo_testing_string" = "X$echo_test_string"; then
  309. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  310. export CONFIG_SHELL
  311. SHELL="$CONFIG_SHELL"
  312. export SHELL
  313. echo="$CONFIG_SHELL $0 --fallback-echo"
  314. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  315. test "X$echo_testing_string" = 'X\t' &&
  316. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  317. test "X$echo_testing_string" = "X$echo_test_string"; then
  318. echo="$CONFIG_SHELL $0 --fallback-echo"
  319. else
  320. # maybe with a smaller string...
  321. prev=:
  322. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  323. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  324. then
  325. break
  326. fi
  327. prev="$cmd"
  328. done
  329. if test "$prev" != 'sed 50q "$0"'; then
  330. echo_test_string=`eval $prev`
  331. export echo_test_string
  332. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  333. else
  334. # Oops. We lost completely, so just stick with echo.
  335. echo=echo
  336. fi
  337. fi
  338. fi
  339. fi
  340. fi
  341. fi
  342. # Copy echo and quote the copy suitably for passing to libtool from
  343. # the Makefile, instead of quoting the original, which is used later.
  344. ECHO=$echo
  345. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  346. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  347. fi
  348. # Name of the host.
  349. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  350. # so uname gets run too.
  351. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  352. exec 6>&1
  353. #
  354. # Initializations.
  355. #
  356. ac_default_prefix=/usr/local
  357. ac_config_libobj_dir=.
  358. cross_compiling=no
  359. subdirs=
  360. MFLAGS=
  361. MAKEFLAGS=
  362. SHELL=${CONFIG_SHELL-/bin/sh}
  363. # Maximum number of lines to put in a shell here document.
  364. # This variable seems obsolete. It should probably be removed, and
  365. # only ac_max_sed_lines should be used.
  366. : ${ac_max_here_lines=38}
  367. # Identity of this package.
  368. PACKAGE_NAME=
  369. PACKAGE_TARNAME=
  370. PACKAGE_VERSION=
  371. PACKAGE_STRING=
  372. PACKAGE_BUGREPORT=
  373. ac_unique_file="acinclude.m4"
  374. ac_default_prefix=${KDEDIR:-/usr/local/kde}
  375. # Factoring default headers for most tests.
  376. ac_includes_default="\
  377. #include <stdio.h>
  378. #if HAVE_SYS_TYPES_H
  379. # include <sys/types.h>
  380. #endif
  381. #if HAVE_SYS_STAT_H
  382. # include <sys/stat.h>
  383. #endif
  384. #if STDC_HEADERS
  385. # include <stdlib.h>
  386. # include <stddef.h>
  387. #else
  388. # if HAVE_STDLIB_H
  389. # include <stdlib.h>
  390. # endif
  391. #endif
  392. #if HAVE_STRING_H
  393. # if !STDC_HEADERS && HAVE_MEMORY_H
  394. # include <memory.h>
  395. # endif
  396. # include <string.h>
  397. #endif
  398. #if HAVE_STRINGS_H
  399. # include <strings.h>
  400. #endif
  401. #if HAVE_INTTYPES_H
  402. # include <inttypes.h>
  403. #else
  404. # if HAVE_STDINT_H
  405. # include <stdint.h>
  406. # endif
  407. #endif
  408. #if HAVE_UNISTD_H
  409. # include <unistd.h>
  410. #endif"
  411. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CONF_FILES CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE WOVERLOADED_VIRTUAL USE_EXCEPTIONS USE_RTTI CXXCPP NOOPT_CXXFLAGS NOOPT_CFLAGS KDE_USE_FINAL_TRUE KDE_USE_FINAL_FALSE KDE_USE_CLOSURE_TRUE KDE_USE_CLOSURE_FALSE KDE_NO_UNDEFINED KDE_USE_NMCHECK_TRUE KDE_USE_NMCHECK_FALSE LN_S ECHO RANLIB ac_ct_RANLIB EGREP LIBTOOL KDE_PLUGIN MSGFMT GMSGFMT XGETTEXT LIBUTIL LIBCOMPAT LIBCRYPT LIBRESOLV LIB_POLL FRAMEWORK_COREAUDIO LIBSOCKET X_EXTRA_LIBS LIBUCB LIBDL X_PRE_LIBS LIB_X11 LIB_XRENDER LIBSM X_INCLUDES X_LDFLAGS x_includes x_libraries QTE_NORTTI LIB_XEXT LIBPTHREAD USE_THREADS KDE_MT_LDFLAGS KDE_MT_LIBS USER_INCLUDES USER_LDFLAGS LIBZ LIBPNG LIBJPEG qt_libraries qt_includes QT_INCLUDES QT_LDFLAGS MOC UIC UIC_TR LIB_QT LIB_QPE kde_qtver KDE_EXTRA_RPATH KDE_RPATH X_RPATH kde_libraries kde_includes KDE_LDFLAGS KDE_INCLUDES all_includes all_libraries AUTODIRS include_ARTS_TRUE include_ARTS_FALSE DCOPIDL DCOPIDL2CPP DCOP_DEPENDENCIES MCOPIDL ARTSCCONFIG KDECONFIG BROCKENBORING MEINPROC KDE_XSL_STYLESHEET kde_libs_prefix kde_libs_htmldir kde_htmldir kde_appsdir kde_icondir kde_sounddir kde_datadir kde_locale kde_confdir kde_mimedir kde_wallpaperdir kde_bindir xdg_appsdir xdg_directorydir kde_templatesdir kde_servicesdir kde_servicetypesdir kde_moduledir kdeinitdir kde_styledir kde_widgetdir LIB_KDECORE LIB_KDEUI LIB_KIO LIB_SMB LIB_KAB LIB_KABC LIB_KHTML LIB_KSPELL LIB_KPARTS LIB_KDEPRINT LIB_KSYCOCA LIB_KFILE LIB_KFM TOPSUBDIRS LIBOBJS LTLIBOBJS'
  412. ac_subst_files=''
  413. # Initialize some variables set by options.
  414. ac_init_help=
  415. ac_init_version=false
  416. # The variables have the same names as the options, with
  417. # dashes changed to underlines.
  418. cache_file=/dev/null
  419. exec_prefix=NONE
  420. no_create=
  421. no_recursion=
  422. prefix=NONE
  423. program_prefix=NONE
  424. program_suffix=NONE
  425. program_transform_name=s,x,x,
  426. silent=
  427. site=
  428. srcdir=
  429. verbose=
  430. x_includes=NONE
  431. x_libraries=NONE
  432. # Installation directory options.
  433. # These are left unexpanded so users can "make install exec_prefix=/foo"
  434. # and all the variables that are supposed to be based on exec_prefix
  435. # by default will actually change.
  436. # Use braces instead of parens because sh, perl, etc. also accept them.
  437. bindir='${exec_prefix}/bin'
  438. sbindir='${exec_prefix}/sbin'
  439. libexecdir='${exec_prefix}/libexec'
  440. datadir='${prefix}/share'
  441. sysconfdir='${prefix}/etc'
  442. sharedstatedir='${prefix}/com'
  443. localstatedir='${prefix}/var'
  444. libdir='${exec_prefix}/lib'
  445. includedir='${prefix}/include'
  446. oldincludedir='/usr/include'
  447. infodir='${prefix}/info'
  448. mandir='${prefix}/man'
  449. ac_prev=
  450. for ac_option
  451. do
  452. # If the previous option needs an argument, assign it.
  453. if test -n "$ac_prev"; then
  454. eval "$ac_prev=\$ac_option"
  455. ac_prev=
  456. continue
  457. fi
  458. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  459. # Accept the important Cygnus configure options, so we can diagnose typos.
  460. case $ac_option in
  461. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  462. ac_prev=bindir ;;
  463. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  464. bindir=$ac_optarg ;;
  465. -build | --build | --buil | --bui | --bu)
  466. ac_prev=build_alias ;;
  467. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  468. build_alias=$ac_optarg ;;
  469. -cache-file | --cache-file | --cache-fil | --cache-fi \
  470. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  471. ac_prev=cache_file ;;
  472. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  473. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  474. cache_file=$ac_optarg ;;
  475. --config-cache | -C)
  476. cache_file=config.cache ;;
  477. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  478. ac_prev=datadir ;;
  479. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  480. | --da=*)
  481. datadir=$ac_optarg ;;
  482. -disable-* | --disable-*)
  483. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  484. # Reject names that are not valid shell variable names.
  485. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  486. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  487. { (exit 1); exit 1; }; }
  488. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  489. eval "enable_$ac_feature=no" ;;
  490. -enable-* | --enable-*)
  491. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  492. # Reject names that are not valid shell variable names.
  493. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  494. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  495. { (exit 1); exit 1; }; }
  496. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  497. case $ac_option in
  498. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  499. *) ac_optarg=yes ;;
  500. esac
  501. eval "enable_$ac_feature='$ac_optarg'" ;;
  502. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  503. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  504. | --exec | --exe | --ex)
  505. ac_prev=exec_prefix ;;
  506. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  507. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  508. | --exec=* | --exe=* | --ex=*)
  509. exec_prefix=$ac_optarg ;;
  510. -gas | --gas | --ga | --g)
  511. # Obsolete; use --with-gas.
  512. with_gas=yes ;;
  513. -help | --help | --hel | --he | -h)
  514. ac_init_help=long ;;
  515. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  516. ac_init_help=recursive ;;
  517. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  518. ac_init_help=short ;;
  519. -host | --host | --hos | --ho)
  520. ac_prev=host_alias ;;
  521. -host=* | --host=* | --hos=* | --ho=*)
  522. host_alias=$ac_optarg ;;
  523. -includedir | --includedir | --includedi | --included | --include \
  524. | --includ | --inclu | --incl | --inc)
  525. ac_prev=includedir ;;
  526. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  527. | --includ=* | --inclu=* | --incl=* | --inc=*)
  528. includedir=$ac_optarg ;;
  529. -infodir | --infodir | --infodi | --infod | --info | --inf)
  530. ac_prev=infodir ;;
  531. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  532. infodir=$ac_optarg ;;
  533. -libdir | --libdir | --libdi | --libd)
  534. ac_prev=libdir ;;
  535. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  536. libdir=$ac_optarg ;;
  537. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  538. | --libexe | --libex | --libe)
  539. ac_prev=libexecdir ;;
  540. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  541. | --libexe=* | --libex=* | --libe=*)
  542. libexecdir=$ac_optarg ;;
  543. -localstatedir | --localstatedir | --localstatedi | --localstated \
  544. | --localstate | --localstat | --localsta | --localst \
  545. | --locals | --local | --loca | --loc | --lo)
  546. ac_prev=localstatedir ;;
  547. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  548. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  549. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  550. localstatedir=$ac_optarg ;;
  551. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  552. ac_prev=mandir ;;
  553. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  554. mandir=$ac_optarg ;;
  555. -nfp | --nfp | --nf)
  556. # Obsolete; use --without-fp.
  557. with_fp=no ;;
  558. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  559. | --no-cr | --no-c | -n)
  560. no_create=yes ;;
  561. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  562. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  563. no_recursion=yes ;;
  564. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  565. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  566. | --oldin | --oldi | --old | --ol | --o)
  567. ac_prev=oldincludedir ;;
  568. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  569. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  570. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  571. oldincludedir=$ac_optarg ;;
  572. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  573. ac_prev=prefix ;;
  574. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  575. prefix=$ac_optarg ;;
  576. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  577. | --program-pre | --program-pr | --program-p)
  578. ac_prev=program_prefix ;;
  579. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  580. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  581. program_prefix=$ac_optarg ;;
  582. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  583. | --program-suf | --program-su | --program-s)
  584. ac_prev=program_suffix ;;
  585. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  586. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  587. program_suffix=$ac_optarg ;;
  588. -program-transform-name | --program-transform-name \
  589. | --program-transform-nam | --program-transform-na \
  590. | --program-transform-n | --program-transform- \
  591. | --program-transform | --program-transfor \
  592. | --program-transfo | --program-transf \
  593. | --program-trans | --program-tran \
  594. | --progr-tra | --program-tr | --program-t)
  595. ac_prev=program_transform_name ;;
  596. -program-transform-name=* | --program-transform-name=* \
  597. | --program-transform-nam=* | --program-transform-na=* \
  598. | --program-transform-n=* | --program-transform-=* \
  599. | --program-transform=* | --program-transfor=* \
  600. | --program-transfo=* | --program-transf=* \
  601. | --program-trans=* | --program-tran=* \
  602. | --progr-tra=* | --program-tr=* | --program-t=*)
  603. program_transform_name=$ac_optarg ;;
  604. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  605. | -silent | --silent | --silen | --sile | --sil)
  606. silent=yes ;;
  607. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  608. ac_prev=sbindir ;;
  609. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  610. | --sbi=* | --sb=*)
  611. sbindir=$ac_optarg ;;
  612. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  613. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  614. | --sharedst | --shareds | --shared | --share | --shar \
  615. | --sha | --sh)
  616. ac_prev=sharedstatedir ;;
  617. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  618. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  619. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  620. | --sha=* | --sh=*)
  621. sharedstatedir=$ac_optarg ;;
  622. -site | --site | --sit)
  623. ac_prev=site ;;
  624. -site=* | --site=* | --sit=*)
  625. site=$ac_optarg ;;
  626. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  627. ac_prev=srcdir ;;
  628. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  629. srcdir=$ac_optarg ;;
  630. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  631. | --syscon | --sysco | --sysc | --sys | --sy)
  632. ac_prev=sysconfdir ;;
  633. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  634. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  635. sysconfdir=$ac_optarg ;;
  636. -target | --target | --targe | --targ | --tar | --ta | --t)
  637. ac_prev=target_alias ;;
  638. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  639. target_alias=$ac_optarg ;;
  640. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  641. verbose=yes ;;
  642. -version | --version | --versio | --versi | --vers | -V)
  643. ac_init_version=: ;;
  644. -with-* | --with-*)
  645. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  646. # Reject names that are not valid shell variable names.
  647. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  648. { echo "$as_me: error: invalid package name: $ac_package" >&2
  649. { (exit 1); exit 1; }; }
  650. ac_package=`echo $ac_package| sed 's/-/_/g'`
  651. case $ac_option in
  652. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  653. *) ac_optarg=yes ;;
  654. esac
  655. eval "with_$ac_package='$ac_optarg'" ;;
  656. -without-* | --without-*)
  657. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  658. # Reject names that are not valid shell variable names.
  659. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  660. { echo "$as_me: error: invalid package name: $ac_package" >&2
  661. { (exit 1); exit 1; }; }
  662. ac_package=`echo $ac_package | sed 's/-/_/g'`
  663. eval "with_$ac_package=no" ;;
  664. --x)
  665. # Obsolete; use --with-x.
  666. with_x=yes ;;
  667. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  668. | --x-incl | --x-inc | --x-in | --x-i)
  669. ac_prev=x_includes ;;
  670. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  671. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  672. x_includes=$ac_optarg ;;
  673. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  674. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  675. ac_prev=x_libraries ;;
  676. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  677. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  678. x_libraries=$ac_optarg ;;
  679. -*) { echo "$as_me: error: unrecognized option: $ac_option
  680. Try \`$0 --help' for more information." >&2
  681. { (exit 1); exit 1; }; }
  682. ;;
  683. *=*)
  684. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  685. # Reject names that are not valid shell variable names.
  686. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  687. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  688. { (exit 1); exit 1; }; }
  689. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  690. eval "$ac_envvar='$ac_optarg'"
  691. export $ac_envvar ;;
  692. *)
  693. # FIXME: should be removed in autoconf 3.0.
  694. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  695. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  696. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  697. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  698. ;;
  699. esac
  700. done
  701. if test -n "$ac_prev"; then
  702. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  703. { echo "$as_me: error: missing argument to $ac_option" >&2
  704. { (exit 1); exit 1; }; }
  705. fi
  706. # Be sure to have absolute paths.
  707. for ac_var in exec_prefix prefix
  708. do
  709. eval ac_val=$`echo $ac_var`
  710. case $ac_val in
  711. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  712. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  713. { (exit 1); exit 1; }; };;
  714. esac
  715. done
  716. # Be sure to have absolute paths.
  717. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  718. localstatedir libdir includedir oldincludedir infodir mandir
  719. do
  720. eval ac_val=$`echo $ac_var`
  721. case $ac_val in
  722. [\\/$]* | ?:[\\/]* ) ;;
  723. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  724. { (exit 1); exit 1; }; };;
  725. esac
  726. done
  727. # There might be people who depend on the old broken behavior: `$host'
  728. # used to hold the argument of --host etc.
  729. # FIXME: To remove some day.
  730. build=$build_alias
  731. host=$host_alias
  732. target=$target_alias
  733. # FIXME: To remove some day.
  734. if test "x$host_alias" != x; then
  735. if test "x$build_alias" = x; then
  736. cross_compiling=maybe
  737. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  738. If a cross compiler is detected then cross compile mode will be used." >&2
  739. elif test "x$build_alias" != "x$host_alias"; then
  740. cross_compiling=yes
  741. fi
  742. fi
  743. ac_tool_prefix=
  744. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  745. test "$silent" = yes && exec 6>/dev/null
  746. # Find the source files, if location was not specified.
  747. if test -z "$srcdir"; then
  748. ac_srcdir_defaulted=yes
  749. # Try the directory containing this script, then its parent.
  750. ac_confdir=`(dirname "$0") 2>/dev/null ||
  751. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  752. X"$0" : 'X\(//\)[^/]' \| \
  753. X"$0" : 'X\(//\)$' \| \
  754. X"$0" : 'X\(/\)' \| \
  755. . : '\(.\)' 2>/dev/null ||
  756. echo X"$0" |
  757. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  758. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  759. /^X\(\/\/\)$/{ s//\1/; q; }
  760. /^X\(\/\).*/{ s//\1/; q; }
  761. s/.*/./; q'`
  762. srcdir=$ac_confdir
  763. if test ! -r $srcdir/$ac_unique_file; then
  764. srcdir=..
  765. fi
  766. else
  767. ac_srcdir_defaulted=no
  768. fi
  769. if test ! -r $srcdir/$ac_unique_file; then
  770. if test "$ac_srcdir_defaulted" = yes; then
  771. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  772. { (exit 1); exit 1; }; }
  773. else
  774. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  775. { (exit 1); exit 1; }; }
  776. fi
  777. fi
  778. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  779. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  780. { (exit 1); exit 1; }; }
  781. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  782. ac_env_build_alias_set=${build_alias+set}
  783. ac_env_build_alias_value=$build_alias
  784. ac_cv_env_build_alias_set=${build_alias+set}
  785. ac_cv_env_build_alias_value=$build_alias
  786. ac_env_host_alias_set=${host_alias+set}
  787. ac_env_host_alias_value=$host_alias
  788. ac_cv_env_host_alias_set=${host_alias+set}
  789. ac_cv_env_host_alias_value=$host_alias
  790. ac_env_target_alias_set=${target_alias+set}
  791. ac_env_target_alias_value=$target_alias
  792. ac_cv_env_target_alias_set=${target_alias+set}
  793. ac_cv_env_target_alias_value=$target_alias
  794. ac_env_CC_set=${CC+set}
  795. ac_env_CC_value=$CC
  796. ac_cv_env_CC_set=${CC+set}
  797. ac_cv_env_CC_value=$CC
  798. ac_env_CFLAGS_set=${CFLAGS+set}
  799. ac_env_CFLAGS_value=$CFLAGS
  800. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  801. ac_cv_env_CFLAGS_value=$CFLAGS
  802. ac_env_LDFLAGS_set=${LDFLAGS+set}
  803. ac_env_LDFLAGS_value=$LDFLAGS
  804. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  805. ac_cv_env_LDFLAGS_value=$LDFLAGS
  806. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  807. ac_env_CPPFLAGS_value=$CPPFLAGS
  808. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  809. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  810. ac_env_CPP_set=${CPP+set}
  811. ac_env_CPP_value=$CPP
  812. ac_cv_env_CPP_set=${CPP+set}
  813. ac_cv_env_CPP_value=$CPP
  814. ac_env_CXX_set=${CXX+set}
  815. ac_env_CXX_value=$CXX
  816. ac_cv_env_CXX_set=${CXX+set}
  817. ac_cv_env_CXX_value=$CXX
  818. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  819. ac_env_CXXFLAGS_value=$CXXFLAGS
  820. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  821. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  822. ac_env_CXXCPP_set=${CXXCPP+set}
  823. ac_env_CXXCPP_value=$CXXCPP
  824. ac_cv_env_CXXCPP_set=${CXXCPP+set}
  825. ac_cv_env_CXXCPP_value=$CXXCPP
  826. #
  827. # Report the --help message.
  828. #
  829. if test "$ac_init_help" = "long"; then
  830. # Omit some internal or obsolete options to make the list less imposing.
  831. # This message is too long to be a string in the A/UX 3.1 sh.
  832. cat <<_ACEOF
  833. \`configure' configures this package to adapt to many kinds of systems.
  834. Usage: $0 [OPTION]... [VAR=VALUE]...
  835. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  836. VAR=VALUE. See below for descriptions of some of the useful variables.
  837. Defaults for the options are specified in brackets.
  838. Configuration:
  839. -h, --help display this help and exit
  840. --help=short display options specific to this package
  841. --help=recursive display the short help of all the included packages
  842. -V, --version display version information and exit
  843. -q, --quiet, --silent do not print \`checking...' messages
  844. --cache-file=FILE cache test results in FILE [disabled]
  845. -C, --config-cache alias for \`--cache-file=config.cache'
  846. -n, --no-create do not create output files
  847. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  848. _ACEOF
  849. cat <<_ACEOF
  850. Installation directories:
  851. --prefix=PREFIX install architecture-independent files in PREFIX
  852. [$ac_default_prefix]
  853. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  854. [PREFIX]
  855. By default, \`make install' will install all the files in
  856. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  857. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  858. for instance \`--prefix=\$HOME'.
  859. For better control, use the options below.
  860. Fine tuning of the installation directories:
  861. --bindir=DIR user executables [EPREFIX/bin]
  862. --sbindir=DIR system admin executables [EPREFIX/sbin]
  863. --libexecdir=DIR program executables [EPREFIX/libexec]
  864. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  865. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  866. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  867. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  868. --libdir=DIR object code libraries [EPREFIX/lib]
  869. --includedir=DIR C header files [PREFIX/include]
  870. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  871. --infodir=DIR info documentation [PREFIX/info]
  872. --mandir=DIR man documentation [PREFIX/man]
  873. _ACEOF
  874. cat <<\_ACEOF
  875. Program names:
  876. --program-prefix=PREFIX prepend PREFIX to installed program names
  877. --program-suffix=SUFFIX append SUFFIX to installed program names
  878. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  879. System types:
  880. --build=BUILD configure for building on BUILD [guessed]
  881. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  882. --target=TARGET configure for building compilers for TARGET [HOST]
  883. _ACEOF
  884. fi
  885. if test -n "$ac_init_help"; then
  886. cat <<\_ACEOF
  887. Optional Features:
  888. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  889. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  890. --disable-fast-perl disable fast Makefile generation (needs perl)
  891. --enable-debug=ARG enables debug symbols (yes|no|full) default=no
  892. --disable-debug disables debug output and debug symbols default=no
  893. --enable-strict compiles with strict compiler options (may not work!)
  894. --disable-warnings disables compilation with -Wall and similiar
  895. --enable-profile creates profiling infos default=no
  896. --disable-dependency-tracking speeds up one-time build
  897. --enable-dependency-tracking do not reject slow dependency extractors
  898. --enable-pch enables precompiled header support (currently only KCC) default=no
  899. --enable-final build size optimized apps (experimental - needs lots of memory)
  900. --disable-closure don't delay template instantiation
  901. --enable-nmcheck enable automatic namespace cleanness check
  902. --enable-shared[=PKGS]
  903. build shared libraries [default=yes]
  904. --enable-static[=PKGS]
  905. build static libraries [default=no]
  906. --enable-libsuffix /lib directory suffix (64,32,none=default)
  907. --enable-fast-install[=PKGS]
  908. optimize for fast installation [default=yes]
  909. --disable-libtool-lock avoid locking (might break parallel builds)
  910. --enable-objprelink prelink apps using objprelink (obsolete)
  911. --enable-embedded link to Qt-embedded, don't use X
  912. --enable-qtopia link to Qt-embedded, link to the Qtopia Environment
  913. --enable-mac link to Qt/Mac (don't use X)
  914. --disable-mt link to non-threaded Qt (deprecated)
  915. --enable-kernel-threads Enable the use of the LinuxThreads port on FreeBSD/i386 only.
  916. --disable-threading disables threading even if libpthread found
  917. --disable-rpath do not use the rpath feature of ld
  918. --disable-path-check don't try to find out, where to install
  919. Optional Packages:
  920. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  921. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  922. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  923. --with-pic try to use only PIC/non-PIC objects [default=use
  924. both]
  925. --with-tags=TAGS include additional configurations [CXX,GCJ]
  926. --with-extra-includes=DIR
  927. adds non standard include paths
  928. --with-extra-libs=DIR adds non standard library paths
  929. --with-qt-dir=DIR where the root of Qt is installed
  930. --with-qt-includes=DIR where the Qt includes are.
  931. --with-qt-libraries=DIR where the Qt library is installed.
  932. --without-arts build without aRts default=detect
  933. Some influential environment variables:
  934. CC C compiler command
  935. CFLAGS C compiler flags
  936. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  937. nonstandard directory <lib dir>
  938. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  939. headers in a nonstandard directory <include dir>
  940. CPP C preprocessor
  941. CXX C++ compiler command
  942. CXXFLAGS C++ compiler flags
  943. CXXCPP C++ preprocessor
  944. Use these variables to override the choices made by `configure' or to help
  945. it to find libraries and programs with nonstandard names/locations.
  946. _ACEOF
  947. fi
  948. if test "$ac_init_help" = "recursive"; then
  949. # If there are subdirs, report their specific --help.
  950. ac_popdir=`pwd`
  951. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  952. test -d $ac_dir || continue
  953. ac_builddir=.
  954. if test "$ac_dir" != .; then
  955. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  956. # A "../" for each directory in $ac_dir_suffix.
  957. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  958. else
  959. ac_dir_suffix= ac_top_builddir=
  960. fi
  961. case $srcdir in
  962. .) # No --srcdir option. We are building in place.
  963. ac_srcdir=.
  964. if test -z "$ac_top_builddir"; then
  965. ac_top_srcdir=.
  966. else
  967. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  968. fi ;;
  969. [\\/]* | ?:[\\/]* ) # Absolute path.
  970. ac_srcdir=$srcdir$ac_dir_suffix;
  971. ac_top_srcdir=$srcdir ;;
  972. *) # Relative path.
  973. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  974. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  975. esac
  976. # Do not use `cd foo && pwd` to compute absolute paths, because
  977. # the directories may not exist.
  978. case `pwd` in
  979. .) ac_abs_builddir="$ac_dir";;
  980. *)
  981. case "$ac_dir" in
  982. .) ac_abs_builddir=`pwd`;;
  983. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  984. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  985. esac;;
  986. esac
  987. case $ac_abs_builddir in
  988. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  989. *)
  990. case ${ac_top_builddir}. in
  991. .) ac_abs_top_builddir=$ac_abs_builddir;;
  992. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  993. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  994. esac;;
  995. esac
  996. case $ac_abs_builddir in
  997. .) ac_abs_srcdir=$ac_srcdir;;
  998. *)
  999. case $ac_srcdir in
  1000. .) ac_abs_srcdir=$ac_abs_builddir;;
  1001. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  1002. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  1003. esac;;
  1004. esac
  1005. case $ac_abs_builddir in
  1006. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  1007. *)
  1008. case $ac_top_srcdir in
  1009. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  1010. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  1011. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  1012. esac;;
  1013. esac
  1014. cd $ac_dir
  1015. # Check for guested configure; otherwise get Cygnus style configure.
  1016. if test -f $ac_srcdir/configure.gnu; then
  1017. echo
  1018. $SHELL $ac_srcdir/configure.gnu --help=recursive
  1019. elif test -f $ac_srcdir/configure; then
  1020. echo
  1021. $SHELL $ac_srcdir/configure --help=recursive
  1022. elif test -f $ac_srcdir/configure.ac ||
  1023. test -f $ac_srcdir/configure.in; then
  1024. echo
  1025. $ac_configure --help
  1026. else
  1027. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1028. fi
  1029. cd $ac_popdir
  1030. done
  1031. fi
  1032. test -n "$ac_init_help" && exit 0
  1033. if $ac_init_version; then
  1034. cat <<\_ACEOF
  1035. Copyright (C) 2003 Free Software Foundation, Inc.
  1036. This configure script is free software; the Free Software Foundation
  1037. gives unlimited permission to copy, distribute and modify it.
  1038. _ACEOF
  1039. exit 0
  1040. fi
  1041. exec 5>config.log
  1042. cat >&5 <<_ACEOF
  1043. This file contains any messages produced by compilers while
  1044. running configure, to aid debugging if configure makes a mistake.
  1045. It was created by $as_me, which was
  1046. generated by GNU Autoconf 2.59. Invocation command line was
  1047. $ $0 $@
  1048. _ACEOF
  1049. {
  1050. cat <<_ASUNAME
  1051. ## --------- ##
  1052. ## Platform. ##
  1053. ## --------- ##
  1054. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1055. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1056. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1057. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1058. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1059. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1060. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1061. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1062. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1063. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1064. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  1065. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1066. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1067. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1068. _ASUNAME
  1069. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1070. for as_dir in $PATH
  1071. do
  1072. IFS=$as_save_IFS
  1073. test -z "$as_dir" && as_dir=.
  1074. echo "PATH: $as_dir"
  1075. done
  1076. } >&5
  1077. cat >&5 <<_ACEOF
  1078. ## ----------- ##
  1079. ## Core tests. ##
  1080. ## ----------- ##
  1081. _ACEOF
  1082. # Keep a trace of the command line.
  1083. # Strip out --no-create and --no-recursion so they do not pile up.
  1084. # Strip out --silent because we don't want to record it for future runs.
  1085. # Also quote any args containing shell meta-characters.
  1086. # Make two passes to allow for proper duplicate-argument suppression.
  1087. ac_configure_args=
  1088. ac_configure_args0=
  1089. ac_configure_args1=
  1090. ac_sep=
  1091. ac_must_keep_next=false
  1092. for ac_pass in 1 2
  1093. do
  1094. for ac_arg
  1095. do
  1096. case $ac_arg in
  1097. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1098. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1099. | -silent | --silent | --silen | --sile | --sil)
  1100. continue ;;
  1101. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1102. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1103. esac
  1104. case $ac_pass in
  1105. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1106. 2)
  1107. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1108. if test $ac_must_keep_next = true; then
  1109. ac_must_keep_next=false # Got value, back to normal.
  1110. else
  1111. case $ac_arg in
  1112. *=* | --config-cache | -C | -disable-* | --disable-* \
  1113. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1114. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1115. | -with-* | --with-* | -without-* | --without-* | --x)
  1116. case "$ac_configure_args0 " in
  1117. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1118. esac
  1119. ;;
  1120. -* ) ac_must_keep_next=true ;;
  1121. esac
  1122. fi
  1123. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1124. # Get rid of the leading space.
  1125. ac_sep=" "
  1126. ;;
  1127. esac
  1128. done
  1129. done
  1130. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1131. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1132. # When interrupted or exit'd, cleanup temporary files, and complete
  1133. # config.log. We remove comments because anyway the quotes in there
  1134. # would cause problems or look ugly.
  1135. # WARNING: Be sure not to use single quotes in there, as some shells,
  1136. # such as our DU 5.0 friend, will then `close' the trap.
  1137. trap 'exit_status=$?
  1138. # Save into config.log some information that might help in debugging.
  1139. {
  1140. echo
  1141. cat <<\_ASBOX
  1142. ## ---------------- ##
  1143. ## Cache variables. ##
  1144. ## ---------------- ##
  1145. _ASBOX
  1146. echo
  1147. # The following way of writing the cache mishandles newlines in values,
  1148. {
  1149. (set) 2>&1 |
  1150. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1151. *ac_space=\ *)
  1152. sed -n \
  1153. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1154. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1155. ;;
  1156. *)
  1157. sed -n \
  1158. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1159. ;;
  1160. esac;
  1161. }
  1162. echo
  1163. cat <<\_ASBOX
  1164. ## ----------------- ##
  1165. ## Output variables. ##
  1166. ## ----------------- ##
  1167. _ASBOX
  1168. echo
  1169. for ac_var in $ac_subst_vars
  1170. do
  1171. eval ac_val=$`echo $ac_var`
  1172. echo "$ac_var='"'"'$ac_val'"'"'"
  1173. done | sort
  1174. echo
  1175. if test -n "$ac_subst_files"; then
  1176. cat <<\_ASBOX
  1177. ## ------------- ##
  1178. ## Output files. ##
  1179. ## ------------- ##
  1180. _ASBOX
  1181. echo
  1182. for ac_var in $ac_subst_files
  1183. do
  1184. eval ac_val=$`echo $ac_var`
  1185. echo "$ac_var='"'"'$ac_val'"'"'"
  1186. done | sort
  1187. echo
  1188. fi
  1189. if test -s confdefs.h; then
  1190. cat <<\_ASBOX
  1191. ## ----------- ##
  1192. ## confdefs.h. ##
  1193. ## ----------- ##
  1194. _ASBOX
  1195. echo
  1196. sed "/^$/d" confdefs.h | sort
  1197. echo
  1198. fi
  1199. test "$ac_signal" != 0 &&
  1200. echo "$as_me: caught signal $ac_signal"
  1201. echo "$as_me: exit $exit_status"
  1202. } >&5
  1203. rm -f core *.core &&
  1204. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1205. exit $exit_status
  1206. ' 0
  1207. for ac_signal in 1 2 13 15; do
  1208. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1209. done
  1210. ac_signal=0
  1211. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1212. rm -rf conftest* confdefs.h
  1213. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1214. echo >confdefs.h
  1215. # Predefined preprocessor variables.
  1216. cat >>confdefs.h <<_ACEOF
  1217. #define PACKAGE_NAME "$PACKAGE_NAME"
  1218. _ACEOF
  1219. cat >>confdefs.h <<_ACEOF
  1220. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1221. _ACEOF
  1222. cat >>confdefs.h <<_ACEOF
  1223. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1224. _ACEOF
  1225. cat >>confdefs.h <<_ACEOF
  1226. #define PACKAGE_STRING "$PACKAGE_STRING"
  1227. _ACEOF
  1228. cat >>confdefs.h <<_ACEOF
  1229. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1230. _ACEOF
  1231. # Let the site file select an alternate cache file if it wants to.
  1232. # Prefer explicitly selected file to automatically selected ones.
  1233. if test -z "$CONFIG_SITE"; then
  1234. if test "x$prefix" != xNONE; then
  1235. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1236. else
  1237. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1238. fi
  1239. fi
  1240. for ac_site_file in $CONFIG_SITE; do
  1241. if test -r "$ac_site_file"; then
  1242. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1243. echo "$as_me: loading site script $ac_site_file" >&6;}
  1244. sed 's/^/| /' "$ac_site_file" >&5
  1245. . "$ac_site_file"
  1246. fi
  1247. done
  1248. if test -r "$cache_file"; then
  1249. # Some versions of bash will fail to source /dev/null (special
  1250. # files actually), so we avoid doing that.
  1251. if test -f "$cache_file"; then
  1252. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1253. echo "$as_me: loading cache $cache_file" >&6;}
  1254. case $cache_file in
  1255. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1256. *) . ./$cache_file;;
  1257. esac
  1258. fi
  1259. else
  1260. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1261. echo "$as_me: creating cache $cache_file" >&6;}
  1262. >$cache_file
  1263. fi
  1264. # Check that the precious variables saved in the cache have kept the same
  1265. # value.
  1266. ac_cache_corrupted=false
  1267. for ac_var in `(set) 2>&1 |
  1268. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1269. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1270. eval ac_new_set=\$ac_env_${ac_var}_set
  1271. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1272. eval ac_new_val="\$ac_env_${ac_var}_value"
  1273. case $ac_old_set,$ac_new_set in
  1274. set,)
  1275. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1276. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1277. ac_cache_corrupted=: ;;
  1278. ,set)
  1279. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1280. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1281. ac_cache_corrupted=: ;;
  1282. ,);;
  1283. *)
  1284. if test "x$ac_old_val" != "x$ac_new_val"; then
  1285. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1286. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1287. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1288. echo "$as_me: former value: $ac_old_val" >&2;}
  1289. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1290. echo "$as_me: current value: $ac_new_val" >&2;}
  1291. ac_cache_corrupted=:
  1292. fi;;
  1293. esac
  1294. # Pass precious variables to config.status.
  1295. if test "$ac_new_set" = set; then
  1296. case $ac_new_val in
  1297. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1298. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1299. *) ac_arg=$ac_var=$ac_new_val ;;
  1300. esac
  1301. case " $ac_configure_args " in
  1302. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1303. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1304. esac
  1305. fi
  1306. done
  1307. if $ac_cache_corrupted; then
  1308. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1309. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1310. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1311. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1312. { (exit 1); exit 1; }; }
  1313. fi
  1314. ac_ext=c
  1315. ac_cpp='$CPP $CPPFLAGS'
  1316. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1317. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1318. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1319. ac_aux_dir=
  1320. for ac_dir in admin $srcdir/admin; do
  1321. if test -f $ac_dir/install-sh; then
  1322. ac_aux_dir=$ac_dir
  1323. ac_install_sh="$ac_aux_dir/install-sh -c"
  1324. break
  1325. elif test -f $ac_dir/install.sh; then
  1326. ac_aux_dir=$ac_dir
  1327. ac_install_sh="$ac_aux_dir/install.sh -c"
  1328. break
  1329. elif test -f $ac_dir/shtool; then
  1330. ac_aux_dir=$ac_dir
  1331. ac_install_sh="$ac_aux_dir/shtool install -c"
  1332. break
  1333. fi
  1334. done
  1335. if test -z "$ac_aux_dir"; then
  1336. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&5
  1337. echo "$as_me: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&2;}
  1338. { (exit 1); exit 1; }; }
  1339. fi
  1340. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1341. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1342. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1343. unset CDPATH
  1344. # Make sure we can run config.sub.
  1345. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1346. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1347. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1348. { (exit 1); exit 1; }; }
  1349. echo "$as_me:$LINENO: checking build system type" >&5
  1350. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1351. if test "${ac_cv_build+set}" = set; then
  1352. echo $ECHO_N "(cached) $ECHO_C" >&6
  1353. else
  1354. ac_cv_build_alias=$build_alias
  1355. test -z "$ac_cv_build_alias" &&
  1356. ac_cv_build_alias=`$ac_config_guess`
  1357. test -z "$ac_cv_build_alias" &&
  1358. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1359. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1360. { (exit 1); exit 1; }; }
  1361. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1362. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1363. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1364. { (exit 1); exit 1; }; }
  1365. fi
  1366. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1367. echo "${ECHO_T}$ac_cv_build" >&6
  1368. build=$ac_cv_build
  1369. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1370. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1371. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1372. echo "$as_me:$LINENO: checking host system type" >&5
  1373. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1374. if test "${ac_cv_host+set}" = set; then
  1375. echo $ECHO_N "(cached) $ECHO_C" >&6
  1376. else
  1377. ac_cv_host_alias=$host_alias
  1378. test -z "$ac_cv_host_alias" &&
  1379. ac_cv_host_alias=$ac_cv_build_alias
  1380. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1381. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1382. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1383. { (exit 1); exit 1; }; }
  1384. fi
  1385. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1386. echo "${ECHO_T}$ac_cv_host" >&6
  1387. host=$ac_cv_host
  1388. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1389. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1390. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1391. echo "$as_me:$LINENO: checking target system type" >&5
  1392. echo $ECHO_N "checking target system type... $ECHO_C" >&6
  1393. if test "${ac_cv_target+set}" = set; then
  1394. echo $ECHO_N "(cached) $ECHO_C" >&6
  1395. else
  1396. ac_cv_target_alias=$target_alias
  1397. test "x$ac_cv_target_alias" = "x" &&
  1398. ac_cv_target_alias=$ac_cv_host_alias
  1399. ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
  1400. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
  1401. echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
  1402. { (exit 1); exit 1; }; }
  1403. fi
  1404. echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1405. echo "${ECHO_T}$ac_cv_target" >&6
  1406. target=$ac_cv_target
  1407. target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1408. target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1409. target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1410. # The aliases save the names the user supplied, while $host etc.
  1411. # will get canonicalized.
  1412. test -n "$target_alias" &&
  1413. test "$program_prefix$program_suffix$program_transform_name" = \
  1414. NONENONEs,x,x, &&
  1415. program_prefix=${target_alias}-
  1416. test "$program_prefix" != NONE &&
  1417. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1418. # Use a double $ so make ignores it.
  1419. test "$program_suffix" != NONE &&
  1420. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1421. # Double any \ or $. echo might interpret backslashes.
  1422. # By default was `s,x,x', remove it if useless.
  1423. cat <<\_ACEOF >conftest.sed
  1424. s/[\\$]/&&/g;s/;s,x,x,$//
  1425. _ACEOF
  1426. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1427. rm conftest.sed
  1428. am__api_version="1.9"
  1429. test -n "$INSTALL" && kde_save_INSTALL_given=$INSTALL
  1430. test -n "$INSTALL_PROGRAM" && kde_save_INSTALL_PROGRAM_given=$INSTALL_PROGRAM
  1431. test -n "$INSTALL_SCRIPT" && kde_save_INSTALL_SCRIPT_given=$INSTALL_SCRIPT
  1432. # Find a good install program. We prefer a C program (faster),
  1433. # so one script is as good as another. But avoid the broken or
  1434. # incompatible versions:
  1435. # SysV /etc/install, /usr/sbin/install
  1436. # SunOS /usr/etc/install
  1437. # IRIX /sbin/install
  1438. # AIX /bin/install
  1439. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1440. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1441. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1442. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1443. # OS/2's system install, which has a completely different semantic
  1444. # ./install, which can be erroneously created by make from ./install.sh.
  1445. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1446. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1447. if test -z "$INSTALL"; then
  1448. if test "${ac_cv_path_install+set}" = set; then
  1449. echo $ECHO_N "(cached) $ECHO_C" >&6
  1450. else
  1451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1452. for as_dir in $PATH
  1453. do
  1454. IFS=$as_save_IFS
  1455. test -z "$as_dir" && as_dir=.
  1456. # Account for people who put trailing slashes in PATH elements.
  1457. case $as_dir/ in
  1458. ./ | .// | /cC/* | \
  1459. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1460. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1461. /usr/ucb/* ) ;;
  1462. *)
  1463. # OSF1 and SCO ODT 3.0 have their own names for install.
  1464. # Don't use installbsd from OSF since it installs stuff as root
  1465. # by default.
  1466. for ac_prog in ginstall scoinst install; do
  1467. for ac_exec_ext in '' $ac_executable_extensions; do
  1468. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1469. if test $ac_prog = install &&
  1470. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1471. # AIX install. It has an incompatible calling convention.
  1472. :
  1473. elif test $ac_prog = install &&
  1474. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1475. # program-specific install script used by HP pwplus--don't use.
  1476. :
  1477. else
  1478. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1479. break 3
  1480. fi
  1481. fi
  1482. done
  1483. done
  1484. ;;
  1485. esac
  1486. done
  1487. fi
  1488. if test "${ac_cv_path_install+set}" = set; then
  1489. INSTALL=$ac_cv_path_install
  1490. else
  1491. # As a last resort, use the slow shell script. We don't cache a
  1492. # path for INSTALL within a source directory, because that will
  1493. # break other packages using the cache if that directory is
  1494. # removed, or if the path is relative.
  1495. INSTALL=$ac_install_sh
  1496. fi
  1497. fi
  1498. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1499. echo "${ECHO_T}$INSTALL" >&6
  1500. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1501. # It thinks the first close brace ends the variable substitution.
  1502. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1503. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1504. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1505. if test -z "$kde_save_INSTALL_given" ; then
  1506. # OK, user hasn't given any INSTALL, autoconf found one for us
  1507. # now we test, if it supports the -p flag
  1508. echo "$as_me:$LINENO: checking for -p flag to install" >&5
  1509. echo $ECHO_N "checking for -p flag to install... $ECHO_C" >&6
  1510. rm -f confinst.$$.* > /dev/null 2>&1
  1511. echo "Testtest" > confinst.$$.orig
  1512. ac_res=no
  1513. if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then
  1514. if test -f confinst.$$.new ; then
  1515. # OK, -p seems to do no harm to install
  1516. INSTALL="${INSTALL} -p"
  1517. ac_res=yes
  1518. fi
  1519. fi
  1520. rm -f confinst.$$.*
  1521. echo "$as_me:$LINENO: result: $ac_res" >&5
  1522. echo "${ECHO_T}$ac_res" >&6
  1523. fi
  1524. if test -z "$kde_save_INSTALL_PROGRAM_given" ; then
  1525. INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)'
  1526. fi
  1527. if test -z "$kde_save_INSTALL_SCRIPT_given" ; then
  1528. INSTALL_SCRIPT='${INSTALL}'
  1529. fi
  1530. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1531. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1532. # Just in case
  1533. sleep 1
  1534. echo timestamp > conftest.file
  1535. # Do `set' in a subshell so we don't clobber the current shell's
  1536. # arguments. Must try -L first in case configure is actually a
  1537. # symlink; some systems play weird games with the mod time of symlinks
  1538. # (eg FreeBSD returns the mod time of the symlink's containing
  1539. # directory).
  1540. if (
  1541. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1542. if test "$*" = "X"; then
  1543. # -L didn't work.
  1544. set X `ls -t $srcdir/configure conftest.file`
  1545. fi
  1546. rm -f conftest.file
  1547. if test "$*" != "X $srcdir/configure conftest.file" \
  1548. && test "$*" != "X conftest.file $srcdir/configure"; then
  1549. # If neither matched, then we have a broken ls. This can happen
  1550. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1551. # broken ls alias from the environment. This has actually
  1552. # happened. Such a system could not be considered "sane".
  1553. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1554. alias in your environment" >&5
  1555. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1556. alias in your environment" >&2;}
  1557. { (exit 1); exit 1; }; }
  1558. fi
  1559. test "$2" = conftest.file
  1560. )
  1561. then
  1562. # Ok.
  1563. :
  1564. else
  1565. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1566. Check your system clock" >&5
  1567. echo "$as_me: error: newly created file is older than distributed files!
  1568. Check your system clock" >&2;}
  1569. { (exit 1); exit 1; }; }
  1570. fi
  1571. echo "$as_me:$LINENO: result: yes" >&5
  1572. echo "${ECHO_T}yes" >&6
  1573. # expand $ac_aux_dir to an absolute path
  1574. am_aux_dir=`cd $ac_aux_dir && pwd`
  1575. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1576. # Use eval to expand $SHELL
  1577. if eval "$MISSING --run true"; then
  1578. am_missing_run="$MISSING --run "
  1579. else
  1580. am_missing_run=
  1581. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1582. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1583. fi
  1584. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1585. # We used to keeping the `.' as first argument, in order to
  1586. # allow $(mkdir_p) to be used without argument. As in
  1587. # $(mkdir_p) $(somedir)
  1588. # where $(somedir) is conditionally defined. However this is wrong
  1589. # for two reasons:
  1590. # 1. if the package is installed by a user who cannot write `.'
  1591. # make install will fail,
  1592. # 2. the above comment should most certainly read
  1593. # $(mkdir_p) $(DESTDIR)$(somedir)
  1594. # so it does not work when $(somedir) is undefined and
  1595. # $(DESTDIR) is not.
  1596. # To support the latter case, we have to write
  1597. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1598. # so the `.' trick is pointless.
  1599. mkdir_p='mkdir -p --'
  1600. else
  1601. # On NextStep and OpenStep, the `mkdir' command does not
  1602. # recognize any option. It will interpret all options as
  1603. # directories to create, and then abort because `.' already
  1604. # exists.
  1605. for d in ./-p ./--version;
  1606. do
  1607. test -d $d && rmdir $d
  1608. done
  1609. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1610. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1611. mkdir_p='$(mkinstalldirs)'
  1612. else
  1613. mkdir_p='$(install_sh) -d'
  1614. fi
  1615. fi
  1616. for ac_prog in gawk mawk nawk awk
  1617. do
  1618. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1619. set dummy $ac_prog; ac_word=$2
  1620. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1621. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1622. if test "${ac_cv_prog_AWK+set}" = set; then
  1623. echo $ECHO_N "(cached) $ECHO_C" >&6
  1624. else
  1625. if test -n "$AWK"; then
  1626. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1627. else
  1628. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1629. for as_dir in $PATH
  1630. do
  1631. IFS=$as_save_IFS
  1632. test -z "$as_dir" && as_dir=.
  1633. for ac_exec_ext in '' $ac_executable_extensions; do
  1634. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1635. ac_cv_prog_AWK="$ac_prog"
  1636. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1637. break 2
  1638. fi
  1639. done
  1640. done
  1641. fi
  1642. fi
  1643. AWK=$ac_cv_prog_AWK
  1644. if test -n "$AWK"; then
  1645. echo "$as_me:$LINENO: result: $AWK" >&5
  1646. echo "${ECHO_T}$AWK" >&6
  1647. else
  1648. echo "$as_me:$LINENO: result: no" >&5
  1649. echo "${ECHO_T}no" >&6
  1650. fi
  1651. test -n "$AWK" && break
  1652. done
  1653. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1654. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1655. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1656. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1657. echo $ECHO_N "(cached) $ECHO_C" >&6
  1658. else
  1659. cat >conftest.make <<\_ACEOF
  1660. all:
  1661. @echo 'ac_maketemp="$(MAKE)"'
  1662. _ACEOF
  1663. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1664. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1665. if test -n "$ac_maketemp"; then
  1666. eval ac_cv_prog_make_${ac_make}_set=yes
  1667. else
  1668. eval ac_cv_prog_make_${ac_make}_set=no
  1669. fi
  1670. rm -f conftest.make
  1671. fi
  1672. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1673. echo "$as_me:$LINENO: result: yes" >&5
  1674. echo "${ECHO_T}yes" >&6
  1675. SET_MAKE=
  1676. else
  1677. echo "$as_me:$LINENO: result: no" >&5
  1678. echo "${ECHO_T}no" >&6
  1679. SET_MAKE="MAKE=${MAKE-make}"
  1680. fi
  1681. rm -rf .tst 2>/dev/null
  1682. mkdir .tst 2>/dev/null
  1683. if test -d .tst; then
  1684. am__leading_dot=.
  1685. else
  1686. am__leading_dot=_
  1687. fi
  1688. rmdir .tst 2>/dev/null
  1689. # test to see if srcdir already configured
  1690. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1691. test -f $srcdir/config.status; then
  1692. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1693. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1694. { (exit 1); exit 1; }; }
  1695. fi
  1696. # test whether we have cygpath
  1697. if test -z "$CYGPATH_W"; then
  1698. if (cygpath --version) >/dev/null 2>/dev/null; then
  1699. CYGPATH_W='cygpath -w'
  1700. else
  1701. CYGPATH_W=echo
  1702. fi
  1703. fi
  1704. # Define the identity of the package.
  1705. PACKAGE=nkrecnik
  1706. VERSION=0.8
  1707. cat >>confdefs.h <<_ACEOF
  1708. #define PACKAGE "$PACKAGE"
  1709. _ACEOF
  1710. cat >>confdefs.h <<_ACEOF
  1711. #define VERSION "$VERSION"
  1712. _ACEOF
  1713. # Some tools Automake needs.
  1714. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1715. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1716. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1717. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1718. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1719. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1720. # Installed binaries are usually stripped using `strip' when the user
  1721. # run `make install-strip'. However `strip' might not be the right
  1722. # tool to use in cross-compilation environments, therefore Automake
  1723. # will honor the `STRIP' environment variable to overrule this program.
  1724. if test "$cross_compiling" != no; then
  1725. if test -n "$ac_tool_prefix"; then
  1726. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1727. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1728. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1729. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1730. if test "${ac_cv_prog_STRIP+set}" = set; then
  1731. echo $ECHO_N "(cached) $ECHO_C" >&6
  1732. else
  1733. if test -n "$STRIP"; then
  1734. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1735. else
  1736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1737. for as_dir in $PATH
  1738. do
  1739. IFS=$as_save_IFS
  1740. test -z "$as_dir" && as_dir=.
  1741. for ac_exec_ext in '' $ac_executable_extensions; do
  1742. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1743. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1744. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1745. break 2
  1746. fi
  1747. done
  1748. done
  1749. fi
  1750. fi
  1751. STRIP=$ac_cv_prog_STRIP
  1752. if test -n "$STRIP"; then
  1753. echo "$as_me:$LINENO: result: $STRIP" >&5
  1754. echo "${ECHO_T}$STRIP" >&6
  1755. else
  1756. echo "$as_me:$LINENO: result: no" >&5
  1757. echo "${ECHO_T}no" >&6
  1758. fi
  1759. fi
  1760. if test -z "$ac_cv_prog_STRIP"; then
  1761. ac_ct_STRIP=$STRIP
  1762. # Extract the first word of "strip", so it can be a program name with args.
  1763. set dummy strip; ac_word=$2
  1764. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1765. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1766. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1767. echo $ECHO_N "(cached) $ECHO_C" >&6
  1768. else
  1769. if test -n "$ac_ct_STRIP"; then
  1770. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1771. else
  1772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1773. for as_dir in $PATH
  1774. do
  1775. IFS=$as_save_IFS
  1776. test -z "$as_dir" && as_dir=.
  1777. for ac_exec_ext in '' $ac_executable_extensions; do
  1778. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1779. ac_cv_prog_ac_ct_STRIP="strip"
  1780. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1781. break 2
  1782. fi
  1783. done
  1784. done
  1785. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1786. fi
  1787. fi
  1788. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1789. if test -n "$ac_ct_STRIP"; then
  1790. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1791. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1792. else
  1793. echo "$as_me:$LINENO: result: no" >&5
  1794. echo "${ECHO_T}no" >&6
  1795. fi
  1796. STRIP=$ac_ct_STRIP
  1797. else
  1798. STRIP="$ac_cv_prog_STRIP"
  1799. fi
  1800. fi
  1801. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1802. # We need awk for the "check" target. The system "awk" is bad on
  1803. # some platforms.
  1804. # Always define AMTAR for backward compatibility.
  1805. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1806. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  1807. unset CDPATH
  1808. if test "x$prefix" = "xNONE"; then
  1809. prefix=$ac_default_prefix
  1810. ac_configure_args="$ac_configure_args --prefix=$prefix"
  1811. fi
  1812. # And delete superflous '/' to make compares easier
  1813. prefix=`echo "$prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
  1814. exec_prefix=`echo "$exec_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
  1815. # Check whether --enable-fast-perl or --disable-fast-perl was given.
  1816. if test "${enable_fast_perl+set}" = set; then
  1817. enableval="$enable_fast_perl"
  1818. with_fast_perl=$enableval
  1819. else
  1820. with_fast_perl=yes
  1821. fi;
  1822. val=
  1823. if test -f $srcdir/configure.files ; then
  1824. val=`sed -e 's%^%\$(top_srcdir)/%' $srcdir/configure.files`
  1825. fi
  1826. CONF_FILES=
  1827. if test -n "$val" ; then
  1828. for i in $val ; do
  1829. CONF_FILES="$CONF_FILES $i"
  1830. done
  1831. fi
  1832. ac_config_headers="$ac_config_headers config.h"
  1833. DEPDIR="${am__leading_dot}deps"
  1834. ac_config_commands="$ac_config_commands depfiles"
  1835. am_make=${MAKE-make}
  1836. cat > confinc << 'END'
  1837. am__doit:
  1838. @echo done
  1839. .PHONY: am__doit
  1840. END
  1841. # If we don't find an include directive, just comment out the code.
  1842. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  1843. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  1844. am__include="#"
  1845. am__quote=
  1846. _am_result=none
  1847. # First try GNU make style include.
  1848. echo "include confinc" > confmf
  1849. # We grep out `Entering directory' and `Leaving directory'
  1850. # messages which can occur if `w' ends up in MAKEFLAGS.
  1851. # In particular we don't look at `^make:' because GNU make might
  1852. # be invoked under some other name (usually "gmake"), in which
  1853. # case it prints its new name instead of `make'.
  1854. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  1855. am__include=include
  1856. am__quote=
  1857. _am_result=GNU
  1858. fi
  1859. # Now try BSD make style include.
  1860. if test "$am__include" = "#"; then
  1861. echo '.include "confinc"' > confmf
  1862. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  1863. am__include=.include
  1864. am__quote="\""
  1865. _am_result=BSD
  1866. fi
  1867. fi
  1868. echo "$as_me:$LINENO: result: $_am_result" >&5
  1869. echo "${ECHO_T}$_am_result" >&6
  1870. rm -f confinc confmf
  1871. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  1872. if test "${enable_dependency_tracking+set}" = set; then
  1873. enableval="$enable_dependency_tracking"
  1874. fi;
  1875. if test "x$enable_dependency_tracking" != xno; then
  1876. am_depcomp="$ac_aux_dir/depcomp"
  1877. AMDEPBACKSLASH='\'
  1878. fi
  1879. if test "x$enable_dependency_tracking" != xno; then
  1880. AMDEP_TRUE=
  1881. AMDEP_FALSE='#'
  1882. else
  1883. AMDEP_TRUE='#'
  1884. AMDEP_FALSE=
  1885. fi
  1886. # Check whether --enable-debug or --disable-debug was given.
  1887. if test "${enable_debug+set}" = set; then
  1888. enableval="$enable_debug"
  1889. case $enableval in
  1890. yes)
  1891. kde_use_debug_code="yes"
  1892. kde_use_debug_define=no
  1893. ;;
  1894. full)
  1895. kde_use_debug_code="full"
  1896. kde_use_debug_define=no
  1897. ;;
  1898. *)
  1899. kde_use_debug_code="no"
  1900. kde_use_debug_define=yes
  1901. ;;
  1902. esac
  1903. else
  1904. kde_use_debug_code="no"
  1905. kde_use_debug_define=no
  1906. fi;
  1907. # Check whether --enable-dummyoption or --disable-dummyoption was given.
  1908. if test "${enable_dummyoption+set}" = set; then
  1909. enableval="$enable_dummyoption"
  1910. fi;
  1911. # Check whether --enable-strict or --disable-strict was given.
  1912. if test "${enable_strict+set}" = set; then
  1913. enableval="$enable_strict"
  1914. if test $enableval = "no"; then
  1915. kde_use_strict_options="no"
  1916. else
  1917. kde_use_strict_options="yes"
  1918. fi
  1919. else
  1920. kde_use_strict_options="no"
  1921. fi;
  1922. # Check whether --enable-warnings or --disable-warnings was given.
  1923. if test "${enable_warnings+set}" = set; then
  1924. enableval="$enable_warnings"
  1925. if test $enableval = "no"; then
  1926. kde_use_warnings="no"
  1927. else
  1928. kde_use_warnings="yes"
  1929. fi
  1930. else
  1931. kde_use_warnings="yes"
  1932. fi;
  1933. if test "$kde_use_debug_code" != "no"; then
  1934. kde_use_warnings=yes
  1935. fi
  1936. # Check whether --enable-profile or --disable-profile was given.
  1937. if test "${enable_profile+set}" = set; then
  1938. enableval="$enable_profile"
  1939. kde_use_profiling=$enableval
  1940. else
  1941. kde_use_profiling="no"
  1942. fi;
  1943. CFLAGS=" $CFLAGS"
  1944. ac_ext=c
  1945. ac_cpp='$CPP $CPPFLAGS'
  1946. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1947. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1948. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1949. if test -n "$ac_tool_prefix"; then
  1950. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1951. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1952. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1953. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1954. if test "${ac_cv_prog_CC+set}" = set; then
  1955. echo $ECHO_N "(cached) $ECHO_C" >&6
  1956. else
  1957. if test -n "$CC"; then
  1958. ac_cv_prog_CC="$CC" # Let the user override the test.
  1959. else
  1960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1961. for as_dir in $PATH
  1962. do
  1963. IFS=$as_save_IFS
  1964. test -z "$as_dir" && as_dir=.
  1965. for ac_exec_ext in '' $ac_executable_extensions; do
  1966. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1967. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1968. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1969. break 2
  1970. fi
  1971. done
  1972. done
  1973. fi
  1974. fi
  1975. CC=$ac_cv_prog_CC
  1976. if test -n "$CC"; then
  1977. echo "$as_me:$LINENO: result: $CC" >&5
  1978. echo "${ECHO_T}$CC" >&6
  1979. else
  1980. echo "$as_me:$LINENO: result: no" >&5
  1981. echo "${ECHO_T}no" >&6
  1982. fi
  1983. fi
  1984. if test -z "$ac_cv_prog_CC"; then
  1985. ac_ct_CC=$CC
  1986. # Extract the first word of "gcc", so it can be a program name with args.
  1987. set dummy gcc; ac_word=$2
  1988. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1989. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1990. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1991. echo $ECHO_N "(cached) $ECHO_C" >&6
  1992. else
  1993. if test -n "$ac_ct_CC"; then
  1994. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1995. else
  1996. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1997. for as_dir in $PATH
  1998. do
  1999. IFS=$as_save_IFS
  2000. test -z "$as_dir" && as_dir=.
  2001. for ac_exec_ext in '' $ac_executable_extensions; do
  2002. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2003. ac_cv_prog_ac_ct_CC="gcc"
  2004. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2005. break 2
  2006. fi
  2007. done
  2008. done
  2009. fi
  2010. fi
  2011. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2012. if test -n "$ac_ct_CC"; then
  2013. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2014. echo "${ECHO_T}$ac_ct_CC" >&6
  2015. else
  2016. echo "$as_me:$LINENO: result: no" >&5
  2017. echo "${ECHO_T}no" >&6
  2018. fi
  2019. CC=$ac_ct_CC
  2020. else
  2021. CC="$ac_cv_prog_CC"
  2022. fi
  2023. if test -z "$CC"; then
  2024. if test -n "$ac_tool_prefix"; then
  2025. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2026. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2027. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2028. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2029. if test "${ac_cv_prog_CC+set}" = set; then
  2030. echo $ECHO_N "(cached) $ECHO_C" >&6
  2031. else
  2032. if test -n "$CC"; then
  2033. ac_cv_prog_CC="$CC" # Let the user override the test.
  2034. else
  2035. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2036. for as_dir in $PATH
  2037. do
  2038. IFS=$as_save_IFS
  2039. test -z "$as_dir" && as_dir=.
  2040. for ac_exec_ext in '' $ac_executable_extensions; do
  2041. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2042. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2043. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2044. break 2
  2045. fi
  2046. done
  2047. done
  2048. fi
  2049. fi
  2050. CC=$ac_cv_prog_CC
  2051. if test -n "$CC"; then
  2052. echo "$as_me:$LINENO: result: $CC" >&5
  2053. echo "${ECHO_T}$CC" >&6
  2054. else
  2055. echo "$as_me:$LINENO: result: no" >&5
  2056. echo "${ECHO_T}no" >&6
  2057. fi
  2058. fi
  2059. if test -z "$ac_cv_prog_CC"; then
  2060. ac_ct_CC=$CC
  2061. # Extract the first word of "cc", so it can be a program name with args.
  2062. set dummy cc; ac_word=$2
  2063. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2064. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2065. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2066. echo $ECHO_N "(cached) $ECHO_C" >&6
  2067. else
  2068. if test -n "$ac_ct_CC"; then
  2069. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2070. else
  2071. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2072. for as_dir in $PATH
  2073. do
  2074. IFS=$as_save_IFS
  2075. test -z "$as_dir" && as_dir=.
  2076. for ac_exec_ext in '' $ac_executable_extensions; do
  2077. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2078. ac_cv_prog_ac_ct_CC="cc"
  2079. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2080. break 2
  2081. fi
  2082. done
  2083. done
  2084. fi
  2085. fi
  2086. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2087. if test -n "$ac_ct_CC"; then
  2088. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2089. echo "${ECHO_T}$ac_ct_CC" >&6
  2090. else
  2091. echo "$as_me:$LINENO: result: no" >&5
  2092. echo "${ECHO_T}no" >&6
  2093. fi
  2094. CC=$ac_ct_CC
  2095. else
  2096. CC="$ac_cv_prog_CC"
  2097. fi
  2098. fi
  2099. if test -z "$CC"; then
  2100. # Extract the first word of "cc", so it can be a program name with args.
  2101. set dummy cc; ac_word=$2
  2102. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2103. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2104. if test "${ac_cv_prog_CC+set}" = set; then
  2105. echo $ECHO_N "(cached) $ECHO_C" >&6
  2106. else
  2107. if test -n "$CC"; then
  2108. ac_cv_prog_CC="$CC" # Let the user override the test.
  2109. else
  2110. ac_prog_rejected=no
  2111. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2112. for as_dir in $PATH
  2113. do
  2114. IFS=$as_save_IFS
  2115. test -z "$as_dir" && as_dir=.
  2116. for ac_exec_ext in '' $ac_executable_extensions; do
  2117. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2118. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2119. ac_prog_rejected=yes
  2120. continue
  2121. fi
  2122. ac_cv_prog_CC="cc"
  2123. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2124. break 2
  2125. fi
  2126. done
  2127. done
  2128. if test $ac_prog_rejected = yes; then
  2129. # We found a bogon in the path, so make sure we never use it.
  2130. set dummy $ac_cv_prog_CC
  2131. shift
  2132. if test $# != 0; then
  2133. # We chose a different compiler from the bogus one.
  2134. # However, it has the same basename, so the bogon will be chosen
  2135. # first if we set CC to just the basename; use the full file name.
  2136. shift
  2137. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2138. fi
  2139. fi
  2140. fi
  2141. fi
  2142. CC=$ac_cv_prog_CC
  2143. if test -n "$CC"; then
  2144. echo "$as_me:$LINENO: result: $CC" >&5
  2145. echo "${ECHO_T}$CC" >&6
  2146. else
  2147. echo "$as_me:$LINENO: result: no" >&5
  2148. echo "${ECHO_T}no" >&6
  2149. fi
  2150. fi
  2151. if test -z "$CC"; then
  2152. if test -n "$ac_tool_prefix"; then
  2153. for ac_prog in cl
  2154. do
  2155. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2156. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2157. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2158. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2159. if test "${ac_cv_prog_CC+set}" = set; then
  2160. echo $ECHO_N "(cached) $ECHO_C" >&6
  2161. else
  2162. if test -n "$CC"; then
  2163. ac_cv_prog_CC="$CC" # Let the user override the test.
  2164. else
  2165. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2166. for as_dir in $PATH
  2167. do
  2168. IFS=$as_save_IFS
  2169. test -z "$as_dir" && as_dir=.
  2170. for ac_exec_ext in '' $ac_executable_extensions; do
  2171. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2172. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2173. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2174. break 2
  2175. fi
  2176. done
  2177. done
  2178. fi
  2179. fi
  2180. CC=$ac_cv_prog_CC
  2181. if test -n "$CC"; then
  2182. echo "$as_me:$LINENO: result: $CC" >&5
  2183. echo "${ECHO_T}$CC" >&6
  2184. else
  2185. echo "$as_me:$LINENO: result: no" >&5
  2186. echo "${ECHO_T}no" >&6
  2187. fi
  2188. test -n "$CC" && break
  2189. done
  2190. fi
  2191. if test -z "$CC"; then
  2192. ac_ct_CC=$CC
  2193. for ac_prog in cl
  2194. do
  2195. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2196. set dummy $ac_prog; ac_word=$2
  2197. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2198. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2199. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2200. echo $ECHO_N "(cached) $ECHO_C" >&6
  2201. else
  2202. if test -n "$ac_ct_CC"; then
  2203. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2204. else
  2205. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2206. for as_dir in $PATH
  2207. do
  2208. IFS=$as_save_IFS
  2209. test -z "$as_dir" && as_dir=.
  2210. for ac_exec_ext in '' $ac_executable_extensions; do
  2211. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2212. ac_cv_prog_ac_ct_CC="$ac_prog"
  2213. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2214. break 2
  2215. fi
  2216. done
  2217. done
  2218. fi
  2219. fi
  2220. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2221. if test -n "$ac_ct_CC"; then
  2222. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2223. echo "${ECHO_T}$ac_ct_CC" >&6
  2224. else
  2225. echo "$as_me:$LINENO: result: no" >&5
  2226. echo "${ECHO_T}no" >&6
  2227. fi
  2228. test -n "$ac_ct_CC" && break
  2229. done
  2230. CC=$ac_ct_CC
  2231. fi
  2232. fi
  2233. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2234. See \`config.log' for more details." >&5
  2235. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2236. See \`config.log' for more details." >&2;}
  2237. { (exit 1); exit 1; }; }
  2238. # Provide some information about the compiler.
  2239. echo "$as_me:$LINENO:" \
  2240. "checking for C compiler version" >&5
  2241. ac_compiler=`set X $ac_compile; echo $2`
  2242. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2243. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2244. ac_status=$?
  2245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2246. (exit $ac_status); }
  2247. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2248. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2249. ac_status=$?
  2250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2251. (exit $ac_status); }
  2252. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2253. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2254. ac_status=$?
  2255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2256. (exit $ac_status); }
  2257. cat >conftest.$ac_ext <<_ACEOF
  2258. /* confdefs.h. */
  2259. _ACEOF
  2260. cat confdefs.h >>conftest.$ac_ext
  2261. cat >>conftest.$ac_ext <<_ACEOF
  2262. /* end confdefs.h. */
  2263. int
  2264. main ()
  2265. {
  2266. ;
  2267. return 0;
  2268. }
  2269. _ACEOF
  2270. ac_clean_files_save=$ac_clean_files
  2271. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2272. # Try to create an executable without -o first, disregard a.out.
  2273. # It will help us diagnose broken compilers, and finding out an intuition
  2274. # of exeext.
  2275. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2276. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  2277. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2278. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  2279. (eval $ac_link_default) 2>&5
  2280. ac_status=$?
  2281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2282. (exit $ac_status); }; then
  2283. # Find the output, starting from the most likely. This scheme is
  2284. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  2285. # resort.
  2286. # Be careful to initialize this variable, since it used to be cached.
  2287. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  2288. ac_cv_exeext=
  2289. # b.out is created by i960 compilers.
  2290. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  2291. do
  2292. test -f "$ac_file" || continue
  2293. case $ac_file in
  2294. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  2295. ;;
  2296. conftest.$ac_ext )
  2297. # This is the source file.
  2298. ;;
  2299. [ab].out )
  2300. # We found the default executable, but exeext='' is most
  2301. # certainly right.
  2302. break;;
  2303. *.* )
  2304. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2305. # FIXME: I believe we export ac_cv_exeext for Libtool,
  2306. # but it would be cool to find out if it's true. Does anybody
  2307. # maintain Libtool? --akim.
  2308. export ac_cv_exeext
  2309. break;;
  2310. * )
  2311. break;;
  2312. esac
  2313. done
  2314. else
  2315. echo "$as_me: failed program was:" >&5
  2316. sed 's/^/| /' conftest.$ac_ext >&5
  2317. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2318. See \`config.log' for more details." >&5
  2319. echo "$as_me: error: C compiler cannot create executables
  2320. See \`config.log' for more details." >&2;}
  2321. { (exit 77); exit 77; }; }
  2322. fi
  2323. ac_exeext=$ac_cv_exeext
  2324. echo "$as_me:$LINENO: result: $ac_file" >&5
  2325. echo "${ECHO_T}$ac_file" >&6
  2326. # Check the compiler produces executables we can run. If not, either
  2327. # the compiler is broken, or we cross compile.
  2328. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2329. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  2330. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2331. # If not cross compiling, check that we can run a simple program.
  2332. if test "$cross_compiling" != yes; then
  2333. if { ac_try='./$ac_file'
  2334. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2335. (eval $ac_try) 2>&5
  2336. ac_status=$?
  2337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2338. (exit $ac_status); }; }; then
  2339. cross_compiling=no
  2340. else
  2341. if test "$cross_compiling" = maybe; then
  2342. cross_compiling=yes
  2343. else
  2344. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2345. If you meant to cross compile, use \`--host'.
  2346. See \`config.log' for more details." >&5
  2347. echo "$as_me: error: cannot run C compiled programs.
  2348. If you meant to cross compile, use \`--host'.
  2349. See \`config.log' for more details." >&2;}
  2350. { (exit 1); exit 1; }; }
  2351. fi
  2352. fi
  2353. fi
  2354. echo "$as_me:$LINENO: result: yes" >&5
  2355. echo "${ECHO_T}yes" >&6
  2356. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2357. ac_clean_files=$ac_clean_files_save
  2358. # Check the compiler produces executables we can run. If not, either
  2359. # the compiler is broken, or we cross compile.
  2360. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2361. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2362. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2363. echo "${ECHO_T}$cross_compiling" >&6
  2364. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2365. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2366. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2367. (eval $ac_link) 2>&5
  2368. ac_status=$?
  2369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2370. (exit $ac_status); }; then
  2371. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2372. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2373. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2374. # `rm'.
  2375. for ac_file in conftest.exe conftest conftest.*; do
  2376. test -f "$ac_file" || continue
  2377. case $ac_file in
  2378. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2379. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2380. export ac_cv_exeext
  2381. break;;
  2382. * ) break;;
  2383. esac
  2384. done
  2385. else
  2386. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2387. See \`config.log' for more details." >&5
  2388. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2389. See \`config.log' for more details." >&2;}
  2390. { (exit 1); exit 1; }; }
  2391. fi
  2392. rm -f conftest$ac_cv_exeext
  2393. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2394. echo "${ECHO_T}$ac_cv_exeext" >&6
  2395. rm -f conftest.$ac_ext
  2396. EXEEXT=$ac_cv_exeext
  2397. ac_exeext=$EXEEXT
  2398. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2399. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2400. if test "${ac_cv_objext+set}" = set; then
  2401. echo $ECHO_N "(cached) $ECHO_C" >&6
  2402. else
  2403. cat >conftest.$ac_ext <<_ACEOF
  2404. /* confdefs.h. */
  2405. _ACEOF
  2406. cat confdefs.h >>conftest.$ac_ext
  2407. cat >>conftest.$ac_ext <<_ACEOF
  2408. /* end confdefs.h. */
  2409. int
  2410. main ()
  2411. {
  2412. ;
  2413. return 0;
  2414. }
  2415. _ACEOF
  2416. rm -f conftest.o conftest.obj
  2417. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2418. (eval $ac_compile) 2>&5
  2419. ac_status=$?
  2420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2421. (exit $ac_status); }; then
  2422. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2423. case $ac_file in
  2424. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2425. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2426. break;;
  2427. esac
  2428. done
  2429. else
  2430. echo "$as_me: failed program was:" >&5
  2431. sed 's/^/| /' conftest.$ac_ext >&5
  2432. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2433. See \`config.log' for more details." >&5
  2434. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2435. See \`config.log' for more details." >&2;}
  2436. { (exit 1); exit 1; }; }
  2437. fi
  2438. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2439. fi
  2440. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2441. echo "${ECHO_T}$ac_cv_objext" >&6
  2442. OBJEXT=$ac_cv_objext
  2443. ac_objext=$OBJEXT
  2444. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2445. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2446. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2447. echo $ECHO_N "(cached) $ECHO_C" >&6
  2448. else
  2449. cat >conftest.$ac_ext <<_ACEOF
  2450. /* confdefs.h. */
  2451. _ACEOF
  2452. cat confdefs.h >>conftest.$ac_ext
  2453. cat >>conftest.$ac_ext <<_ACEOF
  2454. /* end confdefs.h. */
  2455. int
  2456. main ()
  2457. {
  2458. #ifndef __GNUC__
  2459. choke me
  2460. #endif
  2461. ;
  2462. return 0;
  2463. }
  2464. _ACEOF
  2465. rm -f conftest.$ac_objext
  2466. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2467. (eval $ac_compile) 2>conftest.er1
  2468. ac_status=$?
  2469. grep -v '^ *+' conftest.er1 >conftest.err
  2470. rm -f conftest.er1
  2471. cat conftest.err >&5
  2472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2473. (exit $ac_status); } &&
  2474. { ac_try='test -z "$ac_c_werror_flag"
  2475. || test ! -s conftest.err'
  2476. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2477. (eval $ac_try) 2>&5
  2478. ac_status=$?
  2479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2480. (exit $ac_status); }; } &&
  2481. { ac_try='test -s conftest.$ac_objext'
  2482. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2483. (eval $ac_try) 2>&5
  2484. ac_status=$?
  2485. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2486. (exit $ac_status); }; }; then
  2487. ac_compiler_gnu=yes
  2488. else
  2489. echo "$as_me: failed program was:" >&5
  2490. sed 's/^/| /' conftest.$ac_ext >&5
  2491. ac_compiler_gnu=no
  2492. fi
  2493. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2494. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2495. fi
  2496. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2497. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2498. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2499. ac_test_CFLAGS=${CFLAGS+set}
  2500. ac_save_CFLAGS=$CFLAGS
  2501. CFLAGS="-g"
  2502. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2503. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2504. if test "${ac_cv_prog_cc_g+set}" = set; then
  2505. echo $ECHO_N "(cached) $ECHO_C" >&6
  2506. else
  2507. cat >conftest.$ac_ext <<_ACEOF
  2508. /* confdefs.h. */
  2509. _ACEOF
  2510. cat confdefs.h >>conftest.$ac_ext
  2511. cat >>conftest.$ac_ext <<_ACEOF
  2512. /* end confdefs.h. */
  2513. int
  2514. main ()
  2515. {
  2516. ;
  2517. return 0;
  2518. }
  2519. _ACEOF
  2520. rm -f conftest.$ac_objext
  2521. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2522. (eval $ac_compile) 2>conftest.er1
  2523. ac_status=$?
  2524. grep -v '^ *+' conftest.er1 >conftest.err
  2525. rm -f conftest.er1
  2526. cat conftest.err >&5
  2527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2528. (exit $ac_status); } &&
  2529. { ac_try='test -z "$ac_c_werror_flag"
  2530. || test ! -s conftest.err'
  2531. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2532. (eval $ac_try) 2>&5
  2533. ac_status=$?
  2534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2535. (exit $ac_status); }; } &&
  2536. { ac_try='test -s conftest.$ac_objext'
  2537. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2538. (eval $ac_try) 2>&5
  2539. ac_status=$?
  2540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2541. (exit $ac_status); }; }; then
  2542. ac_cv_prog_cc_g=yes
  2543. else
  2544. echo "$as_me: failed program was:" >&5
  2545. sed 's/^/| /' conftest.$ac_ext >&5
  2546. ac_cv_prog_cc_g=no
  2547. fi
  2548. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2549. fi
  2550. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2551. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2552. if test "$ac_test_CFLAGS" = set; then
  2553. CFLAGS=$ac_save_CFLAGS
  2554. elif test $ac_cv_prog_cc_g = yes; then
  2555. if test "$GCC" = yes; then
  2556. CFLAGS="-g -O2"
  2557. else
  2558. CFLAGS="-g"
  2559. fi
  2560. else
  2561. if test "$GCC" = yes; then
  2562. CFLAGS="-O2"
  2563. else
  2564. CFLAGS=
  2565. fi
  2566. fi
  2567. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2568. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2569. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2570. echo $ECHO_N "(cached) $ECHO_C" >&6
  2571. else
  2572. ac_cv_prog_cc_stdc=no
  2573. ac_save_CC=$CC
  2574. cat >conftest.$ac_ext <<_ACEOF
  2575. /* confdefs.h. */
  2576. _ACEOF
  2577. cat confdefs.h >>conftest.$ac_ext
  2578. cat >>conftest.$ac_ext <<_ACEOF
  2579. /* end confdefs.h. */
  2580. #include <stdarg.h>
  2581. #include <stdio.h>
  2582. #include <sys/types.h>
  2583. #include <sys/stat.h>
  2584. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2585. struct buf { int x; };
  2586. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2587. static char *e (p, i)
  2588. char **p;
  2589. int i;
  2590. {
  2591. return p[i];
  2592. }
  2593. static char *f (char * (*g) (char **, int), char **p, ...)
  2594. {
  2595. char *s;
  2596. va_list v;
  2597. va_start (v,p);
  2598. s = g (p, va_arg (v,int));
  2599. va_end (v);
  2600. return s;
  2601. }
  2602. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2603. function prototypes and stuff, but not '\xHH' hex character constants.
  2604. These don't provoke an error unfortunately, instead are silently treated
  2605. as 'x'. The following induces an error, until -std1 is added to get
  2606. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2607. array size at least. It's necessary to write '\x00'==0 to get something
  2608. that's true only with -std1. */
  2609. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2610. int test (int i, double x);
  2611. struct s1 {int (*f) (int a);};
  2612. struct s2 {int (*f) (double a);};
  2613. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2614. int argc;
  2615. char **argv;
  2616. int
  2617. main ()
  2618. {
  2619. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2620. ;
  2621. return 0;
  2622. }
  2623. _ACEOF
  2624. # Don't try gcc -ansi; that turns off useful extensions and
  2625. # breaks some systems' header files.
  2626. # AIX -qlanglvl=ansi
  2627. # Ultrix and OSF/1 -std1
  2628. # HP-UX 10.20 and later -Ae
  2629. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2630. # SVR4 -Xc -D__EXTENSIONS__
  2631. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2632. do
  2633. CC="$ac_save_CC $ac_arg"
  2634. rm -f conftest.$ac_objext
  2635. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2636. (eval $ac_compile) 2>conftest.er1
  2637. ac_status=$?
  2638. grep -v '^ *+' conftest.er1 >conftest.err
  2639. rm -f conftest.er1
  2640. cat conftest.err >&5
  2641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2642. (exit $ac_status); } &&
  2643. { ac_try='test -z "$ac_c_werror_flag"
  2644. || test ! -s conftest.err'
  2645. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2646. (eval $ac_try) 2>&5
  2647. ac_status=$?
  2648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2649. (exit $ac_status); }; } &&
  2650. { ac_try='test -s conftest.$ac_objext'
  2651. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2652. (eval $ac_try) 2>&5
  2653. ac_status=$?
  2654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2655. (exit $ac_status); }; }; then
  2656. ac_cv_prog_cc_stdc=$ac_arg
  2657. break
  2658. else
  2659. echo "$as_me: failed program was:" >&5
  2660. sed 's/^/| /' conftest.$ac_ext >&5
  2661. fi
  2662. rm -f conftest.err conftest.$ac_objext
  2663. done
  2664. rm -f conftest.$ac_ext conftest.$ac_objext
  2665. CC=$ac_save_CC
  2666. fi
  2667. case "x$ac_cv_prog_cc_stdc" in
  2668. x|xno)
  2669. echo "$as_me:$LINENO: result: none needed" >&5
  2670. echo "${ECHO_T}none needed" >&6 ;;
  2671. *)
  2672. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2673. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2674. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2675. esac
  2676. # Some people use a C++ compiler to compile C. Since we use `exit',
  2677. # in C++ we need to declare it. In case someone uses the same compiler
  2678. # for both compiling C and C++ we need to have the C++ compiler decide
  2679. # the declaration of exit, since it's the most demanding environment.
  2680. cat >conftest.$ac_ext <<_ACEOF
  2681. #ifndef __cplusplus
  2682. choke me
  2683. #endif
  2684. _ACEOF
  2685. rm -f conftest.$ac_objext
  2686. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2687. (eval $ac_compile) 2>conftest.er1
  2688. ac_status=$?
  2689. grep -v '^ *+' conftest.er1 >conftest.err
  2690. rm -f conftest.er1
  2691. cat conftest.err >&5
  2692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2693. (exit $ac_status); } &&
  2694. { ac_try='test -z "$ac_c_werror_flag"
  2695. || test ! -s conftest.err'
  2696. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2697. (eval $ac_try) 2>&5
  2698. ac_status=$?
  2699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2700. (exit $ac_status); }; } &&
  2701. { ac_try='test -s conftest.$ac_objext'
  2702. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2703. (eval $ac_try) 2>&5
  2704. ac_status=$?
  2705. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2706. (exit $ac_status); }; }; then
  2707. for ac_declaration in \
  2708. '' \
  2709. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2710. 'extern "C" void std::exit (int); using std::exit;' \
  2711. 'extern "C" void exit (int) throw ();' \
  2712. 'extern "C" void exit (int);' \
  2713. 'void exit (int);'
  2714. do
  2715. cat >conftest.$ac_ext <<_ACEOF
  2716. /* confdefs.h. */
  2717. _ACEOF
  2718. cat confdefs.h >>conftest.$ac_ext
  2719. cat >>conftest.$ac_ext <<_ACEOF
  2720. /* end confdefs.h. */
  2721. $ac_declaration
  2722. #include <stdlib.h>
  2723. int
  2724. main ()
  2725. {
  2726. exit (42);
  2727. ;
  2728. return 0;
  2729. }
  2730. _ACEOF
  2731. rm -f conftest.$ac_objext
  2732. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2733. (eval $ac_compile) 2>conftest.er1
  2734. ac_status=$?
  2735. grep -v '^ *+' conftest.er1 >conftest.err
  2736. rm -f conftest.er1
  2737. cat conftest.err >&5
  2738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2739. (exit $ac_status); } &&
  2740. { ac_try='test -z "$ac_c_werror_flag"
  2741. || test ! -s conftest.err'
  2742. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2743. (eval $ac_try) 2>&5
  2744. ac_status=$?
  2745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2746. (exit $ac_status); }; } &&
  2747. { ac_try='test -s conftest.$ac_objext'
  2748. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2749. (eval $ac_try) 2>&5
  2750. ac_status=$?
  2751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2752. (exit $ac_status); }; }; then
  2753. :
  2754. else
  2755. echo "$as_me: failed program was:" >&5
  2756. sed 's/^/| /' conftest.$ac_ext >&5
  2757. continue
  2758. fi
  2759. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2760. cat >conftest.$ac_ext <<_ACEOF
  2761. /* confdefs.h. */
  2762. _ACEOF
  2763. cat confdefs.h >>conftest.$ac_ext
  2764. cat >>conftest.$ac_ext <<_ACEOF
  2765. /* end confdefs.h. */
  2766. $ac_declaration
  2767. int
  2768. main ()
  2769. {
  2770. exit (42);
  2771. ;
  2772. return 0;
  2773. }
  2774. _ACEOF
  2775. rm -f conftest.$ac_objext
  2776. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2777. (eval $ac_compile) 2>conftest.er1
  2778. ac_status=$?
  2779. grep -v '^ *+' conftest.er1 >conftest.err
  2780. rm -f conftest.er1
  2781. cat conftest.err >&5
  2782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2783. (exit $ac_status); } &&
  2784. { ac_try='test -z "$ac_c_werror_flag"
  2785. || test ! -s conftest.err'
  2786. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2787. (eval $ac_try) 2>&5
  2788. ac_status=$?
  2789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2790. (exit $ac_status); }; } &&
  2791. { ac_try='test -s conftest.$ac_objext'
  2792. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2793. (eval $ac_try) 2>&5
  2794. ac_status=$?
  2795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2796. (exit $ac_status); }; }; then
  2797. break
  2798. else
  2799. echo "$as_me: failed program was:" >&5
  2800. sed 's/^/| /' conftest.$ac_ext >&5
  2801. fi
  2802. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2803. done
  2804. rm -f conftest*
  2805. if test -n "$ac_declaration"; then
  2806. echo '#ifdef __cplusplus' >>confdefs.h
  2807. echo $ac_declaration >>confdefs.h
  2808. echo '#endif' >>confdefs.h
  2809. fi
  2810. else
  2811. echo "$as_me: failed program was:" >&5
  2812. sed 's/^/| /' conftest.$ac_ext >&5
  2813. fi
  2814. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2815. ac_ext=c
  2816. ac_cpp='$CPP $CPPFLAGS'
  2817. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2818. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2819. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2820. depcc="$CC" am_compiler_list=
  2821. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2822. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2823. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  2824. echo $ECHO_N "(cached) $ECHO_C" >&6
  2825. else
  2826. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2827. # We make a subdir and do the tests there. Otherwise we can end up
  2828. # making bogus files that we don't know about and never remove. For
  2829. # instance it was reported that on HP-UX the gcc test will end up
  2830. # making a dummy file named `D' -- because `-MD' means `put the output
  2831. # in D'.
  2832. mkdir conftest.dir
  2833. # Copy depcomp to subdir because otherwise we won't find it if we're
  2834. # using a relative directory.
  2835. cp "$am_depcomp" conftest.dir
  2836. cd conftest.dir
  2837. # We will build objects and dependencies in a subdirectory because
  2838. # it helps to detect inapplicable dependency modes. For instance
  2839. # both Tru64's cc and ICC support -MD to output dependencies as a
  2840. # side effect of compilation, but ICC will put the dependencies in
  2841. # the current directory while Tru64 will put them in the object
  2842. # directory.
  2843. mkdir sub
  2844. am_cv_CC_dependencies_compiler_type=none
  2845. if test "$am_compiler_list" = ""; then
  2846. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2847. fi
  2848. for depmode in $am_compiler_list; do
  2849. # Setup a source with many dependencies, because some compilers
  2850. # like to wrap large dependency lists on column 80 (with \), and
  2851. # we should not choose a depcomp mode which is confused by this.
  2852. #
  2853. # We need to recreate these files for each test, as the compiler may
  2854. # overwrite some of them when testing with obscure command lines.
  2855. # This happens at least with the AIX C compiler.
  2856. : > sub/conftest.c
  2857. for i in 1 2 3 4 5 6; do
  2858. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2859. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2860. # Solaris 8's {/usr,}/bin/sh.
  2861. touch sub/conftst$i.h
  2862. done
  2863. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2864. case $depmode in
  2865. nosideeffect)
  2866. # after this tag, mechanisms are not by side-effect, so they'll
  2867. # only be used when explicitly requested
  2868. if test "x$enable_dependency_tracking" = xyes; then
  2869. continue
  2870. else
  2871. break
  2872. fi
  2873. ;;
  2874. none) break ;;
  2875. esac
  2876. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2877. # mode. It turns out that the SunPro C++ compiler does not properly
  2878. # handle `-M -o', and we need to detect this.
  2879. if depmode=$depmode \
  2880. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2881. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2882. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2883. >/dev/null 2>conftest.err &&
  2884. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2885. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2886. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2887. # icc doesn't choke on unknown options, it will just issue warnings
  2888. # or remarks (even with -Werror). So we grep stderr for any message
  2889. # that says an option was ignored or not supported.
  2890. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2891. # icc: Command line warning: ignoring option '-M'; no argument required
  2892. # The diagnosis changed in icc 8.0:
  2893. # icc: Command line remark: option '-MP' not supported
  2894. if (grep 'ignoring option' conftest.err ||
  2895. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2896. am_cv_CC_dependencies_compiler_type=$depmode
  2897. break
  2898. fi
  2899. fi
  2900. done
  2901. cd ..
  2902. rm -rf conftest.dir
  2903. else
  2904. am_cv_CC_dependencies_compiler_type=none
  2905. fi
  2906. fi
  2907. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  2908. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  2909. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  2910. if
  2911. test "x$enable_dependency_tracking" != xno \
  2912. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  2913. am__fastdepCC_TRUE=
  2914. am__fastdepCC_FALSE='#'
  2915. else
  2916. am__fastdepCC_TRUE='#'
  2917. am__fastdepCC_FALSE=
  2918. fi
  2919. ac_ext=c
  2920. ac_cpp='$CPP $CPPFLAGS'
  2921. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2922. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2923. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2924. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2925. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2926. # On Suns, sometimes $CPP names a directory.
  2927. if test -n "$CPP" && test -d "$CPP"; then
  2928. CPP=
  2929. fi
  2930. if test -z "$CPP"; then
  2931. if test "${ac_cv_prog_CPP+set}" = set; then
  2932. echo $ECHO_N "(cached) $ECHO_C" >&6
  2933. else
  2934. # Double quotes because CPP needs to be expanded
  2935. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2936. do
  2937. ac_preproc_ok=false
  2938. for ac_c_preproc_warn_flag in '' yes
  2939. do
  2940. # Use a header file that comes with gcc, so configuring glibc
  2941. # with a fresh cross-compiler works.
  2942. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2943. # <limits.h> exists even on freestanding compilers.
  2944. # On the NeXT, cc -E runs the code through the compiler's parser,
  2945. # not just through cpp. "Syntax error" is here to catch this case.
  2946. cat >conftest.$ac_ext <<_ACEOF
  2947. /* confdefs.h. */
  2948. _ACEOF
  2949. cat confdefs.h >>conftest.$ac_ext
  2950. cat >>conftest.$ac_ext <<_ACEOF
  2951. /* end confdefs.h. */
  2952. #ifdef __STDC__
  2953. # include <limits.h>
  2954. #else
  2955. # include <assert.h>
  2956. #endif
  2957. Syntax error
  2958. _ACEOF
  2959. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2960. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2961. ac_status=$?
  2962. grep -v '^ *+' conftest.er1 >conftest.err
  2963. rm -f conftest.er1
  2964. cat conftest.err >&5
  2965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2966. (exit $ac_status); } >/dev/null; then
  2967. if test -s conftest.err; then
  2968. ac_cpp_err=$ac_c_preproc_warn_flag
  2969. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2970. else
  2971. ac_cpp_err=
  2972. fi
  2973. else
  2974. ac_cpp_err=yes
  2975. fi
  2976. if test -z "$ac_cpp_err"; then
  2977. :
  2978. else
  2979. echo "$as_me: failed program was:" >&5
  2980. sed 's/^/| /' conftest.$ac_ext >&5
  2981. # Broken: fails on valid input.
  2982. continue
  2983. fi
  2984. rm -f conftest.err conftest.$ac_ext
  2985. # OK, works on sane cases. Now check whether non-existent headers
  2986. # can be detected and how.
  2987. cat >conftest.$ac_ext <<_ACEOF
  2988. /* confdefs.h. */
  2989. _ACEOF
  2990. cat confdefs.h >>conftest.$ac_ext
  2991. cat >>conftest.$ac_ext <<_ACEOF
  2992. /* end confdefs.h. */
  2993. #include <ac_nonexistent.h>
  2994. _ACEOF
  2995. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2996. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2997. ac_status=$?
  2998. grep -v '^ *+' conftest.er1 >conftest.err
  2999. rm -f conftest.er1
  3000. cat conftest.err >&5
  3001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3002. (exit $ac_status); } >/dev/null; then
  3003. if test -s conftest.err; then
  3004. ac_cpp_err=$ac_c_preproc_warn_flag
  3005. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3006. else
  3007. ac_cpp_err=
  3008. fi
  3009. else
  3010. ac_cpp_err=yes
  3011. fi
  3012. if test -z "$ac_cpp_err"; then
  3013. # Broken: success on invalid input.
  3014. continue
  3015. else
  3016. echo "$as_me: failed program was:" >&5
  3017. sed 's/^/| /' conftest.$ac_ext >&5
  3018. # Passes both tests.
  3019. ac_preproc_ok=:
  3020. break
  3021. fi
  3022. rm -f conftest.err conftest.$ac_ext
  3023. done
  3024. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3025. rm -f conftest.err conftest.$ac_ext
  3026. if $ac_preproc_ok; then
  3027. break
  3028. fi
  3029. done
  3030. ac_cv_prog_CPP=$CPP
  3031. fi
  3032. CPP=$ac_cv_prog_CPP
  3033. else
  3034. ac_cv_prog_CPP=$CPP
  3035. fi
  3036. echo "$as_me:$LINENO: result: $CPP" >&5
  3037. echo "${ECHO_T}$CPP" >&6
  3038. ac_preproc_ok=false
  3039. for ac_c_preproc_warn_flag in '' yes
  3040. do
  3041. # Use a header file that comes with gcc, so configuring glibc
  3042. # with a fresh cross-compiler works.
  3043. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3044. # <limits.h> exists even on freestanding compilers.
  3045. # On the NeXT, cc -E runs the code through the compiler's parser,
  3046. # not just through cpp. "Syntax error" is here to catch this case.
  3047. cat >conftest.$ac_ext <<_ACEOF
  3048. /* confdefs.h. */
  3049. _ACEOF
  3050. cat confdefs.h >>conftest.$ac_ext
  3051. cat >>conftest.$ac_ext <<_ACEOF
  3052. /* end confdefs.h. */
  3053. #ifdef __STDC__
  3054. # include <limits.h>
  3055. #else
  3056. # include <assert.h>
  3057. #endif
  3058. Syntax error
  3059. _ACEOF
  3060. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3061. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3062. ac_status=$?
  3063. grep -v '^ *+' conftest.er1 >conftest.err
  3064. rm -f conftest.er1
  3065. cat conftest.err >&5
  3066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3067. (exit $ac_status); } >/dev/null; then
  3068. if test -s conftest.err; then
  3069. ac_cpp_err=$ac_c_preproc_warn_flag
  3070. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3071. else
  3072. ac_cpp_err=
  3073. fi
  3074. else
  3075. ac_cpp_err=yes
  3076. fi
  3077. if test -z "$ac_cpp_err"; then
  3078. :
  3079. else
  3080. echo "$as_me: failed program was:" >&5
  3081. sed 's/^/| /' conftest.$ac_ext >&5
  3082. # Broken: fails on valid input.
  3083. continue
  3084. fi
  3085. rm -f conftest.err conftest.$ac_ext
  3086. # OK, works on sane cases. Now check whether non-existent headers
  3087. # can be detected and how.
  3088. cat >conftest.$ac_ext <<_ACEOF
  3089. /* confdefs.h. */
  3090. _ACEOF
  3091. cat confdefs.h >>conftest.$ac_ext
  3092. cat >>conftest.$ac_ext <<_ACEOF
  3093. /* end confdefs.h. */
  3094. #include <ac_nonexistent.h>
  3095. _ACEOF
  3096. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3097. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3098. ac_status=$?
  3099. grep -v '^ *+' conftest.er1 >conftest.err
  3100. rm -f conftest.er1
  3101. cat conftest.err >&5
  3102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3103. (exit $ac_status); } >/dev/null; then
  3104. if test -s conftest.err; then
  3105. ac_cpp_err=$ac_c_preproc_warn_flag
  3106. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3107. else
  3108. ac_cpp_err=
  3109. fi
  3110. else
  3111. ac_cpp_err=yes
  3112. fi
  3113. if test -z "$ac_cpp_err"; then
  3114. # Broken: success on invalid input.
  3115. continue
  3116. else
  3117. echo "$as_me: failed program was:" >&5
  3118. sed 's/^/| /' conftest.$ac_ext >&5
  3119. # Passes both tests.
  3120. ac_preproc_ok=:
  3121. break
  3122. fi
  3123. rm -f conftest.err conftest.$ac_ext
  3124. done
  3125. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3126. rm -f conftest.err conftest.$ac_ext
  3127. if $ac_preproc_ok; then
  3128. :
  3129. else
  3130. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3131. See \`config.log' for more details." >&5
  3132. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3133. See \`config.log' for more details." >&2;}
  3134. { (exit 1); exit 1; }; }
  3135. fi
  3136. ac_ext=c
  3137. ac_cpp='$CPP $CPPFLAGS'
  3138. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3139. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3140. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3141. if test "$GCC" = "yes"; then
  3142. if test "$kde_use_debug_code" != "no"; then
  3143. if test $kde_use_debug_code = "full"; then
  3144. CFLAGS="-g3 -fno-inline $CFLAGS"
  3145. else
  3146. CFLAGS="-g -O2 $CFLAGS"
  3147. fi
  3148. else
  3149. CFLAGS="-O2 $CFLAGS"
  3150. fi
  3151. fi
  3152. if test "$kde_use_debug_define" = "yes"; then
  3153. CFLAGS="-DNDEBUG $CFLAGS"
  3154. fi
  3155. case "$host" in
  3156. *-*-sysv4.2uw*) CFLAGS="-D_UNIXWARE $CFLAGS";;
  3157. *-*-sysv5uw7*) CFLAGS="-D_UNIXWARE7 $CFLAGS";;
  3158. esac
  3159. if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then
  3160. LDFLAGS=""
  3161. fi
  3162. CXXFLAGS=" $CXXFLAGS"
  3163. ac_ext=cc
  3164. ac_cpp='$CXXCPP $CPPFLAGS'
  3165. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3166. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3167. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3168. if test -n "$ac_tool_prefix"; then
  3169. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  3170. do
  3171. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3172. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3173. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3174. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3175. if test "${ac_cv_prog_CXX+set}" = set; then
  3176. echo $ECHO_N "(cached) $ECHO_C" >&6
  3177. else
  3178. if test -n "$CXX"; then
  3179. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3180. else
  3181. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3182. for as_dir in $PATH
  3183. do
  3184. IFS=$as_save_IFS
  3185. test -z "$as_dir" && as_dir=.
  3186. for ac_exec_ext in '' $ac_executable_extensions; do
  3187. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3188. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3189. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3190. break 2
  3191. fi
  3192. done
  3193. done
  3194. fi
  3195. fi
  3196. CXX=$ac_cv_prog_CXX
  3197. if test -n "$CXX"; then
  3198. echo "$as_me:$LINENO: result: $CXX" >&5
  3199. echo "${ECHO_T}$CXX" >&6
  3200. else
  3201. echo "$as_me:$LINENO: result: no" >&5
  3202. echo "${ECHO_T}no" >&6
  3203. fi
  3204. test -n "$CXX" && break
  3205. done
  3206. fi
  3207. if test -z "$CXX"; then
  3208. ac_ct_CXX=$CXX
  3209. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  3210. do
  3211. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3212. set dummy $ac_prog; ac_word=$2
  3213. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3214. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3215. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  3216. echo $ECHO_N "(cached) $ECHO_C" >&6
  3217. else
  3218. if test -n "$ac_ct_CXX"; then
  3219. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3220. else
  3221. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3222. for as_dir in $PATH
  3223. do
  3224. IFS=$as_save_IFS
  3225. test -z "$as_dir" && as_dir=.
  3226. for ac_exec_ext in '' $ac_executable_extensions; do
  3227. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3228. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3229. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3230. break 2
  3231. fi
  3232. done
  3233. done
  3234. fi
  3235. fi
  3236. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3237. if test -n "$ac_ct_CXX"; then
  3238. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  3239. echo "${ECHO_T}$ac_ct_CXX" >&6
  3240. else
  3241. echo "$as_me:$LINENO: result: no" >&5
  3242. echo "${ECHO_T}no" >&6
  3243. fi
  3244. test -n "$ac_ct_CXX" && break
  3245. done
  3246. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  3247. CXX=$ac_ct_CXX
  3248. fi
  3249. # Provide some information about the compiler.
  3250. echo "$as_me:$LINENO:" \
  3251. "checking for C++ compiler version" >&5
  3252. ac_compiler=`set X $ac_compile; echo $2`
  3253. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  3254. (eval $ac_compiler --version </dev/null >&5) 2>&5
  3255. ac_status=$?
  3256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3257. (exit $ac_status); }
  3258. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  3259. (eval $ac_compiler -v </dev/null >&5) 2>&5
  3260. ac_status=$?
  3261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3262. (exit $ac_status); }
  3263. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  3264. (eval $ac_compiler -V </dev/null >&5) 2>&5
  3265. ac_status=$?
  3266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3267. (exit $ac_status); }
  3268. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  3269. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  3270. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  3271. echo $ECHO_N "(cached) $ECHO_C" >&6
  3272. else
  3273. cat >conftest.$ac_ext <<_ACEOF
  3274. /* confdefs.h. */
  3275. _ACEOF
  3276. cat confdefs.h >>conftest.$ac_ext
  3277. cat >>conftest.$ac_ext <<_ACEOF
  3278. /* end confdefs.h. */
  3279. int
  3280. main ()
  3281. {
  3282. #ifndef __GNUC__
  3283. choke me
  3284. #endif
  3285. ;
  3286. return 0;
  3287. }
  3288. _ACEOF
  3289. rm -f conftest.$ac_objext
  3290. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3291. (eval $ac_compile) 2>conftest.er1
  3292. ac_status=$?
  3293. grep -v '^ *+' conftest.er1 >conftest.err
  3294. rm -f conftest.er1
  3295. cat conftest.err >&5
  3296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3297. (exit $ac_status); } &&
  3298. { ac_try='test -z "$ac_cxx_werror_flag"
  3299. || test ! -s conftest.err'
  3300. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3301. (eval $ac_try) 2>&5
  3302. ac_status=$?
  3303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3304. (exit $ac_status); }; } &&
  3305. { ac_try='test -s conftest.$ac_objext'
  3306. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3307. (eval $ac_try) 2>&5
  3308. ac_status=$?
  3309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3310. (exit $ac_status); }; }; then
  3311. ac_compiler_gnu=yes
  3312. else
  3313. echo "$as_me: failed program was:" >&5
  3314. sed 's/^/| /' conftest.$ac_ext >&5
  3315. ac_compiler_gnu=no
  3316. fi
  3317. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3318. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3319. fi
  3320. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  3321. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  3322. GXX=`test $ac_compiler_gnu = yes && echo yes`
  3323. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3324. ac_save_CXXFLAGS=$CXXFLAGS
  3325. CXXFLAGS="-g"
  3326. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  3327. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  3328. if test "${ac_cv_prog_cxx_g+set}" = set; then
  3329. echo $ECHO_N "(cached) $ECHO_C" >&6
  3330. else
  3331. cat >conftest.$ac_ext <<_ACEOF
  3332. /* confdefs.h. */
  3333. _ACEOF
  3334. cat confdefs.h >>conftest.$ac_ext
  3335. cat >>conftest.$ac_ext <<_ACEOF
  3336. /* end confdefs.h. */
  3337. int
  3338. main ()
  3339. {
  3340. ;
  3341. return 0;
  3342. }
  3343. _ACEOF
  3344. rm -f conftest.$ac_objext
  3345. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3346. (eval $ac_compile) 2>conftest.er1
  3347. ac_status=$?
  3348. grep -v '^ *+' conftest.er1 >conftest.err
  3349. rm -f conftest.er1
  3350. cat conftest.err >&5
  3351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3352. (exit $ac_status); } &&
  3353. { ac_try='test -z "$ac_cxx_werror_flag"
  3354. || test ! -s conftest.err'
  3355. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3356. (eval $ac_try) 2>&5
  3357. ac_status=$?
  3358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3359. (exit $ac_status); }; } &&
  3360. { ac_try='test -s conftest.$ac_objext'
  3361. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3362. (eval $ac_try) 2>&5
  3363. ac_status=$?
  3364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3365. (exit $ac_status); }; }; then
  3366. ac_cv_prog_cxx_g=yes
  3367. else
  3368. echo "$as_me: failed program was:" >&5
  3369. sed 's/^/| /' conftest.$ac_ext >&5
  3370. ac_cv_prog_cxx_g=no
  3371. fi
  3372. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3373. fi
  3374. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  3375. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  3376. if test "$ac_test_CXXFLAGS" = set; then
  3377. CXXFLAGS=$ac_save_CXXFLAGS
  3378. elif test $ac_cv_prog_cxx_g = yes; then
  3379. if test "$GXX" = yes; then
  3380. CXXFLAGS="-g -O2"
  3381. else
  3382. CXXFLAGS="-g"
  3383. fi
  3384. else
  3385. if test "$GXX" = yes; then
  3386. CXXFLAGS="-O2"
  3387. else
  3388. CXXFLAGS=
  3389. fi
  3390. fi
  3391. for ac_declaration in \
  3392. '' \
  3393. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  3394. 'extern "C" void std::exit (int); using std::exit;' \
  3395. 'extern "C" void exit (int) throw ();' \
  3396. 'extern "C" void exit (int);' \
  3397. 'void exit (int);'
  3398. do
  3399. cat >conftest.$ac_ext <<_ACEOF
  3400. /* confdefs.h. */
  3401. _ACEOF
  3402. cat confdefs.h >>conftest.$ac_ext
  3403. cat >>conftest.$ac_ext <<_ACEOF
  3404. /* end confdefs.h. */
  3405. $ac_declaration
  3406. #include <stdlib.h>
  3407. int
  3408. main ()
  3409. {
  3410. exit (42);
  3411. ;
  3412. return 0;
  3413. }
  3414. _ACEOF
  3415. rm -f conftest.$ac_objext
  3416. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3417. (eval $ac_compile) 2>conftest.er1
  3418. ac_status=$?
  3419. grep -v '^ *+' conftest.er1 >conftest.err
  3420. rm -f conftest.er1
  3421. cat conftest.err >&5
  3422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3423. (exit $ac_status); } &&
  3424. { ac_try='test -z "$ac_cxx_werror_flag"
  3425. || test ! -s conftest.err'
  3426. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3427. (eval $ac_try) 2>&5
  3428. ac_status=$?
  3429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3430. (exit $ac_status); }; } &&
  3431. { ac_try='test -s conftest.$ac_objext'
  3432. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3433. (eval $ac_try) 2>&5
  3434. ac_status=$?
  3435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3436. (exit $ac_status); }; }; then
  3437. :
  3438. else
  3439. echo "$as_me: failed program was:" >&5
  3440. sed 's/^/| /' conftest.$ac_ext >&5
  3441. continue
  3442. fi
  3443. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3444. cat >conftest.$ac_ext <<_ACEOF
  3445. /* confdefs.h. */
  3446. _ACEOF
  3447. cat confdefs.h >>conftest.$ac_ext
  3448. cat >>conftest.$ac_ext <<_ACEOF
  3449. /* end confdefs.h. */
  3450. $ac_declaration
  3451. int
  3452. main ()
  3453. {
  3454. exit (42);
  3455. ;
  3456. return 0;
  3457. }
  3458. _ACEOF
  3459. rm -f conftest.$ac_objext
  3460. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3461. (eval $ac_compile) 2>conftest.er1
  3462. ac_status=$?
  3463. grep -v '^ *+' conftest.er1 >conftest.err
  3464. rm -f conftest.er1
  3465. cat conftest.err >&5
  3466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3467. (exit $ac_status); } &&
  3468. { ac_try='test -z "$ac_cxx_werror_flag"
  3469. || test ! -s conftest.err'
  3470. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3471. (eval $ac_try) 2>&5
  3472. ac_status=$?
  3473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3474. (exit $ac_status); }; } &&
  3475. { ac_try='test -s conftest.$ac_objext'
  3476. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3477. (eval $ac_try) 2>&5
  3478. ac_status=$?
  3479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3480. (exit $ac_status); }; }; then
  3481. break
  3482. else
  3483. echo "$as_me: failed program was:" >&5
  3484. sed 's/^/| /' conftest.$ac_ext >&5
  3485. fi
  3486. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3487. done
  3488. rm -f conftest*
  3489. if test -n "$ac_declaration"; then
  3490. echo '#ifdef __cplusplus' >>confdefs.h
  3491. echo $ac_declaration >>confdefs.h
  3492. echo '#endif' >>confdefs.h
  3493. fi
  3494. ac_ext=c
  3495. ac_cpp='$CPP $CPPFLAGS'
  3496. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3497. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3498. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3499. depcc="$CXX" am_compiler_list=
  3500. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3501. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  3502. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  3503. echo $ECHO_N "(cached) $ECHO_C" >&6
  3504. else
  3505. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3506. # We make a subdir and do the tests there. Otherwise we can end up
  3507. # making bogus files that we don't know about and never remove. For
  3508. # instance it was reported that on HP-UX the gcc test will end up
  3509. # making a dummy file named `D' -- because `-MD' means `put the output
  3510. # in D'.
  3511. mkdir conftest.dir
  3512. # Copy depcomp to subdir because otherwise we won't find it if we're
  3513. # using a relative directory.
  3514. cp "$am_depcomp" conftest.dir
  3515. cd conftest.dir
  3516. # We will build objects and dependencies in a subdirectory because
  3517. # it helps to detect inapplicable dependency modes. For instance
  3518. # both Tru64's cc and ICC support -MD to output dependencies as a
  3519. # side effect of compilation, but ICC will put the dependencies in
  3520. # the current directory while Tru64 will put them in the object
  3521. # directory.
  3522. mkdir sub
  3523. am_cv_CXX_dependencies_compiler_type=none
  3524. if test "$am_compiler_list" = ""; then
  3525. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3526. fi
  3527. for depmode in $am_compiler_list; do
  3528. # Setup a source with many dependencies, because some compilers
  3529. # like to wrap large dependency lists on column 80 (with \), and
  3530. # we should not choose a depcomp mode which is confused by this.
  3531. #
  3532. # We need to recreate these files for each test, as the compiler may
  3533. # overwrite some of them when testing with obscure command lines.
  3534. # This happens at least with the AIX C compiler.
  3535. : > sub/conftest.c
  3536. for i in 1 2 3 4 5 6; do
  3537. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3538. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3539. # Solaris 8's {/usr,}/bin/sh.
  3540. touch sub/conftst$i.h
  3541. done
  3542. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3543. case $depmode in
  3544. nosideeffect)
  3545. # after this tag, mechanisms are not by side-effect, so they'll
  3546. # only be used when explicitly requested
  3547. if test "x$enable_dependency_tracking" = xyes; then
  3548. continue
  3549. else
  3550. break
  3551. fi
  3552. ;;
  3553. none) break ;;
  3554. esac
  3555. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3556. # mode. It turns out that the SunPro C++ compiler does not properly
  3557. # handle `-M -o', and we need to detect this.
  3558. if depmode=$depmode \
  3559. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3560. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3561. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3562. >/dev/null 2>conftest.err &&
  3563. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3564. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3565. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3566. # icc doesn't choke on unknown options, it will just issue warnings
  3567. # or remarks (even with -Werror). So we grep stderr for any message
  3568. # that says an option was ignored or not supported.
  3569. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3570. # icc: Command line warning: ignoring option '-M'; no argument required
  3571. # The diagnosis changed in icc 8.0:
  3572. # icc: Command line remark: option '-MP' not supported
  3573. if (grep 'ignoring option' conftest.err ||
  3574. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3575. am_cv_CXX_dependencies_compiler_type=$depmode
  3576. break
  3577. fi
  3578. fi
  3579. done
  3580. cd ..
  3581. rm -rf conftest.dir
  3582. else
  3583. am_cv_CXX_dependencies_compiler_type=none
  3584. fi
  3585. fi
  3586. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3587. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  3588. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3589. if
  3590. test "x$enable_dependency_tracking" != xno \
  3591. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3592. am__fastdepCXX_TRUE=
  3593. am__fastdepCXX_FALSE='#'
  3594. else
  3595. am__fastdepCXX_TRUE='#'
  3596. am__fastdepCXX_FALSE=
  3597. fi
  3598. if test "$GXX" = "yes" || test "$CXX" = "KCC"; then
  3599. if test "$kde_use_debug_code" != "no"; then
  3600. if test "$CXX" = "KCC"; then
  3601. CXXFLAGS="+K0 -Wall -pedantic -W -Wpointer-arith -Wwrite-strings $CXXFLAGS"
  3602. else
  3603. if test "$kde_use_debug_code" = "full"; then
  3604. CXXFLAGS="-g3 -fno-inline $CXXFLAGS"
  3605. else
  3606. CXXFLAGS="-g -O2 $CXXFLAGS"
  3607. fi
  3608. fi
  3609. echo "$as_me:$LINENO: checking whether $CXX supports -fno-builtin" >&5
  3610. echo $ECHO_N "checking whether $CXX supports -fno-builtin... $ECHO_C" >&6
  3611. kde_cache=`echo fno-builtin | sed 'y% .=/+-,%____p__%'`
  3612. if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
  3613. echo $ECHO_N "(cached) $ECHO_C" >&6
  3614. else
  3615. ac_ext=cc
  3616. ac_cpp='$CXXCPP $CPPFLAGS'
  3617. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3618. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3619. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3620. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  3621. save_CXXFLAGS="$CXXFLAGS"
  3622. CXXFLAGS="$CXXFLAGS -fno-builtin"
  3623. cat >conftest.$ac_ext <<_ACEOF
  3624. /* confdefs.h. */
  3625. _ACEOF
  3626. cat confdefs.h >>conftest.$ac_ext
  3627. cat >>conftest.$ac_ext <<_ACEOF
  3628. /* end confdefs.h. */
  3629. int
  3630. main ()
  3631. {
  3632. return 0;
  3633. ;
  3634. return 0;
  3635. }
  3636. _ACEOF
  3637. rm -f conftest.$ac_objext conftest$ac_exeext
  3638. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3639. (eval $ac_link) 2>conftest.er1
  3640. ac_status=$?
  3641. grep -v '^ *+' conftest.er1 >conftest.err
  3642. rm -f conftest.er1
  3643. cat conftest.err >&5
  3644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3645. (exit $ac_status); } &&
  3646. { ac_try='test -z "$ac_cxx_werror_flag"
  3647. || test ! -s conftest.err'
  3648. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3649. (eval $ac_try) 2>&5
  3650. ac_status=$?
  3651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3652. (exit $ac_status); }; } &&
  3653. { ac_try='test -s conftest$ac_exeext'
  3654. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3655. (eval $ac_try) 2>&5
  3656. ac_status=$?
  3657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3658. (exit $ac_status); }; }; then
  3659. eval "kde_cv_prog_cxx_$kde_cache=yes"
  3660. else
  3661. echo "$as_me: failed program was:" >&5
  3662. sed 's/^/| /' conftest.$ac_ext >&5
  3663. fi
  3664. rm -f conftest.err conftest.$ac_objext \
  3665. conftest$ac_exeext conftest.$ac_ext
  3666. CXXFLAGS="$save_CXXFLAGS"
  3667. ac_ext=c
  3668. ac_cpp='$CPP $CPPFLAGS'
  3669. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3670. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3671. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3672. fi
  3673. if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
  3674. echo "$as_me:$LINENO: result: yes" >&5
  3675. echo "${ECHO_T}yes" >&6
  3676. :
  3677. CXXFLAGS="-fno-builtin $CXXFLAGS"
  3678. else
  3679. echo "$as_me:$LINENO: result: no" >&5
  3680. echo "${ECHO_T}no" >&6
  3681. :
  3682. fi
  3683. echo "$as_me:$LINENO: checking whether $CXX supports -Woverloaded-virtual" >&5
  3684. echo $ECHO_N "checking whether $CXX supports -Woverloaded-virtual... $ECHO_C" >&6
  3685. kde_cache=`echo Woverloaded-virtual | sed 'y% .=/+-,%____p__%'`
  3686. if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
  3687. echo $ECHO_N "(cached) $ECHO_C" >&6
  3688. else
  3689. ac_ext=cc
  3690. ac_cpp='$CXXCPP $CPPFLAGS'
  3691. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3692. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3693. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3694. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  3695. save_CXXFLAGS="$CXXFLAGS"
  3696. CXXFLAGS="$CXXFLAGS -Woverloaded-virtual"
  3697. cat >conftest.$ac_ext <<_ACEOF
  3698. /* confdefs.h. */
  3699. _ACEOF
  3700. cat confdefs.h >>conftest.$ac_ext
  3701. cat >>conftest.$ac_ext <<_ACEOF
  3702. /* end confdefs.h. */
  3703. int
  3704. main ()
  3705. {
  3706. return 0;
  3707. ;
  3708. return 0;
  3709. }
  3710. _ACEOF
  3711. rm -f conftest.$ac_objext conftest$ac_exeext
  3712. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3713. (eval $ac_link) 2>conftest.er1
  3714. ac_status=$?
  3715. grep -v '^ *+' conftest.er1 >conftest.err
  3716. rm -f conftest.er1
  3717. cat conftest.err >&5
  3718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3719. (exit $ac_status); } &&
  3720. { ac_try='test -z "$ac_cxx_werror_flag"
  3721. || test ! -s conftest.err'
  3722. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3723. (eval $ac_try) 2>&5
  3724. ac_status=$?
  3725. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3726. (exit $ac_status); }; } &&
  3727. { ac_try='test -s conftest$ac_exeext'
  3728. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3729. (eval $ac_try) 2>&5
  3730. ac_status=$?
  3731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3732. (exit $ac_status); }; }; then
  3733. eval "kde_cv_prog_cxx_$kde_cache=yes"
  3734. else
  3735. echo "$as_me: failed program was:" >&5
  3736. sed 's/^/| /' conftest.$ac_ext >&5
  3737. fi
  3738. rm -f conftest.err conftest.$ac_objext \
  3739. conftest$ac_exeext conftest.$ac_ext
  3740. CXXFLAGS="$save_CXXFLAGS"
  3741. ac_ext=c
  3742. ac_cpp='$CPP $CPPFLAGS'
  3743. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3744. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3745. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3746. fi
  3747. if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
  3748. echo "$as_me:$LINENO: result: yes" >&5
  3749. echo "${ECHO_T}yes" >&6
  3750. :
  3751. WOVERLOADED_VIRTUAL="-Woverloaded-virtual"
  3752. else
  3753. echo "$as_me:$LINENO: result: no" >&5
  3754. echo "${ECHO_T}no" >&6
  3755. :
  3756. WOVERLOADED_VRITUAL=""
  3757. fi
  3758. else
  3759. if test "$CXX" = "KCC"; then
  3760. CXXFLAGS="+K3 $CXXFLAGS"
  3761. else
  3762. CXXFLAGS="-O2 $CXXFLAGS"
  3763. fi
  3764. fi
  3765. fi
  3766. if test "$kde_use_debug_define" = "yes"; then
  3767. CXXFLAGS="-DNDEBUG -DNO_DEBUG $CXXFLAGS"
  3768. fi
  3769. if test "$kde_use_profiling" = "yes"; then
  3770. echo "$as_me:$LINENO: checking whether $CXX supports -pg" >&5
  3771. echo $ECHO_N "checking whether $CXX supports -pg... $ECHO_C" >&6
  3772. kde_cache=`echo pg | sed 'y% .=/+-,%____p__%'`
  3773. if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
  3774. echo $ECHO_N "(cached) $ECHO_C" >&6
  3775. else
  3776. ac_ext=cc
  3777. ac_cpp='$CXXCPP $CPPFLAGS'
  3778. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3779. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3780. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3781. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  3782. save_CXXFLAGS="$CXXFLAGS"
  3783. CXXFLAGS="$CXXFLAGS -pg"
  3784. cat >conftest.$ac_ext <<_ACEOF
  3785. /* confdefs.h. */
  3786. _ACEOF
  3787. cat confdefs.h >>conftest.$ac_ext
  3788. cat >>conftest.$ac_ext <<_ACEOF
  3789. /* end confdefs.h. */
  3790. int
  3791. main ()
  3792. {
  3793. return 0;
  3794. ;
  3795. return 0;
  3796. }
  3797. _ACEOF
  3798. rm -f conftest.$ac_objext conftest$ac_exeext
  3799. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3800. (eval $ac_link) 2>conftest.er1
  3801. ac_status=$?
  3802. grep -v '^ *+' conftest.er1 >conftest.err
  3803. rm -f conftest.er1
  3804. cat conftest.err >&5
  3805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3806. (exit $ac_status); } &&
  3807. { ac_try='test -z "$ac_cxx_werror_flag"
  3808. || test ! -s conftest.err'
  3809. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3810. (eval $ac_try) 2>&5
  3811. ac_status=$?
  3812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3813. (exit $ac_status); }; } &&
  3814. { ac_try='test -s conftest$ac_exeext'
  3815. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3816. (eval $ac_try) 2>&5
  3817. ac_status=$?
  3818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3819. (exit $ac_status); }; }; then
  3820. eval "kde_cv_prog_cxx_$kde_cache=yes"
  3821. else
  3822. echo "$as_me: failed program was:" >&5
  3823. sed 's/^/| /' conftest.$ac_ext >&5
  3824. fi
  3825. rm -f conftest.err conftest.$ac_objext \
  3826. conftest$ac_exeext conftest.$ac_ext
  3827. CXXFLAGS="$save_CXXFLAGS"
  3828. ac_ext=c
  3829. ac_cpp='$CPP $CPPFLAGS'
  3830. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3831. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3832. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3833. fi
  3834. if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
  3835. echo "$as_me:$LINENO: result: yes" >&5
  3836. echo "${ECHO_T}yes" >&6
  3837. :
  3838. CFLAGS="-pg $CFLAGS"
  3839. CXXFLAGS="-pg $CXXFLAGS"
  3840. else
  3841. echo "$as_me:$LINENO: result: no" >&5
  3842. echo "${ECHO_T}no" >&6
  3843. :
  3844. fi
  3845. fi
  3846. if test "$kde_use_warnings" = "yes"; then
  3847. if test "$GCC" = "yes"; then
  3848. case $host in
  3849. *-*-linux-gnu)
  3850. CFLAGS="-ansi -W -Wall -pedantic -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
  3851. CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
  3852. echo "$as_me:$LINENO: checking whether $CXX supports -Wmissing-format-attribute" >&5
  3853. echo $ECHO_N "checking whether $CXX supports -Wmissing-format-attribute... $ECHO_C" >&6
  3854. kde_cache=`echo Wmissing-format-attribute | sed 'y% .=/+-,%____p__%'`
  3855. if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
  3856. echo $ECHO_N "(cached) $ECHO_C" >&6
  3857. else
  3858. ac_ext=cc
  3859. ac_cpp='$CXXCPP $CPPFLAGS'
  3860. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3861. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3862. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3863. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  3864. save_CXXFLAGS="$CXXFLAGS"
  3865. CXXFLAGS="$CXXFLAGS -Wmissing-format-attribute"
  3866. cat >conftest.$ac_ext <<_ACEOF
  3867. /* confdefs.h. */
  3868. _ACEOF
  3869. cat confdefs.h >>conftest.$ac_ext
  3870. cat >>conftest.$ac_ext <<_ACEOF
  3871. /* end confdefs.h. */
  3872. int
  3873. main ()
  3874. {
  3875. return 0;
  3876. ;
  3877. return 0;
  3878. }
  3879. _ACEOF
  3880. rm -f conftest.$ac_objext conftest$ac_exeext
  3881. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3882. (eval $ac_link) 2>conftest.er1
  3883. ac_status=$?
  3884. grep -v '^ *+' conftest.er1 >conftest.err
  3885. rm -f conftest.er1
  3886. cat conftest.err >&5
  3887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3888. (exit $ac_status); } &&
  3889. { ac_try='test -z "$ac_cxx_werror_flag"
  3890. || test ! -s conftest.err'
  3891. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3892. (eval $ac_try) 2>&5
  3893. ac_status=$?
  3894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3895. (exit $ac_status); }; } &&
  3896. { ac_try='test -s conftest$ac_exeext'
  3897. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3898. (eval $ac_try) 2>&5
  3899. ac_status=$?
  3900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3901. (exit $ac_status); }; }; then
  3902. eval "kde_cv_prog_cxx_$kde_cache=yes"
  3903. else
  3904. echo "$as_me: failed program was:" >&5
  3905. sed 's/^/| /' conftest.$ac_ext >&5
  3906. fi
  3907. rm -f conftest.err conftest.$ac_objext \
  3908. conftest$ac_exeext conftest.$ac_ext
  3909. CXXFLAGS="$save_CXXFLAGS"
  3910. ac_ext=c
  3911. ac_cpp='$CPP $CPPFLAGS'
  3912. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3913. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3914. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3915. fi
  3916. if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
  3917. echo "$as_me:$LINENO: result: yes" >&5
  3918. echo "${ECHO_T}yes" >&6
  3919. :
  3920. CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"; CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"
  3921. else
  3922. echo "$as_me:$LINENO: result: no" >&5
  3923. echo "${ECHO_T}no" >&6
  3924. :
  3925. fi
  3926. ;;
  3927. esac
  3928. CXXFLAGS="-Wall -pedantic -W -Wpointer-arith -Wwrite-strings $CXXFLAGS"
  3929. echo "$as_me:$LINENO: checking whether $CXX supports -Wundef" >&5
  3930. echo $ECHO_N "checking whether $CXX supports -Wundef... $ECHO_C" >&6
  3931. kde_cache=`echo Wundef | sed 'y% .=/+-,%____p__%'`
  3932. if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
  3933. echo $ECHO_N "(cached) $ECHO_C" >&6
  3934. else
  3935. ac_ext=cc
  3936. ac_cpp='$CXXCPP $CPPFLAGS'
  3937. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3938. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3939. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3940. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  3941. save_CXXFLAGS="$CXXFLAGS"
  3942. CXXFLAGS="$CXXFLAGS -Wundef"
  3943. cat >conftest.$ac_ext <<_ACEOF
  3944. /* confdefs.h. */
  3945. _ACEOF
  3946. cat confdefs.h >>conftest.$ac_ext
  3947. cat >>conftest.$ac_ext <<_ACEOF
  3948. /* end confdefs.h. */
  3949. int
  3950. main ()
  3951. {
  3952. return 0;
  3953. ;
  3954. return 0;
  3955. }
  3956. _ACEOF
  3957. rm -f conftest.$ac_objext conftest$ac_exeext
  3958. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3959. (eval $ac_link) 2>conftest.er1
  3960. ac_status=$?
  3961. grep -v '^ *+' conftest.er1 >conftest.err
  3962. rm -f conftest.er1
  3963. cat conftest.err >&5
  3964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3965. (exit $ac_status); } &&
  3966. { ac_try='test -z "$ac_cxx_werror_flag"
  3967. || test ! -s conftest.err'
  3968. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3969. (eval $ac_try) 2>&5
  3970. ac_status=$?
  3971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3972. (exit $ac_status); }; } &&
  3973. { ac_try='test -s conftest$ac_exeext'
  3974. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3975. (eval $ac_try) 2>&5
  3976. ac_status=$?
  3977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3978. (exit $ac_status); }; }; then
  3979. eval "kde_cv_prog_cxx_$kde_cache=yes"
  3980. else
  3981. echo "$as_me: failed program was:" >&5
  3982. sed 's/^/| /' conftest.$ac_ext >&5
  3983. fi
  3984. rm -f conftest.err conftest.$ac_objext \
  3985. conftest$ac_exeext conftest.$ac_ext
  3986. CXXFLAGS="$save_CXXFLAGS"
  3987. ac_ext=c
  3988. ac_cpp='$CPP $CPPFLAGS'
  3989. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3990. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3991. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3992. fi
  3993. if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
  3994. echo "$as_me:$LINENO: result: yes" >&5
  3995. echo "${ECHO_T}yes" >&6
  3996. :
  3997. CXXFLAGS="-Wundef $CXXFLAGS"
  3998. else
  3999. echo "$as_me:$LINENO: result: no" >&5
  4000. echo "${ECHO_T}no" >&6
  4001. :
  4002. fi
  4003. echo "$as_me:$LINENO: checking whether $CXX supports -Wno-long-long" >&5
  4004. echo $ECHO_N "checking whether $CXX supports -Wno-long-long... $ECHO_C" >&6
  4005. kde_cache=`echo Wno-long-long | sed 'y% .=/+-,%____p__%'`
  4006. if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
  4007. echo $ECHO_N "(cached) $ECHO_C" >&6
  4008. else
  4009. ac_ext=cc
  4010. ac_cpp='$CXXCPP $CPPFLAGS'
  4011. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4012. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4013. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4014. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  4015. save_CXXFLAGS="$CXXFLAGS"
  4016. CXXFLAGS="$CXXFLAGS -Wno-long-long"
  4017. cat >conftest.$ac_ext <<_ACEOF
  4018. /* confdefs.h. */
  4019. _ACEOF
  4020. cat confdefs.h >>conftest.$ac_ext
  4021. cat >>conftest.$ac_ext <<_ACEOF
  4022. /* end confdefs.h. */
  4023. int
  4024. main ()
  4025. {
  4026. return 0;
  4027. ;
  4028. return 0;
  4029. }
  4030. _ACEOF
  4031. rm -f conftest.$ac_objext conftest$ac_exeext
  4032. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4033. (eval $ac_link) 2>conftest.er1
  4034. ac_status=$?
  4035. grep -v '^ *+' conftest.er1 >conftest.err
  4036. rm -f conftest.er1
  4037. cat conftest.err >&5
  4038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4039. (exit $ac_status); } &&
  4040. { ac_try='test -z "$ac_cxx_werror_flag"
  4041. || test ! -s conftest.err'
  4042. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4043. (eval $ac_try) 2>&5
  4044. ac_status=$?
  4045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4046. (exit $ac_status); }; } &&
  4047. { ac_try='test -s conftest$ac_exeext'
  4048. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4049. (eval $ac_try) 2>&5
  4050. ac_status=$?
  4051. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4052. (exit $ac_status); }; }; then
  4053. eval "kde_cv_prog_cxx_$kde_cache=yes"
  4054. else
  4055. echo "$as_me: failed program was:" >&5
  4056. sed 's/^/| /' conftest.$ac_ext >&5
  4057. fi
  4058. rm -f conftest.err conftest.$ac_objext \
  4059. conftest$ac_exeext conftest.$ac_ext
  4060. CXXFLAGS="$save_CXXFLAGS"
  4061. ac_ext=c
  4062. ac_cpp='$CPP $CPPFLAGS'
  4063. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4064. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4065. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4066. fi
  4067. if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
  4068. echo "$as_me:$LINENO: result: yes" >&5
  4069. echo "${ECHO_T}yes" >&6
  4070. :
  4071. CXXFLAGS="-Wno-long-long $CXXFLAGS"
  4072. else
  4073. echo "$as_me:$LINENO: result: no" >&5
  4074. echo "${ECHO_T}no" >&6
  4075. :
  4076. fi
  4077. echo "$as_me:$LINENO: checking whether $CXX supports -Wnon-virtual-dtor" >&5
  4078. echo $ECHO_N "checking whether $CXX supports -Wnon-virtual-dtor... $ECHO_C" >&6
  4079. kde_cache=`echo Wnon-virtual-dtor | sed 'y% .=/+-,%____p__%'`
  4080. if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
  4081. echo $ECHO_N "(cached) $ECHO_C" >&6
  4082. else
  4083. ac_ext=cc
  4084. ac_cpp='$CXXCPP $CPPFLAGS'
  4085. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4086. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4087. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4088. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  4089. save_CXXFLAGS="$CXXFLAGS"
  4090. CXXFLAGS="$CXXFLAGS -Wnon-virtual-dtor"
  4091. cat >conftest.$ac_ext <<_ACEOF
  4092. /* confdefs.h. */
  4093. _ACEOF
  4094. cat confdefs.h >>conftest.$ac_ext
  4095. cat >>conftest.$ac_ext <<_ACEOF
  4096. /* end confdefs.h. */
  4097. int
  4098. main ()
  4099. {
  4100. return 0;
  4101. ;
  4102. return 0;
  4103. }
  4104. _ACEOF
  4105. rm -f conftest.$ac_objext conftest$ac_exeext
  4106. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4107. (eval $ac_link) 2>conftest.er1
  4108. ac_status=$?
  4109. grep -v '^ *+' conftest.er1 >conftest.err
  4110. rm -f conftest.er1
  4111. cat conftest.err >&5
  4112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4113. (exit $ac_status); } &&
  4114. { ac_try='test -z "$ac_cxx_werror_flag"
  4115. || test ! -s conftest.err'
  4116. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4117. (eval $ac_try) 2>&5
  4118. ac_status=$?
  4119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4120. (exit $ac_status); }; } &&
  4121. { ac_try='test -s conftest$ac_exeext'
  4122. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4123. (eval $ac_try) 2>&5
  4124. ac_status=$?
  4125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4126. (exit $ac_status); }; }; then
  4127. eval "kde_cv_prog_cxx_$kde_cache=yes"
  4128. else
  4129. echo "$as_me: failed program was:" >&5
  4130. sed 's/^/| /' conftest.$ac_ext >&5
  4131. fi
  4132. rm -f conftest.err conftest.$ac_objext \
  4133. conftest$ac_exeext conftest.$ac_ext
  4134. CXXFLAGS="$save_CXXFLAGS"
  4135. ac_ext=c
  4136. ac_cpp='$CPP $CPPFLAGS'
  4137. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4138. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4139. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4140. fi
  4141. if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
  4142. echo "$as_me:$LINENO: result: yes" >&5
  4143. echo "${ECHO_T}yes" >&6
  4144. :
  4145. CXXFLAGS="-Wnon-virtual-dtor $CXXFLAGS"
  4146. else
  4147. echo "$as_me:$LINENO: result: no" >&5
  4148. echo "${ECHO_T}no" >&6
  4149. :
  4150. fi
  4151. fi
  4152. fi
  4153. if test "$GXX" = "yes" && test "$kde_use_strict_options" = "yes"; then
  4154. CXXFLAGS="-Wcast-qual -Wshadow -Wcast-align $CXXFLAGS"
  4155. fi
  4156. if test "$GXX" = "yes"; then
  4157. echo "$as_me:$LINENO: checking whether $CXX supports -fno-exceptions" >&5
  4158. echo $ECHO_N "checking whether $CXX supports -fno-exceptions... $ECHO_C" >&6
  4159. kde_cache=`echo fno-exceptions | sed 'y% .=/+-,%____p__%'`
  4160. if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
  4161. echo $ECHO_N "(cached) $ECHO_C" >&6
  4162. else
  4163. ac_ext=cc
  4164. ac_cpp='$CXXCPP $CPPFLAGS'
  4165. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4166. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4167. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4168. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  4169. save_CXXFLAGS="$CXXFLAGS"
  4170. CXXFLAGS="$CXXFLAGS -fno-exceptions"
  4171. cat >conftest.$ac_ext <<_ACEOF
  4172. /* confdefs.h. */
  4173. _ACEOF
  4174. cat confdefs.h >>conftest.$ac_ext
  4175. cat >>conftest.$ac_ext <<_ACEOF
  4176. /* end confdefs.h. */
  4177. int
  4178. main ()
  4179. {
  4180. return 0;
  4181. ;
  4182. return 0;
  4183. }
  4184. _ACEOF
  4185. rm -f conftest.$ac_objext conftest$ac_exeext
  4186. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4187. (eval $ac_link) 2>conftest.er1
  4188. ac_status=$?
  4189. grep -v '^ *+' conftest.er1 >conftest.err
  4190. rm -f conftest.er1
  4191. cat conftest.err >&5
  4192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4193. (exit $ac_status); } &&
  4194. { ac_try='test -z "$ac_cxx_werror_flag"
  4195. || test ! -s conftest.err'
  4196. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4197. (eval $ac_try) 2>&5
  4198. ac_status=$?
  4199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4200. (exit $ac_status); }; } &&
  4201. { ac_try='test -s conftest$ac_exeext'
  4202. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4203. (eval $ac_try) 2>&5
  4204. ac_status=$?
  4205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4206. (exit $ac_status); }; }; then
  4207. eval "kde_cv_prog_cxx_$kde_cache=yes"
  4208. else
  4209. echo "$as_me: failed program was:" >&5
  4210. sed 's/^/| /' conftest.$ac_ext >&5
  4211. fi
  4212. rm -f conftest.err conftest.$ac_objext \
  4213. conftest$ac_exeext conftest.$ac_ext
  4214. CXXFLAGS="$save_CXXFLAGS"
  4215. ac_ext=c
  4216. ac_cpp='$CPP $CPPFLAGS'
  4217. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4218. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4219. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4220. fi
  4221. if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
  4222. echo "$as_me:$LINENO: result: yes" >&5
  4223. echo "${ECHO_T}yes" >&6
  4224. :
  4225. CXXFLAGS="$CXXFLAGS -fno-exceptions"
  4226. else
  4227. echo "$as_me:$LINENO: result: no" >&5
  4228. echo "${ECHO_T}no" >&6
  4229. :
  4230. fi
  4231. echo "$as_me:$LINENO: checking whether $CXX supports -fno-check-new" >&5
  4232. echo $ECHO_N "checking whether $CXX supports -fno-check-new... $ECHO_C" >&6
  4233. kde_cache=`echo fno-check-new | sed 'y% .=/+-,%____p__%'`
  4234. if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
  4235. echo $ECHO_N "(cached) $ECHO_C" >&6
  4236. else
  4237. ac_ext=cc
  4238. ac_cpp='$CXXCPP $CPPFLAGS'
  4239. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4240. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4241. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4242. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  4243. save_CXXFLAGS="$CXXFLAGS"
  4244. CXXFLAGS="$CXXFLAGS -fno-check-new"
  4245. cat >conftest.$ac_ext <<_ACEOF
  4246. /* confdefs.h. */
  4247. _ACEOF
  4248. cat confdefs.h >>conftest.$ac_ext
  4249. cat >>conftest.$ac_ext <<_ACEOF
  4250. /* end confdefs.h. */
  4251. int
  4252. main ()
  4253. {
  4254. return 0;
  4255. ;
  4256. return 0;
  4257. }
  4258. _ACEOF
  4259. rm -f conftest.$ac_objext conftest$ac_exeext
  4260. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4261. (eval $ac_link) 2>conftest.er1
  4262. ac_status=$?
  4263. grep -v '^ *+' conftest.er1 >conftest.err
  4264. rm -f conftest.er1
  4265. cat conftest.err >&5
  4266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4267. (exit $ac_status); } &&
  4268. { ac_try='test -z "$ac_cxx_werror_flag"
  4269. || test ! -s conftest.err'
  4270. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4271. (eval $ac_try) 2>&5
  4272. ac_status=$?
  4273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4274. (exit $ac_status); }; } &&
  4275. { ac_try='test -s conftest$ac_exeext'
  4276. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4277. (eval $ac_try) 2>&5
  4278. ac_status=$?
  4279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4280. (exit $ac_status); }; }; then
  4281. eval "kde_cv_prog_cxx_$kde_cache=yes"
  4282. else
  4283. echo "$as_me: failed program was:" >&5
  4284. sed 's/^/| /' conftest.$ac_ext >&5
  4285. fi
  4286. rm -f conftest.err conftest.$ac_objext \
  4287. conftest$ac_exeext conftest.$ac_ext
  4288. CXXFLAGS="$save_CXXFLAGS"
  4289. ac_ext=c
  4290. ac_cpp='$CPP $CPPFLAGS'
  4291. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4292. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4293. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4294. fi
  4295. if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
  4296. echo "$as_me:$LINENO: result: yes" >&5
  4297. echo "${ECHO_T}yes" >&6
  4298. :
  4299. CXXFLAGS="$CXXFLAGS -fno-check-new"
  4300. else
  4301. echo "$as_me:$LINENO: result: no" >&5
  4302. echo "${ECHO_T}no" >&6
  4303. :
  4304. fi
  4305. echo "$as_me:$LINENO: checking whether $CXX supports -fno-common" >&5
  4306. echo $ECHO_N "checking whether $CXX supports -fno-common... $ECHO_C" >&6
  4307. kde_cache=`echo fno-common | sed 'y% .=/+-,%____p__%'`
  4308. if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
  4309. echo $ECHO_N "(cached) $ECHO_C" >&6
  4310. else
  4311. ac_ext=cc
  4312. ac_cpp='$CXXCPP $CPPFLAGS'
  4313. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4314. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4315. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4316. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  4317. save_CXXFLAGS="$CXXFLAGS"
  4318. CXXFLAGS="$CXXFLAGS -fno-common"
  4319. cat >conftest.$ac_ext <<_ACEOF
  4320. /* confdefs.h. */
  4321. _ACEOF
  4322. cat confdefs.h >>conftest.$ac_ext
  4323. cat >>conftest.$ac_ext <<_ACEOF
  4324. /* end confdefs.h. */
  4325. int
  4326. main ()
  4327. {
  4328. return 0;
  4329. ;
  4330. return 0;
  4331. }
  4332. _ACEOF
  4333. rm -f conftest.$ac_objext conftest$ac_exeext
  4334. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4335. (eval $ac_link) 2>conftest.er1
  4336. ac_status=$?
  4337. grep -v '^ *+' conftest.er1 >conftest.err
  4338. rm -f conftest.er1
  4339. cat conftest.err >&5
  4340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4341. (exit $ac_status); } &&
  4342. { ac_try='test -z "$ac_cxx_werror_flag"
  4343. || test ! -s conftest.err'
  4344. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4345. (eval $ac_try) 2>&5
  4346. ac_status=$?
  4347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4348. (exit $ac_status); }; } &&
  4349. { ac_try='test -s conftest$ac_exeext'
  4350. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4351. (eval $ac_try) 2>&5
  4352. ac_status=$?
  4353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4354. (exit $ac_status); }; }; then
  4355. eval "kde_cv_prog_cxx_$kde_cache=yes"
  4356. else
  4357. echo "$as_me: failed program was:" >&5
  4358. sed 's/^/| /' conftest.$ac_ext >&5
  4359. fi
  4360. rm -f conftest.err conftest.$ac_objext \
  4361. conftest$ac_exeext conftest.$ac_ext
  4362. CXXFLAGS="$save_CXXFLAGS"
  4363. ac_ext=c
  4364. ac_cpp='$CPP $CPPFLAGS'
  4365. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4366. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4367. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4368. fi
  4369. if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
  4370. echo "$as_me:$LINENO: result: yes" >&5
  4371. echo "${ECHO_T}yes" >&6
  4372. :
  4373. CXXFLAGS="$CXXFLAGS -fno-common"
  4374. else
  4375. echo "$as_me:$LINENO: result: no" >&5
  4376. echo "${ECHO_T}no" >&6
  4377. :
  4378. fi
  4379. echo "$as_me:$LINENO: checking whether $CXX supports -fexceptions" >&5
  4380. echo $ECHO_N "checking whether $CXX supports -fexceptions... $ECHO_C" >&6
  4381. kde_cache=`echo fexceptions | sed 'y% .=/+-,%____p__%'`
  4382. if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
  4383. echo $ECHO_N "(cached) $ECHO_C" >&6
  4384. else
  4385. ac_ext=cc
  4386. ac_cpp='$CXXCPP $CPPFLAGS'
  4387. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4388. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4389. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4390. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  4391. save_CXXFLAGS="$CXXFLAGS"
  4392. CXXFLAGS="$CXXFLAGS -fexceptions"
  4393. cat >conftest.$ac_ext <<_ACEOF
  4394. /* confdefs.h. */
  4395. _ACEOF
  4396. cat confdefs.h >>conftest.$ac_ext
  4397. cat >>conftest.$ac_ext <<_ACEOF
  4398. /* end confdefs.h. */
  4399. int
  4400. main ()
  4401. {
  4402. return 0;
  4403. ;
  4404. return 0;
  4405. }
  4406. _ACEOF
  4407. rm -f conftest.$ac_objext conftest$ac_exeext
  4408. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4409. (eval $ac_link) 2>conftest.er1
  4410. ac_status=$?
  4411. grep -v '^ *+' conftest.er1 >conftest.err
  4412. rm -f conftest.er1
  4413. cat conftest.err >&5
  4414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4415. (exit $ac_status); } &&
  4416. { ac_try='test -z "$ac_cxx_werror_flag"
  4417. || test ! -s conftest.err'
  4418. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4419. (eval $ac_try) 2>&5
  4420. ac_status=$?
  4421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4422. (exit $ac_status); }; } &&
  4423. { ac_try='test -s conftest$ac_exeext'
  4424. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4425. (eval $ac_try) 2>&5
  4426. ac_status=$?
  4427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4428. (exit $ac_status); }; }; then
  4429. eval "kde_cv_prog_cxx_$kde_cache=yes"
  4430. else
  4431. echo "$as_me: failed program was:" >&5
  4432. sed 's/^/| /' conftest.$ac_ext >&5
  4433. fi
  4434. rm -f conftest.err conftest.$ac_objext \
  4435. conftest$ac_exeext conftest.$ac_ext
  4436. CXXFLAGS="$save_CXXFLAGS"
  4437. ac_ext=c
  4438. ac_cpp='$CPP $CPPFLAGS'
  4439. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4440. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4441. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4442. fi
  4443. if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
  4444. echo "$as_me:$LINENO: result: yes" >&5
  4445. echo "${ECHO_T}yes" >&6
  4446. :
  4447. USE_EXCEPTIONS="-fexceptions"
  4448. else
  4449. echo "$as_me:$LINENO: result: no" >&5
  4450. echo "${ECHO_T}no" >&6
  4451. :
  4452. USE_EXCEPTIONS=
  4453. fi
  4454. fi
  4455. if test "$CXX" = "KCC"; then
  4456. # Check whether --enable-pch or --disable-pch was given.
  4457. if test "${enable_pch+set}" = set; then
  4458. enableval="$enable_pch"
  4459. kde_use_pch=$enableval
  4460. else
  4461. kde_use_pch=no
  4462. fi;
  4463. if test "$kde_use_pch" = "yes"; then
  4464. echo "$as_me:$LINENO: checking whether $CXX supports --pch" >&5
  4465. echo $ECHO_N "checking whether $CXX supports --pch... $ECHO_C" >&6
  4466. kde_cache=`echo -pch | sed 'y% .=/+-,%____p__%'`
  4467. if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
  4468. echo $ECHO_N "(cached) $ECHO_C" >&6
  4469. else
  4470. ac_ext=cc
  4471. ac_cpp='$CXXCPP $CPPFLAGS'
  4472. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4473. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4474. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4475. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  4476. save_CXXFLAGS="$CXXFLAGS"
  4477. CXXFLAGS="$CXXFLAGS --pch"
  4478. cat >conftest.$ac_ext <<_ACEOF
  4479. /* confdefs.h. */
  4480. _ACEOF
  4481. cat confdefs.h >>conftest.$ac_ext
  4482. cat >>conftest.$ac_ext <<_ACEOF
  4483. /* end confdefs.h. */
  4484. int
  4485. main ()
  4486. {
  4487. return 0;
  4488. ;
  4489. return 0;
  4490. }
  4491. _ACEOF
  4492. rm -f conftest.$ac_objext conftest$ac_exeext
  4493. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4494. (eval $ac_link) 2>conftest.er1
  4495. ac_status=$?
  4496. grep -v '^ *+' conftest.er1 >conftest.err
  4497. rm -f conftest.er1
  4498. cat conftest.err >&5
  4499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4500. (exit $ac_status); } &&
  4501. { ac_try='test -z "$ac_cxx_werror_flag"
  4502. || test ! -s conftest.err'
  4503. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4504. (eval $ac_try) 2>&5
  4505. ac_status=$?
  4506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4507. (exit $ac_status); }; } &&
  4508. { ac_try='test -s conftest$ac_exeext'
  4509. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4510. (eval $ac_try) 2>&5
  4511. ac_status=$?
  4512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4513. (exit $ac_status); }; }; then
  4514. eval "kde_cv_prog_cxx_$kde_cache=yes"
  4515. else
  4516. echo "$as_me: failed program was:" >&5
  4517. sed 's/^/| /' conftest.$ac_ext >&5
  4518. fi
  4519. rm -f conftest.err conftest.$ac_objext \
  4520. conftest$ac_exeext conftest.$ac_ext
  4521. CXXFLAGS="$save_CXXFLAGS"
  4522. ac_ext=c
  4523. ac_cpp='$CPP $CPPFLAGS'
  4524. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4525. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4526. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4527. fi
  4528. if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
  4529. echo "$as_me:$LINENO: result: yes" >&5
  4530. echo "${ECHO_T}yes" >&6
  4531. :
  4532. CXXFLAGS="$CXXFLAGS --pch"
  4533. else
  4534. echo "$as_me:$LINENO: result: no" >&5
  4535. echo "${ECHO_T}no" >&6
  4536. :
  4537. fi
  4538. fi
  4539. echo "$as_me:$LINENO: checking whether $CXX supports --inline_keyword_space_time=6" >&5
  4540. echo $ECHO_N "checking whether $CXX supports --inline_keyword_space_time=6... $ECHO_C" >&6
  4541. kde_cache=`echo -inline_keyword_space_time=6 | sed 'y% .=/+-,%____p__%'`
  4542. if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
  4543. echo $ECHO_N "(cached) $ECHO_C" >&6
  4544. else
  4545. ac_ext=cc
  4546. ac_cpp='$CXXCPP $CPPFLAGS'
  4547. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4548. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4549. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4550. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  4551. save_CXXFLAGS="$CXXFLAGS"
  4552. CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
  4553. cat >conftest.$ac_ext <<_ACEOF
  4554. /* confdefs.h. */
  4555. _ACEOF
  4556. cat confdefs.h >>conftest.$ac_ext
  4557. cat >>conftest.$ac_ext <<_ACEOF
  4558. /* end confdefs.h. */
  4559. int
  4560. main ()
  4561. {
  4562. return 0;
  4563. ;
  4564. return 0;
  4565. }
  4566. _ACEOF
  4567. rm -f conftest.$ac_objext conftest$ac_exeext
  4568. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4569. (eval $ac_link) 2>conftest.er1
  4570. ac_status=$?
  4571. grep -v '^ *+' conftest.er1 >conftest.err
  4572. rm -f conftest.er1
  4573. cat conftest.err >&5
  4574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4575. (exit $ac_status); } &&
  4576. { ac_try='test -z "$ac_cxx_werror_flag"
  4577. || test ! -s conftest.err'
  4578. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4579. (eval $ac_try) 2>&5
  4580. ac_status=$?
  4581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4582. (exit $ac_status); }; } &&
  4583. { ac_try='test -s conftest$ac_exeext'
  4584. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4585. (eval $ac_try) 2>&5
  4586. ac_status=$?
  4587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4588. (exit $ac_status); }; }; then
  4589. eval "kde_cv_prog_cxx_$kde_cache=yes"
  4590. else
  4591. echo "$as_me: failed program was:" >&5
  4592. sed 's/^/| /' conftest.$ac_ext >&5
  4593. fi
  4594. rm -f conftest.err conftest.$ac_objext \
  4595. conftest$ac_exeext conftest.$ac_ext
  4596. CXXFLAGS="$save_CXXFLAGS"
  4597. ac_ext=c
  4598. ac_cpp='$CPP $CPPFLAGS'
  4599. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4600. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4601. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4602. fi
  4603. if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
  4604. echo "$as_me:$LINENO: result: yes" >&5
  4605. echo "${ECHO_T}yes" >&6
  4606. :
  4607. CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
  4608. else
  4609. echo "$as_me:$LINENO: result: no" >&5
  4610. echo "${ECHO_T}no" >&6
  4611. :
  4612. fi
  4613. echo "$as_me:$LINENO: checking whether $CXX supports --inline_auto_space_time=2" >&5
  4614. echo $ECHO_N "checking whether $CXX supports --inline_auto_space_time=2... $ECHO_C" >&6
  4615. kde_cache=`echo -inline_auto_space_time=2 | sed 'y% .=/+-,%____p__%'`
  4616. if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
  4617. echo $ECHO_N "(cached) $ECHO_C" >&6
  4618. else
  4619. ac_ext=cc
  4620. ac_cpp='$CXXCPP $CPPFLAGS'
  4621. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4622. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4623. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4624. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  4625. save_CXXFLAGS="$CXXFLAGS"
  4626. CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
  4627. cat >conftest.$ac_ext <<_ACEOF
  4628. /* confdefs.h. */
  4629. _ACEOF
  4630. cat confdefs.h >>conftest.$ac_ext
  4631. cat >>conftest.$ac_ext <<_ACEOF
  4632. /* end confdefs.h. */
  4633. int
  4634. main ()
  4635. {
  4636. return 0;
  4637. ;
  4638. return 0;
  4639. }
  4640. _ACEOF
  4641. rm -f conftest.$ac_objext conftest$ac_exeext
  4642. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4643. (eval $ac_link) 2>conftest.er1
  4644. ac_status=$?
  4645. grep -v '^ *+' conftest.er1 >conftest.err
  4646. rm -f conftest.er1
  4647. cat conftest.err >&5
  4648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4649. (exit $ac_status); } &&
  4650. { ac_try='test -z "$ac_cxx_werror_flag"
  4651. || test ! -s conftest.err'
  4652. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4653. (eval $ac_try) 2>&5
  4654. ac_status=$?
  4655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4656. (exit $ac_status); }; } &&
  4657. { ac_try='test -s conftest$ac_exeext'
  4658. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4659. (eval $ac_try) 2>&5
  4660. ac_status=$?
  4661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4662. (exit $ac_status); }; }; then
  4663. eval "kde_cv_prog_cxx_$kde_cache=yes"
  4664. else
  4665. echo "$as_me: failed program was:" >&5
  4666. sed 's/^/| /' conftest.$ac_ext >&5
  4667. fi
  4668. rm -f conftest.err conftest.$ac_objext \
  4669. conftest$ac_exeext conftest.$ac_ext
  4670. CXXFLAGS="$save_CXXFLAGS"
  4671. ac_ext=c
  4672. ac_cpp='$CPP $CPPFLAGS'
  4673. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4674. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4675. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4676. fi
  4677. if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
  4678. echo "$as_me:$LINENO: result: yes" >&5
  4679. echo "${ECHO_T}yes" >&6
  4680. :
  4681. CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
  4682. else
  4683. echo "$as_me:$LINENO: result: no" >&5
  4684. echo "${ECHO_T}no" >&6
  4685. :
  4686. fi
  4687. echo "$as_me:$LINENO: checking whether $CXX supports --inline_implicit_space_time=2.0" >&5
  4688. echo $ECHO_N "checking whether $CXX supports --inline_implicit_space_time=2.0... $ECHO_C" >&6
  4689. kde_cache=`echo -inline_implicit_space_time=2.0 | sed 'y% .=/+-,%____p__%'`
  4690. if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
  4691. echo $ECHO_N "(cached) $ECHO_C" >&6
  4692. else
  4693. ac_ext=cc
  4694. ac_cpp='$CXXCPP $CPPFLAGS'
  4695. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4696. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4697. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4698. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  4699. save_CXXFLAGS="$CXXFLAGS"
  4700. CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
  4701. cat >conftest.$ac_ext <<_ACEOF
  4702. /* confdefs.h. */
  4703. _ACEOF
  4704. cat confdefs.h >>conftest.$ac_ext
  4705. cat >>conftest.$ac_ext <<_ACEOF
  4706. /* end confdefs.h. */
  4707. int
  4708. main ()
  4709. {
  4710. return 0;
  4711. ;
  4712. return 0;
  4713. }
  4714. _ACEOF
  4715. rm -f conftest.$ac_objext conftest$ac_exeext
  4716. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4717. (eval $ac_link) 2>conftest.er1
  4718. ac_status=$?
  4719. grep -v '^ *+' conftest.er1 >conftest.err
  4720. rm -f conftest.er1
  4721. cat conftest.err >&5
  4722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4723. (exit $ac_status); } &&
  4724. { ac_try='test -z "$ac_cxx_werror_flag"
  4725. || test ! -s conftest.err'
  4726. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4727. (eval $ac_try) 2>&5
  4728. ac_status=$?
  4729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4730. (exit $ac_status); }; } &&
  4731. { ac_try='test -s conftest$ac_exeext'
  4732. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4733. (eval $ac_try) 2>&5
  4734. ac_status=$?
  4735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4736. (exit $ac_status); }; }; then
  4737. eval "kde_cv_prog_cxx_$kde_cache=yes"
  4738. else
  4739. echo "$as_me: failed program was:" >&5
  4740. sed 's/^/| /' conftest.$ac_ext >&5
  4741. fi
  4742. rm -f conftest.err conftest.$ac_objext \
  4743. conftest$ac_exeext conftest.$ac_ext
  4744. CXXFLAGS="$save_CXXFLAGS"
  4745. ac_ext=c
  4746. ac_cpp='$CPP $CPPFLAGS'
  4747. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4748. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4749. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4750. fi
  4751. if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
  4752. echo "$as_me:$LINENO: result: yes" >&5
  4753. echo "${ECHO_T}yes" >&6
  4754. :
  4755. CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
  4756. else
  4757. echo "$as_me:$LINENO: result: no" >&5
  4758. echo "${ECHO_T}no" >&6
  4759. :
  4760. fi
  4761. echo "$as_me:$LINENO: checking whether $CXX supports --inline_generated_space_time=2.0" >&5
  4762. echo $ECHO_N "checking whether $CXX supports --inline_generated_space_time=2.0... $ECHO_C" >&6
  4763. kde_cache=`echo -inline_generated_space_time=2.0 | sed 'y% .=/+-,%____p__%'`
  4764. if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
  4765. echo $ECHO_N "(cached) $ECHO_C" >&6
  4766. else
  4767. ac_ext=cc
  4768. ac_cpp='$CXXCPP $CPPFLAGS'
  4769. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4770. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4771. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4772. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  4773. save_CXXFLAGS="$CXXFLAGS"
  4774. CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
  4775. cat >conftest.$ac_ext <<_ACEOF
  4776. /* confdefs.h. */
  4777. _ACEOF
  4778. cat confdefs.h >>conftest.$ac_ext
  4779. cat >>conftest.$ac_ext <<_ACEOF
  4780. /* end confdefs.h. */
  4781. int
  4782. main ()
  4783. {
  4784. return 0;
  4785. ;
  4786. return 0;
  4787. }
  4788. _ACEOF
  4789. rm -f conftest.$ac_objext conftest$ac_exeext
  4790. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4791. (eval $ac_link) 2>conftest.er1
  4792. ac_status=$?
  4793. grep -v '^ *+' conftest.er1 >conftest.err
  4794. rm -f conftest.er1
  4795. cat conftest.err >&5
  4796. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4797. (exit $ac_status); } &&
  4798. { ac_try='test -z "$ac_cxx_werror_flag"
  4799. || test ! -s conftest.err'
  4800. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4801. (eval $ac_try) 2>&5
  4802. ac_status=$?
  4803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4804. (exit $ac_status); }; } &&
  4805. { ac_try='test -s conftest$ac_exeext'
  4806. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4807. (eval $ac_try) 2>&5
  4808. ac_status=$?
  4809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4810. (exit $ac_status); }; }; then
  4811. eval "kde_cv_prog_cxx_$kde_cache=yes"
  4812. else
  4813. echo "$as_me: failed program was:" >&5
  4814. sed 's/^/| /' conftest.$ac_ext >&5
  4815. fi
  4816. rm -f conftest.err conftest.$ac_objext \
  4817. conftest$ac_exeext conftest.$ac_ext
  4818. CXXFLAGS="$save_CXXFLAGS"
  4819. ac_ext=c
  4820. ac_cpp='$CPP $CPPFLAGS'
  4821. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4822. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4823. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4824. fi
  4825. if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
  4826. echo "$as_me:$LINENO: result: yes" >&5
  4827. echo "${ECHO_T}yes" >&6
  4828. :
  4829. CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
  4830. else
  4831. echo "$as_me:$LINENO: result: no" >&5
  4832. echo "${ECHO_T}no" >&6
  4833. :
  4834. fi
  4835. echo "$as_me:$LINENO: checking whether $CXX supports --one_per" >&5
  4836. echo $ECHO_N "checking whether $CXX supports --one_per... $ECHO_C" >&6
  4837. kde_cache=`echo -one_per | sed 'y% .=/+-,%____p__%'`
  4838. if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
  4839. echo $ECHO_N "(cached) $ECHO_C" >&6
  4840. else
  4841. ac_ext=cc
  4842. ac_cpp='$CXXCPP $CPPFLAGS'
  4843. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4844. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4845. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4846. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  4847. save_CXXFLAGS="$CXXFLAGS"
  4848. CXXFLAGS="$CXXFLAGS --one_per"
  4849. cat >conftest.$ac_ext <<_ACEOF
  4850. /* confdefs.h. */
  4851. _ACEOF
  4852. cat confdefs.h >>conftest.$ac_ext
  4853. cat >>conftest.$ac_ext <<_ACEOF
  4854. /* end confdefs.h. */
  4855. int
  4856. main ()
  4857. {
  4858. return 0;
  4859. ;
  4860. return 0;
  4861. }
  4862. _ACEOF
  4863. rm -f conftest.$ac_objext conftest$ac_exeext
  4864. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4865. (eval $ac_link) 2>conftest.er1
  4866. ac_status=$?
  4867. grep -v '^ *+' conftest.er1 >conftest.err
  4868. rm -f conftest.er1
  4869. cat conftest.err >&5
  4870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4871. (exit $ac_status); } &&
  4872. { ac_try='test -z "$ac_cxx_werror_flag"
  4873. || test ! -s conftest.err'
  4874. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4875. (eval $ac_try) 2>&5
  4876. ac_status=$?
  4877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4878. (exit $ac_status); }; } &&
  4879. { ac_try='test -s conftest$ac_exeext'
  4880. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4881. (eval $ac_try) 2>&5
  4882. ac_status=$?
  4883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4884. (exit $ac_status); }; }; then
  4885. eval "kde_cv_prog_cxx_$kde_cache=yes"
  4886. else
  4887. echo "$as_me: failed program was:" >&5
  4888. sed 's/^/| /' conftest.$ac_ext >&5
  4889. fi
  4890. rm -f conftest.err conftest.$ac_objext \
  4891. conftest$ac_exeext conftest.$ac_ext
  4892. CXXFLAGS="$save_CXXFLAGS"
  4893. ac_ext=c
  4894. ac_cpp='$CPP $CPPFLAGS'
  4895. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4896. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4897. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4898. fi
  4899. if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
  4900. echo "$as_me:$LINENO: result: yes" >&5
  4901. echo "${ECHO_T}yes" >&6
  4902. :
  4903. CXXFLAGS="$CXXFLAGS --one_per"
  4904. else
  4905. echo "$as_me:$LINENO: result: no" >&5
  4906. echo "${ECHO_T}no" >&6
  4907. :
  4908. fi
  4909. fi
  4910. USE_RTTI=
  4911. case "$host" in
  4912. *-*-irix*) test "$GXX" = yes && CXXFLAGS="-D_LANGUAGE_C_PLUS_PLUS -D__LANGUAGE_C_PLUS_PLUS $CXXFLAGS" ;;
  4913. *-*-sysv4.2uw*) CXXFLAGS="-D_UNIXWARE $CXXFLAGS";;
  4914. *-*-sysv5uw7*) CXXFLAGS="-D_UNIXWARE7 $CXXFLAGS";;
  4915. *-*-solaris*)
  4916. if test "$GXX" = yes; then
  4917. libstdcpp=`$CXX -print-file-name=libstdc++.so`
  4918. if test ! -f $libstdcpp; then
  4919. { { echo "$as_me:$LINENO: error: You've compiled gcc without --enable-shared. This doesn't work with KDE. Please recompile gcc with --enable-shared to receive a libstdc++.so" >&5
  4920. echo "$as_me: error: You've compiled gcc without --enable-shared. This doesn't work with KDE. Please recompile gcc with --enable-shared to receive a libstdc++.so" >&2;}
  4921. { (exit 1); exit 1; }; }
  4922. fi
  4923. fi
  4924. ;;
  4925. esac
  4926. if test "x$kde_use_qt_emb" != "xyes"; then
  4927. __val=$CXX
  4928. __forbid=" -fno-rtti -rpath "
  4929. if test -n "$__val"; then
  4930. __new=""
  4931. ac_save_IFS=$IFS
  4932. IFS=" "
  4933. for i in $__val; do
  4934. case "$__forbid" in
  4935. *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
  4936. echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
  4937. *) # Careful to not add spaces, where there were none, because otherwise
  4938. # libtool gets confused, if we change e.g. CXX
  4939. if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
  4940. esac
  4941. done
  4942. IFS=$ac_save_IFS
  4943. CXX=$__new
  4944. fi
  4945. __val=$CXXFLAGS
  4946. __forbid=" -fno-rtti -rpath "
  4947. if test -n "$__val"; then
  4948. __new=""
  4949. ac_save_IFS=$IFS
  4950. IFS=" "
  4951. for i in $__val; do
  4952. case "$__forbid" in
  4953. *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
  4954. echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
  4955. *) # Careful to not add spaces, where there were none, because otherwise
  4956. # libtool gets confused, if we change e.g. CXX
  4957. if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
  4958. esac
  4959. done
  4960. IFS=$ac_save_IFS
  4961. CXXFLAGS=$__new
  4962. fi
  4963. else
  4964. __val=$CXX
  4965. __forbid=" -rpath "
  4966. if test -n "$__val"; then
  4967. __new=""
  4968. ac_save_IFS=$IFS
  4969. IFS=" "
  4970. for i in $__val; do
  4971. case "$__forbid" in
  4972. *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
  4973. echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
  4974. *) # Careful to not add spaces, where there were none, because otherwise
  4975. # libtool gets confused, if we change e.g. CXX
  4976. if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
  4977. esac
  4978. done
  4979. IFS=$ac_save_IFS
  4980. CXX=$__new
  4981. fi
  4982. __val=$CXXFLAGS
  4983. __forbid=" -rpath "
  4984. if test -n "$__val"; then
  4985. __new=""
  4986. ac_save_IFS=$IFS
  4987. IFS=" "
  4988. for i in $__val; do
  4989. case "$__forbid" in
  4990. *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
  4991. echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
  4992. *) # Careful to not add spaces, where there were none, because otherwise
  4993. # libtool gets confused, if we change e.g. CXX
  4994. if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
  4995. esac
  4996. done
  4997. IFS=$ac_save_IFS
  4998. CXXFLAGS=$__new
  4999. fi
  5000. fi
  5001. ac_ext=cc
  5002. ac_cpp='$CXXCPP $CPPFLAGS'
  5003. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5004. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5005. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5006. echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  5007. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  5008. if test -z "$CXXCPP"; then
  5009. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  5010. echo $ECHO_N "(cached) $ECHO_C" >&6
  5011. else
  5012. # Double quotes because CXXCPP needs to be expanded
  5013. for CXXCPP in "$CXX -E" "/lib/cpp"
  5014. do
  5015. ac_preproc_ok=false
  5016. for ac_cxx_preproc_warn_flag in '' yes
  5017. do
  5018. # Use a header file that comes with gcc, so configuring glibc
  5019. # with a fresh cross-compiler works.
  5020. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5021. # <limits.h> exists even on freestanding compilers.
  5022. # On the NeXT, cc -E runs the code through the compiler's parser,
  5023. # not just through cpp. "Syntax error" is here to catch this case.
  5024. cat >conftest.$ac_ext <<_ACEOF
  5025. /* confdefs.h. */
  5026. _ACEOF
  5027. cat confdefs.h >>conftest.$ac_ext
  5028. cat >>conftest.$ac_ext <<_ACEOF
  5029. /* end confdefs.h. */
  5030. #ifdef __STDC__
  5031. # include <limits.h>
  5032. #else
  5033. # include <assert.h>
  5034. #endif
  5035. Syntax error
  5036. _ACEOF
  5037. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5038. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5039. ac_status=$?
  5040. grep -v '^ *+' conftest.er1 >conftest.err
  5041. rm -f conftest.er1
  5042. cat conftest.err >&5
  5043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5044. (exit $ac_status); } >/dev/null; then
  5045. if test -s conftest.err; then
  5046. ac_cpp_err=$ac_cxx_preproc_warn_flag
  5047. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  5048. else
  5049. ac_cpp_err=
  5050. fi
  5051. else
  5052. ac_cpp_err=yes
  5053. fi
  5054. if test -z "$ac_cpp_err"; then
  5055. :
  5056. else
  5057. echo "$as_me: failed program was:" >&5
  5058. sed 's/^/| /' conftest.$ac_ext >&5
  5059. # Broken: fails on valid input.
  5060. continue
  5061. fi
  5062. rm -f conftest.err conftest.$ac_ext
  5063. # OK, works on sane cases. Now check whether non-existent headers
  5064. # can be detected and how.
  5065. cat >conftest.$ac_ext <<_ACEOF
  5066. /* confdefs.h. */
  5067. _ACEOF
  5068. cat confdefs.h >>conftest.$ac_ext
  5069. cat >>conftest.$ac_ext <<_ACEOF
  5070. /* end confdefs.h. */
  5071. #include <ac_nonexistent.h>
  5072. _ACEOF
  5073. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5074. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5075. ac_status=$?
  5076. grep -v '^ *+' conftest.er1 >conftest.err
  5077. rm -f conftest.er1
  5078. cat conftest.err >&5
  5079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5080. (exit $ac_status); } >/dev/null; then
  5081. if test -s conftest.err; then
  5082. ac_cpp_err=$ac_cxx_preproc_warn_flag
  5083. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  5084. else
  5085. ac_cpp_err=
  5086. fi
  5087. else
  5088. ac_cpp_err=yes
  5089. fi
  5090. if test -z "$ac_cpp_err"; then
  5091. # Broken: success on invalid input.
  5092. continue
  5093. else
  5094. echo "$as_me: failed program was:" >&5
  5095. sed 's/^/| /' conftest.$ac_ext >&5
  5096. # Passes both tests.
  5097. ac_preproc_ok=:
  5098. break
  5099. fi
  5100. rm -f conftest.err conftest.$ac_ext
  5101. done
  5102. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5103. rm -f conftest.err conftest.$ac_ext
  5104. if $ac_preproc_ok; then
  5105. break
  5106. fi
  5107. done
  5108. ac_cv_prog_CXXCPP=$CXXCPP
  5109. fi
  5110. CXXCPP=$ac_cv_prog_CXXCPP
  5111. else
  5112. ac_cv_prog_CXXCPP=$CXXCPP
  5113. fi
  5114. echo "$as_me:$LINENO: result: $CXXCPP" >&5
  5115. echo "${ECHO_T}$CXXCPP" >&6
  5116. ac_preproc_ok=false
  5117. for ac_cxx_preproc_warn_flag in '' yes
  5118. do
  5119. # Use a header file that comes with gcc, so configuring glibc
  5120. # with a fresh cross-compiler works.
  5121. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5122. # <limits.h> exists even on freestanding compilers.
  5123. # On the NeXT, cc -E runs the code through the compiler's parser,
  5124. # not just through cpp. "Syntax error" is here to catch this case.
  5125. cat >conftest.$ac_ext <<_ACEOF
  5126. /* confdefs.h. */
  5127. _ACEOF
  5128. cat confdefs.h >>conftest.$ac_ext
  5129. cat >>conftest.$ac_ext <<_ACEOF
  5130. /* end confdefs.h. */
  5131. #ifdef __STDC__
  5132. # include <limits.h>
  5133. #else
  5134. # include <assert.h>
  5135. #endif
  5136. Syntax error
  5137. _ACEOF
  5138. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5139. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5140. ac_status=$?
  5141. grep -v '^ *+' conftest.er1 >conftest.err
  5142. rm -f conftest.er1
  5143. cat conftest.err >&5
  5144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5145. (exit $ac_status); } >/dev/null; then
  5146. if test -s conftest.err; then
  5147. ac_cpp_err=$ac_cxx_preproc_warn_flag
  5148. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  5149. else
  5150. ac_cpp_err=
  5151. fi
  5152. else
  5153. ac_cpp_err=yes
  5154. fi
  5155. if test -z "$ac_cpp_err"; then
  5156. :
  5157. else
  5158. echo "$as_me: failed program was:" >&5
  5159. sed 's/^/| /' conftest.$ac_ext >&5
  5160. # Broken: fails on valid input.
  5161. continue
  5162. fi
  5163. rm -f conftest.err conftest.$ac_ext
  5164. # OK, works on sane cases. Now check whether non-existent headers
  5165. # can be detected and how.
  5166. cat >conftest.$ac_ext <<_ACEOF
  5167. /* confdefs.h. */
  5168. _ACEOF
  5169. cat confdefs.h >>conftest.$ac_ext
  5170. cat >>conftest.$ac_ext <<_ACEOF
  5171. /* end confdefs.h. */
  5172. #include <ac_nonexistent.h>
  5173. _ACEOF
  5174. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5175. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5176. ac_status=$?
  5177. grep -v '^ *+' conftest.er1 >conftest.err
  5178. rm -f conftest.er1
  5179. cat conftest.err >&5
  5180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5181. (exit $ac_status); } >/dev/null; then
  5182. if test -s conftest.err; then
  5183. ac_cpp_err=$ac_cxx_preproc_warn_flag
  5184. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  5185. else
  5186. ac_cpp_err=
  5187. fi
  5188. else
  5189. ac_cpp_err=yes
  5190. fi
  5191. if test -z "$ac_cpp_err"; then
  5192. # Broken: success on invalid input.
  5193. continue
  5194. else
  5195. echo "$as_me: failed program was:" >&5
  5196. sed 's/^/| /' conftest.$ac_ext >&5
  5197. # Passes both tests.
  5198. ac_preproc_ok=:
  5199. break
  5200. fi
  5201. rm -f conftest.err conftest.$ac_ext
  5202. done
  5203. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5204. rm -f conftest.err conftest.$ac_ext
  5205. if $ac_preproc_ok; then
  5206. :
  5207. else
  5208. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5209. See \`config.log' for more details." >&5
  5210. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5211. See \`config.log' for more details." >&2;}
  5212. { (exit 1); exit 1; }; }
  5213. fi
  5214. ac_ext=c
  5215. ac_cpp='$CPP $CPPFLAGS'
  5216. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5217. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5218. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5219. if test "$GCC" = yes; then
  5220. NOOPT_CFLAGS=-O0
  5221. fi
  5222. echo "$as_me:$LINENO: checking whether $CXX supports -O0" >&5
  5223. echo $ECHO_N "checking whether $CXX supports -O0... $ECHO_C" >&6
  5224. kde_cache=`echo O0 | sed 'y% .=/+-,%____p__%'`
  5225. if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
  5226. echo $ECHO_N "(cached) $ECHO_C" >&6
  5227. else
  5228. ac_ext=cc
  5229. ac_cpp='$CXXCPP $CPPFLAGS'
  5230. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5231. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5232. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5233. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5234. save_CXXFLAGS="$CXXFLAGS"
  5235. CXXFLAGS="$CXXFLAGS -O0"
  5236. cat >conftest.$ac_ext <<_ACEOF
  5237. /* confdefs.h. */
  5238. _ACEOF
  5239. cat confdefs.h >>conftest.$ac_ext
  5240. cat >>conftest.$ac_ext <<_ACEOF
  5241. /* end confdefs.h. */
  5242. int
  5243. main ()
  5244. {
  5245. return 0;
  5246. ;
  5247. return 0;
  5248. }
  5249. _ACEOF
  5250. rm -f conftest.$ac_objext conftest$ac_exeext
  5251. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5252. (eval $ac_link) 2>conftest.er1
  5253. ac_status=$?
  5254. grep -v '^ *+' conftest.er1 >conftest.err
  5255. rm -f conftest.er1
  5256. cat conftest.err >&5
  5257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5258. (exit $ac_status); } &&
  5259. { ac_try='test -z "$ac_cxx_werror_flag"
  5260. || test ! -s conftest.err'
  5261. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5262. (eval $ac_try) 2>&5
  5263. ac_status=$?
  5264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5265. (exit $ac_status); }; } &&
  5266. { ac_try='test -s conftest$ac_exeext'
  5267. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5268. (eval $ac_try) 2>&5
  5269. ac_status=$?
  5270. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5271. (exit $ac_status); }; }; then
  5272. eval "kde_cv_prog_cxx_$kde_cache=yes"
  5273. else
  5274. echo "$as_me: failed program was:" >&5
  5275. sed 's/^/| /' conftest.$ac_ext >&5
  5276. fi
  5277. rm -f conftest.err conftest.$ac_objext \
  5278. conftest$ac_exeext conftest.$ac_ext
  5279. CXXFLAGS="$save_CXXFLAGS"
  5280. ac_ext=c
  5281. ac_cpp='$CPP $CPPFLAGS'
  5282. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5283. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5284. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5285. fi
  5286. if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
  5287. echo "$as_me:$LINENO: result: yes" >&5
  5288. echo "${ECHO_T}yes" >&6
  5289. :
  5290. NOOPT_CXXFLAGS=-O0
  5291. else
  5292. echo "$as_me:$LINENO: result: no" >&5
  5293. echo "${ECHO_T}no" >&6
  5294. :
  5295. fi
  5296. # Check whether --enable-final or --disable-final was given.
  5297. if test "${enable_final+set}" = set; then
  5298. enableval="$enable_final"
  5299. kde_use_final=$enableval
  5300. else
  5301. kde_use_final=no
  5302. fi;
  5303. if test "x$kde_use_final" = "xyes"; then
  5304. KDE_USE_FINAL_TRUE=""
  5305. KDE_USE_FINAL_FALSE="#"
  5306. else
  5307. KDE_USE_FINAL_TRUE="#"
  5308. KDE_USE_FINAL_FALSE=""
  5309. fi
  5310. # Check whether --enable-closure or --disable-closure was given.
  5311. if test "${enable_closure+set}" = set; then
  5312. enableval="$enable_closure"
  5313. kde_use_closure=$enableval
  5314. else
  5315. kde_use_closure=yes
  5316. fi;
  5317. KDE_NO_UNDEFINED=""
  5318. if test "x$kde_use_closure" = "xyes"; then
  5319. KDE_USE_CLOSURE_TRUE=""
  5320. KDE_USE_CLOSURE_FALSE="#"
  5321. # CXXFLAGS="$CXXFLAGS $REPO"
  5322. else
  5323. KDE_USE_CLOSURE_TRUE="#"
  5324. KDE_USE_CLOSURE_FALSE=""
  5325. echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--no-undefined" >&5
  5326. echo $ECHO_N "checking whether $CXX supports -Wl,--no-undefined... $ECHO_C" >&6
  5327. kde_cache=`echo Wl,--no-undefined | sed 'y% .=/+-,%____p__%'`
  5328. if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
  5329. echo $ECHO_N "(cached) $ECHO_C" >&6
  5330. else
  5331. ac_ext=cc
  5332. ac_cpp='$CXXCPP $CPPFLAGS'
  5333. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5334. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5335. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5336. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5337. save_CXXFLAGS="$CXXFLAGS"
  5338. CXXFLAGS="$CXXFLAGS -Wl,--no-undefined"
  5339. cat >conftest.$ac_ext <<_ACEOF
  5340. /* confdefs.h. */
  5341. _ACEOF
  5342. cat confdefs.h >>conftest.$ac_ext
  5343. cat >>conftest.$ac_ext <<_ACEOF
  5344. /* end confdefs.h. */
  5345. int
  5346. main ()
  5347. {
  5348. return 0;
  5349. ;
  5350. return 0;
  5351. }
  5352. _ACEOF
  5353. rm -f conftest.$ac_objext conftest$ac_exeext
  5354. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5355. (eval $ac_link) 2>conftest.er1
  5356. ac_status=$?
  5357. grep -v '^ *+' conftest.er1 >conftest.err
  5358. rm -f conftest.er1
  5359. cat conftest.err >&5
  5360. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5361. (exit $ac_status); } &&
  5362. { ac_try='test -z "$ac_cxx_werror_flag"
  5363. || test ! -s conftest.err'
  5364. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5365. (eval $ac_try) 2>&5
  5366. ac_status=$?
  5367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5368. (exit $ac_status); }; } &&
  5369. { ac_try='test -s conftest$ac_exeext'
  5370. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5371. (eval $ac_try) 2>&5
  5372. ac_status=$?
  5373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5374. (exit $ac_status); }; }; then
  5375. eval "kde_cv_prog_cxx_$kde_cache=yes"
  5376. else
  5377. echo "$as_me: failed program was:" >&5
  5378. sed 's/^/| /' conftest.$ac_ext >&5
  5379. fi
  5380. rm -f conftest.err conftest.$ac_objext \
  5381. conftest$ac_exeext conftest.$ac_ext
  5382. CXXFLAGS="$save_CXXFLAGS"
  5383. ac_ext=c
  5384. ac_cpp='$CPP $CPPFLAGS'
  5385. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5386. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5387. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5388. fi
  5389. if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
  5390. echo "$as_me:$LINENO: result: yes" >&5
  5391. echo "${ECHO_T}yes" >&6
  5392. :
  5393. echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--allow-shlib-undefined" >&5
  5394. echo $ECHO_N "checking whether $CXX supports -Wl,--allow-shlib-undefined... $ECHO_C" >&6
  5395. kde_cache=`echo Wl,--allow-shlib-undefined | sed 'y% .=/+-,%____p__%'`
  5396. if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
  5397. echo $ECHO_N "(cached) $ECHO_C" >&6
  5398. else
  5399. ac_ext=cc
  5400. ac_cpp='$CXXCPP $CPPFLAGS'
  5401. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5402. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5403. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5404. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5405. save_CXXFLAGS="$CXXFLAGS"
  5406. CXXFLAGS="$CXXFLAGS -Wl,--allow-shlib-undefined"
  5407. cat >conftest.$ac_ext <<_ACEOF
  5408. /* confdefs.h. */
  5409. _ACEOF
  5410. cat confdefs.h >>conftest.$ac_ext
  5411. cat >>conftest.$ac_ext <<_ACEOF
  5412. /* end confdefs.h. */
  5413. int
  5414. main ()
  5415. {
  5416. return 0;
  5417. ;
  5418. return 0;
  5419. }
  5420. _ACEOF
  5421. rm -f conftest.$ac_objext conftest$ac_exeext
  5422. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5423. (eval $ac_link) 2>conftest.er1
  5424. ac_status=$?
  5425. grep -v '^ *+' conftest.er1 >conftest.err
  5426. rm -f conftest.er1
  5427. cat conftest.err >&5
  5428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5429. (exit $ac_status); } &&
  5430. { ac_try='test -z "$ac_cxx_werror_flag"
  5431. || test ! -s conftest.err'
  5432. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5433. (eval $ac_try) 2>&5
  5434. ac_status=$?
  5435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5436. (exit $ac_status); }; } &&
  5437. { ac_try='test -s conftest$ac_exeext'
  5438. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5439. (eval $ac_try) 2>&5
  5440. ac_status=$?
  5441. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5442. (exit $ac_status); }; }; then
  5443. eval "kde_cv_prog_cxx_$kde_cache=yes"
  5444. else
  5445. echo "$as_me: failed program was:" >&5
  5446. sed 's/^/| /' conftest.$ac_ext >&5
  5447. fi
  5448. rm -f conftest.err conftest.$ac_objext \
  5449. conftest$ac_exeext conftest.$ac_ext
  5450. CXXFLAGS="$save_CXXFLAGS"
  5451. ac_ext=c
  5452. ac_cpp='$CPP $CPPFLAGS'
  5453. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5454. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5455. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5456. fi
  5457. if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
  5458. echo "$as_me:$LINENO: result: yes" >&5
  5459. echo "${ECHO_T}yes" >&6
  5460. :
  5461. KDE_NO_UNDEFINED="-Wl,--no-undefined -Wl,--allow-shlib-undefined"
  5462. else
  5463. echo "$as_me:$LINENO: result: no" >&5
  5464. echo "${ECHO_T}no" >&6
  5465. :
  5466. KDE_NO_UNDEFINED=""
  5467. fi
  5468. else
  5469. echo "$as_me:$LINENO: result: no" >&5
  5470. echo "${ECHO_T}no" >&6
  5471. :
  5472. KDE_NO_UNDEFINED=""
  5473. fi
  5474. fi
  5475. # Check whether --enable-nmcheck or --disable-nmcheck was given.
  5476. if test "${enable_nmcheck+set}" = set; then
  5477. enableval="$enable_nmcheck"
  5478. kde_use_nmcheck=$enableval
  5479. else
  5480. kde_use_nmcheck=no
  5481. fi;
  5482. if test "$kde_use_nmcheck" = "yes"; then
  5483. KDE_USE_NMCHECK_TRUE=""
  5484. KDE_USE_NMCHECK_FALSE="#"
  5485. else
  5486. KDE_USE_NMCHECK_TRUE="#"
  5487. KDE_USE_NMCHECK_FALSE=""
  5488. fi
  5489. # Check whether --enable-shared or --disable-shared was given.
  5490. if test "${enable_shared+set}" = set; then
  5491. enableval="$enable_shared"
  5492. p=${PACKAGE-default}
  5493. case $enableval in
  5494. yes) enable_shared=yes ;;
  5495. no) enable_shared=no ;;
  5496. *)
  5497. enable_shared=no
  5498. # Look at the argument we got. We use all the common list separators.
  5499. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  5500. for pkg in $enableval; do
  5501. IFS="$lt_save_ifs"
  5502. if test "X$pkg" = "X$p"; then
  5503. enable_shared=yes
  5504. fi
  5505. done
  5506. IFS="$lt_save_ifs"
  5507. ;;
  5508. esac
  5509. else
  5510. enable_shared=yes
  5511. fi;
  5512. # Check whether --enable-static or --disable-static was given.
  5513. if test "${enable_static+set}" = set; then
  5514. enableval="$enable_static"
  5515. p=${PACKAGE-default}
  5516. case $enableval in
  5517. yes) enable_static=yes ;;
  5518. no) enable_static=no ;;
  5519. *)
  5520. enable_static=no
  5521. # Look at the argument we got. We use all the common list separators.
  5522. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  5523. for pkg in $enableval; do
  5524. IFS="$lt_save_ifs"
  5525. if test "X$pkg" = "X$p"; then
  5526. enable_static=yes
  5527. fi
  5528. done
  5529. IFS="$lt_save_ifs"
  5530. ;;
  5531. esac
  5532. else
  5533. enable_static=no
  5534. fi;
  5535. kdelibsuff=none
  5536. # Check whether --enable-libsuffix or --disable-libsuffix was given.
  5537. if test "${enable_libsuffix+set}" = set; then
  5538. enableval="$enable_libsuffix"
  5539. kdelibsuff=$enableval
  5540. fi;
  5541. # TODO: add an auto case that compiles a little C app to check
  5542. # where the glibc is
  5543. if test "$kdelibsuff" = "none"; then
  5544. kdelibsuff=
  5545. fi
  5546. if test -z "$kdelibsuff"; then
  5547. echo "$as_me:$LINENO: result: not using lib directory suffix" >&5
  5548. echo "${ECHO_T}not using lib directory suffix" >&6
  5549. cat >>confdefs.h <<\_ACEOF
  5550. #define KDELIBSUFF ""
  5551. _ACEOF
  5552. else
  5553. if test "$libdir" = '${exec_prefix}/lib'; then
  5554. libdir="$libdir${kdelibsuff}"
  5555. libdir="$libdir"
  5556. fi
  5557. cat >>confdefs.h <<_ACEOF
  5558. #define KDELIBSUFF "\"${kdelibsuff}\""
  5559. _ACEOF
  5560. echo "$as_me:$LINENO: result: using lib directory suffix $kdelibsuff" >&5
  5561. echo "${ECHO_T}using lib directory suffix $kdelibsuff" >&6
  5562. fi
  5563. # Check whether --enable-fast-install or --disable-fast-install was given.
  5564. if test "${enable_fast_install+set}" = set; then
  5565. enableval="$enable_fast_install"
  5566. p=${PACKAGE-default}
  5567. case $enableval in
  5568. yes) enable_fast_install=yes ;;
  5569. no) enable_fast_install=no ;;
  5570. *)
  5571. enable_fast_install=no
  5572. # Look at the argument we got. We use all the common list separators.
  5573. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  5574. for pkg in $enableval; do
  5575. IFS="$lt_save_ifs"
  5576. if test "X$pkg" = "X$p"; then
  5577. enable_fast_install=yes
  5578. fi
  5579. done
  5580. IFS="$lt_save_ifs"
  5581. ;;
  5582. esac
  5583. else
  5584. enable_fast_install=yes
  5585. fi;
  5586. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  5587. if test "${with_gnu_ld+set}" = set; then
  5588. withval="$with_gnu_ld"
  5589. test "$withval" = no || with_gnu_ld=yes
  5590. else
  5591. with_gnu_ld=no
  5592. fi;
  5593. ac_prog=ld
  5594. if test "$GCC" = yes; then
  5595. # Check if gcc -print-prog-name=ld gives a path.
  5596. echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  5597. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
  5598. case $host in
  5599. *-*-mingw*)
  5600. # gcc leaves a trailing carriage return which upsets mingw
  5601. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5602. *)
  5603. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5604. esac
  5605. case $ac_prog in
  5606. # Accept absolute paths.
  5607. [\\/]* | ?:[\\/]*)
  5608. re_direlt='/[^/][^/]*/\.\./'
  5609. # Canonicalize the path of ld
  5610. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  5611. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  5612. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  5613. done
  5614. test -z "$LD" && LD="$ac_prog"
  5615. ;;
  5616. "")
  5617. # If it fails, then pretend we aren't using GCC.
  5618. ac_prog=ld
  5619. ;;
  5620. *)
  5621. # If it is relative, then search for the first ld in PATH.
  5622. with_gnu_ld=unknown
  5623. ;;
  5624. esac
  5625. elif test "$with_gnu_ld" = yes; then
  5626. echo "$as_me:$LINENO: checking for GNU ld" >&5
  5627. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  5628. else
  5629. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  5630. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  5631. fi
  5632. if test "${lt_cv_path_LD+set}" = set; then
  5633. echo $ECHO_N "(cached) $ECHO_C" >&6
  5634. else
  5635. if test -z "$LD"; then
  5636. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5637. for ac_dir in $PATH; do
  5638. IFS="$lt_save_ifs"
  5639. test -z "$ac_dir" && ac_dir=.
  5640. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5641. lt_cv_path_LD="$ac_dir/$ac_prog"
  5642. # Check to see if the program is GNU ld. I'd rather use --version,
  5643. # but apparently some GNU ld's only accept -v.
  5644. # Break only if it was the GNU/non-GNU ld that we prefer.
  5645. if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  5646. test "$with_gnu_ld" != no && break
  5647. else
  5648. test "$with_gnu_ld" != yes && break
  5649. fi
  5650. fi
  5651. done
  5652. IFS="$lt_save_ifs"
  5653. else
  5654. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5655. fi
  5656. fi
  5657. LD="$lt_cv_path_LD"
  5658. if test -n "$LD"; then
  5659. echo "$as_me:$LINENO: result: $LD" >&5
  5660. echo "${ECHO_T}$LD" >&6
  5661. else
  5662. echo "$as_me:$LINENO: result: no" >&5
  5663. echo "${ECHO_T}no" >&6
  5664. fi
  5665. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  5666. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  5667. { (exit 1); exit 1; }; }
  5668. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  5669. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  5670. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  5671. echo $ECHO_N "(cached) $ECHO_C" >&6
  5672. else
  5673. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  5674. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  5675. lt_cv_prog_gnu_ld=yes
  5676. else
  5677. lt_cv_prog_gnu_ld=no
  5678. fi
  5679. fi
  5680. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  5681. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  5682. with_gnu_ld=$lt_cv_prog_gnu_ld
  5683. echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  5684. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  5685. if test "${lt_cv_ld_reload_flag+set}" = set; then
  5686. echo $ECHO_N "(cached) $ECHO_C" >&6
  5687. else
  5688. lt_cv_ld_reload_flag='-r'
  5689. fi
  5690. echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  5691. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  5692. reload_flag=$lt_cv_ld_reload_flag
  5693. case $reload_flag in
  5694. "" | " "*) ;;
  5695. *) reload_flag=" $reload_flag" ;;
  5696. esac
  5697. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5698. echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  5699. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  5700. if test "${lt_cv_path_NM+set}" = set; then
  5701. echo $ECHO_N "(cached) $ECHO_C" >&6
  5702. else
  5703. if test -n "$NM"; then
  5704. # Let the user override the test.
  5705. lt_cv_path_NM="$NM"
  5706. else
  5707. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5708. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  5709. IFS="$lt_save_ifs"
  5710. test -z "$ac_dir" && ac_dir=.
  5711. tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  5712. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5713. # Check to see if the nm accepts a BSD-compat flag.
  5714. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5715. # nm: unknown option "B" ignored
  5716. # Tru64's nm complains that /dev/null is an invalid object file
  5717. if ("$tmp_nm" -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
  5718. lt_cv_path_NM="$tmp_nm -B"
  5719. break
  5720. elif ("$tmp_nm" -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  5721. lt_cv_path_NM="$tmp_nm -p"
  5722. break
  5723. else
  5724. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5725. continue # so that we can try to find one that supports BSD flags
  5726. fi
  5727. fi
  5728. done
  5729. IFS="$lt_save_ifs"
  5730. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  5731. fi
  5732. fi
  5733. echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  5734. echo "${ECHO_T}$lt_cv_path_NM" >&6
  5735. NM="$lt_cv_path_NM"
  5736. echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  5737. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  5738. if test "${lt_cv_path_SED+set}" = set; then
  5739. echo $ECHO_N "(cached) $ECHO_C" >&6
  5740. else
  5741. # Loop through the user's path and test for sed and gsed.
  5742. # Then use that list of sed's as ones to test for truncation.
  5743. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5744. for as_dir in $PATH
  5745. do
  5746. IFS=$as_save_IFS
  5747. test -z "$as_dir" && as_dir=.
  5748. for ac_prog in sed gsed; do
  5749. for ac_exec_ext in '' $ac_executable_extensions; do
  5750. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  5751. _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
  5752. fi
  5753. done
  5754. done
  5755. done
  5756. # Create a temporary directory, and hook for its removal unless debugging.
  5757. $debug ||
  5758. {
  5759. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  5760. trap '{ (exit 1); exit 1; }' 1 2 13 15
  5761. }
  5762. # Create a (secure) tmp directory for tmp files.
  5763. : ${TMPDIR=/tmp}
  5764. {
  5765. tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
  5766. test -n "$tmp" && test -d "$tmp"
  5767. } ||
  5768. {
  5769. tmp=$TMPDIR/sed$$-$RANDOM
  5770. (umask 077 && mkdir $tmp)
  5771. } ||
  5772. {
  5773. echo "$me: cannot create a temporary directory in $TMPDIR" >&2
  5774. { (exit 1); exit 1; }
  5775. }
  5776. _max=0
  5777. _count=0
  5778. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  5779. # along with /bin/sed that truncates output.
  5780. for _sed in $_sed_list /usr/xpg4/bin/sed; do
  5781. test ! -f ${_sed} && break
  5782. cat /dev/null > "$tmp/sed.in"
  5783. _count=0
  5784. echo $ECHO_N "0123456789$ECHO_C" >"$tmp/sed.in"
  5785. # Check for GNU sed and select it if it is found.
  5786. if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
  5787. lt_cv_path_SED=${_sed}
  5788. break;
  5789. fi
  5790. while true; do
  5791. cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
  5792. mv "$tmp/sed.tmp" "$tmp/sed.in"
  5793. cp "$tmp/sed.in" "$tmp/sed.nl"
  5794. echo >>"$tmp/sed.nl"
  5795. ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
  5796. cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
  5797. # 10000 chars as input seems more than enough
  5798. test $_count -gt 10 && break
  5799. _count=`expr $_count + 1`
  5800. if test $_count -gt $_max; then
  5801. _max=$_count
  5802. lt_cv_path_SED=$_sed
  5803. fi
  5804. done
  5805. done
  5806. rm -rf "$tmp"
  5807. fi
  5808. echo "$as_me:$LINENO: result: $SED" >&5
  5809. echo "${ECHO_T}$SED" >&6
  5810. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  5811. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  5812. LN_S=$as_ln_s
  5813. if test "$LN_S" = "ln -s"; then
  5814. echo "$as_me:$LINENO: result: yes" >&5
  5815. echo "${ECHO_T}yes" >&6
  5816. else
  5817. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  5818. echo "${ECHO_T}no, using $LN_S" >&6
  5819. fi
  5820. echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
  5821. echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
  5822. if test "${lt_cv_deplibs_check_method+set}" = set; then
  5823. echo $ECHO_N "(cached) $ECHO_C" >&6
  5824. else
  5825. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5826. lt_cv_file_magic_test_file=
  5827. lt_cv_deplibs_check_method='unknown'
  5828. # Need to set the preceding variable on all platforms that support
  5829. # interlibrary dependencies.
  5830. # 'none' -- dependencies not supported.
  5831. # `unknown' -- same as none, but documents that we really don't know.
  5832. # 'pass_all' -- all dependencies passed with no checks.
  5833. # 'test_compile' -- check by making test program.
  5834. # 'file_magic [[regex]]' -- check by looking for files in library path
  5835. # which responds to the $file_magic_cmd with a given egrep regex.
  5836. # If you have `file' or equivalent on your system and you're not sure
  5837. # whether `pass_all' will *always* work, you probably want this one.
  5838. case $host_os in
  5839. aix4* | aix5*)
  5840. lt_cv_deplibs_check_method=pass_all
  5841. ;;
  5842. beos*)
  5843. lt_cv_deplibs_check_method=pass_all
  5844. ;;
  5845. bsdi4*)
  5846. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5847. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5848. lt_cv_file_magic_test_file=/shlib/libc.so
  5849. ;;
  5850. cygwin* | mingw* | pw32*)
  5851. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5852. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5853. ;;
  5854. darwin* | rhapsody*)
  5855. lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
  5856. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5857. case "$host_os" in
  5858. rhapsody* | darwin1.[012])
  5859. lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
  5860. ;;
  5861. *) # Darwin 1.3 on
  5862. lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
  5863. ;;
  5864. esac
  5865. ;;
  5866. freebsd*)
  5867. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  5868. case $host_cpu in
  5869. i*86 )
  5870. # Not sure whether the presence of OpenBSD here was a mistake.
  5871. # Let's accept both of them until this is cleared up.
  5872. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
  5873. lt_cv_file_magic_cmd=/usr/bin/file
  5874. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5875. ;;
  5876. esac
  5877. else
  5878. lt_cv_deplibs_check_method=pass_all
  5879. fi
  5880. ;;
  5881. gnu*)
  5882. lt_cv_deplibs_check_method=pass_all
  5883. ;;
  5884. hpux10.20* | hpux11*)
  5885. lt_cv_file_magic_cmd=/usr/bin/file
  5886. if test "$host_cpu" = ia64; then
  5887. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5888. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5889. else
  5890. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  5891. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5892. fi
  5893. ;;
  5894. irix5* | irix6* | nonstopux*)
  5895. case $host_os in
  5896. irix5* | nonstopux*)
  5897. # this will be overridden with pass_all, but let us keep it just in case
  5898. lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
  5899. ;;
  5900. *)
  5901. case $LD in
  5902. *-32|*"-32 ") libmagic=32-bit;;
  5903. *-n32|*"-n32 ") libmagic=N32;;
  5904. *-64|*"-64 ") libmagic=64-bit;;
  5905. *) libmagic=never-match;;
  5906. esac
  5907. # this will be overridden with pass_all, but let us keep it just in case
  5908. lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
  5909. ;;
  5910. esac
  5911. lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
  5912. lt_cv_deplibs_check_method=pass_all
  5913. ;;
  5914. # This must be Linux ELF.
  5915. linux*)
  5916. case $host_cpu in
  5917. alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh* | x86_64* )
  5918. lt_cv_deplibs_check_method=pass_all ;;
  5919. # the debian people say, arm and glibc 2.3.1 works for them with pass_all
  5920. arm* )
  5921. lt_cv_deplibs_check_method=pass_all ;;
  5922. *)
  5923. # glibc up to 2.1.1 does not perform some relocations on ARM
  5924. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
  5925. esac
  5926. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  5927. ;;
  5928. netbsd*)
  5929. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  5930. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  5931. else
  5932. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
  5933. fi
  5934. ;;
  5935. newos6*)
  5936. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5937. lt_cv_file_magic_cmd=/usr/bin/file
  5938. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5939. ;;
  5940. nto-qnx)
  5941. lt_cv_deplibs_check_method=unknown
  5942. ;;
  5943. openbsd*)
  5944. lt_cv_file_magic_cmd=/usr/bin/file
  5945. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5946. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5947. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
  5948. else
  5949. lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  5950. fi
  5951. ;;
  5952. osf3* | osf4* | osf5*)
  5953. # this will be overridden with pass_all, but let us keep it just in case
  5954. lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
  5955. lt_cv_file_magic_test_file=/shlib/libc.so
  5956. lt_cv_deplibs_check_method=pass_all
  5957. ;;
  5958. sco3.2v5*)
  5959. lt_cv_deplibs_check_method=pass_all
  5960. ;;
  5961. solaris*)
  5962. lt_cv_deplibs_check_method=pass_all
  5963. lt_cv_file_magic_test_file=/lib/libc.so
  5964. ;;
  5965. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5966. case $host_vendor in
  5967. motorola)
  5968. 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]'
  5969. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5970. ;;
  5971. ncr)
  5972. lt_cv_deplibs_check_method=pass_all
  5973. ;;
  5974. sequent)
  5975. lt_cv_file_magic_cmd='/bin/file'
  5976. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5977. ;;
  5978. sni)
  5979. lt_cv_file_magic_cmd='/bin/file'
  5980. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5981. lt_cv_file_magic_test_file=/lib/libc.so
  5982. ;;
  5983. esac
  5984. ;;
  5985. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
  5986. lt_cv_deplibs_check_method=pass_all
  5987. ;;
  5988. esac
  5989. fi
  5990. echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  5991. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  5992. file_magic_cmd=$lt_cv_file_magic_cmd
  5993. deplibs_check_method=$lt_cv_deplibs_check_method
  5994. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5995. # If no C compiler was specified, use CC.
  5996. LTCC=${LTCC-"$CC"}
  5997. # Allow CC to be a program name with arguments.
  5998. set dummy $CC
  5999. compiler="$2"
  6000. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  6001. if test "${enable_libtool_lock+set}" = set; then
  6002. enableval="$enable_libtool_lock"
  6003. fi;
  6004. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6005. # Some flags need to be propagated to the compiler or linker for good
  6006. # libtool support.
  6007. case $host in
  6008. ia64-*-hpux*)
  6009. # Find out which ABI we are using.
  6010. echo 'int i;' > conftest.$ac_ext
  6011. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6012. (eval $ac_compile) 2>&5
  6013. ac_status=$?
  6014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6015. (exit $ac_status); }; then
  6016. case `/usr/bin/file conftest.$ac_objext` in
  6017. *ELF-32*)
  6018. HPUX_IA64_MODE="32"
  6019. ;;
  6020. *ELF-64*)
  6021. HPUX_IA64_MODE="64"
  6022. ;;
  6023. esac
  6024. fi
  6025. rm -rf conftest*
  6026. ;;
  6027. *-*-irix6*)
  6028. # Find out which ABI we are using.
  6029. echo '#line 6830 "configure"' > conftest.$ac_ext
  6030. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6031. (eval $ac_compile) 2>&5
  6032. ac_status=$?
  6033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6034. (exit $ac_status); }; then
  6035. case `/usr/bin/file conftest.$ac_objext` in
  6036. *32-bit*)
  6037. LD="${LD-ld} -32"
  6038. ;;
  6039. *N32*)
  6040. LD="${LD-ld} -n32"
  6041. ;;
  6042. *64-bit*)
  6043. LD="${LD-ld} -64"
  6044. ;;
  6045. esac
  6046. fi
  6047. rm -rf conftest*
  6048. ;;
  6049. *-*-linux*)
  6050. # Test if the compiler is 64bit
  6051. echo 'int i;' > conftest.$ac_ext
  6052. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6053. (eval $ac_compile) 2>&5
  6054. ac_status=$?
  6055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6056. (exit $ac_status); }; then
  6057. case `/usr/bin/file conftest.$ac_objext` in
  6058. *"ELF 32"*)
  6059. LINUX_64_MODE="32"
  6060. ;;
  6061. *"ELF 64"*)
  6062. LINUX_64_MODE="64"
  6063. ;;
  6064. esac
  6065. fi
  6066. rm -rf conftest*
  6067. ;;
  6068. *-*-sco3.2v5*)
  6069. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6070. SAVE_CFLAGS="$CFLAGS"
  6071. CFLAGS="$CFLAGS -belf"
  6072. echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  6073. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  6074. if test "${lt_cv_cc_needs_belf+set}" = set; then
  6075. echo $ECHO_N "(cached) $ECHO_C" >&6
  6076. else
  6077. ac_ext=c
  6078. ac_cpp='$CPP $CPPFLAGS'
  6079. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6080. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6081. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6082. cat >conftest.$ac_ext <<_ACEOF
  6083. /* confdefs.h. */
  6084. _ACEOF
  6085. cat confdefs.h >>conftest.$ac_ext
  6086. cat >>conftest.$ac_ext <<_ACEOF
  6087. /* end confdefs.h. */
  6088. int
  6089. main ()
  6090. {
  6091. ;
  6092. return 0;
  6093. }
  6094. _ACEOF
  6095. rm -f conftest.$ac_objext conftest$ac_exeext
  6096. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6097. (eval $ac_link) 2>conftest.er1
  6098. ac_status=$?
  6099. grep -v '^ *+' conftest.er1 >conftest.err
  6100. rm -f conftest.er1
  6101. cat conftest.err >&5
  6102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6103. (exit $ac_status); } &&
  6104. { ac_try='test -z "$ac_c_werror_flag"
  6105. || test ! -s conftest.err'
  6106. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6107. (eval $ac_try) 2>&5
  6108. ac_status=$?
  6109. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6110. (exit $ac_status); }; } &&
  6111. { ac_try='test -s conftest$ac_exeext'
  6112. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6113. (eval $ac_try) 2>&5
  6114. ac_status=$?
  6115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6116. (exit $ac_status); }; }; then
  6117. lt_cv_cc_needs_belf=yes
  6118. else
  6119. echo "$as_me: failed program was:" >&5
  6120. sed 's/^/| /' conftest.$ac_ext >&5
  6121. lt_cv_cc_needs_belf=no
  6122. fi
  6123. rm -f conftest.err conftest.$ac_objext \
  6124. conftest$ac_exeext conftest.$ac_ext
  6125. ac_ext=c
  6126. ac_cpp='$CPP $CPPFLAGS'
  6127. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6128. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6129. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6130. fi
  6131. echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  6132. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  6133. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6134. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6135. CFLAGS="$SAVE_CFLAGS"
  6136. fi
  6137. ;;
  6138. esac
  6139. need_locks="$enable_libtool_lock"
  6140. echo "$as_me:$LINENO: checking for egrep" >&5
  6141. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  6142. if test "${ac_cv_prog_egrep+set}" = set; then
  6143. echo $ECHO_N "(cached) $ECHO_C" >&6
  6144. else
  6145. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  6146. then ac_cv_prog_egrep='grep -E'
  6147. else ac_cv_prog_egrep='egrep'
  6148. fi
  6149. fi
  6150. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  6151. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  6152. EGREP=$ac_cv_prog_egrep
  6153. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6154. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  6155. if test "${ac_cv_header_stdc+set}" = set; then
  6156. echo $ECHO_N "(cached) $ECHO_C" >&6
  6157. else
  6158. cat >conftest.$ac_ext <<_ACEOF
  6159. /* confdefs.h. */
  6160. _ACEOF
  6161. cat confdefs.h >>conftest.$ac_ext
  6162. cat >>conftest.$ac_ext <<_ACEOF
  6163. /* end confdefs.h. */
  6164. #include <stdlib.h>
  6165. #include <stdarg.h>
  6166. #include <string.h>
  6167. #include <float.h>
  6168. int
  6169. main ()
  6170. {
  6171. ;
  6172. return 0;
  6173. }
  6174. _ACEOF
  6175. rm -f conftest.$ac_objext
  6176. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6177. (eval $ac_compile) 2>conftest.er1
  6178. ac_status=$?
  6179. grep -v '^ *+' conftest.er1 >conftest.err
  6180. rm -f conftest.er1
  6181. cat conftest.err >&5
  6182. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6183. (exit $ac_status); } &&
  6184. { ac_try='test -z "$ac_c_werror_flag"
  6185. || test ! -s conftest.err'
  6186. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6187. (eval $ac_try) 2>&5
  6188. ac_status=$?
  6189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6190. (exit $ac_status); }; } &&
  6191. { ac_try='test -s conftest.$ac_objext'
  6192. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6193. (eval $ac_try) 2>&5
  6194. ac_status=$?
  6195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6196. (exit $ac_status); }; }; then
  6197. ac_cv_header_stdc=yes
  6198. else
  6199. echo "$as_me: failed program was:" >&5
  6200. sed 's/^/| /' conftest.$ac_ext >&5
  6201. ac_cv_header_stdc=no
  6202. fi
  6203. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6204. if test $ac_cv_header_stdc = yes; then
  6205. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6206. cat >conftest.$ac_ext <<_ACEOF
  6207. /* confdefs.h. */
  6208. _ACEOF
  6209. cat confdefs.h >>conftest.$ac_ext
  6210. cat >>conftest.$ac_ext <<_ACEOF
  6211. /* end confdefs.h. */
  6212. #include <string.h>
  6213. _ACEOF
  6214. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6215. $EGREP "memchr" >/dev/null 2>&1; then
  6216. :
  6217. else
  6218. ac_cv_header_stdc=no
  6219. fi
  6220. rm -f conftest*
  6221. fi
  6222. if test $ac_cv_header_stdc = yes; then
  6223. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6224. cat >conftest.$ac_ext <<_ACEOF
  6225. /* confdefs.h. */
  6226. _ACEOF
  6227. cat confdefs.h >>conftest.$ac_ext
  6228. cat >>conftest.$ac_ext <<_ACEOF
  6229. /* end confdefs.h. */
  6230. #include <stdlib.h>
  6231. _ACEOF
  6232. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6233. $EGREP "free" >/dev/null 2>&1; then
  6234. :
  6235. else
  6236. ac_cv_header_stdc=no
  6237. fi
  6238. rm -f conftest*
  6239. fi
  6240. if test $ac_cv_header_stdc = yes; then
  6241. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6242. if test "$cross_compiling" = yes; then
  6243. :
  6244. else
  6245. cat >conftest.$ac_ext <<_ACEOF
  6246. /* confdefs.h. */
  6247. _ACEOF
  6248. cat confdefs.h >>conftest.$ac_ext
  6249. cat >>conftest.$ac_ext <<_ACEOF
  6250. /* end confdefs.h. */
  6251. #include <ctype.h>
  6252. #if ((' ' & 0x0FF) == 0x020)
  6253. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6254. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6255. #else
  6256. # define ISLOWER(c) \
  6257. (('a' <= (c) && (c) <= 'i') \
  6258. || ('j' <= (c) && (c) <= 'r') \
  6259. || ('s' <= (c) && (c) <= 'z'))
  6260. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6261. #endif
  6262. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6263. int
  6264. main ()
  6265. {
  6266. int i;
  6267. for (i = 0; i < 256; i++)
  6268. if (XOR (islower (i), ISLOWER (i))
  6269. || toupper (i) != TOUPPER (i))
  6270. exit(2);
  6271. exit (0);
  6272. }
  6273. _ACEOF
  6274. rm -f conftest$ac_exeext
  6275. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6276. (eval $ac_link) 2>&5
  6277. ac_status=$?
  6278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6279. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6280. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6281. (eval $ac_try) 2>&5
  6282. ac_status=$?
  6283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6284. (exit $ac_status); }; }; then
  6285. :
  6286. else
  6287. echo "$as_me: program exited with status $ac_status" >&5
  6288. echo "$as_me: failed program was:" >&5
  6289. sed 's/^/| /' conftest.$ac_ext >&5
  6290. ( exit $ac_status )
  6291. ac_cv_header_stdc=no
  6292. fi
  6293. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6294. fi
  6295. fi
  6296. fi
  6297. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6298. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  6299. if test $ac_cv_header_stdc = yes; then
  6300. cat >>confdefs.h <<\_ACEOF
  6301. #define STDC_HEADERS 1
  6302. _ACEOF
  6303. fi
  6304. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6305. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6306. inttypes.h stdint.h unistd.h
  6307. do
  6308. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6309. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6310. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6311. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6312. echo $ECHO_N "(cached) $ECHO_C" >&6
  6313. else
  6314. cat >conftest.$ac_ext <<_ACEOF
  6315. /* confdefs.h. */
  6316. _ACEOF
  6317. cat confdefs.h >>conftest.$ac_ext
  6318. cat >>conftest.$ac_ext <<_ACEOF
  6319. /* end confdefs.h. */
  6320. $ac_includes_default
  6321. #include <$ac_header>
  6322. _ACEOF
  6323. rm -f conftest.$ac_objext
  6324. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6325. (eval $ac_compile) 2>conftest.er1
  6326. ac_status=$?
  6327. grep -v '^ *+' conftest.er1 >conftest.err
  6328. rm -f conftest.er1
  6329. cat conftest.err >&5
  6330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6331. (exit $ac_status); } &&
  6332. { ac_try='test -z "$ac_c_werror_flag"
  6333. || test ! -s conftest.err'
  6334. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6335. (eval $ac_try) 2>&5
  6336. ac_status=$?
  6337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6338. (exit $ac_status); }; } &&
  6339. { ac_try='test -s conftest.$ac_objext'
  6340. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6341. (eval $ac_try) 2>&5
  6342. ac_status=$?
  6343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6344. (exit $ac_status); }; }; then
  6345. eval "$as_ac_Header=yes"
  6346. else
  6347. echo "$as_me: failed program was:" >&5
  6348. sed 's/^/| /' conftest.$ac_ext >&5
  6349. eval "$as_ac_Header=no"
  6350. fi
  6351. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6352. fi
  6353. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6354. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6355. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6356. cat >>confdefs.h <<_ACEOF
  6357. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6358. _ACEOF
  6359. fi
  6360. done
  6361. for ac_header in dlfcn.h
  6362. do
  6363. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6364. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6365. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6366. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6367. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6368. echo $ECHO_N "(cached) $ECHO_C" >&6
  6369. fi
  6370. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6371. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6372. else
  6373. # Is the header compilable?
  6374. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6375. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6376. cat >conftest.$ac_ext <<_ACEOF
  6377. /* confdefs.h. */
  6378. _ACEOF
  6379. cat confdefs.h >>conftest.$ac_ext
  6380. cat >>conftest.$ac_ext <<_ACEOF
  6381. /* end confdefs.h. */
  6382. $ac_includes_default
  6383. #include <$ac_header>
  6384. _ACEOF
  6385. rm -f conftest.$ac_objext
  6386. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6387. (eval $ac_compile) 2>conftest.er1
  6388. ac_status=$?
  6389. grep -v '^ *+' conftest.er1 >conftest.err
  6390. rm -f conftest.er1
  6391. cat conftest.err >&5
  6392. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6393. (exit $ac_status); } &&
  6394. { ac_try='test -z "$ac_c_werror_flag"
  6395. || test ! -s conftest.err'
  6396. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6397. (eval $ac_try) 2>&5
  6398. ac_status=$?
  6399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6400. (exit $ac_status); }; } &&
  6401. { ac_try='test -s conftest.$ac_objext'
  6402. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6403. (eval $ac_try) 2>&5
  6404. ac_status=$?
  6405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6406. (exit $ac_status); }; }; then
  6407. ac_header_compiler=yes
  6408. else
  6409. echo "$as_me: failed program was:" >&5
  6410. sed 's/^/| /' conftest.$ac_ext >&5
  6411. ac_header_compiler=no
  6412. fi
  6413. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6414. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6415. echo "${ECHO_T}$ac_header_compiler" >&6
  6416. # Is the header present?
  6417. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6418. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6419. cat >conftest.$ac_ext <<_ACEOF
  6420. /* confdefs.h. */
  6421. _ACEOF
  6422. cat confdefs.h >>conftest.$ac_ext
  6423. cat >>conftest.$ac_ext <<_ACEOF
  6424. /* end confdefs.h. */
  6425. #include <$ac_header>
  6426. _ACEOF
  6427. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6428. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6429. ac_status=$?
  6430. grep -v '^ *+' conftest.er1 >conftest.err
  6431. rm -f conftest.er1
  6432. cat conftest.err >&5
  6433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6434. (exit $ac_status); } >/dev/null; then
  6435. if test -s conftest.err; then
  6436. ac_cpp_err=$ac_c_preproc_warn_flag
  6437. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6438. else
  6439. ac_cpp_err=
  6440. fi
  6441. else
  6442. ac_cpp_err=yes
  6443. fi
  6444. if test -z "$ac_cpp_err"; then
  6445. ac_header_preproc=yes
  6446. else
  6447. echo "$as_me: failed program was:" >&5
  6448. sed 's/^/| /' conftest.$ac_ext >&5
  6449. ac_header_preproc=no
  6450. fi
  6451. rm -f conftest.err conftest.$ac_ext
  6452. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6453. echo "${ECHO_T}$ac_header_preproc" >&6
  6454. # So? What about this header?
  6455. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6456. yes:no: )
  6457. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6458. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6459. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6460. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6461. ac_header_preproc=yes
  6462. ;;
  6463. no:yes:* )
  6464. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6465. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6466. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6467. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6468. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6469. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6470. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6471. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6472. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6473. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6474. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6475. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6476. (
  6477. cat <<\_ASBOX
  6478. ## ------------------------------------------ ##
  6479. ## Report this to the AC_PACKAGE_NAME lists. ##
  6480. ## ------------------------------------------ ##
  6481. _ASBOX
  6482. ) |
  6483. sed "s/^/$as_me: WARNING: /" >&2
  6484. ;;
  6485. esac
  6486. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6487. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6488. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6489. echo $ECHO_N "(cached) $ECHO_C" >&6
  6490. else
  6491. eval "$as_ac_Header=\$ac_header_preproc"
  6492. fi
  6493. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6494. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6495. fi
  6496. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6497. cat >>confdefs.h <<_ACEOF
  6498. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6499. _ACEOF
  6500. fi
  6501. done
  6502. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  6503. # find the maximum length of command line arguments
  6504. echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  6505. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
  6506. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  6507. echo $ECHO_N "(cached) $ECHO_C" >&6
  6508. else
  6509. i=0
  6510. testring="ABCD"
  6511. case $host_os in
  6512. msdosdjgpp*)
  6513. # On DJGPP, this test can blow up pretty badly due to problems in libc
  6514. # (any single argument exceeding 2000 bytes causes a buffer overrun
  6515. # during glob expansion). Even if it were fixed, the result of this
  6516. # check would be larger than it should be.
  6517. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  6518. ;;
  6519. gnu*)
  6520. # Under GNU Hurd, this test is not required because there is
  6521. # no limit to the length of command line arguments.
  6522. # Libtool will interpret -1 as no limit whatsoever
  6523. lt_cv_sys_max_cmd_len=-1;
  6524. ;;
  6525. *)
  6526. # If test is not a shell built-in, we'll probably end up computing a
  6527. # maximum length that is only half of the actual maximum length, but
  6528. # we can't tell.
  6529. while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
  6530. = "XX$testring") >/dev/null 2>&1 &&
  6531. new_result=`expr "X$testring" : ".*" 2>&1` &&
  6532. lt_cv_sys_max_cmd_len=$new_result &&
  6533. test $i != 17 # 1/2 MB should be enough
  6534. do
  6535. i=`expr $i + 1`
  6536. testring=$testring$testring
  6537. done
  6538. testring=
  6539. # Add a significant safety factor because C++ compilers can tack on massive
  6540. # amounts of additional arguments before passing them to the linker.
  6541. # It appears as though 1/2 is a usable value.
  6542. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  6543. ;;
  6544. esac
  6545. fi
  6546. if test -n $lt_cv_sys_max_cmd_len ; then
  6547. echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  6548. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
  6549. else
  6550. echo "$as_me:$LINENO: result: none" >&5
  6551. echo "${ECHO_T}none" >&6
  6552. fi
  6553. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6554. echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  6555. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
  6556. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  6557. echo $ECHO_N "(cached) $ECHO_C" >&6
  6558. else
  6559. # These are sane defaults that work on at least a few old systems.
  6560. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6561. # Character class describing NM global symbol codes.
  6562. symcode='[BCDEGRST]'
  6563. # Regexp to match symbols that can be accessed directly from C.
  6564. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6565. # Transform the above into a raw symbol and a C symbol.
  6566. symxfrm='\1 \2\3 \3'
  6567. # Transform an extracted symbol line into a proper C declaration
  6568. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  6569. # Transform an extracted symbol line into symbol name and symbol address
  6570. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  6571. # Define system-specific variables.
  6572. case $host_os in
  6573. aix*)
  6574. symcode='[BCDT]'
  6575. ;;
  6576. cygwin* | mingw* | pw32*)
  6577. symcode='[ABCDGISTW]'
  6578. ;;
  6579. hpux*) # Its linker distinguishes data from code symbols
  6580. if test "$host_cpu" = ia64; then
  6581. symcode='[ABCDEGRST]'
  6582. fi
  6583. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6584. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  6585. ;;
  6586. irix* | nonstopux*)
  6587. symcode='[BCDEGRST]'
  6588. ;;
  6589. solaris* | sysv5*)
  6590. symcode='[BDT]'
  6591. ;;
  6592. sysv4)
  6593. symcode='[DFNSTU]'
  6594. ;;
  6595. esac
  6596. # Handle CRLF in mingw tool chain
  6597. opt_cr=
  6598. case $host_os in
  6599. mingw*)
  6600. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6601. ;;
  6602. esac
  6603. # If we're using GNU nm, then use its standard symbol codes.
  6604. if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
  6605. symcode='[ABCDGISTW]'
  6606. fi
  6607. # Try without a prefix undercore, then with it.
  6608. for ac_symprfx in "" "_"; do
  6609. # Write the raw and C identifiers.
  6610. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  6611. # Check to see that the pipe works correctly.
  6612. pipe_works=no
  6613. rm -f conftest*
  6614. cat > conftest.$ac_ext <<EOF
  6615. #ifdef __cplusplus
  6616. extern "C" {
  6617. #endif
  6618. char nm_test_var;
  6619. void nm_test_func(){}
  6620. #ifdef __cplusplus
  6621. }
  6622. #endif
  6623. int main(){nm_test_var='a';nm_test_func();return(0);}
  6624. EOF
  6625. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6626. (eval $ac_compile) 2>&5
  6627. ac_status=$?
  6628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6629. (exit $ac_status); }; then
  6630. # Now try to grab the symbols.
  6631. nlist=conftest.nm
  6632. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  6633. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  6634. ac_status=$?
  6635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6636. (exit $ac_status); } && test -s "$nlist"; then
  6637. # Try sorting and uniquifying the output.
  6638. if sort "$nlist" | uniq > "$nlist"T; then
  6639. mv -f "$nlist"T "$nlist"
  6640. else
  6641. rm -f "$nlist"T
  6642. fi
  6643. # Make sure that we snagged all the symbols we need.
  6644. if egrep ' nm_test_var$' "$nlist" >/dev/null; then
  6645. if egrep ' nm_test_func$' "$nlist" >/dev/null; then
  6646. cat <<EOF > conftest.$ac_ext
  6647. #ifdef __cplusplus
  6648. extern "C" {
  6649. #endif
  6650. EOF
  6651. # Now generate the symbol file.
  6652. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  6653. cat <<EOF >> conftest.$ac_ext
  6654. #if defined (__STDC__) && __STDC__
  6655. # define lt_ptr_t void *
  6656. #else
  6657. # define lt_ptr_t char *
  6658. # define const
  6659. #endif
  6660. /* The mapping between symbol names and symbols. */
  6661. const struct {
  6662. const char *name;
  6663. lt_ptr_t address;
  6664. }
  6665. lt_preloaded_symbols[] =
  6666. {
  6667. EOF
  6668. sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  6669. cat <<\EOF >> conftest.$ac_ext
  6670. {0, (lt_ptr_t) 0}
  6671. };
  6672. #ifdef __cplusplus
  6673. }
  6674. #endif
  6675. EOF
  6676. # Now try linking the two files.
  6677. mv conftest.$ac_objext conftstm.$ac_objext
  6678. lt_save_LIBS="$LIBS"
  6679. lt_save_CFLAGS="$CFLAGS"
  6680. LIBS="conftstm.$ac_objext"
  6681. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6682. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6683. (eval $ac_link) 2>&5
  6684. ac_status=$?
  6685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6686. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  6687. pipe_works=yes
  6688. fi
  6689. LIBS="$lt_save_LIBS"
  6690. CFLAGS="$lt_save_CFLAGS"
  6691. else
  6692. echo "cannot find nm_test_func in $nlist" >&5
  6693. fi
  6694. else
  6695. echo "cannot find nm_test_var in $nlist" >&5
  6696. fi
  6697. else
  6698. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6699. fi
  6700. else
  6701. echo "$progname: failed program was:" >&5
  6702. cat conftest.$ac_ext >&5
  6703. fi
  6704. rm -f conftest* conftst*
  6705. # Do not use the global_symbol_pipe unless it works.
  6706. if test "$pipe_works" = yes; then
  6707. break
  6708. else
  6709. lt_cv_sys_global_symbol_pipe=
  6710. fi
  6711. done
  6712. fi
  6713. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6714. lt_cv_sys_global_symbol_to_cdecl=
  6715. fi
  6716. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6717. echo "$as_me:$LINENO: result: failed" >&5
  6718. echo "${ECHO_T}failed" >&6
  6719. else
  6720. echo "$as_me:$LINENO: result: ok" >&5
  6721. echo "${ECHO_T}ok" >&6
  6722. fi
  6723. echo "$as_me:$LINENO: checking for objdir" >&5
  6724. echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  6725. if test "${lt_cv_objdir+set}" = set; then
  6726. echo $ECHO_N "(cached) $ECHO_C" >&6
  6727. else
  6728. rm -f .libs 2>/dev/null
  6729. mkdir .libs 2>/dev/null
  6730. if test -d .libs; then
  6731. lt_cv_objdir=.libs
  6732. else
  6733. # MS-DOS does not allow filenames that begin with a dot.
  6734. lt_cv_objdir=_libs
  6735. fi
  6736. rmdir .libs 2>/dev/null
  6737. fi
  6738. echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  6739. echo "${ECHO_T}$lt_cv_objdir" >&6
  6740. objdir=$lt_cv_objdir
  6741. case $host_os in
  6742. aix3*)
  6743. # AIX sometimes has problems with the GCC collect2 program. For some
  6744. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6745. # vanish in a puff of smoke.
  6746. if test "X${COLLECT_NAMES+set}" != Xset; then
  6747. COLLECT_NAMES=
  6748. export COLLECT_NAMES
  6749. fi
  6750. ;;
  6751. esac
  6752. # Sed substitution that helps us do robust quoting. It backslashifies
  6753. # metacharacters that are still active within double-quoted strings.
  6754. Xsed='sed -e s/^X//'
  6755. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  6756. # Same as above, but do not quote variable references.
  6757. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  6758. # Sed substitution to delay expansion of an escaped shell variable in a
  6759. # double_quote_subst'ed string.
  6760. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6761. # Sed substitution to avoid accidental globbing in evaled expressions
  6762. no_glob_subst='s/\*/\\\*/g'
  6763. # Constants:
  6764. rm="rm -f"
  6765. # Global variables:
  6766. default_ofile=libtool
  6767. can_build_shared=yes
  6768. # All known linkers require a `.a' archive for static linking (except M$VC,
  6769. # which needs '.lib').
  6770. libext=a
  6771. ltmain="$ac_aux_dir/ltmain.sh"
  6772. ofile="$default_ofile"
  6773. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6774. if test -n "$ac_tool_prefix"; then
  6775. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6776. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6777. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6778. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6779. if test "${ac_cv_prog_RANLIB+set}" = set; then
  6780. echo $ECHO_N "(cached) $ECHO_C" >&6
  6781. else
  6782. if test -n "$RANLIB"; then
  6783. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6784. else
  6785. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6786. for as_dir in $PATH
  6787. do
  6788. IFS=$as_save_IFS
  6789. test -z "$as_dir" && as_dir=.
  6790. for ac_exec_ext in '' $ac_executable_extensions; do
  6791. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6792. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6793. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6794. break 2
  6795. fi
  6796. done
  6797. done
  6798. fi
  6799. fi
  6800. RANLIB=$ac_cv_prog_RANLIB
  6801. if test -n "$RANLIB"; then
  6802. echo "$as_me:$LINENO: result: $RANLIB" >&5
  6803. echo "${ECHO_T}$RANLIB" >&6
  6804. else
  6805. echo "$as_me:$LINENO: result: no" >&5
  6806. echo "${ECHO_T}no" >&6
  6807. fi
  6808. fi
  6809. if test -z "$ac_cv_prog_RANLIB"; then
  6810. ac_ct_RANLIB=$RANLIB
  6811. # Extract the first word of "ranlib", so it can be a program name with args.
  6812. set dummy ranlib; ac_word=$2
  6813. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6814. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6815. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  6816. echo $ECHO_N "(cached) $ECHO_C" >&6
  6817. else
  6818. if test -n "$ac_ct_RANLIB"; then
  6819. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6820. else
  6821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6822. for as_dir in $PATH
  6823. do
  6824. IFS=$as_save_IFS
  6825. test -z "$as_dir" && as_dir=.
  6826. for ac_exec_ext in '' $ac_executable_extensions; do
  6827. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6828. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6829. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6830. break 2
  6831. fi
  6832. done
  6833. done
  6834. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  6835. fi
  6836. fi
  6837. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6838. if test -n "$ac_ct_RANLIB"; then
  6839. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  6840. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  6841. else
  6842. echo "$as_me:$LINENO: result: no" >&5
  6843. echo "${ECHO_T}no" >&6
  6844. fi
  6845. RANLIB=$ac_ct_RANLIB
  6846. else
  6847. RANLIB="$ac_cv_prog_RANLIB"
  6848. fi
  6849. if test -n "$ac_tool_prefix"; then
  6850. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6851. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6852. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6853. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6854. if test "${ac_cv_prog_STRIP+set}" = set; then
  6855. echo $ECHO_N "(cached) $ECHO_C" >&6
  6856. else
  6857. if test -n "$STRIP"; then
  6858. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6859. else
  6860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6861. for as_dir in $PATH
  6862. do
  6863. IFS=$as_save_IFS
  6864. test -z "$as_dir" && as_dir=.
  6865. for ac_exec_ext in '' $ac_executable_extensions; do
  6866. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6867. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6868. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6869. break 2
  6870. fi
  6871. done
  6872. done
  6873. fi
  6874. fi
  6875. STRIP=$ac_cv_prog_STRIP
  6876. if test -n "$STRIP"; then
  6877. echo "$as_me:$LINENO: result: $STRIP" >&5
  6878. echo "${ECHO_T}$STRIP" >&6
  6879. else
  6880. echo "$as_me:$LINENO: result: no" >&5
  6881. echo "${ECHO_T}no" >&6
  6882. fi
  6883. fi
  6884. if test -z "$ac_cv_prog_STRIP"; then
  6885. ac_ct_STRIP=$STRIP
  6886. # Extract the first word of "strip", so it can be a program name with args.
  6887. set dummy strip; ac_word=$2
  6888. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6889. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6890. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  6891. echo $ECHO_N "(cached) $ECHO_C" >&6
  6892. else
  6893. if test -n "$ac_ct_STRIP"; then
  6894. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6895. else
  6896. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6897. for as_dir in $PATH
  6898. do
  6899. IFS=$as_save_IFS
  6900. test -z "$as_dir" && as_dir=.
  6901. for ac_exec_ext in '' $ac_executable_extensions; do
  6902. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6903. ac_cv_prog_ac_ct_STRIP="strip"
  6904. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6905. break 2
  6906. fi
  6907. done
  6908. done
  6909. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  6910. fi
  6911. fi
  6912. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6913. if test -n "$ac_ct_STRIP"; then
  6914. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  6915. echo "${ECHO_T}$ac_ct_STRIP" >&6
  6916. else
  6917. echo "$as_me:$LINENO: result: no" >&5
  6918. echo "${ECHO_T}no" >&6
  6919. fi
  6920. STRIP=$ac_ct_STRIP
  6921. else
  6922. STRIP="$ac_cv_prog_STRIP"
  6923. fi
  6924. old_CC="$CC"
  6925. old_CFLAGS="$CFLAGS"
  6926. # Set sane defaults for various variables
  6927. test -z "$AR" && AR=ar
  6928. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6929. test -z "$AS" && AS=as
  6930. test -z "$CC" && CC=cc
  6931. test -z "$LTCC" && LTCC=$CC
  6932. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6933. test -z "$LD" && LD=ld
  6934. test -z "$LN_S" && LN_S="ln -s"
  6935. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6936. test -z "$NM" && NM=nm
  6937. test -z "$SED" && SED=sed
  6938. test -z "$OBJDUMP" && OBJDUMP=objdump
  6939. test -z "$RANLIB" && RANLIB=:
  6940. test -z "$STRIP" && STRIP=:
  6941. test -z "$ac_objext" && ac_objext=o
  6942. # Determine commands to create old-style static archives.
  6943. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  6944. old_postinstall_cmds='chmod 644 $oldlib'
  6945. old_postuninstall_cmds=
  6946. if test -n "$RANLIB"; then
  6947. case $host_os in
  6948. openbsd*)
  6949. old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  6950. ;;
  6951. *)
  6952. old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  6953. ;;
  6954. esac
  6955. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6956. fi
  6957. # Only perform the check for file, if the check method requires it
  6958. case $deplibs_check_method in
  6959. file_magic*)
  6960. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6961. echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  6962. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  6963. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6964. echo $ECHO_N "(cached) $ECHO_C" >&6
  6965. else
  6966. case $MAGIC_CMD in
  6967. [\\/*] | ?:[\\/]*)
  6968. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6969. ;;
  6970. *)
  6971. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6972. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6973. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6974. for ac_dir in $ac_dummy; do
  6975. IFS="$lt_save_ifs"
  6976. test -z "$ac_dir" && ac_dir=.
  6977. if test -f $ac_dir/${ac_tool_prefix}file; then
  6978. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6979. if test -n "$file_magic_test_file"; then
  6980. case $deplibs_check_method in
  6981. "file_magic "*)
  6982. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  6983. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6984. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6985. egrep "$file_magic_regex" > /dev/null; then
  6986. :
  6987. else
  6988. cat <<EOF 1>&2
  6989. *** Warning: the command libtool uses to detect shared libraries,
  6990. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6991. *** The result is that libtool may fail to recognize shared libraries
  6992. *** as such. This will affect the creation of libtool libraries that
  6993. *** depend on shared libraries, but programs linked with such libtool
  6994. *** libraries will work regardless of this problem. Nevertheless, you
  6995. *** may want to report the problem to your system manager and/or to
  6996. *** bug-libtool@gnu.org
  6997. EOF
  6998. fi ;;
  6999. esac
  7000. fi
  7001. break
  7002. fi
  7003. done
  7004. IFS="$lt_save_ifs"
  7005. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7006. ;;
  7007. esac
  7008. fi
  7009. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7010. if test -n "$MAGIC_CMD"; then
  7011. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  7012. echo "${ECHO_T}$MAGIC_CMD" >&6
  7013. else
  7014. echo "$as_me:$LINENO: result: no" >&5
  7015. echo "${ECHO_T}no" >&6
  7016. fi
  7017. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7018. if test -n "$ac_tool_prefix"; then
  7019. echo "$as_me:$LINENO: checking for file" >&5
  7020. echo $ECHO_N "checking for file... $ECHO_C" >&6
  7021. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  7022. echo $ECHO_N "(cached) $ECHO_C" >&6
  7023. else
  7024. case $MAGIC_CMD in
  7025. [\\/*] | ?:[\\/]*)
  7026. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7027. ;;
  7028. *)
  7029. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7030. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7031. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7032. for ac_dir in $ac_dummy; do
  7033. IFS="$lt_save_ifs"
  7034. test -z "$ac_dir" && ac_dir=.
  7035. if test -f $ac_dir/file; then
  7036. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7037. if test -n "$file_magic_test_file"; then
  7038. case $deplibs_check_method in
  7039. "file_magic "*)
  7040. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  7041. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7042. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7043. egrep "$file_magic_regex" > /dev/null; then
  7044. :
  7045. else
  7046. cat <<EOF 1>&2
  7047. *** Warning: the command libtool uses to detect shared libraries,
  7048. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7049. *** The result is that libtool may fail to recognize shared libraries
  7050. *** as such. This will affect the creation of libtool libraries that
  7051. *** depend on shared libraries, but programs linked with such libtool
  7052. *** libraries will work regardless of this problem. Nevertheless, you
  7053. *** may want to report the problem to your system manager and/or to
  7054. *** bug-libtool@gnu.org
  7055. EOF
  7056. fi ;;
  7057. esac
  7058. fi
  7059. break
  7060. fi
  7061. done
  7062. IFS="$lt_save_ifs"
  7063. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7064. ;;
  7065. esac
  7066. fi
  7067. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7068. if test -n "$MAGIC_CMD"; then
  7069. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  7070. echo "${ECHO_T}$MAGIC_CMD" >&6
  7071. else
  7072. echo "$as_me:$LINENO: result: no" >&5
  7073. echo "${ECHO_T}no" >&6
  7074. fi
  7075. else
  7076. MAGIC_CMD=:
  7077. fi
  7078. fi
  7079. fi
  7080. ;;
  7081. esac
  7082. enable_dlopen=no
  7083. enable_win32_dll=no
  7084. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  7085. if test "${enable_libtool_lock+set}" = set; then
  7086. enableval="$enable_libtool_lock"
  7087. fi;
  7088. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  7089. # Check whether --with-pic or --without-pic was given.
  7090. if test "${with_pic+set}" = set; then
  7091. withval="$with_pic"
  7092. pic_mode="$withval"
  7093. else
  7094. pic_mode=default
  7095. fi;
  7096. test -z "$pic_mode" && pic_mode=default
  7097. # Use C for the default configuration in the libtool script
  7098. tagname=
  7099. lt_save_CC="$CC"
  7100. ac_ext=c
  7101. ac_cpp='$CPP $CPPFLAGS'
  7102. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7103. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7104. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7105. # Source file extension for C test sources.
  7106. ac_ext=c
  7107. # Object file extension for compiled C test sources.
  7108. objext=o
  7109. objext=$objext
  7110. # Code to be used in simple compile tests
  7111. lt_simple_compile_test_code="int some_variable = 0;"
  7112. # Code to be used in simple link tests
  7113. lt_simple_link_test_code='main(){return(0);}'
  7114. # If no C compiler was specified, use CC.
  7115. LTCC=${LTCC-"$CC"}
  7116. # Allow CC to be a program name with arguments.
  7117. set dummy $CC
  7118. compiler="$2"
  7119. #
  7120. # Check for any special shared library compilation flags.
  7121. #
  7122. lt_prog_cc_shlib=
  7123. if test "$GCC" = no; then
  7124. case $host_os in
  7125. sco3.2v5*)
  7126. lt_prog_cc_shlib='-belf'
  7127. ;;
  7128. esac
  7129. fi
  7130. if test -n "$lt_prog_cc_shlib"; then
  7131. { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
  7132. echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
  7133. if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
  7134. else
  7135. { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  7136. echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  7137. lt_cv_prog_cc_can_build_shared=no
  7138. fi
  7139. fi
  7140. #
  7141. # Check to make sure the static flag actually works.
  7142. #
  7143. echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
  7144. echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
  7145. if test "${lt_prog_compiler_static_works+set}" = set; then
  7146. echo $ECHO_N "(cached) $ECHO_C" >&6
  7147. else
  7148. lt_prog_compiler_static_works=no
  7149. save_LDFLAGS="$LDFLAGS"
  7150. LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
  7151. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7152. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7153. # The compiler can only warn and ignore the option if not recognized
  7154. # So say no if there are warnings
  7155. if test -s conftest.err; then
  7156. # Append any errors to the config.log.
  7157. cat conftest.err 1>&5
  7158. else
  7159. lt_prog_compiler_static_works=yes
  7160. fi
  7161. fi
  7162. $rm conftest*
  7163. LDFLAGS="$save_LDFLAGS"
  7164. fi
  7165. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  7166. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
  7167. if test x"$lt_prog_compiler_static_works" = xyes; then
  7168. :
  7169. else
  7170. lt_prog_compiler_static=
  7171. fi
  7172. ## CAVEAT EMPTOR:
  7173. ## There is no encapsulation within the following macros, do not change
  7174. ## the running order or otherwise move them around unless you know exactly
  7175. ## what you are doing...
  7176. lt_prog_compiler_no_builtin_flag=
  7177. if test "$GCC" = yes; then
  7178. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  7179. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7180. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  7181. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  7182. echo $ECHO_N "(cached) $ECHO_C" >&6
  7183. else
  7184. lt_cv_prog_compiler_rtti_exceptions=no
  7185. ac_outfile=conftest.$ac_objext
  7186. save_CFLAGS="$CFLAGS"
  7187. CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
  7188. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7189. if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
  7190. # The compiler can only warn and ignore the option if not recognized
  7191. # So say no if there are warnings
  7192. if test -s conftest.err; then
  7193. # Append any errors to the config.log.
  7194. cat conftest.err 1>&5
  7195. else
  7196. lt_cv_prog_compiler_rtti_exceptions=yes
  7197. fi
  7198. fi
  7199. $rm conftest*
  7200. CFLAGS="$save_CFLAGS"
  7201. fi
  7202. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7203. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  7204. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7205. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7206. else
  7207. :
  7208. fi
  7209. fi
  7210. lt_prog_compiler_wl=
  7211. lt_prog_compiler_pic=
  7212. lt_prog_compiler_static=
  7213. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  7214. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  7215. if test "$GCC" = yes; then
  7216. lt_prog_compiler_wl='-Wl,'
  7217. lt_prog_compiler_static='-static'
  7218. case $host_os in
  7219. aix*)
  7220. # All AIX code is PIC.
  7221. if test "$host_cpu" = ia64; then
  7222. # AIX 5 now supports IA64 processor
  7223. lt_prog_compiler_static='-Bstatic'
  7224. fi
  7225. ;;
  7226. amigaos*)
  7227. # FIXME: we need at least 68020 code to build shared libraries, but
  7228. # adding the `-m68020' flag to GCC prevents building anything better,
  7229. # like `-m68040'.
  7230. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7231. ;;
  7232. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7233. # PIC is the default for these OSes.
  7234. ;;
  7235. cygwin* | mingw* | pw32* | os2*)
  7236. # This hack is so that the source file can tell whether it is being
  7237. # built for inclusion in a dll (and should export symbols for example).
  7238. lt_prog_compiler_pic='-DDLL_EXPORT'
  7239. ;;
  7240. darwin* | rhapsody*)
  7241. # PIC is the default on this platform
  7242. # Common symbols not allowed in MH_DYLIB files
  7243. lt_prog_compiler_pic='-fno-common'
  7244. ;;
  7245. msdosdjgpp*)
  7246. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7247. # on systems that don't support them.
  7248. lt_prog_compiler_can_build_shared=no
  7249. enable_shared=no
  7250. ;;
  7251. sysv4*MP*)
  7252. if test -d /usr/nec; then
  7253. lt_prog_compiler_pic=-Kconform_pic
  7254. fi
  7255. ;;
  7256. hpux*)
  7257. # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
  7258. if test "$host_cpu" != ia64; then
  7259. lt_prog_compiler_pic='-fPIC'
  7260. fi
  7261. ;;
  7262. *)
  7263. lt_prog_compiler_pic='-fPIC'
  7264. ;;
  7265. esac
  7266. else
  7267. # PORTME Check for flag to pass linker flags through the system compiler.
  7268. case $host_os in
  7269. aix*)
  7270. lt_prog_compiler_wl='-Wl,'
  7271. if test "$host_cpu" = ia64; then
  7272. # AIX 5 now supports IA64 processor
  7273. lt_prog_compiler_static='-Bstatic'
  7274. else
  7275. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7276. fi
  7277. ;;
  7278. cygwin* | mingw* | pw32* | os2*)
  7279. # This hack is so that the source file can tell whether it is being
  7280. # built for inclusion in a dll (and should export symbols for example).
  7281. lt_prog_compiler_pic='-DDLL_EXPORT'
  7282. ;;
  7283. hpux9* | hpux10* | hpux11*)
  7284. lt_prog_compiler_wl='-Wl,'
  7285. if test "$host_cpu" != ia64; then
  7286. lt_prog_compiler_pic='+Z'
  7287. fi
  7288. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7289. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7290. ;;
  7291. irix5* | irix6* | nonstopux*)
  7292. lt_prog_compiler_wl='-Wl,'
  7293. # PIC (with -KPIC) is the default.
  7294. lt_prog_compiler_static='-non_shared'
  7295. ;;
  7296. newsos6)
  7297. lt_prog_compiler_pic='-KPIC'
  7298. lt_prog_compiler_static='-Bstatic'
  7299. ;;
  7300. linux*)
  7301. if test "$CC" = "icc"; then
  7302. lt_prog_compiler_wl='-Wl,'
  7303. lt_prog_compiler_pic='-KPIC'
  7304. lt_prog_compiler_static='-static'
  7305. fi
  7306. ;;
  7307. osf3* | osf4* | osf5*)
  7308. lt_prog_compiler_wl='-Wl,'
  7309. # All OSF/1 code is PIC.
  7310. lt_prog_compiler_static='-non_shared'
  7311. ;;
  7312. sco3.2v5*)
  7313. lt_prog_compiler_pic='-Kpic'
  7314. lt_prog_compiler_static='-dn'
  7315. ;;
  7316. solaris*)
  7317. lt_prog_compiler_wl='-Wl,'
  7318. lt_prog_compiler_pic='-KPIC'
  7319. lt_prog_compiler_static='-Bstatic'
  7320. ;;
  7321. sunos4*)
  7322. lt_prog_compiler_wl='-Qoption ld '
  7323. lt_prog_compiler_pic='-PIC'
  7324. lt_prog_compiler_static='-Bstatic'
  7325. ;;
  7326. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  7327. if test "x$host_vendor" = xsni; then
  7328. lt_prog_compiler_wl='-LD'
  7329. else
  7330. lt_prog_compiler_wl='-Wl,'
  7331. fi
  7332. lt_prog_compiler_pic='-KPIC'
  7333. lt_prog_compiler_static='-Bstatic'
  7334. ;;
  7335. sysv4*MP*)
  7336. if test -d /usr/nec ;then
  7337. lt_prog_compiler_pic='-Kconform_pic'
  7338. lt_prog_compiler_static='-Bstatic'
  7339. fi
  7340. ;;
  7341. uts4*)
  7342. lt_prog_compiler_pic='-pic'
  7343. lt_prog_compiler_static='-Bstatic'
  7344. ;;
  7345. *)
  7346. lt_prog_compiler_can_build_shared=no
  7347. ;;
  7348. esac
  7349. fi
  7350. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  7351. echo "${ECHO_T}$lt_prog_compiler_pic" >&6
  7352. #
  7353. # Check to make sure the PIC flag actually works.
  7354. #
  7355. if test -n "$lt_prog_compiler_pic"; then
  7356. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7357. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
  7358. if test "${lt_prog_compiler_pic_works+set}" = set; then
  7359. echo $ECHO_N "(cached) $ECHO_C" >&6
  7360. else
  7361. lt_prog_compiler_pic_works=no
  7362. ac_outfile=conftest.$ac_objext
  7363. save_CFLAGS="$CFLAGS"
  7364. CFLAGS="$CFLAGS $lt_prog_compiler_pic -DPIC"
  7365. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7366. if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
  7367. # The compiler can only warn and ignore the option if not recognized
  7368. # So say no if there are warnings
  7369. if test -s conftest.err; then
  7370. # Append any errors to the config.log.
  7371. cat conftest.err 1>&5
  7372. else
  7373. lt_prog_compiler_pic_works=yes
  7374. fi
  7375. fi
  7376. $rm conftest*
  7377. CFLAGS="$save_CFLAGS"
  7378. fi
  7379. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  7380. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
  7381. if test x"$lt_prog_compiler_pic_works" = xyes; then
  7382. case $lt_prog_compiler_pic in
  7383. "" | " "*) ;;
  7384. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7385. esac
  7386. else
  7387. lt_prog_compiler_pic=
  7388. lt_prog_compiler_can_build_shared=no
  7389. fi
  7390. fi
  7391. case "$host_os" in
  7392. # For platforms which do not support PIC, -DPIC is meaningless:
  7393. *djgpp*)
  7394. lt_prog_compiler_pic=
  7395. ;;
  7396. *)
  7397. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7398. ;;
  7399. esac
  7400. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  7401. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  7402. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  7403. echo $ECHO_N "(cached) $ECHO_C" >&6
  7404. else
  7405. lt_cv_prog_compiler_c_o=no
  7406. $rm -r conftest 2>/dev/null
  7407. mkdir conftest
  7408. cd conftest
  7409. mkdir out
  7410. save_CFLAGS="$CFLAGS"
  7411. CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
  7412. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7413. # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
  7414. # that will create temporary files in the current directory regardless of
  7415. # the output directory. Thus, making CWD read-only will cause this test
  7416. # to fail, enabling locking or at least warning the user not to do parallel
  7417. # builds.
  7418. chmod -w .
  7419. if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
  7420. then
  7421. # The compiler can only warn and ignore the option if not recognized
  7422. # So say no if there are warnings
  7423. if test -s out/conftest.err; then
  7424. # Append any errors to the config.log.
  7425. cat out/conftest.err 1>&5
  7426. else
  7427. lt_cv_prog_compiler_c_o=yes
  7428. fi
  7429. fi
  7430. CFLAGS="$save_CFLAGS"
  7431. chmod u+w .
  7432. $rm conftest* out/*
  7433. rmdir out
  7434. cd ..
  7435. rmdir conftest
  7436. $rm conftest*
  7437. fi
  7438. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  7439. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
  7440. hard_links="nottested"
  7441. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7442. # do not overwrite the value of need_locks provided by the user
  7443. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  7444. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  7445. hard_links=yes
  7446. $rm conftest*
  7447. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7448. touch conftest.a
  7449. ln conftest.a conftest.b 2>&5 || hard_links=no
  7450. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7451. echo "$as_me:$LINENO: result: $hard_links" >&5
  7452. echo "${ECHO_T}$hard_links" >&6
  7453. if test "$hard_links" = no; then
  7454. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7455. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7456. need_locks=warn
  7457. fi
  7458. else
  7459. need_locks=no
  7460. fi
  7461. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7462. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  7463. runpath_var=
  7464. allow_undefined_flag=
  7465. archive_cmds=
  7466. archive_cmds_need_lc=
  7467. archive_expsym_cmds=
  7468. old_archive_From_new_cmds=
  7469. old_archive_from_expsyms_cmds=
  7470. export_dynamic_flag_spec=
  7471. whole_archive_flag_spec=
  7472. thread_safe_flag_spec=
  7473. hardcode_libdir_flag_spec=
  7474. hardcode_libdir_separator=
  7475. hardcode_direct=no
  7476. hardcode_minus_L=no
  7477. hardcode_shlibpath_var=unsupported
  7478. link_all_deplibs=unknown
  7479. always_export_symbols=no
  7480. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7481. # include_expsyms should be a list of space-separated symbols to be *always*
  7482. # included in the symbol list
  7483. include_expsyms=
  7484. # exclude_expsyms can be an egrep regular expression of symbols to exclude
  7485. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7486. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7487. # as well as any symbol that contains `d'.
  7488. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  7489. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7490. # platforms (ab)use it in PIC code, but their linkers get confused if
  7491. # the symbol is explicitly referenced. Since portable code cannot
  7492. # rely on this symbol name, it's probably fine to never include it in
  7493. # preloaded symbol tables.
  7494. extract_expsyms_cmds=
  7495. case $host_os in
  7496. cygwin* | mingw* | pw32*)
  7497. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7498. # When not using gcc, we currently assume that we are using
  7499. # Microsoft Visual C++.
  7500. if test "$GCC" != yes; then
  7501. with_gnu_ld=no
  7502. fi
  7503. ;;
  7504. openbsd*)
  7505. with_gnu_ld=no
  7506. ;;
  7507. esac
  7508. ld_shlibs=yes
  7509. if test "$with_gnu_ld" = yes; then
  7510. # If archive_cmds runs LD, not CC, wlarc should be empty
  7511. wlarc='${wl}'
  7512. # See if GNU ld supports shared libraries.
  7513. case $host_os in
  7514. aix3* | aix4* | aix5*)
  7515. # On AIX/PPC, the GNU linker is very broken
  7516. if test "$host_cpu" != ia64; then
  7517. ld_shlibs=no
  7518. cat <<EOF 1>&2
  7519. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7520. *** to be unable to reliably create shared libraries on AIX.
  7521. *** Therefore, libtool is disabling shared libraries support. If you
  7522. *** really care for shared libraries, you may want to modify your PATH
  7523. *** so that a non-GNU linker is found, and then restart.
  7524. EOF
  7525. fi
  7526. ;;
  7527. amigaos*)
  7528. 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)'
  7529. hardcode_libdir_flag_spec='-L$libdir'
  7530. hardcode_minus_L=yes
  7531. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  7532. # that the semantics of dynamic libraries on AmigaOS, at least up
  7533. # to version 4, is to share data among multiple programs linked
  7534. # with the same dynamic library. Since this doesn't match the
  7535. # behavior of shared libraries on other platforms, we can't use
  7536. # them.
  7537. ld_shlibs=no
  7538. ;;
  7539. beos*)
  7540. if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  7541. allow_undefined_flag=unsupported
  7542. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7543. # support --undefined. This deserves some investigation. FIXME
  7544. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7545. else
  7546. ld_shlibs=no
  7547. fi
  7548. ;;
  7549. cygwin* | mingw* | pw32*)
  7550. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, as there is
  7551. # no search path for DLLs.
  7552. hardcode_libdir_flag_spec='-L$libdir'
  7553. allow_undefined_flag=unsupported
  7554. always_export_symbols=yes
  7555. extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
  7556. sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
  7557. test -f $output_objdir/impgen.exe || (cd $output_objdir && \
  7558. if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
  7559. else $CC -o impgen impgen.c ; fi)~
  7560. $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
  7561. old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
  7562. # cygwin and mingw dlls have different entry points and sets of symbols
  7563. # to exclude.
  7564. # FIXME: what about values for MSVC?
  7565. dll_entry=__cygwin_dll_entry@12
  7566. dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
  7567. case $host_os in
  7568. mingw*)
  7569. # mingw values
  7570. dll_entry=_DllMainCRTStartup@12
  7571. dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
  7572. ;;
  7573. esac
  7574. # mingw and cygwin differ, and it's simplest to just exclude the union
  7575. # of the two symbol sets.
  7576. dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
  7577. # recent cygwin and mingw systems supply a stub DllMain which the user
  7578. # can override, but on older systems we have to supply one (in ltdll.c)
  7579. if test "x$lt_cv_need_dllmain" = "xyes"; then
  7580. ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
  7581. ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
  7582. test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
  7583. else
  7584. ltdll_obj=
  7585. ltdll_cmds=
  7586. fi
  7587. # Extract the symbol export list from an `--export-all' def file,
  7588. # then regenerate the def file from the symbol export list, so that
  7589. # the compiled dll only exports the symbol export list.
  7590. # Be careful not to strip the DATA tag left by newer dlltools.
  7591. export_symbols_cmds="$ltdll_cmds"'
  7592. $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
  7593. sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
  7594. # If the export-symbols file already is a .def file (1st line
  7595. # is EXPORTS), use it as is.
  7596. # If DATA tags from a recent dlltool are present, honour them!
  7597. archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then
  7598. cp $export_symbols $output_objdir/$soname-def;
  7599. else
  7600. echo EXPORTS > $output_objdir/$soname-def;
  7601. _lt_hint=1;
  7602. cat $export_symbols | while read symbol; do
  7603. set dummy \$symbol;
  7604. case \$# in
  7605. 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
  7606. *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
  7607. esac;
  7608. _lt_hint=`expr 1 + \$_lt_hint`;
  7609. done;
  7610. fi~
  7611. '"$ltdll_cmds"'
  7612. $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
  7613. $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
  7614. $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
  7615. $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
  7616. $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
  7617. ;;
  7618. netbsd*)
  7619. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7620. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7621. wlarc=
  7622. else
  7623. archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7624. archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7625. fi
  7626. ;;
  7627. solaris* | sysv5*)
  7628. if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
  7629. ld_shlibs=no
  7630. cat <<EOF 1>&2
  7631. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7632. *** create shared libraries on Solaris systems. Therefore, libtool
  7633. *** is disabling shared libraries support. We urge you to upgrade GNU
  7634. *** binutils to release 2.9.1 or newer. Another option is to modify
  7635. *** your PATH or compiler configuration so that the native linker is
  7636. *** used, and then restart.
  7637. EOF
  7638. elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  7639. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7640. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7641. else
  7642. ld_shlibs=no
  7643. fi
  7644. ;;
  7645. sunos4*)
  7646. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7647. wlarc=
  7648. hardcode_direct=yes
  7649. hardcode_shlibpath_var=no
  7650. ;;
  7651. *)
  7652. if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  7653. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7654. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7655. else
  7656. ld_shlibs=no
  7657. fi
  7658. ;;
  7659. esac
  7660. if test "$ld_shlibs" = yes; then
  7661. runpath_var=LD_RUN_PATH
  7662. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  7663. export_dynamic_flag_spec='${wl}--export-dynamic'
  7664. case $host_os in
  7665. cygwin* | mingw* | pw32*)
  7666. # dlltool doesn't understand --whole-archive et. al.
  7667. whole_archive_flag_spec=
  7668. ;;
  7669. *)
  7670. # ancient GNU ld didn't support --whole-archive et. al.
  7671. if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
  7672. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7673. else
  7674. whole_archive_flag_spec=
  7675. fi
  7676. ;;
  7677. esac
  7678. fi
  7679. else
  7680. # PORTME fill in a description of your system's linker (not GNU ld)
  7681. case $host_os in
  7682. aix3*)
  7683. allow_undefined_flag=unsupported
  7684. always_export_symbols=yes
  7685. 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'
  7686. # Note: this linker hardcodes the directories in LIBPATH if there
  7687. # are no directories specified by -L.
  7688. hardcode_minus_L=yes
  7689. if test "$GCC" = yes && test -z "$link_static_flag"; then
  7690. # Neither direct hardcoding nor static linking is supported with a
  7691. # broken collect2.
  7692. hardcode_direct=unsupported
  7693. fi
  7694. ;;
  7695. aix4* | aix5*)
  7696. if test "$host_cpu" = ia64; then
  7697. # On IA64, the linker does run time linking by default, so we don't
  7698. # have to do anything special.
  7699. aix_use_runtimelinking=no
  7700. exp_sym_flag='-Bexport'
  7701. no_entry_flag=""
  7702. else
  7703. # If we're using GNU nm, then we don't want the "-C" option.
  7704. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7705. if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
  7706. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  7707. else
  7708. 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'
  7709. fi
  7710. # KDE requires run time linking. Make it the default.
  7711. aix_use_runtimelinking=yes
  7712. exp_sym_flag='-bexport'
  7713. no_entry_flag='-bnoentry'
  7714. fi
  7715. # When large executables or shared objects are built, AIX ld can
  7716. # have problems creating the table of contents. If linking a library
  7717. # or program results in "error TOC overflow" add -mminimal-toc to
  7718. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7719. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7720. archive_cmds=''
  7721. hardcode_direct=yes
  7722. hardcode_libdir_separator=':'
  7723. link_all_deplibs=yes
  7724. if test "$GCC" = yes; then
  7725. case $host_os in aix4.012|aix4.012.*)
  7726. # We only want to do this on AIX 4.2 and lower, the check
  7727. # below for broken collect2 doesn't work under 4.3+
  7728. collect2name=`${CC} -print-prog-name=collect2`
  7729. if test -f "$collect2name" && \
  7730. strings "$collect2name" | grep resolve_lib_name >/dev/null
  7731. then
  7732. # We have reworked collect2
  7733. hardcode_direct=yes
  7734. else
  7735. # We have old collect2
  7736. hardcode_direct=unsupported
  7737. # It fails to find uninstalled libraries when the uninstalled
  7738. # path is not listed in the libpath. Setting hardcode_minus_L
  7739. # to unsupported forces relinking
  7740. hardcode_minus_L=yes
  7741. hardcode_libdir_flag_spec='-L$libdir'
  7742. hardcode_libdir_separator=
  7743. fi
  7744. esac
  7745. shared_flag='-shared'
  7746. else
  7747. # not using gcc
  7748. if test "$host_cpu" = ia64; then
  7749. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7750. # chokes on -Wl,-G. The following line is correct:
  7751. shared_flag='-G'
  7752. else
  7753. if test "$aix_use_runtimelinking" = yes; then
  7754. shared_flag='-qmkshrobj ${wl}-G'
  7755. else
  7756. shared_flag='-qmkshrobj'
  7757. fi
  7758. fi
  7759. fi
  7760. # Let the compiler handle the export list.
  7761. always_export_symbols=no
  7762. if test "$aix_use_runtimelinking" = yes; then
  7763. # Warning - without using the other runtime loading flags (-brtl),
  7764. # -berok will link without error, but may produce a broken library.
  7765. allow_undefined_flag='-berok'
  7766. # Determine the default libpath from the value encoded in an empty executable.
  7767. cat >conftest.$ac_ext <<_ACEOF
  7768. /* confdefs.h. */
  7769. _ACEOF
  7770. cat confdefs.h >>conftest.$ac_ext
  7771. cat >>conftest.$ac_ext <<_ACEOF
  7772. /* end confdefs.h. */
  7773. int
  7774. main ()
  7775. {
  7776. ;
  7777. return 0;
  7778. }
  7779. _ACEOF
  7780. rm -f conftest.$ac_objext conftest$ac_exeext
  7781. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7782. (eval $ac_link) 2>conftest.er1
  7783. ac_status=$?
  7784. grep -v '^ *+' conftest.er1 >conftest.err
  7785. rm -f conftest.er1
  7786. cat conftest.err >&5
  7787. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7788. (exit $ac_status); } &&
  7789. { ac_try='test -z "$ac_c_werror_flag"
  7790. || test ! -s conftest.err'
  7791. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7792. (eval $ac_try) 2>&5
  7793. ac_status=$?
  7794. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7795. (exit $ac_status); }; } &&
  7796. { ac_try='test -s conftest$ac_exeext'
  7797. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7798. (eval $ac_try) 2>&5
  7799. ac_status=$?
  7800. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7801. (exit $ac_status); }; }; then
  7802. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  7803. }'`
  7804. # Check for a 64-bit object if we didn't find anything.
  7805. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  7806. }'`; fi
  7807. else
  7808. echo "$as_me: failed program was:" >&5
  7809. sed 's/^/| /' conftest.$ac_ext >&5
  7810. fi
  7811. rm -f conftest.err conftest.$ac_objext \
  7812. conftest$ac_exeext conftest.$ac_ext
  7813. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7814. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7815. archive_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
  7816. archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7817. else
  7818. if test "$host_cpu" = ia64; then
  7819. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7820. allow_undefined_flag="-z nodefs"
  7821. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  7822. else
  7823. # Determine the default libpath from the value encoded in an empty executable.
  7824. cat >conftest.$ac_ext <<_ACEOF
  7825. /* confdefs.h. */
  7826. _ACEOF
  7827. cat confdefs.h >>conftest.$ac_ext
  7828. cat >>conftest.$ac_ext <<_ACEOF
  7829. /* end confdefs.h. */
  7830. int
  7831. main ()
  7832. {
  7833. ;
  7834. return 0;
  7835. }
  7836. _ACEOF
  7837. rm -f conftest.$ac_objext conftest$ac_exeext
  7838. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7839. (eval $ac_link) 2>conftest.er1
  7840. ac_status=$?
  7841. grep -v '^ *+' conftest.er1 >conftest.err
  7842. rm -f conftest.er1
  7843. cat conftest.err >&5
  7844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7845. (exit $ac_status); } &&
  7846. { ac_try='test -z "$ac_c_werror_flag"
  7847. || test ! -s conftest.err'
  7848. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7849. (eval $ac_try) 2>&5
  7850. ac_status=$?
  7851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7852. (exit $ac_status); }; } &&
  7853. { ac_try='test -s conftest$ac_exeext'
  7854. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7855. (eval $ac_try) 2>&5
  7856. ac_status=$?
  7857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7858. (exit $ac_status); }; }; then
  7859. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  7860. }'`
  7861. # Check for a 64-bit object if we didn't find anything.
  7862. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  7863. }'`; fi
  7864. else
  7865. echo "$as_me: failed program was:" >&5
  7866. sed 's/^/| /' conftest.$ac_ext >&5
  7867. fi
  7868. rm -f conftest.err conftest.$ac_objext \
  7869. conftest$ac_exeext conftest.$ac_ext
  7870. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7871. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7872. # Warning - without using the other run time loading flags,
  7873. # -berok will link without error, but may produce a broken library.
  7874. no_undefined_flag=' ${wl}-bernotok'
  7875. allow_undefined_flag=' ${wl}-berok'
  7876. # -bexpall does not export symbols beginning with underscore (_)
  7877. always_export_symbols=yes
  7878. # Exported symbols can be pulled into shared objects from archives
  7879. whole_archive_flag_spec=' '
  7880. archive_cmds_need_lc=yes
  7881. # This is similar to how AIX traditionally builds it's shared libraries.
  7882. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  7883. fi
  7884. fi
  7885. ;;
  7886. amigaos*)
  7887. 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)'
  7888. hardcode_libdir_flag_spec='-L$libdir'
  7889. hardcode_minus_L=yes
  7890. # see comment about different semantics on the GNU ld section
  7891. ld_shlibs=no
  7892. ;;
  7893. bsdi4*)
  7894. export_dynamic_flag_spec=-rdynamic
  7895. ;;
  7896. cygwin* | mingw* | pw32*)
  7897. # When not using gcc, we currently assume that we are using
  7898. # Microsoft Visual C++.
  7899. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7900. # no search path for DLLs.
  7901. hardcode_libdir_flag_spec=' '
  7902. allow_undefined_flag=unsupported
  7903. # Tell ltmain to make .lib files, not .a files.
  7904. libext=lib
  7905. # FIXME: Setting linknames here is a bad hack.
  7906. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7907. # The linker will automatically build a .lib file if we build a DLL.
  7908. old_archive_From_new_cmds='true'
  7909. # FIXME: Should let the user specify the lib program.
  7910. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  7911. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7912. ;;
  7913. darwin* | rhapsody*)
  7914. case "$host_os" in
  7915. rhapsody* | darwin1.[012])
  7916. allow_undefined_flag='-undefined suppress'
  7917. ;;
  7918. *) # Darwin 1.3 on
  7919. allow_undefined_flag='-flat_namespace -undefined suppress'
  7920. ;;
  7921. esac
  7922. # FIXME: Relying on posixy $() will cause problems for
  7923. # cross-compilation, but unfortunately the echo tests do not
  7924. # yet detect zsh echo's removal of \ escapes. Also zsh mangles
  7925. # `"' quotes if we put them in here... so don't!
  7926. archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
  7927. # We need to add '_' to the symbols in $export_symbols first
  7928. #_LT_AC_TAGVAR(archive_expsym_cmds, )="$_LT_AC_TAGVAR(archive_cmds, )"' && strip -s $export_symbols'
  7929. hardcode_direct=yes
  7930. hardcode_shlibpath_var=no
  7931. whole_archive_flag_spec='-all_load $convenience'
  7932. ;;
  7933. dgux*)
  7934. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7935. hardcode_libdir_flag_spec='-L$libdir'
  7936. hardcode_shlibpath_var=no
  7937. ;;
  7938. freebsd1*)
  7939. ld_shlibs=no
  7940. ;;
  7941. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7942. # support. Future versions do this automatically, but an explicit c++rt0.o
  7943. # does not break anything, and helps significantly (at the cost of a little
  7944. # extra space).
  7945. freebsd2.2*)
  7946. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7947. hardcode_libdir_flag_spec='-R$libdir'
  7948. hardcode_direct=yes
  7949. hardcode_shlibpath_var=no
  7950. ;;
  7951. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7952. freebsd2*)
  7953. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7954. hardcode_direct=yes
  7955. hardcode_minus_L=yes
  7956. hardcode_shlibpath_var=no
  7957. ;;
  7958. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7959. freebsd*)
  7960. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7961. hardcode_libdir_flag_spec='-R$libdir'
  7962. hardcode_direct=yes
  7963. hardcode_shlibpath_var=no
  7964. ;;
  7965. hpux9* | hpux10* | hpux11*)
  7966. if test "$GCC" = yes; then
  7967. case $host_os in
  7968. hpux9*)
  7969. 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'
  7970. ;;
  7971. *)
  7972. if test "$host_cpu" = ia64; then
  7973. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7974. else
  7975. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7976. fi
  7977. ;;
  7978. esac
  7979. else
  7980. case $host_os in
  7981. hpux9*)
  7982. 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'
  7983. ;;
  7984. *)
  7985. if test "$host_cpu" = ia64; then
  7986. archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  7987. else
  7988. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7989. fi
  7990. ;;
  7991. esac
  7992. fi
  7993. if test "$host_cpu" = ia64; then
  7994. hardcode_libdir_flag_spec='-L$libdir'
  7995. hardcode_direct=no
  7996. hardcode_shlibpath_var=no
  7997. else
  7998. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7999. hardcode_libdir_separator=:
  8000. hardcode_direct=yes
  8001. fi
  8002. # hardcode_minus_L: Not really in the search PATH,
  8003. # but as the default location of the library.
  8004. hardcode_minus_L=yes
  8005. export_dynamic_flag_spec='${wl}-E'
  8006. ;;
  8007. irix5* | irix6* | nonstopux*)
  8008. if test "$GCC" = yes; then
  8009. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8010. else
  8011. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  8012. fi
  8013. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8014. hardcode_libdir_separator=:
  8015. link_all_deplibs=yes
  8016. ;;
  8017. netbsd*)
  8018. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8019. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8020. else
  8021. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8022. fi
  8023. hardcode_libdir_flag_spec='-R$libdir'
  8024. hardcode_direct=yes
  8025. hardcode_shlibpath_var=no
  8026. ;;
  8027. newsos6)
  8028. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8029. hardcode_direct=yes
  8030. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8031. hardcode_libdir_separator=:
  8032. hardcode_shlibpath_var=no
  8033. ;;
  8034. openbsd*)
  8035. hardcode_direct=yes
  8036. hardcode_shlibpath_var=no
  8037. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8038. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
  8039. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8040. export_dynamic_flag_spec='${wl}-E'
  8041. else
  8042. case $host_os in
  8043. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8044. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8045. hardcode_libdir_flag_spec='-R$libdir'
  8046. ;;
  8047. *)
  8048. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
  8049. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8050. ;;
  8051. esac
  8052. fi
  8053. ;;
  8054. os2*)
  8055. hardcode_libdir_flag_spec='-L$libdir'
  8056. hardcode_minus_L=yes
  8057. allow_undefined_flag=unsupported
  8058. 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'
  8059. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8060. ;;
  8061. osf3*)
  8062. if test "$GCC" = yes; then
  8063. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8064. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8065. else
  8066. allow_undefined_flag=' -expect_unresolved \*'
  8067. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  8068. fi
  8069. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8070. hardcode_libdir_separator=:
  8071. ;;
  8072. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8073. if test "$GCC" = yes; then
  8074. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8075. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8076. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8077. else
  8078. allow_undefined_flag=' -expect_unresolved \*'
  8079. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  8080. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  8081. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  8082. # Both c and cxx compiler support -rpath directly
  8083. hardcode_libdir_flag_spec='-rpath $libdir'
  8084. fi
  8085. hardcode_libdir_separator=:
  8086. ;;
  8087. sco3.2v5*)
  8088. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8089. hardcode_shlibpath_var=no
  8090. export_dynamic_flag_spec='${wl}-Bexport'
  8091. runpath_var=LD_RUN_PATH
  8092. hardcode_runpath_var=yes
  8093. ;;
  8094. solaris*)
  8095. no_undefined_flag=' -z text'
  8096. if test "$GCC" = yes; then
  8097. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8098. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  8099. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  8100. else
  8101. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8102. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  8103. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  8104. fi
  8105. hardcode_libdir_flag_spec='-R$libdir'
  8106. hardcode_shlibpath_var=no
  8107. case $host_os in
  8108. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8109. *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  8110. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  8111. esac
  8112. link_all_deplibs=yes
  8113. ;;
  8114. sunos4*)
  8115. if test "x$host_vendor" = xsequent; then
  8116. # Use $CC to link under sequent, because it throws in some extra .o
  8117. # files that make .init and .fini sections work.
  8118. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8119. else
  8120. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8121. fi
  8122. hardcode_libdir_flag_spec='-L$libdir'
  8123. hardcode_direct=yes
  8124. hardcode_minus_L=yes
  8125. hardcode_shlibpath_var=no
  8126. ;;
  8127. sysv4)
  8128. if test "x$host_vendor" = xsni; then
  8129. archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8130. hardcode_direct=yes # is this really true???
  8131. else
  8132. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8133. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8134. fi
  8135. runpath_var='LD_RUN_PATH'
  8136. hardcode_shlibpath_var=no
  8137. ;;
  8138. sysv4.3*)
  8139. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8140. hardcode_shlibpath_var=no
  8141. export_dynamic_flag_spec='-Bexport'
  8142. ;;
  8143. sysv4*MP*)
  8144. if test -d /usr/nec; then
  8145. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8146. hardcode_shlibpath_var=no
  8147. runpath_var=LD_RUN_PATH
  8148. hardcode_runpath_var=yes
  8149. ld_shlibs=yes
  8150. fi
  8151. ;;
  8152. sysv4.2uw2*)
  8153. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8154. hardcode_direct=yes
  8155. hardcode_minus_L=no
  8156. hardcode_shlibpath_var=no
  8157. hardcode_runpath_var=yes
  8158. runpath_var=LD_RUN_PATH
  8159. ;;
  8160. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  8161. no_undefined_flag='${wl}-z ${wl}text'
  8162. if test "$GCC" = yes; then
  8163. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8164. else
  8165. archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8166. fi
  8167. runpath_var='LD_RUN_PATH'
  8168. hardcode_shlibpath_var=no
  8169. ;;
  8170. sysv5*)
  8171. no_undefined_flag=' -z text'
  8172. # $CC -shared without GNU ld will not create a library from C++
  8173. # object files and a static libstdc++, better avoid it by now
  8174. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8175. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  8176. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  8177. hardcode_libdir_flag_spec=
  8178. hardcode_shlibpath_var=no
  8179. runpath_var='LD_RUN_PATH'
  8180. ;;
  8181. uts4*)
  8182. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8183. hardcode_libdir_flag_spec='-L$libdir'
  8184. hardcode_shlibpath_var=no
  8185. ;;
  8186. *)
  8187. ld_shlibs=no
  8188. ;;
  8189. esac
  8190. fi
  8191. echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  8192. echo "${ECHO_T}$ld_shlibs" >&6
  8193. test "$ld_shlibs" = no && can_build_shared=no
  8194. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8195. if test "$GCC" = yes; then
  8196. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8197. fi
  8198. #
  8199. # Do we need to explicitly link libc?
  8200. #
  8201. archive_cmds_need_lc=yes
  8202. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8203. case $archive_cmds in
  8204. *'~'*)
  8205. # FIXME: we may have to deal with multi-command sequences.
  8206. ;;
  8207. '$CC '*)
  8208. # Test whether the compiler implicitly links with -lc since on some
  8209. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8210. # to ld, don't add -lc before -lgcc.
  8211. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  8212. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  8213. $rm conftest*
  8214. echo 'static int dummy;' > conftest.$ac_ext
  8215. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8216. (eval $ac_compile) 2>&5
  8217. ac_status=$?
  8218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8219. (exit $ac_status); } 2>conftest.err; then
  8220. soname=conftest
  8221. lib=conftest
  8222. libobjs=conftest.$ac_objext
  8223. deplibs=
  8224. wl=$lt_prog_compiler_wl
  8225. compiler_flags=-v
  8226. linker_flags=-v
  8227. verstring=
  8228. output_objdir=.
  8229. libname=conftest
  8230. lt_save_allow_undefined_flag=$allow_undefined_flag
  8231. allow_undefined_flag=
  8232. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  8233. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8234. ac_status=$?
  8235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8236. (exit $ac_status); }
  8237. then
  8238. archive_cmds_need_lc=no
  8239. else
  8240. archive_cmds_need_lc=yes
  8241. fi
  8242. allow_undefined_flag=$lt_save_allow_undefined_flag
  8243. else
  8244. cat conftest.err 1>&5
  8245. fi
  8246. $rm conftest*
  8247. echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  8248. echo "${ECHO_T}$archive_cmds_need_lc" >&6
  8249. ;;
  8250. esac
  8251. fi
  8252. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8253. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  8254. hardcode_action=
  8255. if test -n "$hardcode_libdir_flag_spec" || \
  8256. test -n "$runpath_var "; then
  8257. # We can hardcode non-existant directories.
  8258. if test "$hardcode_direct" != no &&
  8259. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8260. # have to relink, otherwise we might link with an installed library
  8261. # when we should be linking with a yet-to-be-installed one
  8262. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8263. test "$hardcode_minus_L" != no; then
  8264. # Linking always hardcodes the temporary library directory.
  8265. hardcode_action=relink
  8266. else
  8267. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8268. hardcode_action=immediate
  8269. fi
  8270. else
  8271. # We cannot hardcode anything, or else we can only hardcode existing
  8272. # directories.
  8273. hardcode_action=unsupported
  8274. fi
  8275. echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8276. echo "${ECHO_T}$hardcode_action" >&6
  8277. if test "$hardcode_action" = relink; then
  8278. # Fast installation is not supported
  8279. enable_fast_install=no
  8280. elif test "$shlibpath_overrides_runpath" = yes ||
  8281. test "$enable_shared" = no; then
  8282. # Fast installation is not necessary
  8283. enable_fast_install=needless
  8284. fi
  8285. striplib=
  8286. old_striplib=
  8287. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  8288. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  8289. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  8290. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  8291. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  8292. echo "$as_me:$LINENO: result: yes" >&5
  8293. echo "${ECHO_T}yes" >&6
  8294. else
  8295. echo "$as_me:$LINENO: result: no" >&5
  8296. echo "${ECHO_T}no" >&6
  8297. fi
  8298. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  8299. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  8300. library_names_spec=
  8301. libname_spec='lib$name'
  8302. soname_spec=
  8303. postinstall_cmds=
  8304. postuninstall_cmds=
  8305. finish_cmds=
  8306. finish_eval=
  8307. shlibpath_var=
  8308. shlibpath_overrides_runpath=unknown
  8309. version_type=none
  8310. dynamic_linker="$host_os ld.so"
  8311. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8312. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8313. need_lib_prefix=unknown
  8314. hardcode_into_libs=no
  8315. # when you set need_version to no, make sure it does not cause -set_version
  8316. # flags to be left without arguments
  8317. need_version=unknown
  8318. case $host_os in
  8319. aix3*)
  8320. version_type=linux
  8321. library_names_spec='${libname}${release}.so$versuffix $libname.a'
  8322. shlibpath_var=LIBPATH
  8323. # AIX 3 has no versioning support, so we append a major version to the name.
  8324. soname_spec='${libname}${release}.so$major'
  8325. ;;
  8326. aix4* | aix5*)
  8327. version_type=linux
  8328. hardcode_into_libs=yes
  8329. if test "$host_cpu" = ia64; then
  8330. # AIX 5 supports IA64
  8331. library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
  8332. shlibpath_var=LD_LIBRARY_PATH
  8333. else
  8334. # With GCC up to 2.95.x, collect2 would create an import file
  8335. # for dependence libraries. The import file would start with
  8336. # the line `#! .'. This would cause the generated library to
  8337. # depend on `.', always an invalid library. This was fixed in
  8338. # development snapshots of GCC prior to 3.0.
  8339. case $host_os in
  8340. aix4 | aix4.[01] | aix4.[01].*)
  8341. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8342. echo ' yes '
  8343. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  8344. :
  8345. else
  8346. can_build_shared=no
  8347. fi
  8348. ;;
  8349. esac
  8350. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8351. # soname into executable. Probably we can add versioning support to
  8352. # collect2, so additional links can be useful in future.
  8353. if test "$aix_use_runtimelinking" = yes; then
  8354. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8355. # instead of lib<name>.a to let people know that these are not
  8356. # typical AIX shared libraries.
  8357. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  8358. else
  8359. # We preserve .a as extension for shared libraries through AIX4.2
  8360. # and later when we are not doing run time linking.
  8361. library_names_spec='${libname}${release}.a $libname.a'
  8362. soname_spec='${libname}${release}.so$major'
  8363. fi
  8364. shlibpath_var=LIBPATH
  8365. fi
  8366. ;;
  8367. amigaos*)
  8368. library_names_spec='$libname.ixlibrary $libname.a'
  8369. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8370. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
  8371. ;;
  8372. beos*)
  8373. library_names_spec='${libname}.so'
  8374. dynamic_linker="$host_os ld.so"
  8375. shlibpath_var=LIBRARY_PATH
  8376. ;;
  8377. bsdi4*)
  8378. version_type=linux
  8379. need_version=no
  8380. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  8381. soname_spec='${libname}${release}.so$major'
  8382. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8383. shlibpath_var=LD_LIBRARY_PATH
  8384. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8385. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8386. # the default ld.so.conf also contains /usr/contrib/lib and
  8387. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8388. # libtool to hard-code these into programs
  8389. ;;
  8390. cygwin* | mingw* | pw32*)
  8391. version_type=windows
  8392. need_version=no
  8393. need_lib_prefix=no
  8394. case $GCC,$host_os in
  8395. yes,cygwin*)
  8396. library_names_spec='$libname.dll.a'
  8397. sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
  8398. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  8399. postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
  8400. dldir=$destdir/`dirname \$dlpath`~
  8401. test -d \$dldir || mkdir -p \$dldir~
  8402. $install_prog .libs/$dlname \$dldir/$dlname'
  8403. postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8404. dlpath=$dir/\$dldll~
  8405. $rm \$dlpath'
  8406. ;;
  8407. yes,mingw*)
  8408. library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  8409. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
  8410. if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
  8411. # It is most probably a Windows format PATH printed by
  8412. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8413. # path with ; separators, and with drive letters. We can handle the
  8414. # drive letters (cygwin fileutils understands them), so leave them,
  8415. # especially as we might pass files found there to a mingw objdump,
  8416. # which wouldn't understand a cygwinified path. Ahh.
  8417. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
  8418. else
  8419. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
  8420. fi
  8421. ;;
  8422. yes,pw32*)
  8423. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
  8424. ;;
  8425. *)
  8426. library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
  8427. ;;
  8428. esac
  8429. dynamic_linker='Win32 ld.exe'
  8430. # FIXME: first we should search . and the directory the executable is in
  8431. shlibpath_var=PATH
  8432. ;;
  8433. darwin* | rhapsody*)
  8434. dynamic_linker="$host_os dyld"
  8435. version_type=darwin
  8436. need_lib_prefix=no
  8437. need_version=no
  8438. # FIXME: Relying on posixy $() will cause problems for
  8439. # cross-compilation, but unfortunately the echo tests do not
  8440. # yet detect zsh echo's removal of \ escapes.
  8441. library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
  8442. soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
  8443. shlibpath_overrides_runpath=yes
  8444. shlibpath_var=DYLD_LIBRARY_PATH
  8445. ;;
  8446. dgux*)
  8447. version_type=linux
  8448. need_lib_prefix=no
  8449. need_version=no
  8450. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  8451. soname_spec='${libname}${release}.so$major'
  8452. shlibpath_var=LD_LIBRARY_PATH
  8453. ;;
  8454. freebsd1*)
  8455. dynamic_linker=no
  8456. ;;
  8457. freebsd*)
  8458. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  8459. version_type=freebsd-$objformat
  8460. case $version_type in
  8461. freebsd-elf*)
  8462. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  8463. need_version=no
  8464. need_lib_prefix=no
  8465. ;;
  8466. freebsd-*)
  8467. library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
  8468. need_version=yes
  8469. ;;
  8470. esac
  8471. shlibpath_var=LD_LIBRARY_PATH
  8472. case $host_os in
  8473. freebsd2*)
  8474. shlibpath_overrides_runpath=yes
  8475. ;;
  8476. freebsd3.01* | freebsdelf3.01*)
  8477. shlibpath_overrides_runpath=yes
  8478. hardcode_into_libs=yes
  8479. ;;
  8480. *) # from 3.2 on
  8481. shlibpath_overrides_runpath=no
  8482. hardcode_into_libs=yes
  8483. ;;
  8484. esac
  8485. ;;
  8486. gnu*)
  8487. version_type=linux
  8488. need_lib_prefix=no
  8489. need_version=no
  8490. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
  8491. soname_spec='${libname}${release}.so$major'
  8492. shlibpath_var=LD_LIBRARY_PATH
  8493. hardcode_into_libs=yes
  8494. ;;
  8495. hpux9* | hpux10* | hpux11*)
  8496. # Give a soname corresponding to the major version so that dld.sl refuses to
  8497. # link against other versions.
  8498. version_type=sunos
  8499. need_lib_prefix=no
  8500. need_version=no
  8501. if test "$host_cpu" = ia64; then
  8502. hardcode_into_libs=yes
  8503. dynamic_linker="$host_os dld.so"
  8504. shlibpath_var=LD_LIBRARY_PATH
  8505. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8506. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  8507. soname_spec='${libname}${release}.so$major'
  8508. if test "X$HPUX_IA64_MODE" = X32; then
  8509. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8510. else
  8511. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8512. fi
  8513. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8514. else
  8515. dynamic_linker="$host_os dld.sl"
  8516. shlibpath_var=SHLIB_PATH
  8517. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8518. library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
  8519. soname_spec='${libname}${release}.sl$major'
  8520. fi
  8521. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8522. postinstall_cmds='chmod 555 $lib'
  8523. ;;
  8524. irix5* | irix6* | nonstopux*)
  8525. case $host_os in
  8526. nonstopux*) version_type=nonstopux ;;
  8527. *) version_type=irix ;;
  8528. esac
  8529. need_lib_prefix=no
  8530. need_version=no
  8531. soname_spec='${libname}${release}.so$major'
  8532. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
  8533. case $host_os in
  8534. irix5* | nonstopux*)
  8535. libsuff= shlibsuff=
  8536. ;;
  8537. *)
  8538. case $LD in # libtool.m4 will add one of these switches to LD
  8539. *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
  8540. *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
  8541. *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8542. *) libsuff= shlibsuff= libmagic=never-match;;
  8543. esac
  8544. ;;
  8545. esac
  8546. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8547. shlibpath_overrides_runpath=no
  8548. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8549. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8550. ;;
  8551. # No shared lib support for Linux oldld, aout, or coff.
  8552. linux*oldld* | linux*aout* | linux*coff*)
  8553. dynamic_linker=no
  8554. ;;
  8555. # This must be Linux ELF.
  8556. linux*)
  8557. version_type=linux
  8558. need_lib_prefix=no
  8559. need_version=no
  8560. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  8561. soname_spec='${libname}${release}.so$major'
  8562. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8563. libsuff=
  8564. if test "x$LINUX_64_MODE" = x64; then
  8565. # Some platforms are per default 64-bit, so there's no /lib64
  8566. if test -d /lib64; then
  8567. libsuff=64
  8568. fi
  8569. fi
  8570. shlibpath_var=LD_LIBRARY_PATH
  8571. shlibpath_overrides_runpath=no
  8572. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
  8573. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  8574. # This implies no fast_install, which is unacceptable.
  8575. # Some rework will be needed to allow for fast_install
  8576. # before this can be enabled.
  8577. hardcode_into_libs=yes
  8578. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8579. # powerpc, because MkLinux only supported shared libraries with the
  8580. # GNU dynamic linker. Since this was broken with cross compilers,
  8581. # most powerpc-linux boxes support dynamic linking these days and
  8582. # people can always --disable-shared, the test was removed, and we
  8583. # assume the GNU/Linux dynamic linker is in use.
  8584. dynamic_linker='GNU/Linux ld.so'
  8585. ;;
  8586. netbsd*)
  8587. version_type=sunos
  8588. need_lib_prefix=no
  8589. need_version=no
  8590. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8591. library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  8592. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8593. dynamic_linker='NetBSD (a.out) ld.so'
  8594. else
  8595. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
  8596. soname_spec='${libname}${release}.so$major'
  8597. dynamic_linker='NetBSD ld.elf_so'
  8598. fi
  8599. shlibpath_var=LD_LIBRARY_PATH
  8600. shlibpath_overrides_runpath=yes
  8601. hardcode_into_libs=yes
  8602. ;;
  8603. newsos6)
  8604. version_type=linux
  8605. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  8606. shlibpath_var=LD_LIBRARY_PATH
  8607. shlibpath_overrides_runpath=yes
  8608. ;;
  8609. nto-qnx)
  8610. version_type=linux
  8611. need_lib_prefix=no
  8612. need_version=no
  8613. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  8614. soname_spec='${libname}${release}.so$major'
  8615. shlibpath_var=LD_LIBRARY_PATH
  8616. shlibpath_overrides_runpath=yes
  8617. ;;
  8618. openbsd*)
  8619. version_type=sunos
  8620. need_lib_prefix=no
  8621. need_version=no
  8622. library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  8623. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8624. shlibpath_var=LD_LIBRARY_PATH
  8625. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8626. case $host_os in
  8627. openbsd2.[89] | openbsd2.[89].*)
  8628. shlibpath_overrides_runpath=no
  8629. ;;
  8630. *)
  8631. shlibpath_overrides_runpath=yes
  8632. ;;
  8633. esac
  8634. else
  8635. shlibpath_overrides_runpath=yes
  8636. fi
  8637. ;;
  8638. os2*)
  8639. libname_spec='$name'
  8640. need_lib_prefix=no
  8641. library_names_spec='$libname.dll $libname.a'
  8642. dynamic_linker='OS/2 ld.exe'
  8643. shlibpath_var=LIBPATH
  8644. ;;
  8645. osf3* | osf4* | osf5*)
  8646. version_type=osf
  8647. need_lib_prefix=no
  8648. need_version=no
  8649. soname_spec='${libname}${release}.so'
  8650. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  8651. shlibpath_var=LD_LIBRARY_PATH
  8652. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8653. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8654. ;;
  8655. sco3.2v5*)
  8656. version_type=osf
  8657. soname_spec='${libname}${release}.so$major'
  8658. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  8659. shlibpath_var=LD_LIBRARY_PATH
  8660. ;;
  8661. solaris*)
  8662. version_type=linux
  8663. need_lib_prefix=no
  8664. need_version=no
  8665. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  8666. soname_spec='${libname}${release}.so$major'
  8667. shlibpath_var=LD_LIBRARY_PATH
  8668. shlibpath_overrides_runpath=yes
  8669. hardcode_into_libs=yes
  8670. # ldd complains unless libraries are executable
  8671. postinstall_cmds='chmod +x $lib'
  8672. ;;
  8673. sunos4*)
  8674. version_type=sunos
  8675. library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  8676. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8677. shlibpath_var=LD_LIBRARY_PATH
  8678. shlibpath_overrides_runpath=yes
  8679. if test "$with_gnu_ld" = yes; then
  8680. need_lib_prefix=no
  8681. fi
  8682. need_version=yes
  8683. ;;
  8684. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8685. version_type=linux
  8686. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  8687. soname_spec='${libname}${release}.so$major'
  8688. shlibpath_var=LD_LIBRARY_PATH
  8689. case $host_vendor in
  8690. sni)
  8691. shlibpath_overrides_runpath=no
  8692. ;;
  8693. motorola)
  8694. need_lib_prefix=no
  8695. need_version=no
  8696. shlibpath_overrides_runpath=no
  8697. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8698. ;;
  8699. esac
  8700. ;;
  8701. sysv4*MP*)
  8702. if test -d /usr/nec ;then
  8703. version_type=linux
  8704. library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
  8705. soname_spec='$libname.so.$major'
  8706. shlibpath_var=LD_LIBRARY_PATH
  8707. fi
  8708. ;;
  8709. uts4*)
  8710. version_type=linux
  8711. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  8712. soname_spec='${libname}${release}.so$major'
  8713. shlibpath_var=LD_LIBRARY_PATH
  8714. ;;
  8715. *)
  8716. dynamic_linker=no
  8717. ;;
  8718. esac
  8719. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8720. echo "${ECHO_T}$dynamic_linker" >&6
  8721. test "$dynamic_linker" = no && can_build_shared=no
  8722. if test "x$enable_dlopen" != xyes; then
  8723. enable_dlopen=unknown
  8724. enable_dlopen_self=unknown
  8725. enable_dlopen_self_static=unknown
  8726. else
  8727. lt_cv_dlopen=no
  8728. lt_cv_dlopen_libs=
  8729. case $host_os in
  8730. beos*)
  8731. lt_cv_dlopen="load_add_on"
  8732. lt_cv_dlopen_libs=
  8733. lt_cv_dlopen_self=yes
  8734. ;;
  8735. cygwin* | mingw* | pw32*)
  8736. lt_cv_dlopen="LoadLibrary"
  8737. lt_cv_dlopen_libs=
  8738. ;;
  8739. *)
  8740. echo "$as_me:$LINENO: checking for shl_load" >&5
  8741. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  8742. if test "${ac_cv_func_shl_load+set}" = set; then
  8743. echo $ECHO_N "(cached) $ECHO_C" >&6
  8744. else
  8745. cat >conftest.$ac_ext <<_ACEOF
  8746. /* confdefs.h. */
  8747. _ACEOF
  8748. cat confdefs.h >>conftest.$ac_ext
  8749. cat >>conftest.$ac_ext <<_ACEOF
  8750. /* end confdefs.h. */
  8751. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  8752. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8753. #define shl_load innocuous_shl_load
  8754. /* System header to define __stub macros and hopefully few prototypes,
  8755. which can conflict with char shl_load (); below.
  8756. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8757. <limits.h> exists even on freestanding compilers. */
  8758. #ifdef __STDC__
  8759. # include <limits.h>
  8760. #else
  8761. # include <assert.h>
  8762. #endif
  8763. #undef shl_load
  8764. /* Override any gcc2 internal prototype to avoid an error. */
  8765. #ifdef __cplusplus
  8766. extern "C"
  8767. {
  8768. #endif
  8769. /* We use char because int might match the return type of a gcc2
  8770. builtin and then its argument prototype would still apply. */
  8771. char shl_load ();
  8772. /* The GNU C library defines this for functions which it implements
  8773. to always fail with ENOSYS. Some functions are actually named
  8774. something starting with __ and the normal name is an alias. */
  8775. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  8776. choke me
  8777. #else
  8778. char (*f) () = shl_load;
  8779. #endif
  8780. #ifdef __cplusplus
  8781. }
  8782. #endif
  8783. int
  8784. main ()
  8785. {
  8786. return f != shl_load;
  8787. ;
  8788. return 0;
  8789. }
  8790. _ACEOF
  8791. rm -f conftest.$ac_objext conftest$ac_exeext
  8792. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8793. (eval $ac_link) 2>conftest.er1
  8794. ac_status=$?
  8795. grep -v '^ *+' conftest.er1 >conftest.err
  8796. rm -f conftest.er1
  8797. cat conftest.err >&5
  8798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8799. (exit $ac_status); } &&
  8800. { ac_try='test -z "$ac_c_werror_flag"
  8801. || test ! -s conftest.err'
  8802. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8803. (eval $ac_try) 2>&5
  8804. ac_status=$?
  8805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8806. (exit $ac_status); }; } &&
  8807. { ac_try='test -s conftest$ac_exeext'
  8808. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8809. (eval $ac_try) 2>&5
  8810. ac_status=$?
  8811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8812. (exit $ac_status); }; }; then
  8813. ac_cv_func_shl_load=yes
  8814. else
  8815. echo "$as_me: failed program was:" >&5
  8816. sed 's/^/| /' conftest.$ac_ext >&5
  8817. ac_cv_func_shl_load=no
  8818. fi
  8819. rm -f conftest.err conftest.$ac_objext \
  8820. conftest$ac_exeext conftest.$ac_ext
  8821. fi
  8822. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8823. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  8824. if test $ac_cv_func_shl_load = yes; then
  8825. lt_cv_dlopen="shl_load"
  8826. else
  8827. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8828. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  8829. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8830. echo $ECHO_N "(cached) $ECHO_C" >&6
  8831. else
  8832. ac_check_lib_save_LIBS=$LIBS
  8833. LIBS="-ldld $LIBS"
  8834. cat >conftest.$ac_ext <<_ACEOF
  8835. /* confdefs.h. */
  8836. _ACEOF
  8837. cat confdefs.h >>conftest.$ac_ext
  8838. cat >>conftest.$ac_ext <<_ACEOF
  8839. /* end confdefs.h. */
  8840. /* Override any gcc2 internal prototype to avoid an error. */
  8841. #ifdef __cplusplus
  8842. extern "C"
  8843. #endif
  8844. /* We use char because int might match the return type of a gcc2
  8845. builtin and then its argument prototype would still apply. */
  8846. char shl_load ();
  8847. int
  8848. main ()
  8849. {
  8850. shl_load ();
  8851. ;
  8852. return 0;
  8853. }
  8854. _ACEOF
  8855. rm -f conftest.$ac_objext conftest$ac_exeext
  8856. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8857. (eval $ac_link) 2>conftest.er1
  8858. ac_status=$?
  8859. grep -v '^ *+' conftest.er1 >conftest.err
  8860. rm -f conftest.er1
  8861. cat conftest.err >&5
  8862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8863. (exit $ac_status); } &&
  8864. { ac_try='test -z "$ac_c_werror_flag"
  8865. || test ! -s conftest.err'
  8866. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8867. (eval $ac_try) 2>&5
  8868. ac_status=$?
  8869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8870. (exit $ac_status); }; } &&
  8871. { ac_try='test -s conftest$ac_exeext'
  8872. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8873. (eval $ac_try) 2>&5
  8874. ac_status=$?
  8875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8876. (exit $ac_status); }; }; then
  8877. ac_cv_lib_dld_shl_load=yes
  8878. else
  8879. echo "$as_me: failed program was:" >&5
  8880. sed 's/^/| /' conftest.$ac_ext >&5
  8881. ac_cv_lib_dld_shl_load=no
  8882. fi
  8883. rm -f conftest.err conftest.$ac_objext \
  8884. conftest$ac_exeext conftest.$ac_ext
  8885. LIBS=$ac_check_lib_save_LIBS
  8886. fi
  8887. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8888. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  8889. if test $ac_cv_lib_dld_shl_load = yes; then
  8890. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  8891. else
  8892. echo "$as_me:$LINENO: checking for dlopen" >&5
  8893. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  8894. if test "${ac_cv_func_dlopen+set}" = set; then
  8895. echo $ECHO_N "(cached) $ECHO_C" >&6
  8896. else
  8897. cat >conftest.$ac_ext <<_ACEOF
  8898. /* confdefs.h. */
  8899. _ACEOF
  8900. cat confdefs.h >>conftest.$ac_ext
  8901. cat >>conftest.$ac_ext <<_ACEOF
  8902. /* end confdefs.h. */
  8903. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8904. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8905. #define dlopen innocuous_dlopen
  8906. /* System header to define __stub macros and hopefully few prototypes,
  8907. which can conflict with char dlopen (); below.
  8908. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8909. <limits.h> exists even on freestanding compilers. */
  8910. #ifdef __STDC__
  8911. # include <limits.h>
  8912. #else
  8913. # include <assert.h>
  8914. #endif
  8915. #undef dlopen
  8916. /* Override any gcc2 internal prototype to avoid an error. */
  8917. #ifdef __cplusplus
  8918. extern "C"
  8919. {
  8920. #endif
  8921. /* We use char because int might match the return type of a gcc2
  8922. builtin and then its argument prototype would still apply. */
  8923. char dlopen ();
  8924. /* The GNU C library defines this for functions which it implements
  8925. to always fail with ENOSYS. Some functions are actually named
  8926. something starting with __ and the normal name is an alias. */
  8927. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  8928. choke me
  8929. #else
  8930. char (*f) () = dlopen;
  8931. #endif
  8932. #ifdef __cplusplus
  8933. }
  8934. #endif
  8935. int
  8936. main ()
  8937. {
  8938. return f != dlopen;
  8939. ;
  8940. return 0;
  8941. }
  8942. _ACEOF
  8943. rm -f conftest.$ac_objext conftest$ac_exeext
  8944. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8945. (eval $ac_link) 2>conftest.er1
  8946. ac_status=$?
  8947. grep -v '^ *+' conftest.er1 >conftest.err
  8948. rm -f conftest.er1
  8949. cat conftest.err >&5
  8950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8951. (exit $ac_status); } &&
  8952. { ac_try='test -z "$ac_c_werror_flag"
  8953. || test ! -s conftest.err'
  8954. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8955. (eval $ac_try) 2>&5
  8956. ac_status=$?
  8957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8958. (exit $ac_status); }; } &&
  8959. { ac_try='test -s conftest$ac_exeext'
  8960. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8961. (eval $ac_try) 2>&5
  8962. ac_status=$?
  8963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8964. (exit $ac_status); }; }; then
  8965. ac_cv_func_dlopen=yes
  8966. else
  8967. echo "$as_me: failed program was:" >&5
  8968. sed 's/^/| /' conftest.$ac_ext >&5
  8969. ac_cv_func_dlopen=no
  8970. fi
  8971. rm -f conftest.err conftest.$ac_objext \
  8972. conftest$ac_exeext conftest.$ac_ext
  8973. fi
  8974. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8975. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  8976. if test $ac_cv_func_dlopen = yes; then
  8977. lt_cv_dlopen="dlopen"
  8978. else
  8979. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8980. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  8981. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8982. echo $ECHO_N "(cached) $ECHO_C" >&6
  8983. else
  8984. ac_check_lib_save_LIBS=$LIBS
  8985. LIBS="-ldl $LIBS"
  8986. cat >conftest.$ac_ext <<_ACEOF
  8987. /* confdefs.h. */
  8988. _ACEOF
  8989. cat confdefs.h >>conftest.$ac_ext
  8990. cat >>conftest.$ac_ext <<_ACEOF
  8991. /* end confdefs.h. */
  8992. /* Override any gcc2 internal prototype to avoid an error. */
  8993. #ifdef __cplusplus
  8994. extern "C"
  8995. #endif
  8996. /* We use char because int might match the return type of a gcc2
  8997. builtin and then its argument prototype would still apply. */
  8998. char dlopen ();
  8999. int
  9000. main ()
  9001. {
  9002. dlopen ();
  9003. ;
  9004. return 0;
  9005. }
  9006. _ACEOF
  9007. rm -f conftest.$ac_objext conftest$ac_exeext
  9008. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9009. (eval $ac_link) 2>conftest.er1
  9010. ac_status=$?
  9011. grep -v '^ *+' conftest.er1 >conftest.err
  9012. rm -f conftest.er1
  9013. cat conftest.err >&5
  9014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9015. (exit $ac_status); } &&
  9016. { ac_try='test -z "$ac_c_werror_flag"
  9017. || test ! -s conftest.err'
  9018. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9019. (eval $ac_try) 2>&5
  9020. ac_status=$?
  9021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9022. (exit $ac_status); }; } &&
  9023. { ac_try='test -s conftest$ac_exeext'
  9024. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9025. (eval $ac_try) 2>&5
  9026. ac_status=$?
  9027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9028. (exit $ac_status); }; }; then
  9029. ac_cv_lib_dl_dlopen=yes
  9030. else
  9031. echo "$as_me: failed program was:" >&5
  9032. sed 's/^/| /' conftest.$ac_ext >&5
  9033. ac_cv_lib_dl_dlopen=no
  9034. fi
  9035. rm -f conftest.err conftest.$ac_objext \
  9036. conftest$ac_exeext conftest.$ac_ext
  9037. LIBS=$ac_check_lib_save_LIBS
  9038. fi
  9039. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  9040. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  9041. if test $ac_cv_lib_dl_dlopen = yes; then
  9042. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9043. else
  9044. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  9045. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  9046. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  9047. echo $ECHO_N "(cached) $ECHO_C" >&6
  9048. else
  9049. ac_check_lib_save_LIBS=$LIBS
  9050. LIBS="-lsvld $LIBS"
  9051. cat >conftest.$ac_ext <<_ACEOF
  9052. /* confdefs.h. */
  9053. _ACEOF
  9054. cat confdefs.h >>conftest.$ac_ext
  9055. cat >>conftest.$ac_ext <<_ACEOF
  9056. /* end confdefs.h. */
  9057. /* Override any gcc2 internal prototype to avoid an error. */
  9058. #ifdef __cplusplus
  9059. extern "C"
  9060. #endif
  9061. /* We use char because int might match the return type of a gcc2
  9062. builtin and then its argument prototype would still apply. */
  9063. char dlopen ();
  9064. int
  9065. main ()
  9066. {
  9067. dlopen ();
  9068. ;
  9069. return 0;
  9070. }
  9071. _ACEOF
  9072. rm -f conftest.$ac_objext conftest$ac_exeext
  9073. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9074. (eval $ac_link) 2>conftest.er1
  9075. ac_status=$?
  9076. grep -v '^ *+' conftest.er1 >conftest.err
  9077. rm -f conftest.er1
  9078. cat conftest.err >&5
  9079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9080. (exit $ac_status); } &&
  9081. { ac_try='test -z "$ac_c_werror_flag"
  9082. || test ! -s conftest.err'
  9083. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9084. (eval $ac_try) 2>&5
  9085. ac_status=$?
  9086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9087. (exit $ac_status); }; } &&
  9088. { ac_try='test -s conftest$ac_exeext'
  9089. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9090. (eval $ac_try) 2>&5
  9091. ac_status=$?
  9092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9093. (exit $ac_status); }; }; then
  9094. ac_cv_lib_svld_dlopen=yes
  9095. else
  9096. echo "$as_me: failed program was:" >&5
  9097. sed 's/^/| /' conftest.$ac_ext >&5
  9098. ac_cv_lib_svld_dlopen=no
  9099. fi
  9100. rm -f conftest.err conftest.$ac_objext \
  9101. conftest$ac_exeext conftest.$ac_ext
  9102. LIBS=$ac_check_lib_save_LIBS
  9103. fi
  9104. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  9105. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  9106. if test $ac_cv_lib_svld_dlopen = yes; then
  9107. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9108. else
  9109. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  9110. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  9111. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  9112. echo $ECHO_N "(cached) $ECHO_C" >&6
  9113. else
  9114. ac_check_lib_save_LIBS=$LIBS
  9115. LIBS="-ldld $LIBS"
  9116. cat >conftest.$ac_ext <<_ACEOF
  9117. /* confdefs.h. */
  9118. _ACEOF
  9119. cat confdefs.h >>conftest.$ac_ext
  9120. cat >>conftest.$ac_ext <<_ACEOF
  9121. /* end confdefs.h. */
  9122. /* Override any gcc2 internal prototype to avoid an error. */
  9123. #ifdef __cplusplus
  9124. extern "C"
  9125. #endif
  9126. /* We use char because int might match the return type of a gcc2
  9127. builtin and then its argument prototype would still apply. */
  9128. char dld_link ();
  9129. int
  9130. main ()
  9131. {
  9132. dld_link ();
  9133. ;
  9134. return 0;
  9135. }
  9136. _ACEOF
  9137. rm -f conftest.$ac_objext conftest$ac_exeext
  9138. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9139. (eval $ac_link) 2>conftest.er1
  9140. ac_status=$?
  9141. grep -v '^ *+' conftest.er1 >conftest.err
  9142. rm -f conftest.er1
  9143. cat conftest.err >&5
  9144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9145. (exit $ac_status); } &&
  9146. { ac_try='test -z "$ac_c_werror_flag"
  9147. || test ! -s conftest.err'
  9148. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9149. (eval $ac_try) 2>&5
  9150. ac_status=$?
  9151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9152. (exit $ac_status); }; } &&
  9153. { ac_try='test -s conftest$ac_exeext'
  9154. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9155. (eval $ac_try) 2>&5
  9156. ac_status=$?
  9157. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9158. (exit $ac_status); }; }; then
  9159. ac_cv_lib_dld_dld_link=yes
  9160. else
  9161. echo "$as_me: failed program was:" >&5
  9162. sed 's/^/| /' conftest.$ac_ext >&5
  9163. ac_cv_lib_dld_dld_link=no
  9164. fi
  9165. rm -f conftest.err conftest.$ac_objext \
  9166. conftest$ac_exeext conftest.$ac_ext
  9167. LIBS=$ac_check_lib_save_LIBS
  9168. fi
  9169. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  9170. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  9171. if test $ac_cv_lib_dld_dld_link = yes; then
  9172. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  9173. fi
  9174. fi
  9175. fi
  9176. fi
  9177. fi
  9178. fi
  9179. ;;
  9180. esac
  9181. if test "x$lt_cv_dlopen" != xno; then
  9182. enable_dlopen=yes
  9183. else
  9184. enable_dlopen=no
  9185. fi
  9186. case $lt_cv_dlopen in
  9187. dlopen)
  9188. save_CPPFLAGS="$CPPFLAGS"
  9189. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9190. save_LDFLAGS="$LDFLAGS"
  9191. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9192. save_LIBS="$LIBS"
  9193. LIBS="$lt_cv_dlopen_libs $LIBS"
  9194. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  9195. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  9196. if test "${lt_cv_dlopen_self+set}" = set; then
  9197. echo $ECHO_N "(cached) $ECHO_C" >&6
  9198. else
  9199. if test "$cross_compiling" = yes; then :
  9200. lt_cv_dlopen_self=cross
  9201. else
  9202. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9203. lt_status=$lt_dlunknown
  9204. cat > conftest.$ac_ext <<EOF
  9205. #line 10348 "configure"
  9206. #include "confdefs.h"
  9207. #if HAVE_DLFCN_H
  9208. #include <dlfcn.h>
  9209. #endif
  9210. #include <stdio.h>
  9211. #ifdef RTLD_GLOBAL
  9212. # define LT_DLGLOBAL RTLD_GLOBAL
  9213. #else
  9214. # ifdef DL_GLOBAL
  9215. # define LT_DLGLOBAL DL_GLOBAL
  9216. # else
  9217. # define LT_DLGLOBAL 0
  9218. # endif
  9219. #endif
  9220. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9221. find out it does not work in some platform. */
  9222. #ifndef LT_DLLAZY_OR_NOW
  9223. # ifdef RTLD_LAZY
  9224. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9225. # else
  9226. # ifdef DL_LAZY
  9227. # define LT_DLLAZY_OR_NOW DL_LAZY
  9228. # else
  9229. # ifdef RTLD_NOW
  9230. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9231. # else
  9232. # ifdef DL_NOW
  9233. # define LT_DLLAZY_OR_NOW DL_NOW
  9234. # else
  9235. # define LT_DLLAZY_OR_NOW 0
  9236. # endif
  9237. # endif
  9238. # endif
  9239. # endif
  9240. #endif
  9241. #ifdef __cplusplus
  9242. extern "C" void exit (int);
  9243. #endif
  9244. void fnord() { int i=42;}
  9245. int main ()
  9246. {
  9247. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9248. int status = $lt_dlunknown;
  9249. if (self)
  9250. {
  9251. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9252. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9253. /* dlclose (self); */
  9254. }
  9255. exit (status);
  9256. }
  9257. EOF
  9258. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9259. (eval $ac_link) 2>&5
  9260. ac_status=$?
  9261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9262. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9263. (./conftest; exit; ) 2>/dev/null
  9264. lt_status=$?
  9265. case x$lt_status in
  9266. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9267. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9268. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  9269. esac
  9270. else :
  9271. # compilation failed
  9272. lt_cv_dlopen_self=no
  9273. fi
  9274. fi
  9275. rm -fr conftest*
  9276. fi
  9277. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  9278. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  9279. if test "x$lt_cv_dlopen_self" = xyes; then
  9280. LDFLAGS="$LDFLAGS $link_static_flag"
  9281. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  9282. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  9283. if test "${lt_cv_dlopen_self_static+set}" = set; then
  9284. echo $ECHO_N "(cached) $ECHO_C" >&6
  9285. else
  9286. if test "$cross_compiling" = yes; then :
  9287. lt_cv_dlopen_self_static=cross
  9288. else
  9289. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9290. lt_status=$lt_dlunknown
  9291. cat > conftest.$ac_ext <<EOF
  9292. #line 10446 "configure"
  9293. #include "confdefs.h"
  9294. #if HAVE_DLFCN_H
  9295. #include <dlfcn.h>
  9296. #endif
  9297. #include <stdio.h>
  9298. #ifdef RTLD_GLOBAL
  9299. # define LT_DLGLOBAL RTLD_GLOBAL
  9300. #else
  9301. # ifdef DL_GLOBAL
  9302. # define LT_DLGLOBAL DL_GLOBAL
  9303. # else
  9304. # define LT_DLGLOBAL 0
  9305. # endif
  9306. #endif
  9307. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9308. find out it does not work in some platform. */
  9309. #ifndef LT_DLLAZY_OR_NOW
  9310. # ifdef RTLD_LAZY
  9311. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9312. # else
  9313. # ifdef DL_LAZY
  9314. # define LT_DLLAZY_OR_NOW DL_LAZY
  9315. # else
  9316. # ifdef RTLD_NOW
  9317. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9318. # else
  9319. # ifdef DL_NOW
  9320. # define LT_DLLAZY_OR_NOW DL_NOW
  9321. # else
  9322. # define LT_DLLAZY_OR_NOW 0
  9323. # endif
  9324. # endif
  9325. # endif
  9326. # endif
  9327. #endif
  9328. #ifdef __cplusplus
  9329. extern "C" void exit (int);
  9330. #endif
  9331. void fnord() { int i=42;}
  9332. int main ()
  9333. {
  9334. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9335. int status = $lt_dlunknown;
  9336. if (self)
  9337. {
  9338. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9339. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9340. /* dlclose (self); */
  9341. }
  9342. exit (status);
  9343. }
  9344. EOF
  9345. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9346. (eval $ac_link) 2>&5
  9347. ac_status=$?
  9348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9349. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9350. (./conftest; exit; ) 2>/dev/null
  9351. lt_status=$?
  9352. case x$lt_status in
  9353. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9354. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9355. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  9356. esac
  9357. else :
  9358. # compilation failed
  9359. lt_cv_dlopen_self_static=no
  9360. fi
  9361. fi
  9362. rm -fr conftest*
  9363. fi
  9364. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  9365. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  9366. fi
  9367. CPPFLAGS="$save_CPPFLAGS"
  9368. LDFLAGS="$save_LDFLAGS"
  9369. LIBS="$save_LIBS"
  9370. ;;
  9371. esac
  9372. case $lt_cv_dlopen_self in
  9373. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9374. *) enable_dlopen_self=unknown ;;
  9375. esac
  9376. case $lt_cv_dlopen_self_static in
  9377. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9378. *) enable_dlopen_self_static=unknown ;;
  9379. esac
  9380. fi
  9381. # Report which librarie types wil actually be built
  9382. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  9383. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  9384. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  9385. echo "${ECHO_T}$can_build_shared" >&6
  9386. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  9387. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  9388. test "$can_build_shared" = "no" && enable_shared=no
  9389. # On AIX, shared libraries and static libraries use the same namespace, and
  9390. # are all built from PIC.
  9391. case "$host_os" in
  9392. aix3*)
  9393. test "$enable_shared" = yes && enable_static=no
  9394. if test -n "$RANLIB"; then
  9395. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9396. postinstall_cmds='$RANLIB $lib'
  9397. fi
  9398. ;;
  9399. aix4*)
  9400. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9401. test "$enable_shared" = yes && enable_static=no
  9402. fi
  9403. ;;
  9404. esac
  9405. echo "$as_me:$LINENO: result: $enable_shared" >&5
  9406. echo "${ECHO_T}$enable_shared" >&6
  9407. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  9408. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  9409. # Make sure either enable_shared or enable_static is yes.
  9410. test "$enable_shared" = yes || enable_static=yes
  9411. echo "$as_me:$LINENO: result: $enable_static" >&5
  9412. echo "${ECHO_T}$enable_static" >&6
  9413. # The else clause should only fire when bootstrapping the
  9414. # libtool distribution, otherwise you forgot to ship ltmain.sh
  9415. # with your package, and you will get complaints that there are
  9416. # no rules to generate ltmain.sh.
  9417. if test -f "$ltmain"; then
  9418. # Now quote all the things that may contain metacharacters while being
  9419. # careful not to overquote the AC_SUBSTed values. We take copies of the
  9420. # variables and quote the copies for generation of the libtool script.
  9421. for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
  9422. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  9423. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  9424. deplibs_check_method reload_flag reload_cmds need_locks \
  9425. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  9426. lt_cv_sys_global_symbol_to_c_name_address \
  9427. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  9428. old_postinstall_cmds old_postuninstall_cmds \
  9429. compiler \
  9430. CC \
  9431. LD \
  9432. lt_prog_compiler_wl \
  9433. lt_prog_compiler_pic \
  9434. lt_prog_compiler_static \
  9435. lt_prog_compiler_no_builtin_flag \
  9436. export_dynamic_flag_spec \
  9437. thread_safe_flag_spec \
  9438. whole_archive_flag_spec \
  9439. old_archive_cmds \
  9440. old_archive_from_new_cmds \
  9441. predep_objects \
  9442. postdep_objects \
  9443. predeps \
  9444. postdeps \
  9445. compiler_lib_search_path \
  9446. archive_cmds \
  9447. archive_expsym_cmds \
  9448. postinstall_cmds \
  9449. postuninstall_cmds \
  9450. old_archive_from_expsyms_cmds \
  9451. allow_undefined_flag \
  9452. no_undefined_flag \
  9453. export_symbols_cmds \
  9454. hardcode_libdir_flag_spec \
  9455. hardcode_libdir_separator \
  9456. lt_cv_prog_compiler_c_o \
  9457. exclude_expsyms \
  9458. include_expsyms; do
  9459. case $var in
  9460. old_archive_cmds | \
  9461. old_archive_from_new_cmds | \
  9462. archive_cmds | \
  9463. archive_expsym_cmds | \
  9464. old_archive_from_expsyms_cmds | \
  9465. export_symbols_cmds | \
  9466. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  9467. postinstall_cmds | postuninstall_cmds | \
  9468. old_postinstall_cmds | old_postuninstall_cmds | \
  9469. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  9470. # Double-quote double-evaled strings.
  9471. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  9472. ;;
  9473. *)
  9474. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  9475. ;;
  9476. esac
  9477. done
  9478. case $lt_echo in
  9479. *'\$0 --fallback-echo"')
  9480. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  9481. ;;
  9482. esac
  9483. cfgfile="${ofile}T"
  9484. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  9485. $rm -f "$cfgfile"
  9486. { echo "$as_me:$LINENO: creating $ofile" >&5
  9487. echo "$as_me: creating $ofile" >&6;}
  9488. cat <<__EOF__ >> "$cfgfile"
  9489. #! $SHELL
  9490. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  9491. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  9492. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  9493. #
  9494. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  9495. # Free Software Foundation, Inc.
  9496. #
  9497. # This file is part of GNU Libtool:
  9498. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  9499. #
  9500. # This program is free software; you can redistribute it and/or modify
  9501. # it under the terms of the GNU General Public License as published by
  9502. # the Free Software Foundation; either version 2 of the License, or
  9503. # (at your option) any later version.
  9504. #
  9505. # This program is distributed in the hope that it will be useful, but
  9506. # WITHOUT ANY WARRANTY; without even the implied warranty of
  9507. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  9508. # General Public License for more details.
  9509. #
  9510. # You should have received a copy of the GNU General Public License
  9511. # along with this program; if not, write to the Free Software
  9512. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  9513. #
  9514. # As a special exception to the GNU General Public License, if you
  9515. # distribute this file as part of a program that contains a
  9516. # configuration script generated by Autoconf, you may include it under
  9517. # the same distribution terms that you use for the rest of that program.
  9518. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  9519. Xsed="sed -e s/^X//"
  9520. # The HP-UX ksh and POSIX shell print the target directory to stdout
  9521. # if CDPATH is set.
  9522. if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  9523. # The names of the tagged configurations supported by this script.
  9524. available_tags=
  9525. # ### BEGIN LIBTOOL CONFIG
  9526. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  9527. # Shell to use when invoking shell scripts.
  9528. SHELL=$lt_SHELL
  9529. # Whether or not to build shared libraries.
  9530. build_libtool_libs=$enable_shared
  9531. # Whether or not to build static libraries.
  9532. build_old_libs=$enable_static
  9533. # Whether or not to add -lc for building shared libraries.
  9534. build_libtool_need_lc=$archive_cmds_need_lc
  9535. # Whether or not to optimize for fast installation.
  9536. fast_install=$enable_fast_install
  9537. # The host system.
  9538. host_alias=$host_alias
  9539. host=$host
  9540. # An echo program that does not interpret backslashes.
  9541. echo=$lt_echo
  9542. # The archiver.
  9543. AR=$lt_AR
  9544. AR_FLAGS=$lt_AR_FLAGS
  9545. # A C compiler.
  9546. LTCC=$lt_LTCC
  9547. # A language-specific compiler.
  9548. CC=$lt_compiler
  9549. # Is the compiler the GNU C compiler?
  9550. with_gcc=$GCC
  9551. # The linker used to build libraries.
  9552. LD=$lt_LD
  9553. # Whether we need hard or soft links.
  9554. LN_S=$lt_LN_S
  9555. # A BSD-compatible nm program.
  9556. NM=$lt_NM
  9557. # A sed program that does not truncate output.
  9558. SED=$lt_SED
  9559. # A symbol stripping program
  9560. STRIP=$STRIP
  9561. # Used to examine libraries when file_magic_cmd begins "file"
  9562. MAGIC_CMD=$MAGIC_CMD
  9563. # Used on cygwin: DLL creation program.
  9564. DLLTOOL="$DLLTOOL"
  9565. # Used on cygwin: object dumper.
  9566. OBJDUMP="$OBJDUMP"
  9567. # Used on cygwin: assembler.
  9568. AS="$AS"
  9569. # The name of the directory that contains temporary libtool files.
  9570. objdir=$objdir
  9571. # How to create reloadable object files.
  9572. reload_flag=$lt_reload_flag
  9573. reload_cmds=$lt_reload_cmds
  9574. # How to pass a linker flag through the compiler.
  9575. wl=$lt_lt_prog_compiler_wl
  9576. # Object file suffix (normally "o").
  9577. objext="$ac_objext"
  9578. # Old archive suffix (normally "a").
  9579. libext="$libext"
  9580. # Executable file suffix (normally "").
  9581. exeext="$exeext"
  9582. # Additional compiler flags for building library objects.
  9583. pic_flag=$lt_lt_prog_compiler_pic
  9584. pic_mode=$pic_mode
  9585. # What is the maximum length of a command?
  9586. max_cmd_len=$lt_cv_sys_max_cmd_len
  9587. # Does compiler simultaneously support -c and -o options?
  9588. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  9589. # Must we lock files when doing compilation ?
  9590. need_locks=$lt_need_locks
  9591. # Do we need the lib prefix for modules?
  9592. need_lib_prefix=$need_lib_prefix
  9593. # Do we need a version for libraries?
  9594. need_version=$need_version
  9595. # Whether dlopen is supported.
  9596. dlopen_support=$enable_dlopen
  9597. # Whether dlopen of programs is supported.
  9598. dlopen_self=$enable_dlopen_self
  9599. # Whether dlopen of statically linked programs is supported.
  9600. dlopen_self_static=$enable_dlopen_self_static
  9601. # Compiler flag to prevent dynamic linking.
  9602. link_static_flag=$lt_lt_prog_compiler_static
  9603. # Compiler flag to turn off builtin functions.
  9604. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  9605. # Compiler flag to allow reflexive dlopens.
  9606. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  9607. # Compiler flag to generate shared objects directly from archives.
  9608. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  9609. # Compiler flag to generate thread-safe objects.
  9610. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  9611. # Library versioning type.
  9612. version_type=$version_type
  9613. # Format of library name prefix.
  9614. libname_spec=$lt_libname_spec
  9615. # List of archive names. First name is the real one, the rest are links.
  9616. # The last name is the one that the linker finds with -lNAME.
  9617. library_names_spec=$lt_library_names_spec
  9618. # The coded name of the library, if different from the real name.
  9619. soname_spec=$lt_soname_spec
  9620. # Commands used to build and install an old-style archive.
  9621. RANLIB=$lt_RANLIB
  9622. old_archive_cmds=$lt_old_archive_cmds
  9623. old_postinstall_cmds=$lt_old_postinstall_cmds
  9624. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  9625. # Create an old-style archive from a shared archive.
  9626. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  9627. # Create a temporary old-style archive to link instead of a shared archive.
  9628. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  9629. # Commands used to build and install a shared archive.
  9630. archive_cmds=$lt_archive_cmds
  9631. archive_expsym_cmds=$lt_archive_expsym_cmds
  9632. postinstall_cmds=$lt_postinstall_cmds
  9633. postuninstall_cmds=$lt_postuninstall_cmds
  9634. # Commands to strip libraries.
  9635. old_striplib=$lt_old_striplib
  9636. striplib=$lt_striplib
  9637. # Dependencies to place before the objects being linked to create a
  9638. # shared library.
  9639. predep_objects=$lt_predep_objects
  9640. # Dependencies to place after the objects being linked to create a
  9641. # shared library.
  9642. postdep_objects=$lt_postdep_objects
  9643. # Dependencies to place before the objects being linked to create a
  9644. # shared library.
  9645. predeps=$lt_predeps
  9646. # Dependencies to place after the objects being linked to create a
  9647. # shared library.
  9648. postdeps=$lt_postdeps
  9649. # The library search path used internally by the compiler when linking
  9650. # a shared library.
  9651. compiler_lib_search_path=$lt_compiler_lib_search_path
  9652. # Method to check whether dependent libraries are shared objects.
  9653. deplibs_check_method=$lt_deplibs_check_method
  9654. # Command to use when deplibs_check_method == file_magic.
  9655. file_magic_cmd=$lt_file_magic_cmd
  9656. # Flag that allows shared libraries with undefined symbols to be built.
  9657. allow_undefined_flag=$lt_allow_undefined_flag
  9658. # Flag that forces no undefined symbols.
  9659. no_undefined_flag=$lt_no_undefined_flag
  9660. # Commands used to finish a libtool library installation in a directory.
  9661. finish_cmds=$lt_finish_cmds
  9662. # Same as above, but a single script fragment to be evaled but not shown.
  9663. finish_eval=$lt_finish_eval
  9664. # Take the output of nm and produce a listing of raw symbols and C names.
  9665. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  9666. # Transform the output of nm in a proper C declaration
  9667. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  9668. # Transform the output of nm in a C name address pair
  9669. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  9670. # This is the shared library runtime path variable.
  9671. runpath_var=$runpath_var
  9672. # This is the shared library path variable.
  9673. shlibpath_var=$shlibpath_var
  9674. # Is shlibpath searched before the hard-coded library search path?
  9675. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  9676. # How to hardcode a shared library path into an executable.
  9677. hardcode_action=$hardcode_action
  9678. # Whether we should hardcode library paths into libraries.
  9679. hardcode_into_libs=$hardcode_into_libs
  9680. # Flag to hardcode \$libdir into a binary during linking.
  9681. # This must work even if \$libdir does not exist.
  9682. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  9683. # Whether we need a single -rpath flag with a separated argument.
  9684. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  9685. # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
  9686. # resulting binary.
  9687. hardcode_direct=$hardcode_direct
  9688. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  9689. # resulting binary.
  9690. hardcode_minus_L=$hardcode_minus_L
  9691. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  9692. # the resulting binary.
  9693. hardcode_shlibpath_var=$hardcode_shlibpath_var
  9694. # Variables whose values should be saved in libtool wrapper scripts and
  9695. # restored at relink time.
  9696. variables_saved_for_relink="$variables_saved_for_relink"
  9697. # Whether libtool must link a program against all its dependency libraries.
  9698. link_all_deplibs=$link_all_deplibs
  9699. # Compile-time system search path for libraries
  9700. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  9701. # Run-time system search path for libraries
  9702. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  9703. # Fix the shell variable \$srcfile for the compiler.
  9704. fix_srcfile_path="$fix_srcfile_path"
  9705. # Set to yes if exported symbols are required.
  9706. always_export_symbols=$always_export_symbols
  9707. # The commands to list exported symbols.
  9708. export_symbols_cmds=$lt_export_symbols_cmds
  9709. # The commands to extract the exported symbol list from a shared archive.
  9710. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  9711. # Symbols that should not be listed in the preloaded symbols.
  9712. exclude_expsyms=$lt_exclude_expsyms
  9713. # Symbols that must always be exported.
  9714. include_expsyms=$lt_include_expsyms
  9715. # ### END LIBTOOL CONFIG
  9716. __EOF__
  9717. case $host_os in
  9718. aix3*)
  9719. cat <<\EOF >> "$cfgfile"
  9720. # AIX sometimes has problems with the GCC collect2 program. For some
  9721. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9722. # vanish in a puff of smoke.
  9723. if test "X${COLLECT_NAMES+set}" != Xset; then
  9724. COLLECT_NAMES=
  9725. export COLLECT_NAMES
  9726. fi
  9727. EOF
  9728. ;;
  9729. cygwin* | mingw* | pw32* | os2*)
  9730. cat <<'EOF' >> "$cfgfile"
  9731. # This is a source program that is used to create dlls on Windows
  9732. # Don't remove nor modify the starting and closing comments
  9733. # /* ltdll.c starts here */
  9734. # #define WIN32_LEAN_AND_MEAN
  9735. # #include <windows.h>
  9736. # #undef WIN32_LEAN_AND_MEAN
  9737. # #include <stdio.h>
  9738. #
  9739. # #ifndef __CYGWIN__
  9740. # # ifdef __CYGWIN32__
  9741. # # define __CYGWIN__ __CYGWIN32__
  9742. # # endif
  9743. # #endif
  9744. #
  9745. # #ifdef __cplusplus
  9746. # extern "C" {
  9747. # #endif
  9748. # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  9749. # #ifdef __cplusplus
  9750. # }
  9751. # #endif
  9752. #
  9753. # #ifdef __CYGWIN__
  9754. # #include <cygwin/cygwin_dll.h>
  9755. # DECLARE_CYGWIN_DLL( DllMain );
  9756. # #endif
  9757. # HINSTANCE __hDllInstance_base;
  9758. #
  9759. # BOOL APIENTRY
  9760. # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  9761. # {
  9762. # __hDllInstance_base = hInst;
  9763. # return TRUE;
  9764. # }
  9765. # /* ltdll.c ends here */
  9766. # This is a source program that is used to create import libraries
  9767. # on Windows for dlls which lack them. Don't remove nor modify the
  9768. # starting and closing comments
  9769. # /* impgen.c starts here */
  9770. # /* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
  9771. #
  9772. # This file is part of GNU libtool.
  9773. #
  9774. # This program is free software; you can redistribute it and/or modify
  9775. # it under the terms of the GNU General Public License as published by
  9776. # the Free Software Foundation; either version 2 of the License, or
  9777. # (at your option) any later version.
  9778. #
  9779. # This program is distributed in the hope that it will be useful,
  9780. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  9781. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9782. # GNU General Public License for more details.
  9783. #
  9784. # You should have received a copy of the GNU General Public License
  9785. # along with this program; if not, write to the Free Software
  9786. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  9787. # */
  9788. #
  9789. # #include <stdio.h> /* for printf() */
  9790. # #include <unistd.h> /* for open(), lseek(), read() */
  9791. # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
  9792. # #include <string.h> /* for strdup() */
  9793. #
  9794. # /* O_BINARY isn't required (or even defined sometimes) under Unix */
  9795. # #ifndef O_BINARY
  9796. # #define O_BINARY 0
  9797. # #endif
  9798. #
  9799. # static unsigned int
  9800. # pe_get16 (fd, offset)
  9801. # int fd;
  9802. # int offset;
  9803. # {
  9804. # unsigned char b[2];
  9805. # lseek (fd, offset, SEEK_SET);
  9806. # read (fd, b, 2);
  9807. # return b[0] + (b[1]<<8);
  9808. # }
  9809. #
  9810. # static unsigned int
  9811. # pe_get32 (fd, offset)
  9812. # int fd;
  9813. # int offset;
  9814. # {
  9815. # unsigned char b[4];
  9816. # lseek (fd, offset, SEEK_SET);
  9817. # read (fd, b, 4);
  9818. # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  9819. # }
  9820. #
  9821. # static unsigned int
  9822. # pe_as32 (ptr)
  9823. # void *ptr;
  9824. # {
  9825. # unsigned char *b = ptr;
  9826. # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  9827. # }
  9828. #
  9829. # int
  9830. # main (argc, argv)
  9831. # int argc;
  9832. # char *argv[];
  9833. # {
  9834. # int dll;
  9835. # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
  9836. # unsigned long export_rva, export_size, nsections, secptr, expptr;
  9837. # unsigned long name_rvas, nexp;
  9838. # unsigned char *expdata, *erva;
  9839. # char *filename, *dll_name;
  9840. #
  9841. # filename = argv[1];
  9842. #
  9843. # dll = open(filename, O_RDONLY|O_BINARY);
  9844. # if (dll < 1)
  9845. # return 1;
  9846. #
  9847. # dll_name = filename;
  9848. #
  9849. # for (i=0; filename[i]; i++)
  9850. # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
  9851. # dll_name = filename + i +1;
  9852. #
  9853. # pe_header_offset = pe_get32 (dll, 0x3c);
  9854. # opthdr_ofs = pe_header_offset + 4 + 20;
  9855. # num_entries = pe_get32 (dll, opthdr_ofs + 92);
  9856. #
  9857. # if (num_entries < 1) /* no exports */
  9858. # return 1;
  9859. #
  9860. # export_rva = pe_get32 (dll, opthdr_ofs + 96);
  9861. # export_size = pe_get32 (dll, opthdr_ofs + 100);
  9862. # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
  9863. # secptr = (pe_header_offset + 4 + 20 +
  9864. # pe_get16 (dll, pe_header_offset + 4 + 16));
  9865. #
  9866. # expptr = 0;
  9867. # for (i = 0; i < nsections; i++)
  9868. # {
  9869. # char sname[8];
  9870. # unsigned long secptr1 = secptr + 40 * i;
  9871. # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
  9872. # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
  9873. # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
  9874. # lseek(dll, secptr1, SEEK_SET);
  9875. # read(dll, sname, 8);
  9876. # if (vaddr <= export_rva && vaddr+vsize > export_rva)
  9877. # {
  9878. # expptr = fptr + (export_rva - vaddr);
  9879. # if (export_rva + export_size > vaddr + vsize)
  9880. # export_size = vsize - (export_rva - vaddr);
  9881. # break;
  9882. # }
  9883. # }
  9884. #
  9885. # expdata = (unsigned char*)malloc(export_size);
  9886. # lseek (dll, expptr, SEEK_SET);
  9887. # read (dll, expdata, export_size);
  9888. # erva = expdata - export_rva;
  9889. #
  9890. # nexp = pe_as32 (expdata+24);
  9891. # name_rvas = pe_as32 (expdata+32);
  9892. #
  9893. # printf ("EXPORTS\n");
  9894. # for (i = 0; i<nexp; i++)
  9895. # {
  9896. # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
  9897. # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
  9898. # }
  9899. #
  9900. # return 0;
  9901. # }
  9902. # /* impgen.c ends here */
  9903. EOF
  9904. ;;
  9905. esac
  9906. # We use sed instead of cat because bash on DJGPP gets confused if
  9907. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  9908. # text mode, it properly converts lines to CR/LF. This bash problem
  9909. # is reportedly fixed, but why not run on old versions too?
  9910. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  9911. mv -f "$cfgfile" "$ofile" || \
  9912. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  9913. chmod +x "$ofile"
  9914. else
  9915. # If there is no Makefile yet, we rely on a make rule to execute
  9916. # `config.status --recheck' to rerun these tests and create the
  9917. # libtool script then.
  9918. test -f Makefile && make "$ltmain"
  9919. fi
  9920. ac_ext=c
  9921. ac_cpp='$CPP $CPPFLAGS'
  9922. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9923. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9924. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9925. CC="$lt_save_CC"
  9926. # Check whether --with-tags or --without-tags was given.
  9927. if test "${with_tags+set}" = set; then
  9928. withval="$with_tags"
  9929. tagnames="$withval"
  9930. else
  9931. tagnames="CXX,GCJ"
  9932. case $host_os in
  9933. mingw*|cygwin*) tagnames="$tagnames,RC" ;;
  9934. esac
  9935. fi;
  9936. if test -f "$ltmain" && test -n "$tagnames"; then
  9937. if test ! -f "${ofile}"; then
  9938. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  9939. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  9940. fi
  9941. if test -z "$LTCC"; then
  9942. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  9943. if test -z "$LTCC"; then
  9944. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  9945. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  9946. else
  9947. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  9948. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  9949. fi
  9950. fi
  9951. # Extract list of available tagged configurations in $ofile.
  9952. # Note that this assumes the entire list is on one line.
  9953. available_tags=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  9954. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9955. for tagname in $tagnames; do
  9956. IFS="$lt_save_ifs"
  9957. # Check whether tagname contains only valid characters
  9958. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  9959. "") ;;
  9960. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  9961. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  9962. { (exit 1); exit 1; }; }
  9963. ;;
  9964. esac
  9965. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  9966. then
  9967. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  9968. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  9969. { (exit 1); exit 1; }; }
  9970. fi
  9971. # Update the list of available tags.
  9972. if test -n "$tagname"; then
  9973. echo appending configuration tag \"$tagname\" to $ofile
  9974. case $tagname in
  9975. CXX)
  9976. ac_ext=cc
  9977. ac_cpp='$CXXCPP $CPPFLAGS'
  9978. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9979. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9980. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9981. archive_cmds_need_lc_CXX=no
  9982. allow_undefined_flag_CXX=
  9983. always_export_symbols_CXX=no
  9984. archive_expsym_cmds_CXX=
  9985. export_dynamic_flag_spec_CXX=
  9986. hardcode_direct_CXX=no
  9987. hardcode_libdir_flag_spec_CXX=
  9988. hardcode_libdir_separator_CXX=
  9989. hardcode_minus_L_CXX=no
  9990. link_all_deplibs_CXX=unknown
  9991. old_archive_cmds_CXX=$old_archive_cmds
  9992. no_undefined_flag_CXX=
  9993. whole_archive_flag_spec_CXX=
  9994. # Dependencies to place before and after the object being linked:
  9995. predep_objects_CXX=
  9996. postdep_objects_CXX=
  9997. predeps_CXX=
  9998. postdeps_CXX=
  9999. compiler_lib_search_path_CXX=
  10000. # Source file extension for C test sources.
  10001. ac_ext=cc
  10002. # Object file extension for compiled C test sources.
  10003. objext=o
  10004. objext_CXX=$objext
  10005. # Code to be used in simple compile tests
  10006. lt_simple_compile_test_code="int some_variable = 0;"
  10007. # Code to be used in simple link tests
  10008. lt_simple_link_test_code='int main(int char *) { return(0); }'
  10009. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10010. # If no C compiler was specified, use CC.
  10011. LTCC=${LTCC-"$CC"}
  10012. # Allow CC to be a program name with arguments.
  10013. set dummy $CC
  10014. compiler="$2"
  10015. # Allow CC to be a program name with arguments.
  10016. lt_save_CC="$CC"
  10017. CC=${CXX-"c++"}
  10018. set dummy $CC
  10019. compiler="$2"
  10020. compiler_CXX=$CC
  10021. cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  10022. # We don't want -fno-exception wen compiling C++ code, so set the
  10023. # no_builtin_flag separately
  10024. if test "$GXX" = yes; then
  10025. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10026. else
  10027. lt_prog_compiler_no_builtin_flag_CXX=
  10028. fi
  10029. if test "$GXX" = yes; then
  10030. # Set up default GNU C++ configuration
  10031. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10032. # archiving commands below assume that GNU ld is being used.
  10033. if eval "`$CC -print-prog-name=ld` --version 2>&1" | \
  10034. egrep 'GNU ld' > /dev/null; then
  10035. with_gnu_ld=yes
  10036. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10037. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10038. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10039. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10040. # If archive_cmds runs LD, not CC, wlarc should be empty
  10041. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10042. # investigate it a little bit more. (MM)
  10043. wlarc='${wl}'
  10044. # ancient GNU ld didn't support --whole-archive et. al.
  10045. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  10046. egrep 'no-whole-archive' > /dev/null; then
  10047. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10048. else
  10049. whole_archive_flag_spec_CXX=
  10050. fi
  10051. else
  10052. with_gnu_ld=no
  10053. wlarc=
  10054. # A generic and very simple default shared library creation
  10055. # command for GNU C++ for the case where it uses the native
  10056. # linker, instead of GNU ld. If possible, this setting should
  10057. # overridden to take advantage of the native linker features on
  10058. # the platform it is being used on.
  10059. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10060. fi
  10061. # Commands to make compiler produce verbose output that lists
  10062. # what "hidden" libraries, object files and flags are used when
  10063. # linking a shared library.
  10064. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
  10065. else
  10066. GXX=no
  10067. with_gnu_ld=no
  10068. wlarc=
  10069. fi
  10070. # PORTME: fill in a description of your system's C++ link characteristics
  10071. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10072. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  10073. ld_shlibs_CXX=yes
  10074. case $host_os in
  10075. aix3*)
  10076. # FIXME: insert proper C++ library support
  10077. ld_shlibs_CXX=no
  10078. ;;
  10079. aix4* | aix5*)
  10080. if test "$host_cpu" = ia64; then
  10081. # On IA64, the linker does run time linking by default, so we don't
  10082. # have to do anything special.
  10083. aix_use_runtimelinking=no
  10084. exp_sym_flag='-Bexport'
  10085. no_entry_flag=""
  10086. else
  10087. # KDE requires run time linking. Make it the default.
  10088. aix_use_runtimelinking=yes
  10089. exp_sym_flag='-bexport'
  10090. no_entry_flag='-bnoentry'
  10091. fi
  10092. # When large executables or shared objects are built, AIX ld can
  10093. # have problems creating the table of contents. If linking a library
  10094. # or program results in "error TOC overflow" add -mminimal-toc to
  10095. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10096. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10097. archive_cmds_CXX=''
  10098. hardcode_direct_CXX=yes
  10099. hardcode_libdir_separator_CXX=':'
  10100. link_all_deplibs_CXX=yes
  10101. if test "$GXX" = yes; then
  10102. case $host_os in aix4.012|aix4.012.*)
  10103. # We only want to do this on AIX 4.2 and lower, the check
  10104. # below for broken collect2 doesn't work under 4.3+
  10105. collect2name=`${CC} -print-prog-name=collect2`
  10106. if test -f "$collect2name" && \
  10107. strings "$collect2name" | grep resolve_lib_name >/dev/null
  10108. then
  10109. # We have reworked collect2
  10110. hardcode_direct_CXX=yes
  10111. else
  10112. # We have old collect2
  10113. hardcode_direct_CXX=unsupported
  10114. # It fails to find uninstalled libraries when the uninstalled
  10115. # path is not listed in the libpath. Setting hardcode_minus_L
  10116. # to unsupported forces relinking
  10117. hardcode_minus_L_CXX=yes
  10118. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10119. hardcode_libdir_separator_CXX=
  10120. fi
  10121. esac
  10122. shared_flag='-shared'
  10123. else
  10124. # not using gcc
  10125. if test "$host_cpu" = ia64; then
  10126. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10127. # chokes on -Wl,-G. The following line is correct:
  10128. shared_flag='-G'
  10129. else
  10130. if test "$aix_use_runtimelinking" = yes; then
  10131. shared_flag='-qmkshrobj ${wl}-G'
  10132. else
  10133. shared_flag='-qmkshrobj'
  10134. fi
  10135. fi
  10136. fi
  10137. # Let the compiler handle the export list.
  10138. always_export_symbols_CXX=no
  10139. if test "$aix_use_runtimelinking" = yes; then
  10140. # Warning - without using the other runtime loading flags (-brtl),
  10141. # -berok will link without error, but may produce a broken library.
  10142. allow_undefined_flag_CXX='-berok'
  10143. # Determine the default libpath from the value encoded in an empty executable.
  10144. cat >conftest.$ac_ext <<_ACEOF
  10145. /* confdefs.h. */
  10146. _ACEOF
  10147. cat confdefs.h >>conftest.$ac_ext
  10148. cat >>conftest.$ac_ext <<_ACEOF
  10149. /* end confdefs.h. */
  10150. int
  10151. main ()
  10152. {
  10153. ;
  10154. return 0;
  10155. }
  10156. _ACEOF
  10157. rm -f conftest.$ac_objext conftest$ac_exeext
  10158. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10159. (eval $ac_link) 2>conftest.er1
  10160. ac_status=$?
  10161. grep -v '^ *+' conftest.er1 >conftest.err
  10162. rm -f conftest.er1
  10163. cat conftest.err >&5
  10164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10165. (exit $ac_status); } &&
  10166. { ac_try='test -z "$ac_cxx_werror_flag"
  10167. || test ! -s conftest.err'
  10168. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10169. (eval $ac_try) 2>&5
  10170. ac_status=$?
  10171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10172. (exit $ac_status); }; } &&
  10173. { ac_try='test -s conftest$ac_exeext'
  10174. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10175. (eval $ac_try) 2>&5
  10176. ac_status=$?
  10177. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10178. (exit $ac_status); }; }; then
  10179. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  10180. }'`
  10181. # Check for a 64-bit object if we didn't find anything.
  10182. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  10183. }'`; fi
  10184. else
  10185. echo "$as_me: failed program was:" >&5
  10186. sed 's/^/| /' conftest.$ac_ext >&5
  10187. fi
  10188. rm -f conftest.err conftest.$ac_objext \
  10189. conftest$ac_exeext conftest.$ac_ext
  10190. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10191. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10192. archive_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
  10193. archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10194. else
  10195. if test "$host_cpu" = ia64; then
  10196. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10197. allow_undefined_flag_CXX="-z nodefs"
  10198. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  10199. else
  10200. # Determine the default libpath from the value encoded in an empty executable.
  10201. cat >conftest.$ac_ext <<_ACEOF
  10202. /* confdefs.h. */
  10203. _ACEOF
  10204. cat confdefs.h >>conftest.$ac_ext
  10205. cat >>conftest.$ac_ext <<_ACEOF
  10206. /* end confdefs.h. */
  10207. int
  10208. main ()
  10209. {
  10210. ;
  10211. return 0;
  10212. }
  10213. _ACEOF
  10214. rm -f conftest.$ac_objext conftest$ac_exeext
  10215. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10216. (eval $ac_link) 2>conftest.er1
  10217. ac_status=$?
  10218. grep -v '^ *+' conftest.er1 >conftest.err
  10219. rm -f conftest.er1
  10220. cat conftest.err >&5
  10221. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10222. (exit $ac_status); } &&
  10223. { ac_try='test -z "$ac_cxx_werror_flag"
  10224. || test ! -s conftest.err'
  10225. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10226. (eval $ac_try) 2>&5
  10227. ac_status=$?
  10228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10229. (exit $ac_status); }; } &&
  10230. { ac_try='test -s conftest$ac_exeext'
  10231. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10232. (eval $ac_try) 2>&5
  10233. ac_status=$?
  10234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10235. (exit $ac_status); }; }; then
  10236. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  10237. }'`
  10238. # Check for a 64-bit object if we didn't find anything.
  10239. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  10240. }'`; fi
  10241. else
  10242. echo "$as_me: failed program was:" >&5
  10243. sed 's/^/| /' conftest.$ac_ext >&5
  10244. fi
  10245. rm -f conftest.err conftest.$ac_objext \
  10246. conftest$ac_exeext conftest.$ac_ext
  10247. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10248. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10249. # Warning - without using the other run time loading flags,
  10250. # -berok will link without error, but may produce a broken library.
  10251. no_undefined_flag_CXX=' ${wl}-bernotok'
  10252. allow_undefined_flag_CXX=' ${wl}-berok'
  10253. # -bexpall does not export symbols beginning with underscore (_)
  10254. always_export_symbols_CXX=yes
  10255. # Exported symbols can be pulled into shared objects from archives
  10256. whole_archive_flag_spec_CXX=' '
  10257. archive_cmds_need_lc_CXX=yes
  10258. # This is similar to how AIX traditionally builds it's shared libraries.
  10259. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  10260. fi
  10261. fi
  10262. ;;
  10263. chorus*)
  10264. case $cc_basename in
  10265. *)
  10266. # FIXME: insert proper C++ library support
  10267. ld_shlibs_CXX=no
  10268. ;;
  10269. esac
  10270. ;;
  10271. dgux*)
  10272. case $cc_basename in
  10273. ec++)
  10274. # FIXME: insert proper C++ library support
  10275. ld_shlibs_CXX=no
  10276. ;;
  10277. ghcx)
  10278. # Green Hills C++ Compiler
  10279. # FIXME: insert proper C++ library support
  10280. ld_shlibs_CXX=no
  10281. ;;
  10282. *)
  10283. # FIXME: insert proper C++ library support
  10284. ld_shlibs_CXX=no
  10285. ;;
  10286. esac
  10287. ;;
  10288. freebsd12*)
  10289. # C++ shared libraries reported to be fairly broken before switch to ELF
  10290. ld_shlibs_CXX=no
  10291. ;;
  10292. freebsd-elf*)
  10293. archive_cmds_need_lc_CXX=no
  10294. ;;
  10295. freebsd*)
  10296. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10297. # conventions
  10298. ld_shlibs_CXX=yes
  10299. ;;
  10300. gnu*)
  10301. ;;
  10302. hpux*)
  10303. if test $with_gnu_ld = no; then
  10304. if test "$host_cpu" = ia64; then
  10305. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10306. else
  10307. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10308. hardcode_libdir_separator_CXX=:
  10309. export_dynamic_flag_spec_CXX='${wl}-E'
  10310. fi
  10311. fi
  10312. if test "$host_cpu" = ia64; then
  10313. hardcode_direct_CXX=no
  10314. hardcode_shlibpath_var_CXX=no
  10315. else
  10316. hardcode_direct_CXX=yes
  10317. fi
  10318. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10319. # but as the default
  10320. # location of the library.
  10321. case $cc_basename in
  10322. CC)
  10323. # FIXME: insert proper C++ library support
  10324. ld_shlibs_CXX=no
  10325. ;;
  10326. aCC)
  10327. case $host_os in
  10328. hpux9*)
  10329. 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'
  10330. ;;
  10331. *)
  10332. if test "$host_cpu" = ia64; then
  10333. archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  10334. else
  10335. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10336. fi
  10337. ;;
  10338. esac
  10339. # Commands to make compiler produce verbose output that lists
  10340. # what "hidden" libraries, object files and flags are used when
  10341. # linking a shared library.
  10342. #
  10343. # There doesn't appear to be a way to prevent this compiler from
  10344. # explicitly linking system object files so we need to strip them
  10345. # from the output so that they don't get included in the library
  10346. # dependencies.
  10347. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10348. ;;
  10349. *)
  10350. if test "$GXX" = yes; then
  10351. if test $with_gnu_ld = no; then
  10352. case $host_os in
  10353. hpux9*)
  10354. 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'
  10355. ;;
  10356. *)
  10357. if test "$host_cpu" = ia64; then
  10358. archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  10359. else
  10360. 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'
  10361. fi
  10362. ;;
  10363. esac
  10364. fi
  10365. else
  10366. # FIXME: insert proper C++ library support
  10367. ld_shlibs_CXX=no
  10368. fi
  10369. ;;
  10370. esac
  10371. ;;
  10372. irix5* | irix6*)
  10373. case $cc_basename in
  10374. CC)
  10375. # SGI C++
  10376. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  10377. # Archives containing C++ object files must be created using
  10378. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10379. # necessary to make sure instantiated templates are included
  10380. # in the archive.
  10381. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10382. ;;
  10383. *)
  10384. if test "$GXX" = yes; then
  10385. if test "$with_gnu_ld" = no; then
  10386. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  10387. else
  10388. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib'
  10389. fi
  10390. fi
  10391. link_all_deplibs_CXX=yes
  10392. ;;
  10393. esac
  10394. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10395. hardcode_libdir_separator_CXX=:
  10396. ;;
  10397. linux*)
  10398. case $cc_basename in
  10399. KCC)
  10400. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10401. # KCC will only create a shared library if the output file
  10402. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10403. # to its proper name (with version) after linking.
  10404. archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10405. archive_expsym_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  10406. # Commands to make compiler produce verbose output that lists
  10407. # what "hidden" libraries, object files and flags are used when
  10408. # linking a shared library.
  10409. #
  10410. # There doesn't appear to be a way to prevent this compiler from
  10411. # explicitly linking system object files so we need to strip them
  10412. # from the output so that they don't get included in the library
  10413. # dependencies.
  10414. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest.so 2>&1 | egrep "ld"`; rm -f libconftest.so; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10415. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  10416. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10417. # Archives containing C++ object files must be created using
  10418. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10419. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10420. ;;
  10421. icpc)
  10422. # Intel C++
  10423. with_gnu_ld=yes
  10424. archive_cmds_need_lc_CXX=no
  10425. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10426. 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'
  10427. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10428. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10429. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10430. ;;
  10431. cxx)
  10432. # Compaq C++
  10433. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10434. 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'
  10435. runpath_var=LD_RUN_PATH
  10436. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10437. hardcode_libdir_separator_CXX=:
  10438. # Commands to make compiler produce verbose output that lists
  10439. # what "hidden" libraries, object files and flags are used when
  10440. # linking a shared library.
  10441. #
  10442. # There doesn't appear to be a way to prevent this compiler from
  10443. # explicitly linking system object files so we need to strip them
  10444. # from the output so that they don't get included in the library
  10445. # dependencies.
  10446. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
  10447. ;;
  10448. esac
  10449. ;;
  10450. lynxos*)
  10451. # FIXME: insert proper C++ library support
  10452. ld_shlibs_CXX=no
  10453. ;;
  10454. m88k*)
  10455. # FIXME: insert proper C++ library support
  10456. ld_shlibs_CXX=no
  10457. ;;
  10458. mvs*)
  10459. case $cc_basename in
  10460. cxx)
  10461. # FIXME: insert proper C++ library support
  10462. ld_shlibs_CXX=no
  10463. ;;
  10464. *)
  10465. # FIXME: insert proper C++ library support
  10466. ld_shlibs_CXX=no
  10467. ;;
  10468. esac
  10469. ;;
  10470. netbsd*)
  10471. # NetBSD uses g++ - do we need to do anything?
  10472. ;;
  10473. osf3*)
  10474. case $cc_basename in
  10475. KCC)
  10476. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10477. # KCC will only create a shared library if the output file
  10478. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10479. # to its proper name (with version) after linking.
  10480. archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10481. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10482. hardcode_libdir_separator_CXX=:
  10483. # Archives containing C++ object files must be created using
  10484. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10485. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10486. ;;
  10487. RCC)
  10488. # Rational C++ 2.4.1
  10489. # FIXME: insert proper C++ library support
  10490. ld_shlibs_CXX=no
  10491. ;;
  10492. cxx)
  10493. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10494. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  10495. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10496. hardcode_libdir_separator_CXX=:
  10497. # Commands to make compiler produce verbose output that lists
  10498. # what "hidden" libraries, object files and flags are used when
  10499. # linking a shared library.
  10500. #
  10501. # There doesn't appear to be a way to prevent this compiler from
  10502. # explicitly linking system object files so we need to strip them
  10503. # from the output so that they don't get included in the library
  10504. # dependencies.
  10505. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
  10506. ;;
  10507. *)
  10508. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10509. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10510. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  10511. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10512. hardcode_libdir_separator_CXX=:
  10513. # Commands to make compiler produce verbose output that lists
  10514. # what "hidden" libraries, object files and flags are used when
  10515. # linking a shared library.
  10516. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
  10517. else
  10518. # FIXME: insert proper C++ library support
  10519. ld_shlibs_CXX=no
  10520. fi
  10521. ;;
  10522. esac
  10523. ;;
  10524. osf4* | osf5*)
  10525. case $cc_basename in
  10526. KCC)
  10527. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10528. # KCC will only create a shared library if the output file
  10529. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10530. # to its proper name (with version) after linking.
  10531. archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10532. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10533. hardcode_libdir_separator_CXX=:
  10534. # Archives containing C++ object files must be created using
  10535. # the KAI C++ compiler.
  10536. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  10537. ;;
  10538. RCC)
  10539. # Rational C++ 2.4.1
  10540. # FIXME: insert proper C++ library support
  10541. ld_shlibs_CXX=no
  10542. ;;
  10543. cxx)
  10544. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10545. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  10546. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done~
  10547. echo "-hidden">> $lib.exp~
  10548. $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 $objdir/so_locations -o $lib~
  10549. $rm $lib.exp'
  10550. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10551. hardcode_libdir_separator_CXX=:
  10552. # Commands to make compiler produce verbose output that lists
  10553. # what "hidden" libraries, object files and flags are used when
  10554. # linking a shared library.
  10555. #
  10556. # There doesn't appear to be a way to prevent this compiler from
  10557. # explicitly linking system object files so we need to strip them
  10558. # from the output so that they don't get included in the library
  10559. # dependencies.
  10560. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
  10561. ;;
  10562. *)
  10563. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10564. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10565. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  10566. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10567. hardcode_libdir_separator_CXX=:
  10568. # Commands to make compiler produce verbose output that lists
  10569. # what "hidden" libraries, object files and flags are used when
  10570. # linking a shared library.
  10571. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
  10572. else
  10573. # FIXME: insert proper C++ library support
  10574. ld_shlibs_CXX=no
  10575. fi
  10576. ;;
  10577. esac
  10578. ;;
  10579. psos*)
  10580. # FIXME: insert proper C++ library support
  10581. ld_shlibs_CXX=no
  10582. ;;
  10583. sco*)
  10584. archive_cmds_need_lc_CXX=no
  10585. case $cc_basename in
  10586. CC)
  10587. # FIXME: insert proper C++ library support
  10588. ld_shlibs_CXX=no
  10589. ;;
  10590. *)
  10591. # FIXME: insert proper C++ library support
  10592. ld_shlibs_CXX=no
  10593. ;;
  10594. esac
  10595. ;;
  10596. sunos4*)
  10597. case $cc_basename in
  10598. CC)
  10599. # Sun C++ 4.x
  10600. # FIXME: insert proper C++ library support
  10601. ld_shlibs_CXX=no
  10602. ;;
  10603. lcc)
  10604. # Lucid
  10605. # FIXME: insert proper C++ library support
  10606. ld_shlibs_CXX=no
  10607. ;;
  10608. *)
  10609. # FIXME: insert proper C++ library support
  10610. ld_shlibs_CXX=no
  10611. ;;
  10612. esac
  10613. ;;
  10614. solaris*)
  10615. case $cc_basename in
  10616. CC)
  10617. # Sun C++ 4.2, 5.x and Centerline C++
  10618. no_undefined_flag_CXX=' -zdefs'
  10619. archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10620. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10621. $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10622. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10623. hardcode_shlibpath_var_CXX=no
  10624. case $host_os in
  10625. solaris2.0-5 | solaris2.0-5.*) ;;
  10626. *)
  10627. # The C++ compiler is used as linker so we must use $wl
  10628. # flag to pass the commands to the underlying system
  10629. # linker.
  10630. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10631. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10632. ;;
  10633. esac
  10634. link_all_deplibs_CXX=yes
  10635. # Commands to make compiler produce verbose output that lists
  10636. # what "hidden" libraries, object files and flags are used when
  10637. # linking a shared library.
  10638. #
  10639. # There doesn't appear to be a way to prevent this compiler from
  10640. # explicitly linking system object files so we need to strip them
  10641. # from the output so that they don't get included in the library
  10642. # dependencies.
  10643. output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep "\-R|\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10644. # Archives containing C++ object files must be created using
  10645. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10646. # necessary to make sure instantiated templates are included
  10647. # in the archive.
  10648. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10649. ;;
  10650. gcx)
  10651. # Green Hills C++ Compiler
  10652. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10653. # The C++ compiler must be used to create the archive.
  10654. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10655. ;;
  10656. *)
  10657. # GNU C++ compiler with Solaris linker
  10658. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10659. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10660. if $CC --version | egrep -v '^2\.7' > /dev/null; then
  10661. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
  10662. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10663. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
  10664. # Commands to make compiler produce verbose output that lists
  10665. # what "hidden" libraries, object files and flags are used when
  10666. # linking a shared library.
  10667. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
  10668. else
  10669. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10670. # platform.
  10671. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
  10672. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10673. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
  10674. # Commands to make compiler produce verbose output that lists
  10675. # what "hidden" libraries, object files and flags are used when
  10676. # linking a shared library.
  10677. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
  10678. fi
  10679. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10680. fi
  10681. ;;
  10682. esac
  10683. ;;
  10684. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  10685. archive_cmds_need_lc_CXX=no
  10686. ;;
  10687. tandem*)
  10688. case $cc_basename in
  10689. NCC)
  10690. # NonStop-UX NCC 3.20
  10691. # FIXME: insert proper C++ library support
  10692. ld_shlibs_CXX=no
  10693. ;;
  10694. *)
  10695. # FIXME: insert proper C++ library support
  10696. ld_shlibs_CXX=no
  10697. ;;
  10698. esac
  10699. ;;
  10700. vxworks*)
  10701. # FIXME: insert proper C++ library support
  10702. ld_shlibs_CXX=no
  10703. ;;
  10704. *)
  10705. # FIXME: insert proper C++ library support
  10706. ld_shlibs_CXX=no
  10707. ;;
  10708. esac
  10709. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10710. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  10711. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10712. # Figure out "hidden" C++ library dependencies from verbose
  10713. # compiler output whening linking a shared library.
  10714. cat > conftest.$ac_ext <<EOF
  10715. class Foo
  10716. {
  10717. public:
  10718. Foo (void) { a = 0; }
  10719. private:
  10720. int a;
  10721. };
  10722. EOF
  10723. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10724. (eval $ac_compile) 2>&5
  10725. ac_status=$?
  10726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10727. (exit $ac_status); }; then
  10728. # Parse the compiler output and extract the necessary
  10729. # objects, libraries and library flags.
  10730. # Sentinel used to keep track of whether or not we are before
  10731. # the conftest object file.
  10732. pre_test_object_deps_done=no
  10733. # The `*' in the case matches for architectures that use `case' in
  10734. # $output_verbose_cmd can trigger glob expansion during the loop
  10735. # eval without this substitution.
  10736. output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  10737. for p in `eval $output_verbose_link_cmd`; do
  10738. case $p in
  10739. -L* | -R* | -l*)
  10740. # Some compilers place space between "-{L,R}" and the path.
  10741. # Remove the space.
  10742. if test $p = "-L" \
  10743. || test $p = "-R"; then
  10744. prev=$p
  10745. continue
  10746. else
  10747. prev=
  10748. fi
  10749. if test "$pre_test_object_deps_done" = no; then
  10750. case $p in
  10751. -L* | -R*)
  10752. # Internal compiler library paths should come after those
  10753. # provided the user. The postdeps already come after the
  10754. # user supplied libs so there is no need to process them.
  10755. if test -z "$compiler_lib_search_path_CXX"; then
  10756. compiler_lib_search_path_CXX="${prev}${p}"
  10757. else
  10758. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10759. fi
  10760. ;;
  10761. # The "-l" case would never come before the object being
  10762. # linked, so don't bother handling this case.
  10763. esac
  10764. else
  10765. if test -z "$postdeps_CXX"; then
  10766. postdeps_CXX="${prev}${p}"
  10767. else
  10768. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10769. fi
  10770. fi
  10771. ;;
  10772. *.$objext|*.$libext)
  10773. # This assumes that the test object file only shows up
  10774. # once in the compiler output.
  10775. if test "$p" = "conftest.$objext"; then
  10776. pre_test_object_deps_done=yes
  10777. continue
  10778. fi
  10779. if test "$pre_test_object_deps_done" = no; then
  10780. if test -z "$predep_objects_CXX"; then
  10781. predep_objects_CXX="$p"
  10782. else
  10783. predep_objects_CXX="$predep_objects_CXX $p"
  10784. fi
  10785. else
  10786. if test -z "$postdep_objects_CXX"; then
  10787. postdep_objects_CXX="$p"
  10788. else
  10789. postdep_objects_CXX="$postdep_objects_CXX $p"
  10790. fi
  10791. fi
  10792. ;;
  10793. *) ;; # Ignore the rest.
  10794. esac
  10795. done
  10796. # Clean up.
  10797. rm -f a.out
  10798. else
  10799. echo "libtool.m4: error: problem compiling C++ test program"
  10800. fi
  10801. $rm -f confest.$objext
  10802. case " $postdeps_CXX " in
  10803. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  10804. *) archive_cmds_need_lc_CXX=yes ;;
  10805. esac
  10806. GCC_CXX="$GXX"
  10807. LD_CXX="$LD"
  10808. ## CAVEAT EMPTOR:
  10809. ## There is no encapsulation within the following macros, do not change
  10810. ## the running order or otherwise move them around unless you know exactly
  10811. ## what you are doing...
  10812. lt_prog_compiler_wl_CXX=
  10813. lt_prog_compiler_pic_CXX=
  10814. lt_prog_compiler_static_CXX=
  10815. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  10816. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  10817. # C++ specific cases for pic, static, wl, etc.
  10818. if test "$GXX" = yes; then
  10819. lt_prog_compiler_wl_CXX='-Wl,'
  10820. lt_prog_compiler_static_CXX='-static'
  10821. case $host_os in
  10822. aix*)
  10823. # All AIX code is PIC.
  10824. if test "$host_cpu" = ia64; then
  10825. # AIX 5 now supports IA64 processor
  10826. lt_prog_compiler_static_CXX='-Bstatic'
  10827. fi
  10828. ;;
  10829. amigaos*)
  10830. # FIXME: we need at least 68020 code to build shared libraries, but
  10831. # adding the `-m68020' flag to GCC prevents building anything better,
  10832. # like `-m68040'.
  10833. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  10834. ;;
  10835. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10836. # PIC is the default for these OSes.
  10837. ;;
  10838. cygwin* | mingw* | os2*)
  10839. # This hack is so that the source file can tell whether it is being
  10840. # built for inclusion in a dll (and should export symbols for example).
  10841. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  10842. ;;
  10843. darwin* | rhapsody*)
  10844. # PIC is the default on this platform
  10845. # Common symbols not allowed in MH_DYLIB files
  10846. lt_prog_compiler_pic_CXX='-fno-common'
  10847. ;;
  10848. *djgpp*)
  10849. # DJGPP does not support shared libraries at all
  10850. lt_prog_compiler_pic_CXX=
  10851. ;;
  10852. sysv4*MP*)
  10853. if test -d /usr/nec; then
  10854. lt_prog_compiler_pic_CXX=-Kconform_pic
  10855. fi
  10856. ;;
  10857. hpux*)
  10858. # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
  10859. if test "$host_cpu" != ia64; then
  10860. lt_prog_compiler_pic_CXX='-fPIC'
  10861. fi
  10862. ;;
  10863. *)
  10864. lt_prog_compiler_pic_CXX='-fPIC'
  10865. ;;
  10866. esac
  10867. else
  10868. case $host_os in
  10869. aix4* | aix5*)
  10870. # All AIX code is PIC.
  10871. if test "$host_cpu" = ia64; then
  10872. # AIX 5 now supports IA64 processor
  10873. lt_prog_compiler_static_CXX='-Bstatic'
  10874. else
  10875. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  10876. fi
  10877. ;;
  10878. chorus*)
  10879. case $cc_basename in
  10880. cxch68)
  10881. # Green Hills C++ Compiler
  10882. # _LT_AC_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"
  10883. ;;
  10884. esac
  10885. ;;
  10886. dgux*)
  10887. case $cc_basename in
  10888. ec++)
  10889. lt_prog_compiler_pic_CXX='-KPIC'
  10890. ;;
  10891. ghcx)
  10892. # Green Hills C++ Compiler
  10893. lt_prog_compiler_pic_CXX='-pic'
  10894. ;;
  10895. *)
  10896. ;;
  10897. esac
  10898. ;;
  10899. freebsd*)
  10900. # FreeBSD uses GNU C++
  10901. ;;
  10902. hpux9* | hpux10* | hpux11*)
  10903. case $cc_basename in
  10904. CC)
  10905. lt_prog_compiler_wl_CXX='-Wl,'
  10906. lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  10907. if test "$host_cpu" != ia64; then
  10908. lt_prog_compiler_pic_CXX='+Z'
  10909. fi
  10910. ;;
  10911. aCC)
  10912. lt_prog_compiler_wl_CXX='-Wl,'
  10913. lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  10914. if test "$host_cpu" != ia64; then
  10915. lt_prog_compiler_pic_CXX='+Z'
  10916. fi
  10917. ;;
  10918. *)
  10919. ;;
  10920. esac
  10921. ;;
  10922. irix5* | irix6* | nonstopux*)
  10923. case $cc_basename in
  10924. CC)
  10925. lt_prog_compiler_wl_CXX='-Wl,'
  10926. lt_prog_compiler_static_CXX='-non_shared'
  10927. # CC pic flag -KPIC is the default.
  10928. ;;
  10929. *)
  10930. ;;
  10931. esac
  10932. ;;
  10933. linux*)
  10934. case $cc_basename in
  10935. KCC)
  10936. # KAI C++ Compiler
  10937. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10938. lt_prog_compiler_pic_CXX='-fPIC'
  10939. ;;
  10940. icpc)
  10941. # Intel C++
  10942. lt_prog_compiler_wl_CXX='-Wl,'
  10943. lt_prog_compiler_pic_CXX='-KPIC'
  10944. lt_prog_compiler_static_CXX='-static'
  10945. ;;
  10946. cxx)
  10947. # Compaq C++
  10948. # Make sure the PIC flag is empty. It appears that all Alpha
  10949. # Linux and Compaq Tru64 Unix objects are PIC.
  10950. lt_prog_compiler_pic_CXX=
  10951. lt_prog_compiler_static_CXX='-non_shared'
  10952. ;;
  10953. *)
  10954. ;;
  10955. esac
  10956. ;;
  10957. lynxos*)
  10958. ;;
  10959. m88k*)
  10960. ;;
  10961. mvs*)
  10962. case $cc_basename in
  10963. cxx)
  10964. lt_prog_compiler_pic_CXX='-W c,exportall'
  10965. ;;
  10966. *)
  10967. ;;
  10968. esac
  10969. ;;
  10970. netbsd*)
  10971. ;;
  10972. osf3* | osf4* | osf5*)
  10973. case $cc_basename in
  10974. KCC)
  10975. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10976. ;;
  10977. RCC)
  10978. # Rational C++ 2.4.1
  10979. lt_prog_compiler_pic_CXX='-pic'
  10980. ;;
  10981. cxx)
  10982. # Digital/Compaq C++
  10983. lt_prog_compiler_wl_CXX='-Wl,'
  10984. # Make sure the PIC flag is empty. It appears that all Alpha
  10985. # Linux and Compaq Tru64 Unix objects are PIC.
  10986. lt_prog_compiler_pic_CXX=
  10987. lt_prog_compiler_static_CXX='-non_shared'
  10988. ;;
  10989. *)
  10990. ;;
  10991. esac
  10992. ;;
  10993. psos*)
  10994. ;;
  10995. sco*)
  10996. case $cc_basename in
  10997. CC)
  10998. lt_prog_compiler_pic_CXX='-fPIC'
  10999. ;;
  11000. *)
  11001. ;;
  11002. esac
  11003. ;;
  11004. solaris*)
  11005. case $cc_basename in
  11006. CC)
  11007. # Sun C++ 4.2, 5.x and Centerline C++
  11008. lt_prog_compiler_pic_CXX='-KPIC'
  11009. lt_prog_compiler_static_CXX='-Bstatic'
  11010. lt_prog_compiler_wl_CXX='-Qoption ld '
  11011. ;;
  11012. gcx)
  11013. # Green Hills C++ Compiler
  11014. lt_prog_compiler_pic_CXX='-PIC'
  11015. ;;
  11016. *)
  11017. ;;
  11018. esac
  11019. ;;
  11020. sunos4*)
  11021. case $cc_basename in
  11022. CC)
  11023. # Sun C++ 4.x
  11024. lt_prog_compiler_pic_CXX='-pic'
  11025. lt_prog_compiler_static_CXX='-Bstatic'
  11026. ;;
  11027. lcc)
  11028. # Lucid
  11029. lt_prog_compiler_pic_CXX='-pic'
  11030. ;;
  11031. *)
  11032. ;;
  11033. esac
  11034. ;;
  11035. tandem*)
  11036. case $cc_basename in
  11037. NCC)
  11038. # NonStop-UX NCC 3.20
  11039. lt_prog_compiler_pic_CXX='-KPIC'
  11040. ;;
  11041. *)
  11042. ;;
  11043. esac
  11044. ;;
  11045. unixware*)
  11046. ;;
  11047. vxworks*)
  11048. ;;
  11049. *)
  11050. lt_prog_compiler_can_build_shared_CXX=no
  11051. ;;
  11052. esac
  11053. fi
  11054. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  11055. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
  11056. #
  11057. # Check to make sure the PIC flag actually works.
  11058. #
  11059. if test -n "$lt_prog_compiler_pic_CXX"; then
  11060. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11061. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
  11062. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  11063. echo $ECHO_N "(cached) $ECHO_C" >&6
  11064. else
  11065. lt_prog_compiler_pic_works_CXX=no
  11066. ac_outfile=conftest.$ac_objext
  11067. save_CFLAGS="$CFLAGS"
  11068. CFLAGS="$CFLAGS $lt_prog_compiler_pic_CXX -DPIC"
  11069. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11070. if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
  11071. # The compiler can only warn and ignore the option if not recognized
  11072. # So say no if there are warnings
  11073. if test -s conftest.err; then
  11074. # Append any errors to the config.log.
  11075. cat conftest.err 1>&5
  11076. else
  11077. lt_prog_compiler_pic_works_CXX=yes
  11078. fi
  11079. fi
  11080. $rm conftest*
  11081. CFLAGS="$save_CFLAGS"
  11082. fi
  11083. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  11084. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
  11085. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  11086. case $lt_prog_compiler_pic_CXX in
  11087. "" | " "*) ;;
  11088. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11089. esac
  11090. else
  11091. lt_prog_compiler_pic_CXX=
  11092. lt_prog_compiler_can_build_shared_CXX=no
  11093. fi
  11094. fi
  11095. case "$host_os" in
  11096. # For platforms which do not support PIC, -DPIC is meaningless:
  11097. *djgpp*)
  11098. lt_prog_compiler_pic_CXX=
  11099. ;;
  11100. *)
  11101. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11102. ;;
  11103. esac
  11104. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  11105. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  11106. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  11107. echo $ECHO_N "(cached) $ECHO_C" >&6
  11108. else
  11109. lt_cv_prog_compiler_c_o_CXX=no
  11110. $rm -r conftest 2>/dev/null
  11111. mkdir conftest
  11112. cd conftest
  11113. mkdir out
  11114. save_CXXFLAGS="$CXXFLAGS"
  11115. CXXFLAGS="$CXXFLAGS -o out/conftest2.$ac_objext"
  11116. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11117. # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
  11118. # that will create temporary files in the current directory regardless of
  11119. # the output directory. Thus, making CWD read-only will cause this test
  11120. # to fail, enabling locking or at least warning the user not to do parallel
  11121. # builds.
  11122. chmod -w .
  11123. if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
  11124. then
  11125. # The compiler can only warn and ignore the option if not recognized
  11126. # So say no if there are warnings
  11127. if test -s out/conftest.err; then
  11128. # Append any errors to the config.log.
  11129. cat out/conftest.err 1>&5
  11130. else
  11131. lt_cv_prog_compiler_c_o_CXX=yes
  11132. fi
  11133. fi
  11134. CXXFLAGS="$save_CXXFLAGS"
  11135. chmod u+w .
  11136. $rm conftest* out/*
  11137. rmdir out
  11138. cd ..
  11139. rmdir conftest
  11140. $rm conftest*
  11141. fi
  11142. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11143. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
  11144. hard_links="nottested"
  11145. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11146. # do not overwrite the value of need_locks provided by the user
  11147. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  11148. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  11149. hard_links=yes
  11150. $rm conftest*
  11151. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11152. touch conftest.a
  11153. ln conftest.a conftest.b 2>&5 || hard_links=no
  11154. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11155. echo "$as_me:$LINENO: result: $hard_links" >&5
  11156. echo "${ECHO_T}$hard_links" >&6
  11157. if test "$hard_links" = no; then
  11158. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11159. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11160. need_locks=warn
  11161. fi
  11162. else
  11163. need_locks=no
  11164. fi
  11165. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11166. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  11167. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11168. case $host_os in
  11169. aix4* | aix5*)
  11170. # If we're using GNU nm, then we don't want the "-C" option.
  11171. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11172. if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
  11173. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  11174. else
  11175. 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'
  11176. fi
  11177. ;;
  11178. cygwin* | mingw* | pw32*)
  11179. export_symbols_cmds_CXX="$ltdll_cmds"
  11180. ;;
  11181. *)
  11182. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11183. ;;
  11184. esac
  11185. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11186. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  11187. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11188. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11189. if test "$GCC" = yes; then
  11190. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11191. fi
  11192. #
  11193. # Do we need to explicitly link libc?
  11194. #
  11195. archive_cmds_need_lc_CXX=yes
  11196. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11197. case $archive_cmds_CXX in
  11198. *'~'*)
  11199. # FIXME: we may have to deal with multi-command sequences.
  11200. ;;
  11201. '$CC '*)
  11202. # Test whether the compiler implicitly links with -lc since on some
  11203. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11204. # to ld, don't add -lc before -lgcc.
  11205. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  11206. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  11207. $rm conftest*
  11208. echo 'static int dummy;' > conftest.$ac_ext
  11209. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11210. (eval $ac_compile) 2>&5
  11211. ac_status=$?
  11212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11213. (exit $ac_status); } 2>conftest.err; then
  11214. soname=conftest
  11215. lib=conftest
  11216. libobjs=conftest.$ac_objext
  11217. deplibs=
  11218. wl=$lt_prog_compiler_wl_CXX
  11219. compiler_flags=-v
  11220. linker_flags=-v
  11221. verstring=
  11222. output_objdir=.
  11223. libname=conftest
  11224. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11225. allow_undefined_flag_CXX=
  11226. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  11227. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11228. ac_status=$?
  11229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11230. (exit $ac_status); }
  11231. then
  11232. archive_cmds_need_lc_CXX=no
  11233. else
  11234. archive_cmds_need_lc_CXX=yes
  11235. fi
  11236. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11237. else
  11238. cat conftest.err 1>&5
  11239. fi
  11240. $rm conftest*
  11241. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  11242. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
  11243. ;;
  11244. esac
  11245. fi
  11246. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  11247. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  11248. hardcode_action_CXX=
  11249. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  11250. test -n "$runpath_var CXX"; then
  11251. # We can hardcode non-existant directories.
  11252. if test "$hardcode_direct_CXX" != no &&
  11253. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11254. # have to relink, otherwise we might link with an installed library
  11255. # when we should be linking with a yet-to-be-installed one
  11256. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  11257. test "$hardcode_minus_L_CXX" != no; then
  11258. # Linking always hardcodes the temporary library directory.
  11259. hardcode_action_CXX=relink
  11260. else
  11261. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11262. hardcode_action_CXX=immediate
  11263. fi
  11264. else
  11265. # We cannot hardcode anything, or else we can only hardcode existing
  11266. # directories.
  11267. hardcode_action_CXX=unsupported
  11268. fi
  11269. echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  11270. echo "${ECHO_T}$hardcode_action_CXX" >&6
  11271. if test "$hardcode_action_CXX" = relink; then
  11272. # Fast installation is not supported
  11273. enable_fast_install=no
  11274. elif test "$shlibpath_overrides_runpath" = yes ||
  11275. test "$enable_shared" = no; then
  11276. # Fast installation is not necessary
  11277. enable_fast_install=needless
  11278. fi
  11279. striplib=
  11280. old_striplib=
  11281. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  11282. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  11283. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  11284. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11285. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11286. echo "$as_me:$LINENO: result: yes" >&5
  11287. echo "${ECHO_T}yes" >&6
  11288. else
  11289. echo "$as_me:$LINENO: result: no" >&5
  11290. echo "${ECHO_T}no" >&6
  11291. fi
  11292. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  11293. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  11294. library_names_spec=
  11295. libname_spec='lib$name'
  11296. soname_spec=
  11297. postinstall_cmds=
  11298. postuninstall_cmds=
  11299. finish_cmds=
  11300. finish_eval=
  11301. shlibpath_var=
  11302. shlibpath_overrides_runpath=unknown
  11303. version_type=none
  11304. dynamic_linker="$host_os ld.so"
  11305. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11306. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11307. need_lib_prefix=unknown
  11308. hardcode_into_libs=no
  11309. # when you set need_version to no, make sure it does not cause -set_version
  11310. # flags to be left without arguments
  11311. need_version=unknown
  11312. case $host_os in
  11313. aix3*)
  11314. version_type=linux
  11315. library_names_spec='${libname}${release}.so$versuffix $libname.a'
  11316. shlibpath_var=LIBPATH
  11317. # AIX 3 has no versioning support, so we append a major version to the name.
  11318. soname_spec='${libname}${release}.so$major'
  11319. ;;
  11320. aix4* | aix5*)
  11321. version_type=linux
  11322. hardcode_into_libs=yes
  11323. if test "$host_cpu" = ia64; then
  11324. # AIX 5 supports IA64
  11325. library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
  11326. shlibpath_var=LD_LIBRARY_PATH
  11327. else
  11328. # With GCC up to 2.95.x, collect2 would create an import file
  11329. # for dependence libraries. The import file would start with
  11330. # the line `#! .'. This would cause the generated library to
  11331. # depend on `.', always an invalid library. This was fixed in
  11332. # development snapshots of GCC prior to 3.0.
  11333. case $host_os in
  11334. aix4 | aix4.[01] | aix4.[01].*)
  11335. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11336. echo ' yes '
  11337. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  11338. :
  11339. else
  11340. can_build_shared=no
  11341. fi
  11342. ;;
  11343. esac
  11344. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11345. # soname into executable. Probably we can add versioning support to
  11346. # collect2, so additional links can be useful in future.
  11347. if test "$aix_use_runtimelinking" = yes; then
  11348. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11349. # instead of lib<name>.a to let people know that these are not
  11350. # typical AIX shared libraries.
  11351. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  11352. else
  11353. # We preserve .a as extension for shared libraries through AIX4.2
  11354. # and later when we are not doing run time linking.
  11355. library_names_spec='${libname}${release}.a $libname.a'
  11356. soname_spec='${libname}${release}.so$major'
  11357. fi
  11358. shlibpath_var=LIBPATH
  11359. fi
  11360. ;;
  11361. amigaos*)
  11362. library_names_spec='$libname.ixlibrary $libname.a'
  11363. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11364. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
  11365. ;;
  11366. beos*)
  11367. library_names_spec='${libname}.so'
  11368. dynamic_linker="$host_os ld.so"
  11369. shlibpath_var=LIBRARY_PATH
  11370. ;;
  11371. bsdi4*)
  11372. version_type=linux
  11373. need_version=no
  11374. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  11375. soname_spec='${libname}${release}.so$major'
  11376. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11377. shlibpath_var=LD_LIBRARY_PATH
  11378. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11379. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11380. # the default ld.so.conf also contains /usr/contrib/lib and
  11381. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11382. # libtool to hard-code these into programs
  11383. ;;
  11384. cygwin* | mingw* | pw32*)
  11385. version_type=windows
  11386. need_version=no
  11387. need_lib_prefix=no
  11388. case $GCC,$host_os in
  11389. yes,cygwin*)
  11390. library_names_spec='$libname.dll.a'
  11391. sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
  11392. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  11393. postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
  11394. dldir=$destdir/`dirname \$dlpath`~
  11395. test -d \$dldir || mkdir -p \$dldir~
  11396. $install_prog .libs/$dlname \$dldir/$dlname'
  11397. postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11398. dlpath=$dir/\$dldll~
  11399. $rm \$dlpath'
  11400. ;;
  11401. yes,mingw*)
  11402. library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  11403. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
  11404. if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
  11405. # It is most probably a Windows format PATH printed by
  11406. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11407. # path with ; separators, and with drive letters. We can handle the
  11408. # drive letters (cygwin fileutils understands them), so leave them,
  11409. # especially as we might pass files found there to a mingw objdump,
  11410. # which wouldn't understand a cygwinified path. Ahh.
  11411. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
  11412. else
  11413. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
  11414. fi
  11415. ;;
  11416. yes,pw32*)
  11417. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
  11418. ;;
  11419. *)
  11420. library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
  11421. ;;
  11422. esac
  11423. dynamic_linker='Win32 ld.exe'
  11424. # FIXME: first we should search . and the directory the executable is in
  11425. shlibpath_var=PATH
  11426. ;;
  11427. darwin* | rhapsody*)
  11428. dynamic_linker="$host_os dyld"
  11429. version_type=darwin
  11430. need_lib_prefix=no
  11431. need_version=no
  11432. # FIXME: Relying on posixy $() will cause problems for
  11433. # cross-compilation, but unfortunately the echo tests do not
  11434. # yet detect zsh echo's removal of \ escapes.
  11435. library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
  11436. soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
  11437. shlibpath_overrides_runpath=yes
  11438. shlibpath_var=DYLD_LIBRARY_PATH
  11439. ;;
  11440. dgux*)
  11441. version_type=linux
  11442. need_lib_prefix=no
  11443. need_version=no
  11444. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  11445. soname_spec='${libname}${release}.so$major'
  11446. shlibpath_var=LD_LIBRARY_PATH
  11447. ;;
  11448. freebsd1*)
  11449. dynamic_linker=no
  11450. ;;
  11451. freebsd*)
  11452. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  11453. version_type=freebsd-$objformat
  11454. case $version_type in
  11455. freebsd-elf*)
  11456. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  11457. need_version=no
  11458. need_lib_prefix=no
  11459. ;;
  11460. freebsd-*)
  11461. library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
  11462. need_version=yes
  11463. ;;
  11464. esac
  11465. shlibpath_var=LD_LIBRARY_PATH
  11466. case $host_os in
  11467. freebsd2*)
  11468. shlibpath_overrides_runpath=yes
  11469. ;;
  11470. freebsd3.01* | freebsdelf3.01*)
  11471. shlibpath_overrides_runpath=yes
  11472. hardcode_into_libs=yes
  11473. ;;
  11474. *) # from 3.2 on
  11475. shlibpath_overrides_runpath=no
  11476. hardcode_into_libs=yes
  11477. ;;
  11478. esac
  11479. ;;
  11480. gnu*)
  11481. version_type=linux
  11482. need_lib_prefix=no
  11483. need_version=no
  11484. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
  11485. soname_spec='${libname}${release}.so$major'
  11486. shlibpath_var=LD_LIBRARY_PATH
  11487. hardcode_into_libs=yes
  11488. ;;
  11489. hpux9* | hpux10* | hpux11*)
  11490. # Give a soname corresponding to the major version so that dld.sl refuses to
  11491. # link against other versions.
  11492. version_type=sunos
  11493. need_lib_prefix=no
  11494. need_version=no
  11495. if test "$host_cpu" = ia64; then
  11496. hardcode_into_libs=yes
  11497. dynamic_linker="$host_os dld.so"
  11498. shlibpath_var=LD_LIBRARY_PATH
  11499. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11500. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  11501. soname_spec='${libname}${release}.so$major'
  11502. if test "X$HPUX_IA64_MODE" = X32; then
  11503. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11504. else
  11505. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11506. fi
  11507. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11508. else
  11509. dynamic_linker="$host_os dld.sl"
  11510. shlibpath_var=SHLIB_PATH
  11511. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11512. library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
  11513. soname_spec='${libname}${release}.sl$major'
  11514. fi
  11515. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11516. postinstall_cmds='chmod 555 $lib'
  11517. ;;
  11518. irix5* | irix6* | nonstopux*)
  11519. case $host_os in
  11520. nonstopux*) version_type=nonstopux ;;
  11521. *) version_type=irix ;;
  11522. esac
  11523. need_lib_prefix=no
  11524. need_version=no
  11525. soname_spec='${libname}${release}.so$major'
  11526. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
  11527. case $host_os in
  11528. irix5* | nonstopux*)
  11529. libsuff= shlibsuff=
  11530. ;;
  11531. *)
  11532. case $LD in # libtool.m4 will add one of these switches to LD
  11533. *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
  11534. *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
  11535. *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11536. *) libsuff= shlibsuff= libmagic=never-match;;
  11537. esac
  11538. ;;
  11539. esac
  11540. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11541. shlibpath_overrides_runpath=no
  11542. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11543. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11544. ;;
  11545. # No shared lib support for Linux oldld, aout, or coff.
  11546. linux*oldld* | linux*aout* | linux*coff*)
  11547. dynamic_linker=no
  11548. ;;
  11549. # This must be Linux ELF.
  11550. linux*)
  11551. version_type=linux
  11552. need_lib_prefix=no
  11553. need_version=no
  11554. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  11555. soname_spec='${libname}${release}.so$major'
  11556. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11557. libsuff=
  11558. if test "x$LINUX_64_MODE" = x64; then
  11559. # Some platforms are per default 64-bit, so there's no /lib64
  11560. if test -d /lib64; then
  11561. libsuff=64
  11562. fi
  11563. fi
  11564. shlibpath_var=LD_LIBRARY_PATH
  11565. shlibpath_overrides_runpath=no
  11566. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
  11567. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  11568. # This implies no fast_install, which is unacceptable.
  11569. # Some rework will be needed to allow for fast_install
  11570. # before this can be enabled.
  11571. hardcode_into_libs=yes
  11572. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11573. # powerpc, because MkLinux only supported shared libraries with the
  11574. # GNU dynamic linker. Since this was broken with cross compilers,
  11575. # most powerpc-linux boxes support dynamic linking these days and
  11576. # people can always --disable-shared, the test was removed, and we
  11577. # assume the GNU/Linux dynamic linker is in use.
  11578. dynamic_linker='GNU/Linux ld.so'
  11579. ;;
  11580. netbsd*)
  11581. version_type=sunos
  11582. need_lib_prefix=no
  11583. need_version=no
  11584. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11585. library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  11586. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11587. dynamic_linker='NetBSD (a.out) ld.so'
  11588. else
  11589. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
  11590. soname_spec='${libname}${release}.so$major'
  11591. dynamic_linker='NetBSD ld.elf_so'
  11592. fi
  11593. shlibpath_var=LD_LIBRARY_PATH
  11594. shlibpath_overrides_runpath=yes
  11595. hardcode_into_libs=yes
  11596. ;;
  11597. newsos6)
  11598. version_type=linux
  11599. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  11600. shlibpath_var=LD_LIBRARY_PATH
  11601. shlibpath_overrides_runpath=yes
  11602. ;;
  11603. nto-qnx)
  11604. version_type=linux
  11605. need_lib_prefix=no
  11606. need_version=no
  11607. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  11608. soname_spec='${libname}${release}.so$major'
  11609. shlibpath_var=LD_LIBRARY_PATH
  11610. shlibpath_overrides_runpath=yes
  11611. ;;
  11612. openbsd*)
  11613. version_type=sunos
  11614. need_lib_prefix=no
  11615. need_version=no
  11616. library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  11617. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11618. shlibpath_var=LD_LIBRARY_PATH
  11619. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11620. case $host_os in
  11621. openbsd2.[89] | openbsd2.[89].*)
  11622. shlibpath_overrides_runpath=no
  11623. ;;
  11624. *)
  11625. shlibpath_overrides_runpath=yes
  11626. ;;
  11627. esac
  11628. else
  11629. shlibpath_overrides_runpath=yes
  11630. fi
  11631. ;;
  11632. os2*)
  11633. libname_spec='$name'
  11634. need_lib_prefix=no
  11635. library_names_spec='$libname.dll $libname.a'
  11636. dynamic_linker='OS/2 ld.exe'
  11637. shlibpath_var=LIBPATH
  11638. ;;
  11639. osf3* | osf4* | osf5*)
  11640. version_type=osf
  11641. need_lib_prefix=no
  11642. need_version=no
  11643. soname_spec='${libname}${release}.so'
  11644. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  11645. shlibpath_var=LD_LIBRARY_PATH
  11646. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11647. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11648. ;;
  11649. sco3.2v5*)
  11650. version_type=osf
  11651. soname_spec='${libname}${release}.so$major'
  11652. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  11653. shlibpath_var=LD_LIBRARY_PATH
  11654. ;;
  11655. solaris*)
  11656. version_type=linux
  11657. need_lib_prefix=no
  11658. need_version=no
  11659. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  11660. soname_spec='${libname}${release}.so$major'
  11661. shlibpath_var=LD_LIBRARY_PATH
  11662. shlibpath_overrides_runpath=yes
  11663. hardcode_into_libs=yes
  11664. # ldd complains unless libraries are executable
  11665. postinstall_cmds='chmod +x $lib'
  11666. ;;
  11667. sunos4*)
  11668. version_type=sunos
  11669. library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  11670. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11671. shlibpath_var=LD_LIBRARY_PATH
  11672. shlibpath_overrides_runpath=yes
  11673. if test "$with_gnu_ld" = yes; then
  11674. need_lib_prefix=no
  11675. fi
  11676. need_version=yes
  11677. ;;
  11678. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11679. version_type=linux
  11680. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  11681. soname_spec='${libname}${release}.so$major'
  11682. shlibpath_var=LD_LIBRARY_PATH
  11683. case $host_vendor in
  11684. sni)
  11685. shlibpath_overrides_runpath=no
  11686. ;;
  11687. motorola)
  11688. need_lib_prefix=no
  11689. need_version=no
  11690. shlibpath_overrides_runpath=no
  11691. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11692. ;;
  11693. esac
  11694. ;;
  11695. sysv4*MP*)
  11696. if test -d /usr/nec ;then
  11697. version_type=linux
  11698. library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
  11699. soname_spec='$libname.so.$major'
  11700. shlibpath_var=LD_LIBRARY_PATH
  11701. fi
  11702. ;;
  11703. uts4*)
  11704. version_type=linux
  11705. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  11706. soname_spec='${libname}${release}.so$major'
  11707. shlibpath_var=LD_LIBRARY_PATH
  11708. ;;
  11709. *)
  11710. dynamic_linker=no
  11711. ;;
  11712. esac
  11713. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  11714. echo "${ECHO_T}$dynamic_linker" >&6
  11715. test "$dynamic_linker" = no && can_build_shared=no
  11716. if test "x$enable_dlopen" != xyes; then
  11717. enable_dlopen=unknown
  11718. enable_dlopen_self=unknown
  11719. enable_dlopen_self_static=unknown
  11720. else
  11721. lt_cv_dlopen=no
  11722. lt_cv_dlopen_libs=
  11723. case $host_os in
  11724. beos*)
  11725. lt_cv_dlopen="load_add_on"
  11726. lt_cv_dlopen_libs=
  11727. lt_cv_dlopen_self=yes
  11728. ;;
  11729. cygwin* | mingw* | pw32*)
  11730. lt_cv_dlopen="LoadLibrary"
  11731. lt_cv_dlopen_libs=
  11732. ;;
  11733. *)
  11734. echo "$as_me:$LINENO: checking for shl_load" >&5
  11735. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  11736. if test "${ac_cv_func_shl_load+set}" = set; then
  11737. echo $ECHO_N "(cached) $ECHO_C" >&6
  11738. else
  11739. cat >conftest.$ac_ext <<_ACEOF
  11740. /* confdefs.h. */
  11741. _ACEOF
  11742. cat confdefs.h >>conftest.$ac_ext
  11743. cat >>conftest.$ac_ext <<_ACEOF
  11744. /* end confdefs.h. */
  11745. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  11746. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11747. #define shl_load innocuous_shl_load
  11748. /* System header to define __stub macros and hopefully few prototypes,
  11749. which can conflict with char shl_load (); below.
  11750. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11751. <limits.h> exists even on freestanding compilers. */
  11752. #ifdef __STDC__
  11753. # include <limits.h>
  11754. #else
  11755. # include <assert.h>
  11756. #endif
  11757. #undef shl_load
  11758. /* Override any gcc2 internal prototype to avoid an error. */
  11759. #ifdef __cplusplus
  11760. extern "C"
  11761. {
  11762. #endif
  11763. /* We use char because int might match the return type of a gcc2
  11764. builtin and then its argument prototype would still apply. */
  11765. char shl_load ();
  11766. /* The GNU C library defines this for functions which it implements
  11767. to always fail with ENOSYS. Some functions are actually named
  11768. something starting with __ and the normal name is an alias. */
  11769. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  11770. choke me
  11771. #else
  11772. char (*f) () = shl_load;
  11773. #endif
  11774. #ifdef __cplusplus
  11775. }
  11776. #endif
  11777. int
  11778. main ()
  11779. {
  11780. return f != shl_load;
  11781. ;
  11782. return 0;
  11783. }
  11784. _ACEOF
  11785. rm -f conftest.$ac_objext conftest$ac_exeext
  11786. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11787. (eval $ac_link) 2>conftest.er1
  11788. ac_status=$?
  11789. grep -v '^ *+' conftest.er1 >conftest.err
  11790. rm -f conftest.er1
  11791. cat conftest.err >&5
  11792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11793. (exit $ac_status); } &&
  11794. { ac_try='test -z "$ac_cxx_werror_flag"
  11795. || test ! -s conftest.err'
  11796. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11797. (eval $ac_try) 2>&5
  11798. ac_status=$?
  11799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11800. (exit $ac_status); }; } &&
  11801. { ac_try='test -s conftest$ac_exeext'
  11802. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11803. (eval $ac_try) 2>&5
  11804. ac_status=$?
  11805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11806. (exit $ac_status); }; }; then
  11807. ac_cv_func_shl_load=yes
  11808. else
  11809. echo "$as_me: failed program was:" >&5
  11810. sed 's/^/| /' conftest.$ac_ext >&5
  11811. ac_cv_func_shl_load=no
  11812. fi
  11813. rm -f conftest.err conftest.$ac_objext \
  11814. conftest$ac_exeext conftest.$ac_ext
  11815. fi
  11816. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  11817. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  11818. if test $ac_cv_func_shl_load = yes; then
  11819. lt_cv_dlopen="shl_load"
  11820. else
  11821. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  11822. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  11823. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  11824. echo $ECHO_N "(cached) $ECHO_C" >&6
  11825. else
  11826. ac_check_lib_save_LIBS=$LIBS
  11827. LIBS="-ldld $LIBS"
  11828. cat >conftest.$ac_ext <<_ACEOF
  11829. /* confdefs.h. */
  11830. _ACEOF
  11831. cat confdefs.h >>conftest.$ac_ext
  11832. cat >>conftest.$ac_ext <<_ACEOF
  11833. /* end confdefs.h. */
  11834. /* Override any gcc2 internal prototype to avoid an error. */
  11835. #ifdef __cplusplus
  11836. extern "C"
  11837. #endif
  11838. /* We use char because int might match the return type of a gcc2
  11839. builtin and then its argument prototype would still apply. */
  11840. char shl_load ();
  11841. int
  11842. main ()
  11843. {
  11844. shl_load ();
  11845. ;
  11846. return 0;
  11847. }
  11848. _ACEOF
  11849. rm -f conftest.$ac_objext conftest$ac_exeext
  11850. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11851. (eval $ac_link) 2>conftest.er1
  11852. ac_status=$?
  11853. grep -v '^ *+' conftest.er1 >conftest.err
  11854. rm -f conftest.er1
  11855. cat conftest.err >&5
  11856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11857. (exit $ac_status); } &&
  11858. { ac_try='test -z "$ac_cxx_werror_flag"
  11859. || test ! -s conftest.err'
  11860. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11861. (eval $ac_try) 2>&5
  11862. ac_status=$?
  11863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11864. (exit $ac_status); }; } &&
  11865. { ac_try='test -s conftest$ac_exeext'
  11866. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11867. (eval $ac_try) 2>&5
  11868. ac_status=$?
  11869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11870. (exit $ac_status); }; }; then
  11871. ac_cv_lib_dld_shl_load=yes
  11872. else
  11873. echo "$as_me: failed program was:" >&5
  11874. sed 's/^/| /' conftest.$ac_ext >&5
  11875. ac_cv_lib_dld_shl_load=no
  11876. fi
  11877. rm -f conftest.err conftest.$ac_objext \
  11878. conftest$ac_exeext conftest.$ac_ext
  11879. LIBS=$ac_check_lib_save_LIBS
  11880. fi
  11881. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  11882. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  11883. if test $ac_cv_lib_dld_shl_load = yes; then
  11884. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  11885. else
  11886. echo "$as_me:$LINENO: checking for dlopen" >&5
  11887. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  11888. if test "${ac_cv_func_dlopen+set}" = set; then
  11889. echo $ECHO_N "(cached) $ECHO_C" >&6
  11890. else
  11891. cat >conftest.$ac_ext <<_ACEOF
  11892. /* confdefs.h. */
  11893. _ACEOF
  11894. cat confdefs.h >>conftest.$ac_ext
  11895. cat >>conftest.$ac_ext <<_ACEOF
  11896. /* end confdefs.h. */
  11897. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  11898. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11899. #define dlopen innocuous_dlopen
  11900. /* System header to define __stub macros and hopefully few prototypes,
  11901. which can conflict with char dlopen (); below.
  11902. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11903. <limits.h> exists even on freestanding compilers. */
  11904. #ifdef __STDC__
  11905. # include <limits.h>
  11906. #else
  11907. # include <assert.h>
  11908. #endif
  11909. #undef dlopen
  11910. /* Override any gcc2 internal prototype to avoid an error. */
  11911. #ifdef __cplusplus
  11912. extern "C"
  11913. {
  11914. #endif
  11915. /* We use char because int might match the return type of a gcc2
  11916. builtin and then its argument prototype would still apply. */
  11917. char dlopen ();
  11918. /* The GNU C library defines this for functions which it implements
  11919. to always fail with ENOSYS. Some functions are actually named
  11920. something starting with __ and the normal name is an alias. */
  11921. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  11922. choke me
  11923. #else
  11924. char (*f) () = dlopen;
  11925. #endif
  11926. #ifdef __cplusplus
  11927. }
  11928. #endif
  11929. int
  11930. main ()
  11931. {
  11932. return f != dlopen;
  11933. ;
  11934. return 0;
  11935. }
  11936. _ACEOF
  11937. rm -f conftest.$ac_objext conftest$ac_exeext
  11938. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11939. (eval $ac_link) 2>conftest.er1
  11940. ac_status=$?
  11941. grep -v '^ *+' conftest.er1 >conftest.err
  11942. rm -f conftest.er1
  11943. cat conftest.err >&5
  11944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11945. (exit $ac_status); } &&
  11946. { ac_try='test -z "$ac_cxx_werror_flag"
  11947. || test ! -s conftest.err'
  11948. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11949. (eval $ac_try) 2>&5
  11950. ac_status=$?
  11951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11952. (exit $ac_status); }; } &&
  11953. { ac_try='test -s conftest$ac_exeext'
  11954. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11955. (eval $ac_try) 2>&5
  11956. ac_status=$?
  11957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11958. (exit $ac_status); }; }; then
  11959. ac_cv_func_dlopen=yes
  11960. else
  11961. echo "$as_me: failed program was:" >&5
  11962. sed 's/^/| /' conftest.$ac_ext >&5
  11963. ac_cv_func_dlopen=no
  11964. fi
  11965. rm -f conftest.err conftest.$ac_objext \
  11966. conftest$ac_exeext conftest.$ac_ext
  11967. fi
  11968. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  11969. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  11970. if test $ac_cv_func_dlopen = yes; then
  11971. lt_cv_dlopen="dlopen"
  11972. else
  11973. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  11974. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  11975. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  11976. echo $ECHO_N "(cached) $ECHO_C" >&6
  11977. else
  11978. ac_check_lib_save_LIBS=$LIBS
  11979. LIBS="-ldl $LIBS"
  11980. cat >conftest.$ac_ext <<_ACEOF
  11981. /* confdefs.h. */
  11982. _ACEOF
  11983. cat confdefs.h >>conftest.$ac_ext
  11984. cat >>conftest.$ac_ext <<_ACEOF
  11985. /* end confdefs.h. */
  11986. /* Override any gcc2 internal prototype to avoid an error. */
  11987. #ifdef __cplusplus
  11988. extern "C"
  11989. #endif
  11990. /* We use char because int might match the return type of a gcc2
  11991. builtin and then its argument prototype would still apply. */
  11992. char dlopen ();
  11993. int
  11994. main ()
  11995. {
  11996. dlopen ();
  11997. ;
  11998. return 0;
  11999. }
  12000. _ACEOF
  12001. rm -f conftest.$ac_objext conftest$ac_exeext
  12002. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12003. (eval $ac_link) 2>conftest.er1
  12004. ac_status=$?
  12005. grep -v '^ *+' conftest.er1 >conftest.err
  12006. rm -f conftest.er1
  12007. cat conftest.err >&5
  12008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12009. (exit $ac_status); } &&
  12010. { ac_try='test -z "$ac_cxx_werror_flag"
  12011. || test ! -s conftest.err'
  12012. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12013. (eval $ac_try) 2>&5
  12014. ac_status=$?
  12015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12016. (exit $ac_status); }; } &&
  12017. { ac_try='test -s conftest$ac_exeext'
  12018. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12019. (eval $ac_try) 2>&5
  12020. ac_status=$?
  12021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12022. (exit $ac_status); }; }; then
  12023. ac_cv_lib_dl_dlopen=yes
  12024. else
  12025. echo "$as_me: failed program was:" >&5
  12026. sed 's/^/| /' conftest.$ac_ext >&5
  12027. ac_cv_lib_dl_dlopen=no
  12028. fi
  12029. rm -f conftest.err conftest.$ac_objext \
  12030. conftest$ac_exeext conftest.$ac_ext
  12031. LIBS=$ac_check_lib_save_LIBS
  12032. fi
  12033. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  12034. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  12035. if test $ac_cv_lib_dl_dlopen = yes; then
  12036. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  12037. else
  12038. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  12039. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  12040. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  12041. echo $ECHO_N "(cached) $ECHO_C" >&6
  12042. else
  12043. ac_check_lib_save_LIBS=$LIBS
  12044. LIBS="-lsvld $LIBS"
  12045. cat >conftest.$ac_ext <<_ACEOF
  12046. /* confdefs.h. */
  12047. _ACEOF
  12048. cat confdefs.h >>conftest.$ac_ext
  12049. cat >>conftest.$ac_ext <<_ACEOF
  12050. /* end confdefs.h. */
  12051. /* Override any gcc2 internal prototype to avoid an error. */
  12052. #ifdef __cplusplus
  12053. extern "C"
  12054. #endif
  12055. /* We use char because int might match the return type of a gcc2
  12056. builtin and then its argument prototype would still apply. */
  12057. char dlopen ();
  12058. int
  12059. main ()
  12060. {
  12061. dlopen ();
  12062. ;
  12063. return 0;
  12064. }
  12065. _ACEOF
  12066. rm -f conftest.$ac_objext conftest$ac_exeext
  12067. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12068. (eval $ac_link) 2>conftest.er1
  12069. ac_status=$?
  12070. grep -v '^ *+' conftest.er1 >conftest.err
  12071. rm -f conftest.er1
  12072. cat conftest.err >&5
  12073. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12074. (exit $ac_status); } &&
  12075. { ac_try='test -z "$ac_cxx_werror_flag"
  12076. || test ! -s conftest.err'
  12077. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12078. (eval $ac_try) 2>&5
  12079. ac_status=$?
  12080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12081. (exit $ac_status); }; } &&
  12082. { ac_try='test -s conftest$ac_exeext'
  12083. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12084. (eval $ac_try) 2>&5
  12085. ac_status=$?
  12086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12087. (exit $ac_status); }; }; then
  12088. ac_cv_lib_svld_dlopen=yes
  12089. else
  12090. echo "$as_me: failed program was:" >&5
  12091. sed 's/^/| /' conftest.$ac_ext >&5
  12092. ac_cv_lib_svld_dlopen=no
  12093. fi
  12094. rm -f conftest.err conftest.$ac_objext \
  12095. conftest$ac_exeext conftest.$ac_ext
  12096. LIBS=$ac_check_lib_save_LIBS
  12097. fi
  12098. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  12099. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  12100. if test $ac_cv_lib_svld_dlopen = yes; then
  12101. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  12102. else
  12103. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  12104. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  12105. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  12106. echo $ECHO_N "(cached) $ECHO_C" >&6
  12107. else
  12108. ac_check_lib_save_LIBS=$LIBS
  12109. LIBS="-ldld $LIBS"
  12110. cat >conftest.$ac_ext <<_ACEOF
  12111. /* confdefs.h. */
  12112. _ACEOF
  12113. cat confdefs.h >>conftest.$ac_ext
  12114. cat >>conftest.$ac_ext <<_ACEOF
  12115. /* end confdefs.h. */
  12116. /* Override any gcc2 internal prototype to avoid an error. */
  12117. #ifdef __cplusplus
  12118. extern "C"
  12119. #endif
  12120. /* We use char because int might match the return type of a gcc2
  12121. builtin and then its argument prototype would still apply. */
  12122. char dld_link ();
  12123. int
  12124. main ()
  12125. {
  12126. dld_link ();
  12127. ;
  12128. return 0;
  12129. }
  12130. _ACEOF
  12131. rm -f conftest.$ac_objext conftest$ac_exeext
  12132. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12133. (eval $ac_link) 2>conftest.er1
  12134. ac_status=$?
  12135. grep -v '^ *+' conftest.er1 >conftest.err
  12136. rm -f conftest.er1
  12137. cat conftest.err >&5
  12138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12139. (exit $ac_status); } &&
  12140. { ac_try='test -z "$ac_cxx_werror_flag"
  12141. || test ! -s conftest.err'
  12142. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12143. (eval $ac_try) 2>&5
  12144. ac_status=$?
  12145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12146. (exit $ac_status); }; } &&
  12147. { ac_try='test -s conftest$ac_exeext'
  12148. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12149. (eval $ac_try) 2>&5
  12150. ac_status=$?
  12151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12152. (exit $ac_status); }; }; then
  12153. ac_cv_lib_dld_dld_link=yes
  12154. else
  12155. echo "$as_me: failed program was:" >&5
  12156. sed 's/^/| /' conftest.$ac_ext >&5
  12157. ac_cv_lib_dld_dld_link=no
  12158. fi
  12159. rm -f conftest.err conftest.$ac_objext \
  12160. conftest$ac_exeext conftest.$ac_ext
  12161. LIBS=$ac_check_lib_save_LIBS
  12162. fi
  12163. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  12164. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  12165. if test $ac_cv_lib_dld_dld_link = yes; then
  12166. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  12167. fi
  12168. fi
  12169. fi
  12170. fi
  12171. fi
  12172. fi
  12173. ;;
  12174. esac
  12175. if test "x$lt_cv_dlopen" != xno; then
  12176. enable_dlopen=yes
  12177. else
  12178. enable_dlopen=no
  12179. fi
  12180. case $lt_cv_dlopen in
  12181. dlopen)
  12182. save_CPPFLAGS="$CPPFLAGS"
  12183. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  12184. save_LDFLAGS="$LDFLAGS"
  12185. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  12186. save_LIBS="$LIBS"
  12187. LIBS="$lt_cv_dlopen_libs $LIBS"
  12188. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  12189. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  12190. if test "${lt_cv_dlopen_self+set}" = set; then
  12191. echo $ECHO_N "(cached) $ECHO_C" >&6
  12192. else
  12193. if test "$cross_compiling" = yes; then :
  12194. lt_cv_dlopen_self=cross
  12195. else
  12196. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12197. lt_status=$lt_dlunknown
  12198. cat > conftest.$ac_ext <<EOF
  12199. #line 13676 "configure"
  12200. #include "confdefs.h"
  12201. #if HAVE_DLFCN_H
  12202. #include <dlfcn.h>
  12203. #endif
  12204. #include <stdio.h>
  12205. #ifdef RTLD_GLOBAL
  12206. # define LT_DLGLOBAL RTLD_GLOBAL
  12207. #else
  12208. # ifdef DL_GLOBAL
  12209. # define LT_DLGLOBAL DL_GLOBAL
  12210. # else
  12211. # define LT_DLGLOBAL 0
  12212. # endif
  12213. #endif
  12214. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12215. find out it does not work in some platform. */
  12216. #ifndef LT_DLLAZY_OR_NOW
  12217. # ifdef RTLD_LAZY
  12218. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12219. # else
  12220. # ifdef DL_LAZY
  12221. # define LT_DLLAZY_OR_NOW DL_LAZY
  12222. # else
  12223. # ifdef RTLD_NOW
  12224. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12225. # else
  12226. # ifdef DL_NOW
  12227. # define LT_DLLAZY_OR_NOW DL_NOW
  12228. # else
  12229. # define LT_DLLAZY_OR_NOW 0
  12230. # endif
  12231. # endif
  12232. # endif
  12233. # endif
  12234. #endif
  12235. #ifdef __cplusplus
  12236. extern "C" void exit (int);
  12237. #endif
  12238. void fnord() { int i=42;}
  12239. int main ()
  12240. {
  12241. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12242. int status = $lt_dlunknown;
  12243. if (self)
  12244. {
  12245. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12246. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12247. /* dlclose (self); */
  12248. }
  12249. exit (status);
  12250. }
  12251. EOF
  12252. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12253. (eval $ac_link) 2>&5
  12254. ac_status=$?
  12255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12256. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  12257. (./conftest; exit; ) 2>/dev/null
  12258. lt_status=$?
  12259. case x$lt_status in
  12260. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  12261. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  12262. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  12263. esac
  12264. else :
  12265. # compilation failed
  12266. lt_cv_dlopen_self=no
  12267. fi
  12268. fi
  12269. rm -fr conftest*
  12270. fi
  12271. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  12272. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  12273. if test "x$lt_cv_dlopen_self" = xyes; then
  12274. LDFLAGS="$LDFLAGS $link_static_flag"
  12275. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  12276. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  12277. if test "${lt_cv_dlopen_self_static+set}" = set; then
  12278. echo $ECHO_N "(cached) $ECHO_C" >&6
  12279. else
  12280. if test "$cross_compiling" = yes; then :
  12281. lt_cv_dlopen_self_static=cross
  12282. else
  12283. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12284. lt_status=$lt_dlunknown
  12285. cat > conftest.$ac_ext <<EOF
  12286. #line 13774 "configure"
  12287. #include "confdefs.h"
  12288. #if HAVE_DLFCN_H
  12289. #include <dlfcn.h>
  12290. #endif
  12291. #include <stdio.h>
  12292. #ifdef RTLD_GLOBAL
  12293. # define LT_DLGLOBAL RTLD_GLOBAL
  12294. #else
  12295. # ifdef DL_GLOBAL
  12296. # define LT_DLGLOBAL DL_GLOBAL
  12297. # else
  12298. # define LT_DLGLOBAL 0
  12299. # endif
  12300. #endif
  12301. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12302. find out it does not work in some platform. */
  12303. #ifndef LT_DLLAZY_OR_NOW
  12304. # ifdef RTLD_LAZY
  12305. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12306. # else
  12307. # ifdef DL_LAZY
  12308. # define LT_DLLAZY_OR_NOW DL_LAZY
  12309. # else
  12310. # ifdef RTLD_NOW
  12311. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12312. # else
  12313. # ifdef DL_NOW
  12314. # define LT_DLLAZY_OR_NOW DL_NOW
  12315. # else
  12316. # define LT_DLLAZY_OR_NOW 0
  12317. # endif
  12318. # endif
  12319. # endif
  12320. # endif
  12321. #endif
  12322. #ifdef __cplusplus
  12323. extern "C" void exit (int);
  12324. #endif
  12325. void fnord() { int i=42;}
  12326. int main ()
  12327. {
  12328. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12329. int status = $lt_dlunknown;
  12330. if (self)
  12331. {
  12332. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12333. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12334. /* dlclose (self); */
  12335. }
  12336. exit (status);
  12337. }
  12338. EOF
  12339. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12340. (eval $ac_link) 2>&5
  12341. ac_status=$?
  12342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12343. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  12344. (./conftest; exit; ) 2>/dev/null
  12345. lt_status=$?
  12346. case x$lt_status in
  12347. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  12348. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  12349. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  12350. esac
  12351. else :
  12352. # compilation failed
  12353. lt_cv_dlopen_self_static=no
  12354. fi
  12355. fi
  12356. rm -fr conftest*
  12357. fi
  12358. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  12359. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  12360. fi
  12361. CPPFLAGS="$save_CPPFLAGS"
  12362. LDFLAGS="$save_LDFLAGS"
  12363. LIBS="$save_LIBS"
  12364. ;;
  12365. esac
  12366. case $lt_cv_dlopen_self in
  12367. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  12368. *) enable_dlopen_self=unknown ;;
  12369. esac
  12370. case $lt_cv_dlopen_self_static in
  12371. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  12372. *) enable_dlopen_self_static=unknown ;;
  12373. esac
  12374. fi
  12375. # The else clause should only fire when bootstrapping the
  12376. # libtool distribution, otherwise you forgot to ship ltmain.sh
  12377. # with your package, and you will get complaints that there are
  12378. # no rules to generate ltmain.sh.
  12379. if test -f "$ltmain"; then
  12380. # Now quote all the things that may contain metacharacters while being
  12381. # careful not to overquote the AC_SUBSTed values. We take copies of the
  12382. # variables and quote the copies for generation of the libtool script.
  12383. for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
  12384. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  12385. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  12386. deplibs_check_method reload_flag reload_cmds need_locks \
  12387. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  12388. lt_cv_sys_global_symbol_to_c_name_address \
  12389. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  12390. old_postinstall_cmds old_postuninstall_cmds \
  12391. compiler_CXX \
  12392. CC_CXX \
  12393. LD_CXX \
  12394. lt_prog_compiler_wl_CXX \
  12395. lt_prog_compiler_pic_CXX \
  12396. lt_prog_compiler_static_CXX \
  12397. lt_prog_compiler_no_builtin_flag_CXX \
  12398. export_dynamic_flag_spec_CXX \
  12399. thread_safe_flag_spec_CXX \
  12400. whole_archive_flag_spec_CXX \
  12401. old_archive_cmds_CXX \
  12402. old_archive_from_new_cmds_CXX \
  12403. predep_objects_CXX \
  12404. postdep_objects_CXX \
  12405. predeps_CXX \
  12406. postdeps_CXX \
  12407. compiler_lib_search_path_CXX \
  12408. archive_cmds_CXX \
  12409. archive_expsym_cmds_CXX \
  12410. postinstall_cmds_CXX \
  12411. postuninstall_cmds_CXX \
  12412. old_archive_from_expsyms_cmds_CXX \
  12413. allow_undefined_flag_CXX \
  12414. no_undefined_flag_CXX \
  12415. export_symbols_cmds_CXX \
  12416. hardcode_libdir_flag_spec_CXX \
  12417. hardcode_libdir_separator_CXX \
  12418. lt_cv_prog_compiler_c_o_CXX \
  12419. exclude_expsyms_CXX \
  12420. include_expsyms_CXX; do
  12421. case $var in
  12422. old_archive_cmds_CXX | \
  12423. old_archive_from_new_cmds_CXX | \
  12424. archive_cmds_CXX | \
  12425. archive_expsym_cmds_CXX | \
  12426. old_archive_from_expsyms_cmds_CXX | \
  12427. export_symbols_cmds_CXX | \
  12428. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  12429. postinstall_cmds | postuninstall_cmds | \
  12430. old_postinstall_cmds | old_postuninstall_cmds | \
  12431. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  12432. # Double-quote double-evaled strings.
  12433. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  12434. ;;
  12435. *)
  12436. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  12437. ;;
  12438. esac
  12439. done
  12440. case $lt_echo in
  12441. *'\$0 --fallback-echo"')
  12442. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  12443. ;;
  12444. esac
  12445. cfgfile="$ofile"
  12446. cat <<__EOF__ >> "$cfgfile"
  12447. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  12448. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12449. # Shell to use when invoking shell scripts.
  12450. SHELL=$lt_SHELL
  12451. # Whether or not to build shared libraries.
  12452. build_libtool_libs=$enable_shared
  12453. # Whether or not to build static libraries.
  12454. build_old_libs=$enable_static
  12455. # Whether or not to add -lc for building shared libraries.
  12456. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  12457. # Whether or not to optimize for fast installation.
  12458. fast_install=$enable_fast_install
  12459. # The host system.
  12460. host_alias=$host_alias
  12461. host=$host
  12462. # An echo program that does not interpret backslashes.
  12463. echo=$lt_echo
  12464. # The archiver.
  12465. AR=$lt_AR
  12466. AR_FLAGS=$lt_AR_FLAGS
  12467. # A C compiler.
  12468. LTCC=$lt_LTCC
  12469. # A language-specific compiler.
  12470. CC=$lt_compiler_CXX
  12471. # Is the compiler the GNU C compiler?
  12472. with_gcc=$GCC_CXX
  12473. # The linker used to build libraries.
  12474. LD=$lt_LD_CXX
  12475. # Whether we need hard or soft links.
  12476. LN_S=$lt_LN_S
  12477. # A BSD-compatible nm program.
  12478. NM=$lt_NM
  12479. # A sed program that does not truncate output.
  12480. SED=$lt_SED
  12481. # A symbol stripping program
  12482. STRIP=$STRIP
  12483. # Used to examine libraries when file_magic_cmd begins "file"
  12484. MAGIC_CMD=$MAGIC_CMD
  12485. # Used on cygwin: DLL creation program.
  12486. DLLTOOL="$DLLTOOL"
  12487. # Used on cygwin: object dumper.
  12488. OBJDUMP="$OBJDUMP"
  12489. # Used on cygwin: assembler.
  12490. AS="$AS"
  12491. # The name of the directory that contains temporary libtool files.
  12492. objdir=$objdir
  12493. # How to create reloadable object files.
  12494. reload_flag=$lt_reload_flag
  12495. reload_cmds=$lt_reload_cmds
  12496. # How to pass a linker flag through the compiler.
  12497. wl=$lt_lt_prog_compiler_wl_CXX
  12498. # Object file suffix (normally "o").
  12499. objext="$ac_objext"
  12500. # Old archive suffix (normally "a").
  12501. libext="$libext"
  12502. # Executable file suffix (normally "").
  12503. exeext="$exeext"
  12504. # Additional compiler flags for building library objects.
  12505. pic_flag=$lt_lt_prog_compiler_pic_CXX
  12506. pic_mode=$pic_mode
  12507. # What is the maximum length of a command?
  12508. max_cmd_len=$lt_cv_sys_max_cmd_len
  12509. # Does compiler simultaneously support -c and -o options?
  12510. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  12511. # Must we lock files when doing compilation ?
  12512. need_locks=$lt_need_locks
  12513. # Do we need the lib prefix for modules?
  12514. need_lib_prefix=$need_lib_prefix
  12515. # Do we need a version for libraries?
  12516. need_version=$need_version
  12517. # Whether dlopen is supported.
  12518. dlopen_support=$enable_dlopen
  12519. # Whether dlopen of programs is supported.
  12520. dlopen_self=$enable_dlopen_self
  12521. # Whether dlopen of statically linked programs is supported.
  12522. dlopen_self_static=$enable_dlopen_self_static
  12523. # Compiler flag to prevent dynamic linking.
  12524. link_static_flag=$lt_lt_prog_compiler_static_CXX
  12525. # Compiler flag to turn off builtin functions.
  12526. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  12527. # Compiler flag to allow reflexive dlopens.
  12528. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  12529. # Compiler flag to generate shared objects directly from archives.
  12530. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  12531. # Compiler flag to generate thread-safe objects.
  12532. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  12533. # Library versioning type.
  12534. version_type=$version_type
  12535. # Format of library name prefix.
  12536. libname_spec=$lt_libname_spec
  12537. # List of archive names. First name is the real one, the rest are links.
  12538. # The last name is the one that the linker finds with -lNAME.
  12539. library_names_spec=$lt_library_names_spec
  12540. # The coded name of the library, if different from the real name.
  12541. soname_spec=$lt_soname_spec
  12542. # Commands used to build and install an old-style archive.
  12543. RANLIB=$lt_RANLIB
  12544. old_archive_cmds=$lt_old_archive_cmds_CXX
  12545. old_postinstall_cmds=$lt_old_postinstall_cmds
  12546. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12547. # Create an old-style archive from a shared archive.
  12548. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  12549. # Create a temporary old-style archive to link instead of a shared archive.
  12550. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  12551. # Commands used to build and install a shared archive.
  12552. archive_cmds=$lt_archive_cmds_CXX
  12553. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  12554. postinstall_cmds=$lt_postinstall_cmds
  12555. postuninstall_cmds=$lt_postuninstall_cmds
  12556. # Commands to strip libraries.
  12557. old_striplib=$lt_old_striplib
  12558. striplib=$lt_striplib
  12559. # Dependencies to place before the objects being linked to create a
  12560. # shared library.
  12561. predep_objects=$lt_predep_objects_CXX
  12562. # Dependencies to place after the objects being linked to create a
  12563. # shared library.
  12564. postdep_objects=$lt_postdep_objects_CXX
  12565. # Dependencies to place before the objects being linked to create a
  12566. # shared library.
  12567. predeps=$lt_predeps_CXX
  12568. # Dependencies to place after the objects being linked to create a
  12569. # shared library.
  12570. postdeps=$lt_postdeps_CXX
  12571. # The library search path used internally by the compiler when linking
  12572. # a shared library.
  12573. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  12574. # Method to check whether dependent libraries are shared objects.
  12575. deplibs_check_method=$lt_deplibs_check_method
  12576. # Command to use when deplibs_check_method == file_magic.
  12577. file_magic_cmd=$lt_file_magic_cmd
  12578. # Flag that allows shared libraries with undefined symbols to be built.
  12579. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  12580. # Flag that forces no undefined symbols.
  12581. no_undefined_flag=$lt_no_undefined_flag_CXX
  12582. # Commands used to finish a libtool library installation in a directory.
  12583. finish_cmds=$lt_finish_cmds
  12584. # Same as above, but a single script fragment to be evaled but not shown.
  12585. finish_eval=$lt_finish_eval
  12586. # Take the output of nm and produce a listing of raw symbols and C names.
  12587. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12588. # Transform the output of nm in a proper C declaration
  12589. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12590. # Transform the output of nm in a C name address pair
  12591. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12592. # This is the shared library runtime path variable.
  12593. runpath_var=$runpath_var
  12594. # This is the shared library path variable.
  12595. shlibpath_var=$shlibpath_var
  12596. # Is shlibpath searched before the hard-coded library search path?
  12597. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12598. # How to hardcode a shared library path into an executable.
  12599. hardcode_action=$hardcode_action_CXX
  12600. # Whether we should hardcode library paths into libraries.
  12601. hardcode_into_libs=$hardcode_into_libs
  12602. # Flag to hardcode \$libdir into a binary during linking.
  12603. # This must work even if \$libdir does not exist.
  12604. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  12605. # Whether we need a single -rpath flag with a separated argument.
  12606. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  12607. # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
  12608. # resulting binary.
  12609. hardcode_direct=$hardcode_direct_CXX
  12610. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  12611. # resulting binary.
  12612. hardcode_minus_L=$hardcode_minus_L_CXX
  12613. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  12614. # the resulting binary.
  12615. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  12616. # Variables whose values should be saved in libtool wrapper scripts and
  12617. # restored at relink time.
  12618. variables_saved_for_relink="$variables_saved_for_relink"
  12619. # Whether libtool must link a program against all its dependency libraries.
  12620. link_all_deplibs=$link_all_deplibs_CXX
  12621. # Compile-time system search path for libraries
  12622. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12623. # Run-time system search path for libraries
  12624. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12625. # Fix the shell variable \$srcfile for the compiler.
  12626. fix_srcfile_path="$fix_srcfile_path_CXX"
  12627. # Set to yes if exported symbols are required.
  12628. always_export_symbols=$always_export_symbols_CXX
  12629. # The commands to list exported symbols.
  12630. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  12631. # The commands to extract the exported symbol list from a shared archive.
  12632. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12633. # Symbols that should not be listed in the preloaded symbols.
  12634. exclude_expsyms=$lt_exclude_expsyms_CXX
  12635. # Symbols that must always be exported.
  12636. include_expsyms=$lt_include_expsyms_CXX
  12637. # ### END LIBTOOL TAG CONFIG: $tagname
  12638. __EOF__
  12639. else
  12640. # If there is no Makefile yet, we rely on a make rule to execute
  12641. # `config.status --recheck' to rerun these tests and create the
  12642. # libtool script then.
  12643. test -f Makefile && make "$ltmain"
  12644. fi
  12645. ac_ext=c
  12646. ac_cpp='$CPP $CPPFLAGS'
  12647. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12648. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12649. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12650. CC="$lt_save_CC"
  12651. ;;
  12652. GCJ)
  12653. # Source file extension for C test sources.
  12654. ac_ext=java
  12655. # Object file extension for compiled C test sources.
  12656. objext=o
  12657. objext_GCJ=$objext
  12658. # Code to be used in simple compile tests
  12659. lt_simple_compile_test_code="class foo {}"
  12660. # Code to be used in simple link tests
  12661. lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }'
  12662. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12663. # If no C compiler was specified, use CC.
  12664. LTCC=${LTCC-"$CC"}
  12665. # Allow CC to be a program name with arguments.
  12666. set dummy $CC
  12667. compiler="$2"
  12668. # Allow CC to be a program name with arguments.
  12669. lt_save_CC="$CC"
  12670. CC=${GCJ-"gcj"}
  12671. set dummy $CC
  12672. compiler="$2"
  12673. compiler_GCJ=$CC
  12674. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  12675. archive_cmds_need_lc_GCJ=no
  12676. ## CAVEAT EMPTOR:
  12677. ## There is no encapsulation within the following macros, do not change
  12678. ## the running order or otherwise move them around unless you know exactly
  12679. ## what you are doing...
  12680. lt_prog_compiler_no_builtin_flag_GCJ=
  12681. if test "$GCC" = yes; then
  12682. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  12683. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  12684. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  12685. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  12686. echo $ECHO_N "(cached) $ECHO_C" >&6
  12687. else
  12688. lt_cv_prog_compiler_rtti_exceptions=no
  12689. ac_outfile=conftest.$ac_objext
  12690. save_CFLAGS="$CFLAGS"
  12691. CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
  12692. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12693. if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
  12694. # The compiler can only warn and ignore the option if not recognized
  12695. # So say no if there are warnings
  12696. if test -s conftest.err; then
  12697. # Append any errors to the config.log.
  12698. cat conftest.err 1>&5
  12699. else
  12700. lt_cv_prog_compiler_rtti_exceptions=yes
  12701. fi
  12702. fi
  12703. $rm conftest*
  12704. CFLAGS="$save_CFLAGS"
  12705. fi
  12706. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  12707. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  12708. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  12709. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  12710. else
  12711. :
  12712. fi
  12713. fi
  12714. lt_prog_compiler_wl_GCJ=
  12715. lt_prog_compiler_pic_GCJ=
  12716. lt_prog_compiler_static_GCJ=
  12717. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  12718. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  12719. if test "$GCC" = yes; then
  12720. lt_prog_compiler_wl_GCJ='-Wl,'
  12721. lt_prog_compiler_static_GCJ='-static'
  12722. case $host_os in
  12723. aix*)
  12724. # All AIX code is PIC.
  12725. if test "$host_cpu" = ia64; then
  12726. # AIX 5 now supports IA64 processor
  12727. lt_prog_compiler_static_GCJ='-Bstatic'
  12728. fi
  12729. ;;
  12730. amigaos*)
  12731. # FIXME: we need at least 68020 code to build shared libraries, but
  12732. # adding the `-m68020' flag to GCC prevents building anything better,
  12733. # like `-m68040'.
  12734. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  12735. ;;
  12736. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12737. # PIC is the default for these OSes.
  12738. ;;
  12739. cygwin* | mingw* | pw32* | os2*)
  12740. # This hack is so that the source file can tell whether it is being
  12741. # built for inclusion in a dll (and should export symbols for example).
  12742. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  12743. ;;
  12744. darwin* | rhapsody*)
  12745. # PIC is the default on this platform
  12746. # Common symbols not allowed in MH_DYLIB files
  12747. lt_prog_compiler_pic_GCJ='-fno-common'
  12748. ;;
  12749. msdosdjgpp*)
  12750. # Just because we use GCC doesn't mean we suddenly get shared libraries
  12751. # on systems that don't support them.
  12752. lt_prog_compiler_can_build_shared_GCJ=no
  12753. enable_shared=no
  12754. ;;
  12755. sysv4*MP*)
  12756. if test -d /usr/nec; then
  12757. lt_prog_compiler_pic_GCJ=-Kconform_pic
  12758. fi
  12759. ;;
  12760. hpux*)
  12761. # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
  12762. if test "$host_cpu" != ia64; then
  12763. lt_prog_compiler_pic_GCJ='-fPIC'
  12764. fi
  12765. ;;
  12766. *)
  12767. lt_prog_compiler_pic_GCJ='-fPIC'
  12768. ;;
  12769. esac
  12770. else
  12771. # PORTME Check for flag to pass linker flags through the system compiler.
  12772. case $host_os in
  12773. aix*)
  12774. lt_prog_compiler_wl_GCJ='-Wl,'
  12775. if test "$host_cpu" = ia64; then
  12776. # AIX 5 now supports IA64 processor
  12777. lt_prog_compiler_static_GCJ='-Bstatic'
  12778. else
  12779. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  12780. fi
  12781. ;;
  12782. cygwin* | mingw* | pw32* | os2*)
  12783. # This hack is so that the source file can tell whether it is being
  12784. # built for inclusion in a dll (and should export symbols for example).
  12785. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  12786. ;;
  12787. hpux9* | hpux10* | hpux11*)
  12788. lt_prog_compiler_wl_GCJ='-Wl,'
  12789. if test "$host_cpu" != ia64; then
  12790. lt_prog_compiler_pic_GCJ='+Z'
  12791. fi
  12792. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  12793. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  12794. ;;
  12795. irix5* | irix6* | nonstopux*)
  12796. lt_prog_compiler_wl_GCJ='-Wl,'
  12797. # PIC (with -KPIC) is the default.
  12798. lt_prog_compiler_static_GCJ='-non_shared'
  12799. ;;
  12800. newsos6)
  12801. lt_prog_compiler_pic_GCJ='-KPIC'
  12802. lt_prog_compiler_static_GCJ='-Bstatic'
  12803. ;;
  12804. linux*)
  12805. if test "$CC" = "icc"; then
  12806. lt_prog_compiler_wl_GCJ='-Wl,'
  12807. lt_prog_compiler_pic_GCJ='-KPIC'
  12808. lt_prog_compiler_static_GCJ='-static'
  12809. fi
  12810. ;;
  12811. osf3* | osf4* | osf5*)
  12812. lt_prog_compiler_wl_GCJ='-Wl,'
  12813. # All OSF/1 code is PIC.
  12814. lt_prog_compiler_static_GCJ='-non_shared'
  12815. ;;
  12816. sco3.2v5*)
  12817. lt_prog_compiler_pic_GCJ='-Kpic'
  12818. lt_prog_compiler_static_GCJ='-dn'
  12819. ;;
  12820. solaris*)
  12821. lt_prog_compiler_wl_GCJ='-Wl,'
  12822. lt_prog_compiler_pic_GCJ='-KPIC'
  12823. lt_prog_compiler_static_GCJ='-Bstatic'
  12824. ;;
  12825. sunos4*)
  12826. lt_prog_compiler_wl_GCJ='-Qoption ld '
  12827. lt_prog_compiler_pic_GCJ='-PIC'
  12828. lt_prog_compiler_static_GCJ='-Bstatic'
  12829. ;;
  12830. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  12831. if test "x$host_vendor" = xsni; then
  12832. lt_prog_compiler_wl_GCJ='-LD'
  12833. else
  12834. lt_prog_compiler_wl_GCJ='-Wl,'
  12835. fi
  12836. lt_prog_compiler_pic_GCJ='-KPIC'
  12837. lt_prog_compiler_static_GCJ='-Bstatic'
  12838. ;;
  12839. sysv4*MP*)
  12840. if test -d /usr/nec ;then
  12841. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  12842. lt_prog_compiler_static_GCJ='-Bstatic'
  12843. fi
  12844. ;;
  12845. uts4*)
  12846. lt_prog_compiler_pic_GCJ='-pic'
  12847. lt_prog_compiler_static_GCJ='-Bstatic'
  12848. ;;
  12849. *)
  12850. lt_prog_compiler_can_build_shared_GCJ=no
  12851. ;;
  12852. esac
  12853. fi
  12854. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  12855. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
  12856. #
  12857. # Check to make sure the PIC flag actually works.
  12858. #
  12859. if test -n "$lt_prog_compiler_pic_GCJ"; then
  12860. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  12861. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
  12862. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  12863. echo $ECHO_N "(cached) $ECHO_C" >&6
  12864. else
  12865. lt_prog_compiler_pic_works_GCJ=no
  12866. ac_outfile=conftest.$ac_objext
  12867. save_CFLAGS="$CFLAGS"
  12868. CFLAGS="$CFLAGS $lt_prog_compiler_pic_GCJ -DPIC"
  12869. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12870. if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
  12871. # The compiler can only warn and ignore the option if not recognized
  12872. # So say no if there are warnings
  12873. if test -s conftest.err; then
  12874. # Append any errors to the config.log.
  12875. cat conftest.err 1>&5
  12876. else
  12877. lt_prog_compiler_pic_works_GCJ=yes
  12878. fi
  12879. fi
  12880. $rm conftest*
  12881. CFLAGS="$save_CFLAGS"
  12882. fi
  12883. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  12884. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
  12885. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  12886. case $lt_prog_compiler_pic_GCJ in
  12887. "" | " "*) ;;
  12888. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  12889. esac
  12890. else
  12891. lt_prog_compiler_pic_GCJ=
  12892. lt_prog_compiler_can_build_shared_GCJ=no
  12893. fi
  12894. fi
  12895. case "$host_os" in
  12896. # For platforms which do not support PIC, -DPIC is meaningless:
  12897. *djgpp*)
  12898. lt_prog_compiler_pic_GCJ=
  12899. ;;
  12900. *)
  12901. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ -DPIC"
  12902. ;;
  12903. esac
  12904. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12905. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  12906. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  12907. echo $ECHO_N "(cached) $ECHO_C" >&6
  12908. else
  12909. lt_cv_prog_compiler_c_o_GCJ=no
  12910. $rm -r conftest 2>/dev/null
  12911. mkdir conftest
  12912. cd conftest
  12913. mkdir out
  12914. save_GCJFLAGS="$GCJFLAGS"
  12915. GCJFLAGS="$GCJFLAGS -o out/conftest2.$ac_objext"
  12916. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12917. # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
  12918. # that will create temporary files in the current directory regardless of
  12919. # the output directory. Thus, making CWD read-only will cause this test
  12920. # to fail, enabling locking or at least warning the user not to do parallel
  12921. # builds.
  12922. chmod -w .
  12923. if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
  12924. then
  12925. # The compiler can only warn and ignore the option if not recognized
  12926. # So say no if there are warnings
  12927. if test -s out/conftest.err; then
  12928. # Append any errors to the config.log.
  12929. cat out/conftest.err 1>&5
  12930. else
  12931. lt_cv_prog_compiler_c_o_GCJ=yes
  12932. fi
  12933. fi
  12934. GCJFLAGS="$save_GCJFLAGS"
  12935. chmod u+w .
  12936. $rm conftest* out/*
  12937. rmdir out
  12938. cd ..
  12939. rmdir conftest
  12940. $rm conftest*
  12941. fi
  12942. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  12943. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
  12944. hard_links="nottested"
  12945. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  12946. # do not overwrite the value of need_locks provided by the user
  12947. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12948. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  12949. hard_links=yes
  12950. $rm conftest*
  12951. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12952. touch conftest.a
  12953. ln conftest.a conftest.b 2>&5 || hard_links=no
  12954. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12955. echo "$as_me:$LINENO: result: $hard_links" >&5
  12956. echo "${ECHO_T}$hard_links" >&6
  12957. if test "$hard_links" = no; then
  12958. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12959. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12960. need_locks=warn
  12961. fi
  12962. else
  12963. need_locks=no
  12964. fi
  12965. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12966. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  12967. runpath_var=
  12968. allow_undefined_flag_GCJ=
  12969. archive_cmds_GCJ=
  12970. archive_cmds_need_lc_GCJ=
  12971. archive_expsym_cmds_GCJ=
  12972. old_archive_From_new_cmds_GCJ=
  12973. old_archive_from_expsyms_cmds_GCJ=
  12974. export_dynamic_flag_spec_GCJ=
  12975. whole_archive_flag_spec_GCJ=
  12976. thread_safe_flag_spec_GCJ=
  12977. hardcode_libdir_flag_spec_GCJ=
  12978. hardcode_libdir_separator_GCJ=
  12979. hardcode_direct_GCJ=no
  12980. hardcode_minus_L_GCJ=no
  12981. hardcode_shlibpath_var_GCJ=unsupported
  12982. link_all_deplibs_GCJ=unknown
  12983. always_export_symbols_GCJ=no
  12984. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12985. # include_expsyms should be a list of space-separated symbols to be *always*
  12986. # included in the symbol list
  12987. include_expsyms_GCJ=
  12988. # exclude_expsyms can be an egrep regular expression of symbols to exclude
  12989. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  12990. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  12991. # as well as any symbol that contains `d'.
  12992. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  12993. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  12994. # platforms (ab)use it in PIC code, but their linkers get confused if
  12995. # the symbol is explicitly referenced. Since portable code cannot
  12996. # rely on this symbol name, it's probably fine to never include it in
  12997. # preloaded symbol tables.
  12998. extract_expsyms_cmds=
  12999. case $host_os in
  13000. cygwin* | mingw* | pw32*)
  13001. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  13002. # When not using gcc, we currently assume that we are using
  13003. # Microsoft Visual C++.
  13004. if test "$GCC" != yes; then
  13005. with_gnu_ld=no
  13006. fi
  13007. ;;
  13008. openbsd*)
  13009. with_gnu_ld=no
  13010. ;;
  13011. esac
  13012. ld_shlibs_GCJ=yes
  13013. if test "$with_gnu_ld" = yes; then
  13014. # If archive_cmds runs LD, not CC, wlarc should be empty
  13015. wlarc='${wl}'
  13016. # See if GNU ld supports shared libraries.
  13017. case $host_os in
  13018. aix3* | aix4* | aix5*)
  13019. # On AIX/PPC, the GNU linker is very broken
  13020. if test "$host_cpu" != ia64; then
  13021. ld_shlibs_GCJ=no
  13022. cat <<EOF 1>&2
  13023. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  13024. *** to be unable to reliably create shared libraries on AIX.
  13025. *** Therefore, libtool is disabling shared libraries support. If you
  13026. *** really care for shared libraries, you may want to modify your PATH
  13027. *** so that a non-GNU linker is found, and then restart.
  13028. EOF
  13029. fi
  13030. ;;
  13031. amigaos*)
  13032. archive_cmds_GCJ='$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)'
  13033. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  13034. hardcode_minus_L_GCJ=yes
  13035. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  13036. # that the semantics of dynamic libraries on AmigaOS, at least up
  13037. # to version 4, is to share data among multiple programs linked
  13038. # with the same dynamic library. Since this doesn't match the
  13039. # behavior of shared libraries on other platforms, we can't use
  13040. # them.
  13041. ld_shlibs_GCJ=no
  13042. ;;
  13043. beos*)
  13044. if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  13045. allow_undefined_flag_GCJ=unsupported
  13046. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13047. # support --undefined. This deserves some investigation. FIXME
  13048. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13049. else
  13050. ld_shlibs_GCJ=no
  13051. fi
  13052. ;;
  13053. cygwin* | mingw* | pw32*)
  13054. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, as there is
  13055. # no search path for DLLs.
  13056. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  13057. allow_undefined_flag_GCJ=unsupported
  13058. always_export_symbols_GCJ=yes
  13059. extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
  13060. sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
  13061. test -f $output_objdir/impgen.exe || (cd $output_objdir && \
  13062. if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
  13063. else $CC -o impgen impgen.c ; fi)~
  13064. $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
  13065. old_archive_from_expsyms_cmds_GCJ='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
  13066. # cygwin and mingw dlls have different entry points and sets of symbols
  13067. # to exclude.
  13068. # FIXME: what about values for MSVC?
  13069. dll_entry=__cygwin_dll_entry@12
  13070. dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
  13071. case $host_os in
  13072. mingw*)
  13073. # mingw values
  13074. dll_entry=_DllMainCRTStartup@12
  13075. dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
  13076. ;;
  13077. esac
  13078. # mingw and cygwin differ, and it's simplest to just exclude the union
  13079. # of the two symbol sets.
  13080. dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
  13081. # recent cygwin and mingw systems supply a stub DllMain which the user
  13082. # can override, but on older systems we have to supply one (in ltdll.c)
  13083. if test "x$lt_cv_need_dllmain" = "xyes"; then
  13084. ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
  13085. ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
  13086. test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
  13087. else
  13088. ltdll_obj=
  13089. ltdll_cmds=
  13090. fi
  13091. # Extract the symbol export list from an `--export-all' def file,
  13092. # then regenerate the def file from the symbol export list, so that
  13093. # the compiled dll only exports the symbol export list.
  13094. # Be careful not to strip the DATA tag left by newer dlltools.
  13095. export_symbols_cmds_GCJ="$ltdll_cmds"'
  13096. $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
  13097. sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
  13098. # If the export-symbols file already is a .def file (1st line
  13099. # is EXPORTS), use it as is.
  13100. # If DATA tags from a recent dlltool are present, honour them!
  13101. archive_expsym_cmds_GCJ='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then
  13102. cp $export_symbols $output_objdir/$soname-def;
  13103. else
  13104. echo EXPORTS > $output_objdir/$soname-def;
  13105. _lt_hint=1;
  13106. cat $export_symbols | while read symbol; do
  13107. set dummy \$symbol;
  13108. case \$# in
  13109. 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
  13110. *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
  13111. esac;
  13112. _lt_hint=`expr 1 + \$_lt_hint`;
  13113. done;
  13114. fi~
  13115. '"$ltdll_cmds"'
  13116. $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
  13117. $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
  13118. $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
  13119. $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
  13120. $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
  13121. ;;
  13122. netbsd*)
  13123. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13124. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  13125. wlarc=
  13126. else
  13127. archive_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13128. archive_expsym_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13129. fi
  13130. ;;
  13131. solaris* | sysv5*)
  13132. if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
  13133. ld_shlibs_GCJ=no
  13134. cat <<EOF 1>&2
  13135. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  13136. *** create shared libraries on Solaris systems. Therefore, libtool
  13137. *** is disabling shared libraries support. We urge you to upgrade GNU
  13138. *** binutils to release 2.9.1 or newer. Another option is to modify
  13139. *** your PATH or compiler configuration so that the native linker is
  13140. *** used, and then restart.
  13141. EOF
  13142. elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  13143. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13144. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13145. else
  13146. ld_shlibs_GCJ=no
  13147. fi
  13148. ;;
  13149. sunos4*)
  13150. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13151. wlarc=
  13152. hardcode_direct_GCJ=yes
  13153. hardcode_shlibpath_var_GCJ=no
  13154. ;;
  13155. *)
  13156. if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  13157. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13158. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13159. else
  13160. ld_shlibs_GCJ=no
  13161. fi
  13162. ;;
  13163. esac
  13164. if test "$ld_shlibs_GCJ" = yes; then
  13165. runpath_var=LD_RUN_PATH
  13166. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  13167. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  13168. case $host_os in
  13169. cygwin* | mingw* | pw32*)
  13170. # dlltool doesn't understand --whole-archive et. al.
  13171. whole_archive_flag_spec_GCJ=
  13172. ;;
  13173. *)
  13174. # ancient GNU ld didn't support --whole-archive et. al.
  13175. if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
  13176. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  13177. else
  13178. whole_archive_flag_spec_GCJ=
  13179. fi
  13180. ;;
  13181. esac
  13182. fi
  13183. else
  13184. # PORTME fill in a description of your system's linker (not GNU ld)
  13185. case $host_os in
  13186. aix3*)
  13187. allow_undefined_flag_GCJ=unsupported
  13188. always_export_symbols_GCJ=yes
  13189. archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  13190. # Note: this linker hardcodes the directories in LIBPATH if there
  13191. # are no directories specified by -L.
  13192. hardcode_minus_L_GCJ=yes
  13193. if test "$GCC" = yes && test -z "$link_static_flag"; then
  13194. # Neither direct hardcoding nor static linking is supported with a
  13195. # broken collect2.
  13196. hardcode_direct_GCJ=unsupported
  13197. fi
  13198. ;;
  13199. aix4* | aix5*)
  13200. if test "$host_cpu" = ia64; then
  13201. # On IA64, the linker does run time linking by default, so we don't
  13202. # have to do anything special.
  13203. aix_use_runtimelinking=no
  13204. exp_sym_flag='-Bexport'
  13205. no_entry_flag=""
  13206. else
  13207. # If we're using GNU nm, then we don't want the "-C" option.
  13208. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  13209. if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
  13210. export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  13211. else
  13212. export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  13213. fi
  13214. # KDE requires run time linking. Make it the default.
  13215. aix_use_runtimelinking=yes
  13216. exp_sym_flag='-bexport'
  13217. no_entry_flag='-bnoentry'
  13218. fi
  13219. # When large executables or shared objects are built, AIX ld can
  13220. # have problems creating the table of contents. If linking a library
  13221. # or program results in "error TOC overflow" add -mminimal-toc to
  13222. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13223. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13224. archive_cmds_GCJ=''
  13225. hardcode_direct_GCJ=yes
  13226. hardcode_libdir_separator_GCJ=':'
  13227. link_all_deplibs_GCJ=yes
  13228. if test "$GCC" = yes; then
  13229. case $host_os in aix4.012|aix4.012.*)
  13230. # We only want to do this on AIX 4.2 and lower, the check
  13231. # below for broken collect2 doesn't work under 4.3+
  13232. collect2name=`${CC} -print-prog-name=collect2`
  13233. if test -f "$collect2name" && \
  13234. strings "$collect2name" | grep resolve_lib_name >/dev/null
  13235. then
  13236. # We have reworked collect2
  13237. hardcode_direct_GCJ=yes
  13238. else
  13239. # We have old collect2
  13240. hardcode_direct_GCJ=unsupported
  13241. # It fails to find uninstalled libraries when the uninstalled
  13242. # path is not listed in the libpath. Setting hardcode_minus_L
  13243. # to unsupported forces relinking
  13244. hardcode_minus_L_GCJ=yes
  13245. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  13246. hardcode_libdir_separator_GCJ=
  13247. fi
  13248. esac
  13249. shared_flag='-shared'
  13250. else
  13251. # not using gcc
  13252. if test "$host_cpu" = ia64; then
  13253. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13254. # chokes on -Wl,-G. The following line is correct:
  13255. shared_flag='-G'
  13256. else
  13257. if test "$aix_use_runtimelinking" = yes; then
  13258. shared_flag='-qmkshrobj ${wl}-G'
  13259. else
  13260. shared_flag='-qmkshrobj'
  13261. fi
  13262. fi
  13263. fi
  13264. # Let the compiler handle the export list.
  13265. always_export_symbols_GCJ=no
  13266. if test "$aix_use_runtimelinking" = yes; then
  13267. # Warning - without using the other runtime loading flags (-brtl),
  13268. # -berok will link without error, but may produce a broken library.
  13269. allow_undefined_flag_GCJ='-berok'
  13270. # Determine the default libpath from the value encoded in an empty executable.
  13271. cat >conftest.$ac_ext <<_ACEOF
  13272. /* confdefs.h. */
  13273. _ACEOF
  13274. cat confdefs.h >>conftest.$ac_ext
  13275. cat >>conftest.$ac_ext <<_ACEOF
  13276. /* end confdefs.h. */
  13277. int
  13278. main ()
  13279. {
  13280. ;
  13281. return 0;
  13282. }
  13283. _ACEOF
  13284. rm -f conftest.$ac_objext conftest$ac_exeext
  13285. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13286. (eval $ac_link) 2>conftest.er1
  13287. ac_status=$?
  13288. grep -v '^ *+' conftest.er1 >conftest.err
  13289. rm -f conftest.er1
  13290. cat conftest.err >&5
  13291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13292. (exit $ac_status); } &&
  13293. { ac_try='test -z "$ac_c_werror_flag"
  13294. || test ! -s conftest.err'
  13295. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13296. (eval $ac_try) 2>&5
  13297. ac_status=$?
  13298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13299. (exit $ac_status); }; } &&
  13300. { ac_try='test -s conftest$ac_exeext'
  13301. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13302. (eval $ac_try) 2>&5
  13303. ac_status=$?
  13304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13305. (exit $ac_status); }; }; then
  13306. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13307. }'`
  13308. # Check for a 64-bit object if we didn't find anything.
  13309. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13310. }'`; fi
  13311. else
  13312. echo "$as_me: failed program was:" >&5
  13313. sed 's/^/| /' conftest.$ac_ext >&5
  13314. fi
  13315. rm -f conftest.err conftest.$ac_objext \
  13316. conftest$ac_exeext conftest.$ac_ext
  13317. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13318. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  13319. archive_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
  13320. archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  13321. else
  13322. if test "$host_cpu" = ia64; then
  13323. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  13324. allow_undefined_flag_GCJ="-z nodefs"
  13325. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  13326. else
  13327. # Determine the default libpath from the value encoded in an empty executable.
  13328. cat >conftest.$ac_ext <<_ACEOF
  13329. /* confdefs.h. */
  13330. _ACEOF
  13331. cat confdefs.h >>conftest.$ac_ext
  13332. cat >>conftest.$ac_ext <<_ACEOF
  13333. /* end confdefs.h. */
  13334. int
  13335. main ()
  13336. {
  13337. ;
  13338. return 0;
  13339. }
  13340. _ACEOF
  13341. rm -f conftest.$ac_objext conftest$ac_exeext
  13342. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13343. (eval $ac_link) 2>conftest.er1
  13344. ac_status=$?
  13345. grep -v '^ *+' conftest.er1 >conftest.err
  13346. rm -f conftest.er1
  13347. cat conftest.err >&5
  13348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13349. (exit $ac_status); } &&
  13350. { ac_try='test -z "$ac_c_werror_flag"
  13351. || test ! -s conftest.err'
  13352. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13353. (eval $ac_try) 2>&5
  13354. ac_status=$?
  13355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13356. (exit $ac_status); }; } &&
  13357. { ac_try='test -s conftest$ac_exeext'
  13358. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13359. (eval $ac_try) 2>&5
  13360. ac_status=$?
  13361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13362. (exit $ac_status); }; }; then
  13363. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13364. }'`
  13365. # Check for a 64-bit object if we didn't find anything.
  13366. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13367. }'`; fi
  13368. else
  13369. echo "$as_me: failed program was:" >&5
  13370. sed 's/^/| /' conftest.$ac_ext >&5
  13371. fi
  13372. rm -f conftest.err conftest.$ac_objext \
  13373. conftest$ac_exeext conftest.$ac_ext
  13374. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13375. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  13376. # Warning - without using the other run time loading flags,
  13377. # -berok will link without error, but may produce a broken library.
  13378. no_undefined_flag_GCJ=' ${wl}-bernotok'
  13379. allow_undefined_flag_GCJ=' ${wl}-berok'
  13380. # -bexpall does not export symbols beginning with underscore (_)
  13381. always_export_symbols_GCJ=yes
  13382. # Exported symbols can be pulled into shared objects from archives
  13383. whole_archive_flag_spec_GCJ=' '
  13384. archive_cmds_need_lc_GCJ=yes
  13385. # This is similar to how AIX traditionally builds it's shared libraries.
  13386. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  13387. fi
  13388. fi
  13389. ;;
  13390. amigaos*)
  13391. archive_cmds_GCJ='$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)'
  13392. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  13393. hardcode_minus_L_GCJ=yes
  13394. # see comment about different semantics on the GNU ld section
  13395. ld_shlibs_GCJ=no
  13396. ;;
  13397. bsdi4*)
  13398. export_dynamic_flag_spec_GCJ=-rdynamic
  13399. ;;
  13400. cygwin* | mingw* | pw32*)
  13401. # When not using gcc, we currently assume that we are using
  13402. # Microsoft Visual C++.
  13403. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13404. # no search path for DLLs.
  13405. hardcode_libdir_flag_spec_GCJ=' '
  13406. allow_undefined_flag_GCJ=unsupported
  13407. # Tell ltmain to make .lib files, not .a files.
  13408. libext=lib
  13409. # FIXME: Setting linknames here is a bad hack.
  13410. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  13411. # The linker will automatically build a .lib file if we build a DLL.
  13412. old_archive_From_new_cmds_GCJ='true'
  13413. # FIXME: Should let the user specify the lib program.
  13414. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  13415. fix_srcfile_path='`cygpath -w "$srcfile"`'
  13416. ;;
  13417. darwin* | rhapsody*)
  13418. case "$host_os" in
  13419. rhapsody* | darwin1.[012])
  13420. allow_undefined_flag_GCJ='-undefined suppress'
  13421. ;;
  13422. *) # Darwin 1.3 on
  13423. allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
  13424. ;;
  13425. esac
  13426. # FIXME: Relying on posixy $() will cause problems for
  13427. # cross-compilation, but unfortunately the echo tests do not
  13428. # yet detect zsh echo's removal of \ escapes. Also zsh mangles
  13429. # `"' quotes if we put them in here... so don't!
  13430. archive_cmds_GCJ='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
  13431. # We need to add '_' to the symbols in $export_symbols first
  13432. #_LT_AC_TAGVAR(archive_expsym_cmds, GCJ)="$_LT_AC_TAGVAR(archive_cmds, GCJ)"' && strip -s $export_symbols'
  13433. hardcode_direct_GCJ=yes
  13434. hardcode_shlibpath_var_GCJ=no
  13435. whole_archive_flag_spec_GCJ='-all_load $convenience'
  13436. ;;
  13437. dgux*)
  13438. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13439. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  13440. hardcode_shlibpath_var_GCJ=no
  13441. ;;
  13442. freebsd1*)
  13443. ld_shlibs_GCJ=no
  13444. ;;
  13445. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  13446. # support. Future versions do this automatically, but an explicit c++rt0.o
  13447. # does not break anything, and helps significantly (at the cost of a little
  13448. # extra space).
  13449. freebsd2.2*)
  13450. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  13451. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  13452. hardcode_direct_GCJ=yes
  13453. hardcode_shlibpath_var_GCJ=no
  13454. ;;
  13455. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  13456. freebsd2*)
  13457. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13458. hardcode_direct_GCJ=yes
  13459. hardcode_minus_L_GCJ=yes
  13460. hardcode_shlibpath_var_GCJ=no
  13461. ;;
  13462. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  13463. freebsd*)
  13464. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  13465. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  13466. hardcode_direct_GCJ=yes
  13467. hardcode_shlibpath_var_GCJ=no
  13468. ;;
  13469. hpux9* | hpux10* | hpux11*)
  13470. if test "$GCC" = yes; then
  13471. case $host_os in
  13472. hpux9*)
  13473. archive_cmds_GCJ='$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'
  13474. ;;
  13475. *)
  13476. if test "$host_cpu" = ia64; then
  13477. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13478. else
  13479. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13480. fi
  13481. ;;
  13482. esac
  13483. else
  13484. case $host_os in
  13485. hpux9*)
  13486. archive_cmds_GCJ='$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'
  13487. ;;
  13488. *)
  13489. if test "$host_cpu" = ia64; then
  13490. archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  13491. else
  13492. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13493. fi
  13494. ;;
  13495. esac
  13496. fi
  13497. if test "$host_cpu" = ia64; then
  13498. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  13499. hardcode_direct_GCJ=no
  13500. hardcode_shlibpath_var_GCJ=no
  13501. else
  13502. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  13503. hardcode_libdir_separator_GCJ=:
  13504. hardcode_direct_GCJ=yes
  13505. fi
  13506. # hardcode_minus_L: Not really in the search PATH,
  13507. # but as the default location of the library.
  13508. hardcode_minus_L_GCJ=yes
  13509. export_dynamic_flag_spec_GCJ='${wl}-E'
  13510. ;;
  13511. irix5* | irix6* | nonstopux*)
  13512. if test "$GCC" = yes; then
  13513. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13514. else
  13515. archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  13516. fi
  13517. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  13518. hardcode_libdir_separator_GCJ=:
  13519. link_all_deplibs_GCJ=yes
  13520. ;;
  13521. netbsd*)
  13522. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13523. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  13524. else
  13525. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  13526. fi
  13527. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  13528. hardcode_direct_GCJ=yes
  13529. hardcode_shlibpath_var_GCJ=no
  13530. ;;
  13531. newsos6)
  13532. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13533. hardcode_direct_GCJ=yes
  13534. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  13535. hardcode_libdir_separator_GCJ=:
  13536. hardcode_shlibpath_var_GCJ=no
  13537. ;;
  13538. openbsd*)
  13539. hardcode_direct_GCJ=yes
  13540. hardcode_shlibpath_var_GCJ=no
  13541. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13542. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
  13543. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  13544. export_dynamic_flag_spec_GCJ='${wl}-E'
  13545. else
  13546. case $host_os in
  13547. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  13548. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13549. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  13550. ;;
  13551. *)
  13552. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
  13553. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  13554. ;;
  13555. esac
  13556. fi
  13557. ;;
  13558. os2*)
  13559. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  13560. hardcode_minus_L_GCJ=yes
  13561. allow_undefined_flag_GCJ=unsupported
  13562. archive_cmds_GCJ='$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'
  13563. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  13564. ;;
  13565. osf3*)
  13566. if test "$GCC" = yes; then
  13567. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  13568. archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13569. else
  13570. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  13571. archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  13572. fi
  13573. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  13574. hardcode_libdir_separator_GCJ=:
  13575. ;;
  13576. osf4* | osf5*) # as osf3* with the addition of -msym flag
  13577. if test "$GCC" = yes; then
  13578. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  13579. archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13580. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  13581. else
  13582. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  13583. archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  13584. archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  13585. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  13586. # Both c and cxx compiler support -rpath directly
  13587. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  13588. fi
  13589. hardcode_libdir_separator_GCJ=:
  13590. ;;
  13591. sco3.2v5*)
  13592. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13593. hardcode_shlibpath_var_GCJ=no
  13594. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  13595. runpath_var=LD_RUN_PATH
  13596. hardcode_runpath_var=yes
  13597. ;;
  13598. solaris*)
  13599. no_undefined_flag_GCJ=' -z text'
  13600. if test "$GCC" = yes; then
  13601. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13602. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13603. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  13604. else
  13605. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13606. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13607. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  13608. fi
  13609. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  13610. hardcode_shlibpath_var_GCJ=no
  13611. case $host_os in
  13612. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13613. *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  13614. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  13615. esac
  13616. link_all_deplibs_GCJ=yes
  13617. ;;
  13618. sunos4*)
  13619. if test "x$host_vendor" = xsequent; then
  13620. # Use $CC to link under sequent, because it throws in some extra .o
  13621. # files that make .init and .fini sections work.
  13622. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13623. else
  13624. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  13625. fi
  13626. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  13627. hardcode_direct_GCJ=yes
  13628. hardcode_minus_L_GCJ=yes
  13629. hardcode_shlibpath_var_GCJ=no
  13630. ;;
  13631. sysv4)
  13632. if test "x$host_vendor" = xsni; then
  13633. archive_cmds_GCJ='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13634. hardcode_direct_GCJ=yes # is this really true???
  13635. else
  13636. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13637. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  13638. fi
  13639. runpath_var='LD_RUN_PATH'
  13640. hardcode_shlibpath_var_GCJ=no
  13641. ;;
  13642. sysv4.3*)
  13643. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13644. hardcode_shlibpath_var_GCJ=no
  13645. export_dynamic_flag_spec_GCJ='-Bexport'
  13646. ;;
  13647. sysv4*MP*)
  13648. if test -d /usr/nec; then
  13649. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13650. hardcode_shlibpath_var_GCJ=no
  13651. runpath_var=LD_RUN_PATH
  13652. hardcode_runpath_var=yes
  13653. ld_shlibs_GCJ=yes
  13654. fi
  13655. ;;
  13656. sysv4.2uw2*)
  13657. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13658. hardcode_direct_GCJ=yes
  13659. hardcode_minus_L_GCJ=no
  13660. hardcode_shlibpath_var_GCJ=no
  13661. hardcode_runpath_var=yes
  13662. runpath_var=LD_RUN_PATH
  13663. ;;
  13664. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  13665. no_undefined_flag_GCJ='${wl}-z ${wl}text'
  13666. if test "$GCC" = yes; then
  13667. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13668. else
  13669. archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13670. fi
  13671. runpath_var='LD_RUN_PATH'
  13672. hardcode_shlibpath_var_GCJ=no
  13673. ;;
  13674. sysv5*)
  13675. no_undefined_flag_GCJ=' -z text'
  13676. # $CC -shared without GNU ld will not create a library from C++
  13677. # object files and a static libstdc++, better avoid it by now
  13678. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13679. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13680. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  13681. hardcode_libdir_flag_spec_GCJ=
  13682. hardcode_shlibpath_var_GCJ=no
  13683. runpath_var='LD_RUN_PATH'
  13684. ;;
  13685. uts4*)
  13686. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13687. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  13688. hardcode_shlibpath_var_GCJ=no
  13689. ;;
  13690. *)
  13691. ld_shlibs_GCJ=no
  13692. ;;
  13693. esac
  13694. fi
  13695. echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  13696. echo "${ECHO_T}$ld_shlibs_GCJ" >&6
  13697. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  13698. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13699. if test "$GCC" = yes; then
  13700. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13701. fi
  13702. #
  13703. # Do we need to explicitly link libc?
  13704. #
  13705. archive_cmds_need_lc_GCJ=yes
  13706. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13707. case $archive_cmds_GCJ in
  13708. *'~'*)
  13709. # FIXME: we may have to deal with multi-command sequences.
  13710. ;;
  13711. '$CC '*)
  13712. # Test whether the compiler implicitly links with -lc since on some
  13713. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13714. # to ld, don't add -lc before -lgcc.
  13715. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  13716. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  13717. $rm conftest*
  13718. echo 'static int dummy;' > conftest.$ac_ext
  13719. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13720. (eval $ac_compile) 2>&5
  13721. ac_status=$?
  13722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13723. (exit $ac_status); } 2>conftest.err; then
  13724. soname=conftest
  13725. lib=conftest
  13726. libobjs=conftest.$ac_objext
  13727. deplibs=
  13728. wl=$lt_prog_compiler_wl_GCJ
  13729. compiler_flags=-v
  13730. linker_flags=-v
  13731. verstring=
  13732. output_objdir=.
  13733. libname=conftest
  13734. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  13735. allow_undefined_flag_GCJ=
  13736. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  13737. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13738. ac_status=$?
  13739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13740. (exit $ac_status); }
  13741. then
  13742. archive_cmds_need_lc_GCJ=no
  13743. else
  13744. archive_cmds_need_lc_GCJ=yes
  13745. fi
  13746. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  13747. else
  13748. cat conftest.err 1>&5
  13749. fi
  13750. $rm conftest*
  13751. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  13752. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
  13753. ;;
  13754. esac
  13755. fi
  13756. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  13757. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  13758. hardcode_action_GCJ=
  13759. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  13760. test -n "$runpath_var GCJ"; then
  13761. # We can hardcode non-existant directories.
  13762. if test "$hardcode_direct_GCJ" != no &&
  13763. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13764. # have to relink, otherwise we might link with an installed library
  13765. # when we should be linking with a yet-to-be-installed one
  13766. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  13767. test "$hardcode_minus_L_GCJ" != no; then
  13768. # Linking always hardcodes the temporary library directory.
  13769. hardcode_action_GCJ=relink
  13770. else
  13771. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13772. hardcode_action_GCJ=immediate
  13773. fi
  13774. else
  13775. # We cannot hardcode anything, or else we can only hardcode existing
  13776. # directories.
  13777. hardcode_action_GCJ=unsupported
  13778. fi
  13779. echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  13780. echo "${ECHO_T}$hardcode_action_GCJ" >&6
  13781. if test "$hardcode_action_GCJ" = relink; then
  13782. # Fast installation is not supported
  13783. enable_fast_install=no
  13784. elif test "$shlibpath_overrides_runpath" = yes ||
  13785. test "$enable_shared" = no; then
  13786. # Fast installation is not necessary
  13787. enable_fast_install=needless
  13788. fi
  13789. striplib=
  13790. old_striplib=
  13791. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  13792. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  13793. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  13794. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  13795. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  13796. echo "$as_me:$LINENO: result: yes" >&5
  13797. echo "${ECHO_T}yes" >&6
  13798. else
  13799. echo "$as_me:$LINENO: result: no" >&5
  13800. echo "${ECHO_T}no" >&6
  13801. fi
  13802. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  13803. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  13804. library_names_spec=
  13805. libname_spec='lib$name'
  13806. soname_spec=
  13807. postinstall_cmds=
  13808. postuninstall_cmds=
  13809. finish_cmds=
  13810. finish_eval=
  13811. shlibpath_var=
  13812. shlibpath_overrides_runpath=unknown
  13813. version_type=none
  13814. dynamic_linker="$host_os ld.so"
  13815. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13816. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13817. need_lib_prefix=unknown
  13818. hardcode_into_libs=no
  13819. # when you set need_version to no, make sure it does not cause -set_version
  13820. # flags to be left without arguments
  13821. need_version=unknown
  13822. case $host_os in
  13823. aix3*)
  13824. version_type=linux
  13825. library_names_spec='${libname}${release}.so$versuffix $libname.a'
  13826. shlibpath_var=LIBPATH
  13827. # AIX 3 has no versioning support, so we append a major version to the name.
  13828. soname_spec='${libname}${release}.so$major'
  13829. ;;
  13830. aix4* | aix5*)
  13831. version_type=linux
  13832. hardcode_into_libs=yes
  13833. if test "$host_cpu" = ia64; then
  13834. # AIX 5 supports IA64
  13835. library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
  13836. shlibpath_var=LD_LIBRARY_PATH
  13837. else
  13838. # With GCC up to 2.95.x, collect2 would create an import file
  13839. # for dependence libraries. The import file would start with
  13840. # the line `#! .'. This would cause the generated library to
  13841. # depend on `.', always an invalid library. This was fixed in
  13842. # development snapshots of GCC prior to 3.0.
  13843. case $host_os in
  13844. aix4 | aix4.[01] | aix4.[01].*)
  13845. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13846. echo ' yes '
  13847. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  13848. :
  13849. else
  13850. can_build_shared=no
  13851. fi
  13852. ;;
  13853. esac
  13854. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13855. # soname into executable. Probably we can add versioning support to
  13856. # collect2, so additional links can be useful in future.
  13857. if test "$aix_use_runtimelinking" = yes; then
  13858. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13859. # instead of lib<name>.a to let people know that these are not
  13860. # typical AIX shared libraries.
  13861. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  13862. else
  13863. # We preserve .a as extension for shared libraries through AIX4.2
  13864. # and later when we are not doing run time linking.
  13865. library_names_spec='${libname}${release}.a $libname.a'
  13866. soname_spec='${libname}${release}.so$major'
  13867. fi
  13868. shlibpath_var=LIBPATH
  13869. fi
  13870. ;;
  13871. amigaos*)
  13872. library_names_spec='$libname.ixlibrary $libname.a'
  13873. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13874. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
  13875. ;;
  13876. beos*)
  13877. library_names_spec='${libname}.so'
  13878. dynamic_linker="$host_os ld.so"
  13879. shlibpath_var=LIBRARY_PATH
  13880. ;;
  13881. bsdi4*)
  13882. version_type=linux
  13883. need_version=no
  13884. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  13885. soname_spec='${libname}${release}.so$major'
  13886. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13887. shlibpath_var=LD_LIBRARY_PATH
  13888. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13889. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13890. # the default ld.so.conf also contains /usr/contrib/lib and
  13891. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13892. # libtool to hard-code these into programs
  13893. ;;
  13894. cygwin* | mingw* | pw32*)
  13895. version_type=windows
  13896. need_version=no
  13897. need_lib_prefix=no
  13898. case $GCC,$host_os in
  13899. yes,cygwin*)
  13900. library_names_spec='$libname.dll.a'
  13901. sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
  13902. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  13903. postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
  13904. dldir=$destdir/`dirname \$dlpath`~
  13905. test -d \$dldir || mkdir -p \$dldir~
  13906. $install_prog .libs/$dlname \$dldir/$dlname'
  13907. postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13908. dlpath=$dir/\$dldll~
  13909. $rm \$dlpath'
  13910. ;;
  13911. yes,mingw*)
  13912. library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  13913. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
  13914. if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
  13915. # It is most probably a Windows format PATH printed by
  13916. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  13917. # path with ; separators, and with drive letters. We can handle the
  13918. # drive letters (cygwin fileutils understands them), so leave them,
  13919. # especially as we might pass files found there to a mingw objdump,
  13920. # which wouldn't understand a cygwinified path. Ahh.
  13921. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
  13922. else
  13923. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
  13924. fi
  13925. ;;
  13926. yes,pw32*)
  13927. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
  13928. ;;
  13929. *)
  13930. library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
  13931. ;;
  13932. esac
  13933. dynamic_linker='Win32 ld.exe'
  13934. # FIXME: first we should search . and the directory the executable is in
  13935. shlibpath_var=PATH
  13936. ;;
  13937. darwin* | rhapsody*)
  13938. dynamic_linker="$host_os dyld"
  13939. version_type=darwin
  13940. need_lib_prefix=no
  13941. need_version=no
  13942. # FIXME: Relying on posixy $() will cause problems for
  13943. # cross-compilation, but unfortunately the echo tests do not
  13944. # yet detect zsh echo's removal of \ escapes.
  13945. library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
  13946. soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
  13947. shlibpath_overrides_runpath=yes
  13948. shlibpath_var=DYLD_LIBRARY_PATH
  13949. ;;
  13950. dgux*)
  13951. version_type=linux
  13952. need_lib_prefix=no
  13953. need_version=no
  13954. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  13955. soname_spec='${libname}${release}.so$major'
  13956. shlibpath_var=LD_LIBRARY_PATH
  13957. ;;
  13958. freebsd1*)
  13959. dynamic_linker=no
  13960. ;;
  13961. freebsd*)
  13962. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  13963. version_type=freebsd-$objformat
  13964. case $version_type in
  13965. freebsd-elf*)
  13966. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  13967. need_version=no
  13968. need_lib_prefix=no
  13969. ;;
  13970. freebsd-*)
  13971. library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
  13972. need_version=yes
  13973. ;;
  13974. esac
  13975. shlibpath_var=LD_LIBRARY_PATH
  13976. case $host_os in
  13977. freebsd2*)
  13978. shlibpath_overrides_runpath=yes
  13979. ;;
  13980. freebsd3.01* | freebsdelf3.01*)
  13981. shlibpath_overrides_runpath=yes
  13982. hardcode_into_libs=yes
  13983. ;;
  13984. *) # from 3.2 on
  13985. shlibpath_overrides_runpath=no
  13986. hardcode_into_libs=yes
  13987. ;;
  13988. esac
  13989. ;;
  13990. gnu*)
  13991. version_type=linux
  13992. need_lib_prefix=no
  13993. need_version=no
  13994. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
  13995. soname_spec='${libname}${release}.so$major'
  13996. shlibpath_var=LD_LIBRARY_PATH
  13997. hardcode_into_libs=yes
  13998. ;;
  13999. hpux9* | hpux10* | hpux11*)
  14000. # Give a soname corresponding to the major version so that dld.sl refuses to
  14001. # link against other versions.
  14002. version_type=sunos
  14003. need_lib_prefix=no
  14004. need_version=no
  14005. if test "$host_cpu" = ia64; then
  14006. hardcode_into_libs=yes
  14007. dynamic_linker="$host_os dld.so"
  14008. shlibpath_var=LD_LIBRARY_PATH
  14009. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14010. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  14011. soname_spec='${libname}${release}.so$major'
  14012. if test "X$HPUX_IA64_MODE" = X32; then
  14013. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14014. else
  14015. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14016. fi
  14017. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14018. else
  14019. dynamic_linker="$host_os dld.sl"
  14020. shlibpath_var=SHLIB_PATH
  14021. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14022. library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
  14023. soname_spec='${libname}${release}.sl$major'
  14024. fi
  14025. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  14026. postinstall_cmds='chmod 555 $lib'
  14027. ;;
  14028. irix5* | irix6* | nonstopux*)
  14029. case $host_os in
  14030. nonstopux*) version_type=nonstopux ;;
  14031. *) version_type=irix ;;
  14032. esac
  14033. need_lib_prefix=no
  14034. need_version=no
  14035. soname_spec='${libname}${release}.so$major'
  14036. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
  14037. case $host_os in
  14038. irix5* | nonstopux*)
  14039. libsuff= shlibsuff=
  14040. ;;
  14041. *)
  14042. case $LD in # libtool.m4 will add one of these switches to LD
  14043. *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
  14044. *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
  14045. *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14046. *) libsuff= shlibsuff= libmagic=never-match;;
  14047. esac
  14048. ;;
  14049. esac
  14050. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14051. shlibpath_overrides_runpath=no
  14052. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  14053. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  14054. ;;
  14055. # No shared lib support for Linux oldld, aout, or coff.
  14056. linux*oldld* | linux*aout* | linux*coff*)
  14057. dynamic_linker=no
  14058. ;;
  14059. # This must be Linux ELF.
  14060. linux*)
  14061. version_type=linux
  14062. need_lib_prefix=no
  14063. need_version=no
  14064. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  14065. soname_spec='${libname}${release}.so$major'
  14066. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14067. libsuff=
  14068. if test "x$LINUX_64_MODE" = x64; then
  14069. # Some platforms are per default 64-bit, so there's no /lib64
  14070. if test -d /lib64; then
  14071. libsuff=64
  14072. fi
  14073. fi
  14074. shlibpath_var=LD_LIBRARY_PATH
  14075. shlibpath_overrides_runpath=no
  14076. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
  14077. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  14078. # This implies no fast_install, which is unacceptable.
  14079. # Some rework will be needed to allow for fast_install
  14080. # before this can be enabled.
  14081. hardcode_into_libs=yes
  14082. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14083. # powerpc, because MkLinux only supported shared libraries with the
  14084. # GNU dynamic linker. Since this was broken with cross compilers,
  14085. # most powerpc-linux boxes support dynamic linking these days and
  14086. # people can always --disable-shared, the test was removed, and we
  14087. # assume the GNU/Linux dynamic linker is in use.
  14088. dynamic_linker='GNU/Linux ld.so'
  14089. ;;
  14090. netbsd*)
  14091. version_type=sunos
  14092. need_lib_prefix=no
  14093. need_version=no
  14094. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14095. library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  14096. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14097. dynamic_linker='NetBSD (a.out) ld.so'
  14098. else
  14099. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
  14100. soname_spec='${libname}${release}.so$major'
  14101. dynamic_linker='NetBSD ld.elf_so'
  14102. fi
  14103. shlibpath_var=LD_LIBRARY_PATH
  14104. shlibpath_overrides_runpath=yes
  14105. hardcode_into_libs=yes
  14106. ;;
  14107. newsos6)
  14108. version_type=linux
  14109. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  14110. shlibpath_var=LD_LIBRARY_PATH
  14111. shlibpath_overrides_runpath=yes
  14112. ;;
  14113. nto-qnx)
  14114. version_type=linux
  14115. need_lib_prefix=no
  14116. need_version=no
  14117. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  14118. soname_spec='${libname}${release}.so$major'
  14119. shlibpath_var=LD_LIBRARY_PATH
  14120. shlibpath_overrides_runpath=yes
  14121. ;;
  14122. openbsd*)
  14123. version_type=sunos
  14124. need_lib_prefix=no
  14125. need_version=no
  14126. library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  14127. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14128. shlibpath_var=LD_LIBRARY_PATH
  14129. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14130. case $host_os in
  14131. openbsd2.[89] | openbsd2.[89].*)
  14132. shlibpath_overrides_runpath=no
  14133. ;;
  14134. *)
  14135. shlibpath_overrides_runpath=yes
  14136. ;;
  14137. esac
  14138. else
  14139. shlibpath_overrides_runpath=yes
  14140. fi
  14141. ;;
  14142. os2*)
  14143. libname_spec='$name'
  14144. need_lib_prefix=no
  14145. library_names_spec='$libname.dll $libname.a'
  14146. dynamic_linker='OS/2 ld.exe'
  14147. shlibpath_var=LIBPATH
  14148. ;;
  14149. osf3* | osf4* | osf5*)
  14150. version_type=osf
  14151. need_lib_prefix=no
  14152. need_version=no
  14153. soname_spec='${libname}${release}.so'
  14154. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  14155. shlibpath_var=LD_LIBRARY_PATH
  14156. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14157. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  14158. ;;
  14159. sco3.2v5*)
  14160. version_type=osf
  14161. soname_spec='${libname}${release}.so$major'
  14162. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  14163. shlibpath_var=LD_LIBRARY_PATH
  14164. ;;
  14165. solaris*)
  14166. version_type=linux
  14167. need_lib_prefix=no
  14168. need_version=no
  14169. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  14170. soname_spec='${libname}${release}.so$major'
  14171. shlibpath_var=LD_LIBRARY_PATH
  14172. shlibpath_overrides_runpath=yes
  14173. hardcode_into_libs=yes
  14174. # ldd complains unless libraries are executable
  14175. postinstall_cmds='chmod +x $lib'
  14176. ;;
  14177. sunos4*)
  14178. version_type=sunos
  14179. library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  14180. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14181. shlibpath_var=LD_LIBRARY_PATH
  14182. shlibpath_overrides_runpath=yes
  14183. if test "$with_gnu_ld" = yes; then
  14184. need_lib_prefix=no
  14185. fi
  14186. need_version=yes
  14187. ;;
  14188. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  14189. version_type=linux
  14190. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  14191. soname_spec='${libname}${release}.so$major'
  14192. shlibpath_var=LD_LIBRARY_PATH
  14193. case $host_vendor in
  14194. sni)
  14195. shlibpath_overrides_runpath=no
  14196. ;;
  14197. motorola)
  14198. need_lib_prefix=no
  14199. need_version=no
  14200. shlibpath_overrides_runpath=no
  14201. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14202. ;;
  14203. esac
  14204. ;;
  14205. sysv4*MP*)
  14206. if test -d /usr/nec ;then
  14207. version_type=linux
  14208. library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
  14209. soname_spec='$libname.so.$major'
  14210. shlibpath_var=LD_LIBRARY_PATH
  14211. fi
  14212. ;;
  14213. uts4*)
  14214. version_type=linux
  14215. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  14216. soname_spec='${libname}${release}.so$major'
  14217. shlibpath_var=LD_LIBRARY_PATH
  14218. ;;
  14219. *)
  14220. dynamic_linker=no
  14221. ;;
  14222. esac
  14223. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  14224. echo "${ECHO_T}$dynamic_linker" >&6
  14225. test "$dynamic_linker" = no && can_build_shared=no
  14226. if test "x$enable_dlopen" != xyes; then
  14227. enable_dlopen=unknown
  14228. enable_dlopen_self=unknown
  14229. enable_dlopen_self_static=unknown
  14230. else
  14231. lt_cv_dlopen=no
  14232. lt_cv_dlopen_libs=
  14233. case $host_os in
  14234. beos*)
  14235. lt_cv_dlopen="load_add_on"
  14236. lt_cv_dlopen_libs=
  14237. lt_cv_dlopen_self=yes
  14238. ;;
  14239. cygwin* | mingw* | pw32*)
  14240. lt_cv_dlopen="LoadLibrary"
  14241. lt_cv_dlopen_libs=
  14242. ;;
  14243. *)
  14244. echo "$as_me:$LINENO: checking for shl_load" >&5
  14245. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  14246. if test "${ac_cv_func_shl_load+set}" = set; then
  14247. echo $ECHO_N "(cached) $ECHO_C" >&6
  14248. else
  14249. cat >conftest.$ac_ext <<_ACEOF
  14250. /* confdefs.h. */
  14251. _ACEOF
  14252. cat confdefs.h >>conftest.$ac_ext
  14253. cat >>conftest.$ac_ext <<_ACEOF
  14254. /* end confdefs.h. */
  14255. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  14256. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14257. #define shl_load innocuous_shl_load
  14258. /* System header to define __stub macros and hopefully few prototypes,
  14259. which can conflict with char shl_load (); below.
  14260. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14261. <limits.h> exists even on freestanding compilers. */
  14262. #ifdef __STDC__
  14263. # include <limits.h>
  14264. #else
  14265. # include <assert.h>
  14266. #endif
  14267. #undef shl_load
  14268. /* Override any gcc2 internal prototype to avoid an error. */
  14269. #ifdef __cplusplus
  14270. extern "C"
  14271. {
  14272. #endif
  14273. /* We use char because int might match the return type of a gcc2
  14274. builtin and then its argument prototype would still apply. */
  14275. char shl_load ();
  14276. /* The GNU C library defines this for functions which it implements
  14277. to always fail with ENOSYS. Some functions are actually named
  14278. something starting with __ and the normal name is an alias. */
  14279. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  14280. choke me
  14281. #else
  14282. char (*f) () = shl_load;
  14283. #endif
  14284. #ifdef __cplusplus
  14285. }
  14286. #endif
  14287. int
  14288. main ()
  14289. {
  14290. return f != shl_load;
  14291. ;
  14292. return 0;
  14293. }
  14294. _ACEOF
  14295. rm -f conftest.$ac_objext conftest$ac_exeext
  14296. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14297. (eval $ac_link) 2>conftest.er1
  14298. ac_status=$?
  14299. grep -v '^ *+' conftest.er1 >conftest.err
  14300. rm -f conftest.er1
  14301. cat conftest.err >&5
  14302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14303. (exit $ac_status); } &&
  14304. { ac_try='test -z "$ac_c_werror_flag"
  14305. || test ! -s conftest.err'
  14306. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14307. (eval $ac_try) 2>&5
  14308. ac_status=$?
  14309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14310. (exit $ac_status); }; } &&
  14311. { ac_try='test -s conftest$ac_exeext'
  14312. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14313. (eval $ac_try) 2>&5
  14314. ac_status=$?
  14315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14316. (exit $ac_status); }; }; then
  14317. ac_cv_func_shl_load=yes
  14318. else
  14319. echo "$as_me: failed program was:" >&5
  14320. sed 's/^/| /' conftest.$ac_ext >&5
  14321. ac_cv_func_shl_load=no
  14322. fi
  14323. rm -f conftest.err conftest.$ac_objext \
  14324. conftest$ac_exeext conftest.$ac_ext
  14325. fi
  14326. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  14327. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  14328. if test $ac_cv_func_shl_load = yes; then
  14329. lt_cv_dlopen="shl_load"
  14330. else
  14331. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  14332. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  14333. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  14334. echo $ECHO_N "(cached) $ECHO_C" >&6
  14335. else
  14336. ac_check_lib_save_LIBS=$LIBS
  14337. LIBS="-ldld $LIBS"
  14338. cat >conftest.$ac_ext <<_ACEOF
  14339. /* confdefs.h. */
  14340. _ACEOF
  14341. cat confdefs.h >>conftest.$ac_ext
  14342. cat >>conftest.$ac_ext <<_ACEOF
  14343. /* end confdefs.h. */
  14344. /* Override any gcc2 internal prototype to avoid an error. */
  14345. #ifdef __cplusplus
  14346. extern "C"
  14347. #endif
  14348. /* We use char because int might match the return type of a gcc2
  14349. builtin and then its argument prototype would still apply. */
  14350. char shl_load ();
  14351. int
  14352. main ()
  14353. {
  14354. shl_load ();
  14355. ;
  14356. return 0;
  14357. }
  14358. _ACEOF
  14359. rm -f conftest.$ac_objext conftest$ac_exeext
  14360. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14361. (eval $ac_link) 2>conftest.er1
  14362. ac_status=$?
  14363. grep -v '^ *+' conftest.er1 >conftest.err
  14364. rm -f conftest.er1
  14365. cat conftest.err >&5
  14366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14367. (exit $ac_status); } &&
  14368. { ac_try='test -z "$ac_c_werror_flag"
  14369. || test ! -s conftest.err'
  14370. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14371. (eval $ac_try) 2>&5
  14372. ac_status=$?
  14373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14374. (exit $ac_status); }; } &&
  14375. { ac_try='test -s conftest$ac_exeext'
  14376. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14377. (eval $ac_try) 2>&5
  14378. ac_status=$?
  14379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14380. (exit $ac_status); }; }; then
  14381. ac_cv_lib_dld_shl_load=yes
  14382. else
  14383. echo "$as_me: failed program was:" >&5
  14384. sed 's/^/| /' conftest.$ac_ext >&5
  14385. ac_cv_lib_dld_shl_load=no
  14386. fi
  14387. rm -f conftest.err conftest.$ac_objext \
  14388. conftest$ac_exeext conftest.$ac_ext
  14389. LIBS=$ac_check_lib_save_LIBS
  14390. fi
  14391. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  14392. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  14393. if test $ac_cv_lib_dld_shl_load = yes; then
  14394. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  14395. else
  14396. echo "$as_me:$LINENO: checking for dlopen" >&5
  14397. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  14398. if test "${ac_cv_func_dlopen+set}" = set; then
  14399. echo $ECHO_N "(cached) $ECHO_C" >&6
  14400. else
  14401. cat >conftest.$ac_ext <<_ACEOF
  14402. /* confdefs.h. */
  14403. _ACEOF
  14404. cat confdefs.h >>conftest.$ac_ext
  14405. cat >>conftest.$ac_ext <<_ACEOF
  14406. /* end confdefs.h. */
  14407. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  14408. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14409. #define dlopen innocuous_dlopen
  14410. /* System header to define __stub macros and hopefully few prototypes,
  14411. which can conflict with char dlopen (); below.
  14412. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14413. <limits.h> exists even on freestanding compilers. */
  14414. #ifdef __STDC__
  14415. # include <limits.h>
  14416. #else
  14417. # include <assert.h>
  14418. #endif
  14419. #undef dlopen
  14420. /* Override any gcc2 internal prototype to avoid an error. */
  14421. #ifdef __cplusplus
  14422. extern "C"
  14423. {
  14424. #endif
  14425. /* We use char because int might match the return type of a gcc2
  14426. builtin and then its argument prototype would still apply. */
  14427. char dlopen ();
  14428. /* The GNU C library defines this for functions which it implements
  14429. to always fail with ENOSYS. Some functions are actually named
  14430. something starting with __ and the normal name is an alias. */
  14431. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  14432. choke me
  14433. #else
  14434. char (*f) () = dlopen;
  14435. #endif
  14436. #ifdef __cplusplus
  14437. }
  14438. #endif
  14439. int
  14440. main ()
  14441. {
  14442. return f != dlopen;
  14443. ;
  14444. return 0;
  14445. }
  14446. _ACEOF
  14447. rm -f conftest.$ac_objext conftest$ac_exeext
  14448. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14449. (eval $ac_link) 2>conftest.er1
  14450. ac_status=$?
  14451. grep -v '^ *+' conftest.er1 >conftest.err
  14452. rm -f conftest.er1
  14453. cat conftest.err >&5
  14454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14455. (exit $ac_status); } &&
  14456. { ac_try='test -z "$ac_c_werror_flag"
  14457. || test ! -s conftest.err'
  14458. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14459. (eval $ac_try) 2>&5
  14460. ac_status=$?
  14461. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14462. (exit $ac_status); }; } &&
  14463. { ac_try='test -s conftest$ac_exeext'
  14464. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14465. (eval $ac_try) 2>&5
  14466. ac_status=$?
  14467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14468. (exit $ac_status); }; }; then
  14469. ac_cv_func_dlopen=yes
  14470. else
  14471. echo "$as_me: failed program was:" >&5
  14472. sed 's/^/| /' conftest.$ac_ext >&5
  14473. ac_cv_func_dlopen=no
  14474. fi
  14475. rm -f conftest.err conftest.$ac_objext \
  14476. conftest$ac_exeext conftest.$ac_ext
  14477. fi
  14478. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  14479. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  14480. if test $ac_cv_func_dlopen = yes; then
  14481. lt_cv_dlopen="dlopen"
  14482. else
  14483. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  14484. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  14485. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  14486. echo $ECHO_N "(cached) $ECHO_C" >&6
  14487. else
  14488. ac_check_lib_save_LIBS=$LIBS
  14489. LIBS="-ldl $LIBS"
  14490. cat >conftest.$ac_ext <<_ACEOF
  14491. /* confdefs.h. */
  14492. _ACEOF
  14493. cat confdefs.h >>conftest.$ac_ext
  14494. cat >>conftest.$ac_ext <<_ACEOF
  14495. /* end confdefs.h. */
  14496. /* Override any gcc2 internal prototype to avoid an error. */
  14497. #ifdef __cplusplus
  14498. extern "C"
  14499. #endif
  14500. /* We use char because int might match the return type of a gcc2
  14501. builtin and then its argument prototype would still apply. */
  14502. char dlopen ();
  14503. int
  14504. main ()
  14505. {
  14506. dlopen ();
  14507. ;
  14508. return 0;
  14509. }
  14510. _ACEOF
  14511. rm -f conftest.$ac_objext conftest$ac_exeext
  14512. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14513. (eval $ac_link) 2>conftest.er1
  14514. ac_status=$?
  14515. grep -v '^ *+' conftest.er1 >conftest.err
  14516. rm -f conftest.er1
  14517. cat conftest.err >&5
  14518. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14519. (exit $ac_status); } &&
  14520. { ac_try='test -z "$ac_c_werror_flag"
  14521. || test ! -s conftest.err'
  14522. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14523. (eval $ac_try) 2>&5
  14524. ac_status=$?
  14525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14526. (exit $ac_status); }; } &&
  14527. { ac_try='test -s conftest$ac_exeext'
  14528. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14529. (eval $ac_try) 2>&5
  14530. ac_status=$?
  14531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14532. (exit $ac_status); }; }; then
  14533. ac_cv_lib_dl_dlopen=yes
  14534. else
  14535. echo "$as_me: failed program was:" >&5
  14536. sed 's/^/| /' conftest.$ac_ext >&5
  14537. ac_cv_lib_dl_dlopen=no
  14538. fi
  14539. rm -f conftest.err conftest.$ac_objext \
  14540. conftest$ac_exeext conftest.$ac_ext
  14541. LIBS=$ac_check_lib_save_LIBS
  14542. fi
  14543. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  14544. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  14545. if test $ac_cv_lib_dl_dlopen = yes; then
  14546. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  14547. else
  14548. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  14549. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  14550. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  14551. echo $ECHO_N "(cached) $ECHO_C" >&6
  14552. else
  14553. ac_check_lib_save_LIBS=$LIBS
  14554. LIBS="-lsvld $LIBS"
  14555. cat >conftest.$ac_ext <<_ACEOF
  14556. /* confdefs.h. */
  14557. _ACEOF
  14558. cat confdefs.h >>conftest.$ac_ext
  14559. cat >>conftest.$ac_ext <<_ACEOF
  14560. /* end confdefs.h. */
  14561. /* Override any gcc2 internal prototype to avoid an error. */
  14562. #ifdef __cplusplus
  14563. extern "C"
  14564. #endif
  14565. /* We use char because int might match the return type of a gcc2
  14566. builtin and then its argument prototype would still apply. */
  14567. char dlopen ();
  14568. int
  14569. main ()
  14570. {
  14571. dlopen ();
  14572. ;
  14573. return 0;
  14574. }
  14575. _ACEOF
  14576. rm -f conftest.$ac_objext conftest$ac_exeext
  14577. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14578. (eval $ac_link) 2>conftest.er1
  14579. ac_status=$?
  14580. grep -v '^ *+' conftest.er1 >conftest.err
  14581. rm -f conftest.er1
  14582. cat conftest.err >&5
  14583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14584. (exit $ac_status); } &&
  14585. { ac_try='test -z "$ac_c_werror_flag"
  14586. || test ! -s conftest.err'
  14587. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14588. (eval $ac_try) 2>&5
  14589. ac_status=$?
  14590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14591. (exit $ac_status); }; } &&
  14592. { ac_try='test -s conftest$ac_exeext'
  14593. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14594. (eval $ac_try) 2>&5
  14595. ac_status=$?
  14596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14597. (exit $ac_status); }; }; then
  14598. ac_cv_lib_svld_dlopen=yes
  14599. else
  14600. echo "$as_me: failed program was:" >&5
  14601. sed 's/^/| /' conftest.$ac_ext >&5
  14602. ac_cv_lib_svld_dlopen=no
  14603. fi
  14604. rm -f conftest.err conftest.$ac_objext \
  14605. conftest$ac_exeext conftest.$ac_ext
  14606. LIBS=$ac_check_lib_save_LIBS
  14607. fi
  14608. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  14609. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  14610. if test $ac_cv_lib_svld_dlopen = yes; then
  14611. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  14612. else
  14613. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  14614. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  14615. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  14616. echo $ECHO_N "(cached) $ECHO_C" >&6
  14617. else
  14618. ac_check_lib_save_LIBS=$LIBS
  14619. LIBS="-ldld $LIBS"
  14620. cat >conftest.$ac_ext <<_ACEOF
  14621. /* confdefs.h. */
  14622. _ACEOF
  14623. cat confdefs.h >>conftest.$ac_ext
  14624. cat >>conftest.$ac_ext <<_ACEOF
  14625. /* end confdefs.h. */
  14626. /* Override any gcc2 internal prototype to avoid an error. */
  14627. #ifdef __cplusplus
  14628. extern "C"
  14629. #endif
  14630. /* We use char because int might match the return type of a gcc2
  14631. builtin and then its argument prototype would still apply. */
  14632. char dld_link ();
  14633. int
  14634. main ()
  14635. {
  14636. dld_link ();
  14637. ;
  14638. return 0;
  14639. }
  14640. _ACEOF
  14641. rm -f conftest.$ac_objext conftest$ac_exeext
  14642. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14643. (eval $ac_link) 2>conftest.er1
  14644. ac_status=$?
  14645. grep -v '^ *+' conftest.er1 >conftest.err
  14646. rm -f conftest.er1
  14647. cat conftest.err >&5
  14648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14649. (exit $ac_status); } &&
  14650. { ac_try='test -z "$ac_c_werror_flag"
  14651. || test ! -s conftest.err'
  14652. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14653. (eval $ac_try) 2>&5
  14654. ac_status=$?
  14655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14656. (exit $ac_status); }; } &&
  14657. { ac_try='test -s conftest$ac_exeext'
  14658. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14659. (eval $ac_try) 2>&5
  14660. ac_status=$?
  14661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14662. (exit $ac_status); }; }; then
  14663. ac_cv_lib_dld_dld_link=yes
  14664. else
  14665. echo "$as_me: failed program was:" >&5
  14666. sed 's/^/| /' conftest.$ac_ext >&5
  14667. ac_cv_lib_dld_dld_link=no
  14668. fi
  14669. rm -f conftest.err conftest.$ac_objext \
  14670. conftest$ac_exeext conftest.$ac_ext
  14671. LIBS=$ac_check_lib_save_LIBS
  14672. fi
  14673. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  14674. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  14675. if test $ac_cv_lib_dld_dld_link = yes; then
  14676. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  14677. fi
  14678. fi
  14679. fi
  14680. fi
  14681. fi
  14682. fi
  14683. ;;
  14684. esac
  14685. if test "x$lt_cv_dlopen" != xno; then
  14686. enable_dlopen=yes
  14687. else
  14688. enable_dlopen=no
  14689. fi
  14690. case $lt_cv_dlopen in
  14691. dlopen)
  14692. save_CPPFLAGS="$CPPFLAGS"
  14693. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  14694. save_LDFLAGS="$LDFLAGS"
  14695. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  14696. save_LIBS="$LIBS"
  14697. LIBS="$lt_cv_dlopen_libs $LIBS"
  14698. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  14699. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  14700. if test "${lt_cv_dlopen_self+set}" = set; then
  14701. echo $ECHO_N "(cached) $ECHO_C" >&6
  14702. else
  14703. if test "$cross_compiling" = yes; then :
  14704. lt_cv_dlopen_self=cross
  14705. else
  14706. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  14707. lt_status=$lt_dlunknown
  14708. cat > conftest.$ac_ext <<EOF
  14709. #line 16517 "configure"
  14710. #include "confdefs.h"
  14711. #if HAVE_DLFCN_H
  14712. #include <dlfcn.h>
  14713. #endif
  14714. #include <stdio.h>
  14715. #ifdef RTLD_GLOBAL
  14716. # define LT_DLGLOBAL RTLD_GLOBAL
  14717. #else
  14718. # ifdef DL_GLOBAL
  14719. # define LT_DLGLOBAL DL_GLOBAL
  14720. # else
  14721. # define LT_DLGLOBAL 0
  14722. # endif
  14723. #endif
  14724. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  14725. find out it does not work in some platform. */
  14726. #ifndef LT_DLLAZY_OR_NOW
  14727. # ifdef RTLD_LAZY
  14728. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  14729. # else
  14730. # ifdef DL_LAZY
  14731. # define LT_DLLAZY_OR_NOW DL_LAZY
  14732. # else
  14733. # ifdef RTLD_NOW
  14734. # define LT_DLLAZY_OR_NOW RTLD_NOW
  14735. # else
  14736. # ifdef DL_NOW
  14737. # define LT_DLLAZY_OR_NOW DL_NOW
  14738. # else
  14739. # define LT_DLLAZY_OR_NOW 0
  14740. # endif
  14741. # endif
  14742. # endif
  14743. # endif
  14744. #endif
  14745. #ifdef __cplusplus
  14746. extern "C" void exit (int);
  14747. #endif
  14748. void fnord() { int i=42;}
  14749. int main ()
  14750. {
  14751. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  14752. int status = $lt_dlunknown;
  14753. if (self)
  14754. {
  14755. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  14756. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  14757. /* dlclose (self); */
  14758. }
  14759. exit (status);
  14760. }
  14761. EOF
  14762. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14763. (eval $ac_link) 2>&5
  14764. ac_status=$?
  14765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14766. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  14767. (./conftest; exit; ) 2>/dev/null
  14768. lt_status=$?
  14769. case x$lt_status in
  14770. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  14771. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  14772. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  14773. esac
  14774. else :
  14775. # compilation failed
  14776. lt_cv_dlopen_self=no
  14777. fi
  14778. fi
  14779. rm -fr conftest*
  14780. fi
  14781. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  14782. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  14783. if test "x$lt_cv_dlopen_self" = xyes; then
  14784. LDFLAGS="$LDFLAGS $link_static_flag"
  14785. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  14786. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  14787. if test "${lt_cv_dlopen_self_static+set}" = set; then
  14788. echo $ECHO_N "(cached) $ECHO_C" >&6
  14789. else
  14790. if test "$cross_compiling" = yes; then :
  14791. lt_cv_dlopen_self_static=cross
  14792. else
  14793. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  14794. lt_status=$lt_dlunknown
  14795. cat > conftest.$ac_ext <<EOF
  14796. #line 16615 "configure"
  14797. #include "confdefs.h"
  14798. #if HAVE_DLFCN_H
  14799. #include <dlfcn.h>
  14800. #endif
  14801. #include <stdio.h>
  14802. #ifdef RTLD_GLOBAL
  14803. # define LT_DLGLOBAL RTLD_GLOBAL
  14804. #else
  14805. # ifdef DL_GLOBAL
  14806. # define LT_DLGLOBAL DL_GLOBAL
  14807. # else
  14808. # define LT_DLGLOBAL 0
  14809. # endif
  14810. #endif
  14811. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  14812. find out it does not work in some platform. */
  14813. #ifndef LT_DLLAZY_OR_NOW
  14814. # ifdef RTLD_LAZY
  14815. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  14816. # else
  14817. # ifdef DL_LAZY
  14818. # define LT_DLLAZY_OR_NOW DL_LAZY
  14819. # else
  14820. # ifdef RTLD_NOW
  14821. # define LT_DLLAZY_OR_NOW RTLD_NOW
  14822. # else
  14823. # ifdef DL_NOW
  14824. # define LT_DLLAZY_OR_NOW DL_NOW
  14825. # else
  14826. # define LT_DLLAZY_OR_NOW 0
  14827. # endif
  14828. # endif
  14829. # endif
  14830. # endif
  14831. #endif
  14832. #ifdef __cplusplus
  14833. extern "C" void exit (int);
  14834. #endif
  14835. void fnord() { int i=42;}
  14836. int main ()
  14837. {
  14838. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  14839. int status = $lt_dlunknown;
  14840. if (self)
  14841. {
  14842. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  14843. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  14844. /* dlclose (self); */
  14845. }
  14846. exit (status);
  14847. }
  14848. EOF
  14849. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14850. (eval $ac_link) 2>&5
  14851. ac_status=$?
  14852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14853. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  14854. (./conftest; exit; ) 2>/dev/null
  14855. lt_status=$?
  14856. case x$lt_status in
  14857. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  14858. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  14859. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  14860. esac
  14861. else :
  14862. # compilation failed
  14863. lt_cv_dlopen_self_static=no
  14864. fi
  14865. fi
  14866. rm -fr conftest*
  14867. fi
  14868. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  14869. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  14870. fi
  14871. CPPFLAGS="$save_CPPFLAGS"
  14872. LDFLAGS="$save_LDFLAGS"
  14873. LIBS="$save_LIBS"
  14874. ;;
  14875. esac
  14876. case $lt_cv_dlopen_self in
  14877. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  14878. *) enable_dlopen_self=unknown ;;
  14879. esac
  14880. case $lt_cv_dlopen_self_static in
  14881. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  14882. *) enable_dlopen_self_static=unknown ;;
  14883. esac
  14884. fi
  14885. # The else clause should only fire when bootstrapping the
  14886. # libtool distribution, otherwise you forgot to ship ltmain.sh
  14887. # with your package, and you will get complaints that there are
  14888. # no rules to generate ltmain.sh.
  14889. if test -f "$ltmain"; then
  14890. # Now quote all the things that may contain metacharacters while being
  14891. # careful not to overquote the AC_SUBSTed values. We take copies of the
  14892. # variables and quote the copies for generation of the libtool script.
  14893. for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
  14894. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  14895. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  14896. deplibs_check_method reload_flag reload_cmds need_locks \
  14897. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  14898. lt_cv_sys_global_symbol_to_c_name_address \
  14899. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  14900. old_postinstall_cmds old_postuninstall_cmds \
  14901. compiler_GCJ \
  14902. CC_GCJ \
  14903. LD_GCJ \
  14904. lt_prog_compiler_wl_GCJ \
  14905. lt_prog_compiler_pic_GCJ \
  14906. lt_prog_compiler_static_GCJ \
  14907. lt_prog_compiler_no_builtin_flag_GCJ \
  14908. export_dynamic_flag_spec_GCJ \
  14909. thread_safe_flag_spec_GCJ \
  14910. whole_archive_flag_spec_GCJ \
  14911. old_archive_cmds_GCJ \
  14912. old_archive_from_new_cmds_GCJ \
  14913. predep_objects_GCJ \
  14914. postdep_objects_GCJ \
  14915. predeps_GCJ \
  14916. postdeps_GCJ \
  14917. compiler_lib_search_path_GCJ \
  14918. archive_cmds_GCJ \
  14919. archive_expsym_cmds_GCJ \
  14920. postinstall_cmds_GCJ \
  14921. postuninstall_cmds_GCJ \
  14922. old_archive_from_expsyms_cmds_GCJ \
  14923. allow_undefined_flag_GCJ \
  14924. no_undefined_flag_GCJ \
  14925. export_symbols_cmds_GCJ \
  14926. hardcode_libdir_flag_spec_GCJ \
  14927. hardcode_libdir_separator_GCJ \
  14928. lt_cv_prog_compiler_c_o_GCJ \
  14929. exclude_expsyms_GCJ \
  14930. include_expsyms_GCJ; do
  14931. case $var in
  14932. old_archive_cmds_GCJ | \
  14933. old_archive_from_new_cmds_GCJ | \
  14934. archive_cmds_GCJ | \
  14935. archive_expsym_cmds_GCJ | \
  14936. old_archive_from_expsyms_cmds_GCJ | \
  14937. export_symbols_cmds_GCJ | \
  14938. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  14939. postinstall_cmds | postuninstall_cmds | \
  14940. old_postinstall_cmds | old_postuninstall_cmds | \
  14941. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  14942. # Double-quote double-evaled strings.
  14943. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  14944. ;;
  14945. *)
  14946. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  14947. ;;
  14948. esac
  14949. done
  14950. case $lt_echo in
  14951. *'\$0 --fallback-echo"')
  14952. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  14953. ;;
  14954. esac
  14955. cfgfile="$ofile"
  14956. cat <<__EOF__ >> "$cfgfile"
  14957. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  14958. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14959. # Shell to use when invoking shell scripts.
  14960. SHELL=$lt_SHELL
  14961. # Whether or not to build shared libraries.
  14962. build_libtool_libs=$enable_shared
  14963. # Whether or not to build static libraries.
  14964. build_old_libs=$enable_static
  14965. # Whether or not to add -lc for building shared libraries.
  14966. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  14967. # Whether or not to optimize for fast installation.
  14968. fast_install=$enable_fast_install
  14969. # The host system.
  14970. host_alias=$host_alias
  14971. host=$host
  14972. # An echo program that does not interpret backslashes.
  14973. echo=$lt_echo
  14974. # The archiver.
  14975. AR=$lt_AR
  14976. AR_FLAGS=$lt_AR_FLAGS
  14977. # A C compiler.
  14978. LTCC=$lt_LTCC
  14979. # A language-specific compiler.
  14980. CC=$lt_compiler_GCJ
  14981. # Is the compiler the GNU C compiler?
  14982. with_gcc=$GCC_GCJ
  14983. # The linker used to build libraries.
  14984. LD=$lt_LD_GCJ
  14985. # Whether we need hard or soft links.
  14986. LN_S=$lt_LN_S
  14987. # A BSD-compatible nm program.
  14988. NM=$lt_NM
  14989. # A sed program that does not truncate output.
  14990. SED=$lt_SED
  14991. # A symbol stripping program
  14992. STRIP=$STRIP
  14993. # Used to examine libraries when file_magic_cmd begins "file"
  14994. MAGIC_CMD=$MAGIC_CMD
  14995. # Used on cygwin: DLL creation program.
  14996. DLLTOOL="$DLLTOOL"
  14997. # Used on cygwin: object dumper.
  14998. OBJDUMP="$OBJDUMP"
  14999. # Used on cygwin: assembler.
  15000. AS="$AS"
  15001. # The name of the directory that contains temporary libtool files.
  15002. objdir=$objdir
  15003. # How to create reloadable object files.
  15004. reload_flag=$lt_reload_flag
  15005. reload_cmds=$lt_reload_cmds
  15006. # How to pass a linker flag through the compiler.
  15007. wl=$lt_lt_prog_compiler_wl_GCJ
  15008. # Object file suffix (normally "o").
  15009. objext="$ac_objext"
  15010. # Old archive suffix (normally "a").
  15011. libext="$libext"
  15012. # Executable file suffix (normally "").
  15013. exeext="$exeext"
  15014. # Additional compiler flags for building library objects.
  15015. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  15016. pic_mode=$pic_mode
  15017. # What is the maximum length of a command?
  15018. max_cmd_len=$lt_cv_sys_max_cmd_len
  15019. # Does compiler simultaneously support -c and -o options?
  15020. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  15021. # Must we lock files when doing compilation ?
  15022. need_locks=$lt_need_locks
  15023. # Do we need the lib prefix for modules?
  15024. need_lib_prefix=$need_lib_prefix
  15025. # Do we need a version for libraries?
  15026. need_version=$need_version
  15027. # Whether dlopen is supported.
  15028. dlopen_support=$enable_dlopen
  15029. # Whether dlopen of programs is supported.
  15030. dlopen_self=$enable_dlopen_self
  15031. # Whether dlopen of statically linked programs is supported.
  15032. dlopen_self_static=$enable_dlopen_self_static
  15033. # Compiler flag to prevent dynamic linking.
  15034. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  15035. # Compiler flag to turn off builtin functions.
  15036. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  15037. # Compiler flag to allow reflexive dlopens.
  15038. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  15039. # Compiler flag to generate shared objects directly from archives.
  15040. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  15041. # Compiler flag to generate thread-safe objects.
  15042. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  15043. # Library versioning type.
  15044. version_type=$version_type
  15045. # Format of library name prefix.
  15046. libname_spec=$lt_libname_spec
  15047. # List of archive names. First name is the real one, the rest are links.
  15048. # The last name is the one that the linker finds with -lNAME.
  15049. library_names_spec=$lt_library_names_spec
  15050. # The coded name of the library, if different from the real name.
  15051. soname_spec=$lt_soname_spec
  15052. # Commands used to build and install an old-style archive.
  15053. RANLIB=$lt_RANLIB
  15054. old_archive_cmds=$lt_old_archive_cmds_GCJ
  15055. old_postinstall_cmds=$lt_old_postinstall_cmds
  15056. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15057. # Create an old-style archive from a shared archive.
  15058. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  15059. # Create a temporary old-style archive to link instead of a shared archive.
  15060. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  15061. # Commands used to build and install a shared archive.
  15062. archive_cmds=$lt_archive_cmds_GCJ
  15063. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  15064. postinstall_cmds=$lt_postinstall_cmds
  15065. postuninstall_cmds=$lt_postuninstall_cmds
  15066. # Commands to strip libraries.
  15067. old_striplib=$lt_old_striplib
  15068. striplib=$lt_striplib
  15069. # Dependencies to place before the objects being linked to create a
  15070. # shared library.
  15071. predep_objects=$lt_predep_objects_GCJ
  15072. # Dependencies to place after the objects being linked to create a
  15073. # shared library.
  15074. postdep_objects=$lt_postdep_objects_GCJ
  15075. # Dependencies to place before the objects being linked to create a
  15076. # shared library.
  15077. predeps=$lt_predeps_GCJ
  15078. # Dependencies to place after the objects being linked to create a
  15079. # shared library.
  15080. postdeps=$lt_postdeps_GCJ
  15081. # The library search path used internally by the compiler when linking
  15082. # a shared library.
  15083. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  15084. # Method to check whether dependent libraries are shared objects.
  15085. deplibs_check_method=$lt_deplibs_check_method
  15086. # Command to use when deplibs_check_method == file_magic.
  15087. file_magic_cmd=$lt_file_magic_cmd
  15088. # Flag that allows shared libraries with undefined symbols to be built.
  15089. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  15090. # Flag that forces no undefined symbols.
  15091. no_undefined_flag=$lt_no_undefined_flag_GCJ
  15092. # Commands used to finish a libtool library installation in a directory.
  15093. finish_cmds=$lt_finish_cmds
  15094. # Same as above, but a single script fragment to be evaled but not shown.
  15095. finish_eval=$lt_finish_eval
  15096. # Take the output of nm and produce a listing of raw symbols and C names.
  15097. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15098. # Transform the output of nm in a proper C declaration
  15099. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15100. # Transform the output of nm in a C name address pair
  15101. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15102. # This is the shared library runtime path variable.
  15103. runpath_var=$runpath_var
  15104. # This is the shared library path variable.
  15105. shlibpath_var=$shlibpath_var
  15106. # Is shlibpath searched before the hard-coded library search path?
  15107. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15108. # How to hardcode a shared library path into an executable.
  15109. hardcode_action=$hardcode_action_GCJ
  15110. # Whether we should hardcode library paths into libraries.
  15111. hardcode_into_libs=$hardcode_into_libs
  15112. # Flag to hardcode \$libdir into a binary during linking.
  15113. # This must work even if \$libdir does not exist.
  15114. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  15115. # Whether we need a single -rpath flag with a separated argument.
  15116. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  15117. # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
  15118. # resulting binary.
  15119. hardcode_direct=$hardcode_direct_GCJ
  15120. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  15121. # resulting binary.
  15122. hardcode_minus_L=$hardcode_minus_L_GCJ
  15123. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  15124. # the resulting binary.
  15125. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  15126. # Variables whose values should be saved in libtool wrapper scripts and
  15127. # restored at relink time.
  15128. variables_saved_for_relink="$variables_saved_for_relink"
  15129. # Whether libtool must link a program against all its dependency libraries.
  15130. link_all_deplibs=$link_all_deplibs_GCJ
  15131. # Compile-time system search path for libraries
  15132. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15133. # Run-time system search path for libraries
  15134. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15135. # Fix the shell variable \$srcfile for the compiler.
  15136. fix_srcfile_path="$fix_srcfile_path_GCJ"
  15137. # Set to yes if exported symbols are required.
  15138. always_export_symbols=$always_export_symbols_GCJ
  15139. # The commands to list exported symbols.
  15140. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  15141. # The commands to extract the exported symbol list from a shared archive.
  15142. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15143. # Symbols that should not be listed in the preloaded symbols.
  15144. exclude_expsyms=$lt_exclude_expsyms_GCJ
  15145. # Symbols that must always be exported.
  15146. include_expsyms=$lt_include_expsyms_GCJ
  15147. # ### END LIBTOOL TAG CONFIG: $tagname
  15148. __EOF__
  15149. else
  15150. # If there is no Makefile yet, we rely on a make rule to execute
  15151. # `config.status --recheck' to rerun these tests and create the
  15152. # libtool script then.
  15153. test -f Makefile && make "$ltmain"
  15154. fi
  15155. ac_ext=c
  15156. ac_cpp='$CPP $CPPFLAGS'
  15157. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15158. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15159. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15160. CC="$lt_save_CC"
  15161. ;;
  15162. RC)
  15163. # Source file extension for RC test sources.
  15164. ac_ext=rc
  15165. # Object file extension for compiled RC test sources.
  15166. objext=o
  15167. objext_RC=$objext
  15168. # Code to be used in simple compile tests
  15169. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  15170. # Code to be used in simple link tests
  15171. lt_simple_link_test_code="$lt_simple_compile_test_code"
  15172. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  15173. # If no C compiler was specified, use CC.
  15174. LTCC=${LTCC-"$CC"}
  15175. # Allow CC to be a program name with arguments.
  15176. set dummy $CC
  15177. compiler="$2"
  15178. # Allow CC to be a program name with arguments.
  15179. lt_save_CC="$CC"
  15180. CC=${RC-"windres"}
  15181. set dummy $CC
  15182. compiler="$2"
  15183. compiler_RC=$CC
  15184. lt_cv_prog_compiler_c_o_RC=yes
  15185. # The else clause should only fire when bootstrapping the
  15186. # libtool distribution, otherwise you forgot to ship ltmain.sh
  15187. # with your package, and you will get complaints that there are
  15188. # no rules to generate ltmain.sh.
  15189. if test -f "$ltmain"; then
  15190. # Now quote all the things that may contain metacharacters while being
  15191. # careful not to overquote the AC_SUBSTed values. We take copies of the
  15192. # variables and quote the copies for generation of the libtool script.
  15193. for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
  15194. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  15195. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  15196. deplibs_check_method reload_flag reload_cmds need_locks \
  15197. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  15198. lt_cv_sys_global_symbol_to_c_name_address \
  15199. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  15200. old_postinstall_cmds old_postuninstall_cmds \
  15201. compiler_RC \
  15202. CC_RC \
  15203. LD_RC \
  15204. lt_prog_compiler_wl_RC \
  15205. lt_prog_compiler_pic_RC \
  15206. lt_prog_compiler_static_RC \
  15207. lt_prog_compiler_no_builtin_flag_RC \
  15208. export_dynamic_flag_spec_RC \
  15209. thread_safe_flag_spec_RC \
  15210. whole_archive_flag_spec_RC \
  15211. old_archive_cmds_RC \
  15212. old_archive_from_new_cmds_RC \
  15213. predep_objects_RC \
  15214. postdep_objects_RC \
  15215. predeps_RC \
  15216. postdeps_RC \
  15217. compiler_lib_search_path_RC \
  15218. archive_cmds_RC \
  15219. archive_expsym_cmds_RC \
  15220. postinstall_cmds_RC \
  15221. postuninstall_cmds_RC \
  15222. old_archive_from_expsyms_cmds_RC \
  15223. allow_undefined_flag_RC \
  15224. no_undefined_flag_RC \
  15225. export_symbols_cmds_RC \
  15226. hardcode_libdir_flag_spec_RC \
  15227. hardcode_libdir_separator_RC \
  15228. lt_cv_prog_compiler_c_o_RC \
  15229. exclude_expsyms_RC \
  15230. include_expsyms_RC; do
  15231. case $var in
  15232. old_archive_cmds_RC | \
  15233. old_archive_from_new_cmds_RC | \
  15234. archive_cmds_RC | \
  15235. archive_expsym_cmds_RC | \
  15236. old_archive_from_expsyms_cmds_RC | \
  15237. export_symbols_cmds_RC | \
  15238. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  15239. postinstall_cmds | postuninstall_cmds | \
  15240. old_postinstall_cmds | old_postuninstall_cmds | \
  15241. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  15242. # Double-quote double-evaled strings.
  15243. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  15244. ;;
  15245. *)
  15246. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  15247. ;;
  15248. esac
  15249. done
  15250. case $lt_echo in
  15251. *'\$0 --fallback-echo"')
  15252. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  15253. ;;
  15254. esac
  15255. cfgfile="$ofile"
  15256. cat <<__EOF__ >> "$cfgfile"
  15257. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  15258. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15259. # Shell to use when invoking shell scripts.
  15260. SHELL=$lt_SHELL
  15261. # Whether or not to build shared libraries.
  15262. build_libtool_libs=$enable_shared
  15263. # Whether or not to build static libraries.
  15264. build_old_libs=$enable_static
  15265. # Whether or not to add -lc for building shared libraries.
  15266. build_libtool_need_lc=$archive_cmds_need_lc_RC
  15267. # Whether or not to optimize for fast installation.
  15268. fast_install=$enable_fast_install
  15269. # The host system.
  15270. host_alias=$host_alias
  15271. host=$host
  15272. # An echo program that does not interpret backslashes.
  15273. echo=$lt_echo
  15274. # The archiver.
  15275. AR=$lt_AR
  15276. AR_FLAGS=$lt_AR_FLAGS
  15277. # A C compiler.
  15278. LTCC=$lt_LTCC
  15279. # A language-specific compiler.
  15280. CC=$lt_compiler_RC
  15281. # Is the compiler the GNU C compiler?
  15282. with_gcc=$GCC_RC
  15283. # The linker used to build libraries.
  15284. LD=$lt_LD_RC
  15285. # Whether we need hard or soft links.
  15286. LN_S=$lt_LN_S
  15287. # A BSD-compatible nm program.
  15288. NM=$lt_NM
  15289. # A sed program that does not truncate output.
  15290. SED=$lt_SED
  15291. # A symbol stripping program
  15292. STRIP=$STRIP
  15293. # Used to examine libraries when file_magic_cmd begins "file"
  15294. MAGIC_CMD=$MAGIC_CMD
  15295. # Used on cygwin: DLL creation program.
  15296. DLLTOOL="$DLLTOOL"
  15297. # Used on cygwin: object dumper.
  15298. OBJDUMP="$OBJDUMP"
  15299. # Used on cygwin: assembler.
  15300. AS="$AS"
  15301. # The name of the directory that contains temporary libtool files.
  15302. objdir=$objdir
  15303. # How to create reloadable object files.
  15304. reload_flag=$lt_reload_flag
  15305. reload_cmds=$lt_reload_cmds
  15306. # How to pass a linker flag through the compiler.
  15307. wl=$lt_lt_prog_compiler_wl_RC
  15308. # Object file suffix (normally "o").
  15309. objext="$ac_objext"
  15310. # Old archive suffix (normally "a").
  15311. libext="$libext"
  15312. # Executable file suffix (normally "").
  15313. exeext="$exeext"
  15314. # Additional compiler flags for building library objects.
  15315. pic_flag=$lt_lt_prog_compiler_pic_RC
  15316. pic_mode=$pic_mode
  15317. # What is the maximum length of a command?
  15318. max_cmd_len=$lt_cv_sys_max_cmd_len
  15319. # Does compiler simultaneously support -c and -o options?
  15320. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  15321. # Must we lock files when doing compilation ?
  15322. need_locks=$lt_need_locks
  15323. # Do we need the lib prefix for modules?
  15324. need_lib_prefix=$need_lib_prefix
  15325. # Do we need a version for libraries?
  15326. need_version=$need_version
  15327. # Whether dlopen is supported.
  15328. dlopen_support=$enable_dlopen
  15329. # Whether dlopen of programs is supported.
  15330. dlopen_self=$enable_dlopen_self
  15331. # Whether dlopen of statically linked programs is supported.
  15332. dlopen_self_static=$enable_dlopen_self_static
  15333. # Compiler flag to prevent dynamic linking.
  15334. link_static_flag=$lt_lt_prog_compiler_static_RC
  15335. # Compiler flag to turn off builtin functions.
  15336. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  15337. # Compiler flag to allow reflexive dlopens.
  15338. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  15339. # Compiler flag to generate shared objects directly from archives.
  15340. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  15341. # Compiler flag to generate thread-safe objects.
  15342. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  15343. # Library versioning type.
  15344. version_type=$version_type
  15345. # Format of library name prefix.
  15346. libname_spec=$lt_libname_spec
  15347. # List of archive names. First name is the real one, the rest are links.
  15348. # The last name is the one that the linker finds with -lNAME.
  15349. library_names_spec=$lt_library_names_spec
  15350. # The coded name of the library, if different from the real name.
  15351. soname_spec=$lt_soname_spec
  15352. # Commands used to build and install an old-style archive.
  15353. RANLIB=$lt_RANLIB
  15354. old_archive_cmds=$lt_old_archive_cmds_RC
  15355. old_postinstall_cmds=$lt_old_postinstall_cmds
  15356. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15357. # Create an old-style archive from a shared archive.
  15358. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  15359. # Create a temporary old-style archive to link instead of a shared archive.
  15360. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  15361. # Commands used to build and install a shared archive.
  15362. archive_cmds=$lt_archive_cmds_RC
  15363. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  15364. postinstall_cmds=$lt_postinstall_cmds
  15365. postuninstall_cmds=$lt_postuninstall_cmds
  15366. # Commands to strip libraries.
  15367. old_striplib=$lt_old_striplib
  15368. striplib=$lt_striplib
  15369. # Dependencies to place before the objects being linked to create a
  15370. # shared library.
  15371. predep_objects=$lt_predep_objects_RC
  15372. # Dependencies to place after the objects being linked to create a
  15373. # shared library.
  15374. postdep_objects=$lt_postdep_objects_RC
  15375. # Dependencies to place before the objects being linked to create a
  15376. # shared library.
  15377. predeps=$lt_predeps_RC
  15378. # Dependencies to place after the objects being linked to create a
  15379. # shared library.
  15380. postdeps=$lt_postdeps_RC
  15381. # The library search path used internally by the compiler when linking
  15382. # a shared library.
  15383. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  15384. # Method to check whether dependent libraries are shared objects.
  15385. deplibs_check_method=$lt_deplibs_check_method
  15386. # Command to use when deplibs_check_method == file_magic.
  15387. file_magic_cmd=$lt_file_magic_cmd
  15388. # Flag that allows shared libraries with undefined symbols to be built.
  15389. allow_undefined_flag=$lt_allow_undefined_flag_RC
  15390. # Flag that forces no undefined symbols.
  15391. no_undefined_flag=$lt_no_undefined_flag_RC
  15392. # Commands used to finish a libtool library installation in a directory.
  15393. finish_cmds=$lt_finish_cmds
  15394. # Same as above, but a single script fragment to be evaled but not shown.
  15395. finish_eval=$lt_finish_eval
  15396. # Take the output of nm and produce a listing of raw symbols and C names.
  15397. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15398. # Transform the output of nm in a proper C declaration
  15399. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15400. # Transform the output of nm in a C name address pair
  15401. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15402. # This is the shared library runtime path variable.
  15403. runpath_var=$runpath_var
  15404. # This is the shared library path variable.
  15405. shlibpath_var=$shlibpath_var
  15406. # Is shlibpath searched before the hard-coded library search path?
  15407. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15408. # How to hardcode a shared library path into an executable.
  15409. hardcode_action=$hardcode_action_RC
  15410. # Whether we should hardcode library paths into libraries.
  15411. hardcode_into_libs=$hardcode_into_libs
  15412. # Flag to hardcode \$libdir into a binary during linking.
  15413. # This must work even if \$libdir does not exist.
  15414. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  15415. # Whether we need a single -rpath flag with a separated argument.
  15416. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  15417. # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
  15418. # resulting binary.
  15419. hardcode_direct=$hardcode_direct_RC
  15420. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  15421. # resulting binary.
  15422. hardcode_minus_L=$hardcode_minus_L_RC
  15423. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  15424. # the resulting binary.
  15425. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  15426. # Variables whose values should be saved in libtool wrapper scripts and
  15427. # restored at relink time.
  15428. variables_saved_for_relink="$variables_saved_for_relink"
  15429. # Whether libtool must link a program against all its dependency libraries.
  15430. link_all_deplibs=$link_all_deplibs_RC
  15431. # Compile-time system search path for libraries
  15432. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15433. # Run-time system search path for libraries
  15434. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15435. # Fix the shell variable \$srcfile for the compiler.
  15436. fix_srcfile_path="$fix_srcfile_path_RC"
  15437. # Set to yes if exported symbols are required.
  15438. always_export_symbols=$always_export_symbols_RC
  15439. # The commands to list exported symbols.
  15440. export_symbols_cmds=$lt_export_symbols_cmds_RC
  15441. # The commands to extract the exported symbol list from a shared archive.
  15442. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15443. # Symbols that should not be listed in the preloaded symbols.
  15444. exclude_expsyms=$lt_exclude_expsyms_RC
  15445. # Symbols that must always be exported.
  15446. include_expsyms=$lt_include_expsyms_RC
  15447. # ### END LIBTOOL TAG CONFIG: $tagname
  15448. __EOF__
  15449. else
  15450. # If there is no Makefile yet, we rely on a make rule to execute
  15451. # `config.status --recheck' to rerun these tests and create the
  15452. # libtool script then.
  15453. test -f Makefile && make "$ltmain"
  15454. fi
  15455. ac_ext=c
  15456. ac_cpp='$CPP $CPPFLAGS'
  15457. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15458. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15459. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15460. CC="$lt_save_CC"
  15461. ;;
  15462. *)
  15463. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  15464. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  15465. { (exit 1); exit 1; }; }
  15466. ;;
  15467. esac
  15468. # Append the new tag name to the list of available tags.
  15469. available_tags="$available_tags $tagname"
  15470. fi
  15471. done
  15472. IFS="$lt_save_ifs"
  15473. # Now substitute the updated list of available tags.
  15474. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  15475. mv "${ofile}T" "$ofile"
  15476. chmod +x "$ofile"
  15477. else
  15478. rm -f "${ofile}T"
  15479. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  15480. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  15481. { (exit 1); exit 1; }; }
  15482. fi
  15483. fi
  15484. # This can be used to rebuild libtool when needed
  15485. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  15486. # Always use our own libtool.
  15487. LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent'
  15488. # Prevent multiple expansion
  15489. ac_ext=c
  15490. ac_cpp='$CPP $CPPFLAGS'
  15491. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15492. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15493. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15494. ac_ext=c
  15495. ac_cpp='$CPP $CPPFLAGS'
  15496. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15497. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15498. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15499. LIBTOOL_SHELL="/bin/sh ./libtool"
  15500. # LIBTOOL="$LIBTOOL --silent"
  15501. KDE_PLUGIN="-avoid-version -module -no-undefined \$(KDE_NO_UNDEFINED) \$(KDE_RPATH) \$(KDE_MT_LDFLAGS)"
  15502. # Check whether --enable-objprelink or --disable-objprelink was given.
  15503. if test "${enable_objprelink+set}" = set; then
  15504. enableval="$enable_objprelink"
  15505. kde_use_objprelink=$enableval
  15506. else
  15507. kde_use_objprelink=no
  15508. fi;
  15509. if test "x$kde_use_objprelink" = "xyes"; then
  15510. { echo "$as_me:$LINENO: WARNING:
  15511. ------------------------------------------------------------
  15512. Configuration option --enable-objprelink is no longer useful.
  15513. See http:://objprelink.sourceforge.net for details:
  15514. 1- Recent binutils are fast enough to do without objprelink.
  15515. 2- Newer versions of objprelink do not need this option.
  15516. ------------------------------------------------------------
  15517. " >&5
  15518. echo "$as_me: WARNING:
  15519. ------------------------------------------------------------
  15520. Configuration option --enable-objprelink is no longer useful.
  15521. See http:://objprelink.sourceforge.net for details:
  15522. 1- Recent binutils are fast enough to do without objprelink.
  15523. 2- Newer versions of objprelink do not need this option.
  15524. ------------------------------------------------------------
  15525. " >&2;}
  15526. fi
  15527. # Extract the first word of "msgfmt", so it can be a program name with args.
  15528. set dummy msgfmt; ac_word=$2
  15529. echo "$as_me:$LINENO: checking for $ac_word" >&5
  15530. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  15531. if test "${ac_cv_path_MSGFMT+set}" = set; then
  15532. echo $ECHO_N "(cached) $ECHO_C" >&6
  15533. else
  15534. case "$MSGFMT" in
  15535. /*)
  15536. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  15537. ;;
  15538. *)
  15539. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  15540. for ac_dir in $PATH; do
  15541. test -z "$ac_dir" && ac_dir=.
  15542. if test -f $ac_dir/$ac_word; then
  15543. if test -n "`$ac_dir/$ac_word --version 2>&1 | grep 'GNU gettext'`"; then
  15544. ac_cv_path_MSGFMT="$ac_dir/$ac_word"
  15545. break
  15546. fi
  15547. fi
  15548. done
  15549. IFS="$ac_save_ifs"
  15550. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
  15551. ;;
  15552. esac
  15553. fi
  15554. MSGFMT="$ac_cv_path_MSGFMT"
  15555. if test -n "$MSGFMT"; then
  15556. echo "$as_me:$LINENO: result: $MSGFMT" >&5
  15557. echo "${ECHO_T}$MSGFMT" >&6
  15558. else
  15559. echo "$as_me:$LINENO: result: no" >&5
  15560. echo "${ECHO_T}no" >&6
  15561. fi
  15562. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  15563. set dummy gmsgfmt; ac_word=$2
  15564. echo "$as_me:$LINENO: checking for $ac_word" >&5
  15565. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  15566. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  15567. echo $ECHO_N "(cached) $ECHO_C" >&6
  15568. else
  15569. case $GMSGFMT in
  15570. [\\/]* | ?:[\\/]*)
  15571. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  15572. ;;
  15573. *)
  15574. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15575. for as_dir in $PATH
  15576. do
  15577. IFS=$as_save_IFS
  15578. test -z "$as_dir" && as_dir=.
  15579. for ac_exec_ext in '' $ac_executable_extensions; do
  15580. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15581. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  15582. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15583. break 2
  15584. fi
  15585. done
  15586. done
  15587. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  15588. ;;
  15589. esac
  15590. fi
  15591. GMSGFMT=$ac_cv_path_GMSGFMT
  15592. if test -n "$GMSGFMT"; then
  15593. echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  15594. echo "${ECHO_T}$GMSGFMT" >&6
  15595. else
  15596. echo "$as_me:$LINENO: result: no" >&5
  15597. echo "${ECHO_T}no" >&6
  15598. fi
  15599. if test -z "`$GMSGFMT --version 2>&1 | grep 'GNU gettext'`"; then
  15600. echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
  15601. echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
  15602. GMSGFMT=":"
  15603. fi
  15604. MSGFMT=$GMSGFMT
  15605. # Extract the first word of "xgettext", so it can be a program name with args.
  15606. set dummy xgettext; ac_word=$2
  15607. echo "$as_me:$LINENO: checking for $ac_word" >&5
  15608. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  15609. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  15610. echo $ECHO_N "(cached) $ECHO_C" >&6
  15611. else
  15612. case "$XGETTEXT" in
  15613. /*)
  15614. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  15615. ;;
  15616. *)
  15617. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  15618. for ac_dir in $PATH; do
  15619. test -z "$ac_dir" && ac_dir=.
  15620. if test -f $ac_dir/$ac_word; then
  15621. if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
  15622. ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  15623. break
  15624. fi
  15625. fi
  15626. done
  15627. IFS="$ac_save_ifs"
  15628. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  15629. ;;
  15630. esac
  15631. fi
  15632. XGETTEXT="$ac_cv_path_XGETTEXT"
  15633. if test -n "$XGETTEXT"; then
  15634. echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  15635. echo "${ECHO_T}$XGETTEXT" >&6
  15636. else
  15637. echo "$as_me:$LINENO: result: no" >&5
  15638. echo "${ECHO_T}no" >&6
  15639. fi
  15640. if test "$XGETTEXT" != ":"; then
  15641. if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
  15642. : ;
  15643. else
  15644. echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
  15645. echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
  15646. XGETTEXT=":"
  15647. fi
  15648. fi
  15649. if test -z "3.0.0"; then
  15650. # Current default Qt version: 3.1
  15651. kde_qtver=3
  15652. kde_qtsubver=1
  15653. else
  15654. kde_qtsubver=`echo "3.0.0" | sed -e 's#[0-9][0-9]*\.\([0-9][0-9]*\).*#\1#'`
  15655. # following is the check if subversion isnt found in passed argument
  15656. if test "$kde_qtsubver" = "3.0.0"; then
  15657. kde_qtsubver=1
  15658. fi
  15659. kde_qtver=`echo "3.0.0" | sed -e 's#^\([0-9][0-9]*\)\..*#\1#'`
  15660. if test "$kde_qtver" = "1"; then
  15661. kde_qtsubver=42
  15662. fi
  15663. fi
  15664. if test -z ""; then
  15665. if test "$kde_qtver" = "2"; then
  15666. if test $kde_qtsubver -gt 0; then
  15667. kde_qt_minversion=">= Qt 2.2.2"
  15668. else
  15669. kde_qt_minversion=">= Qt 2.0.2"
  15670. fi
  15671. fi
  15672. if test "$kde_qtver" = "3"; then
  15673. if test $kde_qtsubver -gt 0; then
  15674. kde_qt_minversion=">= Qt 3.1 (20021021)"
  15675. else
  15676. kde_qt_minversion=">= Qt 3.0"
  15677. fi
  15678. fi
  15679. if test "$kde_qtver" = "1"; then
  15680. kde_qt_minversion=">= 1.42 and < 2.0"
  15681. fi
  15682. else
  15683. kde_qt_minversion=
  15684. fi
  15685. if test -z ""; then
  15686. if test $kde_qtver = 3; then
  15687. if test $kde_qtsubver -gt 0; then
  15688. kde_qt_verstring="QT_VERSION >= 0x030100"
  15689. else
  15690. kde_qt_verstring="QT_VERSION >= 300"
  15691. fi
  15692. fi
  15693. if test $kde_qtver = 2; then
  15694. if test $kde_qtsubver -gt 0; then
  15695. kde_qt_verstring="QT_VERSION >= 222"
  15696. else
  15697. kde_qt_verstring="QT_VERSION >= 200"
  15698. fi
  15699. fi
  15700. if test $kde_qtver = 1; then
  15701. kde_qt_verstring="QT_VERSION >= 142 && QT_VERSION < 200"
  15702. fi
  15703. else
  15704. kde_qt_verstring=
  15705. fi
  15706. if test $kde_qtver = 3; then
  15707. kde_qt_dirs="$QTDIR /usr/lib/qt3 /usr/lib/qt /usr/share/qt3"
  15708. fi
  15709. if test $kde_qtver = 2; then
  15710. kde_qt_dirs="$QTDIR /usr/lib/qt2 /usr/lib/qt"
  15711. fi
  15712. if test $kde_qtver = 1; then
  15713. kde_qt_dirs="$QTDIR /usr/lib/qt"
  15714. fi
  15715. echo "$as_me:$LINENO: checking for strlcat" >&5
  15716. echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
  15717. if test "${kde_cv_func_strlcat+set}" = set; then
  15718. echo $ECHO_N "(cached) $ECHO_C" >&6
  15719. else
  15720. ac_ext=cc
  15721. ac_cpp='$CXXCPP $CPPFLAGS'
  15722. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15723. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15724. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15725. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  15726. save_CXXFLAGS="$CXXFLAGS"
  15727. kde_safe_LIBS="$LIBS"
  15728. LIBS="$LIBS $X_EXTRA_LIBS"
  15729. if test "$GXX" = "yes"; then
  15730. CXXFLAGS="$CXXFLAGS -pedantic-errors"
  15731. fi
  15732. cat >conftest.$ac_ext <<_ACEOF
  15733. /* confdefs.h. */
  15734. _ACEOF
  15735. cat confdefs.h >>conftest.$ac_ext
  15736. cat >>conftest.$ac_ext <<_ACEOF
  15737. /* end confdefs.h. */
  15738. #include <string.h>
  15739. int
  15740. main ()
  15741. {
  15742. char buf[20];
  15743. buf[0]='\0';
  15744. strlcat(buf, "KDE function test", sizeof(buf));
  15745. ;
  15746. return 0;
  15747. }
  15748. _ACEOF
  15749. rm -f conftest.$ac_objext
  15750. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15751. (eval $ac_compile) 2>conftest.er1
  15752. ac_status=$?
  15753. grep -v '^ *+' conftest.er1 >conftest.err
  15754. rm -f conftest.er1
  15755. cat conftest.err >&5
  15756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15757. (exit $ac_status); } &&
  15758. { ac_try='test -z "$ac_cxx_werror_flag"
  15759. || test ! -s conftest.err'
  15760. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15761. (eval $ac_try) 2>&5
  15762. ac_status=$?
  15763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15764. (exit $ac_status); }; } &&
  15765. { ac_try='test -s conftest.$ac_objext'
  15766. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15767. (eval $ac_try) 2>&5
  15768. ac_status=$?
  15769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15770. (exit $ac_status); }; }; then
  15771. kde_cv_func_strlcat=yes
  15772. else
  15773. echo "$as_me: failed program was:" >&5
  15774. sed 's/^/| /' conftest.$ac_ext >&5
  15775. kde_cv_func_strlcat=no
  15776. fi
  15777. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  15778. CXXFLAGS="$save_CXXFLAGS"
  15779. LIBS="$kde_safe_LIBS"
  15780. ac_ext=c
  15781. ac_cpp='$CPP $CPPFLAGS'
  15782. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15783. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15784. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15785. fi
  15786. echo "$as_me:$LINENO: result: $kde_cv_func_strlcat" >&5
  15787. echo "${ECHO_T}$kde_cv_func_strlcat" >&6
  15788. echo "$as_me:$LINENO: checking if strlcat needs custom prototype" >&5
  15789. echo $ECHO_N "checking if strlcat needs custom prototype... $ECHO_C" >&6
  15790. if test "${kde_cv_proto_strlcat+set}" = set; then
  15791. echo $ECHO_N "(cached) $ECHO_C" >&6
  15792. else
  15793. if test "x$kde_cv_func_strlcat" = xyes; then
  15794. kde_cv_proto_strlcat=no
  15795. else
  15796. case "strlcat" in
  15797. setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
  15798. kde_cv_proto_strlcat="yes - in libkdefakes"
  15799. ;;
  15800. *)
  15801. kde_cv_proto_strlcat=unknown
  15802. ;;
  15803. esac
  15804. fi
  15805. if test "x$kde_cv_proto_strlcat" = xunknown; then
  15806. ac_ext=cc
  15807. ac_cpp='$CXXCPP $CPPFLAGS'
  15808. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15809. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15810. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15811. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  15812. kde_safe_libs=$LIBS
  15813. LIBS="$LIBS $X_EXTRA_LIBS"
  15814. cat >conftest.$ac_ext <<_ACEOF
  15815. /* confdefs.h. */
  15816. _ACEOF
  15817. cat confdefs.h >>conftest.$ac_ext
  15818. cat >>conftest.$ac_ext <<_ACEOF
  15819. /* end confdefs.h. */
  15820. #include <string.h>
  15821. extern "C" unsigned long strlcat(char*, const char*, unsigned long);
  15822. int
  15823. main ()
  15824. {
  15825. char buf[20];
  15826. buf[0]='\0';
  15827. strlcat(buf, "KDE function test", sizeof(buf));
  15828. ;
  15829. return 0;
  15830. }
  15831. _ACEOF
  15832. rm -f conftest.$ac_objext conftest$ac_exeext
  15833. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15834. (eval $ac_link) 2>conftest.er1
  15835. ac_status=$?
  15836. grep -v '^ *+' conftest.er1 >conftest.err
  15837. rm -f conftest.er1
  15838. cat conftest.err >&5
  15839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15840. (exit $ac_status); } &&
  15841. { ac_try='test -z "$ac_cxx_werror_flag"
  15842. || test ! -s conftest.err'
  15843. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15844. (eval $ac_try) 2>&5
  15845. ac_status=$?
  15846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15847. (exit $ac_status); }; } &&
  15848. { ac_try='test -s conftest$ac_exeext'
  15849. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15850. (eval $ac_try) 2>&5
  15851. ac_status=$?
  15852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15853. (exit $ac_status); }; }; then
  15854. kde_cv_func_strlcat=yes
  15855. kde_cv_proto_strlcat=yes
  15856. else
  15857. echo "$as_me: failed program was:" >&5
  15858. sed 's/^/| /' conftest.$ac_ext >&5
  15859. kde_cv_proto_strlcat="strlcat unavailable"
  15860. fi
  15861. rm -f conftest.err conftest.$ac_objext \
  15862. conftest$ac_exeext conftest.$ac_ext
  15863. LIBS=$kde_safe_libs
  15864. ac_ext=c
  15865. ac_cpp='$CPP $CPPFLAGS'
  15866. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15867. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15868. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15869. fi
  15870. fi
  15871. echo "$as_me:$LINENO: result: $kde_cv_proto_strlcat" >&5
  15872. echo "${ECHO_T}$kde_cv_proto_strlcat" >&6
  15873. if test "x$kde_cv_func_strlcat" = xyes; then
  15874. cat >>confdefs.h <<\_ACEOF
  15875. #define HAVE_STRLCAT 1
  15876. _ACEOF
  15877. fi
  15878. if test "x$kde_cv_proto_strlcat" = xno; then
  15879. cat >>confdefs.h <<\_ACEOF
  15880. #define HAVE_STRLCAT_PROTO 1
  15881. _ACEOF
  15882. fi
  15883. echo "$as_me:$LINENO: checking for strlcpy" >&5
  15884. echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
  15885. if test "${kde_cv_func_strlcpy+set}" = set; then
  15886. echo $ECHO_N "(cached) $ECHO_C" >&6
  15887. else
  15888. ac_ext=cc
  15889. ac_cpp='$CXXCPP $CPPFLAGS'
  15890. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15891. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15892. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15893. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  15894. save_CXXFLAGS="$CXXFLAGS"
  15895. kde_safe_LIBS="$LIBS"
  15896. LIBS="$LIBS $X_EXTRA_LIBS"
  15897. if test "$GXX" = "yes"; then
  15898. CXXFLAGS="$CXXFLAGS -pedantic-errors"
  15899. fi
  15900. cat >conftest.$ac_ext <<_ACEOF
  15901. /* confdefs.h. */
  15902. _ACEOF
  15903. cat confdefs.h >>conftest.$ac_ext
  15904. cat >>conftest.$ac_ext <<_ACEOF
  15905. /* end confdefs.h. */
  15906. #include <string.h>
  15907. int
  15908. main ()
  15909. {
  15910. char buf[20];
  15911. strlcpy(buf, "KDE function test", sizeof(buf));
  15912. ;
  15913. return 0;
  15914. }
  15915. _ACEOF
  15916. rm -f conftest.$ac_objext
  15917. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15918. (eval $ac_compile) 2>conftest.er1
  15919. ac_status=$?
  15920. grep -v '^ *+' conftest.er1 >conftest.err
  15921. rm -f conftest.er1
  15922. cat conftest.err >&5
  15923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15924. (exit $ac_status); } &&
  15925. { ac_try='test -z "$ac_cxx_werror_flag"
  15926. || test ! -s conftest.err'
  15927. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15928. (eval $ac_try) 2>&5
  15929. ac_status=$?
  15930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15931. (exit $ac_status); }; } &&
  15932. { ac_try='test -s conftest.$ac_objext'
  15933. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15934. (eval $ac_try) 2>&5
  15935. ac_status=$?
  15936. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15937. (exit $ac_status); }; }; then
  15938. kde_cv_func_strlcpy=yes
  15939. else
  15940. echo "$as_me: failed program was:" >&5
  15941. sed 's/^/| /' conftest.$ac_ext >&5
  15942. kde_cv_func_strlcpy=no
  15943. fi
  15944. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  15945. CXXFLAGS="$save_CXXFLAGS"
  15946. LIBS="$kde_safe_LIBS"
  15947. ac_ext=c
  15948. ac_cpp='$CPP $CPPFLAGS'
  15949. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15950. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15951. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15952. fi
  15953. echo "$as_me:$LINENO: result: $kde_cv_func_strlcpy" >&5
  15954. echo "${ECHO_T}$kde_cv_func_strlcpy" >&6
  15955. echo "$as_me:$LINENO: checking if strlcpy needs custom prototype" >&5
  15956. echo $ECHO_N "checking if strlcpy needs custom prototype... $ECHO_C" >&6
  15957. if test "${kde_cv_proto_strlcpy+set}" = set; then
  15958. echo $ECHO_N "(cached) $ECHO_C" >&6
  15959. else
  15960. if test "x$kde_cv_func_strlcpy" = xyes; then
  15961. kde_cv_proto_strlcpy=no
  15962. else
  15963. case "strlcpy" in
  15964. setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
  15965. kde_cv_proto_strlcpy="yes - in libkdefakes"
  15966. ;;
  15967. *)
  15968. kde_cv_proto_strlcpy=unknown
  15969. ;;
  15970. esac
  15971. fi
  15972. if test "x$kde_cv_proto_strlcpy" = xunknown; then
  15973. ac_ext=cc
  15974. ac_cpp='$CXXCPP $CPPFLAGS'
  15975. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15976. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15977. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15978. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  15979. kde_safe_libs=$LIBS
  15980. LIBS="$LIBS $X_EXTRA_LIBS"
  15981. cat >conftest.$ac_ext <<_ACEOF
  15982. /* confdefs.h. */
  15983. _ACEOF
  15984. cat confdefs.h >>conftest.$ac_ext
  15985. cat >>conftest.$ac_ext <<_ACEOF
  15986. /* end confdefs.h. */
  15987. #include <string.h>
  15988. extern "C" unsigned long strlcpy(char*, const char*, unsigned long);
  15989. int
  15990. main ()
  15991. {
  15992. char buf[20];
  15993. strlcpy(buf, "KDE function test", sizeof(buf));
  15994. ;
  15995. return 0;
  15996. }
  15997. _ACEOF
  15998. rm -f conftest.$ac_objext conftest$ac_exeext
  15999. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16000. (eval $ac_link) 2>conftest.er1
  16001. ac_status=$?
  16002. grep -v '^ *+' conftest.er1 >conftest.err
  16003. rm -f conftest.er1
  16004. cat conftest.err >&5
  16005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16006. (exit $ac_status); } &&
  16007. { ac_try='test -z "$ac_cxx_werror_flag"
  16008. || test ! -s conftest.err'
  16009. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16010. (eval $ac_try) 2>&5
  16011. ac_status=$?
  16012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16013. (exit $ac_status); }; } &&
  16014. { ac_try='test -s conftest$ac_exeext'
  16015. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16016. (eval $ac_try) 2>&5
  16017. ac_status=$?
  16018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16019. (exit $ac_status); }; }; then
  16020. kde_cv_func_strlcpy=yes
  16021. kde_cv_proto_strlcpy=yes
  16022. else
  16023. echo "$as_me: failed program was:" >&5
  16024. sed 's/^/| /' conftest.$ac_ext >&5
  16025. kde_cv_proto_strlcpy="strlcpy unavailable"
  16026. fi
  16027. rm -f conftest.err conftest.$ac_objext \
  16028. conftest$ac_exeext conftest.$ac_ext
  16029. LIBS=$kde_safe_libs
  16030. ac_ext=c
  16031. ac_cpp='$CPP $CPPFLAGS'
  16032. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16033. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16034. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16035. fi
  16036. fi
  16037. echo "$as_me:$LINENO: result: $kde_cv_proto_strlcpy" >&5
  16038. echo "${ECHO_T}$kde_cv_proto_strlcpy" >&6
  16039. if test "x$kde_cv_func_strlcpy" = xyes; then
  16040. cat >>confdefs.h <<\_ACEOF
  16041. #define HAVE_STRLCPY 1
  16042. _ACEOF
  16043. fi
  16044. if test "x$kde_cv_proto_strlcpy" = xno; then
  16045. cat >>confdefs.h <<\_ACEOF
  16046. #define HAVE_STRLCPY_PROTO 1
  16047. _ACEOF
  16048. fi
  16049. ac_ext=c
  16050. ac_cpp='$CPP $CPPFLAGS'
  16051. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16052. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16053. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16054. echo "$as_me:$LINENO: checking for main in -lutil" >&5
  16055. echo $ECHO_N "checking for main in -lutil... $ECHO_C" >&6
  16056. if test "${ac_cv_lib_util_main+set}" = set; then
  16057. echo $ECHO_N "(cached) $ECHO_C" >&6
  16058. else
  16059. ac_check_lib_save_LIBS=$LIBS
  16060. LIBS="-lutil $LIBS"
  16061. cat >conftest.$ac_ext <<_ACEOF
  16062. /* confdefs.h. */
  16063. _ACEOF
  16064. cat confdefs.h >>conftest.$ac_ext
  16065. cat >>conftest.$ac_ext <<_ACEOF
  16066. /* end confdefs.h. */
  16067. int
  16068. main ()
  16069. {
  16070. main ();
  16071. ;
  16072. return 0;
  16073. }
  16074. _ACEOF
  16075. rm -f conftest.$ac_objext conftest$ac_exeext
  16076. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16077. (eval $ac_link) 2>conftest.er1
  16078. ac_status=$?
  16079. grep -v '^ *+' conftest.er1 >conftest.err
  16080. rm -f conftest.er1
  16081. cat conftest.err >&5
  16082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16083. (exit $ac_status); } &&
  16084. { ac_try='test -z "$ac_c_werror_flag"
  16085. || test ! -s conftest.err'
  16086. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16087. (eval $ac_try) 2>&5
  16088. ac_status=$?
  16089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16090. (exit $ac_status); }; } &&
  16091. { ac_try='test -s conftest$ac_exeext'
  16092. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16093. (eval $ac_try) 2>&5
  16094. ac_status=$?
  16095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16096. (exit $ac_status); }; }; then
  16097. ac_cv_lib_util_main=yes
  16098. else
  16099. echo "$as_me: failed program was:" >&5
  16100. sed 's/^/| /' conftest.$ac_ext >&5
  16101. ac_cv_lib_util_main=no
  16102. fi
  16103. rm -f conftest.err conftest.$ac_objext \
  16104. conftest$ac_exeext conftest.$ac_ext
  16105. LIBS=$ac_check_lib_save_LIBS
  16106. fi
  16107. echo "$as_me:$LINENO: result: $ac_cv_lib_util_main" >&5
  16108. echo "${ECHO_T}$ac_cv_lib_util_main" >&6
  16109. if test $ac_cv_lib_util_main = yes; then
  16110. LIBUTIL="-lutil"
  16111. fi
  16112. echo "$as_me:$LINENO: checking for main in -lcompat" >&5
  16113. echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
  16114. if test "${ac_cv_lib_compat_main+set}" = set; then
  16115. echo $ECHO_N "(cached) $ECHO_C" >&6
  16116. else
  16117. ac_check_lib_save_LIBS=$LIBS
  16118. LIBS="-lcompat $LIBS"
  16119. cat >conftest.$ac_ext <<_ACEOF
  16120. /* confdefs.h. */
  16121. _ACEOF
  16122. cat confdefs.h >>conftest.$ac_ext
  16123. cat >>conftest.$ac_ext <<_ACEOF
  16124. /* end confdefs.h. */
  16125. int
  16126. main ()
  16127. {
  16128. main ();
  16129. ;
  16130. return 0;
  16131. }
  16132. _ACEOF
  16133. rm -f conftest.$ac_objext conftest$ac_exeext
  16134. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16135. (eval $ac_link) 2>conftest.er1
  16136. ac_status=$?
  16137. grep -v '^ *+' conftest.er1 >conftest.err
  16138. rm -f conftest.er1
  16139. cat conftest.err >&5
  16140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16141. (exit $ac_status); } &&
  16142. { ac_try='test -z "$ac_c_werror_flag"
  16143. || test ! -s conftest.err'
  16144. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16145. (eval $ac_try) 2>&5
  16146. ac_status=$?
  16147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16148. (exit $ac_status); }; } &&
  16149. { ac_try='test -s conftest$ac_exeext'
  16150. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16151. (eval $ac_try) 2>&5
  16152. ac_status=$?
  16153. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16154. (exit $ac_status); }; }; then
  16155. ac_cv_lib_compat_main=yes
  16156. else
  16157. echo "$as_me: failed program was:" >&5
  16158. sed 's/^/| /' conftest.$ac_ext >&5
  16159. ac_cv_lib_compat_main=no
  16160. fi
  16161. rm -f conftest.err conftest.$ac_objext \
  16162. conftest$ac_exeext conftest.$ac_ext
  16163. LIBS=$ac_check_lib_save_LIBS
  16164. fi
  16165. echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
  16166. echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
  16167. if test $ac_cv_lib_compat_main = yes; then
  16168. LIBCOMPAT="-lcompat"
  16169. fi
  16170. kde_have_crypt=
  16171. echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
  16172. echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
  16173. if test "${ac_cv_lib_crypt_crypt+set}" = set; then
  16174. echo $ECHO_N "(cached) $ECHO_C" >&6
  16175. else
  16176. ac_check_lib_save_LIBS=$LIBS
  16177. LIBS="-lcrypt $LIBS"
  16178. cat >conftest.$ac_ext <<_ACEOF
  16179. /* confdefs.h. */
  16180. _ACEOF
  16181. cat confdefs.h >>conftest.$ac_ext
  16182. cat >>conftest.$ac_ext <<_ACEOF
  16183. /* end confdefs.h. */
  16184. /* Override any gcc2 internal prototype to avoid an error. */
  16185. #ifdef __cplusplus
  16186. extern "C"
  16187. #endif
  16188. /* We use char because int might match the return type of a gcc2
  16189. builtin and then its argument prototype would still apply. */
  16190. char crypt ();
  16191. int
  16192. main ()
  16193. {
  16194. crypt ();
  16195. ;
  16196. return 0;
  16197. }
  16198. _ACEOF
  16199. rm -f conftest.$ac_objext conftest$ac_exeext
  16200. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16201. (eval $ac_link) 2>conftest.er1
  16202. ac_status=$?
  16203. grep -v '^ *+' conftest.er1 >conftest.err
  16204. rm -f conftest.er1
  16205. cat conftest.err >&5
  16206. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16207. (exit $ac_status); } &&
  16208. { ac_try='test -z "$ac_c_werror_flag"
  16209. || test ! -s conftest.err'
  16210. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16211. (eval $ac_try) 2>&5
  16212. ac_status=$?
  16213. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16214. (exit $ac_status); }; } &&
  16215. { ac_try='test -s conftest$ac_exeext'
  16216. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16217. (eval $ac_try) 2>&5
  16218. ac_status=$?
  16219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16220. (exit $ac_status); }; }; then
  16221. ac_cv_lib_crypt_crypt=yes
  16222. else
  16223. echo "$as_me: failed program was:" >&5
  16224. sed 's/^/| /' conftest.$ac_ext >&5
  16225. ac_cv_lib_crypt_crypt=no
  16226. fi
  16227. rm -f conftest.err conftest.$ac_objext \
  16228. conftest$ac_exeext conftest.$ac_ext
  16229. LIBS=$ac_check_lib_save_LIBS
  16230. fi
  16231. echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
  16232. echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
  16233. if test $ac_cv_lib_crypt_crypt = yes; then
  16234. LIBCRYPT="-lcrypt"; kde_have_crypt=yes
  16235. else
  16236. echo "$as_me:$LINENO: checking for crypt in -lc" >&5
  16237. echo $ECHO_N "checking for crypt in -lc... $ECHO_C" >&6
  16238. if test "${ac_cv_lib_c_crypt+set}" = set; then
  16239. echo $ECHO_N "(cached) $ECHO_C" >&6
  16240. else
  16241. ac_check_lib_save_LIBS=$LIBS
  16242. LIBS="-lc $LIBS"
  16243. cat >conftest.$ac_ext <<_ACEOF
  16244. /* confdefs.h. */
  16245. _ACEOF
  16246. cat confdefs.h >>conftest.$ac_ext
  16247. cat >>conftest.$ac_ext <<_ACEOF
  16248. /* end confdefs.h. */
  16249. /* Override any gcc2 internal prototype to avoid an error. */
  16250. #ifdef __cplusplus
  16251. extern "C"
  16252. #endif
  16253. /* We use char because int might match the return type of a gcc2
  16254. builtin and then its argument prototype would still apply. */
  16255. char crypt ();
  16256. int
  16257. main ()
  16258. {
  16259. crypt ();
  16260. ;
  16261. return 0;
  16262. }
  16263. _ACEOF
  16264. rm -f conftest.$ac_objext conftest$ac_exeext
  16265. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16266. (eval $ac_link) 2>conftest.er1
  16267. ac_status=$?
  16268. grep -v '^ *+' conftest.er1 >conftest.err
  16269. rm -f conftest.er1
  16270. cat conftest.err >&5
  16271. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16272. (exit $ac_status); } &&
  16273. { ac_try='test -z "$ac_c_werror_flag"
  16274. || test ! -s conftest.err'
  16275. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16276. (eval $ac_try) 2>&5
  16277. ac_status=$?
  16278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16279. (exit $ac_status); }; } &&
  16280. { ac_try='test -s conftest$ac_exeext'
  16281. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16282. (eval $ac_try) 2>&5
  16283. ac_status=$?
  16284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16285. (exit $ac_status); }; }; then
  16286. ac_cv_lib_c_crypt=yes
  16287. else
  16288. echo "$as_me: failed program was:" >&5
  16289. sed 's/^/| /' conftest.$ac_ext >&5
  16290. ac_cv_lib_c_crypt=no
  16291. fi
  16292. rm -f conftest.err conftest.$ac_objext \
  16293. conftest$ac_exeext conftest.$ac_ext
  16294. LIBS=$ac_check_lib_save_LIBS
  16295. fi
  16296. echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
  16297. echo "${ECHO_T}$ac_cv_lib_c_crypt" >&6
  16298. if test $ac_cv_lib_c_crypt = yes; then
  16299. kde_have_crypt=yes
  16300. else
  16301. { echo "$as_me:$LINENO: WARNING: you have no crypt in either libcrypt or libc.
  16302. You should install libcrypt from another source or configure with PAM
  16303. support" >&5
  16304. echo "$as_me: WARNING: you have no crypt in either libcrypt or libc.
  16305. You should install libcrypt from another source or configure with PAM
  16306. support" >&2;}
  16307. kde_have_crypt=no
  16308. fi
  16309. fi
  16310. if test $kde_have_crypt = yes; then
  16311. cat >>confdefs.h <<_ACEOF
  16312. #define HAVE_CRYPT 1
  16313. _ACEOF
  16314. fi
  16315. echo "$as_me:$LINENO: checking for socklen_t" >&5
  16316. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  16317. if test "${ac_cv_socklen_t+set}" = set; then
  16318. echo $ECHO_N "(cached) $ECHO_C" >&6
  16319. else
  16320. ac_ext=cc
  16321. ac_cpp='$CXXCPP $CPPFLAGS'
  16322. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16323. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16324. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16325. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  16326. cat >conftest.$ac_ext <<_ACEOF
  16327. /* confdefs.h. */
  16328. _ACEOF
  16329. cat confdefs.h >>conftest.$ac_ext
  16330. cat >>conftest.$ac_ext <<_ACEOF
  16331. /* end confdefs.h. */
  16332. #include <sys/types.h>
  16333. #include <sys/socket.h>
  16334. int
  16335. main ()
  16336. {
  16337. socklen_t a=0;
  16338. getsockname(0,(struct sockaddr*)0, &a);
  16339. ;
  16340. return 0;
  16341. }
  16342. _ACEOF
  16343. rm -f conftest.$ac_objext
  16344. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16345. (eval $ac_compile) 2>conftest.er1
  16346. ac_status=$?
  16347. grep -v '^ *+' conftest.er1 >conftest.err
  16348. rm -f conftest.er1
  16349. cat conftest.err >&5
  16350. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16351. (exit $ac_status); } &&
  16352. { ac_try='test -z "$ac_cxx_werror_flag"
  16353. || test ! -s conftest.err'
  16354. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16355. (eval $ac_try) 2>&5
  16356. ac_status=$?
  16357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16358. (exit $ac_status); }; } &&
  16359. { ac_try='test -s conftest.$ac_objext'
  16360. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16361. (eval $ac_try) 2>&5
  16362. ac_status=$?
  16363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16364. (exit $ac_status); }; }; then
  16365. ac_cv_socklen_t=socklen_t
  16366. else
  16367. echo "$as_me: failed program was:" >&5
  16368. sed 's/^/| /' conftest.$ac_ext >&5
  16369. cat >conftest.$ac_ext <<_ACEOF
  16370. /* confdefs.h. */
  16371. _ACEOF
  16372. cat confdefs.h >>conftest.$ac_ext
  16373. cat >>conftest.$ac_ext <<_ACEOF
  16374. /* end confdefs.h. */
  16375. #include <sys/types.h>
  16376. #include <sys/socket.h>
  16377. int
  16378. main ()
  16379. {
  16380. int a=0;
  16381. getsockname(0,(struct sockaddr*)0, &a);
  16382. ;
  16383. return 0;
  16384. }
  16385. _ACEOF
  16386. rm -f conftest.$ac_objext
  16387. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16388. (eval $ac_compile) 2>conftest.er1
  16389. ac_status=$?
  16390. grep -v '^ *+' conftest.er1 >conftest.err
  16391. rm -f conftest.er1
  16392. cat conftest.err >&5
  16393. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16394. (exit $ac_status); } &&
  16395. { ac_try='test -z "$ac_cxx_werror_flag"
  16396. || test ! -s conftest.err'
  16397. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16398. (eval $ac_try) 2>&5
  16399. ac_status=$?
  16400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16401. (exit $ac_status); }; } &&
  16402. { ac_try='test -s conftest.$ac_objext'
  16403. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16404. (eval $ac_try) 2>&5
  16405. ac_status=$?
  16406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16407. (exit $ac_status); }; }; then
  16408. ac_cv_socklen_t=int
  16409. else
  16410. echo "$as_me: failed program was:" >&5
  16411. sed 's/^/| /' conftest.$ac_ext >&5
  16412. ac_cv_socklen_t=size_t
  16413. fi
  16414. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  16415. fi
  16416. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  16417. ac_ext=c
  16418. ac_cpp='$CPP $CPPFLAGS'
  16419. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16420. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16421. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16422. fi
  16423. echo "$as_me:$LINENO: result: $ac_cv_socklen_t" >&5
  16424. echo "${ECHO_T}$ac_cv_socklen_t" >&6
  16425. if test "$ac_cv_socklen_t" != "socklen_t"; then
  16426. cat >>confdefs.h <<_ACEOF
  16427. #define socklen_t $ac_cv_socklen_t
  16428. _ACEOF
  16429. fi
  16430. cat >>confdefs.h <<_ACEOF
  16431. #define ksize_t socklen_t
  16432. _ACEOF
  16433. ac_ext=c
  16434. ac_cpp='$CPP $CPPFLAGS'
  16435. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16436. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16437. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16438. echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
  16439. echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
  16440. if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
  16441. echo $ECHO_N "(cached) $ECHO_C" >&6
  16442. else
  16443. ac_check_lib_save_LIBS=$LIBS
  16444. LIBS="-ldnet $LIBS"
  16445. cat >conftest.$ac_ext <<_ACEOF
  16446. /* confdefs.h. */
  16447. _ACEOF
  16448. cat confdefs.h >>conftest.$ac_ext
  16449. cat >>conftest.$ac_ext <<_ACEOF
  16450. /* end confdefs.h. */
  16451. /* Override any gcc2 internal prototype to avoid an error. */
  16452. #ifdef __cplusplus
  16453. extern "C"
  16454. #endif
  16455. /* We use char because int might match the return type of a gcc2
  16456. builtin and then its argument prototype would still apply. */
  16457. char dnet_ntoa ();
  16458. int
  16459. main ()
  16460. {
  16461. dnet_ntoa ();
  16462. ;
  16463. return 0;
  16464. }
  16465. _ACEOF
  16466. rm -f conftest.$ac_objext conftest$ac_exeext
  16467. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16468. (eval $ac_link) 2>conftest.er1
  16469. ac_status=$?
  16470. grep -v '^ *+' conftest.er1 >conftest.err
  16471. rm -f conftest.er1
  16472. cat conftest.err >&5
  16473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16474. (exit $ac_status); } &&
  16475. { ac_try='test -z "$ac_c_werror_flag"
  16476. || test ! -s conftest.err'
  16477. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16478. (eval $ac_try) 2>&5
  16479. ac_status=$?
  16480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16481. (exit $ac_status); }; } &&
  16482. { ac_try='test -s conftest$ac_exeext'
  16483. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16484. (eval $ac_try) 2>&5
  16485. ac_status=$?
  16486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16487. (exit $ac_status); }; }; then
  16488. ac_cv_lib_dnet_dnet_ntoa=yes
  16489. else
  16490. echo "$as_me: failed program was:" >&5
  16491. sed 's/^/| /' conftest.$ac_ext >&5
  16492. ac_cv_lib_dnet_dnet_ntoa=no
  16493. fi
  16494. rm -f conftest.err conftest.$ac_objext \
  16495. conftest$ac_exeext conftest.$ac_ext
  16496. LIBS=$ac_check_lib_save_LIBS
  16497. fi
  16498. echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  16499. echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
  16500. if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
  16501. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  16502. fi
  16503. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  16504. echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
  16505. echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
  16506. if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
  16507. echo $ECHO_N "(cached) $ECHO_C" >&6
  16508. else
  16509. ac_check_lib_save_LIBS=$LIBS
  16510. LIBS="-ldnet_stub $LIBS"
  16511. cat >conftest.$ac_ext <<_ACEOF
  16512. /* confdefs.h. */
  16513. _ACEOF
  16514. cat confdefs.h >>conftest.$ac_ext
  16515. cat >>conftest.$ac_ext <<_ACEOF
  16516. /* end confdefs.h. */
  16517. /* Override any gcc2 internal prototype to avoid an error. */
  16518. #ifdef __cplusplus
  16519. extern "C"
  16520. #endif
  16521. /* We use char because int might match the return type of a gcc2
  16522. builtin and then its argument prototype would still apply. */
  16523. char dnet_ntoa ();
  16524. int
  16525. main ()
  16526. {
  16527. dnet_ntoa ();
  16528. ;
  16529. return 0;
  16530. }
  16531. _ACEOF
  16532. rm -f conftest.$ac_objext conftest$ac_exeext
  16533. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16534. (eval $ac_link) 2>conftest.er1
  16535. ac_status=$?
  16536. grep -v '^ *+' conftest.er1 >conftest.err
  16537. rm -f conftest.er1
  16538. cat conftest.err >&5
  16539. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16540. (exit $ac_status); } &&
  16541. { ac_try='test -z "$ac_c_werror_flag"
  16542. || test ! -s conftest.err'
  16543. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16544. (eval $ac_try) 2>&5
  16545. ac_status=$?
  16546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16547. (exit $ac_status); }; } &&
  16548. { ac_try='test -s conftest$ac_exeext'
  16549. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16550. (eval $ac_try) 2>&5
  16551. ac_status=$?
  16552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16553. (exit $ac_status); }; }; then
  16554. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  16555. else
  16556. echo "$as_me: failed program was:" >&5
  16557. sed 's/^/| /' conftest.$ac_ext >&5
  16558. ac_cv_lib_dnet_stub_dnet_ntoa=no
  16559. fi
  16560. rm -f conftest.err conftest.$ac_objext \
  16561. conftest$ac_exeext conftest.$ac_ext
  16562. LIBS=$ac_check_lib_save_LIBS
  16563. fi
  16564. echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  16565. echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
  16566. if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
  16567. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  16568. fi
  16569. fi
  16570. echo "$as_me:$LINENO: checking for inet_ntoa" >&5
  16571. echo $ECHO_N "checking for inet_ntoa... $ECHO_C" >&6
  16572. if test "${ac_cv_func_inet_ntoa+set}" = set; then
  16573. echo $ECHO_N "(cached) $ECHO_C" >&6
  16574. else
  16575. cat >conftest.$ac_ext <<_ACEOF
  16576. /* confdefs.h. */
  16577. _ACEOF
  16578. cat confdefs.h >>conftest.$ac_ext
  16579. cat >>conftest.$ac_ext <<_ACEOF
  16580. /* end confdefs.h. */
  16581. /* Define inet_ntoa to an innocuous variant, in case <limits.h> declares inet_ntoa.
  16582. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16583. #define inet_ntoa innocuous_inet_ntoa
  16584. /* System header to define __stub macros and hopefully few prototypes,
  16585. which can conflict with char inet_ntoa (); below.
  16586. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16587. <limits.h> exists even on freestanding compilers. */
  16588. #ifdef __STDC__
  16589. # include <limits.h>
  16590. #else
  16591. # include <assert.h>
  16592. #endif
  16593. #undef inet_ntoa
  16594. /* Override any gcc2 internal prototype to avoid an error. */
  16595. #ifdef __cplusplus
  16596. extern "C"
  16597. {
  16598. #endif
  16599. /* We use char because int might match the return type of a gcc2
  16600. builtin and then its argument prototype would still apply. */
  16601. char inet_ntoa ();
  16602. /* The GNU C library defines this for functions which it implements
  16603. to always fail with ENOSYS. Some functions are actually named
  16604. something starting with __ and the normal name is an alias. */
  16605. #if defined (__stub_inet_ntoa) || defined (__stub___inet_ntoa)
  16606. choke me
  16607. #else
  16608. char (*f) () = inet_ntoa;
  16609. #endif
  16610. #ifdef __cplusplus
  16611. }
  16612. #endif
  16613. int
  16614. main ()
  16615. {
  16616. return f != inet_ntoa;
  16617. ;
  16618. return 0;
  16619. }
  16620. _ACEOF
  16621. rm -f conftest.$ac_objext conftest$ac_exeext
  16622. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16623. (eval $ac_link) 2>conftest.er1
  16624. ac_status=$?
  16625. grep -v '^ *+' conftest.er1 >conftest.err
  16626. rm -f conftest.er1
  16627. cat conftest.err >&5
  16628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16629. (exit $ac_status); } &&
  16630. { ac_try='test -z "$ac_c_werror_flag"
  16631. || test ! -s conftest.err'
  16632. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16633. (eval $ac_try) 2>&5
  16634. ac_status=$?
  16635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16636. (exit $ac_status); }; } &&
  16637. { ac_try='test -s conftest$ac_exeext'
  16638. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16639. (eval $ac_try) 2>&5
  16640. ac_status=$?
  16641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16642. (exit $ac_status); }; }; then
  16643. ac_cv_func_inet_ntoa=yes
  16644. else
  16645. echo "$as_me: failed program was:" >&5
  16646. sed 's/^/| /' conftest.$ac_ext >&5
  16647. ac_cv_func_inet_ntoa=no
  16648. fi
  16649. rm -f conftest.err conftest.$ac_objext \
  16650. conftest$ac_exeext conftest.$ac_ext
  16651. fi
  16652. echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntoa" >&5
  16653. echo "${ECHO_T}$ac_cv_func_inet_ntoa" >&6
  16654. if test $ac_cv_func_inet_ntoa = no; then
  16655. echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
  16656. echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
  16657. if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
  16658. echo $ECHO_N "(cached) $ECHO_C" >&6
  16659. else
  16660. ac_check_lib_save_LIBS=$LIBS
  16661. LIBS="-lnsl $LIBS"
  16662. cat >conftest.$ac_ext <<_ACEOF
  16663. /* confdefs.h. */
  16664. _ACEOF
  16665. cat confdefs.h >>conftest.$ac_ext
  16666. cat >>conftest.$ac_ext <<_ACEOF
  16667. /* end confdefs.h. */
  16668. /* Override any gcc2 internal prototype to avoid an error. */
  16669. #ifdef __cplusplus
  16670. extern "C"
  16671. #endif
  16672. /* We use char because int might match the return type of a gcc2
  16673. builtin and then its argument prototype would still apply. */
  16674. char inet_ntoa ();
  16675. int
  16676. main ()
  16677. {
  16678. inet_ntoa ();
  16679. ;
  16680. return 0;
  16681. }
  16682. _ACEOF
  16683. rm -f conftest.$ac_objext conftest$ac_exeext
  16684. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16685. (eval $ac_link) 2>conftest.er1
  16686. ac_status=$?
  16687. grep -v '^ *+' conftest.er1 >conftest.err
  16688. rm -f conftest.er1
  16689. cat conftest.err >&5
  16690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16691. (exit $ac_status); } &&
  16692. { ac_try='test -z "$ac_c_werror_flag"
  16693. || test ! -s conftest.err'
  16694. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16695. (eval $ac_try) 2>&5
  16696. ac_status=$?
  16697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16698. (exit $ac_status); }; } &&
  16699. { ac_try='test -s conftest$ac_exeext'
  16700. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16701. (eval $ac_try) 2>&5
  16702. ac_status=$?
  16703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16704. (exit $ac_status); }; }; then
  16705. ac_cv_lib_nsl_inet_ntoa=yes
  16706. else
  16707. echo "$as_me: failed program was:" >&5
  16708. sed 's/^/| /' conftest.$ac_ext >&5
  16709. ac_cv_lib_nsl_inet_ntoa=no
  16710. fi
  16711. rm -f conftest.err conftest.$ac_objext \
  16712. conftest$ac_exeext conftest.$ac_ext
  16713. LIBS=$ac_check_lib_save_LIBS
  16714. fi
  16715. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
  16716. echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
  16717. if test $ac_cv_lib_nsl_inet_ntoa = yes; then
  16718. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  16719. fi
  16720. fi
  16721. echo "$as_me:$LINENO: checking for connect" >&5
  16722. echo $ECHO_N "checking for connect... $ECHO_C" >&6
  16723. if test "${ac_cv_func_connect+set}" = set; then
  16724. echo $ECHO_N "(cached) $ECHO_C" >&6
  16725. else
  16726. cat >conftest.$ac_ext <<_ACEOF
  16727. /* confdefs.h. */
  16728. _ACEOF
  16729. cat confdefs.h >>conftest.$ac_ext
  16730. cat >>conftest.$ac_ext <<_ACEOF
  16731. /* end confdefs.h. */
  16732. /* Define connect to an innocuous variant, in case <limits.h> declares connect.
  16733. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16734. #define connect innocuous_connect
  16735. /* System header to define __stub macros and hopefully few prototypes,
  16736. which can conflict with char connect (); below.
  16737. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16738. <limits.h> exists even on freestanding compilers. */
  16739. #ifdef __STDC__
  16740. # include <limits.h>
  16741. #else
  16742. # include <assert.h>
  16743. #endif
  16744. #undef connect
  16745. /* Override any gcc2 internal prototype to avoid an error. */
  16746. #ifdef __cplusplus
  16747. extern "C"
  16748. {
  16749. #endif
  16750. /* We use char because int might match the return type of a gcc2
  16751. builtin and then its argument prototype would still apply. */
  16752. char connect ();
  16753. /* The GNU C library defines this for functions which it implements
  16754. to always fail with ENOSYS. Some functions are actually named
  16755. something starting with __ and the normal name is an alias. */
  16756. #if defined (__stub_connect) || defined (__stub___connect)
  16757. choke me
  16758. #else
  16759. char (*f) () = connect;
  16760. #endif
  16761. #ifdef __cplusplus
  16762. }
  16763. #endif
  16764. int
  16765. main ()
  16766. {
  16767. return f != connect;
  16768. ;
  16769. return 0;
  16770. }
  16771. _ACEOF
  16772. rm -f conftest.$ac_objext conftest$ac_exeext
  16773. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16774. (eval $ac_link) 2>conftest.er1
  16775. ac_status=$?
  16776. grep -v '^ *+' conftest.er1 >conftest.err
  16777. rm -f conftest.er1
  16778. cat conftest.err >&5
  16779. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16780. (exit $ac_status); } &&
  16781. { ac_try='test -z "$ac_c_werror_flag"
  16782. || test ! -s conftest.err'
  16783. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16784. (eval $ac_try) 2>&5
  16785. ac_status=$?
  16786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16787. (exit $ac_status); }; } &&
  16788. { ac_try='test -s conftest$ac_exeext'
  16789. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16790. (eval $ac_try) 2>&5
  16791. ac_status=$?
  16792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16793. (exit $ac_status); }; }; then
  16794. ac_cv_func_connect=yes
  16795. else
  16796. echo "$as_me: failed program was:" >&5
  16797. sed 's/^/| /' conftest.$ac_ext >&5
  16798. ac_cv_func_connect=no
  16799. fi
  16800. rm -f conftest.err conftest.$ac_objext \
  16801. conftest$ac_exeext conftest.$ac_ext
  16802. fi
  16803. echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
  16804. echo "${ECHO_T}$ac_cv_func_connect" >&6
  16805. if test $ac_cv_func_connect = no; then
  16806. echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
  16807. echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
  16808. if test "${ac_cv_lib_socket_connect+set}" = set; then
  16809. echo $ECHO_N "(cached) $ECHO_C" >&6
  16810. else
  16811. ac_check_lib_save_LIBS=$LIBS
  16812. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  16813. cat >conftest.$ac_ext <<_ACEOF
  16814. /* confdefs.h. */
  16815. _ACEOF
  16816. cat confdefs.h >>conftest.$ac_ext
  16817. cat >>conftest.$ac_ext <<_ACEOF
  16818. /* end confdefs.h. */
  16819. /* Override any gcc2 internal prototype to avoid an error. */
  16820. #ifdef __cplusplus
  16821. extern "C"
  16822. #endif
  16823. /* We use char because int might match the return type of a gcc2
  16824. builtin and then its argument prototype would still apply. */
  16825. char connect ();
  16826. int
  16827. main ()
  16828. {
  16829. connect ();
  16830. ;
  16831. return 0;
  16832. }
  16833. _ACEOF
  16834. rm -f conftest.$ac_objext conftest$ac_exeext
  16835. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16836. (eval $ac_link) 2>conftest.er1
  16837. ac_status=$?
  16838. grep -v '^ *+' conftest.er1 >conftest.err
  16839. rm -f conftest.er1
  16840. cat conftest.err >&5
  16841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16842. (exit $ac_status); } &&
  16843. { ac_try='test -z "$ac_c_werror_flag"
  16844. || test ! -s conftest.err'
  16845. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16846. (eval $ac_try) 2>&5
  16847. ac_status=$?
  16848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16849. (exit $ac_status); }; } &&
  16850. { ac_try='test -s conftest$ac_exeext'
  16851. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16852. (eval $ac_try) 2>&5
  16853. ac_status=$?
  16854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16855. (exit $ac_status); }; }; then
  16856. ac_cv_lib_socket_connect=yes
  16857. else
  16858. echo "$as_me: failed program was:" >&5
  16859. sed 's/^/| /' conftest.$ac_ext >&5
  16860. ac_cv_lib_socket_connect=no
  16861. fi
  16862. rm -f conftest.err conftest.$ac_objext \
  16863. conftest$ac_exeext conftest.$ac_ext
  16864. LIBS=$ac_check_lib_save_LIBS
  16865. fi
  16866. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
  16867. echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
  16868. if test $ac_cv_lib_socket_connect = yes; then
  16869. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  16870. fi
  16871. fi
  16872. echo "$as_me:$LINENO: checking for remove" >&5
  16873. echo $ECHO_N "checking for remove... $ECHO_C" >&6
  16874. if test "${ac_cv_func_remove+set}" = set; then
  16875. echo $ECHO_N "(cached) $ECHO_C" >&6
  16876. else
  16877. cat >conftest.$ac_ext <<_ACEOF
  16878. /* confdefs.h. */
  16879. _ACEOF
  16880. cat confdefs.h >>conftest.$ac_ext
  16881. cat >>conftest.$ac_ext <<_ACEOF
  16882. /* end confdefs.h. */
  16883. /* Define remove to an innocuous variant, in case <limits.h> declares remove.
  16884. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16885. #define remove innocuous_remove
  16886. /* System header to define __stub macros and hopefully few prototypes,
  16887. which can conflict with char remove (); below.
  16888. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16889. <limits.h> exists even on freestanding compilers. */
  16890. #ifdef __STDC__
  16891. # include <limits.h>
  16892. #else
  16893. # include <assert.h>
  16894. #endif
  16895. #undef remove
  16896. /* Override any gcc2 internal prototype to avoid an error. */
  16897. #ifdef __cplusplus
  16898. extern "C"
  16899. {
  16900. #endif
  16901. /* We use char because int might match the return type of a gcc2
  16902. builtin and then its argument prototype would still apply. */
  16903. char remove ();
  16904. /* The GNU C library defines this for functions which it implements
  16905. to always fail with ENOSYS. Some functions are actually named
  16906. something starting with __ and the normal name is an alias. */
  16907. #if defined (__stub_remove) || defined (__stub___remove)
  16908. choke me
  16909. #else
  16910. char (*f) () = remove;
  16911. #endif
  16912. #ifdef __cplusplus
  16913. }
  16914. #endif
  16915. int
  16916. main ()
  16917. {
  16918. return f != remove;
  16919. ;
  16920. return 0;
  16921. }
  16922. _ACEOF
  16923. rm -f conftest.$ac_objext conftest$ac_exeext
  16924. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16925. (eval $ac_link) 2>conftest.er1
  16926. ac_status=$?
  16927. grep -v '^ *+' conftest.er1 >conftest.err
  16928. rm -f conftest.er1
  16929. cat conftest.err >&5
  16930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16931. (exit $ac_status); } &&
  16932. { ac_try='test -z "$ac_c_werror_flag"
  16933. || test ! -s conftest.err'
  16934. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16935. (eval $ac_try) 2>&5
  16936. ac_status=$?
  16937. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16938. (exit $ac_status); }; } &&
  16939. { ac_try='test -s conftest$ac_exeext'
  16940. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16941. (eval $ac_try) 2>&5
  16942. ac_status=$?
  16943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16944. (exit $ac_status); }; }; then
  16945. ac_cv_func_remove=yes
  16946. else
  16947. echo "$as_me: failed program was:" >&5
  16948. sed 's/^/| /' conftest.$ac_ext >&5
  16949. ac_cv_func_remove=no
  16950. fi
  16951. rm -f conftest.err conftest.$ac_objext \
  16952. conftest$ac_exeext conftest.$ac_ext
  16953. fi
  16954. echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
  16955. echo "${ECHO_T}$ac_cv_func_remove" >&6
  16956. if test $ac_cv_func_remove = no; then
  16957. echo "$as_me:$LINENO: checking for remove in -lposix" >&5
  16958. echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
  16959. if test "${ac_cv_lib_posix_remove+set}" = set; then
  16960. echo $ECHO_N "(cached) $ECHO_C" >&6
  16961. else
  16962. ac_check_lib_save_LIBS=$LIBS
  16963. LIBS="-lposix $LIBS"
  16964. cat >conftest.$ac_ext <<_ACEOF
  16965. /* confdefs.h. */
  16966. _ACEOF
  16967. cat confdefs.h >>conftest.$ac_ext
  16968. cat >>conftest.$ac_ext <<_ACEOF
  16969. /* end confdefs.h. */
  16970. /* Override any gcc2 internal prototype to avoid an error. */
  16971. #ifdef __cplusplus
  16972. extern "C"
  16973. #endif
  16974. /* We use char because int might match the return type of a gcc2
  16975. builtin and then its argument prototype would still apply. */
  16976. char remove ();
  16977. int
  16978. main ()
  16979. {
  16980. remove ();
  16981. ;
  16982. return 0;
  16983. }
  16984. _ACEOF
  16985. rm -f conftest.$ac_objext conftest$ac_exeext
  16986. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16987. (eval $ac_link) 2>conftest.er1
  16988. ac_status=$?
  16989. grep -v '^ *+' conftest.er1 >conftest.err
  16990. rm -f conftest.er1
  16991. cat conftest.err >&5
  16992. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16993. (exit $ac_status); } &&
  16994. { ac_try='test -z "$ac_c_werror_flag"
  16995. || test ! -s conftest.err'
  16996. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16997. (eval $ac_try) 2>&5
  16998. ac_status=$?
  16999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17000. (exit $ac_status); }; } &&
  17001. { ac_try='test -s conftest$ac_exeext'
  17002. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17003. (eval $ac_try) 2>&5
  17004. ac_status=$?
  17005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17006. (exit $ac_status); }; }; then
  17007. ac_cv_lib_posix_remove=yes
  17008. else
  17009. echo "$as_me: failed program was:" >&5
  17010. sed 's/^/| /' conftest.$ac_ext >&5
  17011. ac_cv_lib_posix_remove=no
  17012. fi
  17013. rm -f conftest.err conftest.$ac_objext \
  17014. conftest$ac_exeext conftest.$ac_ext
  17015. LIBS=$ac_check_lib_save_LIBS
  17016. fi
  17017. echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
  17018. echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
  17019. if test $ac_cv_lib_posix_remove = yes; then
  17020. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17021. fi
  17022. fi
  17023. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17024. echo "$as_me:$LINENO: checking for shmat" >&5
  17025. echo $ECHO_N "checking for shmat... $ECHO_C" >&6
  17026. if test "${ac_cv_func_shmat+set}" = set; then
  17027. echo $ECHO_N "(cached) $ECHO_C" >&6
  17028. else
  17029. cat >conftest.$ac_ext <<_ACEOF
  17030. /* confdefs.h. */
  17031. _ACEOF
  17032. cat confdefs.h >>conftest.$ac_ext
  17033. cat >>conftest.$ac_ext <<_ACEOF
  17034. /* end confdefs.h. */
  17035. /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
  17036. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17037. #define shmat innocuous_shmat
  17038. /* System header to define __stub macros and hopefully few prototypes,
  17039. which can conflict with char shmat (); below.
  17040. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17041. <limits.h> exists even on freestanding compilers. */
  17042. #ifdef __STDC__
  17043. # include <limits.h>
  17044. #else
  17045. # include <assert.h>
  17046. #endif
  17047. #undef shmat
  17048. /* Override any gcc2 internal prototype to avoid an error. */
  17049. #ifdef __cplusplus
  17050. extern "C"
  17051. {
  17052. #endif
  17053. /* We use char because int might match the return type of a gcc2
  17054. builtin and then its argument prototype would still apply. */
  17055. char shmat ();
  17056. /* The GNU C library defines this for functions which it implements
  17057. to always fail with ENOSYS. Some functions are actually named
  17058. something starting with __ and the normal name is an alias. */
  17059. #if defined (__stub_shmat) || defined (__stub___shmat)
  17060. choke me
  17061. #else
  17062. char (*f) () = shmat;
  17063. #endif
  17064. #ifdef __cplusplus
  17065. }
  17066. #endif
  17067. int
  17068. main ()
  17069. {
  17070. return f != shmat;
  17071. ;
  17072. return 0;
  17073. }
  17074. _ACEOF
  17075. rm -f conftest.$ac_objext conftest$ac_exeext
  17076. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17077. (eval $ac_link) 2>conftest.er1
  17078. ac_status=$?
  17079. grep -v '^ *+' conftest.er1 >conftest.err
  17080. rm -f conftest.er1
  17081. cat conftest.err >&5
  17082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17083. (exit $ac_status); } &&
  17084. { ac_try='test -z "$ac_c_werror_flag"
  17085. || test ! -s conftest.err'
  17086. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17087. (eval $ac_try) 2>&5
  17088. ac_status=$?
  17089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17090. (exit $ac_status); }; } &&
  17091. { ac_try='test -s conftest$ac_exeext'
  17092. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17093. (eval $ac_try) 2>&5
  17094. ac_status=$?
  17095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17096. (exit $ac_status); }; }; then
  17097. ac_cv_func_shmat=yes
  17098. else
  17099. echo "$as_me: failed program was:" >&5
  17100. sed 's/^/| /' conftest.$ac_ext >&5
  17101. ac_cv_func_shmat=no
  17102. fi
  17103. rm -f conftest.err conftest.$ac_objext \
  17104. conftest$ac_exeext conftest.$ac_ext
  17105. fi
  17106. echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
  17107. echo "${ECHO_T}$ac_cv_func_shmat" >&6
  17108. if test $ac_cv_func_shmat = yes; then
  17109. :
  17110. else
  17111. echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
  17112. echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
  17113. if test "${ac_cv_lib_ipc_shmat+set}" = set; then
  17114. echo $ECHO_N "(cached) $ECHO_C" >&6
  17115. else
  17116. ac_check_lib_save_LIBS=$LIBS
  17117. LIBS="-lipc $LIBS"
  17118. cat >conftest.$ac_ext <<_ACEOF
  17119. /* confdefs.h. */
  17120. _ACEOF
  17121. cat confdefs.h >>conftest.$ac_ext
  17122. cat >>conftest.$ac_ext <<_ACEOF
  17123. /* end confdefs.h. */
  17124. /* Override any gcc2 internal prototype to avoid an error. */
  17125. #ifdef __cplusplus
  17126. extern "C"
  17127. #endif
  17128. /* We use char because int might match the return type of a gcc2
  17129. builtin and then its argument prototype would still apply. */
  17130. char shmat ();
  17131. int
  17132. main ()
  17133. {
  17134. shmat ();
  17135. ;
  17136. return 0;
  17137. }
  17138. _ACEOF
  17139. rm -f conftest.$ac_objext conftest$ac_exeext
  17140. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17141. (eval $ac_link) 2>conftest.er1
  17142. ac_status=$?
  17143. grep -v '^ *+' conftest.er1 >conftest.err
  17144. rm -f conftest.er1
  17145. cat conftest.err >&5
  17146. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17147. (exit $ac_status); } &&
  17148. { ac_try='test -z "$ac_c_werror_flag"
  17149. || test ! -s conftest.err'
  17150. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17151. (eval $ac_try) 2>&5
  17152. ac_status=$?
  17153. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17154. (exit $ac_status); }; } &&
  17155. { ac_try='test -s conftest$ac_exeext'
  17156. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17157. (eval $ac_try) 2>&5
  17158. ac_status=$?
  17159. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17160. (exit $ac_status); }; }; then
  17161. ac_cv_lib_ipc_shmat=yes
  17162. else
  17163. echo "$as_me: failed program was:" >&5
  17164. sed 's/^/| /' conftest.$ac_ext >&5
  17165. ac_cv_lib_ipc_shmat=no
  17166. fi
  17167. rm -f conftest.err conftest.$ac_objext \
  17168. conftest$ac_exeext conftest.$ac_ext
  17169. LIBS=$ac_check_lib_save_LIBS
  17170. fi
  17171. echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
  17172. echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
  17173. if test $ac_cv_lib_ipc_shmat = yes; then
  17174. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17175. fi
  17176. fi
  17177. # more headers that need to be explicitly included on darwin
  17178. for ac_header in sys/types.h stdint.h
  17179. do
  17180. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17181. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17182. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17183. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17184. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17185. echo $ECHO_N "(cached) $ECHO_C" >&6
  17186. fi
  17187. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17188. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17189. else
  17190. # Is the header compilable?
  17191. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17192. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  17193. cat >conftest.$ac_ext <<_ACEOF
  17194. /* confdefs.h. */
  17195. _ACEOF
  17196. cat confdefs.h >>conftest.$ac_ext
  17197. cat >>conftest.$ac_ext <<_ACEOF
  17198. /* end confdefs.h. */
  17199. $ac_includes_default
  17200. #include <$ac_header>
  17201. _ACEOF
  17202. rm -f conftest.$ac_objext
  17203. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17204. (eval $ac_compile) 2>conftest.er1
  17205. ac_status=$?
  17206. grep -v '^ *+' conftest.er1 >conftest.err
  17207. rm -f conftest.er1
  17208. cat conftest.err >&5
  17209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17210. (exit $ac_status); } &&
  17211. { ac_try='test -z "$ac_c_werror_flag"
  17212. || test ! -s conftest.err'
  17213. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17214. (eval $ac_try) 2>&5
  17215. ac_status=$?
  17216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17217. (exit $ac_status); }; } &&
  17218. { ac_try='test -s conftest.$ac_objext'
  17219. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17220. (eval $ac_try) 2>&5
  17221. ac_status=$?
  17222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17223. (exit $ac_status); }; }; then
  17224. ac_header_compiler=yes
  17225. else
  17226. echo "$as_me: failed program was:" >&5
  17227. sed 's/^/| /' conftest.$ac_ext >&5
  17228. ac_header_compiler=no
  17229. fi
  17230. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17231. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17232. echo "${ECHO_T}$ac_header_compiler" >&6
  17233. # Is the header present?
  17234. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17235. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  17236. cat >conftest.$ac_ext <<_ACEOF
  17237. /* confdefs.h. */
  17238. _ACEOF
  17239. cat confdefs.h >>conftest.$ac_ext
  17240. cat >>conftest.$ac_ext <<_ACEOF
  17241. /* end confdefs.h. */
  17242. #include <$ac_header>
  17243. _ACEOF
  17244. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  17245. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  17246. ac_status=$?
  17247. grep -v '^ *+' conftest.er1 >conftest.err
  17248. rm -f conftest.er1
  17249. cat conftest.err >&5
  17250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17251. (exit $ac_status); } >/dev/null; then
  17252. if test -s conftest.err; then
  17253. ac_cpp_err=$ac_c_preproc_warn_flag
  17254. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  17255. else
  17256. ac_cpp_err=
  17257. fi
  17258. else
  17259. ac_cpp_err=yes
  17260. fi
  17261. if test -z "$ac_cpp_err"; then
  17262. ac_header_preproc=yes
  17263. else
  17264. echo "$as_me: failed program was:" >&5
  17265. sed 's/^/| /' conftest.$ac_ext >&5
  17266. ac_header_preproc=no
  17267. fi
  17268. rm -f conftest.err conftest.$ac_ext
  17269. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17270. echo "${ECHO_T}$ac_header_preproc" >&6
  17271. # So? What about this header?
  17272. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17273. yes:no: )
  17274. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17275. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17276. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17277. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17278. ac_header_preproc=yes
  17279. ;;
  17280. no:yes:* )
  17281. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17282. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17283. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17284. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17285. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17286. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17287. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17288. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17289. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17290. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17291. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17292. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17293. (
  17294. cat <<\_ASBOX
  17295. ## ------------------------------------------ ##
  17296. ## Report this to the AC_PACKAGE_NAME lists. ##
  17297. ## ------------------------------------------ ##
  17298. _ASBOX
  17299. ) |
  17300. sed "s/^/$as_me: WARNING: /" >&2
  17301. ;;
  17302. esac
  17303. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17304. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17305. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17306. echo $ECHO_N "(cached) $ECHO_C" >&6
  17307. else
  17308. eval "$as_ac_Header=\$ac_header_preproc"
  17309. fi
  17310. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17311. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17312. fi
  17313. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17314. cat >>confdefs.h <<_ACEOF
  17315. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17316. _ACEOF
  17317. fi
  17318. done
  17319. # darwin requires a poll emulation library
  17320. echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
  17321. echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
  17322. if test "${ac_cv_lib_poll_poll+set}" = set; then
  17323. echo $ECHO_N "(cached) $ECHO_C" >&6
  17324. else
  17325. ac_check_lib_save_LIBS=$LIBS
  17326. LIBS="-lpoll $LIBS"
  17327. cat >conftest.$ac_ext <<_ACEOF
  17328. /* confdefs.h. */
  17329. _ACEOF
  17330. cat confdefs.h >>conftest.$ac_ext
  17331. cat >>conftest.$ac_ext <<_ACEOF
  17332. /* end confdefs.h. */
  17333. /* Override any gcc2 internal prototype to avoid an error. */
  17334. #ifdef __cplusplus
  17335. extern "C"
  17336. #endif
  17337. /* We use char because int might match the return type of a gcc2
  17338. builtin and then its argument prototype would still apply. */
  17339. char poll ();
  17340. int
  17341. main ()
  17342. {
  17343. poll ();
  17344. ;
  17345. return 0;
  17346. }
  17347. _ACEOF
  17348. rm -f conftest.$ac_objext conftest$ac_exeext
  17349. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17350. (eval $ac_link) 2>conftest.er1
  17351. ac_status=$?
  17352. grep -v '^ *+' conftest.er1 >conftest.err
  17353. rm -f conftest.er1
  17354. cat conftest.err >&5
  17355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17356. (exit $ac_status); } &&
  17357. { ac_try='test -z "$ac_c_werror_flag"
  17358. || test ! -s conftest.err'
  17359. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17360. (eval $ac_try) 2>&5
  17361. ac_status=$?
  17362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17363. (exit $ac_status); }; } &&
  17364. { ac_try='test -s conftest$ac_exeext'
  17365. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17366. (eval $ac_try) 2>&5
  17367. ac_status=$?
  17368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17369. (exit $ac_status); }; }; then
  17370. ac_cv_lib_poll_poll=yes
  17371. else
  17372. echo "$as_me: failed program was:" >&5
  17373. sed 's/^/| /' conftest.$ac_ext >&5
  17374. ac_cv_lib_poll_poll=no
  17375. fi
  17376. rm -f conftest.err conftest.$ac_objext \
  17377. conftest$ac_exeext conftest.$ac_ext
  17378. LIBS=$ac_check_lib_save_LIBS
  17379. fi
  17380. echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
  17381. echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
  17382. if test $ac_cv_lib_poll_poll = yes; then
  17383. LIB_POLL="-lpoll"
  17384. fi
  17385. # CoreAudio framework
  17386. if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
  17387. echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
  17388. echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
  17389. if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
  17390. echo $ECHO_N "(cached) $ECHO_C" >&6
  17391. fi
  17392. echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
  17393. echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
  17394. else
  17395. # Is the header compilable?
  17396. echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
  17397. echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6
  17398. cat >conftest.$ac_ext <<_ACEOF
  17399. /* confdefs.h. */
  17400. _ACEOF
  17401. cat confdefs.h >>conftest.$ac_ext
  17402. cat >>conftest.$ac_ext <<_ACEOF
  17403. /* end confdefs.h. */
  17404. $ac_includes_default
  17405. #include <CoreAudio/CoreAudio.h>
  17406. _ACEOF
  17407. rm -f conftest.$ac_objext
  17408. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17409. (eval $ac_compile) 2>conftest.er1
  17410. ac_status=$?
  17411. grep -v '^ *+' conftest.er1 >conftest.err
  17412. rm -f conftest.er1
  17413. cat conftest.err >&5
  17414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17415. (exit $ac_status); } &&
  17416. { ac_try='test -z "$ac_c_werror_flag"
  17417. || test ! -s conftest.err'
  17418. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17419. (eval $ac_try) 2>&5
  17420. ac_status=$?
  17421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17422. (exit $ac_status); }; } &&
  17423. { ac_try='test -s conftest.$ac_objext'
  17424. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17425. (eval $ac_try) 2>&5
  17426. ac_status=$?
  17427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17428. (exit $ac_status); }; }; then
  17429. ac_header_compiler=yes
  17430. else
  17431. echo "$as_me: failed program was:" >&5
  17432. sed 's/^/| /' conftest.$ac_ext >&5
  17433. ac_header_compiler=no
  17434. fi
  17435. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17436. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17437. echo "${ECHO_T}$ac_header_compiler" >&6
  17438. # Is the header present?
  17439. echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
  17440. echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6
  17441. cat >conftest.$ac_ext <<_ACEOF
  17442. /* confdefs.h. */
  17443. _ACEOF
  17444. cat confdefs.h >>conftest.$ac_ext
  17445. cat >>conftest.$ac_ext <<_ACEOF
  17446. /* end confdefs.h. */
  17447. #include <CoreAudio/CoreAudio.h>
  17448. _ACEOF
  17449. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  17450. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  17451. ac_status=$?
  17452. grep -v '^ *+' conftest.er1 >conftest.err
  17453. rm -f conftest.er1
  17454. cat conftest.err >&5
  17455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17456. (exit $ac_status); } >/dev/null; then
  17457. if test -s conftest.err; then
  17458. ac_cpp_err=$ac_c_preproc_warn_flag
  17459. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  17460. else
  17461. ac_cpp_err=
  17462. fi
  17463. else
  17464. ac_cpp_err=yes
  17465. fi
  17466. if test -z "$ac_cpp_err"; then
  17467. ac_header_preproc=yes
  17468. else
  17469. echo "$as_me: failed program was:" >&5
  17470. sed 's/^/| /' conftest.$ac_ext >&5
  17471. ac_header_preproc=no
  17472. fi
  17473. rm -f conftest.err conftest.$ac_ext
  17474. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17475. echo "${ECHO_T}$ac_header_preproc" >&6
  17476. # So? What about this header?
  17477. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17478. yes:no: )
  17479. { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
  17480. echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17481. { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
  17482. echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
  17483. ac_header_preproc=yes
  17484. ;;
  17485. no:yes:* )
  17486. { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
  17487. echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
  17488. { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
  17489. echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
  17490. { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
  17491. echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
  17492. { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
  17493. echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
  17494. { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
  17495. echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
  17496. { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
  17497. echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
  17498. (
  17499. cat <<\_ASBOX
  17500. ## ------------------------------------------ ##
  17501. ## Report this to the AC_PACKAGE_NAME lists. ##
  17502. ## ------------------------------------------ ##
  17503. _ASBOX
  17504. ) |
  17505. sed "s/^/$as_me: WARNING: /" >&2
  17506. ;;
  17507. esac
  17508. echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
  17509. echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
  17510. if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
  17511. echo $ECHO_N "(cached) $ECHO_C" >&6
  17512. else
  17513. ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
  17514. fi
  17515. echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
  17516. echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
  17517. fi
  17518. if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
  17519. cat >>confdefs.h <<\_ACEOF
  17520. #define HAVE_COREAUDIO 1
  17521. _ACEOF
  17522. FRAMEWORK_COREAUDIO="-Xlinker -framework -Xlinker CoreAudio"
  17523. fi
  17524. echo "$as_me:$LINENO: checking if res_init needs -lresolv" >&5
  17525. echo $ECHO_N "checking if res_init needs -lresolv... $ECHO_C" >&6
  17526. kde_libs_safe="$LIBS"
  17527. LIBS="$LIBS $X_EXTRA_LIBS -lresolv"
  17528. cat >conftest.$ac_ext <<_ACEOF
  17529. /* confdefs.h. */
  17530. _ACEOF
  17531. cat confdefs.h >>conftest.$ac_ext
  17532. cat >>conftest.$ac_ext <<_ACEOF
  17533. /* end confdefs.h. */
  17534. #include <sys/types.h>
  17535. #include <netinet/in.h>
  17536. #include <arpa/nameser.h>
  17537. #include <resolv.h>
  17538. int
  17539. main ()
  17540. {
  17541. res_init();
  17542. ;
  17543. return 0;
  17544. }
  17545. _ACEOF
  17546. rm -f conftest.$ac_objext conftest$ac_exeext
  17547. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17548. (eval $ac_link) 2>conftest.er1
  17549. ac_status=$?
  17550. grep -v '^ *+' conftest.er1 >conftest.err
  17551. rm -f conftest.er1
  17552. cat conftest.err >&5
  17553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17554. (exit $ac_status); } &&
  17555. { ac_try='test -z "$ac_c_werror_flag"
  17556. || test ! -s conftest.err'
  17557. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17558. (eval $ac_try) 2>&5
  17559. ac_status=$?
  17560. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17561. (exit $ac_status); }; } &&
  17562. { ac_try='test -s conftest$ac_exeext'
  17563. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17564. (eval $ac_try) 2>&5
  17565. ac_status=$?
  17566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17567. (exit $ac_status); }; }; then
  17568. LIBRESOLV="-lresolv"
  17569. echo "$as_me:$LINENO: result: yes" >&5
  17570. echo "${ECHO_T}yes" >&6
  17571. cat >>confdefs.h <<\_ACEOF
  17572. #define HAVE_RES_INIT 1
  17573. _ACEOF
  17574. else
  17575. echo "$as_me: failed program was:" >&5
  17576. sed 's/^/| /' conftest.$ac_ext >&5
  17577. echo "$as_me:$LINENO: result: no" >&5
  17578. echo "${ECHO_T}no" >&6
  17579. fi
  17580. rm -f conftest.err conftest.$ac_objext \
  17581. conftest$ac_exeext conftest.$ac_ext
  17582. LIBS=$kde_libs_safe
  17583. echo "$as_me:$LINENO: checking if res_init is available" >&5
  17584. echo $ECHO_N "checking if res_init is available... $ECHO_C" >&6
  17585. cat >conftest.$ac_ext <<_ACEOF
  17586. /* confdefs.h. */
  17587. _ACEOF
  17588. cat confdefs.h >>conftest.$ac_ext
  17589. cat >>conftest.$ac_ext <<_ACEOF
  17590. /* end confdefs.h. */
  17591. #include <sys/types.h>
  17592. #include <netinet/in.h>
  17593. #include <arpa/nameser.h>
  17594. #include <resolv.h>
  17595. int
  17596. main ()
  17597. {
  17598. res_init();
  17599. ;
  17600. return 0;
  17601. }
  17602. _ACEOF
  17603. rm -f conftest.$ac_objext
  17604. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17605. (eval $ac_compile) 2>conftest.er1
  17606. ac_status=$?
  17607. grep -v '^ *+' conftest.er1 >conftest.err
  17608. rm -f conftest.er1
  17609. cat conftest.err >&5
  17610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17611. (exit $ac_status); } &&
  17612. { ac_try='test -z "$ac_c_werror_flag"
  17613. || test ! -s conftest.err'
  17614. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17615. (eval $ac_try) 2>&5
  17616. ac_status=$?
  17617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17618. (exit $ac_status); }; } &&
  17619. { ac_try='test -s conftest.$ac_objext'
  17620. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17621. (eval $ac_try) 2>&5
  17622. ac_status=$?
  17623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17624. (exit $ac_status); }; }; then
  17625. echo "$as_me:$LINENO: result: yes" >&5
  17626. echo "${ECHO_T}yes" >&6
  17627. cat >>confdefs.h <<\_ACEOF
  17628. #define HAVE_RES_INIT 1
  17629. _ACEOF
  17630. else
  17631. echo "$as_me: failed program was:" >&5
  17632. sed 's/^/| /' conftest.$ac_ext >&5
  17633. echo "$as_me:$LINENO: result: no" >&5
  17634. echo "${ECHO_T}no" >&6
  17635. fi
  17636. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17637. LIBSOCKET="$X_EXTRA_LIBS"
  17638. echo "$as_me:$LINENO: checking for killpg in -lucb" >&5
  17639. echo $ECHO_N "checking for killpg in -lucb... $ECHO_C" >&6
  17640. if test "${ac_cv_lib_ucb_killpg+set}" = set; then
  17641. echo $ECHO_N "(cached) $ECHO_C" >&6
  17642. else
  17643. ac_check_lib_save_LIBS=$LIBS
  17644. LIBS="-lucb $LIBS"
  17645. cat >conftest.$ac_ext <<_ACEOF
  17646. /* confdefs.h. */
  17647. _ACEOF
  17648. cat confdefs.h >>conftest.$ac_ext
  17649. cat >>conftest.$ac_ext <<_ACEOF
  17650. /* end confdefs.h. */
  17651. /* Override any gcc2 internal prototype to avoid an error. */
  17652. #ifdef __cplusplus
  17653. extern "C"
  17654. #endif
  17655. /* We use char because int might match the return type of a gcc2
  17656. builtin and then its argument prototype would still apply. */
  17657. char killpg ();
  17658. int
  17659. main ()
  17660. {
  17661. killpg ();
  17662. ;
  17663. return 0;
  17664. }
  17665. _ACEOF
  17666. rm -f conftest.$ac_objext conftest$ac_exeext
  17667. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17668. (eval $ac_link) 2>conftest.er1
  17669. ac_status=$?
  17670. grep -v '^ *+' conftest.er1 >conftest.err
  17671. rm -f conftest.er1
  17672. cat conftest.err >&5
  17673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17674. (exit $ac_status); } &&
  17675. { ac_try='test -z "$ac_c_werror_flag"
  17676. || test ! -s conftest.err'
  17677. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17678. (eval $ac_try) 2>&5
  17679. ac_status=$?
  17680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17681. (exit $ac_status); }; } &&
  17682. { ac_try='test -s conftest$ac_exeext'
  17683. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17684. (eval $ac_try) 2>&5
  17685. ac_status=$?
  17686. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17687. (exit $ac_status); }; }; then
  17688. ac_cv_lib_ucb_killpg=yes
  17689. else
  17690. echo "$as_me: failed program was:" >&5
  17691. sed 's/^/| /' conftest.$ac_ext >&5
  17692. ac_cv_lib_ucb_killpg=no
  17693. fi
  17694. rm -f conftest.err conftest.$ac_objext \
  17695. conftest$ac_exeext conftest.$ac_ext
  17696. LIBS=$ac_check_lib_save_LIBS
  17697. fi
  17698. echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_killpg" >&5
  17699. echo "${ECHO_T}$ac_cv_lib_ucb_killpg" >&6
  17700. if test $ac_cv_lib_ucb_killpg = yes; then
  17701. LIBUCB="-lucb"
  17702. fi
  17703. case $host in *-*-lynxos* )
  17704. echo "$as_me:$LINENO: checking LynxOS header file wrappers" >&5
  17705. echo $ECHO_N "checking LynxOS header file wrappers... $ECHO_C" >&6
  17706. CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
  17707. echo "$as_me:$LINENO: result: disabled" >&5
  17708. echo "${ECHO_T}disabled" >&6
  17709. echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
  17710. echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
  17711. if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
  17712. echo $ECHO_N "(cached) $ECHO_C" >&6
  17713. else
  17714. ac_check_lib_save_LIBS=$LIBS
  17715. LIBS="-lbsd $LIBS"
  17716. cat >conftest.$ac_ext <<_ACEOF
  17717. /* confdefs.h. */
  17718. _ACEOF
  17719. cat confdefs.h >>conftest.$ac_ext
  17720. cat >>conftest.$ac_ext <<_ACEOF
  17721. /* end confdefs.h. */
  17722. /* Override any gcc2 internal prototype to avoid an error. */
  17723. #ifdef __cplusplus
  17724. extern "C"
  17725. #endif
  17726. /* We use char because int might match the return type of a gcc2
  17727. builtin and then its argument prototype would still apply. */
  17728. char gethostbyname ();
  17729. int
  17730. main ()
  17731. {
  17732. gethostbyname ();
  17733. ;
  17734. return 0;
  17735. }
  17736. _ACEOF
  17737. rm -f conftest.$ac_objext conftest$ac_exeext
  17738. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17739. (eval $ac_link) 2>conftest.er1
  17740. ac_status=$?
  17741. grep -v '^ *+' conftest.er1 >conftest.err
  17742. rm -f conftest.er1
  17743. cat conftest.err >&5
  17744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17745. (exit $ac_status); } &&
  17746. { ac_try='test -z "$ac_c_werror_flag"
  17747. || test ! -s conftest.err'
  17748. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17749. (eval $ac_try) 2>&5
  17750. ac_status=$?
  17751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17752. (exit $ac_status); }; } &&
  17753. { ac_try='test -s conftest$ac_exeext'
  17754. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17755. (eval $ac_try) 2>&5
  17756. ac_status=$?
  17757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17758. (exit $ac_status); }; }; then
  17759. ac_cv_lib_bsd_gethostbyname=yes
  17760. else
  17761. echo "$as_me: failed program was:" >&5
  17762. sed 's/^/| /' conftest.$ac_ext >&5
  17763. ac_cv_lib_bsd_gethostbyname=no
  17764. fi
  17765. rm -f conftest.err conftest.$ac_objext \
  17766. conftest$ac_exeext conftest.$ac_ext
  17767. LIBS=$ac_check_lib_save_LIBS
  17768. fi
  17769. echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17770. echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
  17771. if test $ac_cv_lib_bsd_gethostbyname = yes; then
  17772. LIBSOCKET="-lbsd"
  17773. fi
  17774. ;;
  17775. esac
  17776. echo "$as_me:$LINENO: checking for int" >&5
  17777. echo $ECHO_N "checking for int... $ECHO_C" >&6
  17778. if test "${ac_cv_type_int+set}" = set; then
  17779. echo $ECHO_N "(cached) $ECHO_C" >&6
  17780. else
  17781. cat >conftest.$ac_ext <<_ACEOF
  17782. /* confdefs.h. */
  17783. _ACEOF
  17784. cat confdefs.h >>conftest.$ac_ext
  17785. cat >>conftest.$ac_ext <<_ACEOF
  17786. /* end confdefs.h. */
  17787. $ac_includes_default
  17788. int
  17789. main ()
  17790. {
  17791. if ((int *) 0)
  17792. return 0;
  17793. if (sizeof (int))
  17794. return 0;
  17795. ;
  17796. return 0;
  17797. }
  17798. _ACEOF
  17799. rm -f conftest.$ac_objext
  17800. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17801. (eval $ac_compile) 2>conftest.er1
  17802. ac_status=$?
  17803. grep -v '^ *+' conftest.er1 >conftest.err
  17804. rm -f conftest.er1
  17805. cat conftest.err >&5
  17806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17807. (exit $ac_status); } &&
  17808. { ac_try='test -z "$ac_c_werror_flag"
  17809. || test ! -s conftest.err'
  17810. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17811. (eval $ac_try) 2>&5
  17812. ac_status=$?
  17813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17814. (exit $ac_status); }; } &&
  17815. { ac_try='test -s conftest.$ac_objext'
  17816. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17817. (eval $ac_try) 2>&5
  17818. ac_status=$?
  17819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17820. (exit $ac_status); }; }; then
  17821. ac_cv_type_int=yes
  17822. else
  17823. echo "$as_me: failed program was:" >&5
  17824. sed 's/^/| /' conftest.$ac_ext >&5
  17825. ac_cv_type_int=no
  17826. fi
  17827. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17828. fi
  17829. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  17830. echo "${ECHO_T}$ac_cv_type_int" >&6
  17831. echo "$as_me:$LINENO: checking size of int" >&5
  17832. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  17833. if test "${ac_cv_sizeof_int+set}" = set; then
  17834. echo $ECHO_N "(cached) $ECHO_C" >&6
  17835. else
  17836. if test "$ac_cv_type_int" = yes; then
  17837. # The cast to unsigned long works around a bug in the HP C Compiler
  17838. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  17839. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  17840. # This bug is HP SR number 8606223364.
  17841. if test "$cross_compiling" = yes; then
  17842. # Depending upon the size, compute the lo and hi bounds.
  17843. cat >conftest.$ac_ext <<_ACEOF
  17844. /* confdefs.h. */
  17845. _ACEOF
  17846. cat confdefs.h >>conftest.$ac_ext
  17847. cat >>conftest.$ac_ext <<_ACEOF
  17848. /* end confdefs.h. */
  17849. $ac_includes_default
  17850. int
  17851. main ()
  17852. {
  17853. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  17854. test_array [0] = 0
  17855. ;
  17856. return 0;
  17857. }
  17858. _ACEOF
  17859. rm -f conftest.$ac_objext
  17860. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17861. (eval $ac_compile) 2>conftest.er1
  17862. ac_status=$?
  17863. grep -v '^ *+' conftest.er1 >conftest.err
  17864. rm -f conftest.er1
  17865. cat conftest.err >&5
  17866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17867. (exit $ac_status); } &&
  17868. { ac_try='test -z "$ac_c_werror_flag"
  17869. || test ! -s conftest.err'
  17870. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17871. (eval $ac_try) 2>&5
  17872. ac_status=$?
  17873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17874. (exit $ac_status); }; } &&
  17875. { ac_try='test -s conftest.$ac_objext'
  17876. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17877. (eval $ac_try) 2>&5
  17878. ac_status=$?
  17879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17880. (exit $ac_status); }; }; then
  17881. ac_lo=0 ac_mid=0
  17882. while :; do
  17883. cat >conftest.$ac_ext <<_ACEOF
  17884. /* confdefs.h. */
  17885. _ACEOF
  17886. cat confdefs.h >>conftest.$ac_ext
  17887. cat >>conftest.$ac_ext <<_ACEOF
  17888. /* end confdefs.h. */
  17889. $ac_includes_default
  17890. int
  17891. main ()
  17892. {
  17893. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  17894. test_array [0] = 0
  17895. ;
  17896. return 0;
  17897. }
  17898. _ACEOF
  17899. rm -f conftest.$ac_objext
  17900. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17901. (eval $ac_compile) 2>conftest.er1
  17902. ac_status=$?
  17903. grep -v '^ *+' conftest.er1 >conftest.err
  17904. rm -f conftest.er1
  17905. cat conftest.err >&5
  17906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17907. (exit $ac_status); } &&
  17908. { ac_try='test -z "$ac_c_werror_flag"
  17909. || test ! -s conftest.err'
  17910. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17911. (eval $ac_try) 2>&5
  17912. ac_status=$?
  17913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17914. (exit $ac_status); }; } &&
  17915. { ac_try='test -s conftest.$ac_objext'
  17916. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17917. (eval $ac_try) 2>&5
  17918. ac_status=$?
  17919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17920. (exit $ac_status); }; }; then
  17921. ac_hi=$ac_mid; break
  17922. else
  17923. echo "$as_me: failed program was:" >&5
  17924. sed 's/^/| /' conftest.$ac_ext >&5
  17925. ac_lo=`expr $ac_mid + 1`
  17926. if test $ac_lo -le $ac_mid; then
  17927. ac_lo= ac_hi=
  17928. break
  17929. fi
  17930. ac_mid=`expr 2 '*' $ac_mid + 1`
  17931. fi
  17932. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17933. done
  17934. else
  17935. echo "$as_me: failed program was:" >&5
  17936. sed 's/^/| /' conftest.$ac_ext >&5
  17937. cat >conftest.$ac_ext <<_ACEOF
  17938. /* confdefs.h. */
  17939. _ACEOF
  17940. cat confdefs.h >>conftest.$ac_ext
  17941. cat >>conftest.$ac_ext <<_ACEOF
  17942. /* end confdefs.h. */
  17943. $ac_includes_default
  17944. int
  17945. main ()
  17946. {
  17947. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  17948. test_array [0] = 0
  17949. ;
  17950. return 0;
  17951. }
  17952. _ACEOF
  17953. rm -f conftest.$ac_objext
  17954. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17955. (eval $ac_compile) 2>conftest.er1
  17956. ac_status=$?
  17957. grep -v '^ *+' conftest.er1 >conftest.err
  17958. rm -f conftest.er1
  17959. cat conftest.err >&5
  17960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17961. (exit $ac_status); } &&
  17962. { ac_try='test -z "$ac_c_werror_flag"
  17963. || test ! -s conftest.err'
  17964. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17965. (eval $ac_try) 2>&5
  17966. ac_status=$?
  17967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17968. (exit $ac_status); }; } &&
  17969. { ac_try='test -s conftest.$ac_objext'
  17970. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17971. (eval $ac_try) 2>&5
  17972. ac_status=$?
  17973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17974. (exit $ac_status); }; }; then
  17975. ac_hi=-1 ac_mid=-1
  17976. while :; do
  17977. cat >conftest.$ac_ext <<_ACEOF
  17978. /* confdefs.h. */
  17979. _ACEOF
  17980. cat confdefs.h >>conftest.$ac_ext
  17981. cat >>conftest.$ac_ext <<_ACEOF
  17982. /* end confdefs.h. */
  17983. $ac_includes_default
  17984. int
  17985. main ()
  17986. {
  17987. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  17988. test_array [0] = 0
  17989. ;
  17990. return 0;
  17991. }
  17992. _ACEOF
  17993. rm -f conftest.$ac_objext
  17994. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17995. (eval $ac_compile) 2>conftest.er1
  17996. ac_status=$?
  17997. grep -v '^ *+' conftest.er1 >conftest.err
  17998. rm -f conftest.er1
  17999. cat conftest.err >&5
  18000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18001. (exit $ac_status); } &&
  18002. { ac_try='test -z "$ac_c_werror_flag"
  18003. || test ! -s conftest.err'
  18004. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18005. (eval $ac_try) 2>&5
  18006. ac_status=$?
  18007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18008. (exit $ac_status); }; } &&
  18009. { ac_try='test -s conftest.$ac_objext'
  18010. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18011. (eval $ac_try) 2>&5
  18012. ac_status=$?
  18013. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18014. (exit $ac_status); }; }; then
  18015. ac_lo=$ac_mid; break
  18016. else
  18017. echo "$as_me: failed program was:" >&5
  18018. sed 's/^/| /' conftest.$ac_ext >&5
  18019. ac_hi=`expr '(' $ac_mid ')' - 1`
  18020. if test $ac_mid -le $ac_hi; then
  18021. ac_lo= ac_hi=
  18022. break
  18023. fi
  18024. ac_mid=`expr 2 '*' $ac_mid`
  18025. fi
  18026. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18027. done
  18028. else
  18029. echo "$as_me: failed program was:" >&5
  18030. sed 's/^/| /' conftest.$ac_ext >&5
  18031. ac_lo= ac_hi=
  18032. fi
  18033. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18034. fi
  18035. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18036. # Binary search between lo and hi bounds.
  18037. while test "x$ac_lo" != "x$ac_hi"; do
  18038. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  18039. cat >conftest.$ac_ext <<_ACEOF
  18040. /* confdefs.h. */
  18041. _ACEOF
  18042. cat confdefs.h >>conftest.$ac_ext
  18043. cat >>conftest.$ac_ext <<_ACEOF
  18044. /* end confdefs.h. */
  18045. $ac_includes_default
  18046. int
  18047. main ()
  18048. {
  18049. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  18050. test_array [0] = 0
  18051. ;
  18052. return 0;
  18053. }
  18054. _ACEOF
  18055. rm -f conftest.$ac_objext
  18056. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18057. (eval $ac_compile) 2>conftest.er1
  18058. ac_status=$?
  18059. grep -v '^ *+' conftest.er1 >conftest.err
  18060. rm -f conftest.er1
  18061. cat conftest.err >&5
  18062. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18063. (exit $ac_status); } &&
  18064. { ac_try='test -z "$ac_c_werror_flag"
  18065. || test ! -s conftest.err'
  18066. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18067. (eval $ac_try) 2>&5
  18068. ac_status=$?
  18069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18070. (exit $ac_status); }; } &&
  18071. { ac_try='test -s conftest.$ac_objext'
  18072. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18073. (eval $ac_try) 2>&5
  18074. ac_status=$?
  18075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18076. (exit $ac_status); }; }; then
  18077. ac_hi=$ac_mid
  18078. else
  18079. echo "$as_me: failed program was:" >&5
  18080. sed 's/^/| /' conftest.$ac_ext >&5
  18081. ac_lo=`expr '(' $ac_mid ')' + 1`
  18082. fi
  18083. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18084. done
  18085. case $ac_lo in
  18086. ?*) ac_cv_sizeof_int=$ac_lo;;
  18087. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  18088. See \`config.log' for more details." >&5
  18089. echo "$as_me: error: cannot compute sizeof (int), 77
  18090. See \`config.log' for more details." >&2;}
  18091. { (exit 1); exit 1; }; } ;;
  18092. esac
  18093. else
  18094. if test "$cross_compiling" = yes; then
  18095. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  18096. See \`config.log' for more details." >&5
  18097. echo "$as_me: error: cannot run test program while cross compiling
  18098. See \`config.log' for more details." >&2;}
  18099. { (exit 1); exit 1; }; }
  18100. else
  18101. cat >conftest.$ac_ext <<_ACEOF
  18102. /* confdefs.h. */
  18103. _ACEOF
  18104. cat confdefs.h >>conftest.$ac_ext
  18105. cat >>conftest.$ac_ext <<_ACEOF
  18106. /* end confdefs.h. */
  18107. $ac_includes_default
  18108. long longval () { return (long) (sizeof (int)); }
  18109. unsigned long ulongval () { return (long) (sizeof (int)); }
  18110. #include <stdio.h>
  18111. #include <stdlib.h>
  18112. int
  18113. main ()
  18114. {
  18115. FILE *f = fopen ("conftest.val", "w");
  18116. if (! f)
  18117. exit (1);
  18118. if (((long) (sizeof (int))) < 0)
  18119. {
  18120. long i = longval ();
  18121. if (i != ((long) (sizeof (int))))
  18122. exit (1);
  18123. fprintf (f, "%ld\n", i);
  18124. }
  18125. else
  18126. {
  18127. unsigned long i = ulongval ();
  18128. if (i != ((long) (sizeof (int))))
  18129. exit (1);
  18130. fprintf (f, "%lu\n", i);
  18131. }
  18132. exit (ferror (f) || fclose (f) != 0);
  18133. ;
  18134. return 0;
  18135. }
  18136. _ACEOF
  18137. rm -f conftest$ac_exeext
  18138. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18139. (eval $ac_link) 2>&5
  18140. ac_status=$?
  18141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18142. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18143. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18144. (eval $ac_try) 2>&5
  18145. ac_status=$?
  18146. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18147. (exit $ac_status); }; }; then
  18148. ac_cv_sizeof_int=`cat conftest.val`
  18149. else
  18150. echo "$as_me: program exited with status $ac_status" >&5
  18151. echo "$as_me: failed program was:" >&5
  18152. sed 's/^/| /' conftest.$ac_ext >&5
  18153. ( exit $ac_status )
  18154. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  18155. See \`config.log' for more details." >&5
  18156. echo "$as_me: error: cannot compute sizeof (int), 77
  18157. See \`config.log' for more details." >&2;}
  18158. { (exit 1); exit 1; }; }
  18159. fi
  18160. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18161. fi
  18162. fi
  18163. rm -f conftest.val
  18164. else
  18165. ac_cv_sizeof_int=0
  18166. fi
  18167. fi
  18168. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  18169. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  18170. cat >>confdefs.h <<_ACEOF
  18171. #define SIZEOF_INT $ac_cv_sizeof_int
  18172. _ACEOF
  18173. echo "$as_me:$LINENO: checking for long" >&5
  18174. echo $ECHO_N "checking for long... $ECHO_C" >&6
  18175. if test "${ac_cv_type_long+set}" = set; then
  18176. echo $ECHO_N "(cached) $ECHO_C" >&6
  18177. else
  18178. cat >conftest.$ac_ext <<_ACEOF
  18179. /* confdefs.h. */
  18180. _ACEOF
  18181. cat confdefs.h >>conftest.$ac_ext
  18182. cat >>conftest.$ac_ext <<_ACEOF
  18183. /* end confdefs.h. */
  18184. $ac_includes_default
  18185. int
  18186. main ()
  18187. {
  18188. if ((long *) 0)
  18189. return 0;
  18190. if (sizeof (long))
  18191. return 0;
  18192. ;
  18193. return 0;
  18194. }
  18195. _ACEOF
  18196. rm -f conftest.$ac_objext
  18197. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18198. (eval $ac_compile) 2>conftest.er1
  18199. ac_status=$?
  18200. grep -v '^ *+' conftest.er1 >conftest.err
  18201. rm -f conftest.er1
  18202. cat conftest.err >&5
  18203. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18204. (exit $ac_status); } &&
  18205. { ac_try='test -z "$ac_c_werror_flag"
  18206. || test ! -s conftest.err'
  18207. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18208. (eval $ac_try) 2>&5
  18209. ac_status=$?
  18210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18211. (exit $ac_status); }; } &&
  18212. { ac_try='test -s conftest.$ac_objext'
  18213. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18214. (eval $ac_try) 2>&5
  18215. ac_status=$?
  18216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18217. (exit $ac_status); }; }; then
  18218. ac_cv_type_long=yes
  18219. else
  18220. echo "$as_me: failed program was:" >&5
  18221. sed 's/^/| /' conftest.$ac_ext >&5
  18222. ac_cv_type_long=no
  18223. fi
  18224. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18225. fi
  18226. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  18227. echo "${ECHO_T}$ac_cv_type_long" >&6
  18228. echo "$as_me:$LINENO: checking size of long" >&5
  18229. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  18230. if test "${ac_cv_sizeof_long+set}" = set; then
  18231. echo $ECHO_N "(cached) $ECHO_C" >&6
  18232. else
  18233. if test "$ac_cv_type_long" = yes; then
  18234. # The cast to unsigned long works around a bug in the HP C Compiler
  18235. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  18236. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  18237. # This bug is HP SR number 8606223364.
  18238. if test "$cross_compiling" = yes; then
  18239. # Depending upon the size, compute the lo and hi bounds.
  18240. cat >conftest.$ac_ext <<_ACEOF
  18241. /* confdefs.h. */
  18242. _ACEOF
  18243. cat confdefs.h >>conftest.$ac_ext
  18244. cat >>conftest.$ac_ext <<_ACEOF
  18245. /* end confdefs.h. */
  18246. $ac_includes_default
  18247. int
  18248. main ()
  18249. {
  18250. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  18251. test_array [0] = 0
  18252. ;
  18253. return 0;
  18254. }
  18255. _ACEOF
  18256. rm -f conftest.$ac_objext
  18257. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18258. (eval $ac_compile) 2>conftest.er1
  18259. ac_status=$?
  18260. grep -v '^ *+' conftest.er1 >conftest.err
  18261. rm -f conftest.er1
  18262. cat conftest.err >&5
  18263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18264. (exit $ac_status); } &&
  18265. { ac_try='test -z "$ac_c_werror_flag"
  18266. || test ! -s conftest.err'
  18267. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18268. (eval $ac_try) 2>&5
  18269. ac_status=$?
  18270. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18271. (exit $ac_status); }; } &&
  18272. { ac_try='test -s conftest.$ac_objext'
  18273. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18274. (eval $ac_try) 2>&5
  18275. ac_status=$?
  18276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18277. (exit $ac_status); }; }; then
  18278. ac_lo=0 ac_mid=0
  18279. while :; do
  18280. cat >conftest.$ac_ext <<_ACEOF
  18281. /* confdefs.h. */
  18282. _ACEOF
  18283. cat confdefs.h >>conftest.$ac_ext
  18284. cat >>conftest.$ac_ext <<_ACEOF
  18285. /* end confdefs.h. */
  18286. $ac_includes_default
  18287. int
  18288. main ()
  18289. {
  18290. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  18291. test_array [0] = 0
  18292. ;
  18293. return 0;
  18294. }
  18295. _ACEOF
  18296. rm -f conftest.$ac_objext
  18297. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18298. (eval $ac_compile) 2>conftest.er1
  18299. ac_status=$?
  18300. grep -v '^ *+' conftest.er1 >conftest.err
  18301. rm -f conftest.er1
  18302. cat conftest.err >&5
  18303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18304. (exit $ac_status); } &&
  18305. { ac_try='test -z "$ac_c_werror_flag"
  18306. || test ! -s conftest.err'
  18307. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18308. (eval $ac_try) 2>&5
  18309. ac_status=$?
  18310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18311. (exit $ac_status); }; } &&
  18312. { ac_try='test -s conftest.$ac_objext'
  18313. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18314. (eval $ac_try) 2>&5
  18315. ac_status=$?
  18316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18317. (exit $ac_status); }; }; then
  18318. ac_hi=$ac_mid; break
  18319. else
  18320. echo "$as_me: failed program was:" >&5
  18321. sed 's/^/| /' conftest.$ac_ext >&5
  18322. ac_lo=`expr $ac_mid + 1`
  18323. if test $ac_lo -le $ac_mid; then
  18324. ac_lo= ac_hi=
  18325. break
  18326. fi
  18327. ac_mid=`expr 2 '*' $ac_mid + 1`
  18328. fi
  18329. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18330. done
  18331. else
  18332. echo "$as_me: failed program was:" >&5
  18333. sed 's/^/| /' conftest.$ac_ext >&5
  18334. cat >conftest.$ac_ext <<_ACEOF
  18335. /* confdefs.h. */
  18336. _ACEOF
  18337. cat confdefs.h >>conftest.$ac_ext
  18338. cat >>conftest.$ac_ext <<_ACEOF
  18339. /* end confdefs.h. */
  18340. $ac_includes_default
  18341. int
  18342. main ()
  18343. {
  18344. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  18345. test_array [0] = 0
  18346. ;
  18347. return 0;
  18348. }
  18349. _ACEOF
  18350. rm -f conftest.$ac_objext
  18351. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18352. (eval $ac_compile) 2>conftest.er1
  18353. ac_status=$?
  18354. grep -v '^ *+' conftest.er1 >conftest.err
  18355. rm -f conftest.er1
  18356. cat conftest.err >&5
  18357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18358. (exit $ac_status); } &&
  18359. { ac_try='test -z "$ac_c_werror_flag"
  18360. || test ! -s conftest.err'
  18361. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18362. (eval $ac_try) 2>&5
  18363. ac_status=$?
  18364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18365. (exit $ac_status); }; } &&
  18366. { ac_try='test -s conftest.$ac_objext'
  18367. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18368. (eval $ac_try) 2>&5
  18369. ac_status=$?
  18370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18371. (exit $ac_status); }; }; then
  18372. ac_hi=-1 ac_mid=-1
  18373. while :; do
  18374. cat >conftest.$ac_ext <<_ACEOF
  18375. /* confdefs.h. */
  18376. _ACEOF
  18377. cat confdefs.h >>conftest.$ac_ext
  18378. cat >>conftest.$ac_ext <<_ACEOF
  18379. /* end confdefs.h. */
  18380. $ac_includes_default
  18381. int
  18382. main ()
  18383. {
  18384. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  18385. test_array [0] = 0
  18386. ;
  18387. return 0;
  18388. }
  18389. _ACEOF
  18390. rm -f conftest.$ac_objext
  18391. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18392. (eval $ac_compile) 2>conftest.er1
  18393. ac_status=$?
  18394. grep -v '^ *+' conftest.er1 >conftest.err
  18395. rm -f conftest.er1
  18396. cat conftest.err >&5
  18397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18398. (exit $ac_status); } &&
  18399. { ac_try='test -z "$ac_c_werror_flag"
  18400. || test ! -s conftest.err'
  18401. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18402. (eval $ac_try) 2>&5
  18403. ac_status=$?
  18404. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18405. (exit $ac_status); }; } &&
  18406. { ac_try='test -s conftest.$ac_objext'
  18407. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18408. (eval $ac_try) 2>&5
  18409. ac_status=$?
  18410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18411. (exit $ac_status); }; }; then
  18412. ac_lo=$ac_mid; break
  18413. else
  18414. echo "$as_me: failed program was:" >&5
  18415. sed 's/^/| /' conftest.$ac_ext >&5
  18416. ac_hi=`expr '(' $ac_mid ')' - 1`
  18417. if test $ac_mid -le $ac_hi; then
  18418. ac_lo= ac_hi=
  18419. break
  18420. fi
  18421. ac_mid=`expr 2 '*' $ac_mid`
  18422. fi
  18423. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18424. done
  18425. else
  18426. echo "$as_me: failed program was:" >&5
  18427. sed 's/^/| /' conftest.$ac_ext >&5
  18428. ac_lo= ac_hi=
  18429. fi
  18430. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18431. fi
  18432. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18433. # Binary search between lo and hi bounds.
  18434. while test "x$ac_lo" != "x$ac_hi"; do
  18435. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  18436. cat >conftest.$ac_ext <<_ACEOF
  18437. /* confdefs.h. */
  18438. _ACEOF
  18439. cat confdefs.h >>conftest.$ac_ext
  18440. cat >>conftest.$ac_ext <<_ACEOF
  18441. /* end confdefs.h. */
  18442. $ac_includes_default
  18443. int
  18444. main ()
  18445. {
  18446. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  18447. test_array [0] = 0
  18448. ;
  18449. return 0;
  18450. }
  18451. _ACEOF
  18452. rm -f conftest.$ac_objext
  18453. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18454. (eval $ac_compile) 2>conftest.er1
  18455. ac_status=$?
  18456. grep -v '^ *+' conftest.er1 >conftest.err
  18457. rm -f conftest.er1
  18458. cat conftest.err >&5
  18459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18460. (exit $ac_status); } &&
  18461. { ac_try='test -z "$ac_c_werror_flag"
  18462. || test ! -s conftest.err'
  18463. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18464. (eval $ac_try) 2>&5
  18465. ac_status=$?
  18466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18467. (exit $ac_status); }; } &&
  18468. { ac_try='test -s conftest.$ac_objext'
  18469. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18470. (eval $ac_try) 2>&5
  18471. ac_status=$?
  18472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18473. (exit $ac_status); }; }; then
  18474. ac_hi=$ac_mid
  18475. else
  18476. echo "$as_me: failed program was:" >&5
  18477. sed 's/^/| /' conftest.$ac_ext >&5
  18478. ac_lo=`expr '(' $ac_mid ')' + 1`
  18479. fi
  18480. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18481. done
  18482. case $ac_lo in
  18483. ?*) ac_cv_sizeof_long=$ac_lo;;
  18484. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  18485. See \`config.log' for more details." >&5
  18486. echo "$as_me: error: cannot compute sizeof (long), 77
  18487. See \`config.log' for more details." >&2;}
  18488. { (exit 1); exit 1; }; } ;;
  18489. esac
  18490. else
  18491. if test "$cross_compiling" = yes; then
  18492. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  18493. See \`config.log' for more details." >&5
  18494. echo "$as_me: error: cannot run test program while cross compiling
  18495. See \`config.log' for more details." >&2;}
  18496. { (exit 1); exit 1; }; }
  18497. else
  18498. cat >conftest.$ac_ext <<_ACEOF
  18499. /* confdefs.h. */
  18500. _ACEOF
  18501. cat confdefs.h >>conftest.$ac_ext
  18502. cat >>conftest.$ac_ext <<_ACEOF
  18503. /* end confdefs.h. */
  18504. $ac_includes_default
  18505. long longval () { return (long) (sizeof (long)); }
  18506. unsigned long ulongval () { return (long) (sizeof (long)); }
  18507. #include <stdio.h>
  18508. #include <stdlib.h>
  18509. int
  18510. main ()
  18511. {
  18512. FILE *f = fopen ("conftest.val", "w");
  18513. if (! f)
  18514. exit (1);
  18515. if (((long) (sizeof (long))) < 0)
  18516. {
  18517. long i = longval ();
  18518. if (i != ((long) (sizeof (long))))
  18519. exit (1);
  18520. fprintf (f, "%ld\n", i);
  18521. }
  18522. else
  18523. {
  18524. unsigned long i = ulongval ();
  18525. if (i != ((long) (sizeof (long))))
  18526. exit (1);
  18527. fprintf (f, "%lu\n", i);
  18528. }
  18529. exit (ferror (f) || fclose (f) != 0);
  18530. ;
  18531. return 0;
  18532. }
  18533. _ACEOF
  18534. rm -f conftest$ac_exeext
  18535. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18536. (eval $ac_link) 2>&5
  18537. ac_status=$?
  18538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18539. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18540. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18541. (eval $ac_try) 2>&5
  18542. ac_status=$?
  18543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18544. (exit $ac_status); }; }; then
  18545. ac_cv_sizeof_long=`cat conftest.val`
  18546. else
  18547. echo "$as_me: program exited with status $ac_status" >&5
  18548. echo "$as_me: failed program was:" >&5
  18549. sed 's/^/| /' conftest.$ac_ext >&5
  18550. ( exit $ac_status )
  18551. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  18552. See \`config.log' for more details." >&5
  18553. echo "$as_me: error: cannot compute sizeof (long), 77
  18554. See \`config.log' for more details." >&2;}
  18555. { (exit 1); exit 1; }; }
  18556. fi
  18557. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18558. fi
  18559. fi
  18560. rm -f conftest.val
  18561. else
  18562. ac_cv_sizeof_long=0
  18563. fi
  18564. fi
  18565. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  18566. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  18567. cat >>confdefs.h <<_ACEOF
  18568. #define SIZEOF_LONG $ac_cv_sizeof_long
  18569. _ACEOF
  18570. echo "$as_me:$LINENO: checking for char *" >&5
  18571. echo $ECHO_N "checking for char *... $ECHO_C" >&6
  18572. if test "${ac_cv_type_char_p+set}" = set; then
  18573. echo $ECHO_N "(cached) $ECHO_C" >&6
  18574. else
  18575. cat >conftest.$ac_ext <<_ACEOF
  18576. /* confdefs.h. */
  18577. _ACEOF
  18578. cat confdefs.h >>conftest.$ac_ext
  18579. cat >>conftest.$ac_ext <<_ACEOF
  18580. /* end confdefs.h. */
  18581. $ac_includes_default
  18582. int
  18583. main ()
  18584. {
  18585. if ((char * *) 0)
  18586. return 0;
  18587. if (sizeof (char *))
  18588. return 0;
  18589. ;
  18590. return 0;
  18591. }
  18592. _ACEOF
  18593. rm -f conftest.$ac_objext
  18594. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18595. (eval $ac_compile) 2>conftest.er1
  18596. ac_status=$?
  18597. grep -v '^ *+' conftest.er1 >conftest.err
  18598. rm -f conftest.er1
  18599. cat conftest.err >&5
  18600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18601. (exit $ac_status); } &&
  18602. { ac_try='test -z "$ac_c_werror_flag"
  18603. || test ! -s conftest.err'
  18604. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18605. (eval $ac_try) 2>&5
  18606. ac_status=$?
  18607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18608. (exit $ac_status); }; } &&
  18609. { ac_try='test -s conftest.$ac_objext'
  18610. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18611. (eval $ac_try) 2>&5
  18612. ac_status=$?
  18613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18614. (exit $ac_status); }; }; then
  18615. ac_cv_type_char_p=yes
  18616. else
  18617. echo "$as_me: failed program was:" >&5
  18618. sed 's/^/| /' conftest.$ac_ext >&5
  18619. ac_cv_type_char_p=no
  18620. fi
  18621. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18622. fi
  18623. echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
  18624. echo "${ECHO_T}$ac_cv_type_char_p" >&6
  18625. echo "$as_me:$LINENO: checking size of char *" >&5
  18626. echo $ECHO_N "checking size of char *... $ECHO_C" >&6
  18627. if test "${ac_cv_sizeof_char_p+set}" = set; then
  18628. echo $ECHO_N "(cached) $ECHO_C" >&6
  18629. else
  18630. if test "$ac_cv_type_char_p" = yes; then
  18631. # The cast to unsigned long works around a bug in the HP C Compiler
  18632. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  18633. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  18634. # This bug is HP SR number 8606223364.
  18635. if test "$cross_compiling" = yes; then
  18636. # Depending upon the size, compute the lo and hi bounds.
  18637. cat >conftest.$ac_ext <<_ACEOF
  18638. /* confdefs.h. */
  18639. _ACEOF
  18640. cat confdefs.h >>conftest.$ac_ext
  18641. cat >>conftest.$ac_ext <<_ACEOF
  18642. /* end confdefs.h. */
  18643. $ac_includes_default
  18644. int
  18645. main ()
  18646. {
  18647. static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= 0)];
  18648. test_array [0] = 0
  18649. ;
  18650. return 0;
  18651. }
  18652. _ACEOF
  18653. rm -f conftest.$ac_objext
  18654. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18655. (eval $ac_compile) 2>conftest.er1
  18656. ac_status=$?
  18657. grep -v '^ *+' conftest.er1 >conftest.err
  18658. rm -f conftest.er1
  18659. cat conftest.err >&5
  18660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18661. (exit $ac_status); } &&
  18662. { ac_try='test -z "$ac_c_werror_flag"
  18663. || test ! -s conftest.err'
  18664. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18665. (eval $ac_try) 2>&5
  18666. ac_status=$?
  18667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18668. (exit $ac_status); }; } &&
  18669. { ac_try='test -s conftest.$ac_objext'
  18670. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18671. (eval $ac_try) 2>&5
  18672. ac_status=$?
  18673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18674. (exit $ac_status); }; }; then
  18675. ac_lo=0 ac_mid=0
  18676. while :; do
  18677. cat >conftest.$ac_ext <<_ACEOF
  18678. /* confdefs.h. */
  18679. _ACEOF
  18680. cat confdefs.h >>conftest.$ac_ext
  18681. cat >>conftest.$ac_ext <<_ACEOF
  18682. /* end confdefs.h. */
  18683. $ac_includes_default
  18684. int
  18685. main ()
  18686. {
  18687. static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
  18688. test_array [0] = 0
  18689. ;
  18690. return 0;
  18691. }
  18692. _ACEOF
  18693. rm -f conftest.$ac_objext
  18694. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18695. (eval $ac_compile) 2>conftest.er1
  18696. ac_status=$?
  18697. grep -v '^ *+' conftest.er1 >conftest.err
  18698. rm -f conftest.er1
  18699. cat conftest.err >&5
  18700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18701. (exit $ac_status); } &&
  18702. { ac_try='test -z "$ac_c_werror_flag"
  18703. || test ! -s conftest.err'
  18704. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18705. (eval $ac_try) 2>&5
  18706. ac_status=$?
  18707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18708. (exit $ac_status); }; } &&
  18709. { ac_try='test -s conftest.$ac_objext'
  18710. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18711. (eval $ac_try) 2>&5
  18712. ac_status=$?
  18713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18714. (exit $ac_status); }; }; then
  18715. ac_hi=$ac_mid; break
  18716. else
  18717. echo "$as_me: failed program was:" >&5
  18718. sed 's/^/| /' conftest.$ac_ext >&5
  18719. ac_lo=`expr $ac_mid + 1`
  18720. if test $ac_lo -le $ac_mid; then
  18721. ac_lo= ac_hi=
  18722. break
  18723. fi
  18724. ac_mid=`expr 2 '*' $ac_mid + 1`
  18725. fi
  18726. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18727. done
  18728. else
  18729. echo "$as_me: failed program was:" >&5
  18730. sed 's/^/| /' conftest.$ac_ext >&5
  18731. cat >conftest.$ac_ext <<_ACEOF
  18732. /* confdefs.h. */
  18733. _ACEOF
  18734. cat confdefs.h >>conftest.$ac_ext
  18735. cat >>conftest.$ac_ext <<_ACEOF
  18736. /* end confdefs.h. */
  18737. $ac_includes_default
  18738. int
  18739. main ()
  18740. {
  18741. static int test_array [1 - 2 * !(((long) (sizeof (char *))) < 0)];
  18742. test_array [0] = 0
  18743. ;
  18744. return 0;
  18745. }
  18746. _ACEOF
  18747. rm -f conftest.$ac_objext
  18748. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18749. (eval $ac_compile) 2>conftest.er1
  18750. ac_status=$?
  18751. grep -v '^ *+' conftest.er1 >conftest.err
  18752. rm -f conftest.er1
  18753. cat conftest.err >&5
  18754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18755. (exit $ac_status); } &&
  18756. { ac_try='test -z "$ac_c_werror_flag"
  18757. || test ! -s conftest.err'
  18758. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18759. (eval $ac_try) 2>&5
  18760. ac_status=$?
  18761. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18762. (exit $ac_status); }; } &&
  18763. { ac_try='test -s conftest.$ac_objext'
  18764. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18765. (eval $ac_try) 2>&5
  18766. ac_status=$?
  18767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18768. (exit $ac_status); }; }; then
  18769. ac_hi=-1 ac_mid=-1
  18770. while :; do
  18771. cat >conftest.$ac_ext <<_ACEOF
  18772. /* confdefs.h. */
  18773. _ACEOF
  18774. cat confdefs.h >>conftest.$ac_ext
  18775. cat >>conftest.$ac_ext <<_ACEOF
  18776. /* end confdefs.h. */
  18777. $ac_includes_default
  18778. int
  18779. main ()
  18780. {
  18781. static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= $ac_mid)];
  18782. test_array [0] = 0
  18783. ;
  18784. return 0;
  18785. }
  18786. _ACEOF
  18787. rm -f conftest.$ac_objext
  18788. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18789. (eval $ac_compile) 2>conftest.er1
  18790. ac_status=$?
  18791. grep -v '^ *+' conftest.er1 >conftest.err
  18792. rm -f conftest.er1
  18793. cat conftest.err >&5
  18794. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18795. (exit $ac_status); } &&
  18796. { ac_try='test -z "$ac_c_werror_flag"
  18797. || test ! -s conftest.err'
  18798. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18799. (eval $ac_try) 2>&5
  18800. ac_status=$?
  18801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18802. (exit $ac_status); }; } &&
  18803. { ac_try='test -s conftest.$ac_objext'
  18804. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18805. (eval $ac_try) 2>&5
  18806. ac_status=$?
  18807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18808. (exit $ac_status); }; }; then
  18809. ac_lo=$ac_mid; break
  18810. else
  18811. echo "$as_me: failed program was:" >&5
  18812. sed 's/^/| /' conftest.$ac_ext >&5
  18813. ac_hi=`expr '(' $ac_mid ')' - 1`
  18814. if test $ac_mid -le $ac_hi; then
  18815. ac_lo= ac_hi=
  18816. break
  18817. fi
  18818. ac_mid=`expr 2 '*' $ac_mid`
  18819. fi
  18820. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18821. done
  18822. else
  18823. echo "$as_me: failed program was:" >&5
  18824. sed 's/^/| /' conftest.$ac_ext >&5
  18825. ac_lo= ac_hi=
  18826. fi
  18827. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18828. fi
  18829. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18830. # Binary search between lo and hi bounds.
  18831. while test "x$ac_lo" != "x$ac_hi"; do
  18832. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  18833. cat >conftest.$ac_ext <<_ACEOF
  18834. /* confdefs.h. */
  18835. _ACEOF
  18836. cat confdefs.h >>conftest.$ac_ext
  18837. cat >>conftest.$ac_ext <<_ACEOF
  18838. /* end confdefs.h. */
  18839. $ac_includes_default
  18840. int
  18841. main ()
  18842. {
  18843. static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
  18844. test_array [0] = 0
  18845. ;
  18846. return 0;
  18847. }
  18848. _ACEOF
  18849. rm -f conftest.$ac_objext
  18850. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18851. (eval $ac_compile) 2>conftest.er1
  18852. ac_status=$?
  18853. grep -v '^ *+' conftest.er1 >conftest.err
  18854. rm -f conftest.er1
  18855. cat conftest.err >&5
  18856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18857. (exit $ac_status); } &&
  18858. { ac_try='test -z "$ac_c_werror_flag"
  18859. || test ! -s conftest.err'
  18860. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18861. (eval $ac_try) 2>&5
  18862. ac_status=$?
  18863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18864. (exit $ac_status); }; } &&
  18865. { ac_try='test -s conftest.$ac_objext'
  18866. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18867. (eval $ac_try) 2>&5
  18868. ac_status=$?
  18869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18870. (exit $ac_status); }; }; then
  18871. ac_hi=$ac_mid
  18872. else
  18873. echo "$as_me: failed program was:" >&5
  18874. sed 's/^/| /' conftest.$ac_ext >&5
  18875. ac_lo=`expr '(' $ac_mid ')' + 1`
  18876. fi
  18877. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18878. done
  18879. case $ac_lo in
  18880. ?*) ac_cv_sizeof_char_p=$ac_lo;;
  18881. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
  18882. See \`config.log' for more details." >&5
  18883. echo "$as_me: error: cannot compute sizeof (char *), 77
  18884. See \`config.log' for more details." >&2;}
  18885. { (exit 1); exit 1; }; } ;;
  18886. esac
  18887. else
  18888. if test "$cross_compiling" = yes; then
  18889. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  18890. See \`config.log' for more details." >&5
  18891. echo "$as_me: error: cannot run test program while cross compiling
  18892. See \`config.log' for more details." >&2;}
  18893. { (exit 1); exit 1; }; }
  18894. else
  18895. cat >conftest.$ac_ext <<_ACEOF
  18896. /* confdefs.h. */
  18897. _ACEOF
  18898. cat confdefs.h >>conftest.$ac_ext
  18899. cat >>conftest.$ac_ext <<_ACEOF
  18900. /* end confdefs.h. */
  18901. $ac_includes_default
  18902. long longval () { return (long) (sizeof (char *)); }
  18903. unsigned long ulongval () { return (long) (sizeof (char *)); }
  18904. #include <stdio.h>
  18905. #include <stdlib.h>
  18906. int
  18907. main ()
  18908. {
  18909. FILE *f = fopen ("conftest.val", "w");
  18910. if (! f)
  18911. exit (1);
  18912. if (((long) (sizeof (char *))) < 0)
  18913. {
  18914. long i = longval ();
  18915. if (i != ((long) (sizeof (char *))))
  18916. exit (1);
  18917. fprintf (f, "%ld\n", i);
  18918. }
  18919. else
  18920. {
  18921. unsigned long i = ulongval ();
  18922. if (i != ((long) (sizeof (char *))))
  18923. exit (1);
  18924. fprintf (f, "%lu\n", i);
  18925. }
  18926. exit (ferror (f) || fclose (f) != 0);
  18927. ;
  18928. return 0;
  18929. }
  18930. _ACEOF
  18931. rm -f conftest$ac_exeext
  18932. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18933. (eval $ac_link) 2>&5
  18934. ac_status=$?
  18935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18936. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18937. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18938. (eval $ac_try) 2>&5
  18939. ac_status=$?
  18940. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18941. (exit $ac_status); }; }; then
  18942. ac_cv_sizeof_char_p=`cat conftest.val`
  18943. else
  18944. echo "$as_me: program exited with status $ac_status" >&5
  18945. echo "$as_me: failed program was:" >&5
  18946. sed 's/^/| /' conftest.$ac_ext >&5
  18947. ( exit $ac_status )
  18948. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
  18949. See \`config.log' for more details." >&5
  18950. echo "$as_me: error: cannot compute sizeof (char *), 77
  18951. See \`config.log' for more details." >&2;}
  18952. { (exit 1); exit 1; }; }
  18953. fi
  18954. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18955. fi
  18956. fi
  18957. rm -f conftest.val
  18958. else
  18959. ac_cv_sizeof_char_p=0
  18960. fi
  18961. fi
  18962. echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
  18963. echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
  18964. cat >>confdefs.h <<_ACEOF
  18965. #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
  18966. _ACEOF
  18967. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  18968. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  18969. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  18970. echo $ECHO_N "(cached) $ECHO_C" >&6
  18971. else
  18972. ac_check_lib_save_LIBS=$LIBS
  18973. LIBS="-ldl $LIBS"
  18974. cat >conftest.$ac_ext <<_ACEOF
  18975. /* confdefs.h. */
  18976. _ACEOF
  18977. cat confdefs.h >>conftest.$ac_ext
  18978. cat >>conftest.$ac_ext <<_ACEOF
  18979. /* end confdefs.h. */
  18980. /* Override any gcc2 internal prototype to avoid an error. */
  18981. #ifdef __cplusplus
  18982. extern "C"
  18983. #endif
  18984. /* We use char because int might match the return type of a gcc2
  18985. builtin and then its argument prototype would still apply. */
  18986. char dlopen ();
  18987. int
  18988. main ()
  18989. {
  18990. dlopen ();
  18991. ;
  18992. return 0;
  18993. }
  18994. _ACEOF
  18995. rm -f conftest.$ac_objext conftest$ac_exeext
  18996. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18997. (eval $ac_link) 2>conftest.er1
  18998. ac_status=$?
  18999. grep -v '^ *+' conftest.er1 >conftest.err
  19000. rm -f conftest.er1
  19001. cat conftest.err >&5
  19002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19003. (exit $ac_status); } &&
  19004. { ac_try='test -z "$ac_c_werror_flag"
  19005. || test ! -s conftest.err'
  19006. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19007. (eval $ac_try) 2>&5
  19008. ac_status=$?
  19009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19010. (exit $ac_status); }; } &&
  19011. { ac_try='test -s conftest$ac_exeext'
  19012. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19013. (eval $ac_try) 2>&5
  19014. ac_status=$?
  19015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19016. (exit $ac_status); }; }; then
  19017. ac_cv_lib_dl_dlopen=yes
  19018. else
  19019. echo "$as_me: failed program was:" >&5
  19020. sed 's/^/| /' conftest.$ac_ext >&5
  19021. ac_cv_lib_dl_dlopen=no
  19022. fi
  19023. rm -f conftest.err conftest.$ac_objext \
  19024. conftest$ac_exeext conftest.$ac_ext
  19025. LIBS=$ac_check_lib_save_LIBS
  19026. fi
  19027. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  19028. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  19029. if test $ac_cv_lib_dl_dlopen = yes; then
  19030. LIBDL="-ldl"
  19031. ac_cv_have_dlfcn=yes
  19032. fi
  19033. echo "$as_me:$LINENO: checking for shl_unload in -ldld" >&5
  19034. echo $ECHO_N "checking for shl_unload in -ldld... $ECHO_C" >&6
  19035. if test "${ac_cv_lib_dld_shl_unload+set}" = set; then
  19036. echo $ECHO_N "(cached) $ECHO_C" >&6
  19037. else
  19038. ac_check_lib_save_LIBS=$LIBS
  19039. LIBS="-ldld $LIBS"
  19040. cat >conftest.$ac_ext <<_ACEOF
  19041. /* confdefs.h. */
  19042. _ACEOF
  19043. cat confdefs.h >>conftest.$ac_ext
  19044. cat >>conftest.$ac_ext <<_ACEOF
  19045. /* end confdefs.h. */
  19046. /* Override any gcc2 internal prototype to avoid an error. */
  19047. #ifdef __cplusplus
  19048. extern "C"
  19049. #endif
  19050. /* We use char because int might match the return type of a gcc2
  19051. builtin and then its argument prototype would still apply. */
  19052. char shl_unload ();
  19053. int
  19054. main ()
  19055. {
  19056. shl_unload ();
  19057. ;
  19058. return 0;
  19059. }
  19060. _ACEOF
  19061. rm -f conftest.$ac_objext conftest$ac_exeext
  19062. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19063. (eval $ac_link) 2>conftest.er1
  19064. ac_status=$?
  19065. grep -v '^ *+' conftest.er1 >conftest.err
  19066. rm -f conftest.er1
  19067. cat conftest.err >&5
  19068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19069. (exit $ac_status); } &&
  19070. { ac_try='test -z "$ac_c_werror_flag"
  19071. || test ! -s conftest.err'
  19072. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19073. (eval $ac_try) 2>&5
  19074. ac_status=$?
  19075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19076. (exit $ac_status); }; } &&
  19077. { ac_try='test -s conftest$ac_exeext'
  19078. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19079. (eval $ac_try) 2>&5
  19080. ac_status=$?
  19081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19082. (exit $ac_status); }; }; then
  19083. ac_cv_lib_dld_shl_unload=yes
  19084. else
  19085. echo "$as_me: failed program was:" >&5
  19086. sed 's/^/| /' conftest.$ac_ext >&5
  19087. ac_cv_lib_dld_shl_unload=no
  19088. fi
  19089. rm -f conftest.err conftest.$ac_objext \
  19090. conftest$ac_exeext conftest.$ac_ext
  19091. LIBS=$ac_check_lib_save_LIBS
  19092. fi
  19093. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_unload" >&5
  19094. echo "${ECHO_T}$ac_cv_lib_dld_shl_unload" >&6
  19095. if test $ac_cv_lib_dld_shl_unload = yes; then
  19096. LIBDL="-ldld"
  19097. ac_cv_have_shload=yes
  19098. fi
  19099. echo "$as_me:$LINENO: checking for size_t" >&5
  19100. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  19101. if test "${ac_cv_type_size_t+set}" = set; then
  19102. echo $ECHO_N "(cached) $ECHO_C" >&6
  19103. else
  19104. cat >conftest.$ac_ext <<_ACEOF
  19105. /* confdefs.h. */
  19106. _ACEOF
  19107. cat confdefs.h >>conftest.$ac_ext
  19108. cat >>conftest.$ac_ext <<_ACEOF
  19109. /* end confdefs.h. */
  19110. $ac_includes_default
  19111. int
  19112. main ()
  19113. {
  19114. if ((size_t *) 0)
  19115. return 0;
  19116. if (sizeof (size_t))
  19117. return 0;
  19118. ;
  19119. return 0;
  19120. }
  19121. _ACEOF
  19122. rm -f conftest.$ac_objext
  19123. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19124. (eval $ac_compile) 2>conftest.er1
  19125. ac_status=$?
  19126. grep -v '^ *+' conftest.er1 >conftest.err
  19127. rm -f conftest.er1
  19128. cat conftest.err >&5
  19129. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19130. (exit $ac_status); } &&
  19131. { ac_try='test -z "$ac_c_werror_flag"
  19132. || test ! -s conftest.err'
  19133. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19134. (eval $ac_try) 2>&5
  19135. ac_status=$?
  19136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19137. (exit $ac_status); }; } &&
  19138. { ac_try='test -s conftest.$ac_objext'
  19139. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19140. (eval $ac_try) 2>&5
  19141. ac_status=$?
  19142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19143. (exit $ac_status); }; }; then
  19144. ac_cv_type_size_t=yes
  19145. else
  19146. echo "$as_me: failed program was:" >&5
  19147. sed 's/^/| /' conftest.$ac_ext >&5
  19148. ac_cv_type_size_t=no
  19149. fi
  19150. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19151. fi
  19152. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  19153. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  19154. echo "$as_me:$LINENO: checking size of size_t" >&5
  19155. echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
  19156. if test "${ac_cv_sizeof_size_t+set}" = set; then
  19157. echo $ECHO_N "(cached) $ECHO_C" >&6
  19158. else
  19159. if test "$ac_cv_type_size_t" = yes; then
  19160. # The cast to unsigned long works around a bug in the HP C Compiler
  19161. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  19162. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  19163. # This bug is HP SR number 8606223364.
  19164. if test "$cross_compiling" = yes; then
  19165. # Depending upon the size, compute the lo and hi bounds.
  19166. cat >conftest.$ac_ext <<_ACEOF
  19167. /* confdefs.h. */
  19168. _ACEOF
  19169. cat confdefs.h >>conftest.$ac_ext
  19170. cat >>conftest.$ac_ext <<_ACEOF
  19171. /* end confdefs.h. */
  19172. $ac_includes_default
  19173. int
  19174. main ()
  19175. {
  19176. static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
  19177. test_array [0] = 0
  19178. ;
  19179. return 0;
  19180. }
  19181. _ACEOF
  19182. rm -f conftest.$ac_objext
  19183. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19184. (eval $ac_compile) 2>conftest.er1
  19185. ac_status=$?
  19186. grep -v '^ *+' conftest.er1 >conftest.err
  19187. rm -f conftest.er1
  19188. cat conftest.err >&5
  19189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19190. (exit $ac_status); } &&
  19191. { ac_try='test -z "$ac_c_werror_flag"
  19192. || test ! -s conftest.err'
  19193. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19194. (eval $ac_try) 2>&5
  19195. ac_status=$?
  19196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19197. (exit $ac_status); }; } &&
  19198. { ac_try='test -s conftest.$ac_objext'
  19199. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19200. (eval $ac_try) 2>&5
  19201. ac_status=$?
  19202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19203. (exit $ac_status); }; }; then
  19204. ac_lo=0 ac_mid=0
  19205. while :; do
  19206. cat >conftest.$ac_ext <<_ACEOF
  19207. /* confdefs.h. */
  19208. _ACEOF
  19209. cat confdefs.h >>conftest.$ac_ext
  19210. cat >>conftest.$ac_ext <<_ACEOF
  19211. /* end confdefs.h. */
  19212. $ac_includes_default
  19213. int
  19214. main ()
  19215. {
  19216. static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
  19217. test_array [0] = 0
  19218. ;
  19219. return 0;
  19220. }
  19221. _ACEOF
  19222. rm -f conftest.$ac_objext
  19223. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19224. (eval $ac_compile) 2>conftest.er1
  19225. ac_status=$?
  19226. grep -v '^ *+' conftest.er1 >conftest.err
  19227. rm -f conftest.er1
  19228. cat conftest.err >&5
  19229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19230. (exit $ac_status); } &&
  19231. { ac_try='test -z "$ac_c_werror_flag"
  19232. || test ! -s conftest.err'
  19233. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19234. (eval $ac_try) 2>&5
  19235. ac_status=$?
  19236. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19237. (exit $ac_status); }; } &&
  19238. { ac_try='test -s conftest.$ac_objext'
  19239. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19240. (eval $ac_try) 2>&5
  19241. ac_status=$?
  19242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19243. (exit $ac_status); }; }; then
  19244. ac_hi=$ac_mid; break
  19245. else
  19246. echo "$as_me: failed program was:" >&5
  19247. sed 's/^/| /' conftest.$ac_ext >&5
  19248. ac_lo=`expr $ac_mid + 1`
  19249. if test $ac_lo -le $ac_mid; then
  19250. ac_lo= ac_hi=
  19251. break
  19252. fi
  19253. ac_mid=`expr 2 '*' $ac_mid + 1`
  19254. fi
  19255. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19256. done
  19257. else
  19258. echo "$as_me: failed program was:" >&5
  19259. sed 's/^/| /' conftest.$ac_ext >&5
  19260. cat >conftest.$ac_ext <<_ACEOF
  19261. /* confdefs.h. */
  19262. _ACEOF
  19263. cat confdefs.h >>conftest.$ac_ext
  19264. cat >>conftest.$ac_ext <<_ACEOF
  19265. /* end confdefs.h. */
  19266. $ac_includes_default
  19267. int
  19268. main ()
  19269. {
  19270. static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
  19271. test_array [0] = 0
  19272. ;
  19273. return 0;
  19274. }
  19275. _ACEOF
  19276. rm -f conftest.$ac_objext
  19277. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19278. (eval $ac_compile) 2>conftest.er1
  19279. ac_status=$?
  19280. grep -v '^ *+' conftest.er1 >conftest.err
  19281. rm -f conftest.er1
  19282. cat conftest.err >&5
  19283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19284. (exit $ac_status); } &&
  19285. { ac_try='test -z "$ac_c_werror_flag"
  19286. || test ! -s conftest.err'
  19287. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19288. (eval $ac_try) 2>&5
  19289. ac_status=$?
  19290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19291. (exit $ac_status); }; } &&
  19292. { ac_try='test -s conftest.$ac_objext'
  19293. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19294. (eval $ac_try) 2>&5
  19295. ac_status=$?
  19296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19297. (exit $ac_status); }; }; then
  19298. ac_hi=-1 ac_mid=-1
  19299. while :; do
  19300. cat >conftest.$ac_ext <<_ACEOF
  19301. /* confdefs.h. */
  19302. _ACEOF
  19303. cat confdefs.h >>conftest.$ac_ext
  19304. cat >>conftest.$ac_ext <<_ACEOF
  19305. /* end confdefs.h. */
  19306. $ac_includes_default
  19307. int
  19308. main ()
  19309. {
  19310. static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
  19311. test_array [0] = 0
  19312. ;
  19313. return 0;
  19314. }
  19315. _ACEOF
  19316. rm -f conftest.$ac_objext
  19317. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19318. (eval $ac_compile) 2>conftest.er1
  19319. ac_status=$?
  19320. grep -v '^ *+' conftest.er1 >conftest.err
  19321. rm -f conftest.er1
  19322. cat conftest.err >&5
  19323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19324. (exit $ac_status); } &&
  19325. { ac_try='test -z "$ac_c_werror_flag"
  19326. || test ! -s conftest.err'
  19327. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19328. (eval $ac_try) 2>&5
  19329. ac_status=$?
  19330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19331. (exit $ac_status); }; } &&
  19332. { ac_try='test -s conftest.$ac_objext'
  19333. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19334. (eval $ac_try) 2>&5
  19335. ac_status=$?
  19336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19337. (exit $ac_status); }; }; then
  19338. ac_lo=$ac_mid; break
  19339. else
  19340. echo "$as_me: failed program was:" >&5
  19341. sed 's/^/| /' conftest.$ac_ext >&5
  19342. ac_hi=`expr '(' $ac_mid ')' - 1`
  19343. if test $ac_mid -le $ac_hi; then
  19344. ac_lo= ac_hi=
  19345. break
  19346. fi
  19347. ac_mid=`expr 2 '*' $ac_mid`
  19348. fi
  19349. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19350. done
  19351. else
  19352. echo "$as_me: failed program was:" >&5
  19353. sed 's/^/| /' conftest.$ac_ext >&5
  19354. ac_lo= ac_hi=
  19355. fi
  19356. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19357. fi
  19358. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19359. # Binary search between lo and hi bounds.
  19360. while test "x$ac_lo" != "x$ac_hi"; do
  19361. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  19362. cat >conftest.$ac_ext <<_ACEOF
  19363. /* confdefs.h. */
  19364. _ACEOF
  19365. cat confdefs.h >>conftest.$ac_ext
  19366. cat >>conftest.$ac_ext <<_ACEOF
  19367. /* end confdefs.h. */
  19368. $ac_includes_default
  19369. int
  19370. main ()
  19371. {
  19372. static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
  19373. test_array [0] = 0
  19374. ;
  19375. return 0;
  19376. }
  19377. _ACEOF
  19378. rm -f conftest.$ac_objext
  19379. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19380. (eval $ac_compile) 2>conftest.er1
  19381. ac_status=$?
  19382. grep -v '^ *+' conftest.er1 >conftest.err
  19383. rm -f conftest.er1
  19384. cat conftest.err >&5
  19385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19386. (exit $ac_status); } &&
  19387. { ac_try='test -z "$ac_c_werror_flag"
  19388. || test ! -s conftest.err'
  19389. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19390. (eval $ac_try) 2>&5
  19391. ac_status=$?
  19392. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19393. (exit $ac_status); }; } &&
  19394. { ac_try='test -s conftest.$ac_objext'
  19395. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19396. (eval $ac_try) 2>&5
  19397. ac_status=$?
  19398. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19399. (exit $ac_status); }; }; then
  19400. ac_hi=$ac_mid
  19401. else
  19402. echo "$as_me: failed program was:" >&5
  19403. sed 's/^/| /' conftest.$ac_ext >&5
  19404. ac_lo=`expr '(' $ac_mid ')' + 1`
  19405. fi
  19406. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19407. done
  19408. case $ac_lo in
  19409. ?*) ac_cv_sizeof_size_t=$ac_lo;;
  19410. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
  19411. See \`config.log' for more details." >&5
  19412. echo "$as_me: error: cannot compute sizeof (size_t), 77
  19413. See \`config.log' for more details." >&2;}
  19414. { (exit 1); exit 1; }; } ;;
  19415. esac
  19416. else
  19417. if test "$cross_compiling" = yes; then
  19418. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  19419. See \`config.log' for more details." >&5
  19420. echo "$as_me: error: cannot run test program while cross compiling
  19421. See \`config.log' for more details." >&2;}
  19422. { (exit 1); exit 1; }; }
  19423. else
  19424. cat >conftest.$ac_ext <<_ACEOF
  19425. /* confdefs.h. */
  19426. _ACEOF
  19427. cat confdefs.h >>conftest.$ac_ext
  19428. cat >>conftest.$ac_ext <<_ACEOF
  19429. /* end confdefs.h. */
  19430. $ac_includes_default
  19431. long longval () { return (long) (sizeof (size_t)); }
  19432. unsigned long ulongval () { return (long) (sizeof (size_t)); }
  19433. #include <stdio.h>
  19434. #include <stdlib.h>
  19435. int
  19436. main ()
  19437. {
  19438. FILE *f = fopen ("conftest.val", "w");
  19439. if (! f)
  19440. exit (1);
  19441. if (((long) (sizeof (size_t))) < 0)
  19442. {
  19443. long i = longval ();
  19444. if (i != ((long) (sizeof (size_t))))
  19445. exit (1);
  19446. fprintf (f, "%ld\n", i);
  19447. }
  19448. else
  19449. {
  19450. unsigned long i = ulongval ();
  19451. if (i != ((long) (sizeof (size_t))))
  19452. exit (1);
  19453. fprintf (f, "%lu\n", i);
  19454. }
  19455. exit (ferror (f) || fclose (f) != 0);
  19456. ;
  19457. return 0;
  19458. }
  19459. _ACEOF
  19460. rm -f conftest$ac_exeext
  19461. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19462. (eval $ac_link) 2>&5
  19463. ac_status=$?
  19464. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19465. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19466. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19467. (eval $ac_try) 2>&5
  19468. ac_status=$?
  19469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19470. (exit $ac_status); }; }; then
  19471. ac_cv_sizeof_size_t=`cat conftest.val`
  19472. else
  19473. echo "$as_me: program exited with status $ac_status" >&5
  19474. echo "$as_me: failed program was:" >&5
  19475. sed 's/^/| /' conftest.$ac_ext >&5
  19476. ( exit $ac_status )
  19477. { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
  19478. See \`config.log' for more details." >&5
  19479. echo "$as_me: error: cannot compute sizeof (size_t), 77
  19480. See \`config.log' for more details." >&2;}
  19481. { (exit 1); exit 1; }; }
  19482. fi
  19483. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19484. fi
  19485. fi
  19486. rm -f conftest.val
  19487. else
  19488. ac_cv_sizeof_size_t=0
  19489. fi
  19490. fi
  19491. echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
  19492. echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
  19493. cat >>confdefs.h <<_ACEOF
  19494. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  19495. _ACEOF
  19496. echo "$as_me:$LINENO: checking for unsigned long" >&5
  19497. echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
  19498. if test "${ac_cv_type_unsigned_long+set}" = set; then
  19499. echo $ECHO_N "(cached) $ECHO_C" >&6
  19500. else
  19501. cat >conftest.$ac_ext <<_ACEOF
  19502. /* confdefs.h. */
  19503. _ACEOF
  19504. cat confdefs.h >>conftest.$ac_ext
  19505. cat >>conftest.$ac_ext <<_ACEOF
  19506. /* end confdefs.h. */
  19507. $ac_includes_default
  19508. int
  19509. main ()
  19510. {
  19511. if ((unsigned long *) 0)
  19512. return 0;
  19513. if (sizeof (unsigned long))
  19514. return 0;
  19515. ;
  19516. return 0;
  19517. }
  19518. _ACEOF
  19519. rm -f conftest.$ac_objext
  19520. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19521. (eval $ac_compile) 2>conftest.er1
  19522. ac_status=$?
  19523. grep -v '^ *+' conftest.er1 >conftest.err
  19524. rm -f conftest.er1
  19525. cat conftest.err >&5
  19526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19527. (exit $ac_status); } &&
  19528. { ac_try='test -z "$ac_c_werror_flag"
  19529. || test ! -s conftest.err'
  19530. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19531. (eval $ac_try) 2>&5
  19532. ac_status=$?
  19533. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19534. (exit $ac_status); }; } &&
  19535. { ac_try='test -s conftest.$ac_objext'
  19536. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19537. (eval $ac_try) 2>&5
  19538. ac_status=$?
  19539. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19540. (exit $ac_status); }; }; then
  19541. ac_cv_type_unsigned_long=yes
  19542. else
  19543. echo "$as_me: failed program was:" >&5
  19544. sed 's/^/| /' conftest.$ac_ext >&5
  19545. ac_cv_type_unsigned_long=no
  19546. fi
  19547. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19548. fi
  19549. echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
  19550. echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
  19551. echo "$as_me:$LINENO: checking size of unsigned long" >&5
  19552. echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
  19553. if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
  19554. echo $ECHO_N "(cached) $ECHO_C" >&6
  19555. else
  19556. if test "$ac_cv_type_unsigned_long" = yes; then
  19557. # The cast to unsigned long works around a bug in the HP C Compiler
  19558. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  19559. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  19560. # This bug is HP SR number 8606223364.
  19561. if test "$cross_compiling" = yes; then
  19562. # Depending upon the size, compute the lo and hi bounds.
  19563. cat >conftest.$ac_ext <<_ACEOF
  19564. /* confdefs.h. */
  19565. _ACEOF
  19566. cat confdefs.h >>conftest.$ac_ext
  19567. cat >>conftest.$ac_ext <<_ACEOF
  19568. /* end confdefs.h. */
  19569. $ac_includes_default
  19570. int
  19571. main ()
  19572. {
  19573. static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
  19574. test_array [0] = 0
  19575. ;
  19576. return 0;
  19577. }
  19578. _ACEOF
  19579. rm -f conftest.$ac_objext
  19580. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19581. (eval $ac_compile) 2>conftest.er1
  19582. ac_status=$?
  19583. grep -v '^ *+' conftest.er1 >conftest.err
  19584. rm -f conftest.er1
  19585. cat conftest.err >&5
  19586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19587. (exit $ac_status); } &&
  19588. { ac_try='test -z "$ac_c_werror_flag"
  19589. || test ! -s conftest.err'
  19590. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19591. (eval $ac_try) 2>&5
  19592. ac_status=$?
  19593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19594. (exit $ac_status); }; } &&
  19595. { ac_try='test -s conftest.$ac_objext'
  19596. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19597. (eval $ac_try) 2>&5
  19598. ac_status=$?
  19599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19600. (exit $ac_status); }; }; then
  19601. ac_lo=0 ac_mid=0
  19602. while :; do
  19603. cat >conftest.$ac_ext <<_ACEOF
  19604. /* confdefs.h. */
  19605. _ACEOF
  19606. cat confdefs.h >>conftest.$ac_ext
  19607. cat >>conftest.$ac_ext <<_ACEOF
  19608. /* end confdefs.h. */
  19609. $ac_includes_default
  19610. int
  19611. main ()
  19612. {
  19613. static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
  19614. test_array [0] = 0
  19615. ;
  19616. return 0;
  19617. }
  19618. _ACEOF
  19619. rm -f conftest.$ac_objext
  19620. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19621. (eval $ac_compile) 2>conftest.er1
  19622. ac_status=$?
  19623. grep -v '^ *+' conftest.er1 >conftest.err
  19624. rm -f conftest.er1
  19625. cat conftest.err >&5
  19626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19627. (exit $ac_status); } &&
  19628. { ac_try='test -z "$ac_c_werror_flag"
  19629. || test ! -s conftest.err'
  19630. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19631. (eval $ac_try) 2>&5
  19632. ac_status=$?
  19633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19634. (exit $ac_status); }; } &&
  19635. { ac_try='test -s conftest.$ac_objext'
  19636. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19637. (eval $ac_try) 2>&5
  19638. ac_status=$?
  19639. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19640. (exit $ac_status); }; }; then
  19641. ac_hi=$ac_mid; break
  19642. else
  19643. echo "$as_me: failed program was:" >&5
  19644. sed 's/^/| /' conftest.$ac_ext >&5
  19645. ac_lo=`expr $ac_mid + 1`
  19646. if test $ac_lo -le $ac_mid; then
  19647. ac_lo= ac_hi=
  19648. break
  19649. fi
  19650. ac_mid=`expr 2 '*' $ac_mid + 1`
  19651. fi
  19652. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19653. done
  19654. else
  19655. echo "$as_me: failed program was:" >&5
  19656. sed 's/^/| /' conftest.$ac_ext >&5
  19657. cat >conftest.$ac_ext <<_ACEOF
  19658. /* confdefs.h. */
  19659. _ACEOF
  19660. cat confdefs.h >>conftest.$ac_ext
  19661. cat >>conftest.$ac_ext <<_ACEOF
  19662. /* end confdefs.h. */
  19663. $ac_includes_default
  19664. int
  19665. main ()
  19666. {
  19667. static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
  19668. test_array [0] = 0
  19669. ;
  19670. return 0;
  19671. }
  19672. _ACEOF
  19673. rm -f conftest.$ac_objext
  19674. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19675. (eval $ac_compile) 2>conftest.er1
  19676. ac_status=$?
  19677. grep -v '^ *+' conftest.er1 >conftest.err
  19678. rm -f conftest.er1
  19679. cat conftest.err >&5
  19680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19681. (exit $ac_status); } &&
  19682. { ac_try='test -z "$ac_c_werror_flag"
  19683. || test ! -s conftest.err'
  19684. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19685. (eval $ac_try) 2>&5
  19686. ac_status=$?
  19687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19688. (exit $ac_status); }; } &&
  19689. { ac_try='test -s conftest.$ac_objext'
  19690. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19691. (eval $ac_try) 2>&5
  19692. ac_status=$?
  19693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19694. (exit $ac_status); }; }; then
  19695. ac_hi=-1 ac_mid=-1
  19696. while :; do
  19697. cat >conftest.$ac_ext <<_ACEOF
  19698. /* confdefs.h. */
  19699. _ACEOF
  19700. cat confdefs.h >>conftest.$ac_ext
  19701. cat >>conftest.$ac_ext <<_ACEOF
  19702. /* end confdefs.h. */
  19703. $ac_includes_default
  19704. int
  19705. main ()
  19706. {
  19707. static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
  19708. test_array [0] = 0
  19709. ;
  19710. return 0;
  19711. }
  19712. _ACEOF
  19713. rm -f conftest.$ac_objext
  19714. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19715. (eval $ac_compile) 2>conftest.er1
  19716. ac_status=$?
  19717. grep -v '^ *+' conftest.er1 >conftest.err
  19718. rm -f conftest.er1
  19719. cat conftest.err >&5
  19720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19721. (exit $ac_status); } &&
  19722. { ac_try='test -z "$ac_c_werror_flag"
  19723. || test ! -s conftest.err'
  19724. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19725. (eval $ac_try) 2>&5
  19726. ac_status=$?
  19727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19728. (exit $ac_status); }; } &&
  19729. { ac_try='test -s conftest.$ac_objext'
  19730. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19731. (eval $ac_try) 2>&5
  19732. ac_status=$?
  19733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19734. (exit $ac_status); }; }; then
  19735. ac_lo=$ac_mid; break
  19736. else
  19737. echo "$as_me: failed program was:" >&5
  19738. sed 's/^/| /' conftest.$ac_ext >&5
  19739. ac_hi=`expr '(' $ac_mid ')' - 1`
  19740. if test $ac_mid -le $ac_hi; then
  19741. ac_lo= ac_hi=
  19742. break
  19743. fi
  19744. ac_mid=`expr 2 '*' $ac_mid`
  19745. fi
  19746. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19747. done
  19748. else
  19749. echo "$as_me: failed program was:" >&5
  19750. sed 's/^/| /' conftest.$ac_ext >&5
  19751. ac_lo= ac_hi=
  19752. fi
  19753. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19754. fi
  19755. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19756. # Binary search between lo and hi bounds.
  19757. while test "x$ac_lo" != "x$ac_hi"; do
  19758. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  19759. cat >conftest.$ac_ext <<_ACEOF
  19760. /* confdefs.h. */
  19761. _ACEOF
  19762. cat confdefs.h >>conftest.$ac_ext
  19763. cat >>conftest.$ac_ext <<_ACEOF
  19764. /* end confdefs.h. */
  19765. $ac_includes_default
  19766. int
  19767. main ()
  19768. {
  19769. static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
  19770. test_array [0] = 0
  19771. ;
  19772. return 0;
  19773. }
  19774. _ACEOF
  19775. rm -f conftest.$ac_objext
  19776. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19777. (eval $ac_compile) 2>conftest.er1
  19778. ac_status=$?
  19779. grep -v '^ *+' conftest.er1 >conftest.err
  19780. rm -f conftest.er1
  19781. cat conftest.err >&5
  19782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19783. (exit $ac_status); } &&
  19784. { ac_try='test -z "$ac_c_werror_flag"
  19785. || test ! -s conftest.err'
  19786. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19787. (eval $ac_try) 2>&5
  19788. ac_status=$?
  19789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19790. (exit $ac_status); }; } &&
  19791. { ac_try='test -s conftest.$ac_objext'
  19792. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19793. (eval $ac_try) 2>&5
  19794. ac_status=$?
  19795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19796. (exit $ac_status); }; }; then
  19797. ac_hi=$ac_mid
  19798. else
  19799. echo "$as_me: failed program was:" >&5
  19800. sed 's/^/| /' conftest.$ac_ext >&5
  19801. ac_lo=`expr '(' $ac_mid ')' + 1`
  19802. fi
  19803. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19804. done
  19805. case $ac_lo in
  19806. ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
  19807. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
  19808. See \`config.log' for more details." >&5
  19809. echo "$as_me: error: cannot compute sizeof (unsigned long), 77
  19810. See \`config.log' for more details." >&2;}
  19811. { (exit 1); exit 1; }; } ;;
  19812. esac
  19813. else
  19814. if test "$cross_compiling" = yes; then
  19815. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  19816. See \`config.log' for more details." >&5
  19817. echo "$as_me: error: cannot run test program while cross compiling
  19818. See \`config.log' for more details." >&2;}
  19819. { (exit 1); exit 1; }; }
  19820. else
  19821. cat >conftest.$ac_ext <<_ACEOF
  19822. /* confdefs.h. */
  19823. _ACEOF
  19824. cat confdefs.h >>conftest.$ac_ext
  19825. cat >>conftest.$ac_ext <<_ACEOF
  19826. /* end confdefs.h. */
  19827. $ac_includes_default
  19828. long longval () { return (long) (sizeof (unsigned long)); }
  19829. unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
  19830. #include <stdio.h>
  19831. #include <stdlib.h>
  19832. int
  19833. main ()
  19834. {
  19835. FILE *f = fopen ("conftest.val", "w");
  19836. if (! f)
  19837. exit (1);
  19838. if (((long) (sizeof (unsigned long))) < 0)
  19839. {
  19840. long i = longval ();
  19841. if (i != ((long) (sizeof (unsigned long))))
  19842. exit (1);
  19843. fprintf (f, "%ld\n", i);
  19844. }
  19845. else
  19846. {
  19847. unsigned long i = ulongval ();
  19848. if (i != ((long) (sizeof (unsigned long))))
  19849. exit (1);
  19850. fprintf (f, "%lu\n", i);
  19851. }
  19852. exit (ferror (f) || fclose (f) != 0);
  19853. ;
  19854. return 0;
  19855. }
  19856. _ACEOF
  19857. rm -f conftest$ac_exeext
  19858. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19859. (eval $ac_link) 2>&5
  19860. ac_status=$?
  19861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19862. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19863. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19864. (eval $ac_try) 2>&5
  19865. ac_status=$?
  19866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19867. (exit $ac_status); }; }; then
  19868. ac_cv_sizeof_unsigned_long=`cat conftest.val`
  19869. else
  19870. echo "$as_me: program exited with status $ac_status" >&5
  19871. echo "$as_me: failed program was:" >&5
  19872. sed 's/^/| /' conftest.$ac_ext >&5
  19873. ( exit $ac_status )
  19874. { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
  19875. See \`config.log' for more details." >&5
  19876. echo "$as_me: error: cannot compute sizeof (unsigned long), 77
  19877. See \`config.log' for more details." >&2;}
  19878. { (exit 1); exit 1; }; }
  19879. fi
  19880. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19881. fi
  19882. fi
  19883. rm -f conftest.val
  19884. else
  19885. ac_cv_sizeof_unsigned_long=0
  19886. fi
  19887. fi
  19888. echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
  19889. echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
  19890. cat >>confdefs.h <<_ACEOF
  19891. #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
  19892. _ACEOF
  19893. echo "$as_me:$LINENO: checking sizeof size_t == sizeof unsigned long" >&5
  19894. echo $ECHO_N "checking sizeof size_t == sizeof unsigned long... $ECHO_C" >&6
  19895. cat >conftest.$ac_ext <<_ACEOF
  19896. /* confdefs.h. */
  19897. _ACEOF
  19898. cat confdefs.h >>conftest.$ac_ext
  19899. cat >>conftest.$ac_ext <<_ACEOF
  19900. /* end confdefs.h. */
  19901. int
  19902. main ()
  19903. {
  19904. #if SIZEOF_SIZE_T != SIZEOF_UNSIGNED_LONG
  19905. choke me
  19906. #endif
  19907. ;
  19908. return 0;
  19909. }
  19910. _ACEOF
  19911. rm -f conftest.$ac_objext
  19912. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19913. (eval $ac_compile) 2>conftest.er1
  19914. ac_status=$?
  19915. grep -v '^ *+' conftest.er1 >conftest.err
  19916. rm -f conftest.er1
  19917. cat conftest.err >&5
  19918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19919. (exit $ac_status); } &&
  19920. { ac_try='test -z "$ac_c_werror_flag"
  19921. || test ! -s conftest.err'
  19922. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19923. (eval $ac_try) 2>&5
  19924. ac_status=$?
  19925. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19926. (exit $ac_status); }; } &&
  19927. { ac_try='test -s conftest.$ac_objext'
  19928. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19929. (eval $ac_try) 2>&5
  19930. ac_status=$?
  19931. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19932. (exit $ac_status); }; }; then
  19933. echo "$as_me:$LINENO: result: yes" >&5
  19934. echo "${ECHO_T}yes" >&6
  19935. else
  19936. echo "$as_me: failed program was:" >&5
  19937. sed 's/^/| /' conftest.$ac_ext >&5
  19938. echo "$as_me:$LINENO: result: no" >&5
  19939. echo "${ECHO_T}no" >&6
  19940. { { echo "$as_me:$LINENO: error:
  19941. Apparently on your system our assumption sizeof size_t == sizeof unsigned long
  19942. does not apply. Please mail kde-devel@kde.org with a description of your system!
  19943. " >&5
  19944. echo "$as_me: error:
  19945. Apparently on your system our assumption sizeof size_t == sizeof unsigned long
  19946. does not apply. Please mail kde-devel@kde.org with a description of your system!
  19947. " >&2;}
  19948. { (exit 1); exit 1; }; }
  19949. fi
  19950. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19951. # darwin needs this to initialize the environment
  19952. for ac_header in crt_externs.h
  19953. do
  19954. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19955. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19956. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19957. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19958. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19959. echo $ECHO_N "(cached) $ECHO_C" >&6
  19960. fi
  19961. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19962. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19963. else
  19964. # Is the header compilable?
  19965. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19966. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  19967. cat >conftest.$ac_ext <<_ACEOF
  19968. /* confdefs.h. */
  19969. _ACEOF
  19970. cat confdefs.h >>conftest.$ac_ext
  19971. cat >>conftest.$ac_ext <<_ACEOF
  19972. /* end confdefs.h. */
  19973. $ac_includes_default
  19974. #include <$ac_header>
  19975. _ACEOF
  19976. rm -f conftest.$ac_objext
  19977. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19978. (eval $ac_compile) 2>conftest.er1
  19979. ac_status=$?
  19980. grep -v '^ *+' conftest.er1 >conftest.err
  19981. rm -f conftest.er1
  19982. cat conftest.err >&5
  19983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19984. (exit $ac_status); } &&
  19985. { ac_try='test -z "$ac_c_werror_flag"
  19986. || test ! -s conftest.err'
  19987. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19988. (eval $ac_try) 2>&5
  19989. ac_status=$?
  19990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19991. (exit $ac_status); }; } &&
  19992. { ac_try='test -s conftest.$ac_objext'
  19993. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19994. (eval $ac_try) 2>&5
  19995. ac_status=$?
  19996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19997. (exit $ac_status); }; }; then
  19998. ac_header_compiler=yes
  19999. else
  20000. echo "$as_me: failed program was:" >&5
  20001. sed 's/^/| /' conftest.$ac_ext >&5
  20002. ac_header_compiler=no
  20003. fi
  20004. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20005. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20006. echo "${ECHO_T}$ac_header_compiler" >&6
  20007. # Is the header present?
  20008. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  20009. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  20010. cat >conftest.$ac_ext <<_ACEOF
  20011. /* confdefs.h. */
  20012. _ACEOF
  20013. cat confdefs.h >>conftest.$ac_ext
  20014. cat >>conftest.$ac_ext <<_ACEOF
  20015. /* end confdefs.h. */
  20016. #include <$ac_header>
  20017. _ACEOF
  20018. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  20019. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  20020. ac_status=$?
  20021. grep -v '^ *+' conftest.er1 >conftest.err
  20022. rm -f conftest.er1
  20023. cat conftest.err >&5
  20024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20025. (exit $ac_status); } >/dev/null; then
  20026. if test -s conftest.err; then
  20027. ac_cpp_err=$ac_c_preproc_warn_flag
  20028. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  20029. else
  20030. ac_cpp_err=
  20031. fi
  20032. else
  20033. ac_cpp_err=yes
  20034. fi
  20035. if test -z "$ac_cpp_err"; then
  20036. ac_header_preproc=yes
  20037. else
  20038. echo "$as_me: failed program was:" >&5
  20039. sed 's/^/| /' conftest.$ac_ext >&5
  20040. ac_header_preproc=no
  20041. fi
  20042. rm -f conftest.err conftest.$ac_ext
  20043. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20044. echo "${ECHO_T}$ac_header_preproc" >&6
  20045. # So? What about this header?
  20046. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20047. yes:no: )
  20048. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  20049. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20050. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  20051. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  20052. ac_header_preproc=yes
  20053. ;;
  20054. no:yes:* )
  20055. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  20056. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  20057. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  20058. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  20059. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  20060. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  20061. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  20062. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  20063. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  20064. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  20065. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  20066. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  20067. (
  20068. cat <<\_ASBOX
  20069. ## ------------------------------------------ ##
  20070. ## Report this to the AC_PACKAGE_NAME lists. ##
  20071. ## ------------------------------------------ ##
  20072. _ASBOX
  20073. ) |
  20074. sed "s/^/$as_me: WARNING: /" >&2
  20075. ;;
  20076. esac
  20077. echo "$as_me:$LINENO: checking for $ac_header" >&5
  20078. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  20079. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  20080. echo $ECHO_N "(cached) $ECHO_C" >&6
  20081. else
  20082. eval "$as_ac_Header=\$ac_header_preproc"
  20083. fi
  20084. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  20085. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  20086. fi
  20087. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  20088. cat >>confdefs.h <<_ACEOF
  20089. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20090. _ACEOF
  20091. fi
  20092. done
  20093. echo "$as_me:$LINENO: checking for _NSGetEnviron" >&5
  20094. echo $ECHO_N "checking for _NSGetEnviron... $ECHO_C" >&6
  20095. if test "${ac_cv_func__NSGetEnviron+set}" = set; then
  20096. echo $ECHO_N "(cached) $ECHO_C" >&6
  20097. else
  20098. cat >conftest.$ac_ext <<_ACEOF
  20099. /* confdefs.h. */
  20100. _ACEOF
  20101. cat confdefs.h >>conftest.$ac_ext
  20102. cat >>conftest.$ac_ext <<_ACEOF
  20103. /* end confdefs.h. */
  20104. /* Define _NSGetEnviron to an innocuous variant, in case <limits.h> declares _NSGetEnviron.
  20105. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20106. #define _NSGetEnviron innocuous__NSGetEnviron
  20107. /* System header to define __stub macros and hopefully few prototypes,
  20108. which can conflict with char _NSGetEnviron (); below.
  20109. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20110. <limits.h> exists even on freestanding compilers. */
  20111. #ifdef __STDC__
  20112. # include <limits.h>
  20113. #else
  20114. # include <assert.h>
  20115. #endif
  20116. #undef _NSGetEnviron
  20117. /* Override any gcc2 internal prototype to avoid an error. */
  20118. #ifdef __cplusplus
  20119. extern "C"
  20120. {
  20121. #endif
  20122. /* We use char because int might match the return type of a gcc2
  20123. builtin and then its argument prototype would still apply. */
  20124. char _NSGetEnviron ();
  20125. /* The GNU C library defines this for functions which it implements
  20126. to always fail with ENOSYS. Some functions are actually named
  20127. something starting with __ and the normal name is an alias. */
  20128. #if defined (__stub__NSGetEnviron) || defined (__stub____NSGetEnviron)
  20129. choke me
  20130. #else
  20131. char (*f) () = _NSGetEnviron;
  20132. #endif
  20133. #ifdef __cplusplus
  20134. }
  20135. #endif
  20136. int
  20137. main ()
  20138. {
  20139. return f != _NSGetEnviron;
  20140. ;
  20141. return 0;
  20142. }
  20143. _ACEOF
  20144. rm -f conftest.$ac_objext conftest$ac_exeext
  20145. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20146. (eval $ac_link) 2>conftest.er1
  20147. ac_status=$?
  20148. grep -v '^ *+' conftest.er1 >conftest.err
  20149. rm -f conftest.er1
  20150. cat conftest.err >&5
  20151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20152. (exit $ac_status); } &&
  20153. { ac_try='test -z "$ac_c_werror_flag"
  20154. || test ! -s conftest.err'
  20155. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20156. (eval $ac_try) 2>&5
  20157. ac_status=$?
  20158. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20159. (exit $ac_status); }; } &&
  20160. { ac_try='test -s conftest$ac_exeext'
  20161. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20162. (eval $ac_try) 2>&5
  20163. ac_status=$?
  20164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20165. (exit $ac_status); }; }; then
  20166. ac_cv_func__NSGetEnviron=yes
  20167. else
  20168. echo "$as_me: failed program was:" >&5
  20169. sed 's/^/| /' conftest.$ac_ext >&5
  20170. ac_cv_func__NSGetEnviron=no
  20171. fi
  20172. rm -f conftest.err conftest.$ac_objext \
  20173. conftest$ac_exeext conftest.$ac_ext
  20174. fi
  20175. echo "$as_me:$LINENO: result: $ac_cv_func__NSGetEnviron" >&5
  20176. echo "${ECHO_T}$ac_cv_func__NSGetEnviron" >&6
  20177. if test $ac_cv_func__NSGetEnviron = yes; then
  20178. cat >>confdefs.h <<\_ACEOF
  20179. #define HAVE_NSGETENVIRON 1
  20180. _ACEOF
  20181. fi
  20182. for ac_func in vsnprintf snprintf
  20183. do
  20184. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20185. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20186. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20187. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20188. echo $ECHO_N "(cached) $ECHO_C" >&6
  20189. else
  20190. cat >conftest.$ac_ext <<_ACEOF
  20191. /* confdefs.h. */
  20192. _ACEOF
  20193. cat confdefs.h >>conftest.$ac_ext
  20194. cat >>conftest.$ac_ext <<_ACEOF
  20195. /* end confdefs.h. */
  20196. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20197. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20198. #define $ac_func innocuous_$ac_func
  20199. /* System header to define __stub macros and hopefully few prototypes,
  20200. which can conflict with char $ac_func (); below.
  20201. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20202. <limits.h> exists even on freestanding compilers. */
  20203. #ifdef __STDC__
  20204. # include <limits.h>
  20205. #else
  20206. # include <assert.h>
  20207. #endif
  20208. #undef $ac_func
  20209. /* Override any gcc2 internal prototype to avoid an error. */
  20210. #ifdef __cplusplus
  20211. extern "C"
  20212. {
  20213. #endif
  20214. /* We use char because int might match the return type of a gcc2
  20215. builtin and then its argument prototype would still apply. */
  20216. char $ac_func ();
  20217. /* The GNU C library defines this for functions which it implements
  20218. to always fail with ENOSYS. Some functions are actually named
  20219. something starting with __ and the normal name is an alias. */
  20220. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20221. choke me
  20222. #else
  20223. char (*f) () = $ac_func;
  20224. #endif
  20225. #ifdef __cplusplus
  20226. }
  20227. #endif
  20228. int
  20229. main ()
  20230. {
  20231. return f != $ac_func;
  20232. ;
  20233. return 0;
  20234. }
  20235. _ACEOF
  20236. rm -f conftest.$ac_objext conftest$ac_exeext
  20237. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20238. (eval $ac_link) 2>conftest.er1
  20239. ac_status=$?
  20240. grep -v '^ *+' conftest.er1 >conftest.err
  20241. rm -f conftest.er1
  20242. cat conftest.err >&5
  20243. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20244. (exit $ac_status); } &&
  20245. { ac_try='test -z "$ac_c_werror_flag"
  20246. || test ! -s conftest.err'
  20247. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20248. (eval $ac_try) 2>&5
  20249. ac_status=$?
  20250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20251. (exit $ac_status); }; } &&
  20252. { ac_try='test -s conftest$ac_exeext'
  20253. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20254. (eval $ac_try) 2>&5
  20255. ac_status=$?
  20256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20257. (exit $ac_status); }; }; then
  20258. eval "$as_ac_var=yes"
  20259. else
  20260. echo "$as_me: failed program was:" >&5
  20261. sed 's/^/| /' conftest.$ac_ext >&5
  20262. eval "$as_ac_var=no"
  20263. fi
  20264. rm -f conftest.err conftest.$ac_objext \
  20265. conftest$ac_exeext conftest.$ac_ext
  20266. fi
  20267. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20268. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20269. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20270. cat >>confdefs.h <<_ACEOF
  20271. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20272. _ACEOF
  20273. fi
  20274. done
  20275. # Check whether --enable-embedded or --disable-embedded was given.
  20276. if test "${enable_embedded+set}" = set; then
  20277. enableval="$enable_embedded"
  20278. kde_use_qt_emb=$enableval
  20279. else
  20280. kde_use_qt_emb=no
  20281. fi;
  20282. # Check whether --enable-qtopia or --disable-qtopia was given.
  20283. if test "${enable_qtopia+set}" = set; then
  20284. enableval="$enable_qtopia"
  20285. kde_use_qt_emb_palm=$enableval
  20286. else
  20287. kde_use_qt_emb_palm=no
  20288. fi;
  20289. # Check whether --enable-mac or --disable-mac was given.
  20290. if test "${enable_mac+set}" = set; then
  20291. enableval="$enable_mac"
  20292. kde_use_qt_mac=$enableval
  20293. else
  20294. kde_use_qt_mac=no
  20295. fi;
  20296. if test "$kde_use_qt_emb" = "no" && test "$kde_use_qt_mac" = "no"; then
  20297. echo "$as_me:$LINENO: checking for X" >&5
  20298. echo $ECHO_N "checking for X... $ECHO_C" >&6
  20299. ac_ext=c
  20300. ac_cpp='$CPP $CPPFLAGS'
  20301. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20302. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20303. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20304. if test "${kde_cv_have_x+set}" = set; then
  20305. echo $ECHO_N "(cached) $ECHO_C" >&6
  20306. else
  20307. # One or both of the vars are not set, and there is no cached value.
  20308. if test "{$x_includes+set}" = set || test "$x_includes" = NONE; then
  20309. kde_x_includes=NO
  20310. else
  20311. kde_x_includes=$x_includes
  20312. fi
  20313. if test "{$x_libraries+set}" = set || test "$x_libraries" = NONE; then
  20314. kde_x_libraries=NO
  20315. else
  20316. kde_x_libraries=$x_libraries
  20317. fi
  20318. # below we use the standard autoconf calls
  20319. ac_x_libraries=$kde_x_libraries
  20320. ac_x_includes=$kde_x_includes
  20321. if test "$ac_x_includes" = NO; then
  20322. # Guess where to find include files, by looking for this one X11 .h file.
  20323. test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  20324. # First, try using that file with no special directory specified.
  20325. cat >conftest.$ac_ext <<_ACEOF
  20326. /* confdefs.h. */
  20327. _ACEOF
  20328. cat confdefs.h >>conftest.$ac_ext
  20329. cat >>conftest.$ac_ext <<_ACEOF
  20330. /* end confdefs.h. */
  20331. #include <$x_direct_test_include>
  20332. _ACEOF
  20333. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  20334. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  20335. ac_status=$?
  20336. grep -v '^ *+' conftest.er1 >conftest.err
  20337. rm -f conftest.er1
  20338. cat conftest.err >&5
  20339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20340. (exit $ac_status); } >/dev/null; then
  20341. if test -s conftest.err; then
  20342. ac_cpp_err=$ac_c_preproc_warn_flag
  20343. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  20344. else
  20345. ac_cpp_err=
  20346. fi
  20347. else
  20348. ac_cpp_err=yes
  20349. fi
  20350. if test -z "$ac_cpp_err"; then
  20351. # We can compile using X headers with no special include directory.
  20352. ac_x_includes=
  20353. else
  20354. echo "$as_me: failed program was:" >&5
  20355. sed 's/^/| /' conftest.$ac_ext >&5
  20356. # Look for the header file in a standard set of common directories.
  20357. # Check X11 before X11Rn because it is often a symlink to the current release.
  20358. for ac_dir in \
  20359. /usr/X11/include \
  20360. /usr/X11R6/include \
  20361. /usr/X11R5/include \
  20362. /usr/X11R4/include \
  20363. \
  20364. /usr/include/X11 \
  20365. /usr/include/X11R6 \
  20366. /usr/include/X11R5 \
  20367. /usr/include/X11R4 \
  20368. \
  20369. /usr/local/X11/include \
  20370. /usr/local/X11R6/include \
  20371. /usr/local/X11R5/include \
  20372. /usr/local/X11R4/include \
  20373. \
  20374. /usr/local/include/X11 \
  20375. /usr/local/include/X11R6 \
  20376. /usr/local/include/X11R5 \
  20377. /usr/local/include/X11R4 \
  20378. \
  20379. /usr/X386/include \
  20380. /usr/x386/include \
  20381. /usr/XFree86/include/X11 \
  20382. \
  20383. /usr/include \
  20384. /usr/local/include \
  20385. /usr/unsupported/include \
  20386. /usr/athena/include \
  20387. /usr/local/x11r5/include \
  20388. /usr/lpp/Xamples/include \
  20389. \
  20390. /usr/openwin/include \
  20391. /usr/openwin/share/include \
  20392. ; \
  20393. do
  20394. if test -r "$ac_dir/$x_direct_test_include"; then
  20395. ac_x_includes=$ac_dir
  20396. break
  20397. fi
  20398. done
  20399. fi
  20400. rm -f conftest.err conftest.$ac_ext
  20401. fi # $ac_x_includes = NO
  20402. if test "$ac_x_libraries" = NO; then
  20403. # Check for the libraries.
  20404. test -z "$x_direct_test_library" && x_direct_test_library=Xt
  20405. test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  20406. # See if we find them without any special options.
  20407. # Don't add to $LIBS permanently.
  20408. ac_save_LIBS="$LIBS"
  20409. LIBS="-l$x_direct_test_library $LIBS"
  20410. cat >conftest.$ac_ext <<_ACEOF
  20411. /* confdefs.h. */
  20412. _ACEOF
  20413. cat confdefs.h >>conftest.$ac_ext
  20414. cat >>conftest.$ac_ext <<_ACEOF
  20415. /* end confdefs.h. */
  20416. int
  20417. main ()
  20418. {
  20419. ${x_direct_test_function}()
  20420. ;
  20421. return 0;
  20422. }
  20423. _ACEOF
  20424. rm -f conftest.$ac_objext conftest$ac_exeext
  20425. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20426. (eval $ac_link) 2>conftest.er1
  20427. ac_status=$?
  20428. grep -v '^ *+' conftest.er1 >conftest.err
  20429. rm -f conftest.er1
  20430. cat conftest.err >&5
  20431. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20432. (exit $ac_status); } &&
  20433. { ac_try='test -z "$ac_c_werror_flag"
  20434. || test ! -s conftest.err'
  20435. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20436. (eval $ac_try) 2>&5
  20437. ac_status=$?
  20438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20439. (exit $ac_status); }; } &&
  20440. { ac_try='test -s conftest$ac_exeext'
  20441. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20442. (eval $ac_try) 2>&5
  20443. ac_status=$?
  20444. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20445. (exit $ac_status); }; }; then
  20446. LIBS="$ac_save_LIBS"
  20447. # We can link X programs with no special library path.
  20448. ac_x_libraries=
  20449. else
  20450. echo "$as_me: failed program was:" >&5
  20451. sed 's/^/| /' conftest.$ac_ext >&5
  20452. LIBS="$ac_save_LIBS"
  20453. # First see if replacing the include by lib works.
  20454. # Check X11 before X11Rn because it is often a symlink to the current release.
  20455. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib${kdelibsuff}/` \
  20456. /usr/X11/lib${kdelibsuff} \
  20457. /usr/X11R6/lib${kdelibsuff} \
  20458. /usr/X11R5/lib${kdelibsuff} \
  20459. /usr/X11R4/lib${kdelibsuff} \
  20460. \
  20461. /usr/lib${kdelibsuff}/X11 \
  20462. /usr/lib${kdelibsuff}/X11R6 \
  20463. /usr/lib${kdelibsuff}/X11R5 \
  20464. /usr/lib${kdelibsuff}/X11R4 \
  20465. \
  20466. /usr/local/X11/lib${kdelibsuff} \
  20467. /usr/local/X11R6/lib${kdelibsuff} \
  20468. /usr/local/X11R5/lib${kdelibsuff} \
  20469. /usr/local/X11R4/lib${kdelibsuff} \
  20470. \
  20471. /usr/local/lib${kdelibsuff}/X11 \
  20472. /usr/local/lib${kdelibsuff}/X11R6 \
  20473. /usr/local/lib${kdelibsuff}/X11R5 \
  20474. /usr/local/lib${kdelibsuff}/X11R4 \
  20475. \
  20476. /usr/X386/lib${kdelibsuff} \
  20477. /usr/x386/lib${kdelibsuff} \
  20478. /usr/XFree86/lib${kdelibsuff}/X11 \
  20479. \
  20480. /usr/lib${kdelibsuff} \
  20481. /usr/local/lib${kdelibsuff} \
  20482. /usr/unsupported/lib${kdelibsuff} \
  20483. /usr/athena/lib${kdelibsuff} \
  20484. /usr/local/x11r5/lib${kdelibsuff} \
  20485. /usr/lpp/Xamples/lib${kdelibsuff} \
  20486. /lib/usr/lib${kdelibsuff}/X11 \
  20487. \
  20488. /usr/openwin/lib${kdelibsuff} \
  20489. /usr/openwin/share/lib${kdelibsuff} \
  20490. ; \
  20491. do
  20492. for ac_extension in a so sl; do
  20493. if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  20494. ac_x_libraries=$ac_dir
  20495. break 2
  20496. fi
  20497. done
  20498. done
  20499. fi
  20500. rm -f conftest.err conftest.$ac_objext \
  20501. conftest$ac_exeext conftest.$ac_ext
  20502. fi # $ac_x_libraries = NO
  20503. case "$host" in
  20504. mips-sgi-irix6*)
  20505. ;;
  20506. *-*-solaris*)
  20507. ;;
  20508. *)
  20509. rm -fr conftest.dir
  20510. if mkdir conftest.dir; then
  20511. cd conftest.dir
  20512. # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  20513. cat >Imakefile <<'_ACEOF'
  20514. acfindx:
  20515. @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  20516. _ACEOF
  20517. if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  20518. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  20519. eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  20520. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  20521. for ac_extension in a so sl; do
  20522. if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  20523. test -f $ac_im_libdir/libX11.$ac_extension; then
  20524. ac_im_usrlibdir=$ac_im_libdir; break
  20525. fi
  20526. done
  20527. # Screen out bogus values from the imake configuration. They are
  20528. # bogus both because they are the default anyway, and because
  20529. # using them would break gcc on systems where it needs fixed includes.
  20530. case $ac_im_incroot in
  20531. /usr/include) ;;
  20532. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  20533. esac
  20534. case $ac_im_usrlibdir in
  20535. /usr/lib | /lib) ;;
  20536. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  20537. esac
  20538. fi
  20539. cd ..
  20540. rm -fr conftest.dir
  20541. fi
  20542. if test -z "$ac_x_includes"; then
  20543. ac_x_includes="."
  20544. fi
  20545. if test -z "$ac_x_libraries"; then
  20546. ac_x_libraries="/usr/lib${kdelibsuff}"
  20547. fi
  20548. esac
  20549. #from now on we use our own again
  20550. # when the user already gave --x-includes, we ignore
  20551. # what the standard autoconf macros told us.
  20552. if test "$kde_x_includes" = NO; then
  20553. kde_x_includes=$ac_x_includes
  20554. fi
  20555. # for --x-libraries too
  20556. if test "$kde_x_libraries" = NO; then
  20557. kde_x_libraries=$ac_x_libraries
  20558. fi
  20559. if test "$kde_x_includes" = NO; then
  20560. { { echo "$as_me:$LINENO: error: Can't find X includes. Please check your installation and add the correct paths!" >&5
  20561. echo "$as_me: error: Can't find X includes. Please check your installation and add the correct paths!" >&2;}
  20562. { (exit 1); exit 1; }; }
  20563. fi
  20564. if test "$kde_x_libraries" = NO; then
  20565. { { echo "$as_me:$LINENO: error: Can't find X libraries. Please check your installation and add the correct paths!" >&5
  20566. echo "$as_me: error: Can't find X libraries. Please check your installation and add the correct paths!" >&2;}
  20567. { (exit 1); exit 1; }; }
  20568. fi
  20569. # Record where we found X for the cache.
  20570. kde_cv_have_x="have_x=yes \
  20571. kde_x_includes=$kde_x_includes kde_x_libraries=$kde_x_libraries"
  20572. fi
  20573. eval "$kde_cv_have_x"
  20574. if test "$have_x" != yes; then
  20575. echo "$as_me:$LINENO: result: $have_x" >&5
  20576. echo "${ECHO_T}$have_x" >&6
  20577. no_x=yes
  20578. else
  20579. echo "$as_me:$LINENO: result: libraries $kde_x_libraries, headers $kde_x_includes" >&5
  20580. echo "${ECHO_T}libraries $kde_x_libraries, headers $kde_x_includes" >&6
  20581. fi
  20582. if test -z "$kde_x_includes" || test "x$kde_x_includes" = xNONE; then
  20583. X_INCLUDES=""
  20584. x_includes="."; else
  20585. x_includes=$kde_x_includes
  20586. X_INCLUDES="-I$x_includes"
  20587. fi
  20588. if test -z "$kde_x_libraries" || test "x$kde_x_libraries" = xNONE; then
  20589. X_LDFLAGS=""
  20590. x_libraries="/usr/lib"; else
  20591. x_libraries=$kde_x_libraries
  20592. X_LDFLAGS="-L$x_libraries"
  20593. fi
  20594. all_includes="$X_INCLUDES"
  20595. all_libraries="$X_LDFLAGS"
  20596. # Check for libraries that X11R6 Xt/Xaw programs need.
  20597. ac_save_LDFLAGS="$LDFLAGS"
  20598. LDFLAGS="$LDFLAGS $X_LDFLAGS"
  20599. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  20600. # check for ICE first), but we must link in the order -lSM -lICE or
  20601. # we get undefined symbols. So assume we have SM if we have ICE.
  20602. # These have to be linked with before -lX11, unlike the other
  20603. # libraries we check for below, so use a different variable.
  20604. # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  20605. echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
  20606. echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
  20607. if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
  20608. echo $ECHO_N "(cached) $ECHO_C" >&6
  20609. else
  20610. ac_check_lib_save_LIBS=$LIBS
  20611. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  20612. cat >conftest.$ac_ext <<_ACEOF
  20613. /* confdefs.h. */
  20614. _ACEOF
  20615. cat confdefs.h >>conftest.$ac_ext
  20616. cat >>conftest.$ac_ext <<_ACEOF
  20617. /* end confdefs.h. */
  20618. /* Override any gcc2 internal prototype to avoid an error. */
  20619. #ifdef __cplusplus
  20620. extern "C"
  20621. #endif
  20622. /* We use char because int might match the return type of a gcc2
  20623. builtin and then its argument prototype would still apply. */
  20624. char IceConnectionNumber ();
  20625. int
  20626. main ()
  20627. {
  20628. IceConnectionNumber ();
  20629. ;
  20630. return 0;
  20631. }
  20632. _ACEOF
  20633. rm -f conftest.$ac_objext conftest$ac_exeext
  20634. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20635. (eval $ac_link) 2>conftest.er1
  20636. ac_status=$?
  20637. grep -v '^ *+' conftest.er1 >conftest.err
  20638. rm -f conftest.er1
  20639. cat conftest.err >&5
  20640. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20641. (exit $ac_status); } &&
  20642. { ac_try='test -z "$ac_c_werror_flag"
  20643. || test ! -s conftest.err'
  20644. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20645. (eval $ac_try) 2>&5
  20646. ac_status=$?
  20647. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20648. (exit $ac_status); }; } &&
  20649. { ac_try='test -s conftest$ac_exeext'
  20650. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20651. (eval $ac_try) 2>&5
  20652. ac_status=$?
  20653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20654. (exit $ac_status); }; }; then
  20655. ac_cv_lib_ICE_IceConnectionNumber=yes
  20656. else
  20657. echo "$as_me: failed program was:" >&5
  20658. sed 's/^/| /' conftest.$ac_ext >&5
  20659. ac_cv_lib_ICE_IceConnectionNumber=no
  20660. fi
  20661. rm -f conftest.err conftest.$ac_objext \
  20662. conftest$ac_exeext conftest.$ac_ext
  20663. LIBS=$ac_check_lib_save_LIBS
  20664. fi
  20665. echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  20666. echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
  20667. if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
  20668. LIBSM="-lSM -lICE"
  20669. fi
  20670. LDFLAGS="$ac_save_LDFLAGS"
  20671. LIB_X11='-lX11 $(LIBSOCKET)'
  20672. echo "$as_me:$LINENO: checking for libXext" >&5
  20673. echo $ECHO_N "checking for libXext... $ECHO_C" >&6
  20674. if test "${kde_cv_have_libXext+set}" = set; then
  20675. echo $ECHO_N "(cached) $ECHO_C" >&6
  20676. else
  20677. kde_ldflags_safe="$LDFLAGS"
  20678. kde_libs_safe="$LIBS"
  20679. LDFLAGS="$LDFLAGS $X_LDFLAGS $USER_LDFLAGS"
  20680. LIBS="-lXext -lX11 $LIBSOCKET"
  20681. cat >conftest.$ac_ext <<_ACEOF
  20682. /* confdefs.h. */
  20683. _ACEOF
  20684. cat confdefs.h >>conftest.$ac_ext
  20685. cat >>conftest.$ac_ext <<_ACEOF
  20686. /* end confdefs.h. */
  20687. #include <stdio.h>
  20688. #ifdef STDC_HEADERS
  20689. # include <stdlib.h>
  20690. #endif
  20691. int
  20692. main ()
  20693. {
  20694. printf("hello Xext\n");
  20695. ;
  20696. return 0;
  20697. }
  20698. _ACEOF
  20699. rm -f conftest.$ac_objext conftest$ac_exeext
  20700. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20701. (eval $ac_link) 2>conftest.er1
  20702. ac_status=$?
  20703. grep -v '^ *+' conftest.er1 >conftest.err
  20704. rm -f conftest.er1
  20705. cat conftest.err >&5
  20706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20707. (exit $ac_status); } &&
  20708. { ac_try='test -z "$ac_c_werror_flag"
  20709. || test ! -s conftest.err'
  20710. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20711. (eval $ac_try) 2>&5
  20712. ac_status=$?
  20713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20714. (exit $ac_status); }; } &&
  20715. { ac_try='test -s conftest$ac_exeext'
  20716. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20717. (eval $ac_try) 2>&5
  20718. ac_status=$?
  20719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20720. (exit $ac_status); }; }; then
  20721. kde_cv_have_libXext=yes
  20722. else
  20723. echo "$as_me: failed program was:" >&5
  20724. sed 's/^/| /' conftest.$ac_ext >&5
  20725. kde_cv_have_libXext=no
  20726. fi
  20727. rm -f conftest.err conftest.$ac_objext \
  20728. conftest$ac_exeext conftest.$ac_ext
  20729. LDFLAGS=$kde_ldflags_safe
  20730. LIBS=$kde_libs_safe
  20731. fi
  20732. echo "$as_me:$LINENO: result: $kde_cv_have_libXext" >&5
  20733. echo "${ECHO_T}$kde_cv_have_libXext" >&6
  20734. if test "$kde_cv_have_libXext" = "no"; then
  20735. { { echo "$as_me:$LINENO: error: We need a working libXext to proceed. Since configure
  20736. can't find it itself, we stop here assuming that make wouldn't find
  20737. them either." >&5
  20738. echo "$as_me: error: We need a working libXext to proceed. Since configure
  20739. can't find it itself, we stop here assuming that make wouldn't find
  20740. them either." >&2;}
  20741. { (exit 1); exit 1; }; }
  20742. fi
  20743. LIB_XEXT="-lXext"
  20744. QTE_NORTTI=""
  20745. elif test "$kde_use_qt_emb" = "yes"; then
  20746. CPPFLAGS=-DQWS
  20747. CXXFLAGS="$CXXFLAGS -fno-rtti"
  20748. QTE_NORTTI="-fno-rtti -DQWS"
  20749. X_PRE_LIBS=""
  20750. LIB_X11=""
  20751. LIB_XEXT=""
  20752. LIB_XRENDER=""
  20753. LIBSM=""
  20754. X_INCLUDES=""
  20755. X_LDFLAGS=""
  20756. x_includes=""
  20757. x_libraries=""
  20758. elif test "$kde_use_qt_mac" = "yes"; then
  20759. CXXFLAGS="$CXXFLAGS -DQT_MAC -no-cpp-precomp"
  20760. CFLAGS="$CFLAGS -DQT_MAC -no-cpp-precomp"
  20761. X_PRE_LIBS=""
  20762. LIB_X11=""
  20763. LIB_XEXT=""
  20764. LIB_XRENDER=""
  20765. LIBSM=""
  20766. X_INCLUDES=""
  20767. X_LDFLAGS=""
  20768. x_includes=""
  20769. x_libraries=""
  20770. fi
  20771. ac_ext=c
  20772. ac_cpp='$CPP $CPPFLAGS'
  20773. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20774. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20775. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20776. echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
  20777. echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
  20778. if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
  20779. echo $ECHO_N "(cached) $ECHO_C" >&6
  20780. else
  20781. ac_check_lib_save_LIBS=$LIBS
  20782. LIBS="-lpthread $LIBS"
  20783. cat >conftest.$ac_ext <<_ACEOF
  20784. /* confdefs.h. */
  20785. _ACEOF
  20786. cat confdefs.h >>conftest.$ac_ext
  20787. cat >>conftest.$ac_ext <<_ACEOF
  20788. /* end confdefs.h. */
  20789. /* Override any gcc2 internal prototype to avoid an error. */
  20790. #ifdef __cplusplus
  20791. extern "C"
  20792. #endif
  20793. /* We use char because int might match the return type of a gcc2
  20794. builtin and then its argument prototype would still apply. */
  20795. char pthread_create ();
  20796. int
  20797. main ()
  20798. {
  20799. pthread_create ();
  20800. ;
  20801. return 0;
  20802. }
  20803. _ACEOF
  20804. rm -f conftest.$ac_objext conftest$ac_exeext
  20805. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20806. (eval $ac_link) 2>conftest.er1
  20807. ac_status=$?
  20808. grep -v '^ *+' conftest.er1 >conftest.err
  20809. rm -f conftest.er1
  20810. cat conftest.err >&5
  20811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20812. (exit $ac_status); } &&
  20813. { ac_try='test -z "$ac_c_werror_flag"
  20814. || test ! -s conftest.err'
  20815. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20816. (eval $ac_try) 2>&5
  20817. ac_status=$?
  20818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20819. (exit $ac_status); }; } &&
  20820. { ac_try='test -s conftest$ac_exeext'
  20821. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20822. (eval $ac_try) 2>&5
  20823. ac_status=$?
  20824. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20825. (exit $ac_status); }; }; then
  20826. ac_cv_lib_pthread_pthread_create=yes
  20827. else
  20828. echo "$as_me: failed program was:" >&5
  20829. sed 's/^/| /' conftest.$ac_ext >&5
  20830. ac_cv_lib_pthread_pthread_create=no
  20831. fi
  20832. rm -f conftest.err conftest.$ac_objext \
  20833. conftest$ac_exeext conftest.$ac_ext
  20834. LIBS=$ac_check_lib_save_LIBS
  20835. fi
  20836. echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
  20837. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
  20838. if test $ac_cv_lib_pthread_pthread_create = yes; then
  20839. LIBPTHREAD="-lpthread"
  20840. fi
  20841. # Check whether --enable-kernel-threads or --disable-kernel-threads was given.
  20842. if test "${enable_kernel_threads+set}" = set; then
  20843. enableval="$enable_kernel_threads"
  20844. kde_use_kernthreads=$enableval
  20845. else
  20846. kde_use_kernthreads=no
  20847. fi;
  20848. if test "$kde_use_kernthreads" = "yes"; then
  20849. ac_save_CXXFLAGS="$CXXFLAGS"
  20850. ac_save_CFLAGS="$CFLAGS"
  20851. CXXFLAGS="-I/usr/local/include/pthread/linuxthreads $CXXFLAGS"
  20852. CFLAGS="-I/usr/local/include/pthread/linuxthreads $CFLAGS"
  20853. for ac_header in pthread/linuxthreads/pthread.h
  20854. do
  20855. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20856. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  20857. echo "$as_me:$LINENO: checking for $ac_header" >&5
  20858. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  20859. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  20860. echo $ECHO_N "(cached) $ECHO_C" >&6
  20861. fi
  20862. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  20863. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  20864. else
  20865. # Is the header compilable?
  20866. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  20867. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  20868. cat >conftest.$ac_ext <<_ACEOF
  20869. /* confdefs.h. */
  20870. _ACEOF
  20871. cat confdefs.h >>conftest.$ac_ext
  20872. cat >>conftest.$ac_ext <<_ACEOF
  20873. /* end confdefs.h. */
  20874. $ac_includes_default
  20875. #include <$ac_header>
  20876. _ACEOF
  20877. rm -f conftest.$ac_objext
  20878. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20879. (eval $ac_compile) 2>conftest.er1
  20880. ac_status=$?
  20881. grep -v '^ *+' conftest.er1 >conftest.err
  20882. rm -f conftest.er1
  20883. cat conftest.err >&5
  20884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20885. (exit $ac_status); } &&
  20886. { ac_try='test -z "$ac_c_werror_flag"
  20887. || test ! -s conftest.err'
  20888. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20889. (eval $ac_try) 2>&5
  20890. ac_status=$?
  20891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20892. (exit $ac_status); }; } &&
  20893. { ac_try='test -s conftest.$ac_objext'
  20894. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20895. (eval $ac_try) 2>&5
  20896. ac_status=$?
  20897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20898. (exit $ac_status); }; }; then
  20899. ac_header_compiler=yes
  20900. else
  20901. echo "$as_me: failed program was:" >&5
  20902. sed 's/^/| /' conftest.$ac_ext >&5
  20903. ac_header_compiler=no
  20904. fi
  20905. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20906. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20907. echo "${ECHO_T}$ac_header_compiler" >&6
  20908. # Is the header present?
  20909. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  20910. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  20911. cat >conftest.$ac_ext <<_ACEOF
  20912. /* confdefs.h. */
  20913. _ACEOF
  20914. cat confdefs.h >>conftest.$ac_ext
  20915. cat >>conftest.$ac_ext <<_ACEOF
  20916. /* end confdefs.h. */
  20917. #include <$ac_header>
  20918. _ACEOF
  20919. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  20920. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  20921. ac_status=$?
  20922. grep -v '^ *+' conftest.er1 >conftest.err
  20923. rm -f conftest.er1
  20924. cat conftest.err >&5
  20925. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20926. (exit $ac_status); } >/dev/null; then
  20927. if test -s conftest.err; then
  20928. ac_cpp_err=$ac_c_preproc_warn_flag
  20929. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  20930. else
  20931. ac_cpp_err=
  20932. fi
  20933. else
  20934. ac_cpp_err=yes
  20935. fi
  20936. if test -z "$ac_cpp_err"; then
  20937. ac_header_preproc=yes
  20938. else
  20939. echo "$as_me: failed program was:" >&5
  20940. sed 's/^/| /' conftest.$ac_ext >&5
  20941. ac_header_preproc=no
  20942. fi
  20943. rm -f conftest.err conftest.$ac_ext
  20944. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20945. echo "${ECHO_T}$ac_header_preproc" >&6
  20946. # So? What about this header?
  20947. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20948. yes:no: )
  20949. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  20950. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20951. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  20952. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  20953. ac_header_preproc=yes
  20954. ;;
  20955. no:yes:* )
  20956. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  20957. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  20958. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  20959. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  20960. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  20961. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  20962. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  20963. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  20964. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  20965. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  20966. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  20967. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  20968. (
  20969. cat <<\_ASBOX
  20970. ## ------------------------------------------ ##
  20971. ## Report this to the AC_PACKAGE_NAME lists. ##
  20972. ## ------------------------------------------ ##
  20973. _ASBOX
  20974. ) |
  20975. sed "s/^/$as_me: WARNING: /" >&2
  20976. ;;
  20977. esac
  20978. echo "$as_me:$LINENO: checking for $ac_header" >&5
  20979. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  20980. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  20981. echo $ECHO_N "(cached) $ECHO_C" >&6
  20982. else
  20983. eval "$as_ac_Header=\$ac_header_preproc"
  20984. fi
  20985. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  20986. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  20987. fi
  20988. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  20989. cat >>confdefs.h <<_ACEOF
  20990. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20991. _ACEOF
  20992. fi
  20993. done
  20994. CXXFLAGS="$ac_save_CXXFLAGS"
  20995. CFLAGS="$ac_save_CFLAGS"
  20996. if test "$ac_cv_header_pthread_linuxthreads_pthread_h" = "no"; then
  20997. kde_use_kernthreads=no
  20998. else
  20999. echo "$as_me:$LINENO: checking for pthread_join in -llthread" >&5
  21000. echo $ECHO_N "checking for pthread_join in -llthread... $ECHO_C" >&6
  21001. if test "${ac_cv_lib_lthread_pthread_join+set}" = set; then
  21002. echo $ECHO_N "(cached) $ECHO_C" >&6
  21003. else
  21004. ac_check_lib_save_LIBS=$LIBS
  21005. LIBS="-llthread $LIBS"
  21006. cat >conftest.$ac_ext <<_ACEOF
  21007. /* confdefs.h. */
  21008. _ACEOF
  21009. cat confdefs.h >>conftest.$ac_ext
  21010. cat >>conftest.$ac_ext <<_ACEOF
  21011. /* end confdefs.h. */
  21012. /* Override any gcc2 internal prototype to avoid an error. */
  21013. #ifdef __cplusplus
  21014. extern "C"
  21015. #endif
  21016. /* We use char because int might match the return type of a gcc2
  21017. builtin and then its argument prototype would still apply. */
  21018. char pthread_join ();
  21019. int
  21020. main ()
  21021. {
  21022. pthread_join ();
  21023. ;
  21024. return 0;
  21025. }
  21026. _ACEOF
  21027. rm -f conftest.$ac_objext conftest$ac_exeext
  21028. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21029. (eval $ac_link) 2>conftest.er1
  21030. ac_status=$?
  21031. grep -v '^ *+' conftest.er1 >conftest.err
  21032. rm -f conftest.er1
  21033. cat conftest.err >&5
  21034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21035. (exit $ac_status); } &&
  21036. { ac_try='test -z "$ac_c_werror_flag"
  21037. || test ! -s conftest.err'
  21038. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21039. (eval $ac_try) 2>&5
  21040. ac_status=$?
  21041. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21042. (exit $ac_status); }; } &&
  21043. { ac_try='test -s conftest$ac_exeext'
  21044. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21045. (eval $ac_try) 2>&5
  21046. ac_status=$?
  21047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21048. (exit $ac_status); }; }; then
  21049. ac_cv_lib_lthread_pthread_join=yes
  21050. else
  21051. echo "$as_me: failed program was:" >&5
  21052. sed 's/^/| /' conftest.$ac_ext >&5
  21053. ac_cv_lib_lthread_pthread_join=no
  21054. fi
  21055. rm -f conftest.err conftest.$ac_objext \
  21056. conftest$ac_exeext conftest.$ac_ext
  21057. LIBS=$ac_check_lib_save_LIBS
  21058. fi
  21059. echo "$as_me:$LINENO: result: $ac_cv_lib_lthread_pthread_join" >&5
  21060. echo "${ECHO_T}$ac_cv_lib_lthread_pthread_join" >&6
  21061. if test $ac_cv_lib_lthread_pthread_join = yes; then
  21062. LIBPTHREAD="-llthread -llgcc_r"
  21063. fi
  21064. if test "x$LIBPTHREAD" = "x"; then
  21065. kde_use_kernthreads=no
  21066. else
  21067. USE_THREADS="-D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads"
  21068. fi
  21069. fi
  21070. else
  21071. USE_THREADS=""
  21072. if test -z "$LIBPTHREAD"; then
  21073. echo "$as_me:$LINENO: checking whether $CXX supports -pthread" >&5
  21074. echo $ECHO_N "checking whether $CXX supports -pthread... $ECHO_C" >&6
  21075. kde_cache=`echo pthread | sed 'y% .=/+-,%____p__%'`
  21076. if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
  21077. echo $ECHO_N "(cached) $ECHO_C" >&6
  21078. else
  21079. ac_ext=cc
  21080. ac_cpp='$CXXCPP $CPPFLAGS'
  21081. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21082. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21083. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21084. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  21085. save_CXXFLAGS="$CXXFLAGS"
  21086. CXXFLAGS="$CXXFLAGS -pthread"
  21087. cat >conftest.$ac_ext <<_ACEOF
  21088. /* confdefs.h. */
  21089. _ACEOF
  21090. cat confdefs.h >>conftest.$ac_ext
  21091. cat >>conftest.$ac_ext <<_ACEOF
  21092. /* end confdefs.h. */
  21093. int
  21094. main ()
  21095. {
  21096. return 0;
  21097. ;
  21098. return 0;
  21099. }
  21100. _ACEOF
  21101. rm -f conftest.$ac_objext conftest$ac_exeext
  21102. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21103. (eval $ac_link) 2>conftest.er1
  21104. ac_status=$?
  21105. grep -v '^ *+' conftest.er1 >conftest.err
  21106. rm -f conftest.er1
  21107. cat conftest.err >&5
  21108. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21109. (exit $ac_status); } &&
  21110. { ac_try='test -z "$ac_cxx_werror_flag"
  21111. || test ! -s conftest.err'
  21112. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21113. (eval $ac_try) 2>&5
  21114. ac_status=$?
  21115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21116. (exit $ac_status); }; } &&
  21117. { ac_try='test -s conftest$ac_exeext'
  21118. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21119. (eval $ac_try) 2>&5
  21120. ac_status=$?
  21121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21122. (exit $ac_status); }; }; then
  21123. eval "kde_cv_prog_cxx_$kde_cache=yes"
  21124. else
  21125. echo "$as_me: failed program was:" >&5
  21126. sed 's/^/| /' conftest.$ac_ext >&5
  21127. fi
  21128. rm -f conftest.err conftest.$ac_objext \
  21129. conftest$ac_exeext conftest.$ac_ext
  21130. CXXFLAGS="$save_CXXFLAGS"
  21131. ac_ext=c
  21132. ac_cpp='$CPP $CPPFLAGS'
  21133. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21134. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21135. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21136. fi
  21137. if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
  21138. echo "$as_me:$LINENO: result: yes" >&5
  21139. echo "${ECHO_T}yes" >&6
  21140. :
  21141. USE_THREADS="-pthread"
  21142. else
  21143. echo "$as_me:$LINENO: result: no" >&5
  21144. echo "${ECHO_T}no" >&6
  21145. :
  21146. fi
  21147. fi
  21148. fi
  21149. case $host_os in
  21150. solaris*)
  21151. echo "$as_me:$LINENO: checking whether $CXX supports -mt" >&5
  21152. echo $ECHO_N "checking whether $CXX supports -mt... $ECHO_C" >&6
  21153. kde_cache=`echo mt | sed 'y% .=/+-,%____p__%'`
  21154. if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
  21155. echo $ECHO_N "(cached) $ECHO_C" >&6
  21156. else
  21157. ac_ext=cc
  21158. ac_cpp='$CXXCPP $CPPFLAGS'
  21159. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21160. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21161. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21162. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  21163. save_CXXFLAGS="$CXXFLAGS"
  21164. CXXFLAGS="$CXXFLAGS -mt"
  21165. cat >conftest.$ac_ext <<_ACEOF
  21166. /* confdefs.h. */
  21167. _ACEOF
  21168. cat confdefs.h >>conftest.$ac_ext
  21169. cat >>conftest.$ac_ext <<_ACEOF
  21170. /* end confdefs.h. */
  21171. int
  21172. main ()
  21173. {
  21174. return 0;
  21175. ;
  21176. return 0;
  21177. }
  21178. _ACEOF
  21179. rm -f conftest.$ac_objext conftest$ac_exeext
  21180. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21181. (eval $ac_link) 2>conftest.er1
  21182. ac_status=$?
  21183. grep -v '^ *+' conftest.er1 >conftest.err
  21184. rm -f conftest.er1
  21185. cat conftest.err >&5
  21186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21187. (exit $ac_status); } &&
  21188. { ac_try='test -z "$ac_cxx_werror_flag"
  21189. || test ! -s conftest.err'
  21190. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21191. (eval $ac_try) 2>&5
  21192. ac_status=$?
  21193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21194. (exit $ac_status); }; } &&
  21195. { ac_try='test -s conftest$ac_exeext'
  21196. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21197. (eval $ac_try) 2>&5
  21198. ac_status=$?
  21199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21200. (exit $ac_status); }; }; then
  21201. eval "kde_cv_prog_cxx_$kde_cache=yes"
  21202. else
  21203. echo "$as_me: failed program was:" >&5
  21204. sed 's/^/| /' conftest.$ac_ext >&5
  21205. fi
  21206. rm -f conftest.err conftest.$ac_objext \
  21207. conftest$ac_exeext conftest.$ac_ext
  21208. CXXFLAGS="$save_CXXFLAGS"
  21209. ac_ext=c
  21210. ac_cpp='$CPP $CPPFLAGS'
  21211. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21212. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21213. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21214. fi
  21215. if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
  21216. echo "$as_me:$LINENO: result: yes" >&5
  21217. echo "${ECHO_T}yes" >&6
  21218. :
  21219. USE_THREADS="-mt"
  21220. else
  21221. echo "$as_me:$LINENO: result: no" >&5
  21222. echo "${ECHO_T}no" >&6
  21223. :
  21224. fi
  21225. CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4"
  21226. ;;
  21227. freebsd*)
  21228. CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
  21229. ;;
  21230. aix*)
  21231. CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
  21232. LIBPTHREAD="$LIBPTHREAD -lc_r"
  21233. ;;
  21234. linux*) CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  21235. if test "$CXX" = "KCC"; then
  21236. CXXFLAGS="$CXXFLAGS --thread_safe"
  21237. NOOPT_CXXFLAGS="$NOOPT_CXXFLAGS --thread_safe"
  21238. fi
  21239. ;;
  21240. *)
  21241. ;;
  21242. esac
  21243. echo "$as_me:$LINENO: checking for extra includes" >&5
  21244. echo $ECHO_N "checking for extra includes... $ECHO_C" >&6
  21245. # Check whether --with-extra-includes or --without-extra-includes was given.
  21246. if test "${with_extra_includes+set}" = set; then
  21247. withval="$with_extra_includes"
  21248. kde_use_extra_includes="$withval"
  21249. else
  21250. kde_use_extra_includes=NONE
  21251. fi;
  21252. kde_extra_includes=
  21253. if test -n "$kde_use_extra_includes" && \
  21254. test "$kde_use_extra_includes" != "NONE"; then
  21255. ac_save_ifs=$IFS
  21256. IFS=':'
  21257. for dir in $kde_use_extra_includes; do
  21258. kde_extra_includes="$kde_extra_includes $dir"
  21259. USER_INCLUDES="$USER_INCLUDES -I$dir"
  21260. done
  21261. IFS=$ac_save_ifs
  21262. kde_use_extra_includes="added"
  21263. else
  21264. kde_use_extra_includes="no"
  21265. fi
  21266. echo "$as_me:$LINENO: result: $kde_use_extra_includes" >&5
  21267. echo "${ECHO_T}$kde_use_extra_includes" >&6
  21268. kde_extra_libs=
  21269. echo "$as_me:$LINENO: checking for extra libs" >&5
  21270. echo $ECHO_N "checking for extra libs... $ECHO_C" >&6
  21271. # Check whether --with-extra-libs or --without-extra-libs was given.
  21272. if test "${with_extra_libs+set}" = set; then
  21273. withval="$with_extra_libs"
  21274. kde_use_extra_libs=$withval
  21275. else
  21276. kde_use_extra_libs=NONE
  21277. fi;
  21278. if test -n "$kde_use_extra_libs" && \
  21279. test "$kde_use_extra_libs" != "NONE"; then
  21280. ac_save_ifs=$IFS
  21281. IFS=':'
  21282. for dir in $kde_use_extra_libs; do
  21283. kde_extra_libs="$kde_extra_libs $dir"
  21284. KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -R $dir"
  21285. USER_LDFLAGS="$USER_LDFLAGS -L$dir"
  21286. done
  21287. IFS=$ac_save_ifs
  21288. kde_use_extra_libs="added"
  21289. else
  21290. kde_use_extra_libs="no"
  21291. fi
  21292. echo "$as_me:$LINENO: result: $kde_use_extra_libs" >&5
  21293. echo "${ECHO_T}$kde_use_extra_libs" >&6
  21294. echo "$as_me:$LINENO: checking for libz" >&5
  21295. echo $ECHO_N "checking for libz... $ECHO_C" >&6
  21296. if test "${ac_cv_lib_z+set}" = set; then
  21297. echo $ECHO_N "(cached) $ECHO_C" >&6
  21298. else
  21299. ac_ext=c
  21300. ac_cpp='$CPP $CPPFLAGS'
  21301. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21302. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21303. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21304. kde_save_LIBS="$LIBS"
  21305. LIBS="$all_libraries $USER_LDFLAGS -lz $LIBSOCKET"
  21306. kde_save_CFLAGS="$CFLAGS"
  21307. CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
  21308. cat >conftest.$ac_ext <<_ACEOF
  21309. /* confdefs.h. */
  21310. _ACEOF
  21311. cat confdefs.h >>conftest.$ac_ext
  21312. cat >>conftest.$ac_ext <<_ACEOF
  21313. /* end confdefs.h. */
  21314. #include<zlib.h>
  21315. int
  21316. main ()
  21317. {
  21318. char buf[42];
  21319. gzFile f = (gzFile) 0;
  21320. /* this would segfault.. but we only link, don't run */
  21321. (void) gzgets(f, buf, sizeof(buf));
  21322. return (zlibVersion() == ZLIB_VERSION);
  21323. ;
  21324. return 0;
  21325. }
  21326. _ACEOF
  21327. rm -f conftest.$ac_objext conftest$ac_exeext
  21328. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21329. (eval $ac_link) 2>conftest.er1
  21330. ac_status=$?
  21331. grep -v '^ *+' conftest.er1 >conftest.err
  21332. rm -f conftest.er1
  21333. cat conftest.err >&5
  21334. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21335. (exit $ac_status); } &&
  21336. { ac_try='test -z "$ac_c_werror_flag"
  21337. || test ! -s conftest.err'
  21338. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21339. (eval $ac_try) 2>&5
  21340. ac_status=$?
  21341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21342. (exit $ac_status); }; } &&
  21343. { ac_try='test -s conftest$ac_exeext'
  21344. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21345. (eval $ac_try) 2>&5
  21346. ac_status=$?
  21347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21348. (exit $ac_status); }; }; then
  21349. eval "ac_cv_lib_z='-lz'"
  21350. else
  21351. echo "$as_me: failed program was:" >&5
  21352. sed 's/^/| /' conftest.$ac_ext >&5
  21353. eval "ac_cv_lib_z=no"
  21354. fi
  21355. rm -f conftest.err conftest.$ac_objext \
  21356. conftest$ac_exeext conftest.$ac_ext
  21357. LIBS="$kde_save_LIBS"
  21358. CFLAGS="$kde_save_CFLAGS"
  21359. fi
  21360. if test ! "$ac_cv_lib_z" = no; then
  21361. cat >>confdefs.h <<_ACEOF
  21362. #define HAVE_LIBZ 1
  21363. _ACEOF
  21364. LIBZ="$ac_cv_lib_z"
  21365. echo "$as_me:$LINENO: result: $ac_cv_lib_z" >&5
  21366. echo "${ECHO_T}$ac_cv_lib_z" >&6
  21367. else
  21368. { { echo "$as_me:$LINENO: error: not found.
  21369. Possibly configure picks up an outdated version
  21370. installed by XFree86. Remove it from your system.
  21371. Check your installation and look into config.log" >&5
  21372. echo "$as_me: error: not found.
  21373. Possibly configure picks up an outdated version
  21374. installed by XFree86. Remove it from your system.
  21375. Check your installation and look into config.log" >&2;}
  21376. { (exit 1); exit 1; }; }
  21377. LIBZ=""
  21378. fi
  21379. echo "$as_me:$LINENO: checking for libpng" >&5
  21380. echo $ECHO_N "checking for libpng... $ECHO_C" >&6
  21381. if test "${ac_cv_lib_png+set}" = set; then
  21382. echo $ECHO_N "(cached) $ECHO_C" >&6
  21383. else
  21384. kde_save_LIBS="$LIBS"
  21385. if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
  21386. LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm -lX11 $LIBSOCKET"
  21387. else
  21388. LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm"
  21389. fi
  21390. kde_save_CFLAGS="$CFLAGS"
  21391. CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
  21392. ac_ext=c
  21393. ac_cpp='$CPP $CPPFLAGS'
  21394. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21395. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21396. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21397. cat >conftest.$ac_ext <<_ACEOF
  21398. /* confdefs.h. */
  21399. _ACEOF
  21400. cat confdefs.h >>conftest.$ac_ext
  21401. cat >>conftest.$ac_ext <<_ACEOF
  21402. /* end confdefs.h. */
  21403. #include<png.h>
  21404. int
  21405. main ()
  21406. {
  21407. png_structp png_ptr = png_create_read_struct( /* image ptr */
  21408. PNG_LIBPNG_VER_STRING, 0, 0, 0 );
  21409. return( png_ptr != 0 );
  21410. ;
  21411. return 0;
  21412. }
  21413. _ACEOF
  21414. rm -f conftest.$ac_objext conftest$ac_exeext
  21415. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21416. (eval $ac_link) 2>conftest.er1
  21417. ac_status=$?
  21418. grep -v '^ *+' conftest.er1 >conftest.err
  21419. rm -f conftest.er1
  21420. cat conftest.err >&5
  21421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21422. (exit $ac_status); } &&
  21423. { ac_try='test -z "$ac_c_werror_flag"
  21424. || test ! -s conftest.err'
  21425. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21426. (eval $ac_try) 2>&5
  21427. ac_status=$?
  21428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21429. (exit $ac_status); }; } &&
  21430. { ac_try='test -s conftest$ac_exeext'
  21431. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21432. (eval $ac_try) 2>&5
  21433. ac_status=$?
  21434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21435. (exit $ac_status); }; }; then
  21436. eval "ac_cv_lib_png='-lpng $LIBZ -lm'"
  21437. else
  21438. echo "$as_me: failed program was:" >&5
  21439. sed 's/^/| /' conftest.$ac_ext >&5
  21440. eval "ac_cv_lib_png=no"
  21441. fi
  21442. rm -f conftest.err conftest.$ac_objext \
  21443. conftest$ac_exeext conftest.$ac_ext
  21444. LIBS="$kde_save_LIBS"
  21445. CFLAGS="$kde_save_CFLAGS"
  21446. fi
  21447. if eval "test ! \"`echo $ac_cv_lib_png`\" = no"; then
  21448. cat >>confdefs.h <<_ACEOF
  21449. #define HAVE_LIBPNG 1
  21450. _ACEOF
  21451. LIBPNG="$ac_cv_lib_png"
  21452. echo "$as_me:$LINENO: result: $ac_cv_lib_png" >&5
  21453. echo "${ECHO_T}$ac_cv_lib_png" >&6
  21454. else
  21455. echo "$as_me:$LINENO: result: no" >&5
  21456. echo "${ECHO_T}no" >&6
  21457. LIBPNG=""
  21458. fi
  21459. echo "$as_me:$LINENO: checking for libjpeg6b" >&5
  21460. echo $ECHO_N "checking for libjpeg6b... $ECHO_C" >&6
  21461. if test "${ac_cv_lib_jpeg_6b+set}" = set; then
  21462. echo $ECHO_N "(cached) $ECHO_C" >&6
  21463. else
  21464. ac_ext=c
  21465. ac_cpp='$CPP $CPPFLAGS'
  21466. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21467. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21468. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21469. ac_save_LIBS="$LIBS"
  21470. LIBS="$all_libraries $USER_LDFLAGS -ljpeg6b -lm"
  21471. ac_save_CFLAGS="$CFLAGS"
  21472. CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
  21473. cat >conftest.$ac_ext <<_ACEOF
  21474. /* confdefs.h. */
  21475. _ACEOF
  21476. cat confdefs.h >>conftest.$ac_ext
  21477. cat >>conftest.$ac_ext <<_ACEOF
  21478. /* end confdefs.h. */
  21479. /* Override any gcc2 internal prototype to avoid an error. */
  21480. struct jpeg_decompress_struct;
  21481. typedef struct jpeg_decompress_struct * j_decompress_ptr;
  21482. typedef int size_t;
  21483. #ifdef __cplusplus
  21484. extern "C" {
  21485. #endif
  21486. void jpeg_CreateDecompress(j_decompress_ptr cinfo,
  21487. int version, size_t structsize);
  21488. #ifdef __cplusplus
  21489. }
  21490. #endif
  21491. /* We use char because int might match the return type of a gcc2
  21492. builtin and then its argument prototype would still apply. */
  21493. int
  21494. main ()
  21495. {
  21496. jpeg_CreateDecompress(0L, 0, 0);
  21497. ;
  21498. return 0;
  21499. }
  21500. _ACEOF
  21501. rm -f conftest.$ac_objext conftest$ac_exeext
  21502. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21503. (eval $ac_link) 2>conftest.er1
  21504. ac_status=$?
  21505. grep -v '^ *+' conftest.er1 >conftest.err
  21506. rm -f conftest.er1
  21507. cat conftest.err >&5
  21508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21509. (exit $ac_status); } &&
  21510. { ac_try='test -z "$ac_c_werror_flag"
  21511. || test ! -s conftest.err'
  21512. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21513. (eval $ac_try) 2>&5
  21514. ac_status=$?
  21515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21516. (exit $ac_status); }; } &&
  21517. { ac_try='test -s conftest$ac_exeext'
  21518. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21519. (eval $ac_try) 2>&5
  21520. ac_status=$?
  21521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21522. (exit $ac_status); }; }; then
  21523. eval "ac_cv_lib_jpeg_6b=-ljpeg6b"
  21524. else
  21525. echo "$as_me: failed program was:" >&5
  21526. sed 's/^/| /' conftest.$ac_ext >&5
  21527. eval "ac_cv_lib_jpeg_6b=no"
  21528. fi
  21529. rm -f conftest.err conftest.$ac_objext \
  21530. conftest$ac_exeext conftest.$ac_ext
  21531. LIBS="$ac_save_LIBS"
  21532. CFLAGS="$ac_save_CFLAGS"
  21533. fi
  21534. if eval "test ! \"`echo $ac_cv_lib_jpeg_6b`\" = no"; then
  21535. LIBJPEG="$ac_cv_lib_jpeg_6b"
  21536. echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_6b" >&5
  21537. echo "${ECHO_T}$ac_cv_lib_jpeg_6b" >&6
  21538. else
  21539. echo "$as_me:$LINENO: result: no" >&5
  21540. echo "${ECHO_T}no" >&6
  21541. echo "$as_me:$LINENO: checking for libjpeg" >&5
  21542. echo $ECHO_N "checking for libjpeg... $ECHO_C" >&6
  21543. if test "${ac_cv_lib_jpeg_normal+set}" = set; then
  21544. echo $ECHO_N "(cached) $ECHO_C" >&6
  21545. else
  21546. ac_ext=c
  21547. ac_cpp='$CPP $CPPFLAGS'
  21548. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21549. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21550. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21551. ac_save_LIBS="$LIBS"
  21552. LIBS="$all_libraries $USER_LDFLAGS -ljpeg -lm"
  21553. ac_save_CFLAGS="$CFLAGS"
  21554. CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
  21555. cat >conftest.$ac_ext <<_ACEOF
  21556. /* confdefs.h. */
  21557. _ACEOF
  21558. cat confdefs.h >>conftest.$ac_ext
  21559. cat >>conftest.$ac_ext <<_ACEOF
  21560. /* end confdefs.h. */
  21561. /* Override any gcc2 internal prototype to avoid an error. */
  21562. struct jpeg_decompress_struct;
  21563. typedef struct jpeg_decompress_struct * j_decompress_ptr;
  21564. typedef int size_t;
  21565. #ifdef __cplusplus
  21566. extern "C" {
  21567. #endif
  21568. void jpeg_CreateDecompress(j_decompress_ptr cinfo,
  21569. int version, size_t structsize);
  21570. #ifdef __cplusplus
  21571. }
  21572. #endif
  21573. /* We use char because int might match the return type of a gcc2
  21574. builtin and then its argument prototype would still apply. */
  21575. int
  21576. main ()
  21577. {
  21578. jpeg_CreateDecompress(0L, 0, 0);
  21579. ;
  21580. return 0;
  21581. }
  21582. _ACEOF
  21583. rm -f conftest.$ac_objext conftest$ac_exeext
  21584. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21585. (eval $ac_link) 2>conftest.er1
  21586. ac_status=$?
  21587. grep -v '^ *+' conftest.er1 >conftest.err
  21588. rm -f conftest.er1
  21589. cat conftest.err >&5
  21590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21591. (exit $ac_status); } &&
  21592. { ac_try='test -z "$ac_c_werror_flag"
  21593. || test ! -s conftest.err'
  21594. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21595. (eval $ac_try) 2>&5
  21596. ac_status=$?
  21597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21598. (exit $ac_status); }; } &&
  21599. { ac_try='test -s conftest$ac_exeext'
  21600. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21601. (eval $ac_try) 2>&5
  21602. ac_status=$?
  21603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21604. (exit $ac_status); }; }; then
  21605. eval "ac_cv_lib_jpeg_normal=-ljpeg"
  21606. else
  21607. echo "$as_me: failed program was:" >&5
  21608. sed 's/^/| /' conftest.$ac_ext >&5
  21609. eval "ac_cv_lib_jpeg_normal=no"
  21610. fi
  21611. rm -f conftest.err conftest.$ac_objext \
  21612. conftest$ac_exeext conftest.$ac_ext
  21613. LIBS="$ac_save_LIBS"
  21614. CFLAGS="$ac_save_CFLAGS"
  21615. fi
  21616. if eval "test ! \"`echo $ac_cv_lib_jpeg_normal`\" = no"; then
  21617. LIBJPEG="$ac_cv_lib_jpeg_normal"
  21618. echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_normal" >&5
  21619. echo "${ECHO_T}$ac_cv_lib_jpeg_normal" >&6
  21620. else
  21621. echo "$as_me:$LINENO: result: no" >&5
  21622. echo "${ECHO_T}no" >&6
  21623. LIBJPEG=
  21624. fi
  21625. fi
  21626. jpeg_incdirs="$includedir /usr/include /usr/local/include $kde_extra_includes"
  21627. jpeg_incdir=NO
  21628. for i in $jpeg_incdirs;
  21629. do
  21630. for j in jpeglib.h;
  21631. do
  21632. echo "configure: 24354: $i/$j" >&5
  21633. if test -r "$i/$j"; then
  21634. echo "taking that" >&5
  21635. jpeg_incdir=$i
  21636. break 2
  21637. fi
  21638. done
  21639. done
  21640. test "x$jpeg_incdir" = xNO && jpeg_incdir=
  21641. if test -n "$jpeg_incdir" && test -n "$LIBJPEG" ; then
  21642. cat >>confdefs.h <<_ACEOF
  21643. #define HAVE_LIBJPEG 1
  21644. _ACEOF
  21645. else
  21646. if test -n "$jpeg_incdir" || test -n "$LIBJPEG" ; then
  21647. { echo "$as_me:$LINENO: WARNING:
  21648. There is an installation error in jpeg support. You seem to have only one
  21649. of either the headers _or_ the libraries installed. You may need to either
  21650. provide correct --with-extra-... options, or the development package of
  21651. libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
  21652. Disabling JPEG support.
  21653. " >&5
  21654. echo "$as_me: WARNING:
  21655. There is an installation error in jpeg support. You seem to have only one
  21656. of either the headers _or_ the libraries installed. You may need to either
  21657. provide correct --with-extra-... options, or the development package of
  21658. libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
  21659. Disabling JPEG support.
  21660. " >&2;}
  21661. else
  21662. { echo "$as_me:$LINENO: WARNING: libjpeg not found. disable JPEG support." >&5
  21663. echo "$as_me: WARNING: libjpeg not found. disable JPEG support." >&2;}
  21664. fi
  21665. jpeg_incdir=
  21666. LIBJPEG=
  21667. fi
  21668. # Check whether --enable-mt or --disable-mt was given.
  21669. if test "${enable_mt+set}" = set; then
  21670. enableval="$enable_mt"
  21671. kde_use_qt_mt=$enableval
  21672. else
  21673. if test $kde_qtver = 3; then
  21674. kde_use_qt_mt=yes
  21675. else
  21676. kde_use_qt_mt=no
  21677. fi
  21678. fi;
  21679. USING_QT_MT=""
  21680. KDE_MT_LDFLAGS=
  21681. KDE_MT_LIBS=
  21682. if test "x$kde_use_qt_mt" = "xyes"; then
  21683. if test -z "$LIBPTHREAD"; then
  21684. if test -z "$USE_THREADS"; then
  21685. kde_check_threading_default=no
  21686. else
  21687. kde_check_threading_default=yes
  21688. fi
  21689. else
  21690. kde_check_threading_default=yes
  21691. fi
  21692. # Check whether --enable-threading or --disable-threading was given.
  21693. if test "${enable_threading+set}" = set; then
  21694. enableval="$enable_threading"
  21695. kde_use_threading=$enableval
  21696. else
  21697. kde_use_threading=$kde_check_threading_default
  21698. fi;
  21699. if test "x$kde_use_threading" = "xyes"; then
  21700. cat >>confdefs.h <<\_ACEOF
  21701. #define HAVE_LIBPTHREAD 1
  21702. _ACEOF
  21703. fi
  21704. if test "x$kde_use_threading" = "xyes"; then
  21705. CPPFLAGS="$USE_THREADS -DQT_THREAD_SUPPORT $CPPFLAGS"
  21706. KDE_MT_LDFLAGS="$USE_THREADS"
  21707. KDE_MT_LIBS="$LIBPTHREAD"
  21708. else
  21709. kde_use_qt_mt=no
  21710. fi
  21711. fi
  21712. kde_qt_was_given=yes
  21713. if test -z "$LIBQT_GLOB"; then
  21714. if test "x$kde_use_qt_emb" = "xyes"; then
  21715. LIBQT_GLOB="libqte.*"
  21716. else
  21717. LIBQT_GLOB="libqt.*"
  21718. fi
  21719. fi
  21720. if test -z "$LIBQT"; then
  21721. if test "x$kde_use_qt_emb" = "xyes"; then
  21722. qtlib="qte"
  21723. else
  21724. qtlib="qt"
  21725. fi
  21726. kde_int_qt="-l$qtlib"
  21727. else
  21728. kde_int_qt="$LIBQT"
  21729. kde_lib_qt_set=yes
  21730. fi
  21731. if test -z "$LIBQPE"; then
  21732. if test "x$kde_use_qt_emb" = "xyes"; then
  21733. if test "x$kde_use_qt_emb_palm" = "xyes"; then
  21734. LIB_QPE="-lqpe"
  21735. else
  21736. LIB_QPE=""
  21737. fi
  21738. else
  21739. LIB_QPE=""
  21740. fi
  21741. fi
  21742. if test "x$kde_use_qt_mt" = "xyes"; then
  21743. if test -z "$LIBQT"; then
  21744. LIBQT="-l$qtlib-mt"
  21745. kde_int_qt="-l$qtlib-mt"
  21746. else
  21747. LIBQT="$qtlib-mt"
  21748. kde_int_qt="$qtlib-mt"
  21749. fi
  21750. LIBQT_GLOB="lib$qtlib-mt.*"
  21751. USING_QT_MT="using -mt"
  21752. else
  21753. LIBQT="-l$qtlib"
  21754. fi
  21755. if test $kde_qtver != 1; then
  21756. LIBQT="$LIBQT $LIBPNG $LIBJPEG"
  21757. fi
  21758. if test $kde_qtver = 3; then
  21759. LIBQT="$LIBQT $LIBDL"
  21760. fi
  21761. echo "$as_me:$LINENO: checking for Qt" >&5
  21762. echo $ECHO_N "checking for Qt... $ECHO_C" >&6
  21763. if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
  21764. LIBQT="$LIBQT $X_PRE_LIBS -lXext -lX11 $LIBSM $LIBSOCKET"
  21765. fi
  21766. ac_qt_includes=NO ac_qt_libraries=NO ac_qt_bindir=NO
  21767. qt_libraries=""
  21768. qt_includes=""
  21769. # Check whether --with-qt-dir or --without-qt-dir was given.
  21770. if test "${with_qt_dir+set}" = set; then
  21771. withval="$with_qt_dir"
  21772. ac_qt_includes="$withval"/include
  21773. ac_qt_libraries="$withval"/lib${kdelibsuff}
  21774. ac_qt_bindir="$withval"/bin
  21775. fi;
  21776. # Check whether --with-qt-includes or --without-qt-includes was given.
  21777. if test "${with_qt_includes+set}" = set; then
  21778. withval="$with_qt_includes"
  21779. ac_qt_includes="$withval"
  21780. fi;
  21781. kde_qt_libs_given=no
  21782. # Check whether --with-qt-libraries or --without-qt-libraries was given.
  21783. if test "${with_qt_libraries+set}" = set; then
  21784. withval="$with_qt_libraries"
  21785. ac_qt_libraries="$withval"
  21786. kde_qt_libs_given=yes
  21787. fi;
  21788. if test "${ac_cv_have_qt+set}" = set; then
  21789. echo $ECHO_N "(cached) $ECHO_C" >&6
  21790. else
  21791. #try to guess Qt locations
  21792. qt_incdirs=""
  21793. for dir in $kde_qt_dirs; do
  21794. qt_incdirs="$qt_incdirs $dir/include $dir"
  21795. done
  21796. qt_incdirs="$QTINC $qt_incdirs /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/X11R6/include/qt2 /usr/include/qt3 $x_includes"
  21797. if test ! "$ac_qt_includes" = "NO"; then
  21798. qt_incdirs="$ac_qt_includes $qt_incdirs"
  21799. fi
  21800. if test "$kde_qtver" != "1"; then
  21801. kde_qt_header=qstyle.h
  21802. else
  21803. kde_qt_header=qglobal.h
  21804. fi
  21805. qt_incdir=NO
  21806. for i in $qt_incdirs;
  21807. do
  21808. for j in $kde_qt_header;
  21809. do
  21810. echo "configure: 24592: $i/$j" >&5
  21811. if test -r "$i/$j"; then
  21812. echo "taking that" >&5
  21813. qt_incdir=$i
  21814. break 2
  21815. fi
  21816. done
  21817. done
  21818. ac_qt_includes="$qt_incdir"
  21819. qt_libdirs=""
  21820. for dir in $kde_qt_dirs; do
  21821. qt_libdirs="$qt_libdirs $dir/lib${kdelibsuff} $dir"
  21822. done
  21823. qt_libdirs="$QTLIB $qt_libdirs /usr/X11R6/lib /usr/lib /usr/local/qt/lib $x_libraries"
  21824. if test ! "$ac_qt_libraries" = "NO"; then
  21825. qt_libdir=$ac_qt_libraries
  21826. else
  21827. qt_libdirs="$ac_qt_libraries $qt_libdirs"
  21828. # if the Qt was given, the chance is too big that libqt.* doesn't exist
  21829. qt_libdir=NONE
  21830. for dir in $qt_libdirs; do
  21831. try="ls -1 $dir/${LIBQT_GLOB}"
  21832. if test -n "`$try 2> /dev/null`"; then qt_libdir=$dir; break; else echo "tried $dir" >&5 ; fi
  21833. done
  21834. fi
  21835. for a in $qt_libdir/lib`echo ${kde_int_qt} | sed 's,^-l,,'`_incremental.*; do
  21836. if test -e "$a"; then
  21837. LIBQT="$LIBQT ${kde_int_qt}_incremental"
  21838. break
  21839. fi
  21840. done
  21841. ac_qt_libraries="$qt_libdir"
  21842. ac_ext=cc
  21843. ac_cpp='$CXXCPP $CPPFLAGS'
  21844. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21845. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21846. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21847. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  21848. ac_cxxflags_safe="$CXXFLAGS"
  21849. ac_ldflags_safe="$LDFLAGS"
  21850. ac_libs_safe="$LIBS"
  21851. CXXFLAGS="$CXXFLAGS -I$qt_incdir $all_includes"
  21852. LDFLAGS="$LDFLAGS -L$qt_libdir $all_libraries $USER_LDFLAGS $KDE_MT_LDFLAGS"
  21853. LIBS="$LIBS $LIBQT $KDE_MT_LIBS"
  21854. cat > conftest.$ac_ext <<EOF
  21855. #include "confdefs.h"
  21856. #include <qglobal.h>
  21857. #include <qapplication.h>
  21858. EOF
  21859. if test "$kde_qtver" = "2"; then
  21860. cat >> conftest.$ac_ext <<EOF
  21861. #include <qevent.h>
  21862. #include <qstring.h>
  21863. #include <qstyle.h>
  21864. EOF
  21865. if test $kde_qtsubver -gt 0; then
  21866. cat >> conftest.$ac_ext <<EOF
  21867. #if QT_VERSION < 210
  21868. #error 1
  21869. #endif
  21870. EOF
  21871. fi
  21872. fi
  21873. if test "$kde_qtver" = "3"; then
  21874. cat >> conftest.$ac_ext <<EOF
  21875. #include <qcursor.h>
  21876. #include <qstylefactory.h>
  21877. #include <private/qucomextra_p.h>
  21878. EOF
  21879. fi
  21880. echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
  21881. cat >> conftest.$ac_ext <<EOF
  21882. #error 1
  21883. #endif
  21884. int main() {
  21885. EOF
  21886. if test "$kde_qtver" = "2"; then
  21887. cat >> conftest.$ac_ext <<EOF
  21888. QStringList *t = new QStringList();
  21889. Q_UNUSED(t);
  21890. EOF
  21891. if test $kde_qtsubver -gt 0; then
  21892. cat >> conftest.$ac_ext <<EOF
  21893. QString s;
  21894. s.setLatin1("Elvis is alive", 14);
  21895. EOF
  21896. fi
  21897. fi
  21898. if test "$kde_qtver" = "3"; then
  21899. cat >> conftest.$ac_ext <<EOF
  21900. (void)QStyleFactory::create(QString::null);
  21901. QCursor c(Qt::WhatsThisCursor);
  21902. EOF
  21903. fi
  21904. cat >> conftest.$ac_ext <<EOF
  21905. return 0;
  21906. }
  21907. EOF
  21908. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21909. (eval $ac_link) 2>&5
  21910. ac_status=$?
  21911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21912. (exit $ac_status); } && test -s conftest; then
  21913. rm -f conftest*
  21914. else
  21915. echo "configure: failed program was:" >&5
  21916. cat conftest.$ac_ext >&5
  21917. ac_qt_libraries="NO"
  21918. fi
  21919. rm -f conftest*
  21920. CXXFLAGS="$ac_cxxflags_safe"
  21921. LDFLAGS="$ac_ldflags_safe"
  21922. LIBS="$ac_libs_safe"
  21923. ac_ext=c
  21924. ac_cpp='$CPP $CPPFLAGS'
  21925. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21926. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21927. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21928. if test "$ac_qt_includes" = NO || test "$ac_qt_libraries" = NO; then
  21929. ac_cv_have_qt="have_qt=no"
  21930. ac_qt_notfound=""
  21931. missing_qt_mt=""
  21932. if test "$ac_qt_includes" = NO; then
  21933. if test "$ac_qt_libraries" = NO; then
  21934. ac_qt_notfound="(headers and libraries)";
  21935. else
  21936. ac_qt_notfound="(headers)";
  21937. fi
  21938. else
  21939. if test "x$kde_use_qt_mt" = "xyes"; then
  21940. missing_qt_mt="
  21941. Make sure that you have compiled Qt with thread support!"
  21942. ac_qt_notfound="(library $qtlib-mt)";
  21943. else
  21944. ac_qt_notfound="(library $qtlib)";
  21945. fi
  21946. fi
  21947. { { echo "$as_me:$LINENO: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
  21948. For more details about this problem, look at the end of config.log.$missing_qt_mt" >&5
  21949. echo "$as_me: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
  21950. For more details about this problem, look at the end of config.log.$missing_qt_mt" >&2;}
  21951. { (exit 1); exit 1; }; }
  21952. else
  21953. have_qt="yes"
  21954. fi
  21955. fi
  21956. eval "$ac_cv_have_qt"
  21957. if test "$have_qt" != yes; then
  21958. echo "$as_me:$LINENO: result: $have_qt" >&5
  21959. echo "${ECHO_T}$have_qt" >&6;
  21960. else
  21961. ac_cv_have_qt="have_qt=yes \
  21962. ac_qt_includes=$ac_qt_includes ac_qt_libraries=$ac_qt_libraries"
  21963. echo "$as_me:$LINENO: result: libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&5
  21964. echo "${ECHO_T}libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&6
  21965. qt_libraries="$ac_qt_libraries"
  21966. qt_includes="$ac_qt_includes"
  21967. fi
  21968. if test ! "$kde_qt_libs_given" = "yes"; then
  21969. echo "$as_me:$LINENO: checking if Qt compiles without flags" >&5
  21970. echo $ECHO_N "checking if Qt compiles without flags... $ECHO_C" >&6
  21971. if test "${kde_cv_qt_direct+set}" = set; then
  21972. echo $ECHO_N "(cached) $ECHO_C" >&6
  21973. else
  21974. ac_ext=cc
  21975. ac_cpp='$CXXCPP $CPPFLAGS'
  21976. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21977. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21978. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21979. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  21980. ac_LD_LIBRARY_PATH_safe=$LD_LIBRARY_PATH
  21981. ac_LIBRARY_PATH="$LIBRARY_PATH"
  21982. ac_cxxflags_safe="$CXXFLAGS"
  21983. ac_ldflags_safe="$LDFLAGS"
  21984. ac_libs_safe="$LIBS"
  21985. CXXFLAGS="$CXXFLAGS -I$qt_includes"
  21986. LDFLAGS="$LDFLAGS $X_LDFLAGS"
  21987. if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
  21988. LIBS="$LIBQT -lXext -lX11 $LIBSOCKET"
  21989. else
  21990. LIBS="$LIBQT $LIBSOCKET"
  21991. fi
  21992. LD_LIBRARY_PATH=
  21993. export LD_LIBRARY_PATH
  21994. LIBRARY_PATH=
  21995. export LIBRARY_PATH
  21996. cat > conftest.$ac_ext <<EOF
  21997. #include "confdefs.h"
  21998. #include <qglobal.h>
  21999. #include <qapplication.h>
  22000. EOF
  22001. if test "$kde_qtver" = "2"; then
  22002. cat >> conftest.$ac_ext <<EOF
  22003. #include <qevent.h>
  22004. #include <qstring.h>
  22005. #include <qstyle.h>
  22006. EOF
  22007. if test $kde_qtsubver -gt 0; then
  22008. cat >> conftest.$ac_ext <<EOF
  22009. #if QT_VERSION < 210
  22010. #error 1
  22011. #endif
  22012. EOF
  22013. fi
  22014. fi
  22015. if test "$kde_qtver" = "3"; then
  22016. cat >> conftest.$ac_ext <<EOF
  22017. #include <qcursor.h>
  22018. #include <qstylefactory.h>
  22019. #include <private/qucomextra_p.h>
  22020. EOF
  22021. fi
  22022. echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
  22023. cat >> conftest.$ac_ext <<EOF
  22024. #error 1
  22025. #endif
  22026. int main() {
  22027. EOF
  22028. if test "$kde_qtver" = "2"; then
  22029. cat >> conftest.$ac_ext <<EOF
  22030. QStringList *t = new QStringList();
  22031. Q_UNUSED(t);
  22032. EOF
  22033. if test $kde_qtsubver -gt 0; then
  22034. cat >> conftest.$ac_ext <<EOF
  22035. QString s;
  22036. s.setLatin1("Elvis is alive", 14);
  22037. EOF
  22038. fi
  22039. fi
  22040. if test "$kde_qtver" = "3"; then
  22041. cat >> conftest.$ac_ext <<EOF
  22042. (void)QStyleFactory::create(QString::null);
  22043. QCursor c(Qt::WhatsThisCursor);
  22044. EOF
  22045. fi
  22046. cat >> conftest.$ac_ext <<EOF
  22047. return 0;
  22048. }
  22049. EOF
  22050. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22051. (eval $ac_link) 2>&5
  22052. ac_status=$?
  22053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22054. (exit $ac_status); } && test -s conftest; then
  22055. kde_cv_qt_direct="yes"
  22056. else
  22057. kde_cv_qt_direct="no"
  22058. echo "configure: failed program was:" >&5
  22059. cat conftest.$ac_ext >&5
  22060. fi
  22061. rm -f conftest*
  22062. CXXFLAGS="$ac_cxxflags_safe"
  22063. LDFLAGS="$ac_ldflags_safe"
  22064. LIBS="$ac_libs_safe"
  22065. LD_LIBRARY_PATH="$ac_LD_LIBRARY_PATH_safe"
  22066. export LD_LIBRARY_PATH
  22067. LIBRARY_PATH="$ac_LIBRARY_PATH"
  22068. export LIBRARY_PATH
  22069. ac_ext=c
  22070. ac_cpp='$CPP $CPPFLAGS'
  22071. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22072. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22073. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22074. fi
  22075. if test "$kde_cv_qt_direct" = "yes"; then
  22076. echo "$as_me:$LINENO: result: yes" >&5
  22077. echo "${ECHO_T}yes" >&6
  22078. qt_libraries=
  22079. else
  22080. echo "$as_me:$LINENO: result: no" >&5
  22081. echo "${ECHO_T}no" >&6
  22082. fi
  22083. fi
  22084. if test "$qt_includes" = "$x_includes" || test -z "$qt_includes"; then
  22085. QT_INCLUDES=""
  22086. else
  22087. QT_INCLUDES="-I$qt_includes"
  22088. all_includes="$QT_INCLUDES $all_includes"
  22089. fi
  22090. if test "$qt_libraries" = "$x_libraries" || test -z "$qt_libraries"; then
  22091. QT_LDFLAGS=""
  22092. else
  22093. QT_LDFLAGS="-L$qt_libraries"
  22094. all_libraries="$all_libraries $QT_LDFLAGS"
  22095. fi
  22096. test -z "$KDE_MT_LDFLAGS" || all_libraries="$all_libraries $KDE_MT_LDFLAGS"
  22097. qt_bindirs=""
  22098. for dir in $kde_qt_dirs; do
  22099. qt_bindirs="$qt_bindirs $dir/bin $dir/src/moc"
  22100. done
  22101. qt_bindirs="$qt_bindirs /usr/bin /usr/X11R6/bin /usr/local/qt/bin"
  22102. if test ! "$ac_qt_bindir" = "NO"; then
  22103. qt_bindirs="$ac_qt_bindir $qt_bindirs"
  22104. fi
  22105. echo "$as_me:$LINENO: checking for moc" >&5
  22106. echo $ECHO_N "checking for moc... $ECHO_C" >&6
  22107. if test -n "$MOC"; then
  22108. kde_cv_path="$MOC";
  22109. else
  22110. kde_cache=`echo moc | sed 'y%./+-%__p_%'`
  22111. if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
  22112. echo $ECHO_N "(cached) $ECHO_C" >&6
  22113. else
  22114. kde_cv_path="NONE"
  22115. dirs="$qt_bindirs"
  22116. kde_save_IFS=$IFS
  22117. IFS=':'
  22118. for dir in $PATH; do
  22119. dirs="$dirs $dir"
  22120. done
  22121. IFS=$kde_save_IFS
  22122. for dir in $dirs; do
  22123. if test -x "$dir/moc"; then
  22124. if test -n ""
  22125. then
  22126. evalstr="$dir/moc 2>&1 "
  22127. if eval $evalstr; then
  22128. kde_cv_path="$dir/moc"
  22129. break
  22130. fi
  22131. else
  22132. kde_cv_path="$dir/moc"
  22133. break
  22134. fi
  22135. fi
  22136. done
  22137. eval "kde_cv_path_$kde_cache=$kde_cv_path"
  22138. fi
  22139. eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
  22140. fi
  22141. if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
  22142. echo "$as_me:$LINENO: result: not found" >&5
  22143. echo "${ECHO_T}not found" >&6
  22144. { { echo "$as_me:$LINENO: error: No Qt meta object compiler (moc) found!
  22145. Please check whether you installed Qt correctly.
  22146. You need to have a running moc binary.
  22147. configure tried to run $ac_cv_path_moc and the test didn't
  22148. succeed. If configure shouldn't have tried this one, set
  22149. the environment variable MOC to the right one before running
  22150. configure.
  22151. " >&5
  22152. echo "$as_me: error: No Qt meta object compiler (moc) found!
  22153. Please check whether you installed Qt correctly.
  22154. You need to have a running moc binary.
  22155. configure tried to run $ac_cv_path_moc and the test didn't
  22156. succeed. If configure shouldn't have tried this one, set
  22157. the environment variable MOC to the right one before running
  22158. configure.
  22159. " >&2;}
  22160. { (exit 1); exit 1; }; }
  22161. else
  22162. echo "$as_me:$LINENO: result: $kde_cv_path" >&5
  22163. echo "${ECHO_T}$kde_cv_path" >&6
  22164. MOC=$kde_cv_path
  22165. fi
  22166. if test -z "$UIC_NOT_NEEDED"; then
  22167. echo "$as_me:$LINENO: checking for uic" >&5
  22168. echo $ECHO_N "checking for uic... $ECHO_C" >&6
  22169. if test -n "$UIC_PATH"; then
  22170. kde_cv_path="$UIC_PATH";
  22171. else
  22172. kde_cache=`echo uic | sed 'y%./+-%__p_%'`
  22173. if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
  22174. echo $ECHO_N "(cached) $ECHO_C" >&6
  22175. else
  22176. kde_cv_path="NONE"
  22177. dirs="$qt_bindirs"
  22178. kde_save_IFS=$IFS
  22179. IFS=':'
  22180. for dir in $PATH; do
  22181. dirs="$dirs $dir"
  22182. done
  22183. IFS=$kde_save_IFS
  22184. for dir in $dirs; do
  22185. if test -x "$dir/uic"; then
  22186. if test -n ""
  22187. then
  22188. evalstr="$dir/uic 2>&1 "
  22189. if eval $evalstr; then
  22190. kde_cv_path="$dir/uic"
  22191. break
  22192. fi
  22193. else
  22194. kde_cv_path="$dir/uic"
  22195. break
  22196. fi
  22197. fi
  22198. done
  22199. eval "kde_cv_path_$kde_cache=$kde_cv_path"
  22200. fi
  22201. eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
  22202. fi
  22203. if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
  22204. echo "$as_me:$LINENO: result: not found" >&5
  22205. echo "${ECHO_T}not found" >&6
  22206. UIC_PATH=""
  22207. else
  22208. echo "$as_me:$LINENO: result: $kde_cv_path" >&5
  22209. echo "${ECHO_T}$kde_cv_path" >&6
  22210. UIC_PATH=$kde_cv_path
  22211. fi
  22212. if test -z "$UIC_PATH" ; then
  22213. { echo "$as_me:$LINENO: WARNING: No Qt ui compiler (uic) found!
  22214. Please check whether you installed Qt correctly.
  22215. You need to have a running uic binary.
  22216. configure tried to run $ac_cv_path_uic and the test didn't
  22217. succeed. If configure shouldn't have tried this one, set
  22218. the environment variable UIC to the right one before running
  22219. configure.
  22220. " >&5
  22221. echo "$as_me: WARNING: No Qt ui compiler (uic) found!
  22222. Please check whether you installed Qt correctly.
  22223. You need to have a running uic binary.
  22224. configure tried to run $ac_cv_path_uic and the test didn't
  22225. succeed. If configure shouldn't have tried this one, set
  22226. the environment variable UIC to the right one before running
  22227. configure.
  22228. " >&2;}
  22229. exit 1
  22230. elif test $kde_qtver = 3; then
  22231. echo "$as_me:$LINENO: checking whether uic supports -L " >&5
  22232. echo $ECHO_N "checking whether uic supports -L ... $ECHO_C" >&6
  22233. kde_cache=`echo L | sed 'y% .=/+-%____p_%'`
  22234. if eval "test \"\${kde_cv_prog_uic_$kde_cache+set}\" = set"; then
  22235. echo $ECHO_N "(cached) $ECHO_C" >&6
  22236. else
  22237. cat >conftest.ui <<EOT
  22238. <!DOCTYPE UI><UI version="3" stdsetdef="1"></UI>
  22239. EOT
  22240. ac_uic_testrun="$UIC_PATH -L /nonexistant conftest.ui >/dev/null"
  22241. if { (eval echo "$as_me:$LINENO: \"$ac_uic_testrun\"") >&5
  22242. (eval $ac_uic_testrun) 2>&5
  22243. ac_status=$?
  22244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22245. (exit $ac_status); }; then
  22246. eval "kde_cv_prog_uic_$kde_cache=yes"
  22247. else
  22248. eval "kde_cv_prog_uic_$kde_cache=no"
  22249. fi
  22250. rm -f conftest*
  22251. fi
  22252. if eval "test \"`echo '$kde_cv_prog_uic_'$kde_cache`\" = yes"; then
  22253. echo "$as_me:$LINENO: result: yes" >&5
  22254. echo "${ECHO_T}yes" >&6
  22255. :
  22256. ac_uic_supports_libpath=yes
  22257. else
  22258. echo "$as_me:$LINENO: result: no" >&5
  22259. echo "${ECHO_T}no" >&6
  22260. :
  22261. ac_uic_supports_libpath=no
  22262. fi
  22263. echo "$as_me:$LINENO: checking whether uic supports -nounload " >&5
  22264. echo $ECHO_N "checking whether uic supports -nounload ... $ECHO_C" >&6
  22265. kde_cache=`echo nounload | sed 'y% .=/+-%____p_%'`
  22266. if eval "test \"\${kde_cv_prog_uic_$kde_cache+set}\" = set"; then
  22267. echo $ECHO_N "(cached) $ECHO_C" >&6
  22268. else
  22269. cat >conftest.ui <<EOT
  22270. <!DOCTYPE UI><UI version="3" stdsetdef="1"></UI>
  22271. EOT
  22272. ac_uic_testrun="$UIC_PATH -nounload conftest.ui >/dev/null"
  22273. if { (eval echo "$as_me:$LINENO: \"$ac_uic_testrun\"") >&5
  22274. (eval $ac_uic_testrun) 2>&5
  22275. ac_status=$?
  22276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22277. (exit $ac_status); }; then
  22278. eval "kde_cv_prog_uic_$kde_cache=yes"
  22279. else
  22280. eval "kde_cv_prog_uic_$kde_cache=no"
  22281. fi
  22282. rm -f conftest*
  22283. fi
  22284. if eval "test \"`echo '$kde_cv_prog_uic_'$kde_cache`\" = yes"; then
  22285. echo "$as_me:$LINENO: result: yes" >&5
  22286. echo "${ECHO_T}yes" >&6
  22287. :
  22288. ac_uic_supports_nounload=yes
  22289. else
  22290. echo "$as_me:$LINENO: result: no" >&5
  22291. echo "${ECHO_T}no" >&6
  22292. :
  22293. ac_uic_supports_nounload=no
  22294. fi
  22295. UIC=$UIC_PATH
  22296. if test x$ac_uic_supports_libpath = xyes; then
  22297. UIC="$UIC -L \$(kde_widgetdir)"
  22298. fi
  22299. if test x$ac_uic_supports_nounload = xyes; then
  22300. UIC="$UIC -nounload"
  22301. fi
  22302. fi
  22303. else
  22304. UIC="echo uic not available: "
  22305. fi
  22306. UIC_TR="i18n"
  22307. if test $kde_qtver = 3; then
  22308. UIC_TR="tr2i18n"
  22309. fi
  22310. if test -n "$LIBJPEG"; then
  22311. echo "$as_me:$LINENO: checking if Qt needs $LIBJPEG" >&5
  22312. echo $ECHO_N "checking if Qt needs $LIBJPEG... $ECHO_C" >&6
  22313. if test "${kde_cv_qt_jpeg+set}" = set; then
  22314. echo $ECHO_N "(cached) $ECHO_C" >&6
  22315. else
  22316. ac_ext=cc
  22317. ac_cpp='$CXXCPP $CPPFLAGS'
  22318. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22319. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22320. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22321. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  22322. ac_save_LIBS="$LIBS"
  22323. LIBS="$all_libraries $USER_LDFLAGS $LIBQT"
  22324. LIBS=`echo $LIBS | sed "s/$LIBJPEG//"`
  22325. ac_save_CXXFLAGS="$CXXFLAGS"
  22326. CXXFLAGS="$CXXFLAGS $all_includes $USER_INCLUDES"
  22327. cat >conftest.$ac_ext <<_ACEOF
  22328. /* confdefs.h. */
  22329. _ACEOF
  22330. cat confdefs.h >>conftest.$ac_ext
  22331. cat >>conftest.$ac_ext <<_ACEOF
  22332. /* end confdefs.h. */
  22333. #include <qapplication.h>
  22334. int
  22335. main ()
  22336. {
  22337. int argc;
  22338. char** argv;
  22339. QApplication app(argc, argv);
  22340. ;
  22341. return 0;
  22342. }
  22343. _ACEOF
  22344. rm -f conftest.$ac_objext conftest$ac_exeext
  22345. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22346. (eval $ac_link) 2>conftest.er1
  22347. ac_status=$?
  22348. grep -v '^ *+' conftest.er1 >conftest.err
  22349. rm -f conftest.er1
  22350. cat conftest.err >&5
  22351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22352. (exit $ac_status); } &&
  22353. { ac_try='test -z "$ac_cxx_werror_flag"
  22354. || test ! -s conftest.err'
  22355. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22356. (eval $ac_try) 2>&5
  22357. ac_status=$?
  22358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22359. (exit $ac_status); }; } &&
  22360. { ac_try='test -s conftest$ac_exeext'
  22361. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22362. (eval $ac_try) 2>&5
  22363. ac_status=$?
  22364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22365. (exit $ac_status); }; }; then
  22366. eval "kde_cv_qt_jpeg=no"
  22367. else
  22368. echo "$as_me: failed program was:" >&5
  22369. sed 's/^/| /' conftest.$ac_ext >&5
  22370. eval "kde_cv_qt_jpeg=yes"
  22371. fi
  22372. rm -f conftest.err conftest.$ac_objext \
  22373. conftest$ac_exeext conftest.$ac_ext
  22374. LIBS="$ac_save_LIBS"
  22375. CXXFLAGS="$ac_save_CXXFLAGS"
  22376. ac_ext=c
  22377. ac_cpp='$CPP $CPPFLAGS'
  22378. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22379. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22380. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22381. fi
  22382. fi
  22383. if eval "test ! \"`echo $kde_cv_qt_jpeg`\" = no"; then
  22384. echo "$as_me:$LINENO: result: yes" >&5
  22385. echo "${ECHO_T}yes" >&6
  22386. LIBJPEG_QT='$(LIBJPEG)'
  22387. else
  22388. echo "$as_me:$LINENO: result: no" >&5
  22389. echo "${ECHO_T}no" >&6
  22390. LIBJPEG_QT=
  22391. fi
  22392. if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
  22393. LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBZ) $(LIBPNG) -lXext $(LIB_X11) $(LIBSM)'
  22394. else
  22395. LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBZ) $(LIBPNG)'
  22396. fi
  22397. test -z "$KDE_MT_LIBS" || LIB_QT="$LIB_QT $KDE_MT_LIBS"
  22398. for a in $qt_libdir/lib`echo ${kde_int_qt} | sed 's,^-l,,'`_incremental.*; do
  22399. if test -e "$a"; then
  22400. LIB_QT="$LIB_QT ${kde_int_qt}_incremental"
  22401. break
  22402. fi
  22403. done
  22404. echo "$as_me:$LINENO: checking for rpath" >&5
  22405. echo $ECHO_N "checking for rpath... $ECHO_C" >&6
  22406. # Check whether --enable-rpath or --disable-rpath was given.
  22407. if test "${enable_rpath+set}" = set; then
  22408. enableval="$enable_rpath"
  22409. USE_RPATH=$enableval
  22410. else
  22411. USE_RPATH=yes
  22412. fi;
  22413. if test -z "$KDE_RPATH" && test "$USE_RPATH" = "yes"; then
  22414. KDE_RPATH="-R \$(kde_libraries)"
  22415. if test -n "$qt_libraries"; then
  22416. KDE_RPATH="$KDE_RPATH -R \$(qt_libraries)"
  22417. fi
  22418. if test -n "$X_LDFLAGS"; then
  22419. X_RPATH="-R \$(x_libraries)"
  22420. KDE_RPATH="$KDE_RPATH $X_RPATH"
  22421. fi
  22422. if test -n "$KDE_EXTRA_RPATH"; then
  22423. KDE_RPATH="$KDE_RPATH \$(KDE_EXTRA_RPATH)"
  22424. fi
  22425. fi
  22426. echo "$as_me:$LINENO: result: $USE_RPATH" >&5
  22427. echo "${ECHO_T}$USE_RPATH" >&6
  22428. echo "$as_me:$LINENO: checking for KDE" >&5
  22429. echo $ECHO_N "checking for KDE... $ECHO_C" >&6
  22430. if test "${prefix}" != NONE; then
  22431. kde_includes=${prefix}/include
  22432. ac_kde_includes=$prefix/include
  22433. if test "${exec_prefix}" != NONE; then
  22434. kde_libraries=${libdir}
  22435. ac_kde_libraries=$libdir
  22436. if test "$ac_kde_libraries" = '${exec_prefix}/lib'${kdelibsuff}; then
  22437. ac_kde_libraries=$exec_prefix/lib${kdelibsuff}
  22438. fi
  22439. else
  22440. kde_libraries=${prefix}/lib${kdelibsuff}
  22441. ac_kde_libraries=$prefix/lib${kdelibsuff}
  22442. fi
  22443. else
  22444. ac_kde_includes=
  22445. ac_kde_libraries=
  22446. kde_libraries=""
  22447. kde_includes=""
  22448. fi
  22449. if test "${ac_cv_have_kde+set}" = set; then
  22450. echo $ECHO_N "(cached) $ECHO_C" >&6
  22451. else
  22452. #try to guess kde locations
  22453. if test "$kde_qtver" = 1; then
  22454. kde_check_header="ksock.h"
  22455. kde_check_lib="libkdecore.la"
  22456. else
  22457. kde_check_header="ksharedptr.h"
  22458. kde_check_lib="libkio.la"
  22459. fi
  22460. if test -z ""; then
  22461. kde_incdirs="/usr/lib/kde/include /usr/local/kde/include /usr/local/include /usr/kde/include /usr/include/kde /usr/include /opt/kde3/include /opt/kde/include $x_includes $qt_includes"
  22462. test -n "$KDEDIR" && kde_incdirs="$KDEDIR/include $KDEDIR/include/kde $KDEDIR $kde_incdirs"
  22463. kde_incdirs="$ac_kde_includes $kde_incdirs"
  22464. kde_incdir=NO
  22465. for i in $kde_incdirs;
  22466. do
  22467. for j in $kde_check_header;
  22468. do
  22469. echo "configure: 25410: $i/$j" >&5
  22470. if test -r "$i/$j"; then
  22471. echo "taking that" >&5
  22472. kde_incdir=$i
  22473. break 2
  22474. fi
  22475. done
  22476. done
  22477. ac_kde_includes="$kde_incdir"
  22478. if test -n "$ac_kde_includes" && test ! -r "$ac_kde_includes/$kde_check_header"; then
  22479. { { echo "$as_me:$LINENO: error:
  22480. in the prefix, you've chosen, are no KDE headers installed. This will fail.
  22481. So, check this please and use another prefix!" >&5
  22482. echo "$as_me: error:
  22483. in the prefix, you've chosen, are no KDE headers installed. This will fail.
  22484. So, check this please and use another prefix!" >&2;}
  22485. { (exit 1); exit 1; }; }
  22486. fi
  22487. kde_libdirs="/usr/lib/kde/lib${kdelibsuff} /usr/local/kde/lib${kdelibsuff} /usr/kde/lib${kdelibsuff} /usr/lib${kdelibsuff}/kde /usr/lib${kdelibsuff}/kde3 /usr/lib${kdelibsuff} /usr/X11R6/lib${kdelibsuff} /usr/local/lib${kdelibsuff} /opt/kde3/lib${kdelibsuff} /opt/kde/lib${kdelibsuff} /usr/X11R6/kde/lib${kdelibsuff}"
  22488. test -n "$KDEDIR" && kde_libdirs="$KDEDIR/lib${kdelibsuff} $KDEDIR $kde_libdirs"
  22489. kde_libdirs="$ac_kde_libraries $libdir $kde_libdirs"
  22490. kde_libdir=NO
  22491. for i in $kde_libdirs;
  22492. do
  22493. for j in $kde_check_lib;
  22494. do
  22495. echo "configure: 25440: $i/$j" >&5
  22496. if test -r "$i/$j"; then
  22497. echo "taking that" >&5
  22498. kde_libdir=$i
  22499. break 2
  22500. fi
  22501. done
  22502. done
  22503. ac_kde_libraries="$kde_libdir"
  22504. kde_widgetdir=NO
  22505. kde_widgetdir=NO
  22506. for i in $kde_libdirs;
  22507. do
  22508. for j in "kde3/plugins/designer/kdewidgets.la";
  22509. do
  22510. echo "configure: 25458: $i/$j" >&5
  22511. if test -r "$i/$j"; then
  22512. echo "taking that" >&5
  22513. kde_widgetdir=$i
  22514. break 2
  22515. fi
  22516. done
  22517. done
  22518. if test -n "$ac_kde_libraries" && test ! -r "$ac_kde_libraries/$kde_check_lib"; then
  22519. { { echo "$as_me:$LINENO: error:
  22520. in the prefix, you've chosen, are no KDE libraries installed. This will fail.
  22521. So, check this please and use another prefix!" >&5
  22522. echo "$as_me: error:
  22523. in the prefix, you've chosen, are no KDE libraries installed. This will fail.
  22524. So, check this please and use another prefix!" >&2;}
  22525. { (exit 1); exit 1; }; }
  22526. fi
  22527. if test -n "$kde_widgetdir" && test ! -r "$kde_widgetdir/kde3/plugins/designer/kdewidgets.la"; then
  22528. { { echo "$as_me:$LINENO: error:
  22529. I can't find the designer plugins. These are required and should have been installed
  22530. by kdelibs" >&5
  22531. echo "$as_me: error:
  22532. I can't find the designer plugins. These are required and should have been installed
  22533. by kdelibs" >&2;}
  22534. { (exit 1); exit 1; }; }
  22535. fi
  22536. if test -n "$kde_widgetdir"; then
  22537. kde_widgetdir="$kde_widgetdir/kde3/plugins/designer"
  22538. fi
  22539. if test "$ac_kde_includes" = NO || test "$ac_kde_libraries" = NO || test "$kde_widgetdir" = NO; then
  22540. ac_cv_have_kde="have_kde=no"
  22541. else
  22542. ac_cv_have_kde="have_kde=yes \
  22543. ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
  22544. fi
  22545. else
  22546. ac_cv_have_kde="have_kde=no"
  22547. fi
  22548. fi
  22549. eval "$ac_cv_have_kde"
  22550. if test "$have_kde" != "yes"; then
  22551. if test "${prefix}" = NONE; then
  22552. ac_kde_prefix="$ac_default_prefix"
  22553. else
  22554. ac_kde_prefix="$prefix"
  22555. fi
  22556. if test "$exec_prefix" = NONE; then
  22557. ac_kde_exec_prefix="$ac_kde_prefix"
  22558. echo "$as_me:$LINENO: result: will be installed in $ac_kde_prefix" >&5
  22559. echo "${ECHO_T}will be installed in $ac_kde_prefix" >&6
  22560. else
  22561. ac_kde_exec_prefix="$exec_prefix"
  22562. echo "$as_me:$LINENO: result: will be installed in $ac_kde_prefix and $ac_kde_exec_prefix" >&5
  22563. echo "${ECHO_T}will be installed in $ac_kde_prefix and $ac_kde_exec_prefix" >&6
  22564. fi
  22565. kde_libraries="${libdir}"
  22566. kde_includes=${ac_kde_prefix}/include
  22567. else
  22568. ac_cv_have_kde="have_kde=yes \
  22569. ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
  22570. echo "$as_me:$LINENO: result: libraries $ac_kde_libraries, headers $ac_kde_includes" >&5
  22571. echo "${ECHO_T}libraries $ac_kde_libraries, headers $ac_kde_includes" >&6
  22572. kde_libraries="$ac_kde_libraries"
  22573. kde_includes="$ac_kde_includes"
  22574. fi
  22575. if test "$kde_includes" = "$x_includes" || test "$kde_includes" = "$qt_includes" || test "$kde_includes" = "/usr/include"; then
  22576. KDE_INCLUDES=""
  22577. else
  22578. KDE_INCLUDES="-I$kde_includes"
  22579. all_includes="$KDE_INCLUDES $all_includes"
  22580. fi
  22581. KDE_DEFAULT_CXXFLAGS="-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION"
  22582. KDE_LDFLAGS="-L$kde_libraries"
  22583. if test ! "$kde_libraries" = "$x_libraries" && test ! "$kde_libraries" = "$qt_libraries" ; then
  22584. all_libraries="$all_libraries $KDE_LDFLAGS"
  22585. fi
  22586. all_libraries="$all_libraries $USER_LDFLAGS"
  22587. all_includes="$all_includes $USER_INCLUDES"
  22588. if test -z ""; then
  22589. if test x$ac_uic_supports_libpath = xyes; then
  22590. echo "$as_me:$LINENO: checking if UIC has KDE plugins available" >&5
  22591. echo $ECHO_N "checking if UIC has KDE plugins available... $ECHO_C" >&6
  22592. if test "${kde_cv_uic_plugins+set}" = set; then
  22593. echo $ECHO_N "(cached) $ECHO_C" >&6
  22594. else
  22595. cat > actest.ui << EOF
  22596. <!DOCTYPE UI><UI version="3.0" stdsetdef="1">
  22597. <class>NewConnectionDialog</class>
  22598. <widget class="QDialog">
  22599. <widget class="KLineEdit">
  22600. <property name="name">
  22601. <cstring>testInput</cstring>
  22602. </property>
  22603. </widget>
  22604. </widget>
  22605. </UI>
  22606. EOF
  22607. kde_cv_uic_plugins=no
  22608. kde_line="$UIC_PATH -L $kde_widgetdir"
  22609. if test x$ac_uic_supports_nounload = xyes; then
  22610. kde_line="$kde_line -nounload"
  22611. fi
  22612. kde_line="$kde_line -impl actest.h actest.ui > actest.cpp"
  22613. if { (eval echo "$as_me:$LINENO: \"$kde_line\"") >&5
  22614. (eval $kde_line) 2>&5
  22615. ac_status=$?
  22616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22617. (exit $ac_status); }; then
  22618. if test -f actest.cpp && grep klineedit actest.cpp > /dev/null; then
  22619. kde_cv_uic_plugins=yes
  22620. fi
  22621. fi
  22622. rm -f actest.ui actest.cpp
  22623. fi
  22624. echo "$as_me:$LINENO: result: $kde_cv_uic_plugins" >&5
  22625. echo "${ECHO_T}$kde_cv_uic_plugins" >&6
  22626. if test "$kde_cv_uic_plugins" != yes; then
  22627. { { echo "$as_me:$LINENO: error: you need to install kdelibs first." >&5
  22628. echo "$as_me: error: you need to install kdelibs first." >&2;}
  22629. { (exit 1); exit 1; }; }
  22630. fi
  22631. fi
  22632. fi
  22633. ac_kde_libraries="$kde_libdir"
  22634. # Check whether --enable-path-check or --disable-path-check was given.
  22635. if test "${enable_path_check+set}" = set; then
  22636. enableval="$enable_path_check"
  22637. if test "$enableval" = "no";
  22638. then ac_use_path_checking="default"
  22639. else ac_use_path_checking=""
  22640. fi
  22641. else
  22642. if test "$kde_qtver" = 1;
  22643. then ac_use_path_checking=""
  22644. else ac_use_path_checking="default"
  22645. fi
  22646. fi;
  22647. echo "$as_me:$LINENO: checking for KDE paths" >&5
  22648. echo $ECHO_N "checking for KDE paths... $ECHO_C" >&6
  22649. kde_result=""
  22650. kde_cached_paths=yes
  22651. if test "${kde_cv_all_paths+set}" = set; then
  22652. echo $ECHO_N "(cached) $ECHO_C" >&6
  22653. else
  22654. if test "$ac_use_path_checking" = "default"; then
  22655. if test -z "$kde_htmldir"; then
  22656. kde_htmldir='\${prefix}/share/doc/HTML'
  22657. fi
  22658. if test -z "$kde_appsdir"; then
  22659. kde_appsdir='\${prefix}/share/applnk'
  22660. fi
  22661. if test -z "$kde_icondir"; then
  22662. kde_icondir='\${prefix}/share/icons'
  22663. fi
  22664. if test -z "$kde_sounddir"; then
  22665. kde_sounddir='\${prefix}/share/sounds'
  22666. fi
  22667. if test -z "$kde_datadir"; then
  22668. kde_datadir='\${prefix}/share/apps'
  22669. fi
  22670. if test -z "$kde_locale"; then
  22671. kde_locale='\${prefix}/share/locale'
  22672. fi
  22673. if test -z "$kde_cgidir"; then
  22674. kde_cgidir='\${exec_prefix}/cgi-bin'
  22675. fi
  22676. if test -z "$kde_confdir"; then
  22677. kde_confdir='\${prefix}/share/config'
  22678. fi
  22679. if test -z "$kde_mimedir"; then
  22680. kde_mimedir='\${prefix}/share/mimelnk'
  22681. fi
  22682. if test -z "$kde_toolbardir"; then
  22683. kde_toolbardir='\${prefix}/share/toolbar'
  22684. fi
  22685. if test -z "$kde_wallpaperdir"; then
  22686. kde_wallpaperdir='\${prefix}/share/wallpapers'
  22687. fi
  22688. if test -z "$kde_templatesdir"; then
  22689. kde_templatesdir='\${prefix}/share/templates'
  22690. fi
  22691. if test -z "$kde_bindir"; then
  22692. kde_bindir='\${exec_prefix}/bin'
  22693. fi
  22694. if test -z "$kde_servicesdir"; then
  22695. kde_servicesdir='\${prefix}/share/services'
  22696. fi
  22697. if test -z "$kde_servicetypesdir"; then
  22698. kde_servicetypesdir='\${prefix}/share/servicetypes'
  22699. fi
  22700. if test -z "$kde_moduledir"; then
  22701. if test "$kde_qtver" = "2"; then
  22702. kde_moduledir='\${libdir}/kde2'
  22703. else
  22704. kde_moduledir='\${libdir}/kde3'
  22705. fi
  22706. fi
  22707. if test -z "$kde_styledir"; then
  22708. kde_styledir='\${libdir}/kde3/plugins/styles'
  22709. fi
  22710. if test -z "$kde_widgetdir"; then
  22711. kde_widgetdir='\${libdir}/kde3/plugins/designer'
  22712. fi
  22713. if test -z "$xdg_appsdir"; then
  22714. xdg_appsdir='\${datadir}/applications'
  22715. fi
  22716. if test -z "$xdg_directorydir"; then
  22717. xdg_directorydir='\${datadir}/desktop-directories'
  22718. fi
  22719. kde_cv_all_paths="kde_have_all_paths=\"yes\" \
  22720. kde_htmldir=\"$kde_htmldir\" \
  22721. kde_appsdir=\"$kde_appsdir\" \
  22722. kde_icondir=\"$kde_icondir\" \
  22723. kde_sounddir=\"$kde_sounddir\" \
  22724. kde_datadir=\"$kde_datadir\" \
  22725. kde_locale=\"$kde_locale\" \
  22726. kde_cgidir=\"$kde_cgidir\" \
  22727. kde_confdir=\"$kde_confdir\" \
  22728. kde_mimedir=\"$kde_mimedir\" \
  22729. kde_toolbardir=\"$kde_toolbardir\" \
  22730. kde_wallpaperdir=\"$kde_wallpaperdir\" \
  22731. kde_templatesdir=\"$kde_templatesdir\" \
  22732. kde_bindir=\"$kde_bindir\" \
  22733. kde_servicesdir=\"$kde_servicesdir\" \
  22734. kde_servicetypesdir=\"$kde_servicetypesdir\" \
  22735. kde_moduledir=\"$kde_moduledir\" \
  22736. kde_styledir=\"$kde_styledir\" \
  22737. kde_widgetdir=\"$kde_widgetdir\" \
  22738. xdg_appsdir=\"$xdg_appsdir\" \
  22739. xdg_directorydir=\"$xdg_directorydir\" \
  22740. kde_result=defaults"
  22741. else
  22742. if test $kde_qtver = 1; then
  22743. echo "$as_me:$LINENO: result: compiling" >&5
  22744. echo "${ECHO_T}compiling" >&6
  22745. echo "$as_me:$LINENO: checking for KDE headers installed" >&5
  22746. echo $ECHO_N "checking for KDE headers installed... $ECHO_C" >&6
  22747. ac_ext=cc
  22748. ac_cpp='$CXXCPP $CPPFLAGS'
  22749. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22750. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22751. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22752. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  22753. cat > conftest.$ac_ext <<EOF
  22754. #ifdef STDC_HEADERS
  22755. # include <stdlib.h>
  22756. #endif
  22757. #include <stdio.h>
  22758. #include "confdefs.h"
  22759. #include <kapp.h>
  22760. int main() {
  22761. printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data());
  22762. printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data());
  22763. printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data());
  22764. printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data());
  22765. printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data());
  22766. printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data());
  22767. printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data());
  22768. printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data());
  22769. printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data());
  22770. printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data());
  22771. printf("kde_wallpaperdir=\\"%s\\"\n",
  22772. KApplication::kde_wallpaperdir().data());
  22773. printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data());
  22774. printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data());
  22775. printf("kde_servicesdir=\\"/tmp/dummy\\"\n");
  22776. printf("kde_servicetypesdir=\\"/tmp/dummy\\"\n");
  22777. printf("kde_moduledir=\\"/tmp/dummy\\"\n");
  22778. printf("kde_styledir=\\"/tmp/dummy\\"\n");
  22779. printf("kde_widgetdir=\\"/tmp/dummy\\"\n");
  22780. printf("xdg_appsdir=\\"/tmp/dummy\\"\n");
  22781. printf("xdg_directorydir=\\"/tmp/dummy\\"\n");
  22782. return 0;
  22783. }
  22784. EOF
  22785. ac_compile='${CXX-g++} -c $CXXFLAGS $all_includes $CPPFLAGS conftest.$ac_ext'
  22786. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22787. (eval $ac_compile) 2>&5
  22788. ac_status=$?
  22789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22790. (exit $ac_status); }; then
  22791. echo "$as_me:$LINENO: result: yes" >&5
  22792. echo "${ECHO_T}yes" >&6
  22793. else
  22794. { { echo "$as_me:$LINENO: error: your system is not able to compile a small KDE application!
  22795. Check, if you installed the KDE header files correctly.
  22796. For more details about this problem, look at the end of config.log." >&5
  22797. echo "$as_me: error: your system is not able to compile a small KDE application!
  22798. Check, if you installed the KDE header files correctly.
  22799. For more details about this problem, look at the end of config.log." >&2;}
  22800. { (exit 1); exit 1; }; }
  22801. fi
  22802. ac_ext=c
  22803. ac_cpp='$CPP $CPPFLAGS'
  22804. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22805. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22806. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22807. KDE_TEST_RPATH=
  22808. if test -n "$USE_RPATH"; then
  22809. if test -n "$kde_libraries"; then
  22810. KDE_TEST_RPATH="-R $kde_libraries"
  22811. fi
  22812. if test -n "$qt_libraries"; then
  22813. KDE_TEST_RPATH="$KDE_TEST_RPATH -R $qt_libraries"
  22814. fi
  22815. if test -n "$x_libraries"; then
  22816. KDE_TEST_RPATH="$KDE_TEST_RPATH -R $x_libraries"
  22817. fi
  22818. KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH"
  22819. fi
  22820. echo "$as_me:$LINENO: checking for KDE libraries installed" >&5
  22821. echo $ECHO_N "checking for KDE libraries installed... $ECHO_C" >&6
  22822. ac_link='$LIBTOOL_SHELL --silent --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries conftest.$ac_ext $LIBS -lkdecore $LIBQT $KDE_TEST_RPATH 1>&5'
  22823. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22824. (eval $ac_link) 2>&5
  22825. ac_status=$?
  22826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22827. (exit $ac_status); } && test -s conftest; then
  22828. echo "$as_me:$LINENO: result: yes" >&5
  22829. echo "${ECHO_T}yes" >&6
  22830. else
  22831. { { echo "$as_me:$LINENO: error: your system fails at linking a small KDE application!
  22832. Check, if your compiler is installed correctly and if you have used the
  22833. same compiler to compile Qt and kdelibs as you did use now.
  22834. For more details about this problem, look at the end of config.log." >&5
  22835. echo "$as_me: error: your system fails at linking a small KDE application!
  22836. Check, if your compiler is installed correctly and if you have used the
  22837. same compiler to compile Qt and kdelibs as you did use now.
  22838. For more details about this problem, look at the end of config.log." >&2;}
  22839. { (exit 1); exit 1; }; }
  22840. fi
  22841. if eval `KDEDIR= ./conftest 2>&5`; then
  22842. kde_result=done
  22843. else
  22844. kde_result=problems
  22845. fi
  22846. KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log
  22847. kde_have_all_paths=yes
  22848. kde_cv_all_paths="kde_have_all_paths=\"yes\" \
  22849. kde_htmldir=\"$kde_htmldir\" \
  22850. kde_appsdir=\"$kde_appsdir\" \
  22851. kde_icondir=\"$kde_icondir\" \
  22852. kde_sounddir=\"$kde_sounddir\" \
  22853. kde_datadir=\"$kde_datadir\" \
  22854. kde_locale=\"$kde_locale\" \
  22855. kde_cgidir=\"$kde_cgidir\" \
  22856. kde_confdir=\"$kde_confdir\" \
  22857. kde_mimedir=\"$kde_mimedir\" \
  22858. kde_toolbardir=\"$kde_toolbardir\" \
  22859. kde_wallpaperdir=\"$kde_wallpaperdir\" \
  22860. kde_templatesdir=\"$kde_templatesdir\" \
  22861. kde_bindir=\"$kde_bindir\" \
  22862. kde_servicesdir=\"$kde_servicesdir\" \
  22863. kde_servicetypesdir=\"$kde_servicetypesdir\" \
  22864. kde_moduledir=\"$kde_moduledir\" \
  22865. kde_styledir=\"$kde_styledir\" \
  22866. kde_widgetdir=\"$kde_widgetdir\" \
  22867. xdg_appsdir=\"$xdg_appsdir\" \
  22868. xdg_directorydir=\"$xdg_directorydir\" \
  22869. kde_result=$kde_result"
  22870. else
  22871. { { echo "$as_me:$LINENO: error: path checking not yet supported for KDE 2" >&5
  22872. echo "$as_me: error: path checking not yet supported for KDE 2" >&2;}
  22873. { (exit 1); exit 1; }; }
  22874. fi
  22875. fi
  22876. kde_cached_paths=no
  22877. fi
  22878. eval "$kde_cv_all_paths"
  22879. if test -z "$kde_htmldir" || test -z "$kde_appsdir" ||
  22880. test -z "$kde_icondir" || test -z "$kde_sounddir" ||
  22881. test -z "$kde_datadir" || test -z "$kde_locale" ||
  22882. test -z "$kde_cgidir" || test -z "$kde_confdir" ||
  22883. test -z "$kde_mimedir" || test -z "$kde_toolbardir" ||
  22884. test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" ||
  22885. test -z "$kde_bindir" || test -z "$kde_servicesdir" ||
  22886. test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" ||
  22887. test -z "$kde_styledir" || test -z "kde_widgetdir" ||
  22888. test -z "$xdg_appsdir" || test -z "xdg_directorydir"
  22889. test "x$kde_have_all_paths" != "xyes"; then
  22890. kde_have_all_paths=no
  22891. fi
  22892. if test "$kde_have_all_paths" = "no" && test "$kde_cached_paths" = "yes"; then
  22893. # wrong values were cached, may be, we can set better ones
  22894. kde_result=
  22895. kde_htmldir= kde_appsdir= kde_icondir= kde_sounddir=
  22896. kde_datadir= kde_locale= kde_cgidir= kde_confdir=
  22897. kde_mimedir= kde_toolbardir= kde_wallpaperdir= kde_templatesdir=
  22898. kde_bindir= kde_servicesdir= kde_servicetypesdir= kde_moduledir=
  22899. kde_have_all_paths=
  22900. kde_styledir=
  22901. kde_widgetdir=
  22902. xdg_appsdir = xdg_directorydir=
  22903. if test "$ac_use_path_checking" = "default"; then
  22904. if test -z "$kde_htmldir"; then
  22905. kde_htmldir='\${prefix}/share/doc/HTML'
  22906. fi
  22907. if test -z "$kde_appsdir"; then
  22908. kde_appsdir='\${prefix}/share/applnk'
  22909. fi
  22910. if test -z "$kde_icondir"; then
  22911. kde_icondir='\${prefix}/share/icons'
  22912. fi
  22913. if test -z "$kde_sounddir"; then
  22914. kde_sounddir='\${prefix}/share/sounds'
  22915. fi
  22916. if test -z "$kde_datadir"; then
  22917. kde_datadir='\${prefix}/share/apps'
  22918. fi
  22919. if test -z "$kde_locale"; then
  22920. kde_locale='\${prefix}/share/locale'
  22921. fi
  22922. if test -z "$kde_cgidir"; then
  22923. kde_cgidir='\${exec_prefix}/cgi-bin'
  22924. fi
  22925. if test -z "$kde_confdir"; then
  22926. kde_confdir='\${prefix}/share/config'
  22927. fi
  22928. if test -z "$kde_mimedir"; then
  22929. kde_mimedir='\${prefix}/share/mimelnk'
  22930. fi
  22931. if test -z "$kde_toolbardir"; then
  22932. kde_toolbardir='\${prefix}/share/toolbar'
  22933. fi
  22934. if test -z "$kde_wallpaperdir"; then
  22935. kde_wallpaperdir='\${prefix}/share/wallpapers'
  22936. fi
  22937. if test -z "$kde_templatesdir"; then
  22938. kde_templatesdir='\${prefix}/share/templates'
  22939. fi
  22940. if test -z "$kde_bindir"; then
  22941. kde_bindir='\${exec_prefix}/bin'
  22942. fi
  22943. if test -z "$kde_servicesdir"; then
  22944. kde_servicesdir='\${prefix}/share/services'
  22945. fi
  22946. if test -z "$kde_servicetypesdir"; then
  22947. kde_servicetypesdir='\${prefix}/share/servicetypes'
  22948. fi
  22949. if test -z "$kde_moduledir"; then
  22950. if test "$kde_qtver" = "2"; then
  22951. kde_moduledir='\${libdir}/kde2'
  22952. else
  22953. kde_moduledir='\${libdir}/kde3'
  22954. fi
  22955. fi
  22956. if test -z "$kde_styledir"; then
  22957. kde_styledir='\${libdir}/kde3/plugins/styles'
  22958. fi
  22959. if test -z "$kde_widgetdir"; then
  22960. kde_widgetdir='\${libdir}/kde3/plugins/designer'
  22961. fi
  22962. if test -z "$xdg_appsdir"; then
  22963. xdg_appsdir='\${datadir}/applications'
  22964. fi
  22965. if test -z "$xdg_directorydir"; then
  22966. xdg_directorydir='\${datadir}/desktop-directories'
  22967. fi
  22968. kde_cv_all_paths="kde_have_all_paths=\"yes\" \
  22969. kde_htmldir=\"$kde_htmldir\" \
  22970. kde_appsdir=\"$kde_appsdir\" \
  22971. kde_icondir=\"$kde_icondir\" \
  22972. kde_sounddir=\"$kde_sounddir\" \
  22973. kde_datadir=\"$kde_datadir\" \
  22974. kde_locale=\"$kde_locale\" \
  22975. kde_cgidir=\"$kde_cgidir\" \
  22976. kde_confdir=\"$kde_confdir\" \
  22977. kde_mimedir=\"$kde_mimedir\" \
  22978. kde_toolbardir=\"$kde_toolbardir\" \
  22979. kde_wallpaperdir=\"$kde_wallpaperdir\" \
  22980. kde_templatesdir=\"$kde_templatesdir\" \
  22981. kde_bindir=\"$kde_bindir\" \
  22982. kde_servicesdir=\"$kde_servicesdir\" \
  22983. kde_servicetypesdir=\"$kde_servicetypesdir\" \
  22984. kde_moduledir=\"$kde_moduledir\" \
  22985. kde_styledir=\"$kde_styledir\" \
  22986. kde_widgetdir=\"$kde_widgetdir\" \
  22987. xdg_appsdir=\"$xdg_appsdir\" \
  22988. xdg_directorydir=\"$xdg_directorydir\" \
  22989. kde_result=defaults"
  22990. else
  22991. if test $kde_qtver = 1; then
  22992. echo "$as_me:$LINENO: result: compiling" >&5
  22993. echo "${ECHO_T}compiling" >&6
  22994. echo "$as_me:$LINENO: checking for KDE headers installed" >&5
  22995. echo $ECHO_N "checking for KDE headers installed... $ECHO_C" >&6
  22996. ac_ext=cc
  22997. ac_cpp='$CXXCPP $CPPFLAGS'
  22998. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22999. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23000. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  23001. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  23002. cat > conftest.$ac_ext <<EOF
  23003. #ifdef STDC_HEADERS
  23004. # include <stdlib.h>
  23005. #endif
  23006. #include <stdio.h>
  23007. #include "confdefs.h"
  23008. #include <kapp.h>
  23009. int main() {
  23010. printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data());
  23011. printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data());
  23012. printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data());
  23013. printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data());
  23014. printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data());
  23015. printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data());
  23016. printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data());
  23017. printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data());
  23018. printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data());
  23019. printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data());
  23020. printf("kde_wallpaperdir=\\"%s\\"\n",
  23021. KApplication::kde_wallpaperdir().data());
  23022. printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data());
  23023. printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data());
  23024. printf("kde_servicesdir=\\"/tmp/dummy\\"\n");
  23025. printf("kde_servicetypesdir=\\"/tmp/dummy\\"\n");
  23026. printf("kde_moduledir=\\"/tmp/dummy\\"\n");
  23027. printf("kde_styledir=\\"/tmp/dummy\\"\n");
  23028. printf("kde_widgetdir=\\"/tmp/dummy\\"\n");
  23029. printf("xdg_appsdir=\\"/tmp/dummy\\"\n");
  23030. printf("xdg_directorydir=\\"/tmp/dummy\\"\n");
  23031. return 0;
  23032. }
  23033. EOF
  23034. ac_compile='${CXX-g++} -c $CXXFLAGS $all_includes $CPPFLAGS conftest.$ac_ext'
  23035. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23036. (eval $ac_compile) 2>&5
  23037. ac_status=$?
  23038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23039. (exit $ac_status); }; then
  23040. echo "$as_me:$LINENO: result: yes" >&5
  23041. echo "${ECHO_T}yes" >&6
  23042. else
  23043. { { echo "$as_me:$LINENO: error: your system is not able to compile a small KDE application!
  23044. Check, if you installed the KDE header files correctly.
  23045. For more details about this problem, look at the end of config.log." >&5
  23046. echo "$as_me: error: your system is not able to compile a small KDE application!
  23047. Check, if you installed the KDE header files correctly.
  23048. For more details about this problem, look at the end of config.log." >&2;}
  23049. { (exit 1); exit 1; }; }
  23050. fi
  23051. ac_ext=c
  23052. ac_cpp='$CPP $CPPFLAGS'
  23053. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23054. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23055. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23056. KDE_TEST_RPATH=
  23057. if test -n "$USE_RPATH"; then
  23058. if test -n "$kde_libraries"; then
  23059. KDE_TEST_RPATH="-R $kde_libraries"
  23060. fi
  23061. if test -n "$qt_libraries"; then
  23062. KDE_TEST_RPATH="$KDE_TEST_RPATH -R $qt_libraries"
  23063. fi
  23064. if test -n "$x_libraries"; then
  23065. KDE_TEST_RPATH="$KDE_TEST_RPATH -R $x_libraries"
  23066. fi
  23067. KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH"
  23068. fi
  23069. echo "$as_me:$LINENO: checking for KDE libraries installed" >&5
  23070. echo $ECHO_N "checking for KDE libraries installed... $ECHO_C" >&6
  23071. ac_link='$LIBTOOL_SHELL --silent --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries conftest.$ac_ext $LIBS -lkdecore $LIBQT $KDE_TEST_RPATH 1>&5'
  23072. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23073. (eval $ac_link) 2>&5
  23074. ac_status=$?
  23075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23076. (exit $ac_status); } && test -s conftest; then
  23077. echo "$as_me:$LINENO: result: yes" >&5
  23078. echo "${ECHO_T}yes" >&6
  23079. else
  23080. { { echo "$as_me:$LINENO: error: your system fails at linking a small KDE application!
  23081. Check, if your compiler is installed correctly and if you have used the
  23082. same compiler to compile Qt and kdelibs as you did use now.
  23083. For more details about this problem, look at the end of config.log." >&5
  23084. echo "$as_me: error: your system fails at linking a small KDE application!
  23085. Check, if your compiler is installed correctly and if you have used the
  23086. same compiler to compile Qt and kdelibs as you did use now.
  23087. For more details about this problem, look at the end of config.log." >&2;}
  23088. { (exit 1); exit 1; }; }
  23089. fi
  23090. if eval `KDEDIR= ./conftest 2>&5`; then
  23091. kde_result=done
  23092. else
  23093. kde_result=problems
  23094. fi
  23095. KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log
  23096. kde_have_all_paths=yes
  23097. kde_cv_all_paths="kde_have_all_paths=\"yes\" \
  23098. kde_htmldir=\"$kde_htmldir\" \
  23099. kde_appsdir=\"$kde_appsdir\" \
  23100. kde_icondir=\"$kde_icondir\" \
  23101. kde_sounddir=\"$kde_sounddir\" \
  23102. kde_datadir=\"$kde_datadir\" \
  23103. kde_locale=\"$kde_locale\" \
  23104. kde_cgidir=\"$kde_cgidir\" \
  23105. kde_confdir=\"$kde_confdir\" \
  23106. kde_mimedir=\"$kde_mimedir\" \
  23107. kde_toolbardir=\"$kde_toolbardir\" \
  23108. kde_wallpaperdir=\"$kde_wallpaperdir\" \
  23109. kde_templatesdir=\"$kde_templatesdir\" \
  23110. kde_bindir=\"$kde_bindir\" \
  23111. kde_servicesdir=\"$kde_servicesdir\" \
  23112. kde_servicetypesdir=\"$kde_servicetypesdir\" \
  23113. kde_moduledir=\"$kde_moduledir\" \
  23114. kde_styledir=\"$kde_styledir\" \
  23115. kde_widgetdir=\"$kde_widgetdir\" \
  23116. xdg_appsdir=\"$xdg_appsdir\" \
  23117. xdg_directorydir=\"$xdg_directorydir\" \
  23118. kde_result=$kde_result"
  23119. else
  23120. { { echo "$as_me:$LINENO: error: path checking not yet supported for KDE 2" >&5
  23121. echo "$as_me: error: path checking not yet supported for KDE 2" >&2;}
  23122. { (exit 1); exit 1; }; }
  23123. fi
  23124. fi
  23125. eval "$kde_cv_all_paths"
  23126. if test -z "$kde_htmldir" || test -z "$kde_appsdir" ||
  23127. test -z "$kde_icondir" || test -z "$kde_sounddir" ||
  23128. test -z "$kde_datadir" || test -z "$kde_locale" ||
  23129. test -z "$kde_cgidir" || test -z "$kde_confdir" ||
  23130. test -z "$kde_mimedir" || test -z "$kde_toolbardir" ||
  23131. test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" ||
  23132. test -z "$kde_bindir" || test -z "$kde_servicesdir" ||
  23133. test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" ||
  23134. test -z "$kde_styledir" || test -z "kde_widgetdir" ||
  23135. test -z "$xdg_appsdir" || test -z "xdg_directorydir"
  23136. test "x$kde_have_all_paths" != "xyes"; then
  23137. kde_have_all_paths=no
  23138. fi
  23139. kde_result="$kde_result (cache overridden)"
  23140. fi
  23141. if test "$kde_have_all_paths" = "no"; then
  23142. { { echo "$as_me:$LINENO: error: configure could not run a little KDE program to test the environment.
  23143. Since it had compiled and linked before, it must be a strange problem on your system.
  23144. Look at config.log for details. If you are not able to fix this, look at
  23145. http://www.kde.org/faq/installation.html or any www.kde.org mirror.
  23146. (If you're using an egcs version on Linux, you may update binutils!)
  23147. " >&5
  23148. echo "$as_me: error: configure could not run a little KDE program to test the environment.
  23149. Since it had compiled and linked before, it must be a strange problem on your system.
  23150. Look at config.log for details. If you are not able to fix this, look at
  23151. http://www.kde.org/faq/installation.html or any www.kde.org mirror.
  23152. (If you're using an egcs version on Linux, you may update binutils!)
  23153. " >&2;}
  23154. { (exit 1); exit 1; }; }
  23155. else
  23156. rm -f conftest*
  23157. echo "$as_me:$LINENO: result: $kde_result" >&5
  23158. echo "${ECHO_T}$kde_result" >&6
  23159. fi
  23160. bindir=$kde_bindir
  23161. # Check whether --with-arts or --without-arts was given.
  23162. if test "${with_arts+set}" = set; then
  23163. withval="$with_arts"
  23164. build_arts=$withval
  23165. else
  23166. build_arts=yes
  23167. fi;
  23168. if test "$build_arts" != "no"; then
  23169. include_ARTS_TRUE=
  23170. include_ARTS_FALSE='#'
  23171. else
  23172. include_ARTS_TRUE='#'
  23173. include_ARTS_FALSE=
  23174. fi
  23175. kde_default_bindirs="/usr/bin /usr/local/bin /opt/local/bin /usr/X11R6/bin /opt/kde/bin /opt/kde3/bin /usr/kde/bin /usr/local/kde/bin"
  23176. test -n "$KDEDIR" && kde_default_bindirs="$KDEDIR/bin $kde_default_bindirs"
  23177. if test -n "$KDEDIRS"; then
  23178. kde_save_IFS=$IFS
  23179. IFS=:
  23180. for dir in $KDEDIRS; do
  23181. kde_default_bindirs="$dir/bin $kde_default_bindirs "
  23182. done
  23183. IFS=$kde_save_IFS
  23184. fi
  23185. kde_default_bindirs="$exec_prefix/bin $prefix/bin $kde_default_bindirs"
  23186. echo "$as_me:$LINENO: checking for dcopidl" >&5
  23187. echo $ECHO_N "checking for dcopidl... $ECHO_C" >&6
  23188. if test -n "$DCOPIDL"; then
  23189. kde_cv_path="$DCOPIDL";
  23190. else
  23191. kde_cache=`echo dcopidl | sed 'y%./+-%__p_%'`
  23192. if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
  23193. echo $ECHO_N "(cached) $ECHO_C" >&6
  23194. else
  23195. kde_cv_path="NONE"
  23196. dirs="$kde_default_bindirs"
  23197. kde_save_IFS=$IFS
  23198. IFS=':'
  23199. for dir in $PATH; do
  23200. dirs="$dirs $dir"
  23201. done
  23202. IFS=$kde_save_IFS
  23203. for dir in $dirs; do
  23204. if test -x "$dir/dcopidl"; then
  23205. if test -n ""
  23206. then
  23207. evalstr="$dir/dcopidl 2>&1 "
  23208. if eval $evalstr; then
  23209. kde_cv_path="$dir/dcopidl"
  23210. break
  23211. fi
  23212. else
  23213. kde_cv_path="$dir/dcopidl"
  23214. break
  23215. fi
  23216. fi
  23217. done
  23218. eval "kde_cv_path_$kde_cache=$kde_cv_path"
  23219. fi
  23220. eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
  23221. fi
  23222. if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
  23223. echo "$as_me:$LINENO: result: not found" >&5
  23224. echo "${ECHO_T}not found" >&6
  23225. { { echo "$as_me:$LINENO: error: The important program dcopidl was not found!
  23226. Please check whether you installed KDE correctly.
  23227. " >&5
  23228. echo "$as_me: error: The important program dcopidl was not found!
  23229. Please check whether you installed KDE correctly.
  23230. " >&2;}
  23231. { (exit 1); exit 1; }; }
  23232. else
  23233. echo "$as_me:$LINENO: result: $kde_cv_path" >&5
  23234. echo "${ECHO_T}$kde_cv_path" >&6
  23235. DCOPIDL=$kde_cv_path
  23236. fi
  23237. echo "$as_me:$LINENO: checking for dcopidl2cpp" >&5
  23238. echo $ECHO_N "checking for dcopidl2cpp... $ECHO_C" >&6
  23239. if test -n "$DCOPIDL2CPP"; then
  23240. kde_cv_path="$DCOPIDL2CPP";
  23241. else
  23242. kde_cache=`echo dcopidl2cpp | sed 'y%./+-%__p_%'`
  23243. if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
  23244. echo $ECHO_N "(cached) $ECHO_C" >&6
  23245. else
  23246. kde_cv_path="NONE"
  23247. dirs="$kde_default_bindirs"
  23248. kde_save_IFS=$IFS
  23249. IFS=':'
  23250. for dir in $PATH; do
  23251. dirs="$dirs $dir"
  23252. done
  23253. IFS=$kde_save_IFS
  23254. for dir in $dirs; do
  23255. if test -x "$dir/dcopidl2cpp"; then
  23256. if test -n ""
  23257. then
  23258. evalstr="$dir/dcopidl2cpp 2>&1 "
  23259. if eval $evalstr; then
  23260. kde_cv_path="$dir/dcopidl2cpp"
  23261. break
  23262. fi
  23263. else
  23264. kde_cv_path="$dir/dcopidl2cpp"
  23265. break
  23266. fi
  23267. fi
  23268. done
  23269. eval "kde_cv_path_$kde_cache=$kde_cv_path"
  23270. fi
  23271. eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
  23272. fi
  23273. if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
  23274. echo "$as_me:$LINENO: result: not found" >&5
  23275. echo "${ECHO_T}not found" >&6
  23276. { { echo "$as_me:$LINENO: error: The important program dcopidl2cpp was not found!
  23277. Please check whether you installed KDE correctly.
  23278. " >&5
  23279. echo "$as_me: error: The important program dcopidl2cpp was not found!
  23280. Please check whether you installed KDE correctly.
  23281. " >&2;}
  23282. { (exit 1); exit 1; }; }
  23283. else
  23284. echo "$as_me:$LINENO: result: $kde_cv_path" >&5
  23285. echo "${ECHO_T}$kde_cv_path" >&6
  23286. DCOPIDL2CPP=$kde_cv_path
  23287. fi
  23288. if test "$build_arts" != "no"; then
  23289. echo "$as_me:$LINENO: checking for mcopidl" >&5
  23290. echo $ECHO_N "checking for mcopidl... $ECHO_C" >&6
  23291. if test -n "$MCOPIDL"; then
  23292. kde_cv_path="$MCOPIDL";
  23293. else
  23294. kde_cache=`echo mcopidl | sed 'y%./+-%__p_%'`
  23295. if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
  23296. echo $ECHO_N "(cached) $ECHO_C" >&6
  23297. else
  23298. kde_cv_path="NONE"
  23299. dirs="$kde_default_bindirs"
  23300. kde_save_IFS=$IFS
  23301. IFS=':'
  23302. for dir in $PATH; do
  23303. dirs="$dirs $dir"
  23304. done
  23305. IFS=$kde_save_IFS
  23306. for dir in $dirs; do
  23307. if test -x "$dir/mcopidl"; then
  23308. if test -n ""
  23309. then
  23310. evalstr="$dir/mcopidl 2>&1 "
  23311. if eval $evalstr; then
  23312. kde_cv_path="$dir/mcopidl"
  23313. break
  23314. fi
  23315. else
  23316. kde_cv_path="$dir/mcopidl"
  23317. break
  23318. fi
  23319. fi
  23320. done
  23321. eval "kde_cv_path_$kde_cache=$kde_cv_path"
  23322. fi
  23323. eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
  23324. fi
  23325. if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
  23326. echo "$as_me:$LINENO: result: not found" >&5
  23327. echo "${ECHO_T}not found" >&6
  23328. { { echo "$as_me:$LINENO: error: The important program mcopidl was not found!
  23329. Please check whether you installed aRts correctly.
  23330. " >&5
  23331. echo "$as_me: error: The important program mcopidl was not found!
  23332. Please check whether you installed aRts correctly.
  23333. " >&2;}
  23334. { (exit 1); exit 1; }; }
  23335. else
  23336. echo "$as_me:$LINENO: result: $kde_cv_path" >&5
  23337. echo "${ECHO_T}$kde_cv_path" >&6
  23338. MCOPIDL=$kde_cv_path
  23339. fi
  23340. echo "$as_me:$LINENO: checking for artsc-config" >&5
  23341. echo $ECHO_N "checking for artsc-config... $ECHO_C" >&6
  23342. if test -n "$ARTSCCONFIG"; then
  23343. kde_cv_path="$ARTSCCONFIG";
  23344. else
  23345. kde_cache=`echo artsc-config | sed 'y%./+-%__p_%'`
  23346. if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
  23347. echo $ECHO_N "(cached) $ECHO_C" >&6
  23348. else
  23349. kde_cv_path="NONE"
  23350. dirs="$kde_default_bindirs"
  23351. kde_save_IFS=$IFS
  23352. IFS=':'
  23353. for dir in $PATH; do
  23354. dirs="$dirs $dir"
  23355. done
  23356. IFS=$kde_save_IFS
  23357. for dir in $dirs; do
  23358. if test -x "$dir/artsc-config"; then
  23359. if test -n ""
  23360. then
  23361. evalstr="$dir/artsc-config 2>&1 "
  23362. if eval $evalstr; then
  23363. kde_cv_path="$dir/artsc-config"
  23364. break
  23365. fi
  23366. else
  23367. kde_cv_path="$dir/artsc-config"
  23368. break
  23369. fi
  23370. fi
  23371. done
  23372. eval "kde_cv_path_$kde_cache=$kde_cv_path"
  23373. fi
  23374. eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
  23375. fi
  23376. if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
  23377. echo "$as_me:$LINENO: result: not found" >&5
  23378. echo "${ECHO_T}not found" >&6
  23379. { { echo "$as_me:$LINENO: error: The important program artsc-config was not found!
  23380. Please check whether you installed aRts correctly.
  23381. " >&5
  23382. echo "$as_me: error: The important program artsc-config was not found!
  23383. Please check whether you installed aRts correctly.
  23384. " >&2;}
  23385. { (exit 1); exit 1; }; }
  23386. else
  23387. echo "$as_me:$LINENO: result: $kde_cv_path" >&5
  23388. echo "${ECHO_T}$kde_cv_path" >&6
  23389. ARTSCCONFIG=$kde_cv_path
  23390. fi
  23391. fi
  23392. echo "$as_me:$LINENO: checking for kde-config" >&5
  23393. echo $ECHO_N "checking for kde-config... $ECHO_C" >&6
  23394. if test -n "$KDECONFIG"; then
  23395. kde_cv_path="$KDECONFIG";
  23396. else
  23397. kde_cache=`echo kde-config | sed 'y%./+-%__p_%'`
  23398. if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
  23399. echo $ECHO_N "(cached) $ECHO_C" >&6
  23400. else
  23401. kde_cv_path="NONE"
  23402. dirs="$kde_default_bindirs"
  23403. kde_save_IFS=$IFS
  23404. IFS=':'
  23405. for dir in $PATH; do
  23406. dirs="$dirs $dir"
  23407. done
  23408. IFS=$kde_save_IFS
  23409. for dir in $dirs; do
  23410. if test -x "$dir/kde-config"; then
  23411. if test -n ""
  23412. then
  23413. evalstr="$dir/kde-config 2>&1 "
  23414. if eval $evalstr; then
  23415. kde_cv_path="$dir/kde-config"
  23416. break
  23417. fi
  23418. else
  23419. kde_cv_path="$dir/kde-config"
  23420. break
  23421. fi
  23422. fi
  23423. done
  23424. eval "kde_cv_path_$kde_cache=$kde_cv_path"
  23425. fi
  23426. eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
  23427. fi
  23428. if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
  23429. echo "$as_me:$LINENO: result: not found" >&5
  23430. echo "${ECHO_T}not found" >&6
  23431. else
  23432. echo "$as_me:$LINENO: result: $kde_cv_path" >&5
  23433. echo "${ECHO_T}$kde_cv_path" >&6
  23434. KDECONFIG=$kde_cv_path
  23435. fi
  23436. echo "$as_me:$LINENO: checking for meinproc" >&5
  23437. echo $ECHO_N "checking for meinproc... $ECHO_C" >&6
  23438. if test -n "$MEINPROC"; then
  23439. kde_cv_path="$MEINPROC";
  23440. else
  23441. kde_cache=`echo meinproc | sed 'y%./+-%__p_%'`
  23442. if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
  23443. echo $ECHO_N "(cached) $ECHO_C" >&6
  23444. else
  23445. kde_cv_path="NONE"
  23446. dirs="$kde_default_bindirs"
  23447. kde_save_IFS=$IFS
  23448. IFS=':'
  23449. for dir in $PATH; do
  23450. dirs="$dirs $dir"
  23451. done
  23452. IFS=$kde_save_IFS
  23453. for dir in $dirs; do
  23454. if test -x "$dir/meinproc"; then
  23455. if test -n ""
  23456. then
  23457. evalstr="$dir/meinproc 2>&1 "
  23458. if eval $evalstr; then
  23459. kde_cv_path="$dir/meinproc"
  23460. break
  23461. fi
  23462. else
  23463. kde_cv_path="$dir/meinproc"
  23464. break
  23465. fi
  23466. fi
  23467. done
  23468. eval "kde_cv_path_$kde_cache=$kde_cv_path"
  23469. fi
  23470. eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
  23471. fi
  23472. if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
  23473. echo "$as_me:$LINENO: result: not found" >&5
  23474. echo "${ECHO_T}not found" >&6
  23475. else
  23476. echo "$as_me:$LINENO: result: $kde_cv_path" >&5
  23477. echo "${ECHO_T}$kde_cv_path" >&6
  23478. MEINPROC=$kde_cv_path
  23479. fi
  23480. if test -n "$MEINPROC" && test ! "$MEINPROC" = "compiled"; then
  23481. kde_sharedirs="/usr/share/kde /usr/local/share /usr/share /opt/kde3/share /opt/kde/share $prefix/share"
  23482. test -n "$KDEDIR" && kde_sharedirs="$KDEDIR/share $kde_sharedirs"
  23483. KDE_XSL_STYLESHEET=NO
  23484. for i in $kde_sharedirs;
  23485. do
  23486. for j in apps/ksgmltools2/customization/kde-chunk.xsl;
  23487. do
  23488. echo "configure: 26667: $i/$j" >&5
  23489. if test -r "$i/$j"; then
  23490. echo "taking that" >&5
  23491. KDE_XSL_STYLESHEET=$i
  23492. break 2
  23493. fi
  23494. done
  23495. done
  23496. if test "$KDE_XSL_STYLESHEET" = "NO"; then
  23497. KDE_XSL_STYLESHEET=""
  23498. else
  23499. KDE_XSL_STYLESHEET="$KDE_XSL_STYLESHEET/apps/ksgmltools2/customization/kde-chunk.xsl"
  23500. fi
  23501. fi
  23502. DCOP_DEPENDENCIES='$(DCOPIDL)'
  23503. if test -x "$KDECONFIG"; then # it can be "compiled"
  23504. kde_libs_prefix=`$KDECONFIG --prefix`
  23505. if test -z "$kde_libs_prefix" || test ! -x "$kde_libs_prefix"; then
  23506. { { echo "$as_me:$LINENO: error: $KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs.
  23507. This means it has been moved since you installed it.
  23508. This won't work. Please recompile kdelibs for the new prefix.
  23509. " >&5
  23510. echo "$as_me: error: $KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs.
  23511. This means it has been moved since you installed it.
  23512. This won't work. Please recompile kdelibs for the new prefix.
  23513. " >&2;}
  23514. { (exit 1); exit 1; }; }
  23515. fi
  23516. kde_libs_htmldir=`$KDECONFIG --install html --expandvars`
  23517. else
  23518. kde_libs_prefix='$(prefix)'
  23519. kde_libs_htmldir='$(kde_htmldir)'
  23520. fi
  23521. kdeinitdir='$(kde_moduledir)'
  23522. if test "$kde_qtver" = 1; then
  23523. kde_minidir="$kde_icondir/mini"
  23524. else
  23525. # for KDE 1 - this breaks KDE2 apps using minidir, but
  23526. # that's the plan ;-/
  23527. kde_minidir="/dev/null"
  23528. fi
  23529. if test $kde_qtver = 3; then
  23530. LIB_KDECORE="-lkdecore"
  23531. LIB_KDEUI="-lkdeui"
  23532. LIB_KIO="-lkio"
  23533. LIB_SMB="-lsmb"
  23534. LIB_KAB="-lkab"
  23535. LIB_KABC="-lkabc"
  23536. LIB_KHTML="-lkhtml"
  23537. LIB_KSPELL="-lkspell"
  23538. LIB_KPARTS="-lkparts"
  23539. LIB_KDEPRINT="-lkdeprint"
  23540. # these are for backward compatibility
  23541. LIB_KSYCOCA="-lkio"
  23542. LIB_KFILE="-lkio"
  23543. elif test $kde_qtver = 2; then
  23544. LIB_KDECORE="-lkdecore"
  23545. LIB_KDEUI="-lkdeui"
  23546. LIB_KIO="-lkio"
  23547. LIB_KSYCOCA="-lksycoca"
  23548. LIB_SMB="-lsmb"
  23549. LIB_KFILE="-lkfile"
  23550. LIB_KAB="-lkab"
  23551. LIB_KHTML="-lkhtml"
  23552. LIB_KSPELL="-lkspell"
  23553. LIB_KPARTS="-lkparts"
  23554. LIB_KDEPRINT="-lkdeprint"
  23555. else
  23556. LIB_KDECORE="-lkdecore -lXext $(LIB_QT)"
  23557. LIB_KDEUI="-lkdeui $(LIB_KDECORE)"
  23558. LIB_KFM="-lkfm $(LIB_KDECORE)"
  23559. LIB_KFILE="-lkfile $(LIB_KFM) $(LIB_KDEUI)"
  23560. LIB_KAB="-lkab $(LIB_KIMGIO) $(LIB_KDECORE)"
  23561. fi
  23562. #MIN_CONFIG(3.0.0)
  23563. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  23564. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  23565. if test "${ac_cv_c_bigendian+set}" = set; then
  23566. echo $ECHO_N "(cached) $ECHO_C" >&6
  23567. else
  23568. # See if sys/param.h defines the BYTE_ORDER macro.
  23569. cat >conftest.$ac_ext <<_ACEOF
  23570. /* confdefs.h. */
  23571. _ACEOF
  23572. cat confdefs.h >>conftest.$ac_ext
  23573. cat >>conftest.$ac_ext <<_ACEOF
  23574. /* end confdefs.h. */
  23575. #include <sys/types.h>
  23576. #include <sys/param.h>
  23577. int
  23578. main ()
  23579. {
  23580. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  23581. bogus endian macros
  23582. #endif
  23583. ;
  23584. return 0;
  23585. }
  23586. _ACEOF
  23587. rm -f conftest.$ac_objext
  23588. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23589. (eval $ac_compile) 2>conftest.er1
  23590. ac_status=$?
  23591. grep -v '^ *+' conftest.er1 >conftest.err
  23592. rm -f conftest.er1
  23593. cat conftest.err >&5
  23594. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23595. (exit $ac_status); } &&
  23596. { ac_try='test -z "$ac_c_werror_flag"
  23597. || test ! -s conftest.err'
  23598. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23599. (eval $ac_try) 2>&5
  23600. ac_status=$?
  23601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23602. (exit $ac_status); }; } &&
  23603. { ac_try='test -s conftest.$ac_objext'
  23604. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23605. (eval $ac_try) 2>&5
  23606. ac_status=$?
  23607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23608. (exit $ac_status); }; }; then
  23609. # It does; now see whether it defined to BIG_ENDIAN or not.
  23610. cat >conftest.$ac_ext <<_ACEOF
  23611. /* confdefs.h. */
  23612. _ACEOF
  23613. cat confdefs.h >>conftest.$ac_ext
  23614. cat >>conftest.$ac_ext <<_ACEOF
  23615. /* end confdefs.h. */
  23616. #include <sys/types.h>
  23617. #include <sys/param.h>
  23618. int
  23619. main ()
  23620. {
  23621. #if BYTE_ORDER != BIG_ENDIAN
  23622. not big endian
  23623. #endif
  23624. ;
  23625. return 0;
  23626. }
  23627. _ACEOF
  23628. rm -f conftest.$ac_objext
  23629. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23630. (eval $ac_compile) 2>conftest.er1
  23631. ac_status=$?
  23632. grep -v '^ *+' conftest.er1 >conftest.err
  23633. rm -f conftest.er1
  23634. cat conftest.err >&5
  23635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23636. (exit $ac_status); } &&
  23637. { ac_try='test -z "$ac_c_werror_flag"
  23638. || test ! -s conftest.err'
  23639. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23640. (eval $ac_try) 2>&5
  23641. ac_status=$?
  23642. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23643. (exit $ac_status); }; } &&
  23644. { ac_try='test -s conftest.$ac_objext'
  23645. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23646. (eval $ac_try) 2>&5
  23647. ac_status=$?
  23648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23649. (exit $ac_status); }; }; then
  23650. ac_cv_c_bigendian=yes
  23651. else
  23652. echo "$as_me: failed program was:" >&5
  23653. sed 's/^/| /' conftest.$ac_ext >&5
  23654. ac_cv_c_bigendian=no
  23655. fi
  23656. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23657. else
  23658. echo "$as_me: failed program was:" >&5
  23659. sed 's/^/| /' conftest.$ac_ext >&5
  23660. # It does not; compile a test program.
  23661. if test "$cross_compiling" = yes; then
  23662. # try to guess the endianness by grepping values into an object file
  23663. ac_cv_c_bigendian=unknown
  23664. cat >conftest.$ac_ext <<_ACEOF
  23665. /* confdefs.h. */
  23666. _ACEOF
  23667. cat confdefs.h >>conftest.$ac_ext
  23668. cat >>conftest.$ac_ext <<_ACEOF
  23669. /* end confdefs.h. */
  23670. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  23671. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  23672. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  23673. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  23674. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  23675. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  23676. int
  23677. main ()
  23678. {
  23679. _ascii (); _ebcdic ();
  23680. ;
  23681. return 0;
  23682. }
  23683. _ACEOF
  23684. rm -f conftest.$ac_objext
  23685. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23686. (eval $ac_compile) 2>conftest.er1
  23687. ac_status=$?
  23688. grep -v '^ *+' conftest.er1 >conftest.err
  23689. rm -f conftest.er1
  23690. cat conftest.err >&5
  23691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23692. (exit $ac_status); } &&
  23693. { ac_try='test -z "$ac_c_werror_flag"
  23694. || test ! -s conftest.err'
  23695. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23696. (eval $ac_try) 2>&5
  23697. ac_status=$?
  23698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23699. (exit $ac_status); }; } &&
  23700. { ac_try='test -s conftest.$ac_objext'
  23701. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23702. (eval $ac_try) 2>&5
  23703. ac_status=$?
  23704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23705. (exit $ac_status); }; }; then
  23706. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  23707. ac_cv_c_bigendian=yes
  23708. fi
  23709. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  23710. if test "$ac_cv_c_bigendian" = unknown; then
  23711. ac_cv_c_bigendian=no
  23712. else
  23713. # finding both strings is unlikely to happen, but who knows?
  23714. ac_cv_c_bigendian=unknown
  23715. fi
  23716. fi
  23717. else
  23718. echo "$as_me: failed program was:" >&5
  23719. sed 's/^/| /' conftest.$ac_ext >&5
  23720. fi
  23721. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23722. else
  23723. cat >conftest.$ac_ext <<_ACEOF
  23724. /* confdefs.h. */
  23725. _ACEOF
  23726. cat confdefs.h >>conftest.$ac_ext
  23727. cat >>conftest.$ac_ext <<_ACEOF
  23728. /* end confdefs.h. */
  23729. int
  23730. main ()
  23731. {
  23732. /* Are we little or big endian? From Harbison&Steele. */
  23733. union
  23734. {
  23735. long l;
  23736. char c[sizeof (long)];
  23737. } u;
  23738. u.l = 1;
  23739. exit (u.c[sizeof (long) - 1] == 1);
  23740. }
  23741. _ACEOF
  23742. rm -f conftest$ac_exeext
  23743. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23744. (eval $ac_link) 2>&5
  23745. ac_status=$?
  23746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23747. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23748. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23749. (eval $ac_try) 2>&5
  23750. ac_status=$?
  23751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23752. (exit $ac_status); }; }; then
  23753. ac_cv_c_bigendian=no
  23754. else
  23755. echo "$as_me: program exited with status $ac_status" >&5
  23756. echo "$as_me: failed program was:" >&5
  23757. sed 's/^/| /' conftest.$ac_ext >&5
  23758. ( exit $ac_status )
  23759. ac_cv_c_bigendian=yes
  23760. fi
  23761. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23762. fi
  23763. fi
  23764. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23765. fi
  23766. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  23767. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  23768. case $ac_cv_c_bigendian in
  23769. yes)
  23770. cat >>confdefs.h <<\_ACEOF
  23771. #define WORDS_BIGENDIAN 1
  23772. _ACEOF
  23773. ;;
  23774. no)
  23775. ;;
  23776. *)
  23777. { { echo "$as_me:$LINENO: error: unknown endianness
  23778. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  23779. echo "$as_me: error: unknown endianness
  23780. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  23781. { (exit 1); exit 1; }; } ;;
  23782. esac
  23783. echo "$as_me:$LINENO: checking for MAXPATHLEN" >&5
  23784. echo $ECHO_N "checking for MAXPATHLEN... $ECHO_C" >&6
  23785. if test "${ac_cv_maxpathlen+set}" = set; then
  23786. echo $ECHO_N "(cached) $ECHO_C" >&6
  23787. else
  23788. ac_ext=c
  23789. ac_cpp='$CPP $CPPFLAGS'
  23790. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23791. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23792. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23793. cat > conftest.$ac_ext <<EOF
  23794. #ifdef STDC_HEADERS
  23795. # include <stdlib.h>
  23796. #endif
  23797. #include <stdio.h>
  23798. #include <sys/param.h>
  23799. #ifndef MAXPATHLEN
  23800. #define MAXPATHLEN 1024
  23801. #endif
  23802. KDE_HELLO MAXPATHLEN
  23803. EOF
  23804. ac_try="$ac_cpp conftest.$ac_ext 2>/dev/null | grep '^KDE_HELLO' >conftest.out"
  23805. if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23806. (eval $ac_try) 2>&5
  23807. ac_status=$?
  23808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23809. (exit $ac_status); } && test -s conftest.out; then
  23810. ac_cv_maxpathlen=`sed 's#KDE_HELLO ##' conftest.out`
  23811. else
  23812. ac_cv_maxpathlen=1024
  23813. fi
  23814. rm conftest.*
  23815. fi
  23816. echo "$as_me:$LINENO: result: $ac_cv_maxpathlen" >&5
  23817. echo "${ECHO_T}$ac_cv_maxpathlen" >&6
  23818. cat >>confdefs.h <<_ACEOF
  23819. #define KDEMAXPATHLEN $ac_cv_maxpathlen
  23820. _ACEOF
  23821. DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin"
  23822. if test ! -s $srcdir/subdirs; then
  23823. TOPSUBDIRS=""
  23824. files=`cd $srcdir && ls -1`
  23825. dirs=`for i in $files; do if test -d $i; then echo $i; fi; done`
  23826. for i in $dirs; do
  23827. echo $i >> $srcdir/subdirs
  23828. done
  23829. fi
  23830. if test -s $srcdir/inst-apps; then
  23831. ac_topsubdirs="`cat $srcdir/inst-apps`"
  23832. else
  23833. ac_topsubdirs="`cat $srcdir/subdirs`"
  23834. fi
  23835. for i in $ac_topsubdirs; do
  23836. echo "$as_me:$LINENO: checking if $i should be compiled" >&5
  23837. echo $ECHO_N "checking if $i should be compiled... $ECHO_C" >&6
  23838. if test -d $srcdir/$i; then
  23839. install_it="yes"
  23840. for j in $DO_NOT_COMPILE; do
  23841. if test $i = $j; then
  23842. install_it="no"
  23843. fi
  23844. done
  23845. else
  23846. install_it="no"
  23847. fi
  23848. echo "$as_me:$LINENO: result: $install_it" >&5
  23849. echo "${ECHO_T}$install_it" >&6
  23850. vari=`echo $i | sed -e 's,[-+.],_,g'`
  23851. if test $install_it = "yes"; then
  23852. TOPSUBDIRS="$TOPSUBDIRS $i"
  23853. eval "$vari""_SUBDIR_included=yes"
  23854. else
  23855. eval "$vari""_SUBDIR_included=no"
  23856. fi
  23857. done
  23858. ac_config_files="$ac_config_files Makefile"
  23859. ac_config_files="$ac_config_files data/Makefile"
  23860. ac_config_files="$ac_config_files doc/Makefile"
  23861. ac_config_files="$ac_config_files doc/en/Makefile"
  23862. ac_config_files="$ac_config_files po/Makefile"
  23863. ac_config_files="$ac_config_files src/Makefile"
  23864. cat >confcache <<\_ACEOF
  23865. # This file is a shell script that caches the results of configure
  23866. # tests run on this system so they can be shared between configure
  23867. # scripts and configure runs, see configure's option --config-cache.
  23868. # It is not useful on other systems. If it contains results you don't
  23869. # want to keep, you may remove or edit it.
  23870. #
  23871. # config.status only pays attention to the cache file if you give it
  23872. # the --recheck option to rerun configure.
  23873. #
  23874. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  23875. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  23876. # following values.
  23877. _ACEOF
  23878. # The following way of writing the cache mishandles newlines in values,
  23879. # but we know of no workaround that is simple, portable, and efficient.
  23880. # So, don't put newlines in cache variables' values.
  23881. # Ultrix sh set writes to stderr and can't be redirected directly,
  23882. # and sets the high bit in the cache file unless we assign to the vars.
  23883. {
  23884. (set) 2>&1 |
  23885. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  23886. *ac_space=\ *)
  23887. # `set' does not quote correctly, so add quotes (double-quote
  23888. # substitution turns \\\\ into \\, and sed turns \\ into \).
  23889. sed -n \
  23890. "s/'/'\\\\''/g;
  23891. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  23892. ;;
  23893. *)
  23894. # `set' quotes correctly as required by POSIX, so do not add quotes.
  23895. sed -n \
  23896. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  23897. ;;
  23898. esac;
  23899. } |
  23900. sed '
  23901. t clear
  23902. : clear
  23903. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  23904. t end
  23905. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  23906. : end' >>confcache
  23907. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  23908. if test -w $cache_file; then
  23909. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  23910. cat confcache >$cache_file
  23911. else
  23912. echo "not updating unwritable cache $cache_file"
  23913. fi
  23914. fi
  23915. rm -f confcache
  23916. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  23917. # Let make expand exec_prefix.
  23918. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  23919. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  23920. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  23921. # trailing colons and then remove the whole line if VPATH becomes empty
  23922. # (actually we leave an empty line to preserve line numbers).
  23923. if test "x$srcdir" = x.; then
  23924. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  23925. s/:*\$(srcdir):*/:/;
  23926. s/:*\${srcdir}:*/:/;
  23927. s/:*@srcdir@:*/:/;
  23928. s/^\([^=]*=[ ]*\):*/\1/;
  23929. s/:*$//;
  23930. s/^[^=]*=[ ]*$//;
  23931. }'
  23932. fi
  23933. DEFS=-DHAVE_CONFIG_H
  23934. ac_libobjs=
  23935. ac_ltlibobjs=
  23936. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  23937. # 1. Remove the extension, and $U if already installed.
  23938. ac_i=`echo "$ac_i" |
  23939. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  23940. # 2. Add them.
  23941. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  23942. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  23943. done
  23944. LIBOBJS=$ac_libobjs
  23945. LTLIBOBJS=$ac_ltlibobjs
  23946. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  23947. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  23948. Usually this means the macro was only invoked conditionally." >&5
  23949. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  23950. Usually this means the macro was only invoked conditionally." >&2;}
  23951. { (exit 1); exit 1; }; }
  23952. fi
  23953. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  23954. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  23955. Usually this means the macro was only invoked conditionally." >&5
  23956. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  23957. Usually this means the macro was only invoked conditionally." >&2;}
  23958. { (exit 1); exit 1; }; }
  23959. fi
  23960. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  23961. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  23962. Usually this means the macro was only invoked conditionally." >&5
  23963. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  23964. Usually this means the macro was only invoked conditionally." >&2;}
  23965. { (exit 1); exit 1; }; }
  23966. fi
  23967. if test -z "${include_ARTS_TRUE}" && test -z "${include_ARTS_FALSE}"; then
  23968. { { echo "$as_me:$LINENO: error: conditional \"include_ARTS\" was never defined.
  23969. Usually this means the macro was only invoked conditionally." >&5
  23970. echo "$as_me: error: conditional \"include_ARTS\" was never defined.
  23971. Usually this means the macro was only invoked conditionally." >&2;}
  23972. { (exit 1); exit 1; }; }
  23973. fi
  23974. : ${CONFIG_STATUS=./config.status}
  23975. ac_clean_files_save=$ac_clean_files
  23976. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  23977. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  23978. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  23979. cat >$CONFIG_STATUS <<_ACEOF
  23980. #! $SHELL
  23981. # Generated by $as_me.
  23982. # Run this file to recreate the current configuration.
  23983. # Compiler output produced by configure, useful for debugging
  23984. # configure, is in config.log if it exists.
  23985. debug=false
  23986. ac_cs_recheck=false
  23987. ac_cs_silent=false
  23988. SHELL=\${CONFIG_SHELL-$SHELL}
  23989. _ACEOF
  23990. cat >>$CONFIG_STATUS <<\_ACEOF
  23991. ## --------------------- ##
  23992. ## M4sh Initialization. ##
  23993. ## --------------------- ##
  23994. # Be Bourne compatible
  23995. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  23996. emulate sh
  23997. NULLCMD=:
  23998. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  23999. # is contrary to our usage. Disable this feature.
  24000. alias -g '${1+"$@"}'='"$@"'
  24001. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  24002. set -o posix
  24003. fi
  24004. DUALCASE=1; export DUALCASE # for MKS sh
  24005. # Support unset when possible.
  24006. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  24007. as_unset=unset
  24008. else
  24009. as_unset=false
  24010. fi
  24011. # Work around bugs in pre-3.0 UWIN ksh.
  24012. $as_unset ENV MAIL MAILPATH
  24013. PS1='$ '
  24014. PS2='> '
  24015. PS4='+ '
  24016. # NLS nuisances.
  24017. for as_var in \
  24018. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  24019. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  24020. LC_TELEPHONE LC_TIME
  24021. do
  24022. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  24023. eval $as_var=C; export $as_var
  24024. else
  24025. $as_unset $as_var
  24026. fi
  24027. done
  24028. # Required to use basename.
  24029. if expr a : '\(a\)' >/dev/null 2>&1; then
  24030. as_expr=expr
  24031. else
  24032. as_expr=false
  24033. fi
  24034. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  24035. as_basename=basename
  24036. else
  24037. as_basename=false
  24038. fi
  24039. # Name of the executable.
  24040. as_me=`$as_basename "$0" ||
  24041. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  24042. X"$0" : 'X\(//\)$' \| \
  24043. X"$0" : 'X\(/\)$' \| \
  24044. . : '\(.\)' 2>/dev/null ||
  24045. echo X/"$0" |
  24046. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  24047. /^X\/\(\/\/\)$/{ s//\1/; q; }
  24048. /^X\/\(\/\).*/{ s//\1/; q; }
  24049. s/.*/./; q'`
  24050. # PATH needs CR, and LINENO needs CR and PATH.
  24051. # Avoid depending upon Character Ranges.
  24052. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  24053. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  24054. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  24055. as_cr_digits='0123456789'
  24056. as_cr_alnum=$as_cr_Letters$as_cr_digits
  24057. # The user is always right.
  24058. if test "${PATH_SEPARATOR+set}" != set; then
  24059. echo "#! /bin/sh" >conf$$.sh
  24060. echo "exit 0" >>conf$$.sh
  24061. chmod +x conf$$.sh
  24062. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  24063. PATH_SEPARATOR=';'
  24064. else
  24065. PATH_SEPARATOR=:
  24066. fi
  24067. rm -f conf$$.sh
  24068. fi
  24069. as_lineno_1=$LINENO
  24070. as_lineno_2=$LINENO
  24071. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  24072. test "x$as_lineno_1" != "x$as_lineno_2" &&
  24073. test "x$as_lineno_3" = "x$as_lineno_2" || {
  24074. # Find who we are. Look in the path if we contain no path at all
  24075. # relative or not.
  24076. case $0 in
  24077. *[\\/]* ) as_myself=$0 ;;
  24078. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24079. for as_dir in $PATH
  24080. do
  24081. IFS=$as_save_IFS
  24082. test -z "$as_dir" && as_dir=.
  24083. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  24084. done
  24085. ;;
  24086. esac
  24087. # We did not find ourselves, most probably we were run as `sh COMMAND'
  24088. # in which case we are not to be found in the path.
  24089. if test "x$as_myself" = x; then
  24090. as_myself=$0
  24091. fi
  24092. if test ! -f "$as_myself"; then
  24093. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  24094. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  24095. { (exit 1); exit 1; }; }
  24096. fi
  24097. case $CONFIG_SHELL in
  24098. '')
  24099. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24100. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  24101. do
  24102. IFS=$as_save_IFS
  24103. test -z "$as_dir" && as_dir=.
  24104. for as_base in sh bash ksh sh5; do
  24105. case $as_dir in
  24106. /*)
  24107. if ("$as_dir/$as_base" -c '
  24108. as_lineno_1=$LINENO
  24109. as_lineno_2=$LINENO
  24110. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  24111. test "x$as_lineno_1" != "x$as_lineno_2" &&
  24112. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  24113. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  24114. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  24115. CONFIG_SHELL=$as_dir/$as_base
  24116. export CONFIG_SHELL
  24117. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  24118. fi;;
  24119. esac
  24120. done
  24121. done
  24122. ;;
  24123. esac
  24124. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  24125. # uniformly replaced by the line number. The first 'sed' inserts a
  24126. # line-number line before each line; the second 'sed' does the real
  24127. # work. The second script uses 'N' to pair each line-number line
  24128. # with the numbered line, and appends trailing '-' during
  24129. # substitution so that $LINENO is not a special case at line end.
  24130. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  24131. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  24132. sed '=' <$as_myself |
  24133. sed '
  24134. N
  24135. s,$,-,
  24136. : loop
  24137. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  24138. t loop
  24139. s,-$,,
  24140. s,^['$as_cr_digits']*\n,,
  24141. ' >$as_me.lineno &&
  24142. chmod +x $as_me.lineno ||
  24143. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  24144. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  24145. { (exit 1); exit 1; }; }
  24146. # Don't try to exec as it changes $[0], causing all sort of problems
  24147. # (the dirname of $[0] is not the place where we might find the
  24148. # original and so on. Autoconf is especially sensible to this).
  24149. . ./$as_me.lineno
  24150. # Exit status is that of the last command.
  24151. exit
  24152. }
  24153. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  24154. *c*,-n*) ECHO_N= ECHO_C='
  24155. ' ECHO_T=' ' ;;
  24156. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  24157. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  24158. esac
  24159. if expr a : '\(a\)' >/dev/null 2>&1; then
  24160. as_expr=expr
  24161. else
  24162. as_expr=false
  24163. fi
  24164. rm -f conf$$ conf$$.exe conf$$.file
  24165. echo >conf$$.file
  24166. if ln -s conf$$.file conf$$ 2>/dev/null; then
  24167. # We could just check for DJGPP; but this test a) works b) is more generic
  24168. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  24169. if test -f conf$$.exe; then
  24170. # Don't use ln at all; we don't have any links
  24171. as_ln_s='cp -p'
  24172. else
  24173. as_ln_s='ln -s'
  24174. fi
  24175. elif ln conf$$.file conf$$ 2>/dev/null; then
  24176. as_ln_s=ln
  24177. else
  24178. as_ln_s='cp -p'
  24179. fi
  24180. rm -f conf$$ conf$$.exe conf$$.file
  24181. if mkdir -p . 2>/dev/null; then
  24182. as_mkdir_p=:
  24183. else
  24184. test -d ./-p && rmdir ./-p
  24185. as_mkdir_p=false
  24186. fi
  24187. as_executable_p="test -f"
  24188. # Sed expression to map a string onto a valid CPP name.
  24189. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  24190. # Sed expression to map a string onto a valid variable name.
  24191. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  24192. # IFS
  24193. # We need space, tab and new line, in precisely that order.
  24194. as_nl='
  24195. '
  24196. IFS=" $as_nl"
  24197. # CDPATH.
  24198. $as_unset CDPATH
  24199. exec 6>&1
  24200. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  24201. # report actual input values of CONFIG_FILES etc. instead of their
  24202. # values after options handling. Logging --version etc. is OK.
  24203. exec 5>>config.log
  24204. {
  24205. echo
  24206. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  24207. ## Running $as_me. ##
  24208. _ASBOX
  24209. } >&5
  24210. cat >&5 <<_CSEOF
  24211. This file was extended by $as_me, which was
  24212. generated by GNU Autoconf 2.59. Invocation command line was
  24213. CONFIG_FILES = $CONFIG_FILES
  24214. CONFIG_HEADERS = $CONFIG_HEADERS
  24215. CONFIG_LINKS = $CONFIG_LINKS
  24216. CONFIG_COMMANDS = $CONFIG_COMMANDS
  24217. $ $0 $@
  24218. _CSEOF
  24219. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  24220. echo >&5
  24221. _ACEOF
  24222. # Files that config.status was made for.
  24223. if test -n "$ac_config_files"; then
  24224. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  24225. fi
  24226. if test -n "$ac_config_headers"; then
  24227. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  24228. fi
  24229. if test -n "$ac_config_links"; then
  24230. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  24231. fi
  24232. if test -n "$ac_config_commands"; then
  24233. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  24234. fi
  24235. cat >>$CONFIG_STATUS <<\_ACEOF
  24236. ac_cs_usage="\
  24237. \`$as_me' instantiates files from templates according to the
  24238. current configuration.
  24239. Usage: $0 [OPTIONS] [FILE]...
  24240. -h, --help print this help, then exit
  24241. -V, --version print version number, then exit
  24242. -q, --quiet do not print progress messages
  24243. -d, --debug don't remove temporary files
  24244. --recheck update $as_me by reconfiguring in the same conditions
  24245. --file=FILE[:TEMPLATE]
  24246. instantiate the configuration file FILE
  24247. --header=FILE[:TEMPLATE]
  24248. instantiate the configuration header FILE
  24249. Configuration files:
  24250. $config_files
  24251. Configuration headers:
  24252. $config_headers
  24253. Configuration commands:
  24254. $config_commands
  24255. Report bugs to <bug-autoconf@gnu.org>."
  24256. _ACEOF
  24257. cat >>$CONFIG_STATUS <<_ACEOF
  24258. ac_cs_version="\\
  24259. config.status
  24260. configured by $0, generated by GNU Autoconf 2.59,
  24261. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  24262. Copyright (C) 2003 Free Software Foundation, Inc.
  24263. This config.status script is free software; the Free Software Foundation
  24264. gives unlimited permission to copy, distribute and modify it."
  24265. srcdir=$srcdir
  24266. INSTALL="$INSTALL"
  24267. _ACEOF
  24268. cat >>$CONFIG_STATUS <<\_ACEOF
  24269. # If no file are specified by the user, then we need to provide default
  24270. # value. By we need to know if files were specified by the user.
  24271. ac_need_defaults=:
  24272. while test $# != 0
  24273. do
  24274. case $1 in
  24275. --*=*)
  24276. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  24277. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  24278. ac_shift=:
  24279. ;;
  24280. -*)
  24281. ac_option=$1
  24282. ac_optarg=$2
  24283. ac_shift=shift
  24284. ;;
  24285. *) # This is not an option, so the user has probably given explicit
  24286. # arguments.
  24287. ac_option=$1
  24288. ac_need_defaults=false;;
  24289. esac
  24290. case $ac_option in
  24291. # Handling of the options.
  24292. _ACEOF
  24293. cat >>$CONFIG_STATUS <<\_ACEOF
  24294. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  24295. ac_cs_recheck=: ;;
  24296. --version | --vers* | -V )
  24297. echo "$ac_cs_version"; exit 0 ;;
  24298. --he | --h)
  24299. # Conflict between --help and --header
  24300. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  24301. Try \`$0 --help' for more information." >&5
  24302. echo "$as_me: error: ambiguous option: $1
  24303. Try \`$0 --help' for more information." >&2;}
  24304. { (exit 1); exit 1; }; };;
  24305. --help | --hel | -h )
  24306. echo "$ac_cs_usage"; exit 0 ;;
  24307. --debug | --d* | -d )
  24308. debug=: ;;
  24309. --file | --fil | --fi | --f )
  24310. $ac_shift
  24311. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  24312. ac_need_defaults=false;;
  24313. --header | --heade | --head | --hea )
  24314. $ac_shift
  24315. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  24316. ac_need_defaults=false;;
  24317. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  24318. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  24319. ac_cs_silent=: ;;
  24320. # This is an error.
  24321. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  24322. Try \`$0 --help' for more information." >&5
  24323. echo "$as_me: error: unrecognized option: $1
  24324. Try \`$0 --help' for more information." >&2;}
  24325. { (exit 1); exit 1; }; } ;;
  24326. *) ac_config_targets="$ac_config_targets $1" ;;
  24327. esac
  24328. shift
  24329. done
  24330. ac_configure_extra_args=
  24331. if $ac_cs_silent; then
  24332. exec 6>/dev/null
  24333. ac_configure_extra_args="$ac_configure_extra_args --silent"
  24334. fi
  24335. _ACEOF
  24336. cat >>$CONFIG_STATUS <<_ACEOF
  24337. if \$ac_cs_recheck; then
  24338. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  24339. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  24340. fi
  24341. _ACEOF
  24342. cat >>$CONFIG_STATUS <<_ACEOF
  24343. #
  24344. # INIT-COMMANDS section.
  24345. #
  24346. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  24347. _ACEOF
  24348. cat >>$CONFIG_STATUS <<\_ACEOF
  24349. for ac_config_target in $ac_config_targets
  24350. do
  24351. case "$ac_config_target" in
  24352. # Handling of arguments.
  24353. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  24354. "data/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
  24355. "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  24356. "doc/en/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/en/Makefile" ;;
  24357. "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
  24358. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  24359. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  24360. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  24361. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  24362. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  24363. { (exit 1); exit 1; }; };;
  24364. esac
  24365. done
  24366. # If the user did not use the arguments to specify the items to instantiate,
  24367. # then the envvar interface is used. Set only those that are not.
  24368. # We use the long form for the default assignment because of an extremely
  24369. # bizarre bug on SunOS 4.1.3.
  24370. if $ac_need_defaults; then
  24371. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  24372. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  24373. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  24374. fi
  24375. # Have a temporary directory for convenience. Make it in the build tree
  24376. # simply because there is no reason to put it here, and in addition,
  24377. # creating and moving files from /tmp can sometimes cause problems.
  24378. # Create a temporary directory, and hook for its removal unless debugging.
  24379. $debug ||
  24380. {
  24381. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  24382. trap '{ (exit 1); exit 1; }' 1 2 13 15
  24383. }
  24384. # Create a (secure) tmp directory for tmp files.
  24385. {
  24386. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  24387. test -n "$tmp" && test -d "$tmp"
  24388. } ||
  24389. {
  24390. tmp=./confstat$$-$RANDOM
  24391. (umask 077 && mkdir $tmp)
  24392. } ||
  24393. {
  24394. echo "$me: cannot create a temporary directory in ." >&2
  24395. { (exit 1); exit 1; }
  24396. }
  24397. _ACEOF
  24398. cat >>$CONFIG_STATUS <<_ACEOF
  24399. #
  24400. # CONFIG_FILES section.
  24401. #
  24402. # No need to generate the scripts if there are no CONFIG_FILES.
  24403. # This happens for instance when ./config.status config.h
  24404. if test -n "\$CONFIG_FILES"; then
  24405. # Protect against being on the right side of a sed subst in config.status.
  24406. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  24407. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  24408. s,@SHELL@,$SHELL,;t t
  24409. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  24410. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  24411. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  24412. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  24413. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  24414. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  24415. s,@exec_prefix@,$exec_prefix,;t t
  24416. s,@prefix@,$prefix,;t t
  24417. s,@program_transform_name@,$program_transform_name,;t t
  24418. s,@bindir@,$bindir,;t t
  24419. s,@sbindir@,$sbindir,;t t
  24420. s,@libexecdir@,$libexecdir,;t t
  24421. s,@datadir@,$datadir,;t t
  24422. s,@sysconfdir@,$sysconfdir,;t t
  24423. s,@sharedstatedir@,$sharedstatedir,;t t
  24424. s,@localstatedir@,$localstatedir,;t t
  24425. s,@libdir@,$libdir,;t t
  24426. s,@includedir@,$includedir,;t t
  24427. s,@oldincludedir@,$oldincludedir,;t t
  24428. s,@infodir@,$infodir,;t t
  24429. s,@mandir@,$mandir,;t t
  24430. s,@build_alias@,$build_alias,;t t
  24431. s,@host_alias@,$host_alias,;t t
  24432. s,@target_alias@,$target_alias,;t t
  24433. s,@DEFS@,$DEFS,;t t
  24434. s,@ECHO_C@,$ECHO_C,;t t
  24435. s,@ECHO_N@,$ECHO_N,;t t
  24436. s,@ECHO_T@,$ECHO_T,;t t
  24437. s,@LIBS@,$LIBS,;t t
  24438. s,@build@,$build,;t t
  24439. s,@build_cpu@,$build_cpu,;t t
  24440. s,@build_vendor@,$build_vendor,;t t
  24441. s,@build_os@,$build_os,;t t
  24442. s,@host@,$host,;t t
  24443. s,@host_cpu@,$host_cpu,;t t
  24444. s,@host_vendor@,$host_vendor,;t t
  24445. s,@host_os@,$host_os,;t t
  24446. s,@target@,$target,;t t
  24447. s,@target_cpu@,$target_cpu,;t t
  24448. s,@target_vendor@,$target_vendor,;t t
  24449. s,@target_os@,$target_os,;t t
  24450. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  24451. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  24452. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  24453. s,@CYGPATH_W@,$CYGPATH_W,;t t
  24454. s,@PACKAGE@,$PACKAGE,;t t
  24455. s,@VERSION@,$VERSION,;t t
  24456. s,@ACLOCAL@,$ACLOCAL,;t t
  24457. s,@AUTOCONF@,$AUTOCONF,;t t
  24458. s,@AUTOMAKE@,$AUTOMAKE,;t t
  24459. s,@AUTOHEADER@,$AUTOHEADER,;t t
  24460. s,@MAKEINFO@,$MAKEINFO,;t t
  24461. s,@install_sh@,$install_sh,;t t
  24462. s,@STRIP@,$STRIP,;t t
  24463. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  24464. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  24465. s,@mkdir_p@,$mkdir_p,;t t
  24466. s,@AWK@,$AWK,;t t
  24467. s,@SET_MAKE@,$SET_MAKE,;t t
  24468. s,@am__leading_dot@,$am__leading_dot,;t t
  24469. s,@AMTAR@,$AMTAR,;t t
  24470. s,@am__tar@,$am__tar,;t t
  24471. s,@am__untar@,$am__untar,;t t
  24472. s,@CONF_FILES@,$CONF_FILES,;t t
  24473. s,@CC@,$CC,;t t
  24474. s,@CFLAGS@,$CFLAGS,;t t
  24475. s,@LDFLAGS@,$LDFLAGS,;t t
  24476. s,@CPPFLAGS@,$CPPFLAGS,;t t
  24477. s,@ac_ct_CC@,$ac_ct_CC,;t t
  24478. s,@EXEEXT@,$EXEEXT,;t t
  24479. s,@OBJEXT@,$OBJEXT,;t t
  24480. s,@DEPDIR@,$DEPDIR,;t t
  24481. s,@am__include@,$am__include,;t t
  24482. s,@am__quote@,$am__quote,;t t
  24483. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  24484. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  24485. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  24486. s,@CCDEPMODE@,$CCDEPMODE,;t t
  24487. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  24488. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  24489. s,@CPP@,$CPP,;t t
  24490. s,@CXX@,$CXX,;t t
  24491. s,@CXXFLAGS@,$CXXFLAGS,;t t
  24492. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  24493. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  24494. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  24495. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  24496. s,@WOVERLOADED_VIRTUAL@,$WOVERLOADED_VIRTUAL,;t t
  24497. s,@USE_EXCEPTIONS@,$USE_EXCEPTIONS,;t t
  24498. s,@USE_RTTI@,$USE_RTTI,;t t
  24499. s,@CXXCPP@,$CXXCPP,;t t
  24500. s,@NOOPT_CXXFLAGS@,$NOOPT_CXXFLAGS,;t t
  24501. s,@NOOPT_CFLAGS@,$NOOPT_CFLAGS,;t t
  24502. s,@KDE_USE_FINAL_TRUE@,$KDE_USE_FINAL_TRUE,;t t
  24503. s,@KDE_USE_FINAL_FALSE@,$KDE_USE_FINAL_FALSE,;t t
  24504. s,@KDE_USE_CLOSURE_TRUE@,$KDE_USE_CLOSURE_TRUE,;t t
  24505. s,@KDE_USE_CLOSURE_FALSE@,$KDE_USE_CLOSURE_FALSE,;t t
  24506. s,@KDE_NO_UNDEFINED@,$KDE_NO_UNDEFINED,;t t
  24507. s,@KDE_USE_NMCHECK_TRUE@,$KDE_USE_NMCHECK_TRUE,;t t
  24508. s,@KDE_USE_NMCHECK_FALSE@,$KDE_USE_NMCHECK_FALSE,;t t
  24509. s,@LN_S@,$LN_S,;t t
  24510. s,@ECHO@,$ECHO,;t t
  24511. s,@RANLIB@,$RANLIB,;t t
  24512. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  24513. s,@EGREP@,$EGREP,;t t
  24514. s,@LIBTOOL@,$LIBTOOL,;t t
  24515. s,@KDE_PLUGIN@,$KDE_PLUGIN,;t t
  24516. s,@MSGFMT@,$MSGFMT,;t t
  24517. s,@GMSGFMT@,$GMSGFMT,;t t
  24518. s,@XGETTEXT@,$XGETTEXT,;t t
  24519. s,@LIBUTIL@,$LIBUTIL,;t t
  24520. s,@LIBCOMPAT@,$LIBCOMPAT,;t t
  24521. s,@LIBCRYPT@,$LIBCRYPT,;t t
  24522. s,@LIBRESOLV@,$LIBRESOLV,;t t
  24523. s,@LIB_POLL@,$LIB_POLL,;t t
  24524. s,@FRAMEWORK_COREAUDIO@,$FRAMEWORK_COREAUDIO,;t t
  24525. s,@LIBSOCKET@,$LIBSOCKET,;t t
  24526. s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
  24527. s,@LIBUCB@,$LIBUCB,;t t
  24528. s,@LIBDL@,$LIBDL,;t t
  24529. s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
  24530. s,@LIB_X11@,$LIB_X11,;t t
  24531. s,@LIB_XRENDER@,$LIB_XRENDER,;t t
  24532. s,@LIBSM@,$LIBSM,;t t
  24533. s,@X_INCLUDES@,$X_INCLUDES,;t t
  24534. s,@X_LDFLAGS@,$X_LDFLAGS,;t t
  24535. s,@x_includes@,$x_includes,;t t
  24536. s,@x_libraries@,$x_libraries,;t t
  24537. s,@QTE_NORTTI@,$QTE_NORTTI,;t t
  24538. s,@LIB_XEXT@,$LIB_XEXT,;t t
  24539. s,@LIBPTHREAD@,$LIBPTHREAD,;t t
  24540. s,@USE_THREADS@,$USE_THREADS,;t t
  24541. s,@KDE_MT_LDFLAGS@,$KDE_MT_LDFLAGS,;t t
  24542. s,@KDE_MT_LIBS@,$KDE_MT_LIBS,;t t
  24543. s,@USER_INCLUDES@,$USER_INCLUDES,;t t
  24544. s,@USER_LDFLAGS@,$USER_LDFLAGS,;t t
  24545. s,@LIBZ@,$LIBZ,;t t
  24546. s,@LIBPNG@,$LIBPNG,;t t
  24547. s,@LIBJPEG@,$LIBJPEG,;t t
  24548. s,@qt_libraries@,$qt_libraries,;t t
  24549. s,@qt_includes@,$qt_includes,;t t
  24550. s,@QT_INCLUDES@,$QT_INCLUDES,;t t
  24551. s,@QT_LDFLAGS@,$QT_LDFLAGS,;t t
  24552. s,@MOC@,$MOC,;t t
  24553. s,@UIC@,$UIC,;t t
  24554. s,@UIC_TR@,$UIC_TR,;t t
  24555. s,@LIB_QT@,$LIB_QT,;t t
  24556. s,@LIB_QPE@,$LIB_QPE,;t t
  24557. s,@kde_qtver@,$kde_qtver,;t t
  24558. s,@KDE_EXTRA_RPATH@,$KDE_EXTRA_RPATH,;t t
  24559. s,@KDE_RPATH@,$KDE_RPATH,;t t
  24560. s,@X_RPATH@,$X_RPATH,;t t
  24561. s,@kde_libraries@,$kde_libraries,;t t
  24562. s,@kde_includes@,$kde_includes,;t t
  24563. s,@KDE_LDFLAGS@,$KDE_LDFLAGS,;t t
  24564. s,@KDE_INCLUDES@,$KDE_INCLUDES,;t t
  24565. s,@all_includes@,$all_includes,;t t
  24566. s,@all_libraries@,$all_libraries,;t t
  24567. s,@AUTODIRS@,$AUTODIRS,;t t
  24568. s,@include_ARTS_TRUE@,$include_ARTS_TRUE,;t t
  24569. s,@include_ARTS_FALSE@,$include_ARTS_FALSE,;t t
  24570. s,@DCOPIDL@,$DCOPIDL,;t t
  24571. s,@DCOPIDL2CPP@,$DCOPIDL2CPP,;t t
  24572. s,@DCOP_DEPENDENCIES@,$DCOP_DEPENDENCIES,;t t
  24573. s,@MCOPIDL@,$MCOPIDL,;t t
  24574. s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
  24575. s,@KDECONFIG@,$KDECONFIG,;t t
  24576. s,@BROCKENBORING@,$BROCKENBORING,;t t
  24577. s,@MEINPROC@,$MEINPROC,;t t
  24578. s,@KDE_XSL_STYLESHEET@,$KDE_XSL_STYLESHEET,;t t
  24579. s,@kde_libs_prefix@,$kde_libs_prefix,;t t
  24580. s,@kde_libs_htmldir@,$kde_libs_htmldir,;t t
  24581. s,@kde_htmldir@,$kde_htmldir,;t t
  24582. s,@kde_appsdir@,$kde_appsdir,;t t
  24583. s,@kde_icondir@,$kde_icondir,;t t
  24584. s,@kde_sounddir@,$kde_sounddir,;t t
  24585. s,@kde_datadir@,$kde_datadir,;t t
  24586. s,@kde_locale@,$kde_locale,;t t
  24587. s,@kde_confdir@,$kde_confdir,;t t
  24588. s,@kde_mimedir@,$kde_mimedir,;t t
  24589. s,@kde_wallpaperdir@,$kde_wallpaperdir,;t t
  24590. s,@kde_bindir@,$kde_bindir,;t t
  24591. s,@xdg_appsdir@,$xdg_appsdir,;t t
  24592. s,@xdg_directorydir@,$xdg_directorydir,;t t
  24593. s,@kde_templatesdir@,$kde_templatesdir,;t t
  24594. s,@kde_servicesdir@,$kde_servicesdir,;t t
  24595. s,@kde_servicetypesdir@,$kde_servicetypesdir,;t t
  24596. s,@kde_moduledir@,$kde_moduledir,;t t
  24597. s,@kdeinitdir@,$kdeinitdir,;t t
  24598. s,@kde_styledir@,$kde_styledir,;t t
  24599. s,@kde_widgetdir@,$kde_widgetdir,;t t
  24600. s,@LIB_KDECORE@,$LIB_KDECORE,;t t
  24601. s,@LIB_KDEUI@,$LIB_KDEUI,;t t
  24602. s,@LIB_KIO@,$LIB_KIO,;t t
  24603. s,@LIB_SMB@,$LIB_SMB,;t t
  24604. s,@LIB_KAB@,$LIB_KAB,;t t
  24605. s,@LIB_KABC@,$LIB_KABC,;t t
  24606. s,@LIB_KHTML@,$LIB_KHTML,;t t
  24607. s,@LIB_KSPELL@,$LIB_KSPELL,;t t
  24608. s,@LIB_KPARTS@,$LIB_KPARTS,;t t
  24609. s,@LIB_KDEPRINT@,$LIB_KDEPRINT,;t t
  24610. s,@LIB_KSYCOCA@,$LIB_KSYCOCA,;t t
  24611. s,@LIB_KFILE@,$LIB_KFILE,;t t
  24612. s,@LIB_KFM@,$LIB_KFM,;t t
  24613. s,@TOPSUBDIRS@,$TOPSUBDIRS,;t t
  24614. s,@LIBOBJS@,$LIBOBJS,;t t
  24615. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  24616. CEOF
  24617. _ACEOF
  24618. cat >>$CONFIG_STATUS <<\_ACEOF
  24619. # Split the substitutions into bite-sized pieces for seds with
  24620. # small command number limits, like on Digital OSF/1 and HP-UX.
  24621. ac_max_sed_lines=48
  24622. ac_sed_frag=1 # Number of current file.
  24623. ac_beg=1 # First line for current file.
  24624. ac_end=$ac_max_sed_lines # Line after last line for current file.
  24625. ac_more_lines=:
  24626. ac_sed_cmds=
  24627. while $ac_more_lines; do
  24628. if test $ac_beg -gt 1; then
  24629. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  24630. else
  24631. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  24632. fi
  24633. if test ! -s $tmp/subs.frag; then
  24634. ac_more_lines=false
  24635. else
  24636. # The purpose of the label and of the branching condition is to
  24637. # speed up the sed processing (if there are no `@' at all, there
  24638. # is no need to browse any of the substitutions).
  24639. # These are the two extra sed commands mentioned above.
  24640. (echo ':t
  24641. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  24642. if test -z "$ac_sed_cmds"; then
  24643. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  24644. else
  24645. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  24646. fi
  24647. ac_sed_frag=`expr $ac_sed_frag + 1`
  24648. ac_beg=$ac_end
  24649. ac_end=`expr $ac_end + $ac_max_sed_lines`
  24650. fi
  24651. done
  24652. if test -z "$ac_sed_cmds"; then
  24653. ac_sed_cmds=cat
  24654. fi
  24655. fi # test -n "$CONFIG_FILES"
  24656. _ACEOF
  24657. cat >>$CONFIG_STATUS <<\_ACEOF
  24658. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  24659. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  24660. case $ac_file in
  24661. - | *:- | *:-:* ) # input from stdin
  24662. cat >$tmp/stdin
  24663. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  24664. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  24665. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  24666. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  24667. * ) ac_file_in=$ac_file.in ;;
  24668. esac
  24669. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  24670. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  24671. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24672. X"$ac_file" : 'X\(//\)[^/]' \| \
  24673. X"$ac_file" : 'X\(//\)$' \| \
  24674. X"$ac_file" : 'X\(/\)' \| \
  24675. . : '\(.\)' 2>/dev/null ||
  24676. echo X"$ac_file" |
  24677. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  24678. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  24679. /^X\(\/\/\)$/{ s//\1/; q; }
  24680. /^X\(\/\).*/{ s//\1/; q; }
  24681. s/.*/./; q'`
  24682. { if $as_mkdir_p; then
  24683. mkdir -p "$ac_dir"
  24684. else
  24685. as_dir="$ac_dir"
  24686. as_dirs=
  24687. while test ! -d "$as_dir"; do
  24688. as_dirs="$as_dir $as_dirs"
  24689. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  24690. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24691. X"$as_dir" : 'X\(//\)[^/]' \| \
  24692. X"$as_dir" : 'X\(//\)$' \| \
  24693. X"$as_dir" : 'X\(/\)' \| \
  24694. . : '\(.\)' 2>/dev/null ||
  24695. echo X"$as_dir" |
  24696. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  24697. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  24698. /^X\(\/\/\)$/{ s//\1/; q; }
  24699. /^X\(\/\).*/{ s//\1/; q; }
  24700. s/.*/./; q'`
  24701. done
  24702. test ! -n "$as_dirs" || mkdir $as_dirs
  24703. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  24704. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  24705. { (exit 1); exit 1; }; }; }
  24706. ac_builddir=.
  24707. if test "$ac_dir" != .; then
  24708. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  24709. # A "../" for each directory in $ac_dir_suffix.
  24710. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  24711. else
  24712. ac_dir_suffix= ac_top_builddir=
  24713. fi
  24714. case $srcdir in
  24715. .) # No --srcdir option. We are building in place.
  24716. ac_srcdir=.
  24717. if test -z "$ac_top_builddir"; then
  24718. ac_top_srcdir=.
  24719. else
  24720. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  24721. fi ;;
  24722. [\\/]* | ?:[\\/]* ) # Absolute path.
  24723. ac_srcdir=$srcdir$ac_dir_suffix;
  24724. ac_top_srcdir=$srcdir ;;
  24725. *) # Relative path.
  24726. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  24727. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  24728. esac
  24729. # Do not use `cd foo && pwd` to compute absolute paths, because
  24730. # the directories may not exist.
  24731. case `pwd` in
  24732. .) ac_abs_builddir="$ac_dir";;
  24733. *)
  24734. case "$ac_dir" in
  24735. .) ac_abs_builddir=`pwd`;;
  24736. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  24737. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  24738. esac;;
  24739. esac
  24740. case $ac_abs_builddir in
  24741. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  24742. *)
  24743. case ${ac_top_builddir}. in
  24744. .) ac_abs_top_builddir=$ac_abs_builddir;;
  24745. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  24746. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  24747. esac;;
  24748. esac
  24749. case $ac_abs_builddir in
  24750. .) ac_abs_srcdir=$ac_srcdir;;
  24751. *)
  24752. case $ac_srcdir in
  24753. .) ac_abs_srcdir=$ac_abs_builddir;;
  24754. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  24755. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  24756. esac;;
  24757. esac
  24758. case $ac_abs_builddir in
  24759. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  24760. *)
  24761. case $ac_top_srcdir in
  24762. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  24763. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  24764. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  24765. esac;;
  24766. esac
  24767. case $INSTALL in
  24768. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  24769. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  24770. esac
  24771. if test x"$ac_file" != x-; then
  24772. { echo "$as_me:$LINENO: creating $ac_file" >&5
  24773. echo "$as_me: creating $ac_file" >&6;}
  24774. rm -f "$ac_file"
  24775. fi
  24776. # Let's still pretend it is `configure' which instantiates (i.e., don't
  24777. # use $as_me), people would be surprised to read:
  24778. # /* config.h. Generated by config.status. */
  24779. if test x"$ac_file" = x-; then
  24780. configure_input=
  24781. else
  24782. configure_input="$ac_file. "
  24783. fi
  24784. configure_input=$configure_input"Generated from `echo $ac_file_in |
  24785. sed 's,.*/,,'` by configure."
  24786. # First look for the input files in the build tree, otherwise in the
  24787. # src tree.
  24788. ac_file_inputs=`IFS=:
  24789. for f in $ac_file_in; do
  24790. case $f in
  24791. -) echo $tmp/stdin ;;
  24792. [\\/$]*)
  24793. # Absolute (can't be DOS-style, as IFS=:)
  24794. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  24795. echo "$as_me: error: cannot find input file: $f" >&2;}
  24796. { (exit 1); exit 1; }; }
  24797. echo "$f";;
  24798. *) # Relative
  24799. if test -f "$f"; then
  24800. # Build tree
  24801. echo "$f"
  24802. elif test -f "$srcdir/$f"; then
  24803. # Source tree
  24804. echo "$srcdir/$f"
  24805. else
  24806. # /dev/null tree
  24807. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  24808. echo "$as_me: error: cannot find input file: $f" >&2;}
  24809. { (exit 1); exit 1; }; }
  24810. fi;;
  24811. esac
  24812. done` || { (exit 1); exit 1; }
  24813. _ACEOF
  24814. cat >>$CONFIG_STATUS <<_ACEOF
  24815. sed "$ac_vpsub
  24816. $extrasub
  24817. _ACEOF
  24818. cat >>$CONFIG_STATUS <<\_ACEOF
  24819. :t
  24820. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  24821. s,@configure_input@,$configure_input,;t t
  24822. s,@srcdir@,$ac_srcdir,;t t
  24823. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  24824. s,@top_srcdir@,$ac_top_srcdir,;t t
  24825. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  24826. s,@builddir@,$ac_builddir,;t t
  24827. s,@abs_builddir@,$ac_abs_builddir,;t t
  24828. s,@top_builddir@,$ac_top_builddir,;t t
  24829. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  24830. s,@INSTALL@,$ac_INSTALL,;t t
  24831. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  24832. rm -f $tmp/stdin
  24833. if test x"$ac_file" != x-; then
  24834. mv $tmp/out $ac_file
  24835. else
  24836. cat $tmp/out
  24837. rm -f $tmp/out
  24838. fi
  24839. done
  24840. _ACEOF
  24841. cat >>$CONFIG_STATUS <<\_ACEOF
  24842. #
  24843. # CONFIG_HEADER section.
  24844. #
  24845. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  24846. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  24847. #
  24848. # ac_d sets the value in "#define NAME VALUE" lines.
  24849. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  24850. ac_dB='[ ].*$,\1#\2'
  24851. ac_dC=' '
  24852. ac_dD=',;t'
  24853. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  24854. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  24855. ac_uB='$,\1#\2define\3'
  24856. ac_uC=' '
  24857. ac_uD=',;t'
  24858. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  24859. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  24860. case $ac_file in
  24861. - | *:- | *:-:* ) # input from stdin
  24862. cat >$tmp/stdin
  24863. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  24864. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  24865. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  24866. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  24867. * ) ac_file_in=$ac_file.in ;;
  24868. esac
  24869. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  24870. echo "$as_me: creating $ac_file" >&6;}
  24871. # First look for the input files in the build tree, otherwise in the
  24872. # src tree.
  24873. ac_file_inputs=`IFS=:
  24874. for f in $ac_file_in; do
  24875. case $f in
  24876. -) echo $tmp/stdin ;;
  24877. [\\/$]*)
  24878. # Absolute (can't be DOS-style, as IFS=:)
  24879. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  24880. echo "$as_me: error: cannot find input file: $f" >&2;}
  24881. { (exit 1); exit 1; }; }
  24882. # Do quote $f, to prevent DOS paths from being IFS'd.
  24883. echo "$f";;
  24884. *) # Relative
  24885. if test -f "$f"; then
  24886. # Build tree
  24887. echo "$f"
  24888. elif test -f "$srcdir/$f"; then
  24889. # Source tree
  24890. echo "$srcdir/$f"
  24891. else
  24892. # /dev/null tree
  24893. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  24894. echo "$as_me: error: cannot find input file: $f" >&2;}
  24895. { (exit 1); exit 1; }; }
  24896. fi;;
  24897. esac
  24898. done` || { (exit 1); exit 1; }
  24899. # Remove the trailing spaces.
  24900. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  24901. _ACEOF
  24902. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  24903. # `conftest.undefs', that substitutes the proper values into
  24904. # config.h.in to produce config.h. The first handles `#define'
  24905. # templates, and the second `#undef' templates.
  24906. # And first: Protect against being on the right side of a sed subst in
  24907. # config.status. Protect against being in an unquoted here document
  24908. # in config.status.
  24909. rm -f conftest.defines conftest.undefs
  24910. # Using a here document instead of a string reduces the quoting nightmare.
  24911. # Putting comments in sed scripts is not portable.
  24912. #
  24913. # `end' is used to avoid that the second main sed command (meant for
  24914. # 0-ary CPP macros) applies to n-ary macro definitions.
  24915. # See the Autoconf documentation for `clear'.
  24916. cat >confdef2sed.sed <<\_ACEOF
  24917. s/[\\&,]/\\&/g
  24918. s,[\\$`],\\&,g
  24919. t clear
  24920. : clear
  24921. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  24922. t end
  24923. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  24924. : end
  24925. _ACEOF
  24926. # If some macros were called several times there might be several times
  24927. # the same #defines, which is useless. Nevertheless, we may not want to
  24928. # sort them, since we want the *last* AC-DEFINE to be honored.
  24929. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  24930. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  24931. rm -f confdef2sed.sed
  24932. # This sed command replaces #undef with comments. This is necessary, for
  24933. # example, in the case of _POSIX_SOURCE, which is predefined and required
  24934. # on some systems where configure will not decide to define it.
  24935. cat >>conftest.undefs <<\_ACEOF
  24936. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  24937. _ACEOF
  24938. # Break up conftest.defines because some shells have a limit on the size
  24939. # of here documents, and old seds have small limits too (100 cmds).
  24940. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  24941. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  24942. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  24943. echo ' :' >>$CONFIG_STATUS
  24944. rm -f conftest.tail
  24945. while grep . conftest.defines >/dev/null
  24946. do
  24947. # Write a limited-size here document to $tmp/defines.sed.
  24948. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  24949. # Speed up: don't consider the non `#define' lines.
  24950. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  24951. # Work around the forget-to-reset-the-flag bug.
  24952. echo 't clr' >>$CONFIG_STATUS
  24953. echo ': clr' >>$CONFIG_STATUS
  24954. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  24955. echo 'CEOF
  24956. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  24957. rm -f $tmp/in
  24958. mv $tmp/out $tmp/in
  24959. ' >>$CONFIG_STATUS
  24960. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  24961. rm -f conftest.defines
  24962. mv conftest.tail conftest.defines
  24963. done
  24964. rm -f conftest.defines
  24965. echo ' fi # grep' >>$CONFIG_STATUS
  24966. echo >>$CONFIG_STATUS
  24967. # Break up conftest.undefs because some shells have a limit on the size
  24968. # of here documents, and old seds have small limits too (100 cmds).
  24969. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  24970. rm -f conftest.tail
  24971. while grep . conftest.undefs >/dev/null
  24972. do
  24973. # Write a limited-size here document to $tmp/undefs.sed.
  24974. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  24975. # Speed up: don't consider the non `#undef'
  24976. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  24977. # Work around the forget-to-reset-the-flag bug.
  24978. echo 't clr' >>$CONFIG_STATUS
  24979. echo ': clr' >>$CONFIG_STATUS
  24980. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  24981. echo 'CEOF
  24982. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  24983. rm -f $tmp/in
  24984. mv $tmp/out $tmp/in
  24985. ' >>$CONFIG_STATUS
  24986. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  24987. rm -f conftest.undefs
  24988. mv conftest.tail conftest.undefs
  24989. done
  24990. rm -f conftest.undefs
  24991. cat >>$CONFIG_STATUS <<\_ACEOF
  24992. # Let's still pretend it is `configure' which instantiates (i.e., don't
  24993. # use $as_me), people would be surprised to read:
  24994. # /* config.h. Generated by config.status. */
  24995. if test x"$ac_file" = x-; then
  24996. echo "/* Generated by configure. */" >$tmp/config.h
  24997. else
  24998. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  24999. fi
  25000. cat $tmp/in >>$tmp/config.h
  25001. rm -f $tmp/in
  25002. if test x"$ac_file" != x-; then
  25003. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  25004. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  25005. echo "$as_me: $ac_file is unchanged" >&6;}
  25006. else
  25007. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  25008. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25009. X"$ac_file" : 'X\(//\)[^/]' \| \
  25010. X"$ac_file" : 'X\(//\)$' \| \
  25011. X"$ac_file" : 'X\(/\)' \| \
  25012. . : '\(.\)' 2>/dev/null ||
  25013. echo X"$ac_file" |
  25014. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25015. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25016. /^X\(\/\/\)$/{ s//\1/; q; }
  25017. /^X\(\/\).*/{ s//\1/; q; }
  25018. s/.*/./; q'`
  25019. { if $as_mkdir_p; then
  25020. mkdir -p "$ac_dir"
  25021. else
  25022. as_dir="$ac_dir"
  25023. as_dirs=
  25024. while test ! -d "$as_dir"; do
  25025. as_dirs="$as_dir $as_dirs"
  25026. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  25027. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25028. X"$as_dir" : 'X\(//\)[^/]' \| \
  25029. X"$as_dir" : 'X\(//\)$' \| \
  25030. X"$as_dir" : 'X\(/\)' \| \
  25031. . : '\(.\)' 2>/dev/null ||
  25032. echo X"$as_dir" |
  25033. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25034. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25035. /^X\(\/\/\)$/{ s//\1/; q; }
  25036. /^X\(\/\).*/{ s//\1/; q; }
  25037. s/.*/./; q'`
  25038. done
  25039. test ! -n "$as_dirs" || mkdir $as_dirs
  25040. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  25041. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  25042. { (exit 1); exit 1; }; }; }
  25043. rm -f $ac_file
  25044. mv $tmp/config.h $ac_file
  25045. fi
  25046. else
  25047. cat $tmp/config.h
  25048. rm -f $tmp/config.h
  25049. fi
  25050. # Compute $ac_file's index in $config_headers.
  25051. _am_stamp_count=1
  25052. for _am_header in $config_headers :; do
  25053. case $_am_header in
  25054. $ac_file | $ac_file:* )
  25055. break ;;
  25056. * )
  25057. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  25058. esac
  25059. done
  25060. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  25061. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25062. X$ac_file : 'X\(//\)[^/]' \| \
  25063. X$ac_file : 'X\(//\)$' \| \
  25064. X$ac_file : 'X\(/\)' \| \
  25065. . : '\(.\)' 2>/dev/null ||
  25066. echo X$ac_file |
  25067. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25068. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25069. /^X\(\/\/\)$/{ s//\1/; q; }
  25070. /^X\(\/\).*/{ s//\1/; q; }
  25071. s/.*/./; q'`/stamp-h$_am_stamp_count
  25072. done
  25073. _ACEOF
  25074. cat >>$CONFIG_STATUS <<\_ACEOF
  25075. #
  25076. # CONFIG_COMMANDS section.
  25077. #
  25078. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  25079. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  25080. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  25081. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  25082. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25083. X"$ac_dest" : 'X\(//\)[^/]' \| \
  25084. X"$ac_dest" : 'X\(//\)$' \| \
  25085. X"$ac_dest" : 'X\(/\)' \| \
  25086. . : '\(.\)' 2>/dev/null ||
  25087. echo X"$ac_dest" |
  25088. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25089. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25090. /^X\(\/\/\)$/{ s//\1/; q; }
  25091. /^X\(\/\).*/{ s//\1/; q; }
  25092. s/.*/./; q'`
  25093. { if $as_mkdir_p; then
  25094. mkdir -p "$ac_dir"
  25095. else
  25096. as_dir="$ac_dir"
  25097. as_dirs=
  25098. while test ! -d "$as_dir"; do
  25099. as_dirs="$as_dir $as_dirs"
  25100. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  25101. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25102. X"$as_dir" : 'X\(//\)[^/]' \| \
  25103. X"$as_dir" : 'X\(//\)$' \| \
  25104. X"$as_dir" : 'X\(/\)' \| \
  25105. . : '\(.\)' 2>/dev/null ||
  25106. echo X"$as_dir" |
  25107. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25108. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25109. /^X\(\/\/\)$/{ s//\1/; q; }
  25110. /^X\(\/\).*/{ s//\1/; q; }
  25111. s/.*/./; q'`
  25112. done
  25113. test ! -n "$as_dirs" || mkdir $as_dirs
  25114. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  25115. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  25116. { (exit 1); exit 1; }; }; }
  25117. ac_builddir=.
  25118. if test "$ac_dir" != .; then
  25119. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  25120. # A "../" for each directory in $ac_dir_suffix.
  25121. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  25122. else
  25123. ac_dir_suffix= ac_top_builddir=
  25124. fi
  25125. case $srcdir in
  25126. .) # No --srcdir option. We are building in place.
  25127. ac_srcdir=.
  25128. if test -z "$ac_top_builddir"; then
  25129. ac_top_srcdir=.
  25130. else
  25131. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  25132. fi ;;
  25133. [\\/]* | ?:[\\/]* ) # Absolute path.
  25134. ac_srcdir=$srcdir$ac_dir_suffix;
  25135. ac_top_srcdir=$srcdir ;;
  25136. *) # Relative path.
  25137. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  25138. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  25139. esac
  25140. # Do not use `cd foo && pwd` to compute absolute paths, because
  25141. # the directories may not exist.
  25142. case `pwd` in
  25143. .) ac_abs_builddir="$ac_dir";;
  25144. *)
  25145. case "$ac_dir" in
  25146. .) ac_abs_builddir=`pwd`;;
  25147. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  25148. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  25149. esac;;
  25150. esac
  25151. case $ac_abs_builddir in
  25152. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  25153. *)
  25154. case ${ac_top_builddir}. in
  25155. .) ac_abs_top_builddir=$ac_abs_builddir;;
  25156. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  25157. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  25158. esac;;
  25159. esac
  25160. case $ac_abs_builddir in
  25161. .) ac_abs_srcdir=$ac_srcdir;;
  25162. *)
  25163. case $ac_srcdir in
  25164. .) ac_abs_srcdir=$ac_abs_builddir;;
  25165. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  25166. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  25167. esac;;
  25168. esac
  25169. case $ac_abs_builddir in
  25170. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  25171. *)
  25172. case $ac_top_srcdir in
  25173. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  25174. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  25175. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  25176. esac;;
  25177. esac
  25178. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  25179. echo "$as_me: executing $ac_dest commands" >&6;}
  25180. case $ac_dest in
  25181. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  25182. # Strip MF so we end up with the name of the file.
  25183. mf=`echo "$mf" | sed -e 's/:.*$//'`
  25184. # Check whether this is an Automake generated Makefile or not.
  25185. # We used to match only the files named `Makefile.in', but
  25186. # some people rename them; so instead we look at the file content.
  25187. # Grep'ing the first line is not enough: some people post-process
  25188. # each Makefile.in and add a new line on top of each file to say so.
  25189. # So let's grep whole file.
  25190. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  25191. dirpart=`(dirname "$mf") 2>/dev/null ||
  25192. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25193. X"$mf" : 'X\(//\)[^/]' \| \
  25194. X"$mf" : 'X\(//\)$' \| \
  25195. X"$mf" : 'X\(/\)' \| \
  25196. . : '\(.\)' 2>/dev/null ||
  25197. echo X"$mf" |
  25198. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25199. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25200. /^X\(\/\/\)$/{ s//\1/; q; }
  25201. /^X\(\/\).*/{ s//\1/; q; }
  25202. s/.*/./; q'`
  25203. else
  25204. continue
  25205. fi
  25206. # Extract the definition of DEPDIR, am__include, and am__quote
  25207. # from the Makefile without running `make'.
  25208. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  25209. test -z "$DEPDIR" && continue
  25210. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  25211. test -z "am__include" && continue
  25212. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  25213. # When using ansi2knr, U may be empty or an underscore; expand it
  25214. U=`sed -n 's/^U = //p' < "$mf"`
  25215. # Find all dependency output files, they are included files with
  25216. # $(DEPDIR) in their names. We invoke sed twice because it is the
  25217. # simplest approach to changing $(DEPDIR) to its actual value in the
  25218. # expansion.
  25219. for file in `sed -n "
  25220. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  25221. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  25222. # Make sure the directory exists.
  25223. test -f "$dirpart/$file" && continue
  25224. fdir=`(dirname "$file") 2>/dev/null ||
  25225. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25226. X"$file" : 'X\(//\)[^/]' \| \
  25227. X"$file" : 'X\(//\)$' \| \
  25228. X"$file" : 'X\(/\)' \| \
  25229. . : '\(.\)' 2>/dev/null ||
  25230. echo X"$file" |
  25231. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25232. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25233. /^X\(\/\/\)$/{ s//\1/; q; }
  25234. /^X\(\/\).*/{ s//\1/; q; }
  25235. s/.*/./; q'`
  25236. { if $as_mkdir_p; then
  25237. mkdir -p $dirpart/$fdir
  25238. else
  25239. as_dir=$dirpart/$fdir
  25240. as_dirs=
  25241. while test ! -d "$as_dir"; do
  25242. as_dirs="$as_dir $as_dirs"
  25243. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  25244. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25245. X"$as_dir" : 'X\(//\)[^/]' \| \
  25246. X"$as_dir" : 'X\(//\)$' \| \
  25247. X"$as_dir" : 'X\(/\)' \| \
  25248. . : '\(.\)' 2>/dev/null ||
  25249. echo X"$as_dir" |
  25250. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25251. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25252. /^X\(\/\/\)$/{ s//\1/; q; }
  25253. /^X\(\/\).*/{ s//\1/; q; }
  25254. s/.*/./; q'`
  25255. done
  25256. test ! -n "$as_dirs" || mkdir $as_dirs
  25257. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  25258. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  25259. { (exit 1); exit 1; }; }; }
  25260. # echo "creating $dirpart/$file"
  25261. echo '# dummy' > "$dirpart/$file"
  25262. done
  25263. done
  25264. ;;
  25265. esac
  25266. done
  25267. _ACEOF
  25268. cat >>$CONFIG_STATUS <<\_ACEOF
  25269. { (exit 0); exit 0; }
  25270. _ACEOF
  25271. if test "x$with_fast_perl" = "xyes"; then
  25272. perl -i.bak $ac_aux_dir/conf.change.pl $CONFIG_STATUS \
  25273. || mv $CONFIG_STATUS.bak $CONFIG_STATUS
  25274. rm -f $CONFIG_STATUS.bak
  25275. fi
  25276. chmod +x $CONFIG_STATUS
  25277. ac_clean_files=$ac_clean_files_save
  25278. # configure is writing to config.log, and then calls config.status.
  25279. # config.status does its own redirection, appending to config.log.
  25280. # Unfortunately, on DOS this fails, as config.log is still kept open
  25281. # by configure, so config.status won't be able to write to it; its
  25282. # output is simply discarded. So we exec the FD to /dev/null,
  25283. # effectively closing config.log, so it can be properly (re)opened and
  25284. # appended to by config.status. When coming back to configure, we
  25285. # need to make the FD available again.
  25286. if test "$no_create" != yes; then
  25287. ac_cs_success=:
  25288. ac_config_status_args=
  25289. test "$silent" = yes &&
  25290. ac_config_status_args="$ac_config_status_args --quiet"
  25291. exec 5>/dev/null
  25292. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  25293. exec 5>>config.log
  25294. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  25295. # would make configure fail if this is the last instruction.
  25296. $ac_cs_success || { (exit 1); exit 1; }
  25297. fi
  25298. if test "$all_tests" = "bad"; then
  25299. if test ! "$cache_file" = "/dev/null"; then
  25300. echo ""
  25301. echo "Please remove the file $cache_file after changing your setup"
  25302. echo "so that configure will find the changes next time."
  25303. echo ""
  25304. fi
  25305. else
  25306. echo ""
  25307. echo "Good - your configure finished. Start make now"
  25308. echo ""
  25309. fi