configure 925 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for curl -.
  4. #
  5. # Report bugs to <curl-bug@haxx.se>.
  6. #
  7. # Copyright (C) 2003 Free Software Foundation, Inc.
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10. #
  11. # Copyright (c) 1998 - 2004 Daniel Stenberg, <daniel@haxx.se>
  12. # This configure script may be copied, distributed and modified under the
  13. # terms of the curl license; see COPYING for more details
  14. ## --------------------- ##
  15. ## M4sh Initialization. ##
  16. ## --------------------- ##
  17. # Be Bourne compatible
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  19. emulate sh
  20. NULLCMD=:
  21. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  25. set -o posix
  26. fi
  27. DUALCASE=1; export DUALCASE # for MKS sh
  28. # Support unset when possible.
  29. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  30. as_unset=unset
  31. else
  32. as_unset=false
  33. fi
  34. # Work around bugs in pre-3.0 UWIN ksh.
  35. $as_unset ENV MAIL MAILPATH
  36. PS1='$ '
  37. PS2='> '
  38. PS4='+ '
  39. # NLS nuisances.
  40. for as_var in \
  41. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  42. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  43. LC_TELEPHONE LC_TIME
  44. do
  45. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  46. eval $as_var=C; export $as_var
  47. else
  48. $as_unset $as_var
  49. fi
  50. done
  51. # Required to use basename.
  52. if expr a : '\(a\)' >/dev/null 2>&1; then
  53. as_expr=expr
  54. else
  55. as_expr=false
  56. fi
  57. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  58. as_basename=basename
  59. else
  60. as_basename=false
  61. fi
  62. # Name of the executable.
  63. as_me=`$as_basename "$0" ||
  64. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  65. X"$0" : 'X\(//\)$' \| \
  66. X"$0" : 'X\(/\)$' \| \
  67. . : '\(.\)' 2>/dev/null ||
  68. echo X/"$0" |
  69. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  70. /^X\/\(\/\/\)$/{ s//\1/; q; }
  71. /^X\/\(\/\).*/{ s//\1/; q; }
  72. s/.*/./; q'`
  73. # PATH needs CR, and LINENO needs CR and PATH.
  74. # Avoid depending upon Character Ranges.
  75. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  76. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  77. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  78. as_cr_digits='0123456789'
  79. as_cr_alnum=$as_cr_Letters$as_cr_digits
  80. # The user is always right.
  81. if test "${PATH_SEPARATOR+set}" != set; then
  82. echo "#! /bin/sh" >conf$$.sh
  83. echo "exit 0" >>conf$$.sh
  84. chmod +x conf$$.sh
  85. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  86. PATH_SEPARATOR=';'
  87. else
  88. PATH_SEPARATOR=:
  89. fi
  90. rm -f conf$$.sh
  91. fi
  92. as_lineno_1=$LINENO
  93. as_lineno_2=$LINENO
  94. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  95. test "x$as_lineno_1" != "x$as_lineno_2" &&
  96. test "x$as_lineno_3" = "x$as_lineno_2" || {
  97. # Find who we are. Look in the path if we contain no path at all
  98. # relative or not.
  99. case $0 in
  100. *[\\/]* ) as_myself=$0 ;;
  101. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  102. for as_dir in $PATH
  103. do
  104. IFS=$as_save_IFS
  105. test -z "$as_dir" && as_dir=.
  106. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  107. done
  108. ;;
  109. esac
  110. # We did not find ourselves, most probably we were run as `sh COMMAND'
  111. # in which case we are not to be found in the path.
  112. if test "x$as_myself" = x; then
  113. as_myself=$0
  114. fi
  115. if test ! -f "$as_myself"; then
  116. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  117. { (exit 1); exit 1; }; }
  118. fi
  119. case $CONFIG_SHELL in
  120. '')
  121. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  122. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  123. do
  124. IFS=$as_save_IFS
  125. test -z "$as_dir" && as_dir=.
  126. for as_base in sh bash ksh sh5; do
  127. case $as_dir in
  128. /*)
  129. if ("$as_dir/$as_base" -c '
  130. as_lineno_1=$LINENO
  131. as_lineno_2=$LINENO
  132. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  133. test "x$as_lineno_1" != "x$as_lineno_2" &&
  134. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  135. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  136. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  137. CONFIG_SHELL=$as_dir/$as_base
  138. export CONFIG_SHELL
  139. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  140. fi;;
  141. esac
  142. done
  143. done
  144. ;;
  145. esac
  146. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  147. # uniformly replaced by the line number. The first 'sed' inserts a
  148. # line-number line before each line; the second 'sed' does the real
  149. # work. The second script uses 'N' to pair each line-number line
  150. # with the numbered line, and appends trailing '-' during
  151. # substitution so that $LINENO is not a special case at line end.
  152. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  153. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  154. sed '=' <$as_myself |
  155. sed '
  156. N
  157. s,$,-,
  158. : loop
  159. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  160. t loop
  161. s,-$,,
  162. s,^['$as_cr_digits']*\n,,
  163. ' >$as_me.lineno &&
  164. chmod +x $as_me.lineno ||
  165. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  166. { (exit 1); exit 1; }; }
  167. # Don't try to exec as it changes $[0], causing all sort of problems
  168. # (the dirname of $[0] is not the place where we might find the
  169. # original and so on. Autoconf is especially sensible to this).
  170. . ./$as_me.lineno
  171. # Exit status is that of the last command.
  172. exit
  173. }
  174. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  175. *c*,-n*) ECHO_N= ECHO_C='
  176. ' ECHO_T=' ' ;;
  177. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  178. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  179. esac
  180. if expr a : '\(a\)' >/dev/null 2>&1; then
  181. as_expr=expr
  182. else
  183. as_expr=false
  184. fi
  185. rm -f conf$$ conf$$.exe conf$$.file
  186. echo >conf$$.file
  187. if ln -s conf$$.file conf$$ 2>/dev/null; then
  188. # We could just check for DJGPP; but this test a) works b) is more generic
  189. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  190. if test -f conf$$.exe; then
  191. # Don't use ln at all; we don't have any links
  192. as_ln_s='cp -p'
  193. else
  194. as_ln_s='ln -s'
  195. fi
  196. elif ln conf$$.file conf$$ 2>/dev/null; then
  197. as_ln_s=ln
  198. else
  199. as_ln_s='cp -p'
  200. fi
  201. rm -f conf$$ conf$$.exe conf$$.file
  202. if mkdir -p . 2>/dev/null; then
  203. as_mkdir_p=:
  204. else
  205. test -d ./-p && rmdir ./-p
  206. as_mkdir_p=false
  207. fi
  208. as_executable_p="test -f"
  209. # Sed expression to map a string onto a valid CPP name.
  210. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  211. # Sed expression to map a string onto a valid variable name.
  212. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  213. # IFS
  214. # We need space, tab and new line, in precisely that order.
  215. as_nl='
  216. '
  217. IFS=" $as_nl"
  218. # CDPATH.
  219. $as_unset CDPATH
  220. # Check that we are running under the correct shell.
  221. SHELL=${CONFIG_SHELL-/bin/sh}
  222. case X$ECHO in
  223. X*--fallback-echo)
  224. # Remove one level of quotation (which was required for Make).
  225. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  226. ;;
  227. esac
  228. echo=${ECHO-echo}
  229. if test "X$1" = X--no-reexec; then
  230. # Discard the --no-reexec flag, and continue.
  231. shift
  232. elif test "X$1" = X--fallback-echo; then
  233. # Avoid inline document here, it may be left over
  234. :
  235. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  236. # Yippee, $echo works!
  237. :
  238. else
  239. # Restart under the correct shell.
  240. exec $SHELL "$0" --no-reexec ${1+"$@"}
  241. fi
  242. if test "X$1" = X--fallback-echo; then
  243. # used as fallback echo
  244. shift
  245. cat <<EOF
  246. $*
  247. EOF
  248. exit 0
  249. fi
  250. # The HP-UX ksh and POSIX shell print the target directory to stdout
  251. # if CDPATH is set.
  252. if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  253. if test -z "$ECHO"; then
  254. if test "X${echo_test_string+set}" != Xset; then
  255. # find a string as large as possible, as long as the shell can cope with it
  256. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  257. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  258. if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  259. echo_test_string="`eval $cmd`" &&
  260. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  261. then
  262. break
  263. fi
  264. done
  265. fi
  266. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  267. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  268. test "X$echo_testing_string" = "X$echo_test_string"; then
  269. :
  270. else
  271. # The Solaris, AIX, and Digital Unix default echo programs unquote
  272. # backslashes. This makes it impossible to quote backslashes using
  273. # echo "$something" | sed 's/\\/\\\\/g'
  274. #
  275. # So, first we look for a working echo in the user's PATH.
  276. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  277. for dir in $PATH /usr/ucb; do
  278. IFS="$lt_save_ifs"
  279. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  280. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  281. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  282. test "X$echo_testing_string" = "X$echo_test_string"; then
  283. echo="$dir/echo"
  284. break
  285. fi
  286. done
  287. IFS="$lt_save_ifs"
  288. if test "X$echo" = Xecho; then
  289. # We didn't find a better echo, so look for alternatives.
  290. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  291. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  292. test "X$echo_testing_string" = "X$echo_test_string"; then
  293. # This shell has a builtin print -r that does the trick.
  294. echo='print -r'
  295. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  296. test "X$CONFIG_SHELL" != X/bin/ksh; then
  297. # If we have ksh, try running configure again with it.
  298. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  299. export ORIGINAL_CONFIG_SHELL
  300. CONFIG_SHELL=/bin/ksh
  301. export CONFIG_SHELL
  302. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  303. else
  304. # Try using printf.
  305. echo='printf %s\n'
  306. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  307. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  308. test "X$echo_testing_string" = "X$echo_test_string"; then
  309. # Cool, printf works
  310. :
  311. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  312. test "X$echo_testing_string" = 'X\t' &&
  313. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  314. test "X$echo_testing_string" = "X$echo_test_string"; then
  315. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  316. export CONFIG_SHELL
  317. SHELL="$CONFIG_SHELL"
  318. export SHELL
  319. echo="$CONFIG_SHELL $0 --fallback-echo"
  320. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  321. test "X$echo_testing_string" = 'X\t' &&
  322. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  323. test "X$echo_testing_string" = "X$echo_test_string"; then
  324. echo="$CONFIG_SHELL $0 --fallback-echo"
  325. else
  326. # maybe with a smaller string...
  327. prev=:
  328. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  329. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  330. then
  331. break
  332. fi
  333. prev="$cmd"
  334. done
  335. if test "$prev" != 'sed 50q "$0"'; then
  336. echo_test_string=`eval $prev`
  337. export echo_test_string
  338. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  339. else
  340. # Oops. We lost completely, so just stick with echo.
  341. echo=echo
  342. fi
  343. fi
  344. fi
  345. fi
  346. fi
  347. fi
  348. # Copy echo and quote the copy suitably for passing to libtool from
  349. # the Makefile, instead of quoting the original, which is used later.
  350. ECHO=$echo
  351. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  352. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  353. fi
  354. tagnames=${tagnames+${tagnames},}CXX
  355. tagnames=${tagnames+${tagnames},}F77
  356. # Name of the host.
  357. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  358. # so uname gets run too.
  359. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  360. exec 6>&1
  361. #
  362. # Initializations.
  363. #
  364. ac_default_prefix=/usr/local
  365. ac_config_libobj_dir=.
  366. cross_compiling=no
  367. subdirs=
  368. MFLAGS=
  369. MAKEFLAGS=
  370. SHELL=${CONFIG_SHELL-/bin/sh}
  371. # Maximum number of lines to put in a shell here document.
  372. # This variable seems obsolete. It should probably be removed, and
  373. # only ac_max_sed_lines should be used.
  374. : ${ac_max_here_lines=38}
  375. # Identity of this package.
  376. PACKAGE_NAME='curl'
  377. PACKAGE_TARNAME='curl'
  378. PACKAGE_VERSION='-'
  379. PACKAGE_STRING='curl -'
  380. PACKAGE_BUGREPORT='curl-bug@haxx.se'
  381. ac_unique_file="lib/urldata.h"
  382. # Factoring default headers for most tests.
  383. ac_includes_default="\
  384. #include <stdio.h>
  385. #if HAVE_SYS_TYPES_H
  386. # include <sys/types.h>
  387. #endif
  388. #if HAVE_SYS_STAT_H
  389. # include <sys/stat.h>
  390. #endif
  391. #if STDC_HEADERS
  392. # include <stdlib.h>
  393. # include <stddef.h>
  394. #else
  395. # if HAVE_STDLIB_H
  396. # include <stdlib.h>
  397. # endif
  398. #endif
  399. #if HAVE_STRING_H
  400. # if !STDC_HEADERS && HAVE_MEMORY_H
  401. # include <memory.h>
  402. # endif
  403. # include <string.h>
  404. #endif
  405. #if HAVE_STRINGS_H
  406. # include <strings.h>
  407. #endif
  408. #if HAVE_INTTYPES_H
  409. # include <inttypes.h>
  410. #else
  411. # if HAVE_STDINT_H
  412. # include <stdint.h>
  413. # endif
  414. #endif
  415. #if HAVE_UNISTD_H
  416. # include <unistd.h>
  417. #endif"
  418. ac_subdirs_all="$ac_subdirs_all ares"
  419. 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT SED AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot VERSIONNUM PKGADD_PKG PKGADD_NAME PKGADD_VENDOR build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL NO_UNDEFINED_TRUE NO_UNDEFINED_FALSE MIMPURE_TRUE MIMPURE_FALSE CURL_DISABLE_HTTP CURL_DISABLE_GOPHER CURL_DISABLE_FTP CURL_DISABLE_FILE CURL_DISABLE_LDAP CURL_DISABLE_DICT CURL_DISABLE_TELNET IPV6_ENABLED RANDOM_FILE KRB4_ENABLED PKGCONFIG OPENSSL_ENABLED CURL_CA_BUNDLE CABUNDLE_TRUE CABUNDLE_FALSE HAVE_LIBZ HAVE_LIBZ_TRUE HAVE_LIBZ_FALSE PERL NROFF MANOPT YACC USE_MANUAL_TRUE USE_MANUAL_FALSE HAVE_ARES subdirs LIBOBJS LTLIBOBJS'
  420. ac_subst_files=''
  421. # Initialize some variables set by options.
  422. ac_init_help=
  423. ac_init_version=false
  424. # The variables have the same names as the options, with
  425. # dashes changed to underlines.
  426. cache_file=/dev/null
  427. exec_prefix=NONE
  428. no_create=
  429. no_recursion=
  430. prefix=NONE
  431. program_prefix=NONE
  432. program_suffix=NONE
  433. program_transform_name=s,x,x,
  434. silent=
  435. site=
  436. srcdir=
  437. verbose=
  438. x_includes=NONE
  439. x_libraries=NONE
  440. # Installation directory options.
  441. # These are left unexpanded so users can "make install exec_prefix=/foo"
  442. # and all the variables that are supposed to be based on exec_prefix
  443. # by default will actually change.
  444. # Use braces instead of parens because sh, perl, etc. also accept them.
  445. bindir='${exec_prefix}/bin'
  446. sbindir='${exec_prefix}/sbin'
  447. libexecdir='${exec_prefix}/libexec'
  448. datadir='${prefix}/share'
  449. sysconfdir='${prefix}/etc'
  450. sharedstatedir='${prefix}/com'
  451. localstatedir='${prefix}/var'
  452. libdir='${exec_prefix}/lib'
  453. includedir='${prefix}/include'
  454. oldincludedir='/usr/include'
  455. infodir='${prefix}/info'
  456. mandir='${prefix}/man'
  457. ac_prev=
  458. for ac_option
  459. do
  460. # If the previous option needs an argument, assign it.
  461. if test -n "$ac_prev"; then
  462. eval "$ac_prev=\$ac_option"
  463. ac_prev=
  464. continue
  465. fi
  466. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  467. # Accept the important Cygnus configure options, so we can diagnose typos.
  468. case $ac_option in
  469. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  470. ac_prev=bindir ;;
  471. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  472. bindir=$ac_optarg ;;
  473. -build | --build | --buil | --bui | --bu)
  474. ac_prev=build_alias ;;
  475. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  476. build_alias=$ac_optarg ;;
  477. -cache-file | --cache-file | --cache-fil | --cache-fi \
  478. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  479. ac_prev=cache_file ;;
  480. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  481. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  482. cache_file=$ac_optarg ;;
  483. --config-cache | -C)
  484. cache_file=config.cache ;;
  485. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  486. ac_prev=datadir ;;
  487. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  488. | --da=*)
  489. datadir=$ac_optarg ;;
  490. -disable-* | --disable-*)
  491. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  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. eval "enable_$ac_feature=no" ;;
  498. -enable-* | --enable-*)
  499. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  500. # Reject names that are not valid shell variable names.
  501. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  502. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  503. { (exit 1); exit 1; }; }
  504. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  505. case $ac_option in
  506. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  507. *) ac_optarg=yes ;;
  508. esac
  509. eval "enable_$ac_feature='$ac_optarg'" ;;
  510. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  511. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  512. | --exec | --exe | --ex)
  513. ac_prev=exec_prefix ;;
  514. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  515. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  516. | --exec=* | --exe=* | --ex=*)
  517. exec_prefix=$ac_optarg ;;
  518. -gas | --gas | --ga | --g)
  519. # Obsolete; use --with-gas.
  520. with_gas=yes ;;
  521. -help | --help | --hel | --he | -h)
  522. ac_init_help=long ;;
  523. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  524. ac_init_help=recursive ;;
  525. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  526. ac_init_help=short ;;
  527. -host | --host | --hos | --ho)
  528. ac_prev=host_alias ;;
  529. -host=* | --host=* | --hos=* | --ho=*)
  530. host_alias=$ac_optarg ;;
  531. -includedir | --includedir | --includedi | --included | --include \
  532. | --includ | --inclu | --incl | --inc)
  533. ac_prev=includedir ;;
  534. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  535. | --includ=* | --inclu=* | --incl=* | --inc=*)
  536. includedir=$ac_optarg ;;
  537. -infodir | --infodir | --infodi | --infod | --info | --inf)
  538. ac_prev=infodir ;;
  539. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  540. infodir=$ac_optarg ;;
  541. -libdir | --libdir | --libdi | --libd)
  542. ac_prev=libdir ;;
  543. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  544. libdir=$ac_optarg ;;
  545. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  546. | --libexe | --libex | --libe)
  547. ac_prev=libexecdir ;;
  548. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  549. | --libexe=* | --libex=* | --libe=*)
  550. libexecdir=$ac_optarg ;;
  551. -localstatedir | --localstatedir | --localstatedi | --localstated \
  552. | --localstate | --localstat | --localsta | --localst \
  553. | --locals | --local | --loca | --loc | --lo)
  554. ac_prev=localstatedir ;;
  555. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  556. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  557. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  558. localstatedir=$ac_optarg ;;
  559. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  560. ac_prev=mandir ;;
  561. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  562. mandir=$ac_optarg ;;
  563. -nfp | --nfp | --nf)
  564. # Obsolete; use --without-fp.
  565. with_fp=no ;;
  566. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  567. | --no-cr | --no-c | -n)
  568. no_create=yes ;;
  569. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  570. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  571. no_recursion=yes ;;
  572. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  573. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  574. | --oldin | --oldi | --old | --ol | --o)
  575. ac_prev=oldincludedir ;;
  576. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  577. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  578. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  579. oldincludedir=$ac_optarg ;;
  580. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  581. ac_prev=prefix ;;
  582. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  583. prefix=$ac_optarg ;;
  584. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  585. | --program-pre | --program-pr | --program-p)
  586. ac_prev=program_prefix ;;
  587. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  588. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  589. program_prefix=$ac_optarg ;;
  590. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  591. | --program-suf | --program-su | --program-s)
  592. ac_prev=program_suffix ;;
  593. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  594. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  595. program_suffix=$ac_optarg ;;
  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. ac_prev=program_transform_name ;;
  604. -program-transform-name=* | --program-transform-name=* \
  605. | --program-transform-nam=* | --program-transform-na=* \
  606. | --program-transform-n=* | --program-transform-=* \
  607. | --program-transform=* | --program-transfor=* \
  608. | --program-transfo=* | --program-transf=* \
  609. | --program-trans=* | --program-tran=* \
  610. | --progr-tra=* | --program-tr=* | --program-t=*)
  611. program_transform_name=$ac_optarg ;;
  612. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  613. | -silent | --silent | --silen | --sile | --sil)
  614. silent=yes ;;
  615. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  616. ac_prev=sbindir ;;
  617. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  618. | --sbi=* | --sb=*)
  619. sbindir=$ac_optarg ;;
  620. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  621. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  622. | --sharedst | --shareds | --shared | --share | --shar \
  623. | --sha | --sh)
  624. ac_prev=sharedstatedir ;;
  625. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  626. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  627. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  628. | --sha=* | --sh=*)
  629. sharedstatedir=$ac_optarg ;;
  630. -site | --site | --sit)
  631. ac_prev=site ;;
  632. -site=* | --site=* | --sit=*)
  633. site=$ac_optarg ;;
  634. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  635. ac_prev=srcdir ;;
  636. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  637. srcdir=$ac_optarg ;;
  638. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  639. | --syscon | --sysco | --sysc | --sys | --sy)
  640. ac_prev=sysconfdir ;;
  641. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  642. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  643. sysconfdir=$ac_optarg ;;
  644. -target | --target | --targe | --targ | --tar | --ta | --t)
  645. ac_prev=target_alias ;;
  646. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  647. target_alias=$ac_optarg ;;
  648. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  649. verbose=yes ;;
  650. -version | --version | --versio | --versi | --vers | -V)
  651. ac_init_version=: ;;
  652. -with-* | --with-*)
  653. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  654. # Reject names that are not valid shell variable names.
  655. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  656. { echo "$as_me: error: invalid package name: $ac_package" >&2
  657. { (exit 1); exit 1; }; }
  658. ac_package=`echo $ac_package| sed 's/-/_/g'`
  659. case $ac_option in
  660. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  661. *) ac_optarg=yes ;;
  662. esac
  663. eval "with_$ac_package='$ac_optarg'" ;;
  664. -without-* | --without-*)
  665. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  666. # Reject names that are not valid shell variable names.
  667. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  668. { echo "$as_me: error: invalid package name: $ac_package" >&2
  669. { (exit 1); exit 1; }; }
  670. ac_package=`echo $ac_package | sed 's/-/_/g'`
  671. eval "with_$ac_package=no" ;;
  672. --x)
  673. # Obsolete; use --with-x.
  674. with_x=yes ;;
  675. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  676. | --x-incl | --x-inc | --x-in | --x-i)
  677. ac_prev=x_includes ;;
  678. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  679. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  680. x_includes=$ac_optarg ;;
  681. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  682. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  683. ac_prev=x_libraries ;;
  684. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  685. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  686. x_libraries=$ac_optarg ;;
  687. -*) { echo "$as_me: error: unrecognized option: $ac_option
  688. Try \`$0 --help' for more information." >&2
  689. { (exit 1); exit 1; }; }
  690. ;;
  691. *=*)
  692. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  693. # Reject names that are not valid shell variable names.
  694. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  695. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  696. { (exit 1); exit 1; }; }
  697. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  698. eval "$ac_envvar='$ac_optarg'"
  699. export $ac_envvar ;;
  700. *)
  701. # FIXME: should be removed in autoconf 3.0.
  702. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  703. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  704. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  705. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  706. ;;
  707. esac
  708. done
  709. if test -n "$ac_prev"; then
  710. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  711. { echo "$as_me: error: missing argument to $ac_option" >&2
  712. { (exit 1); exit 1; }; }
  713. fi
  714. # Be sure to have absolute paths.
  715. for ac_var in exec_prefix prefix
  716. do
  717. eval ac_val=$`echo $ac_var`
  718. case $ac_val in
  719. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  720. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  721. { (exit 1); exit 1; }; };;
  722. esac
  723. done
  724. # Be sure to have absolute paths.
  725. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  726. localstatedir libdir includedir oldincludedir infodir mandir
  727. do
  728. eval ac_val=$`echo $ac_var`
  729. case $ac_val in
  730. [\\/$]* | ?:[\\/]* ) ;;
  731. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  732. { (exit 1); exit 1; }; };;
  733. esac
  734. done
  735. # There might be people who depend on the old broken behavior: `$host'
  736. # used to hold the argument of --host etc.
  737. # FIXME: To remove some day.
  738. build=$build_alias
  739. host=$host_alias
  740. target=$target_alias
  741. # FIXME: To remove some day.
  742. if test "x$host_alias" != x; then
  743. if test "x$build_alias" = x; then
  744. cross_compiling=maybe
  745. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  746. If a cross compiler is detected then cross compile mode will be used." >&2
  747. elif test "x$build_alias" != "x$host_alias"; then
  748. cross_compiling=yes
  749. fi
  750. fi
  751. ac_tool_prefix=
  752. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  753. test "$silent" = yes && exec 6>/dev/null
  754. # Find the source files, if location was not specified.
  755. if test -z "$srcdir"; then
  756. ac_srcdir_defaulted=yes
  757. # Try the directory containing this script, then its parent.
  758. ac_confdir=`(dirname "$0") 2>/dev/null ||
  759. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  760. X"$0" : 'X\(//\)[^/]' \| \
  761. X"$0" : 'X\(//\)$' \| \
  762. X"$0" : 'X\(/\)' \| \
  763. . : '\(.\)' 2>/dev/null ||
  764. echo X"$0" |
  765. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  766. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  767. /^X\(\/\/\)$/{ s//\1/; q; }
  768. /^X\(\/\).*/{ s//\1/; q; }
  769. s/.*/./; q'`
  770. srcdir=$ac_confdir
  771. if test ! -r $srcdir/$ac_unique_file; then
  772. srcdir=..
  773. fi
  774. else
  775. ac_srcdir_defaulted=no
  776. fi
  777. if test ! -r $srcdir/$ac_unique_file; then
  778. if test "$ac_srcdir_defaulted" = yes; then
  779. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  780. { (exit 1); exit 1; }; }
  781. else
  782. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  783. { (exit 1); exit 1; }; }
  784. fi
  785. fi
  786. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  787. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  788. { (exit 1); exit 1; }; }
  789. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  790. ac_env_build_alias_set=${build_alias+set}
  791. ac_env_build_alias_value=$build_alias
  792. ac_cv_env_build_alias_set=${build_alias+set}
  793. ac_cv_env_build_alias_value=$build_alias
  794. ac_env_host_alias_set=${host_alias+set}
  795. ac_env_host_alias_value=$host_alias
  796. ac_cv_env_host_alias_set=${host_alias+set}
  797. ac_cv_env_host_alias_value=$host_alias
  798. ac_env_target_alias_set=${target_alias+set}
  799. ac_env_target_alias_value=$target_alias
  800. ac_cv_env_target_alias_set=${target_alias+set}
  801. ac_cv_env_target_alias_value=$target_alias
  802. ac_env_CC_set=${CC+set}
  803. ac_env_CC_value=$CC
  804. ac_cv_env_CC_set=${CC+set}
  805. ac_cv_env_CC_value=$CC
  806. ac_env_CFLAGS_set=${CFLAGS+set}
  807. ac_env_CFLAGS_value=$CFLAGS
  808. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  809. ac_cv_env_CFLAGS_value=$CFLAGS
  810. ac_env_LDFLAGS_set=${LDFLAGS+set}
  811. ac_env_LDFLAGS_value=$LDFLAGS
  812. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  813. ac_cv_env_LDFLAGS_value=$LDFLAGS
  814. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  815. ac_env_CPPFLAGS_value=$CPPFLAGS
  816. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  817. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  818. ac_env_CPP_set=${CPP+set}
  819. ac_env_CPP_value=$CPP
  820. ac_cv_env_CPP_set=${CPP+set}
  821. ac_cv_env_CPP_value=$CPP
  822. ac_env_CXX_set=${CXX+set}
  823. ac_env_CXX_value=$CXX
  824. ac_cv_env_CXX_set=${CXX+set}
  825. ac_cv_env_CXX_value=$CXX
  826. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  827. ac_env_CXXFLAGS_value=$CXXFLAGS
  828. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  829. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  830. ac_env_CXXCPP_set=${CXXCPP+set}
  831. ac_env_CXXCPP_value=$CXXCPP
  832. ac_cv_env_CXXCPP_set=${CXXCPP+set}
  833. ac_cv_env_CXXCPP_value=$CXXCPP
  834. ac_env_F77_set=${F77+set}
  835. ac_env_F77_value=$F77
  836. ac_cv_env_F77_set=${F77+set}
  837. ac_cv_env_F77_value=$F77
  838. ac_env_FFLAGS_set=${FFLAGS+set}
  839. ac_env_FFLAGS_value=$FFLAGS
  840. ac_cv_env_FFLAGS_set=${FFLAGS+set}
  841. ac_cv_env_FFLAGS_value=$FFLAGS
  842. #
  843. # Report the --help message.
  844. #
  845. if test "$ac_init_help" = "long"; then
  846. # Omit some internal or obsolete options to make the list less imposing.
  847. # This message is too long to be a string in the A/UX 3.1 sh.
  848. cat <<_ACEOF
  849. \`configure' configures curl - to adapt to many kinds of systems.
  850. Usage: $0 [OPTION]... [VAR=VALUE]...
  851. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  852. VAR=VALUE. See below for descriptions of some of the useful variables.
  853. Defaults for the options are specified in brackets.
  854. Configuration:
  855. -h, --help display this help and exit
  856. --help=short display options specific to this package
  857. --help=recursive display the short help of all the included packages
  858. -V, --version display version information and exit
  859. -q, --quiet, --silent do not print \`checking...' messages
  860. --cache-file=FILE cache test results in FILE [disabled]
  861. -C, --config-cache alias for \`--cache-file=config.cache'
  862. -n, --no-create do not create output files
  863. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  864. _ACEOF
  865. cat <<_ACEOF
  866. Installation directories:
  867. --prefix=PREFIX install architecture-independent files in PREFIX
  868. [$ac_default_prefix]
  869. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  870. [PREFIX]
  871. By default, \`make install' will install all the files in
  872. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  873. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  874. for instance \`--prefix=\$HOME'.
  875. For better control, use the options below.
  876. Fine tuning of the installation directories:
  877. --bindir=DIR user executables [EPREFIX/bin]
  878. --sbindir=DIR system admin executables [EPREFIX/sbin]
  879. --libexecdir=DIR program executables [EPREFIX/libexec]
  880. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  881. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  882. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  883. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  884. --libdir=DIR object code libraries [EPREFIX/lib]
  885. --includedir=DIR C header files [PREFIX/include]
  886. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  887. --infodir=DIR info documentation [PREFIX/info]
  888. --mandir=DIR man documentation [PREFIX/man]
  889. _ACEOF
  890. cat <<\_ACEOF
  891. Program names:
  892. --program-prefix=PREFIX prepend PREFIX to installed program names
  893. --program-suffix=SUFFIX append SUFFIX to installed program names
  894. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  895. System types:
  896. --build=BUILD configure for building on BUILD [guessed]
  897. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  898. _ACEOF
  899. fi
  900. if test -n "$ac_init_help"; then
  901. case $ac_init_help in
  902. short | recursive ) echo "Configuration of curl -:";;
  903. esac
  904. cat <<\_ACEOF
  905. Optional Features:
  906. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  907. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  908. --enable-maintainer-mode enable make rules and dependencies not useful
  909. (and sometimes confusing) to the casual installer
  910. --disable-dependency-tracking speeds up one-time build
  911. --enable-dependency-tracking do not reject slow dependency extractors
  912. --disable-largefile omit support for large files
  913. --enable-shared[=PKGS]
  914. build shared libraries [default=yes]
  915. --enable-static[=PKGS]
  916. build static libraries [default=yes]
  917. --enable-fast-install[=PKGS]
  918. optimize for fast installation [default=yes]
  919. --disable-libtool-lock avoid locking (might break parallel builds)
  920. --enable-http Enable HTTP support
  921. --disable-http Disable HTTP support
  922. --enable-ftp Enable FTP support
  923. --disable-ftp Disable FTP support
  924. --enable-gopher Enable GOPHER support
  925. --disable-gopher Disable GOPHER support
  926. --enable-file Enable FILE support
  927. --disable-file Disable FILE support
  928. --enable-ldap Enable LDAP support
  929. --disable-ldap Disable LDAP support
  930. --enable-dict Enable DICT support
  931. --disable-dict Disable DICT support
  932. --enable-telnet Enable TELNET support
  933. --disable-telnet Disable TELNET support
  934. --enable-manual Enable built-in manual
  935. --disable-manual Disable built-in manual
  936. --enable-libgcc use libgcc when linking
  937. --enable-ipv6 Enable ipv6 (with ipv4) support
  938. --disable-ipv6 Disable ipv6 support
  939. --enable-nonblocking Enable detecting how to do it
  940. --disable-nonblocking Disable non-blocking socket detection
  941. --disable-thread don't look for thread-safe functions
  942. --enable-thread look for thread-safe functions
  943. --enable-debug Enable pedantic debug options
  944. --disable-debug Disable debug options
  945. --enable-ares=PATH Enable ares for name lookups
  946. --disable-ares Disable ares for name lookups
  947. Optional Packages:
  948. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  949. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  950. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  951. --with-pic try to use only PIC/non-PIC objects [default=use
  952. both]
  953. --with-tags[=TAGS]
  954. include additional configurations [automatic]
  955. --with-egd-socket=FILE Entropy Gathering Daemon socket pathname
  956. --with-random=FILE read randomness from FILE (default=/dev/urandom)
  957. --with-krb4-includes=DIR
  958. Specify location of kerberos4 headers
  959. --with-krb4-libs=DIR Specify location of kerberos4 libs
  960. --with-krb4=DIR where to look for Kerberos4
  961. --with-spnego=DIR Specify location of SPNEGO library fbopenssl
  962. --with-gssapi-includes=DIR
  963. Specify location of GSSAPI header
  964. --with-gssapi-libs=DIR Specify location of GSSAPI libs
  965. --with-gssapi=DIR Where to look for GSSAPI
  966. --with-ssl=PATH where to look for SSL, PATH points to the SSL
  967. installation (default: /usr/local/ssl)
  968. --without-ssl disable SSL
  969. --with-ca-bundle=FILE File name to install the CA bundle as
  970. --without-ca-bundle Don't install the CA bundle
  971. --with-zlib=PATH search for zlib in PATH
  972. --without-zlib disable use of zlib
  973. Some influential environment variables:
  974. CC C compiler command
  975. CFLAGS C compiler flags
  976. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  977. nonstandard directory <lib dir>
  978. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  979. headers in a nonstandard directory <include dir>
  980. CPP C preprocessor
  981. CXX C++ compiler command
  982. CXXFLAGS C++ compiler flags
  983. CXXCPP C++ preprocessor
  984. F77 Fortran 77 compiler command
  985. FFLAGS Fortran 77 compiler flags
  986. Use these variables to override the choices made by `configure' or to help
  987. it to find libraries and programs with nonstandard names/locations.
  988. Report bugs to <curl-bug@haxx.se>.
  989. _ACEOF
  990. fi
  991. if test "$ac_init_help" = "recursive"; then
  992. # If there are subdirs, report their specific --help.
  993. ac_popdir=`pwd`
  994. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  995. test -d $ac_dir || continue
  996. ac_builddir=.
  997. if test "$ac_dir" != .; then
  998. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  999. # A "../" for each directory in $ac_dir_suffix.
  1000. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  1001. else
  1002. ac_dir_suffix= ac_top_builddir=
  1003. fi
  1004. case $srcdir in
  1005. .) # No --srcdir option. We are building in place.
  1006. ac_srcdir=.
  1007. if test -z "$ac_top_builddir"; then
  1008. ac_top_srcdir=.
  1009. else
  1010. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  1011. fi ;;
  1012. [\\/]* | ?:[\\/]* ) # Absolute path.
  1013. ac_srcdir=$srcdir$ac_dir_suffix;
  1014. ac_top_srcdir=$srcdir ;;
  1015. *) # Relative path.
  1016. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  1017. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  1018. esac
  1019. # Do not use `cd foo && pwd` to compute absolute paths, because
  1020. # the directories may not exist.
  1021. case `pwd` in
  1022. .) ac_abs_builddir="$ac_dir";;
  1023. *)
  1024. case "$ac_dir" in
  1025. .) ac_abs_builddir=`pwd`;;
  1026. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  1027. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  1028. esac;;
  1029. esac
  1030. case $ac_abs_builddir in
  1031. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  1032. *)
  1033. case ${ac_top_builddir}. in
  1034. .) ac_abs_top_builddir=$ac_abs_builddir;;
  1035. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  1036. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  1037. esac;;
  1038. esac
  1039. case $ac_abs_builddir in
  1040. .) ac_abs_srcdir=$ac_srcdir;;
  1041. *)
  1042. case $ac_srcdir in
  1043. .) ac_abs_srcdir=$ac_abs_builddir;;
  1044. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  1045. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  1046. esac;;
  1047. esac
  1048. case $ac_abs_builddir in
  1049. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  1050. *)
  1051. case $ac_top_srcdir in
  1052. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  1053. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  1054. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  1055. esac;;
  1056. esac
  1057. cd $ac_dir
  1058. # Check for guested configure; otherwise get Cygnus style configure.
  1059. if test -f $ac_srcdir/configure.gnu; then
  1060. echo
  1061. $SHELL $ac_srcdir/configure.gnu --help=recursive
  1062. elif test -f $ac_srcdir/configure; then
  1063. echo
  1064. $SHELL $ac_srcdir/configure --help=recursive
  1065. elif test -f $ac_srcdir/configure.ac ||
  1066. test -f $ac_srcdir/configure.in; then
  1067. echo
  1068. $ac_configure --help
  1069. else
  1070. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1071. fi
  1072. cd $ac_popdir
  1073. done
  1074. fi
  1075. test -n "$ac_init_help" && exit 0
  1076. if $ac_init_version; then
  1077. cat <<\_ACEOF
  1078. curl configure -
  1079. generated by GNU Autoconf 2.59
  1080. Copyright (C) 2003 Free Software Foundation, Inc.
  1081. This configure script is free software; the Free Software Foundation
  1082. gives unlimited permission to copy, distribute and modify it.
  1083. Copyright (c) 1998 - 2004 Daniel Stenberg, <daniel@haxx.se>
  1084. This configure script may be copied, distributed and modified under the
  1085. terms of the curl license; see COPYING for more details
  1086. _ACEOF
  1087. exit 0
  1088. fi
  1089. exec 5>config.log
  1090. cat >&5 <<_ACEOF
  1091. This file contains any messages produced by compilers while
  1092. running configure, to aid debugging if configure makes a mistake.
  1093. It was created by curl $as_me -, which was
  1094. generated by GNU Autoconf 2.59. Invocation command line was
  1095. $ $0 $@
  1096. _ACEOF
  1097. {
  1098. cat <<_ASUNAME
  1099. ## --------- ##
  1100. ## Platform. ##
  1101. ## --------- ##
  1102. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1103. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1104. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1105. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1106. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1107. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1108. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1109. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1110. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1111. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1112. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  1113. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1114. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1115. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1116. _ASUNAME
  1117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1118. for as_dir in $PATH
  1119. do
  1120. IFS=$as_save_IFS
  1121. test -z "$as_dir" && as_dir=.
  1122. echo "PATH: $as_dir"
  1123. done
  1124. } >&5
  1125. cat >&5 <<_ACEOF
  1126. ## ----------- ##
  1127. ## Core tests. ##
  1128. ## ----------- ##
  1129. _ACEOF
  1130. # Keep a trace of the command line.
  1131. # Strip out --no-create and --no-recursion so they do not pile up.
  1132. # Strip out --silent because we don't want to record it for future runs.
  1133. # Also quote any args containing shell meta-characters.
  1134. # Make two passes to allow for proper duplicate-argument suppression.
  1135. ac_configure_args=
  1136. ac_configure_args0=
  1137. ac_configure_args1=
  1138. ac_sep=
  1139. ac_must_keep_next=false
  1140. for ac_pass in 1 2
  1141. do
  1142. for ac_arg
  1143. do
  1144. case $ac_arg in
  1145. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1146. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1147. | -silent | --silent | --silen | --sile | --sil)
  1148. continue ;;
  1149. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1150. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1151. esac
  1152. case $ac_pass in
  1153. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1154. 2)
  1155. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1156. if test $ac_must_keep_next = true; then
  1157. ac_must_keep_next=false # Got value, back to normal.
  1158. else
  1159. case $ac_arg in
  1160. *=* | --config-cache | -C | -disable-* | --disable-* \
  1161. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1162. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1163. | -with-* | --with-* | -without-* | --without-* | --x)
  1164. case "$ac_configure_args0 " in
  1165. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1166. esac
  1167. ;;
  1168. -* ) ac_must_keep_next=true ;;
  1169. esac
  1170. fi
  1171. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1172. # Get rid of the leading space.
  1173. ac_sep=" "
  1174. ;;
  1175. esac
  1176. done
  1177. done
  1178. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1179. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1180. # When interrupted or exit'd, cleanup temporary files, and complete
  1181. # config.log. We remove comments because anyway the quotes in there
  1182. # would cause problems or look ugly.
  1183. # WARNING: Be sure not to use single quotes in there, as some shells,
  1184. # such as our DU 5.0 friend, will then `close' the trap.
  1185. trap 'exit_status=$?
  1186. # Save into config.log some information that might help in debugging.
  1187. {
  1188. echo
  1189. cat <<\_ASBOX
  1190. ## ---------------- ##
  1191. ## Cache variables. ##
  1192. ## ---------------- ##
  1193. _ASBOX
  1194. echo
  1195. # The following way of writing the cache mishandles newlines in values,
  1196. {
  1197. (set) 2>&1 |
  1198. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1199. *ac_space=\ *)
  1200. sed -n \
  1201. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1202. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1203. ;;
  1204. *)
  1205. sed -n \
  1206. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1207. ;;
  1208. esac;
  1209. }
  1210. echo
  1211. cat <<\_ASBOX
  1212. ## ----------------- ##
  1213. ## Output variables. ##
  1214. ## ----------------- ##
  1215. _ASBOX
  1216. echo
  1217. for ac_var in $ac_subst_vars
  1218. do
  1219. eval ac_val=$`echo $ac_var`
  1220. echo "$ac_var='"'"'$ac_val'"'"'"
  1221. done | sort
  1222. echo
  1223. if test -n "$ac_subst_files"; then
  1224. cat <<\_ASBOX
  1225. ## ------------- ##
  1226. ## Output files. ##
  1227. ## ------------- ##
  1228. _ASBOX
  1229. echo
  1230. for ac_var in $ac_subst_files
  1231. do
  1232. eval ac_val=$`echo $ac_var`
  1233. echo "$ac_var='"'"'$ac_val'"'"'"
  1234. done | sort
  1235. echo
  1236. fi
  1237. if test -s confdefs.h; then
  1238. cat <<\_ASBOX
  1239. ## ----------- ##
  1240. ## confdefs.h. ##
  1241. ## ----------- ##
  1242. _ASBOX
  1243. echo
  1244. sed "/^$/d" confdefs.h | sort
  1245. echo
  1246. fi
  1247. test "$ac_signal" != 0 &&
  1248. echo "$as_me: caught signal $ac_signal"
  1249. echo "$as_me: exit $exit_status"
  1250. } >&5
  1251. rm -f core *.core &&
  1252. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1253. exit $exit_status
  1254. ' 0
  1255. for ac_signal in 1 2 13 15; do
  1256. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1257. done
  1258. ac_signal=0
  1259. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1260. rm -rf conftest* confdefs.h
  1261. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1262. echo >confdefs.h
  1263. # Predefined preprocessor variables.
  1264. cat >>confdefs.h <<_ACEOF
  1265. #define PACKAGE_NAME "$PACKAGE_NAME"
  1266. _ACEOF
  1267. cat >>confdefs.h <<_ACEOF
  1268. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1269. _ACEOF
  1270. cat >>confdefs.h <<_ACEOF
  1271. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1272. _ACEOF
  1273. cat >>confdefs.h <<_ACEOF
  1274. #define PACKAGE_STRING "$PACKAGE_STRING"
  1275. _ACEOF
  1276. cat >>confdefs.h <<_ACEOF
  1277. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1278. _ACEOF
  1279. # Let the site file select an alternate cache file if it wants to.
  1280. # Prefer explicitly selected file to automatically selected ones.
  1281. if test -z "$CONFIG_SITE"; then
  1282. if test "x$prefix" != xNONE; then
  1283. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1284. else
  1285. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1286. fi
  1287. fi
  1288. for ac_site_file in $CONFIG_SITE; do
  1289. if test -r "$ac_site_file"; then
  1290. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1291. echo "$as_me: loading site script $ac_site_file" >&6;}
  1292. sed 's/^/| /' "$ac_site_file" >&5
  1293. . "$ac_site_file"
  1294. fi
  1295. done
  1296. if test -r "$cache_file"; then
  1297. # Some versions of bash will fail to source /dev/null (special
  1298. # files actually), so we avoid doing that.
  1299. if test -f "$cache_file"; then
  1300. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1301. echo "$as_me: loading cache $cache_file" >&6;}
  1302. case $cache_file in
  1303. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1304. *) . ./$cache_file;;
  1305. esac
  1306. fi
  1307. else
  1308. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1309. echo "$as_me: creating cache $cache_file" >&6;}
  1310. >$cache_file
  1311. fi
  1312. # Check that the precious variables saved in the cache have kept the same
  1313. # value.
  1314. ac_cache_corrupted=false
  1315. for ac_var in `(set) 2>&1 |
  1316. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1317. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1318. eval ac_new_set=\$ac_env_${ac_var}_set
  1319. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1320. eval ac_new_val="\$ac_env_${ac_var}_value"
  1321. case $ac_old_set,$ac_new_set in
  1322. set,)
  1323. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1324. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1325. ac_cache_corrupted=: ;;
  1326. ,set)
  1327. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1328. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1329. ac_cache_corrupted=: ;;
  1330. ,);;
  1331. *)
  1332. if test "x$ac_old_val" != "x$ac_new_val"; then
  1333. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1334. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1335. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1336. echo "$as_me: former value: $ac_old_val" >&2;}
  1337. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1338. echo "$as_me: current value: $ac_new_val" >&2;}
  1339. ac_cache_corrupted=:
  1340. fi;;
  1341. esac
  1342. # Pass precious variables to config.status.
  1343. if test "$ac_new_set" = set; then
  1344. case $ac_new_val in
  1345. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1346. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1347. *) ac_arg=$ac_var=$ac_new_val ;;
  1348. esac
  1349. case " $ac_configure_args " in
  1350. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1351. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1352. esac
  1353. fi
  1354. done
  1355. if $ac_cache_corrupted; then
  1356. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1357. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1358. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1359. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1360. { (exit 1); exit 1; }; }
  1361. fi
  1362. ac_ext=c
  1363. ac_cpp='$CPP $CPPFLAGS'
  1364. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1365. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1366. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1367. ac_config_headers="$ac_config_headers lib/config.h src/config.h"
  1368. echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  1369. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
  1370. # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  1371. if test "${enable_maintainer_mode+set}" = set; then
  1372. enableval="$enable_maintainer_mode"
  1373. USE_MAINTAINER_MODE=$enableval
  1374. else
  1375. USE_MAINTAINER_MODE=no
  1376. fi;
  1377. echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  1378. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
  1379. if test $USE_MAINTAINER_MODE = yes; then
  1380. MAINTAINER_MODE_TRUE=
  1381. MAINTAINER_MODE_FALSE='#'
  1382. else
  1383. MAINTAINER_MODE_TRUE='#'
  1384. MAINTAINER_MODE_FALSE=
  1385. fi
  1386. MAINT=$MAINTAINER_MODE_TRUE
  1387. # Extract the first word of "sed", so it can be a program name with args.
  1388. set dummy sed; ac_word=$2
  1389. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1390. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1391. if test "${ac_cv_path_SED+set}" = set; then
  1392. echo $ECHO_N "(cached) $ECHO_C" >&6
  1393. else
  1394. case $SED in
  1395. [\\/]* | ?:[\\/]*)
  1396. ac_cv_path_SED="$SED" # Let the user override the test with a path.
  1397. ;;
  1398. *)
  1399. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1400. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  1401. for as_dir in $as_dummy
  1402. do
  1403. IFS=$as_save_IFS
  1404. test -z "$as_dir" && as_dir=.
  1405. for ac_exec_ext in '' $ac_executable_extensions; do
  1406. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1407. ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
  1408. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1409. break 2
  1410. fi
  1411. done
  1412. done
  1413. ;;
  1414. esac
  1415. fi
  1416. SED=$ac_cv_path_SED
  1417. if test -n "$SED"; then
  1418. echo "$as_me:$LINENO: result: $SED" >&5
  1419. echo "${ECHO_T}$SED" >&6
  1420. else
  1421. echo "$as_me:$LINENO: result: no" >&5
  1422. echo "${ECHO_T}no" >&6
  1423. fi
  1424. # Extract the first word of "ar", so it can be a program name with args.
  1425. set dummy ar; ac_word=$2
  1426. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1427. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1428. if test "${ac_cv_path_AR+set}" = set; then
  1429. echo $ECHO_N "(cached) $ECHO_C" >&6
  1430. else
  1431. case $AR in
  1432. [\\/]* | ?:[\\/]*)
  1433. ac_cv_path_AR="$AR" # Let the user override the test with a path.
  1434. ;;
  1435. *)
  1436. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1437. as_dummy="$PATH:/usr/bin:/usr/local/bin:/usr/ccs/bin"
  1438. for as_dir in $as_dummy
  1439. do
  1440. IFS=$as_save_IFS
  1441. test -z "$as_dir" && as_dir=.
  1442. for ac_exec_ext in '' $ac_executable_extensions; do
  1443. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1444. ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
  1445. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1446. break 2
  1447. fi
  1448. done
  1449. done
  1450. ;;
  1451. esac
  1452. fi
  1453. AR=$ac_cv_path_AR
  1454. if test -n "$AR"; then
  1455. echo "$as_me:$LINENO: result: $AR" >&5
  1456. echo "${ECHO_T}$AR" >&6
  1457. else
  1458. echo "$as_me:$LINENO: result: no" >&5
  1459. echo "${ECHO_T}no" >&6
  1460. fi
  1461. VERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curl.h`
  1462. am__api_version="1.8"
  1463. ac_aux_dir=
  1464. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1465. if test -f $ac_dir/install-sh; then
  1466. ac_aux_dir=$ac_dir
  1467. ac_install_sh="$ac_aux_dir/install-sh -c"
  1468. break
  1469. elif test -f $ac_dir/install.sh; then
  1470. ac_aux_dir=$ac_dir
  1471. ac_install_sh="$ac_aux_dir/install.sh -c"
  1472. break
  1473. elif test -f $ac_dir/shtool; then
  1474. ac_aux_dir=$ac_dir
  1475. ac_install_sh="$ac_aux_dir/shtool install -c"
  1476. break
  1477. fi
  1478. done
  1479. if test -z "$ac_aux_dir"; then
  1480. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1481. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1482. { (exit 1); exit 1; }; }
  1483. fi
  1484. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1485. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1486. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1487. # Find a good install program. We prefer a C program (faster),
  1488. # so one script is as good as another. But avoid the broken or
  1489. # incompatible versions:
  1490. # SysV /etc/install, /usr/sbin/install
  1491. # SunOS /usr/etc/install
  1492. # IRIX /sbin/install
  1493. # AIX /bin/install
  1494. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1495. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1496. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1497. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1498. # OS/2's system install, which has a completely different semantic
  1499. # ./install, which can be erroneously created by make from ./install.sh.
  1500. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1501. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1502. if test -z "$INSTALL"; then
  1503. if test "${ac_cv_path_install+set}" = set; then
  1504. echo $ECHO_N "(cached) $ECHO_C" >&6
  1505. else
  1506. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1507. for as_dir in $PATH
  1508. do
  1509. IFS=$as_save_IFS
  1510. test -z "$as_dir" && as_dir=.
  1511. # Account for people who put trailing slashes in PATH elements.
  1512. case $as_dir/ in
  1513. ./ | .// | /cC/* | \
  1514. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1515. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1516. /usr/ucb/* ) ;;
  1517. *)
  1518. # OSF1 and SCO ODT 3.0 have their own names for install.
  1519. # Don't use installbsd from OSF since it installs stuff as root
  1520. # by default.
  1521. for ac_prog in ginstall scoinst install; do
  1522. for ac_exec_ext in '' $ac_executable_extensions; do
  1523. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1524. if test $ac_prog = install &&
  1525. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1526. # AIX install. It has an incompatible calling convention.
  1527. :
  1528. elif test $ac_prog = install &&
  1529. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1530. # program-specific install script used by HP pwplus--don't use.
  1531. :
  1532. else
  1533. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1534. break 3
  1535. fi
  1536. fi
  1537. done
  1538. done
  1539. ;;
  1540. esac
  1541. done
  1542. fi
  1543. if test "${ac_cv_path_install+set}" = set; then
  1544. INSTALL=$ac_cv_path_install
  1545. else
  1546. # As a last resort, use the slow shell script. We don't cache a
  1547. # path for INSTALL within a source directory, because that will
  1548. # break other packages using the cache if that directory is
  1549. # removed, or if the path is relative.
  1550. INSTALL=$ac_install_sh
  1551. fi
  1552. fi
  1553. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1554. echo "${ECHO_T}$INSTALL" >&6
  1555. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1556. # It thinks the first close brace ends the variable substitution.
  1557. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1558. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1559. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1560. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1561. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1562. # Just in case
  1563. sleep 1
  1564. echo timestamp > conftest.file
  1565. # Do `set' in a subshell so we don't clobber the current shell's
  1566. # arguments. Must try -L first in case configure is actually a
  1567. # symlink; some systems play weird games with the mod time of symlinks
  1568. # (eg FreeBSD returns the mod time of the symlink's containing
  1569. # directory).
  1570. if (
  1571. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1572. if test "$*" = "X"; then
  1573. # -L didn't work.
  1574. set X `ls -t $srcdir/configure conftest.file`
  1575. fi
  1576. rm -f conftest.file
  1577. if test "$*" != "X $srcdir/configure conftest.file" \
  1578. && test "$*" != "X conftest.file $srcdir/configure"; then
  1579. # If neither matched, then we have a broken ls. This can happen
  1580. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1581. # broken ls alias from the environment. This has actually
  1582. # happened. Such a system could not be considered "sane".
  1583. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1584. alias in your environment" >&5
  1585. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1586. alias in your environment" >&2;}
  1587. { (exit 1); exit 1; }; }
  1588. fi
  1589. test "$2" = conftest.file
  1590. )
  1591. then
  1592. # Ok.
  1593. :
  1594. else
  1595. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1596. Check your system clock" >&5
  1597. echo "$as_me: error: newly created file is older than distributed files!
  1598. Check your system clock" >&2;}
  1599. { (exit 1); exit 1; }; }
  1600. fi
  1601. echo "$as_me:$LINENO: result: yes" >&5
  1602. echo "${ECHO_T}yes" >&6
  1603. test "$program_prefix" != NONE &&
  1604. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1605. # Use a double $ so make ignores it.
  1606. test "$program_suffix" != NONE &&
  1607. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1608. # Double any \ or $. echo might interpret backslashes.
  1609. # By default was `s,x,x', remove it if useless.
  1610. cat <<\_ACEOF >conftest.sed
  1611. s/[\\$]/&&/g;s/;s,x,x,$//
  1612. _ACEOF
  1613. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1614. rm conftest.sed
  1615. # expand $ac_aux_dir to an absolute path
  1616. am_aux_dir=`cd $ac_aux_dir && pwd`
  1617. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1618. # Use eval to expand $SHELL
  1619. if eval "$MISSING --run true"; then
  1620. am_missing_run="$MISSING --run "
  1621. else
  1622. am_missing_run=
  1623. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1624. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1625. fi
  1626. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1627. # Keeping the `.' argument allows $(mkdir_p) to be used without
  1628. # argument. Indeed, we sometimes output rules like
  1629. # $(mkdir_p) $(somedir)
  1630. # where $(somedir) is conditionally defined.
  1631. # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
  1632. # expensive solution, as it forces Make to start a sub-shell.)
  1633. mkdir_p='mkdir -p -- .'
  1634. else
  1635. # On NextStep and OpenStep, the `mkdir' command does not
  1636. # recognize any option. It will interpret all options as
  1637. # directories to create, and then abort because `.' already
  1638. # exists.
  1639. for d in ./-p ./--version;
  1640. do
  1641. test -d $d && rmdir $d
  1642. done
  1643. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1644. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1645. mkdir_p='$(mkinstalldirs)'
  1646. else
  1647. mkdir_p='$(install_sh) -d'
  1648. fi
  1649. fi
  1650. for ac_prog in gawk mawk nawk awk
  1651. do
  1652. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1653. set dummy $ac_prog; ac_word=$2
  1654. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1655. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1656. if test "${ac_cv_prog_AWK+set}" = set; then
  1657. echo $ECHO_N "(cached) $ECHO_C" >&6
  1658. else
  1659. if test -n "$AWK"; then
  1660. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1661. else
  1662. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1663. for as_dir in $PATH
  1664. do
  1665. IFS=$as_save_IFS
  1666. test -z "$as_dir" && as_dir=.
  1667. for ac_exec_ext in '' $ac_executable_extensions; do
  1668. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1669. ac_cv_prog_AWK="$ac_prog"
  1670. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1671. break 2
  1672. fi
  1673. done
  1674. done
  1675. fi
  1676. fi
  1677. AWK=$ac_cv_prog_AWK
  1678. if test -n "$AWK"; then
  1679. echo "$as_me:$LINENO: result: $AWK" >&5
  1680. echo "${ECHO_T}$AWK" >&6
  1681. else
  1682. echo "$as_me:$LINENO: result: no" >&5
  1683. echo "${ECHO_T}no" >&6
  1684. fi
  1685. test -n "$AWK" && break
  1686. done
  1687. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1688. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1689. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1690. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1691. echo $ECHO_N "(cached) $ECHO_C" >&6
  1692. else
  1693. cat >conftest.make <<\_ACEOF
  1694. all:
  1695. @echo 'ac_maketemp="$(MAKE)"'
  1696. _ACEOF
  1697. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1698. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1699. if test -n "$ac_maketemp"; then
  1700. eval ac_cv_prog_make_${ac_make}_set=yes
  1701. else
  1702. eval ac_cv_prog_make_${ac_make}_set=no
  1703. fi
  1704. rm -f conftest.make
  1705. fi
  1706. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1707. echo "$as_me:$LINENO: result: yes" >&5
  1708. echo "${ECHO_T}yes" >&6
  1709. SET_MAKE=
  1710. else
  1711. echo "$as_me:$LINENO: result: no" >&5
  1712. echo "${ECHO_T}no" >&6
  1713. SET_MAKE="MAKE=${MAKE-make}"
  1714. fi
  1715. rm -rf .tst 2>/dev/null
  1716. mkdir .tst 2>/dev/null
  1717. if test -d .tst; then
  1718. am__leading_dot=.
  1719. else
  1720. am__leading_dot=_
  1721. fi
  1722. rmdir .tst 2>/dev/null
  1723. # test to see if srcdir already configured
  1724. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1725. test -f $srcdir/config.status; then
  1726. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1727. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1728. { (exit 1); exit 1; }; }
  1729. fi
  1730. # test whether we have cygpath
  1731. if test -z "$CYGPATH_W"; then
  1732. if (cygpath --version) >/dev/null 2>/dev/null; then
  1733. CYGPATH_W='cygpath -w'
  1734. else
  1735. CYGPATH_W=echo
  1736. fi
  1737. fi
  1738. # Define the identity of the package.
  1739. PACKAGE=curl
  1740. VERSION=$VERSION
  1741. cat >>confdefs.h <<_ACEOF
  1742. #define PACKAGE "$PACKAGE"
  1743. _ACEOF
  1744. cat >>confdefs.h <<_ACEOF
  1745. #define VERSION "$VERSION"
  1746. _ACEOF
  1747. # Some tools Automake needs.
  1748. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1749. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1750. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1751. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1752. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1753. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1754. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1755. # Installed binaries are usually stripped using `strip' when the user
  1756. # run `make install-strip'. However `strip' might not be the right
  1757. # tool to use in cross-compilation environments, therefore Automake
  1758. # will honor the `STRIP' environment variable to overrule this program.
  1759. if test "$cross_compiling" != no; then
  1760. if test -n "$ac_tool_prefix"; then
  1761. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1762. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1763. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1764. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1765. if test "${ac_cv_prog_STRIP+set}" = set; then
  1766. echo $ECHO_N "(cached) $ECHO_C" >&6
  1767. else
  1768. if test -n "$STRIP"; then
  1769. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1770. else
  1771. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1772. for as_dir in $PATH
  1773. do
  1774. IFS=$as_save_IFS
  1775. test -z "$as_dir" && as_dir=.
  1776. for ac_exec_ext in '' $ac_executable_extensions; do
  1777. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1778. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1779. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1780. break 2
  1781. fi
  1782. done
  1783. done
  1784. fi
  1785. fi
  1786. STRIP=$ac_cv_prog_STRIP
  1787. if test -n "$STRIP"; then
  1788. echo "$as_me:$LINENO: result: $STRIP" >&5
  1789. echo "${ECHO_T}$STRIP" >&6
  1790. else
  1791. echo "$as_me:$LINENO: result: no" >&5
  1792. echo "${ECHO_T}no" >&6
  1793. fi
  1794. fi
  1795. if test -z "$ac_cv_prog_STRIP"; then
  1796. ac_ct_STRIP=$STRIP
  1797. # Extract the first word of "strip", so it can be a program name with args.
  1798. set dummy strip; ac_word=$2
  1799. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1800. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1801. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1802. echo $ECHO_N "(cached) $ECHO_C" >&6
  1803. else
  1804. if test -n "$ac_ct_STRIP"; then
  1805. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1806. else
  1807. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1808. for as_dir in $PATH
  1809. do
  1810. IFS=$as_save_IFS
  1811. test -z "$as_dir" && as_dir=.
  1812. for ac_exec_ext in '' $ac_executable_extensions; do
  1813. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1814. ac_cv_prog_ac_ct_STRIP="strip"
  1815. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1816. break 2
  1817. fi
  1818. done
  1819. done
  1820. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1821. fi
  1822. fi
  1823. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1824. if test -n "$ac_ct_STRIP"; then
  1825. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1826. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1827. else
  1828. echo "$as_me:$LINENO: result: no" >&5
  1829. echo "${ECHO_T}no" >&6
  1830. fi
  1831. STRIP=$ac_ct_STRIP
  1832. else
  1833. STRIP="$ac_cv_prog_STRIP"
  1834. fi
  1835. fi
  1836. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1837. # We need awk for the "check" target. The system "awk" is bad on
  1838. # some platforms.
  1839. echo "$as_me:$LINENO: checking curl version" >&5
  1840. echo $ECHO_N "checking curl version... $ECHO_C" >&6
  1841. echo "$as_me:$LINENO: result: $VERSION" >&5
  1842. echo "${ECHO_T}$VERSION" >&6
  1843. VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\(.*\)/\1/p' ${srcdir}/include/curl/curl.h`
  1844. PKGADD_PKG="HAXXcurl"
  1845. PKGADD_NAME="cURL - a client that groks URLs"
  1846. PKGADD_VENDOR="curl.haxx.se"
  1847. # Make sure we can run config.sub.
  1848. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1849. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1850. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1851. { (exit 1); exit 1; }; }
  1852. echo "$as_me:$LINENO: checking build system type" >&5
  1853. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1854. if test "${ac_cv_build+set}" = set; then
  1855. echo $ECHO_N "(cached) $ECHO_C" >&6
  1856. else
  1857. ac_cv_build_alias=$build_alias
  1858. test -z "$ac_cv_build_alias" &&
  1859. ac_cv_build_alias=`$ac_config_guess`
  1860. test -z "$ac_cv_build_alias" &&
  1861. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1862. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1863. { (exit 1); exit 1; }; }
  1864. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1865. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1866. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1867. { (exit 1); exit 1; }; }
  1868. fi
  1869. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1870. echo "${ECHO_T}$ac_cv_build" >&6
  1871. build=$ac_cv_build
  1872. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1873. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1874. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1875. echo "$as_me:$LINENO: checking host system type" >&5
  1876. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1877. if test "${ac_cv_host+set}" = set; then
  1878. echo $ECHO_N "(cached) $ECHO_C" >&6
  1879. else
  1880. ac_cv_host_alias=$host_alias
  1881. test -z "$ac_cv_host_alias" &&
  1882. ac_cv_host_alias=$ac_cv_build_alias
  1883. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1884. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1885. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1886. { (exit 1); exit 1; }; }
  1887. fi
  1888. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1889. echo "${ECHO_T}$ac_cv_host" >&6
  1890. host=$ac_cv_host
  1891. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1892. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1893. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1894. cat >>confdefs.h <<_ACEOF
  1895. #define OS "${host}"
  1896. _ACEOF
  1897. DEPDIR="${am__leading_dot}deps"
  1898. ac_config_commands="$ac_config_commands depfiles"
  1899. am_make=${MAKE-make}
  1900. cat > confinc << 'END'
  1901. am__doit:
  1902. @echo done
  1903. .PHONY: am__doit
  1904. END
  1905. # If we don't find an include directive, just comment out the code.
  1906. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  1907. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  1908. am__include="#"
  1909. am__quote=
  1910. _am_result=none
  1911. # First try GNU make style include.
  1912. echo "include confinc" > confmf
  1913. # We grep out `Entering directory' and `Leaving directory'
  1914. # messages which can occur if `w' ends up in MAKEFLAGS.
  1915. # In particular we don't look at `^make:' because GNU make might
  1916. # be invoked under some other name (usually "gmake"), in which
  1917. # case it prints its new name instead of `make'.
  1918. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  1919. am__include=include
  1920. am__quote=
  1921. _am_result=GNU
  1922. fi
  1923. # Now try BSD make style include.
  1924. if test "$am__include" = "#"; then
  1925. echo '.include "confinc"' > confmf
  1926. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  1927. am__include=.include
  1928. am__quote="\""
  1929. _am_result=BSD
  1930. fi
  1931. fi
  1932. echo "$as_me:$LINENO: result: $_am_result" >&5
  1933. echo "${ECHO_T}$_am_result" >&6
  1934. rm -f confinc confmf
  1935. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  1936. if test "${enable_dependency_tracking+set}" = set; then
  1937. enableval="$enable_dependency_tracking"
  1938. fi;
  1939. if test "x$enable_dependency_tracking" != xno; then
  1940. am_depcomp="$ac_aux_dir/depcomp"
  1941. AMDEPBACKSLASH='\'
  1942. fi
  1943. if test "x$enable_dependency_tracking" != xno; then
  1944. AMDEP_TRUE=
  1945. AMDEP_FALSE='#'
  1946. else
  1947. AMDEP_TRUE='#'
  1948. AMDEP_FALSE=
  1949. fi
  1950. ac_ext=c
  1951. ac_cpp='$CPP $CPPFLAGS'
  1952. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1953. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1954. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1955. if test -n "$ac_tool_prefix"; then
  1956. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1957. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1958. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1959. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1960. if test "${ac_cv_prog_CC+set}" = set; then
  1961. echo $ECHO_N "(cached) $ECHO_C" >&6
  1962. else
  1963. if test -n "$CC"; then
  1964. ac_cv_prog_CC="$CC" # Let the user override the test.
  1965. else
  1966. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1967. for as_dir in $PATH
  1968. do
  1969. IFS=$as_save_IFS
  1970. test -z "$as_dir" && as_dir=.
  1971. for ac_exec_ext in '' $ac_executable_extensions; do
  1972. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1973. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1974. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1975. break 2
  1976. fi
  1977. done
  1978. done
  1979. fi
  1980. fi
  1981. CC=$ac_cv_prog_CC
  1982. if test -n "$CC"; then
  1983. echo "$as_me:$LINENO: result: $CC" >&5
  1984. echo "${ECHO_T}$CC" >&6
  1985. else
  1986. echo "$as_me:$LINENO: result: no" >&5
  1987. echo "${ECHO_T}no" >&6
  1988. fi
  1989. fi
  1990. if test -z "$ac_cv_prog_CC"; then
  1991. ac_ct_CC=$CC
  1992. # Extract the first word of "gcc", so it can be a program name with args.
  1993. set dummy gcc; ac_word=$2
  1994. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1995. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1996. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1997. echo $ECHO_N "(cached) $ECHO_C" >&6
  1998. else
  1999. if test -n "$ac_ct_CC"; then
  2000. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2001. else
  2002. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2003. for as_dir in $PATH
  2004. do
  2005. IFS=$as_save_IFS
  2006. test -z "$as_dir" && as_dir=.
  2007. for ac_exec_ext in '' $ac_executable_extensions; do
  2008. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2009. ac_cv_prog_ac_ct_CC="gcc"
  2010. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2011. break 2
  2012. fi
  2013. done
  2014. done
  2015. fi
  2016. fi
  2017. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2018. if test -n "$ac_ct_CC"; then
  2019. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2020. echo "${ECHO_T}$ac_ct_CC" >&6
  2021. else
  2022. echo "$as_me:$LINENO: result: no" >&5
  2023. echo "${ECHO_T}no" >&6
  2024. fi
  2025. CC=$ac_ct_CC
  2026. else
  2027. CC="$ac_cv_prog_CC"
  2028. fi
  2029. if test -z "$CC"; then
  2030. if test -n "$ac_tool_prefix"; then
  2031. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2032. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2033. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2034. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2035. if test "${ac_cv_prog_CC+set}" = set; then
  2036. echo $ECHO_N "(cached) $ECHO_C" >&6
  2037. else
  2038. if test -n "$CC"; then
  2039. ac_cv_prog_CC="$CC" # Let the user override the test.
  2040. else
  2041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2042. for as_dir in $PATH
  2043. do
  2044. IFS=$as_save_IFS
  2045. test -z "$as_dir" && as_dir=.
  2046. for ac_exec_ext in '' $ac_executable_extensions; do
  2047. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2048. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2049. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2050. break 2
  2051. fi
  2052. done
  2053. done
  2054. fi
  2055. fi
  2056. CC=$ac_cv_prog_CC
  2057. if test -n "$CC"; then
  2058. echo "$as_me:$LINENO: result: $CC" >&5
  2059. echo "${ECHO_T}$CC" >&6
  2060. else
  2061. echo "$as_me:$LINENO: result: no" >&5
  2062. echo "${ECHO_T}no" >&6
  2063. fi
  2064. fi
  2065. if test -z "$ac_cv_prog_CC"; then
  2066. ac_ct_CC=$CC
  2067. # Extract the first word of "cc", so it can be a program name with args.
  2068. set dummy cc; ac_word=$2
  2069. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2070. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2071. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2072. echo $ECHO_N "(cached) $ECHO_C" >&6
  2073. else
  2074. if test -n "$ac_ct_CC"; then
  2075. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2076. else
  2077. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2078. for as_dir in $PATH
  2079. do
  2080. IFS=$as_save_IFS
  2081. test -z "$as_dir" && as_dir=.
  2082. for ac_exec_ext in '' $ac_executable_extensions; do
  2083. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2084. ac_cv_prog_ac_ct_CC="cc"
  2085. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2086. break 2
  2087. fi
  2088. done
  2089. done
  2090. fi
  2091. fi
  2092. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2093. if test -n "$ac_ct_CC"; then
  2094. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2095. echo "${ECHO_T}$ac_ct_CC" >&6
  2096. else
  2097. echo "$as_me:$LINENO: result: no" >&5
  2098. echo "${ECHO_T}no" >&6
  2099. fi
  2100. CC=$ac_ct_CC
  2101. else
  2102. CC="$ac_cv_prog_CC"
  2103. fi
  2104. fi
  2105. if test -z "$CC"; then
  2106. # Extract the first word of "cc", so it can be a program name with args.
  2107. set dummy cc; ac_word=$2
  2108. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2109. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2110. if test "${ac_cv_prog_CC+set}" = set; then
  2111. echo $ECHO_N "(cached) $ECHO_C" >&6
  2112. else
  2113. if test -n "$CC"; then
  2114. ac_cv_prog_CC="$CC" # Let the user override the test.
  2115. else
  2116. ac_prog_rejected=no
  2117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2118. for as_dir in $PATH
  2119. do
  2120. IFS=$as_save_IFS
  2121. test -z "$as_dir" && as_dir=.
  2122. for ac_exec_ext in '' $ac_executable_extensions; do
  2123. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2124. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2125. ac_prog_rejected=yes
  2126. continue
  2127. fi
  2128. ac_cv_prog_CC="cc"
  2129. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2130. break 2
  2131. fi
  2132. done
  2133. done
  2134. if test $ac_prog_rejected = yes; then
  2135. # We found a bogon in the path, so make sure we never use it.
  2136. set dummy $ac_cv_prog_CC
  2137. shift
  2138. if test $# != 0; then
  2139. # We chose a different compiler from the bogus one.
  2140. # However, it has the same basename, so the bogon will be chosen
  2141. # first if we set CC to just the basename; use the full file name.
  2142. shift
  2143. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2144. fi
  2145. fi
  2146. fi
  2147. fi
  2148. CC=$ac_cv_prog_CC
  2149. if test -n "$CC"; then
  2150. echo "$as_me:$LINENO: result: $CC" >&5
  2151. echo "${ECHO_T}$CC" >&6
  2152. else
  2153. echo "$as_me:$LINENO: result: no" >&5
  2154. echo "${ECHO_T}no" >&6
  2155. fi
  2156. fi
  2157. if test -z "$CC"; then
  2158. if test -n "$ac_tool_prefix"; then
  2159. for ac_prog in cl
  2160. do
  2161. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2162. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2163. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2164. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2165. if test "${ac_cv_prog_CC+set}" = set; then
  2166. echo $ECHO_N "(cached) $ECHO_C" >&6
  2167. else
  2168. if test -n "$CC"; then
  2169. ac_cv_prog_CC="$CC" # Let the user override the test.
  2170. else
  2171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2172. for as_dir in $PATH
  2173. do
  2174. IFS=$as_save_IFS
  2175. test -z "$as_dir" && as_dir=.
  2176. for ac_exec_ext in '' $ac_executable_extensions; do
  2177. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2178. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2179. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2180. break 2
  2181. fi
  2182. done
  2183. done
  2184. fi
  2185. fi
  2186. CC=$ac_cv_prog_CC
  2187. if test -n "$CC"; then
  2188. echo "$as_me:$LINENO: result: $CC" >&5
  2189. echo "${ECHO_T}$CC" >&6
  2190. else
  2191. echo "$as_me:$LINENO: result: no" >&5
  2192. echo "${ECHO_T}no" >&6
  2193. fi
  2194. test -n "$CC" && break
  2195. done
  2196. fi
  2197. if test -z "$CC"; then
  2198. ac_ct_CC=$CC
  2199. for ac_prog in cl
  2200. do
  2201. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2202. set dummy $ac_prog; ac_word=$2
  2203. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2204. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2205. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2206. echo $ECHO_N "(cached) $ECHO_C" >&6
  2207. else
  2208. if test -n "$ac_ct_CC"; then
  2209. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2210. else
  2211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2212. for as_dir in $PATH
  2213. do
  2214. IFS=$as_save_IFS
  2215. test -z "$as_dir" && as_dir=.
  2216. for ac_exec_ext in '' $ac_executable_extensions; do
  2217. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2218. ac_cv_prog_ac_ct_CC="$ac_prog"
  2219. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2220. break 2
  2221. fi
  2222. done
  2223. done
  2224. fi
  2225. fi
  2226. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2227. if test -n "$ac_ct_CC"; then
  2228. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2229. echo "${ECHO_T}$ac_ct_CC" >&6
  2230. else
  2231. echo "$as_me:$LINENO: result: no" >&5
  2232. echo "${ECHO_T}no" >&6
  2233. fi
  2234. test -n "$ac_ct_CC" && break
  2235. done
  2236. CC=$ac_ct_CC
  2237. fi
  2238. fi
  2239. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2240. See \`config.log' for more details." >&5
  2241. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2242. See \`config.log' for more details." >&2;}
  2243. { (exit 1); exit 1; }; }
  2244. # Provide some information about the compiler.
  2245. echo "$as_me:$LINENO:" \
  2246. "checking for C compiler version" >&5
  2247. ac_compiler=`set X $ac_compile; echo $2`
  2248. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2249. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2250. ac_status=$?
  2251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2252. (exit $ac_status); }
  2253. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2254. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2255. ac_status=$?
  2256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2257. (exit $ac_status); }
  2258. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2259. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2260. ac_status=$?
  2261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2262. (exit $ac_status); }
  2263. cat >conftest.$ac_ext <<_ACEOF
  2264. /* confdefs.h. */
  2265. _ACEOF
  2266. cat confdefs.h >>conftest.$ac_ext
  2267. cat >>conftest.$ac_ext <<_ACEOF
  2268. /* end confdefs.h. */
  2269. int
  2270. main ()
  2271. {
  2272. ;
  2273. return 0;
  2274. }
  2275. _ACEOF
  2276. ac_clean_files_save=$ac_clean_files
  2277. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2278. # Try to create an executable without -o first, disregard a.out.
  2279. # It will help us diagnose broken compilers, and finding out an intuition
  2280. # of exeext.
  2281. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2282. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  2283. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2284. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  2285. (eval $ac_link_default) 2>&5
  2286. ac_status=$?
  2287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2288. (exit $ac_status); }; then
  2289. # Find the output, starting from the most likely. This scheme is
  2290. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  2291. # resort.
  2292. # Be careful to initialize this variable, since it used to be cached.
  2293. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  2294. ac_cv_exeext=
  2295. # b.out is created by i960 compilers.
  2296. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  2297. do
  2298. test -f "$ac_file" || continue
  2299. case $ac_file in
  2300. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  2301. ;;
  2302. conftest.$ac_ext )
  2303. # This is the source file.
  2304. ;;
  2305. [ab].out )
  2306. # We found the default executable, but exeext='' is most
  2307. # certainly right.
  2308. break;;
  2309. *.* )
  2310. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2311. # FIXME: I believe we export ac_cv_exeext for Libtool,
  2312. # but it would be cool to find out if it's true. Does anybody
  2313. # maintain Libtool? --akim.
  2314. export ac_cv_exeext
  2315. break;;
  2316. * )
  2317. break;;
  2318. esac
  2319. done
  2320. else
  2321. echo "$as_me: failed program was:" >&5
  2322. sed 's/^/| /' conftest.$ac_ext >&5
  2323. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2324. See \`config.log' for more details." >&5
  2325. echo "$as_me: error: C compiler cannot create executables
  2326. See \`config.log' for more details." >&2;}
  2327. { (exit 77); exit 77; }; }
  2328. fi
  2329. ac_exeext=$ac_cv_exeext
  2330. echo "$as_me:$LINENO: result: $ac_file" >&5
  2331. echo "${ECHO_T}$ac_file" >&6
  2332. # Check the compiler produces executables we can run. If not, either
  2333. # the compiler is broken, or we cross compile.
  2334. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2335. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  2336. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2337. # If not cross compiling, check that we can run a simple program.
  2338. if test "$cross_compiling" != yes; then
  2339. if { ac_try='./$ac_file'
  2340. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2341. (eval $ac_try) 2>&5
  2342. ac_status=$?
  2343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2344. (exit $ac_status); }; }; then
  2345. cross_compiling=no
  2346. else
  2347. if test "$cross_compiling" = maybe; then
  2348. cross_compiling=yes
  2349. else
  2350. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2351. If you meant to cross compile, use \`--host'.
  2352. See \`config.log' for more details." >&5
  2353. echo "$as_me: error: cannot run C compiled programs.
  2354. If you meant to cross compile, use \`--host'.
  2355. See \`config.log' for more details." >&2;}
  2356. { (exit 1); exit 1; }; }
  2357. fi
  2358. fi
  2359. fi
  2360. echo "$as_me:$LINENO: result: yes" >&5
  2361. echo "${ECHO_T}yes" >&6
  2362. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2363. ac_clean_files=$ac_clean_files_save
  2364. # Check the compiler produces executables we can run. If not, either
  2365. # the compiler is broken, or we cross compile.
  2366. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2367. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2368. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2369. echo "${ECHO_T}$cross_compiling" >&6
  2370. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2371. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2372. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2373. (eval $ac_link) 2>&5
  2374. ac_status=$?
  2375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2376. (exit $ac_status); }; then
  2377. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2378. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2379. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2380. # `rm'.
  2381. for ac_file in conftest.exe conftest conftest.*; do
  2382. test -f "$ac_file" || continue
  2383. case $ac_file in
  2384. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2385. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2386. export ac_cv_exeext
  2387. break;;
  2388. * ) break;;
  2389. esac
  2390. done
  2391. else
  2392. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2393. See \`config.log' for more details." >&5
  2394. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2395. See \`config.log' for more details." >&2;}
  2396. { (exit 1); exit 1; }; }
  2397. fi
  2398. rm -f conftest$ac_cv_exeext
  2399. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2400. echo "${ECHO_T}$ac_cv_exeext" >&6
  2401. rm -f conftest.$ac_ext
  2402. EXEEXT=$ac_cv_exeext
  2403. ac_exeext=$EXEEXT
  2404. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2405. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2406. if test "${ac_cv_objext+set}" = set; then
  2407. echo $ECHO_N "(cached) $ECHO_C" >&6
  2408. else
  2409. cat >conftest.$ac_ext <<_ACEOF
  2410. /* confdefs.h. */
  2411. _ACEOF
  2412. cat confdefs.h >>conftest.$ac_ext
  2413. cat >>conftest.$ac_ext <<_ACEOF
  2414. /* end confdefs.h. */
  2415. int
  2416. main ()
  2417. {
  2418. ;
  2419. return 0;
  2420. }
  2421. _ACEOF
  2422. rm -f conftest.o conftest.obj
  2423. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2424. (eval $ac_compile) 2>&5
  2425. ac_status=$?
  2426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2427. (exit $ac_status); }; then
  2428. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2429. case $ac_file in
  2430. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2431. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2432. break;;
  2433. esac
  2434. done
  2435. else
  2436. echo "$as_me: failed program was:" >&5
  2437. sed 's/^/| /' conftest.$ac_ext >&5
  2438. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2439. See \`config.log' for more details." >&5
  2440. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2441. See \`config.log' for more details." >&2;}
  2442. { (exit 1); exit 1; }; }
  2443. fi
  2444. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2445. fi
  2446. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2447. echo "${ECHO_T}$ac_cv_objext" >&6
  2448. OBJEXT=$ac_cv_objext
  2449. ac_objext=$OBJEXT
  2450. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2451. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2452. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2453. echo $ECHO_N "(cached) $ECHO_C" >&6
  2454. else
  2455. cat >conftest.$ac_ext <<_ACEOF
  2456. /* confdefs.h. */
  2457. _ACEOF
  2458. cat confdefs.h >>conftest.$ac_ext
  2459. cat >>conftest.$ac_ext <<_ACEOF
  2460. /* end confdefs.h. */
  2461. int
  2462. main ()
  2463. {
  2464. #ifndef __GNUC__
  2465. choke me
  2466. #endif
  2467. ;
  2468. return 0;
  2469. }
  2470. _ACEOF
  2471. rm -f conftest.$ac_objext
  2472. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2473. (eval $ac_compile) 2>conftest.er1
  2474. ac_status=$?
  2475. grep -v '^ *+' conftest.er1 >conftest.err
  2476. rm -f conftest.er1
  2477. cat conftest.err >&5
  2478. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2479. (exit $ac_status); } &&
  2480. { ac_try='test -z "$ac_c_werror_flag"
  2481. || test ! -s conftest.err'
  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); }; } &&
  2487. { ac_try='test -s conftest.$ac_objext'
  2488. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2489. (eval $ac_try) 2>&5
  2490. ac_status=$?
  2491. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2492. (exit $ac_status); }; }; then
  2493. ac_compiler_gnu=yes
  2494. else
  2495. echo "$as_me: failed program was:" >&5
  2496. sed 's/^/| /' conftest.$ac_ext >&5
  2497. ac_compiler_gnu=no
  2498. fi
  2499. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2500. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2501. fi
  2502. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2503. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2504. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2505. ac_test_CFLAGS=${CFLAGS+set}
  2506. ac_save_CFLAGS=$CFLAGS
  2507. CFLAGS="-g"
  2508. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2509. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2510. if test "${ac_cv_prog_cc_g+set}" = set; then
  2511. echo $ECHO_N "(cached) $ECHO_C" >&6
  2512. else
  2513. cat >conftest.$ac_ext <<_ACEOF
  2514. /* confdefs.h. */
  2515. _ACEOF
  2516. cat confdefs.h >>conftest.$ac_ext
  2517. cat >>conftest.$ac_ext <<_ACEOF
  2518. /* end confdefs.h. */
  2519. int
  2520. main ()
  2521. {
  2522. ;
  2523. return 0;
  2524. }
  2525. _ACEOF
  2526. rm -f conftest.$ac_objext
  2527. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2528. (eval $ac_compile) 2>conftest.er1
  2529. ac_status=$?
  2530. grep -v '^ *+' conftest.er1 >conftest.err
  2531. rm -f conftest.er1
  2532. cat conftest.err >&5
  2533. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2534. (exit $ac_status); } &&
  2535. { ac_try='test -z "$ac_c_werror_flag"
  2536. || test ! -s conftest.err'
  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); }; } &&
  2542. { ac_try='test -s conftest.$ac_objext'
  2543. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2544. (eval $ac_try) 2>&5
  2545. ac_status=$?
  2546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2547. (exit $ac_status); }; }; then
  2548. ac_cv_prog_cc_g=yes
  2549. else
  2550. echo "$as_me: failed program was:" >&5
  2551. sed 's/^/| /' conftest.$ac_ext >&5
  2552. ac_cv_prog_cc_g=no
  2553. fi
  2554. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2555. fi
  2556. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2557. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2558. if test "$ac_test_CFLAGS" = set; then
  2559. CFLAGS=$ac_save_CFLAGS
  2560. elif test $ac_cv_prog_cc_g = yes; then
  2561. if test "$GCC" = yes; then
  2562. CFLAGS="-g -O2"
  2563. else
  2564. CFLAGS="-g"
  2565. fi
  2566. else
  2567. if test "$GCC" = yes; then
  2568. CFLAGS="-O2"
  2569. else
  2570. CFLAGS=
  2571. fi
  2572. fi
  2573. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2574. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2575. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2576. echo $ECHO_N "(cached) $ECHO_C" >&6
  2577. else
  2578. ac_cv_prog_cc_stdc=no
  2579. ac_save_CC=$CC
  2580. cat >conftest.$ac_ext <<_ACEOF
  2581. /* confdefs.h. */
  2582. _ACEOF
  2583. cat confdefs.h >>conftest.$ac_ext
  2584. cat >>conftest.$ac_ext <<_ACEOF
  2585. /* end confdefs.h. */
  2586. #include <stdarg.h>
  2587. #include <stdio.h>
  2588. #include <sys/types.h>
  2589. #include <sys/stat.h>
  2590. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2591. struct buf { int x; };
  2592. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2593. static char *e (p, i)
  2594. char **p;
  2595. int i;
  2596. {
  2597. return p[i];
  2598. }
  2599. static char *f (char * (*g) (char **, int), char **p, ...)
  2600. {
  2601. char *s;
  2602. va_list v;
  2603. va_start (v,p);
  2604. s = g (p, va_arg (v,int));
  2605. va_end (v);
  2606. return s;
  2607. }
  2608. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2609. function prototypes and stuff, but not '\xHH' hex character constants.
  2610. These don't provoke an error unfortunately, instead are silently treated
  2611. as 'x'. The following induces an error, until -std1 is added to get
  2612. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2613. array size at least. It's necessary to write '\x00'==0 to get something
  2614. that's true only with -std1. */
  2615. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2616. int test (int i, double x);
  2617. struct s1 {int (*f) (int a);};
  2618. struct s2 {int (*f) (double a);};
  2619. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2620. int argc;
  2621. char **argv;
  2622. int
  2623. main ()
  2624. {
  2625. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2626. ;
  2627. return 0;
  2628. }
  2629. _ACEOF
  2630. # Don't try gcc -ansi; that turns off useful extensions and
  2631. # breaks some systems' header files.
  2632. # AIX -qlanglvl=ansi
  2633. # Ultrix and OSF/1 -std1
  2634. # HP-UX 10.20 and later -Ae
  2635. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2636. # SVR4 -Xc -D__EXTENSIONS__
  2637. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2638. do
  2639. CC="$ac_save_CC $ac_arg"
  2640. rm -f conftest.$ac_objext
  2641. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2642. (eval $ac_compile) 2>conftest.er1
  2643. ac_status=$?
  2644. grep -v '^ *+' conftest.er1 >conftest.err
  2645. rm -f conftest.er1
  2646. cat conftest.err >&5
  2647. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2648. (exit $ac_status); } &&
  2649. { ac_try='test -z "$ac_c_werror_flag"
  2650. || test ! -s conftest.err'
  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); }; } &&
  2656. { ac_try='test -s conftest.$ac_objext'
  2657. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2658. (eval $ac_try) 2>&5
  2659. ac_status=$?
  2660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2661. (exit $ac_status); }; }; then
  2662. ac_cv_prog_cc_stdc=$ac_arg
  2663. break
  2664. else
  2665. echo "$as_me: failed program was:" >&5
  2666. sed 's/^/| /' conftest.$ac_ext >&5
  2667. fi
  2668. rm -f conftest.err conftest.$ac_objext
  2669. done
  2670. rm -f conftest.$ac_ext conftest.$ac_objext
  2671. CC=$ac_save_CC
  2672. fi
  2673. case "x$ac_cv_prog_cc_stdc" in
  2674. x|xno)
  2675. echo "$as_me:$LINENO: result: none needed" >&5
  2676. echo "${ECHO_T}none needed" >&6 ;;
  2677. *)
  2678. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2679. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2680. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2681. esac
  2682. # Some people use a C++ compiler to compile C. Since we use `exit',
  2683. # in C++ we need to declare it. In case someone uses the same compiler
  2684. # for both compiling C and C++ we need to have the C++ compiler decide
  2685. # the declaration of exit, since it's the most demanding environment.
  2686. cat >conftest.$ac_ext <<_ACEOF
  2687. #ifndef __cplusplus
  2688. choke me
  2689. #endif
  2690. _ACEOF
  2691. rm -f conftest.$ac_objext
  2692. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2693. (eval $ac_compile) 2>conftest.er1
  2694. ac_status=$?
  2695. grep -v '^ *+' conftest.er1 >conftest.err
  2696. rm -f conftest.er1
  2697. cat conftest.err >&5
  2698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2699. (exit $ac_status); } &&
  2700. { ac_try='test -z "$ac_c_werror_flag"
  2701. || test ! -s conftest.err'
  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); }; } &&
  2707. { ac_try='test -s conftest.$ac_objext'
  2708. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2709. (eval $ac_try) 2>&5
  2710. ac_status=$?
  2711. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2712. (exit $ac_status); }; }; then
  2713. for ac_declaration in \
  2714. '' \
  2715. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2716. 'extern "C" void std::exit (int); using std::exit;' \
  2717. 'extern "C" void exit (int) throw ();' \
  2718. 'extern "C" void exit (int);' \
  2719. 'void exit (int);'
  2720. do
  2721. cat >conftest.$ac_ext <<_ACEOF
  2722. /* confdefs.h. */
  2723. _ACEOF
  2724. cat confdefs.h >>conftest.$ac_ext
  2725. cat >>conftest.$ac_ext <<_ACEOF
  2726. /* end confdefs.h. */
  2727. $ac_declaration
  2728. #include <stdlib.h>
  2729. int
  2730. main ()
  2731. {
  2732. exit (42);
  2733. ;
  2734. return 0;
  2735. }
  2736. _ACEOF
  2737. rm -f conftest.$ac_objext
  2738. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2739. (eval $ac_compile) 2>conftest.er1
  2740. ac_status=$?
  2741. grep -v '^ *+' conftest.er1 >conftest.err
  2742. rm -f conftest.er1
  2743. cat conftest.err >&5
  2744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2745. (exit $ac_status); } &&
  2746. { ac_try='test -z "$ac_c_werror_flag"
  2747. || test ! -s conftest.err'
  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); }; } &&
  2753. { ac_try='test -s conftest.$ac_objext'
  2754. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2755. (eval $ac_try) 2>&5
  2756. ac_status=$?
  2757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2758. (exit $ac_status); }; }; then
  2759. :
  2760. else
  2761. echo "$as_me: failed program was:" >&5
  2762. sed 's/^/| /' conftest.$ac_ext >&5
  2763. continue
  2764. fi
  2765. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2766. cat >conftest.$ac_ext <<_ACEOF
  2767. /* confdefs.h. */
  2768. _ACEOF
  2769. cat confdefs.h >>conftest.$ac_ext
  2770. cat >>conftest.$ac_ext <<_ACEOF
  2771. /* end confdefs.h. */
  2772. $ac_declaration
  2773. int
  2774. main ()
  2775. {
  2776. exit (42);
  2777. ;
  2778. return 0;
  2779. }
  2780. _ACEOF
  2781. rm -f conftest.$ac_objext
  2782. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2783. (eval $ac_compile) 2>conftest.er1
  2784. ac_status=$?
  2785. grep -v '^ *+' conftest.er1 >conftest.err
  2786. rm -f conftest.er1
  2787. cat conftest.err >&5
  2788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2789. (exit $ac_status); } &&
  2790. { ac_try='test -z "$ac_c_werror_flag"
  2791. || test ! -s conftest.err'
  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); }; } &&
  2797. { ac_try='test -s conftest.$ac_objext'
  2798. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2799. (eval $ac_try) 2>&5
  2800. ac_status=$?
  2801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2802. (exit $ac_status); }; }; then
  2803. break
  2804. else
  2805. echo "$as_me: failed program was:" >&5
  2806. sed 's/^/| /' conftest.$ac_ext >&5
  2807. fi
  2808. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2809. done
  2810. rm -f conftest*
  2811. if test -n "$ac_declaration"; then
  2812. echo '#ifdef __cplusplus' >>confdefs.h
  2813. echo $ac_declaration >>confdefs.h
  2814. echo '#endif' >>confdefs.h
  2815. fi
  2816. else
  2817. echo "$as_me: failed program was:" >&5
  2818. sed 's/^/| /' conftest.$ac_ext >&5
  2819. fi
  2820. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2821. ac_ext=c
  2822. ac_cpp='$CPP $CPPFLAGS'
  2823. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2824. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2825. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2826. depcc="$CC" am_compiler_list=
  2827. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2828. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2829. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  2830. echo $ECHO_N "(cached) $ECHO_C" >&6
  2831. else
  2832. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2833. # We make a subdir and do the tests there. Otherwise we can end up
  2834. # making bogus files that we don't know about and never remove. For
  2835. # instance it was reported that on HP-UX the gcc test will end up
  2836. # making a dummy file named `D' -- because `-MD' means `put the output
  2837. # in D'.
  2838. mkdir conftest.dir
  2839. # Copy depcomp to subdir because otherwise we won't find it if we're
  2840. # using a relative directory.
  2841. cp "$am_depcomp" conftest.dir
  2842. cd conftest.dir
  2843. # We will build objects and dependencies in a subdirectory because
  2844. # it helps to detect inapplicable dependency modes. For instance
  2845. # both Tru64's cc and ICC support -MD to output dependencies as a
  2846. # side effect of compilation, but ICC will put the dependencies in
  2847. # the current directory while Tru64 will put them in the object
  2848. # directory.
  2849. mkdir sub
  2850. am_cv_CC_dependencies_compiler_type=none
  2851. if test "$am_compiler_list" = ""; then
  2852. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2853. fi
  2854. for depmode in $am_compiler_list; do
  2855. # Setup a source with many dependencies, because some compilers
  2856. # like to wrap large dependency lists on column 80 (with \), and
  2857. # we should not choose a depcomp mode which is confused by this.
  2858. #
  2859. # We need to recreate these files for each test, as the compiler may
  2860. # overwrite some of them when testing with obscure command lines.
  2861. # This happens at least with the AIX C compiler.
  2862. : > sub/conftest.c
  2863. for i in 1 2 3 4 5 6; do
  2864. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2865. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2866. # Solaris 8's {/usr,}/bin/sh.
  2867. touch sub/conftst$i.h
  2868. done
  2869. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2870. case $depmode in
  2871. nosideeffect)
  2872. # after this tag, mechanisms are not by side-effect, so they'll
  2873. # only be used when explicitly requested
  2874. if test "x$enable_dependency_tracking" = xyes; then
  2875. continue
  2876. else
  2877. break
  2878. fi
  2879. ;;
  2880. none) break ;;
  2881. esac
  2882. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2883. # mode. It turns out that the SunPro C++ compiler does not properly
  2884. # handle `-M -o', and we need to detect this.
  2885. if depmode=$depmode \
  2886. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2887. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2888. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2889. >/dev/null 2>conftest.err &&
  2890. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2891. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2892. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2893. # icc doesn't choke on unknown options, it will just issue warnings
  2894. # (even with -Werror). So we grep stderr for any message
  2895. # that says an option was ignored.
  2896. if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
  2897. am_cv_CC_dependencies_compiler_type=$depmode
  2898. break
  2899. fi
  2900. fi
  2901. done
  2902. cd ..
  2903. rm -rf conftest.dir
  2904. else
  2905. am_cv_CC_dependencies_compiler_type=none
  2906. fi
  2907. fi
  2908. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  2909. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  2910. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  2911. if
  2912. test "x$enable_dependency_tracking" != xno \
  2913. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  2914. am__fastdepCC_TRUE=
  2915. am__fastdepCC_FALSE='#'
  2916. else
  2917. am__fastdepCC_TRUE='#'
  2918. am__fastdepCC_FALSE=
  2919. fi
  2920. ac_ext=c
  2921. ac_cpp='$CPP $CPPFLAGS'
  2922. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2923. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2924. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2925. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2926. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2927. # On Suns, sometimes $CPP names a directory.
  2928. if test -n "$CPP" && test -d "$CPP"; then
  2929. CPP=
  2930. fi
  2931. if test -z "$CPP"; then
  2932. if test "${ac_cv_prog_CPP+set}" = set; then
  2933. echo $ECHO_N "(cached) $ECHO_C" >&6
  2934. else
  2935. # Double quotes because CPP needs to be expanded
  2936. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2937. do
  2938. ac_preproc_ok=false
  2939. for ac_c_preproc_warn_flag in '' yes
  2940. do
  2941. # Use a header file that comes with gcc, so configuring glibc
  2942. # with a fresh cross-compiler works.
  2943. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2944. # <limits.h> exists even on freestanding compilers.
  2945. # On the NeXT, cc -E runs the code through the compiler's parser,
  2946. # not just through cpp. "Syntax error" is here to catch this case.
  2947. cat >conftest.$ac_ext <<_ACEOF
  2948. /* confdefs.h. */
  2949. _ACEOF
  2950. cat confdefs.h >>conftest.$ac_ext
  2951. cat >>conftest.$ac_ext <<_ACEOF
  2952. /* end confdefs.h. */
  2953. #ifdef __STDC__
  2954. # include <limits.h>
  2955. #else
  2956. # include <assert.h>
  2957. #endif
  2958. Syntax error
  2959. _ACEOF
  2960. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2961. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2962. ac_status=$?
  2963. grep -v '^ *+' conftest.er1 >conftest.err
  2964. rm -f conftest.er1
  2965. cat conftest.err >&5
  2966. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2967. (exit $ac_status); } >/dev/null; then
  2968. if test -s conftest.err; then
  2969. ac_cpp_err=$ac_c_preproc_warn_flag
  2970. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2971. else
  2972. ac_cpp_err=
  2973. fi
  2974. else
  2975. ac_cpp_err=yes
  2976. fi
  2977. if test -z "$ac_cpp_err"; then
  2978. :
  2979. else
  2980. echo "$as_me: failed program was:" >&5
  2981. sed 's/^/| /' conftest.$ac_ext >&5
  2982. # Broken: fails on valid input.
  2983. continue
  2984. fi
  2985. rm -f conftest.err conftest.$ac_ext
  2986. # OK, works on sane cases. Now check whether non-existent headers
  2987. # can be detected and how.
  2988. cat >conftest.$ac_ext <<_ACEOF
  2989. /* confdefs.h. */
  2990. _ACEOF
  2991. cat confdefs.h >>conftest.$ac_ext
  2992. cat >>conftest.$ac_ext <<_ACEOF
  2993. /* end confdefs.h. */
  2994. #include <ac_nonexistent.h>
  2995. _ACEOF
  2996. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2997. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2998. ac_status=$?
  2999. grep -v '^ *+' conftest.er1 >conftest.err
  3000. rm -f conftest.er1
  3001. cat conftest.err >&5
  3002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3003. (exit $ac_status); } >/dev/null; then
  3004. if test -s conftest.err; then
  3005. ac_cpp_err=$ac_c_preproc_warn_flag
  3006. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3007. else
  3008. ac_cpp_err=
  3009. fi
  3010. else
  3011. ac_cpp_err=yes
  3012. fi
  3013. if test -z "$ac_cpp_err"; then
  3014. # Broken: success on invalid input.
  3015. continue
  3016. else
  3017. echo "$as_me: failed program was:" >&5
  3018. sed 's/^/| /' conftest.$ac_ext >&5
  3019. # Passes both tests.
  3020. ac_preproc_ok=:
  3021. break
  3022. fi
  3023. rm -f conftest.err conftest.$ac_ext
  3024. done
  3025. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3026. rm -f conftest.err conftest.$ac_ext
  3027. if $ac_preproc_ok; then
  3028. break
  3029. fi
  3030. done
  3031. ac_cv_prog_CPP=$CPP
  3032. fi
  3033. CPP=$ac_cv_prog_CPP
  3034. else
  3035. ac_cv_prog_CPP=$CPP
  3036. fi
  3037. echo "$as_me:$LINENO: result: $CPP" >&5
  3038. echo "${ECHO_T}$CPP" >&6
  3039. ac_preproc_ok=false
  3040. for ac_c_preproc_warn_flag in '' yes
  3041. do
  3042. # Use a header file that comes with gcc, so configuring glibc
  3043. # with a fresh cross-compiler works.
  3044. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3045. # <limits.h> exists even on freestanding compilers.
  3046. # On the NeXT, cc -E runs the code through the compiler's parser,
  3047. # not just through cpp. "Syntax error" is here to catch this case.
  3048. cat >conftest.$ac_ext <<_ACEOF
  3049. /* confdefs.h. */
  3050. _ACEOF
  3051. cat confdefs.h >>conftest.$ac_ext
  3052. cat >>conftest.$ac_ext <<_ACEOF
  3053. /* end confdefs.h. */
  3054. #ifdef __STDC__
  3055. # include <limits.h>
  3056. #else
  3057. # include <assert.h>
  3058. #endif
  3059. Syntax error
  3060. _ACEOF
  3061. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3062. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3063. ac_status=$?
  3064. grep -v '^ *+' conftest.er1 >conftest.err
  3065. rm -f conftest.er1
  3066. cat conftest.err >&5
  3067. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3068. (exit $ac_status); } >/dev/null; then
  3069. if test -s conftest.err; then
  3070. ac_cpp_err=$ac_c_preproc_warn_flag
  3071. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3072. else
  3073. ac_cpp_err=
  3074. fi
  3075. else
  3076. ac_cpp_err=yes
  3077. fi
  3078. if test -z "$ac_cpp_err"; then
  3079. :
  3080. else
  3081. echo "$as_me: failed program was:" >&5
  3082. sed 's/^/| /' conftest.$ac_ext >&5
  3083. # Broken: fails on valid input.
  3084. continue
  3085. fi
  3086. rm -f conftest.err conftest.$ac_ext
  3087. # OK, works on sane cases. Now check whether non-existent headers
  3088. # can be detected and how.
  3089. cat >conftest.$ac_ext <<_ACEOF
  3090. /* confdefs.h. */
  3091. _ACEOF
  3092. cat confdefs.h >>conftest.$ac_ext
  3093. cat >>conftest.$ac_ext <<_ACEOF
  3094. /* end confdefs.h. */
  3095. #include <ac_nonexistent.h>
  3096. _ACEOF
  3097. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3098. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3099. ac_status=$?
  3100. grep -v '^ *+' conftest.er1 >conftest.err
  3101. rm -f conftest.er1
  3102. cat conftest.err >&5
  3103. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3104. (exit $ac_status); } >/dev/null; then
  3105. if test -s conftest.err; then
  3106. ac_cpp_err=$ac_c_preproc_warn_flag
  3107. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3108. else
  3109. ac_cpp_err=
  3110. fi
  3111. else
  3112. ac_cpp_err=yes
  3113. fi
  3114. if test -z "$ac_cpp_err"; then
  3115. # Broken: success on invalid input.
  3116. continue
  3117. else
  3118. echo "$as_me: failed program was:" >&5
  3119. sed 's/^/| /' conftest.$ac_ext >&5
  3120. # Passes both tests.
  3121. ac_preproc_ok=:
  3122. break
  3123. fi
  3124. rm -f conftest.err conftest.$ac_ext
  3125. done
  3126. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3127. rm -f conftest.err conftest.$ac_ext
  3128. if $ac_preproc_ok; then
  3129. :
  3130. else
  3131. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3132. See \`config.log' for more details." >&5
  3133. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3134. See \`config.log' for more details." >&2;}
  3135. { (exit 1); exit 1; }; }
  3136. fi
  3137. ac_ext=c
  3138. ac_cpp='$CPP $CPPFLAGS'
  3139. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3140. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3141. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3142. echo "$as_me:$LINENO: checking for egrep" >&5
  3143. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  3144. if test "${ac_cv_prog_egrep+set}" = set; then
  3145. echo $ECHO_N "(cached) $ECHO_C" >&6
  3146. else
  3147. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3148. then ac_cv_prog_egrep='grep -E'
  3149. else ac_cv_prog_egrep='egrep'
  3150. fi
  3151. fi
  3152. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  3153. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  3154. EGREP=$ac_cv_prog_egrep
  3155. echo "$as_me:$LINENO: checking for AIX" >&5
  3156. echo $ECHO_N "checking for AIX... $ECHO_C" >&6
  3157. cat >conftest.$ac_ext <<_ACEOF
  3158. /* confdefs.h. */
  3159. _ACEOF
  3160. cat confdefs.h >>conftest.$ac_ext
  3161. cat >>conftest.$ac_ext <<_ACEOF
  3162. /* end confdefs.h. */
  3163. #ifdef _AIX
  3164. yes
  3165. #endif
  3166. _ACEOF
  3167. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3168. $EGREP "yes" >/dev/null 2>&1; then
  3169. echo "$as_me:$LINENO: result: yes" >&5
  3170. echo "${ECHO_T}yes" >&6
  3171. cat >>confdefs.h <<\_ACEOF
  3172. #define _ALL_SOURCE 1
  3173. _ACEOF
  3174. else
  3175. echo "$as_me:$LINENO: result: no" >&5
  3176. echo "${ECHO_T}no" >&6
  3177. fi
  3178. rm -f conftest*
  3179. ac_ext=c
  3180. ac_cpp='$CPP $CPPFLAGS'
  3181. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3182. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3183. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3184. if test -n "$ac_tool_prefix"; then
  3185. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3186. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3187. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3188. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3189. if test "${ac_cv_prog_CC+set}" = set; then
  3190. echo $ECHO_N "(cached) $ECHO_C" >&6
  3191. else
  3192. if test -n "$CC"; then
  3193. ac_cv_prog_CC="$CC" # Let the user override the test.
  3194. else
  3195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3196. for as_dir in $PATH
  3197. do
  3198. IFS=$as_save_IFS
  3199. test -z "$as_dir" && as_dir=.
  3200. for ac_exec_ext in '' $ac_executable_extensions; do
  3201. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3202. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3203. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3204. break 2
  3205. fi
  3206. done
  3207. done
  3208. fi
  3209. fi
  3210. CC=$ac_cv_prog_CC
  3211. if test -n "$CC"; then
  3212. echo "$as_me:$LINENO: result: $CC" >&5
  3213. echo "${ECHO_T}$CC" >&6
  3214. else
  3215. echo "$as_me:$LINENO: result: no" >&5
  3216. echo "${ECHO_T}no" >&6
  3217. fi
  3218. fi
  3219. if test -z "$ac_cv_prog_CC"; then
  3220. ac_ct_CC=$CC
  3221. # Extract the first word of "gcc", so it can be a program name with args.
  3222. set dummy gcc; ac_word=$2
  3223. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3224. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3225. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3226. echo $ECHO_N "(cached) $ECHO_C" >&6
  3227. else
  3228. if test -n "$ac_ct_CC"; then
  3229. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3230. else
  3231. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3232. for as_dir in $PATH
  3233. do
  3234. IFS=$as_save_IFS
  3235. test -z "$as_dir" && as_dir=.
  3236. for ac_exec_ext in '' $ac_executable_extensions; do
  3237. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3238. ac_cv_prog_ac_ct_CC="gcc"
  3239. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3240. break 2
  3241. fi
  3242. done
  3243. done
  3244. fi
  3245. fi
  3246. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3247. if test -n "$ac_ct_CC"; then
  3248. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3249. echo "${ECHO_T}$ac_ct_CC" >&6
  3250. else
  3251. echo "$as_me:$LINENO: result: no" >&5
  3252. echo "${ECHO_T}no" >&6
  3253. fi
  3254. CC=$ac_ct_CC
  3255. else
  3256. CC="$ac_cv_prog_CC"
  3257. fi
  3258. if test -z "$CC"; then
  3259. if test -n "$ac_tool_prefix"; then
  3260. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3261. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3262. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3263. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3264. if test "${ac_cv_prog_CC+set}" = set; then
  3265. echo $ECHO_N "(cached) $ECHO_C" >&6
  3266. else
  3267. if test -n "$CC"; then
  3268. ac_cv_prog_CC="$CC" # Let the user override the test.
  3269. else
  3270. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3271. for as_dir in $PATH
  3272. do
  3273. IFS=$as_save_IFS
  3274. test -z "$as_dir" && as_dir=.
  3275. for ac_exec_ext in '' $ac_executable_extensions; do
  3276. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3277. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3278. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3279. break 2
  3280. fi
  3281. done
  3282. done
  3283. fi
  3284. fi
  3285. CC=$ac_cv_prog_CC
  3286. if test -n "$CC"; then
  3287. echo "$as_me:$LINENO: result: $CC" >&5
  3288. echo "${ECHO_T}$CC" >&6
  3289. else
  3290. echo "$as_me:$LINENO: result: no" >&5
  3291. echo "${ECHO_T}no" >&6
  3292. fi
  3293. fi
  3294. if test -z "$ac_cv_prog_CC"; then
  3295. ac_ct_CC=$CC
  3296. # Extract the first word of "cc", so it can be a program name with args.
  3297. set dummy cc; ac_word=$2
  3298. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3299. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3300. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3301. echo $ECHO_N "(cached) $ECHO_C" >&6
  3302. else
  3303. if test -n "$ac_ct_CC"; then
  3304. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3305. else
  3306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3307. for as_dir in $PATH
  3308. do
  3309. IFS=$as_save_IFS
  3310. test -z "$as_dir" && as_dir=.
  3311. for ac_exec_ext in '' $ac_executable_extensions; do
  3312. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3313. ac_cv_prog_ac_ct_CC="cc"
  3314. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3315. break 2
  3316. fi
  3317. done
  3318. done
  3319. fi
  3320. fi
  3321. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3322. if test -n "$ac_ct_CC"; then
  3323. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3324. echo "${ECHO_T}$ac_ct_CC" >&6
  3325. else
  3326. echo "$as_me:$LINENO: result: no" >&5
  3327. echo "${ECHO_T}no" >&6
  3328. fi
  3329. CC=$ac_ct_CC
  3330. else
  3331. CC="$ac_cv_prog_CC"
  3332. fi
  3333. fi
  3334. if test -z "$CC"; then
  3335. # Extract the first word of "cc", so it can be a program name with args.
  3336. set dummy cc; ac_word=$2
  3337. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3338. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3339. if test "${ac_cv_prog_CC+set}" = set; then
  3340. echo $ECHO_N "(cached) $ECHO_C" >&6
  3341. else
  3342. if test -n "$CC"; then
  3343. ac_cv_prog_CC="$CC" # Let the user override the test.
  3344. else
  3345. ac_prog_rejected=no
  3346. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3347. for as_dir in $PATH
  3348. do
  3349. IFS=$as_save_IFS
  3350. test -z "$as_dir" && as_dir=.
  3351. for ac_exec_ext in '' $ac_executable_extensions; do
  3352. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3353. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3354. ac_prog_rejected=yes
  3355. continue
  3356. fi
  3357. ac_cv_prog_CC="cc"
  3358. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3359. break 2
  3360. fi
  3361. done
  3362. done
  3363. if test $ac_prog_rejected = yes; then
  3364. # We found a bogon in the path, so make sure we never use it.
  3365. set dummy $ac_cv_prog_CC
  3366. shift
  3367. if test $# != 0; then
  3368. # We chose a different compiler from the bogus one.
  3369. # However, it has the same basename, so the bogon will be chosen
  3370. # first if we set CC to just the basename; use the full file name.
  3371. shift
  3372. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3373. fi
  3374. fi
  3375. fi
  3376. fi
  3377. CC=$ac_cv_prog_CC
  3378. if test -n "$CC"; then
  3379. echo "$as_me:$LINENO: result: $CC" >&5
  3380. echo "${ECHO_T}$CC" >&6
  3381. else
  3382. echo "$as_me:$LINENO: result: no" >&5
  3383. echo "${ECHO_T}no" >&6
  3384. fi
  3385. fi
  3386. if test -z "$CC"; then
  3387. if test -n "$ac_tool_prefix"; then
  3388. for ac_prog in cl
  3389. do
  3390. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3391. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3392. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3393. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3394. if test "${ac_cv_prog_CC+set}" = set; then
  3395. echo $ECHO_N "(cached) $ECHO_C" >&6
  3396. else
  3397. if test -n "$CC"; then
  3398. ac_cv_prog_CC="$CC" # Let the user override the test.
  3399. else
  3400. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3401. for as_dir in $PATH
  3402. do
  3403. IFS=$as_save_IFS
  3404. test -z "$as_dir" && as_dir=.
  3405. for ac_exec_ext in '' $ac_executable_extensions; do
  3406. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3407. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3408. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3409. break 2
  3410. fi
  3411. done
  3412. done
  3413. fi
  3414. fi
  3415. CC=$ac_cv_prog_CC
  3416. if test -n "$CC"; then
  3417. echo "$as_me:$LINENO: result: $CC" >&5
  3418. echo "${ECHO_T}$CC" >&6
  3419. else
  3420. echo "$as_me:$LINENO: result: no" >&5
  3421. echo "${ECHO_T}no" >&6
  3422. fi
  3423. test -n "$CC" && break
  3424. done
  3425. fi
  3426. if test -z "$CC"; then
  3427. ac_ct_CC=$CC
  3428. for ac_prog in cl
  3429. do
  3430. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3431. set dummy $ac_prog; ac_word=$2
  3432. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3433. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3434. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3435. echo $ECHO_N "(cached) $ECHO_C" >&6
  3436. else
  3437. if test -n "$ac_ct_CC"; then
  3438. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3439. else
  3440. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3441. for as_dir in $PATH
  3442. do
  3443. IFS=$as_save_IFS
  3444. test -z "$as_dir" && as_dir=.
  3445. for ac_exec_ext in '' $ac_executable_extensions; do
  3446. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3447. ac_cv_prog_ac_ct_CC="$ac_prog"
  3448. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3449. break 2
  3450. fi
  3451. done
  3452. done
  3453. fi
  3454. fi
  3455. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3456. if test -n "$ac_ct_CC"; then
  3457. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3458. echo "${ECHO_T}$ac_ct_CC" >&6
  3459. else
  3460. echo "$as_me:$LINENO: result: no" >&5
  3461. echo "${ECHO_T}no" >&6
  3462. fi
  3463. test -n "$ac_ct_CC" && break
  3464. done
  3465. CC=$ac_ct_CC
  3466. fi
  3467. fi
  3468. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3469. See \`config.log' for more details." >&5
  3470. echo "$as_me: error: no acceptable C compiler found in \$PATH
  3471. See \`config.log' for more details." >&2;}
  3472. { (exit 1); exit 1; }; }
  3473. # Provide some information about the compiler.
  3474. echo "$as_me:$LINENO:" \
  3475. "checking for C compiler version" >&5
  3476. ac_compiler=`set X $ac_compile; echo $2`
  3477. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  3478. (eval $ac_compiler --version </dev/null >&5) 2>&5
  3479. ac_status=$?
  3480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3481. (exit $ac_status); }
  3482. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  3483. (eval $ac_compiler -v </dev/null >&5) 2>&5
  3484. ac_status=$?
  3485. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3486. (exit $ac_status); }
  3487. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  3488. (eval $ac_compiler -V </dev/null >&5) 2>&5
  3489. ac_status=$?
  3490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3491. (exit $ac_status); }
  3492. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3493. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  3494. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3495. echo $ECHO_N "(cached) $ECHO_C" >&6
  3496. else
  3497. cat >conftest.$ac_ext <<_ACEOF
  3498. /* confdefs.h. */
  3499. _ACEOF
  3500. cat confdefs.h >>conftest.$ac_ext
  3501. cat >>conftest.$ac_ext <<_ACEOF
  3502. /* end confdefs.h. */
  3503. int
  3504. main ()
  3505. {
  3506. #ifndef __GNUC__
  3507. choke me
  3508. #endif
  3509. ;
  3510. return 0;
  3511. }
  3512. _ACEOF
  3513. rm -f conftest.$ac_objext
  3514. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3515. (eval $ac_compile) 2>conftest.er1
  3516. ac_status=$?
  3517. grep -v '^ *+' conftest.er1 >conftest.err
  3518. rm -f conftest.er1
  3519. cat conftest.err >&5
  3520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3521. (exit $ac_status); } &&
  3522. { ac_try='test -z "$ac_c_werror_flag"
  3523. || test ! -s conftest.err'
  3524. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3525. (eval $ac_try) 2>&5
  3526. ac_status=$?
  3527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3528. (exit $ac_status); }; } &&
  3529. { ac_try='test -s conftest.$ac_objext'
  3530. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3531. (eval $ac_try) 2>&5
  3532. ac_status=$?
  3533. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3534. (exit $ac_status); }; }; then
  3535. ac_compiler_gnu=yes
  3536. else
  3537. echo "$as_me: failed program was:" >&5
  3538. sed 's/^/| /' conftest.$ac_ext >&5
  3539. ac_compiler_gnu=no
  3540. fi
  3541. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3542. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3543. fi
  3544. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3545. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  3546. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3547. ac_test_CFLAGS=${CFLAGS+set}
  3548. ac_save_CFLAGS=$CFLAGS
  3549. CFLAGS="-g"
  3550. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3551. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  3552. if test "${ac_cv_prog_cc_g+set}" = set; then
  3553. echo $ECHO_N "(cached) $ECHO_C" >&6
  3554. else
  3555. cat >conftest.$ac_ext <<_ACEOF
  3556. /* confdefs.h. */
  3557. _ACEOF
  3558. cat confdefs.h >>conftest.$ac_ext
  3559. cat >>conftest.$ac_ext <<_ACEOF
  3560. /* end confdefs.h. */
  3561. int
  3562. main ()
  3563. {
  3564. ;
  3565. return 0;
  3566. }
  3567. _ACEOF
  3568. rm -f conftest.$ac_objext
  3569. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3570. (eval $ac_compile) 2>conftest.er1
  3571. ac_status=$?
  3572. grep -v '^ *+' conftest.er1 >conftest.err
  3573. rm -f conftest.er1
  3574. cat conftest.err >&5
  3575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3576. (exit $ac_status); } &&
  3577. { ac_try='test -z "$ac_c_werror_flag"
  3578. || test ! -s conftest.err'
  3579. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3580. (eval $ac_try) 2>&5
  3581. ac_status=$?
  3582. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3583. (exit $ac_status); }; } &&
  3584. { ac_try='test -s conftest.$ac_objext'
  3585. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3586. (eval $ac_try) 2>&5
  3587. ac_status=$?
  3588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3589. (exit $ac_status); }; }; then
  3590. ac_cv_prog_cc_g=yes
  3591. else
  3592. echo "$as_me: failed program was:" >&5
  3593. sed 's/^/| /' conftest.$ac_ext >&5
  3594. ac_cv_prog_cc_g=no
  3595. fi
  3596. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3597. fi
  3598. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3599. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  3600. if test "$ac_test_CFLAGS" = set; then
  3601. CFLAGS=$ac_save_CFLAGS
  3602. elif test $ac_cv_prog_cc_g = yes; then
  3603. if test "$GCC" = yes; then
  3604. CFLAGS="-g -O2"
  3605. else
  3606. CFLAGS="-g"
  3607. fi
  3608. else
  3609. if test "$GCC" = yes; then
  3610. CFLAGS="-O2"
  3611. else
  3612. CFLAGS=
  3613. fi
  3614. fi
  3615. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  3616. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  3617. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  3618. echo $ECHO_N "(cached) $ECHO_C" >&6
  3619. else
  3620. ac_cv_prog_cc_stdc=no
  3621. ac_save_CC=$CC
  3622. cat >conftest.$ac_ext <<_ACEOF
  3623. /* confdefs.h. */
  3624. _ACEOF
  3625. cat confdefs.h >>conftest.$ac_ext
  3626. cat >>conftest.$ac_ext <<_ACEOF
  3627. /* end confdefs.h. */
  3628. #include <stdarg.h>
  3629. #include <stdio.h>
  3630. #include <sys/types.h>
  3631. #include <sys/stat.h>
  3632. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3633. struct buf { int x; };
  3634. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3635. static char *e (p, i)
  3636. char **p;
  3637. int i;
  3638. {
  3639. return p[i];
  3640. }
  3641. static char *f (char * (*g) (char **, int), char **p, ...)
  3642. {
  3643. char *s;
  3644. va_list v;
  3645. va_start (v,p);
  3646. s = g (p, va_arg (v,int));
  3647. va_end (v);
  3648. return s;
  3649. }
  3650. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3651. function prototypes and stuff, but not '\xHH' hex character constants.
  3652. These don't provoke an error unfortunately, instead are silently treated
  3653. as 'x'. The following induces an error, until -std1 is added to get
  3654. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3655. array size at least. It's necessary to write '\x00'==0 to get something
  3656. that's true only with -std1. */
  3657. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3658. int test (int i, double x);
  3659. struct s1 {int (*f) (int a);};
  3660. struct s2 {int (*f) (double a);};
  3661. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3662. int argc;
  3663. char **argv;
  3664. int
  3665. main ()
  3666. {
  3667. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3668. ;
  3669. return 0;
  3670. }
  3671. _ACEOF
  3672. # Don't try gcc -ansi; that turns off useful extensions and
  3673. # breaks some systems' header files.
  3674. # AIX -qlanglvl=ansi
  3675. # Ultrix and OSF/1 -std1
  3676. # HP-UX 10.20 and later -Ae
  3677. # HP-UX older versions -Aa -D_HPUX_SOURCE
  3678. # SVR4 -Xc -D__EXTENSIONS__
  3679. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3680. do
  3681. CC="$ac_save_CC $ac_arg"
  3682. rm -f conftest.$ac_objext
  3683. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3684. (eval $ac_compile) 2>conftest.er1
  3685. ac_status=$?
  3686. grep -v '^ *+' conftest.er1 >conftest.err
  3687. rm -f conftest.er1
  3688. cat conftest.err >&5
  3689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3690. (exit $ac_status); } &&
  3691. { ac_try='test -z "$ac_c_werror_flag"
  3692. || test ! -s conftest.err'
  3693. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3694. (eval $ac_try) 2>&5
  3695. ac_status=$?
  3696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3697. (exit $ac_status); }; } &&
  3698. { ac_try='test -s conftest.$ac_objext'
  3699. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3700. (eval $ac_try) 2>&5
  3701. ac_status=$?
  3702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3703. (exit $ac_status); }; }; then
  3704. ac_cv_prog_cc_stdc=$ac_arg
  3705. break
  3706. else
  3707. echo "$as_me: failed program was:" >&5
  3708. sed 's/^/| /' conftest.$ac_ext >&5
  3709. fi
  3710. rm -f conftest.err conftest.$ac_objext
  3711. done
  3712. rm -f conftest.$ac_ext conftest.$ac_objext
  3713. CC=$ac_save_CC
  3714. fi
  3715. case "x$ac_cv_prog_cc_stdc" in
  3716. x|xno)
  3717. echo "$as_me:$LINENO: result: none needed" >&5
  3718. echo "${ECHO_T}none needed" >&6 ;;
  3719. *)
  3720. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  3721. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  3722. CC="$CC $ac_cv_prog_cc_stdc" ;;
  3723. esac
  3724. # Some people use a C++ compiler to compile C. Since we use `exit',
  3725. # in C++ we need to declare it. In case someone uses the same compiler
  3726. # for both compiling C and C++ we need to have the C++ compiler decide
  3727. # the declaration of exit, since it's the most demanding environment.
  3728. cat >conftest.$ac_ext <<_ACEOF
  3729. #ifndef __cplusplus
  3730. choke me
  3731. #endif
  3732. _ACEOF
  3733. rm -f conftest.$ac_objext
  3734. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3735. (eval $ac_compile) 2>conftest.er1
  3736. ac_status=$?
  3737. grep -v '^ *+' conftest.er1 >conftest.err
  3738. rm -f conftest.er1
  3739. cat conftest.err >&5
  3740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3741. (exit $ac_status); } &&
  3742. { ac_try='test -z "$ac_c_werror_flag"
  3743. || test ! -s conftest.err'
  3744. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3745. (eval $ac_try) 2>&5
  3746. ac_status=$?
  3747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3748. (exit $ac_status); }; } &&
  3749. { ac_try='test -s conftest.$ac_objext'
  3750. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3751. (eval $ac_try) 2>&5
  3752. ac_status=$?
  3753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3754. (exit $ac_status); }; }; then
  3755. for ac_declaration in \
  3756. '' \
  3757. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  3758. 'extern "C" void std::exit (int); using std::exit;' \
  3759. 'extern "C" void exit (int) throw ();' \
  3760. 'extern "C" void exit (int);' \
  3761. 'void exit (int);'
  3762. do
  3763. cat >conftest.$ac_ext <<_ACEOF
  3764. /* confdefs.h. */
  3765. _ACEOF
  3766. cat confdefs.h >>conftest.$ac_ext
  3767. cat >>conftest.$ac_ext <<_ACEOF
  3768. /* end confdefs.h. */
  3769. $ac_declaration
  3770. #include <stdlib.h>
  3771. int
  3772. main ()
  3773. {
  3774. exit (42);
  3775. ;
  3776. return 0;
  3777. }
  3778. _ACEOF
  3779. rm -f conftest.$ac_objext
  3780. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3781. (eval $ac_compile) 2>conftest.er1
  3782. ac_status=$?
  3783. grep -v '^ *+' conftest.er1 >conftest.err
  3784. rm -f conftest.er1
  3785. cat conftest.err >&5
  3786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3787. (exit $ac_status); } &&
  3788. { ac_try='test -z "$ac_c_werror_flag"
  3789. || test ! -s conftest.err'
  3790. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3791. (eval $ac_try) 2>&5
  3792. ac_status=$?
  3793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3794. (exit $ac_status); }; } &&
  3795. { ac_try='test -s conftest.$ac_objext'
  3796. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3797. (eval $ac_try) 2>&5
  3798. ac_status=$?
  3799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3800. (exit $ac_status); }; }; then
  3801. :
  3802. else
  3803. echo "$as_me: failed program was:" >&5
  3804. sed 's/^/| /' conftest.$ac_ext >&5
  3805. continue
  3806. fi
  3807. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3808. cat >conftest.$ac_ext <<_ACEOF
  3809. /* confdefs.h. */
  3810. _ACEOF
  3811. cat confdefs.h >>conftest.$ac_ext
  3812. cat >>conftest.$ac_ext <<_ACEOF
  3813. /* end confdefs.h. */
  3814. $ac_declaration
  3815. int
  3816. main ()
  3817. {
  3818. exit (42);
  3819. ;
  3820. return 0;
  3821. }
  3822. _ACEOF
  3823. rm -f conftest.$ac_objext
  3824. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3825. (eval $ac_compile) 2>conftest.er1
  3826. ac_status=$?
  3827. grep -v '^ *+' conftest.er1 >conftest.err
  3828. rm -f conftest.er1
  3829. cat conftest.err >&5
  3830. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3831. (exit $ac_status); } &&
  3832. { ac_try='test -z "$ac_c_werror_flag"
  3833. || test ! -s conftest.err'
  3834. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3835. (eval $ac_try) 2>&5
  3836. ac_status=$?
  3837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3838. (exit $ac_status); }; } &&
  3839. { ac_try='test -s conftest.$ac_objext'
  3840. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3841. (eval $ac_try) 2>&5
  3842. ac_status=$?
  3843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3844. (exit $ac_status); }; }; then
  3845. break
  3846. else
  3847. echo "$as_me: failed program was:" >&5
  3848. sed 's/^/| /' conftest.$ac_ext >&5
  3849. fi
  3850. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3851. done
  3852. rm -f conftest*
  3853. if test -n "$ac_declaration"; then
  3854. echo '#ifdef __cplusplus' >>confdefs.h
  3855. echo $ac_declaration >>confdefs.h
  3856. echo '#endif' >>confdefs.h
  3857. fi
  3858. else
  3859. echo "$as_me: failed program was:" >&5
  3860. sed 's/^/| /' conftest.$ac_ext >&5
  3861. fi
  3862. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3863. ac_ext=c
  3864. ac_cpp='$CPP $CPPFLAGS'
  3865. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3866. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3867. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3868. depcc="$CC" am_compiler_list=
  3869. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3870. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  3871. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3872. echo $ECHO_N "(cached) $ECHO_C" >&6
  3873. else
  3874. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3875. # We make a subdir and do the tests there. Otherwise we can end up
  3876. # making bogus files that we don't know about and never remove. For
  3877. # instance it was reported that on HP-UX the gcc test will end up
  3878. # making a dummy file named `D' -- because `-MD' means `put the output
  3879. # in D'.
  3880. mkdir conftest.dir
  3881. # Copy depcomp to subdir because otherwise we won't find it if we're
  3882. # using a relative directory.
  3883. cp "$am_depcomp" conftest.dir
  3884. cd conftest.dir
  3885. # We will build objects and dependencies in a subdirectory because
  3886. # it helps to detect inapplicable dependency modes. For instance
  3887. # both Tru64's cc and ICC support -MD to output dependencies as a
  3888. # side effect of compilation, but ICC will put the dependencies in
  3889. # the current directory while Tru64 will put them in the object
  3890. # directory.
  3891. mkdir sub
  3892. am_cv_CC_dependencies_compiler_type=none
  3893. if test "$am_compiler_list" = ""; then
  3894. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3895. fi
  3896. for depmode in $am_compiler_list; do
  3897. # Setup a source with many dependencies, because some compilers
  3898. # like to wrap large dependency lists on column 80 (with \), and
  3899. # we should not choose a depcomp mode which is confused by this.
  3900. #
  3901. # We need to recreate these files for each test, as the compiler may
  3902. # overwrite some of them when testing with obscure command lines.
  3903. # This happens at least with the AIX C compiler.
  3904. : > sub/conftest.c
  3905. for i in 1 2 3 4 5 6; do
  3906. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3907. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3908. # Solaris 8's {/usr,}/bin/sh.
  3909. touch sub/conftst$i.h
  3910. done
  3911. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3912. case $depmode in
  3913. nosideeffect)
  3914. # after this tag, mechanisms are not by side-effect, so they'll
  3915. # only be used when explicitly requested
  3916. if test "x$enable_dependency_tracking" = xyes; then
  3917. continue
  3918. else
  3919. break
  3920. fi
  3921. ;;
  3922. none) break ;;
  3923. esac
  3924. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3925. # mode. It turns out that the SunPro C++ compiler does not properly
  3926. # handle `-M -o', and we need to detect this.
  3927. if depmode=$depmode \
  3928. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3929. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3930. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3931. >/dev/null 2>conftest.err &&
  3932. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3933. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3934. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3935. # icc doesn't choke on unknown options, it will just issue warnings
  3936. # (even with -Werror). So we grep stderr for any message
  3937. # that says an option was ignored.
  3938. if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
  3939. am_cv_CC_dependencies_compiler_type=$depmode
  3940. break
  3941. fi
  3942. fi
  3943. done
  3944. cd ..
  3945. rm -rf conftest.dir
  3946. else
  3947. am_cv_CC_dependencies_compiler_type=none
  3948. fi
  3949. fi
  3950. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3951. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  3952. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3953. if
  3954. test "x$enable_dependency_tracking" != xno \
  3955. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3956. am__fastdepCC_TRUE=
  3957. am__fastdepCC_FALSE='#'
  3958. else
  3959. am__fastdepCC_TRUE='#'
  3960. am__fastdepCC_FALSE=
  3961. fi
  3962. # Check whether --enable-largefile or --disable-largefile was given.
  3963. if test "${enable_largefile+set}" = set; then
  3964. enableval="$enable_largefile"
  3965. fi;
  3966. if test "$enable_largefile" != no; then
  3967. echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  3968. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
  3969. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  3970. echo $ECHO_N "(cached) $ECHO_C" >&6
  3971. else
  3972. ac_cv_sys_largefile_CC=no
  3973. if test "$GCC" != yes; then
  3974. ac_save_CC=$CC
  3975. while :; do
  3976. # IRIX 6.2 and later do not support large files by default,
  3977. # so use the C compiler's -n32 option if that helps.
  3978. cat >conftest.$ac_ext <<_ACEOF
  3979. /* confdefs.h. */
  3980. _ACEOF
  3981. cat confdefs.h >>conftest.$ac_ext
  3982. cat >>conftest.$ac_ext <<_ACEOF
  3983. /* end confdefs.h. */
  3984. #include <sys/types.h>
  3985. /* Check that off_t can represent 2**63 - 1 correctly.
  3986. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3987. since some C++ compilers masquerading as C compilers
  3988. incorrectly reject 9223372036854775807. */
  3989. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3990. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3991. && LARGE_OFF_T % 2147483647 == 1)
  3992. ? 1 : -1];
  3993. int
  3994. main ()
  3995. {
  3996. ;
  3997. return 0;
  3998. }
  3999. _ACEOF
  4000. rm -f conftest.$ac_objext
  4001. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4002. (eval $ac_compile) 2>conftest.er1
  4003. ac_status=$?
  4004. grep -v '^ *+' conftest.er1 >conftest.err
  4005. rm -f conftest.er1
  4006. cat conftest.err >&5
  4007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4008. (exit $ac_status); } &&
  4009. { ac_try='test -z "$ac_c_werror_flag"
  4010. || test ! -s conftest.err'
  4011. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4012. (eval $ac_try) 2>&5
  4013. ac_status=$?
  4014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4015. (exit $ac_status); }; } &&
  4016. { ac_try='test -s conftest.$ac_objext'
  4017. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4018. (eval $ac_try) 2>&5
  4019. ac_status=$?
  4020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4021. (exit $ac_status); }; }; then
  4022. break
  4023. else
  4024. echo "$as_me: failed program was:" >&5
  4025. sed 's/^/| /' conftest.$ac_ext >&5
  4026. fi
  4027. rm -f conftest.err conftest.$ac_objext
  4028. CC="$CC -n32"
  4029. rm -f conftest.$ac_objext
  4030. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4031. (eval $ac_compile) 2>conftest.er1
  4032. ac_status=$?
  4033. grep -v '^ *+' conftest.er1 >conftest.err
  4034. rm -f conftest.er1
  4035. cat conftest.err >&5
  4036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4037. (exit $ac_status); } &&
  4038. { ac_try='test -z "$ac_c_werror_flag"
  4039. || test ! -s conftest.err'
  4040. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4041. (eval $ac_try) 2>&5
  4042. ac_status=$?
  4043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4044. (exit $ac_status); }; } &&
  4045. { ac_try='test -s conftest.$ac_objext'
  4046. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4047. (eval $ac_try) 2>&5
  4048. ac_status=$?
  4049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4050. (exit $ac_status); }; }; then
  4051. ac_cv_sys_largefile_CC=' -n32'; break
  4052. else
  4053. echo "$as_me: failed program was:" >&5
  4054. sed 's/^/| /' conftest.$ac_ext >&5
  4055. fi
  4056. rm -f conftest.err conftest.$ac_objext
  4057. break
  4058. done
  4059. CC=$ac_save_CC
  4060. rm -f conftest.$ac_ext
  4061. fi
  4062. fi
  4063. echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  4064. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
  4065. if test "$ac_cv_sys_largefile_CC" != no; then
  4066. CC=$CC$ac_cv_sys_largefile_CC
  4067. fi
  4068. echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  4069. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
  4070. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  4071. echo $ECHO_N "(cached) $ECHO_C" >&6
  4072. else
  4073. while :; do
  4074. ac_cv_sys_file_offset_bits=no
  4075. cat >conftest.$ac_ext <<_ACEOF
  4076. /* confdefs.h. */
  4077. _ACEOF
  4078. cat confdefs.h >>conftest.$ac_ext
  4079. cat >>conftest.$ac_ext <<_ACEOF
  4080. /* end confdefs.h. */
  4081. #include <sys/types.h>
  4082. /* Check that off_t can represent 2**63 - 1 correctly.
  4083. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4084. since some C++ compilers masquerading as C compilers
  4085. incorrectly reject 9223372036854775807. */
  4086. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4087. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4088. && LARGE_OFF_T % 2147483647 == 1)
  4089. ? 1 : -1];
  4090. int
  4091. main ()
  4092. {
  4093. ;
  4094. return 0;
  4095. }
  4096. _ACEOF
  4097. rm -f conftest.$ac_objext
  4098. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4099. (eval $ac_compile) 2>conftest.er1
  4100. ac_status=$?
  4101. grep -v '^ *+' conftest.er1 >conftest.err
  4102. rm -f conftest.er1
  4103. cat conftest.err >&5
  4104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4105. (exit $ac_status); } &&
  4106. { ac_try='test -z "$ac_c_werror_flag"
  4107. || test ! -s conftest.err'
  4108. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4109. (eval $ac_try) 2>&5
  4110. ac_status=$?
  4111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4112. (exit $ac_status); }; } &&
  4113. { ac_try='test -s conftest.$ac_objext'
  4114. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4115. (eval $ac_try) 2>&5
  4116. ac_status=$?
  4117. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4118. (exit $ac_status); }; }; then
  4119. break
  4120. else
  4121. echo "$as_me: failed program was:" >&5
  4122. sed 's/^/| /' conftest.$ac_ext >&5
  4123. fi
  4124. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4125. cat >conftest.$ac_ext <<_ACEOF
  4126. /* confdefs.h. */
  4127. _ACEOF
  4128. cat confdefs.h >>conftest.$ac_ext
  4129. cat >>conftest.$ac_ext <<_ACEOF
  4130. /* end confdefs.h. */
  4131. #define _FILE_OFFSET_BITS 64
  4132. #include <sys/types.h>
  4133. /* Check that off_t can represent 2**63 - 1 correctly.
  4134. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4135. since some C++ compilers masquerading as C compilers
  4136. incorrectly reject 9223372036854775807. */
  4137. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4138. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4139. && LARGE_OFF_T % 2147483647 == 1)
  4140. ? 1 : -1];
  4141. int
  4142. main ()
  4143. {
  4144. ;
  4145. return 0;
  4146. }
  4147. _ACEOF
  4148. rm -f conftest.$ac_objext
  4149. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4150. (eval $ac_compile) 2>conftest.er1
  4151. ac_status=$?
  4152. grep -v '^ *+' conftest.er1 >conftest.err
  4153. rm -f conftest.er1
  4154. cat conftest.err >&5
  4155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4156. (exit $ac_status); } &&
  4157. { ac_try='test -z "$ac_c_werror_flag"
  4158. || test ! -s conftest.err'
  4159. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4160. (eval $ac_try) 2>&5
  4161. ac_status=$?
  4162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4163. (exit $ac_status); }; } &&
  4164. { ac_try='test -s conftest.$ac_objext'
  4165. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4166. (eval $ac_try) 2>&5
  4167. ac_status=$?
  4168. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4169. (exit $ac_status); }; }; then
  4170. ac_cv_sys_file_offset_bits=64; break
  4171. else
  4172. echo "$as_me: failed program was:" >&5
  4173. sed 's/^/| /' conftest.$ac_ext >&5
  4174. fi
  4175. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4176. break
  4177. done
  4178. fi
  4179. echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  4180. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
  4181. if test "$ac_cv_sys_file_offset_bits" != no; then
  4182. cat >>confdefs.h <<_ACEOF
  4183. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  4184. _ACEOF
  4185. fi
  4186. rm -f conftest*
  4187. echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  4188. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
  4189. if test "${ac_cv_sys_large_files+set}" = set; then
  4190. echo $ECHO_N "(cached) $ECHO_C" >&6
  4191. else
  4192. while :; do
  4193. ac_cv_sys_large_files=no
  4194. cat >conftest.$ac_ext <<_ACEOF
  4195. /* confdefs.h. */
  4196. _ACEOF
  4197. cat confdefs.h >>conftest.$ac_ext
  4198. cat >>conftest.$ac_ext <<_ACEOF
  4199. /* end confdefs.h. */
  4200. #include <sys/types.h>
  4201. /* Check that off_t can represent 2**63 - 1 correctly.
  4202. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4203. since some C++ compilers masquerading as C compilers
  4204. incorrectly reject 9223372036854775807. */
  4205. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4206. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4207. && LARGE_OFF_T % 2147483647 == 1)
  4208. ? 1 : -1];
  4209. int
  4210. main ()
  4211. {
  4212. ;
  4213. return 0;
  4214. }
  4215. _ACEOF
  4216. rm -f conftest.$ac_objext
  4217. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4218. (eval $ac_compile) 2>conftest.er1
  4219. ac_status=$?
  4220. grep -v '^ *+' conftest.er1 >conftest.err
  4221. rm -f conftest.er1
  4222. cat conftest.err >&5
  4223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4224. (exit $ac_status); } &&
  4225. { ac_try='test -z "$ac_c_werror_flag"
  4226. || test ! -s conftest.err'
  4227. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4228. (eval $ac_try) 2>&5
  4229. ac_status=$?
  4230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4231. (exit $ac_status); }; } &&
  4232. { ac_try='test -s conftest.$ac_objext'
  4233. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4234. (eval $ac_try) 2>&5
  4235. ac_status=$?
  4236. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4237. (exit $ac_status); }; }; then
  4238. break
  4239. else
  4240. echo "$as_me: failed program was:" >&5
  4241. sed 's/^/| /' conftest.$ac_ext >&5
  4242. fi
  4243. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4244. cat >conftest.$ac_ext <<_ACEOF
  4245. /* confdefs.h. */
  4246. _ACEOF
  4247. cat confdefs.h >>conftest.$ac_ext
  4248. cat >>conftest.$ac_ext <<_ACEOF
  4249. /* end confdefs.h. */
  4250. #define _LARGE_FILES 1
  4251. #include <sys/types.h>
  4252. /* Check that off_t can represent 2**63 - 1 correctly.
  4253. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4254. since some C++ compilers masquerading as C compilers
  4255. incorrectly reject 9223372036854775807. */
  4256. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4257. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4258. && LARGE_OFF_T % 2147483647 == 1)
  4259. ? 1 : -1];
  4260. int
  4261. main ()
  4262. {
  4263. ;
  4264. return 0;
  4265. }
  4266. _ACEOF
  4267. rm -f conftest.$ac_objext
  4268. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4269. (eval $ac_compile) 2>conftest.er1
  4270. ac_status=$?
  4271. grep -v '^ *+' conftest.er1 >conftest.err
  4272. rm -f conftest.er1
  4273. cat conftest.err >&5
  4274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4275. (exit $ac_status); } &&
  4276. { ac_try='test -z "$ac_c_werror_flag"
  4277. || test ! -s conftest.err'
  4278. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4279. (eval $ac_try) 2>&5
  4280. ac_status=$?
  4281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4282. (exit $ac_status); }; } &&
  4283. { ac_try='test -s conftest.$ac_objext'
  4284. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4285. (eval $ac_try) 2>&5
  4286. ac_status=$?
  4287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4288. (exit $ac_status); }; }; then
  4289. ac_cv_sys_large_files=1; break
  4290. else
  4291. echo "$as_me: failed program was:" >&5
  4292. sed 's/^/| /' conftest.$ac_ext >&5
  4293. fi
  4294. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4295. break
  4296. done
  4297. fi
  4298. echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  4299. echo "${ECHO_T}$ac_cv_sys_large_files" >&6
  4300. if test "$ac_cv_sys_large_files" != no; then
  4301. cat >>confdefs.h <<_ACEOF
  4302. #define _LARGE_FILES $ac_cv_sys_large_files
  4303. _ACEOF
  4304. fi
  4305. rm -f conftest*
  4306. fi
  4307. # Check whether --enable-shared or --disable-shared was given.
  4308. if test "${enable_shared+set}" = set; then
  4309. enableval="$enable_shared"
  4310. p=${PACKAGE-default}
  4311. case $enableval in
  4312. yes) enable_shared=yes ;;
  4313. no) enable_shared=no ;;
  4314. *)
  4315. enable_shared=no
  4316. # Look at the argument we got. We use all the common list separators.
  4317. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4318. for pkg in $enableval; do
  4319. IFS="$lt_save_ifs"
  4320. if test "X$pkg" = "X$p"; then
  4321. enable_shared=yes
  4322. fi
  4323. done
  4324. IFS="$lt_save_ifs"
  4325. ;;
  4326. esac
  4327. else
  4328. enable_shared=yes
  4329. fi;
  4330. # Check whether --enable-static or --disable-static was given.
  4331. if test "${enable_static+set}" = set; then
  4332. enableval="$enable_static"
  4333. p=${PACKAGE-default}
  4334. case $enableval in
  4335. yes) enable_static=yes ;;
  4336. no) enable_static=no ;;
  4337. *)
  4338. enable_static=no
  4339. # Look at the argument we got. We use all the common list separators.
  4340. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4341. for pkg in $enableval; do
  4342. IFS="$lt_save_ifs"
  4343. if test "X$pkg" = "X$p"; then
  4344. enable_static=yes
  4345. fi
  4346. done
  4347. IFS="$lt_save_ifs"
  4348. ;;
  4349. esac
  4350. else
  4351. enable_static=yes
  4352. fi;
  4353. # Check whether --enable-fast-install or --disable-fast-install was given.
  4354. if test "${enable_fast_install+set}" = set; then
  4355. enableval="$enable_fast_install"
  4356. p=${PACKAGE-default}
  4357. case $enableval in
  4358. yes) enable_fast_install=yes ;;
  4359. no) enable_fast_install=no ;;
  4360. *)
  4361. enable_fast_install=no
  4362. # Look at the argument we got. We use all the common list separators.
  4363. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4364. for pkg in $enableval; do
  4365. IFS="$lt_save_ifs"
  4366. if test "X$pkg" = "X$p"; then
  4367. enable_fast_install=yes
  4368. fi
  4369. done
  4370. IFS="$lt_save_ifs"
  4371. ;;
  4372. esac
  4373. else
  4374. enable_fast_install=yes
  4375. fi;
  4376. echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  4377. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  4378. if test "${lt_cv_path_SED+set}" = set; then
  4379. echo $ECHO_N "(cached) $ECHO_C" >&6
  4380. else
  4381. # Loop through the user's path and test for sed and gsed.
  4382. # Then use that list of sed's as ones to test for truncation.
  4383. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4384. for as_dir in $PATH
  4385. do
  4386. IFS=$as_save_IFS
  4387. test -z "$as_dir" && as_dir=.
  4388. for lt_ac_prog in sed gsed; do
  4389. for ac_exec_ext in '' $ac_executable_extensions; do
  4390. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  4391. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  4392. fi
  4393. done
  4394. done
  4395. done
  4396. lt_ac_max=0
  4397. lt_ac_count=0
  4398. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  4399. # along with /bin/sed that truncates output.
  4400. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  4401. test ! -f $lt_ac_sed && break
  4402. cat /dev/null > conftest.in
  4403. lt_ac_count=0
  4404. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  4405. # Check for GNU sed and select it if it is found.
  4406. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  4407. lt_cv_path_SED=$lt_ac_sed
  4408. break
  4409. fi
  4410. while true; do
  4411. cat conftest.in conftest.in >conftest.tmp
  4412. mv conftest.tmp conftest.in
  4413. cp conftest.in conftest.nl
  4414. echo >>conftest.nl
  4415. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  4416. cmp -s conftest.out conftest.nl || break
  4417. # 10000 chars as input seems more than enough
  4418. test $lt_ac_count -gt 10 && break
  4419. lt_ac_count=`expr $lt_ac_count + 1`
  4420. if test $lt_ac_count -gt $lt_ac_max; then
  4421. lt_ac_max=$lt_ac_count
  4422. lt_cv_path_SED=$lt_ac_sed
  4423. fi
  4424. done
  4425. done
  4426. SED=$lt_cv_path_SED
  4427. fi
  4428. echo "$as_me:$LINENO: result: $SED" >&5
  4429. echo "${ECHO_T}$SED" >&6
  4430. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  4431. if test "${with_gnu_ld+set}" = set; then
  4432. withval="$with_gnu_ld"
  4433. test "$withval" = no || with_gnu_ld=yes
  4434. else
  4435. with_gnu_ld=no
  4436. fi;
  4437. ac_prog=ld
  4438. if test "$GCC" = yes; then
  4439. # Check if gcc -print-prog-name=ld gives a path.
  4440. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  4441. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  4442. case $host in
  4443. *-*-mingw*)
  4444. # gcc leaves a trailing carriage return which upsets mingw
  4445. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4446. *)
  4447. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4448. esac
  4449. case $ac_prog in
  4450. # Accept absolute paths.
  4451. [\\/]* | ?:[\\/]*)
  4452. re_direlt='/[^/][^/]*/\.\./'
  4453. # Canonicalize the pathname of ld
  4454. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  4455. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  4456. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  4457. done
  4458. test -z "$LD" && LD="$ac_prog"
  4459. ;;
  4460. "")
  4461. # If it fails, then pretend we aren't using GCC.
  4462. ac_prog=ld
  4463. ;;
  4464. *)
  4465. # If it is relative, then search for the first ld in PATH.
  4466. with_gnu_ld=unknown
  4467. ;;
  4468. esac
  4469. elif test "$with_gnu_ld" = yes; then
  4470. echo "$as_me:$LINENO: checking for GNU ld" >&5
  4471. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  4472. else
  4473. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  4474. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  4475. fi
  4476. if test "${lt_cv_path_LD+set}" = set; then
  4477. echo $ECHO_N "(cached) $ECHO_C" >&6
  4478. else
  4479. if test -z "$LD"; then
  4480. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4481. for ac_dir in $PATH; do
  4482. IFS="$lt_save_ifs"
  4483. test -z "$ac_dir" && ac_dir=.
  4484. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4485. lt_cv_path_LD="$ac_dir/$ac_prog"
  4486. # Check to see if the program is GNU ld. I'd rather use --version,
  4487. # but apparently some GNU ld's only accept -v.
  4488. # Break only if it was the GNU/non-GNU ld that we prefer.
  4489. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4490. *GNU* | *'with BFD'*)
  4491. test "$with_gnu_ld" != no && break
  4492. ;;
  4493. *)
  4494. test "$with_gnu_ld" != yes && break
  4495. ;;
  4496. esac
  4497. fi
  4498. done
  4499. IFS="$lt_save_ifs"
  4500. else
  4501. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4502. fi
  4503. fi
  4504. LD="$lt_cv_path_LD"
  4505. if test -n "$LD"; then
  4506. echo "$as_me:$LINENO: result: $LD" >&5
  4507. echo "${ECHO_T}$LD" >&6
  4508. else
  4509. echo "$as_me:$LINENO: result: no" >&5
  4510. echo "${ECHO_T}no" >&6
  4511. fi
  4512. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  4513. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  4514. { (exit 1); exit 1; }; }
  4515. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  4516. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  4517. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  4518. echo $ECHO_N "(cached) $ECHO_C" >&6
  4519. else
  4520. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  4521. case `$LD -v 2>&1 </dev/null` in
  4522. *GNU* | *'with BFD'*)
  4523. lt_cv_prog_gnu_ld=yes
  4524. ;;
  4525. *)
  4526. lt_cv_prog_gnu_ld=no
  4527. ;;
  4528. esac
  4529. fi
  4530. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  4531. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  4532. with_gnu_ld=$lt_cv_prog_gnu_ld
  4533. echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  4534. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  4535. if test "${lt_cv_ld_reload_flag+set}" = set; then
  4536. echo $ECHO_N "(cached) $ECHO_C" >&6
  4537. else
  4538. lt_cv_ld_reload_flag='-r'
  4539. fi
  4540. echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  4541. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  4542. reload_flag=$lt_cv_ld_reload_flag
  4543. case $reload_flag in
  4544. "" | " "*) ;;
  4545. *) reload_flag=" $reload_flag" ;;
  4546. esac
  4547. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4548. echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  4549. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  4550. if test "${lt_cv_path_NM+set}" = set; then
  4551. echo $ECHO_N "(cached) $ECHO_C" >&6
  4552. else
  4553. if test -n "$NM"; then
  4554. # Let the user override the test.
  4555. lt_cv_path_NM="$NM"
  4556. else
  4557. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4558. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  4559. IFS="$lt_save_ifs"
  4560. test -z "$ac_dir" && ac_dir=.
  4561. tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  4562. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4563. # Check to see if the nm accepts a BSD-compat flag.
  4564. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4565. # nm: unknown option "B" ignored
  4566. # Tru64's nm complains that /dev/null is an invalid object file
  4567. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4568. */dev/null* | *'Invalid file or object type'*)
  4569. lt_cv_path_NM="$tmp_nm -B"
  4570. break
  4571. ;;
  4572. *)
  4573. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4574. */dev/null*)
  4575. lt_cv_path_NM="$tmp_nm -p"
  4576. break
  4577. ;;
  4578. *)
  4579. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4580. continue # so that we can try to find one that supports BSD flags
  4581. ;;
  4582. esac
  4583. esac
  4584. fi
  4585. done
  4586. IFS="$lt_save_ifs"
  4587. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  4588. fi
  4589. fi
  4590. echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  4591. echo "${ECHO_T}$lt_cv_path_NM" >&6
  4592. NM="$lt_cv_path_NM"
  4593. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  4594. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  4595. LN_S=$as_ln_s
  4596. if test "$LN_S" = "ln -s"; then
  4597. echo "$as_me:$LINENO: result: yes" >&5
  4598. echo "${ECHO_T}yes" >&6
  4599. else
  4600. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  4601. echo "${ECHO_T}no, using $LN_S" >&6
  4602. fi
  4603. echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  4604. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  4605. if test "${lt_cv_deplibs_check_method+set}" = set; then
  4606. echo $ECHO_N "(cached) $ECHO_C" >&6
  4607. else
  4608. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4609. lt_cv_file_magic_test_file=
  4610. lt_cv_deplibs_check_method='unknown'
  4611. # Need to set the preceding variable on all platforms that support
  4612. # interlibrary dependencies.
  4613. # 'none' -- dependencies not supported.
  4614. # `unknown' -- same as none, but documents that we really don't know.
  4615. # 'pass_all' -- all dependencies passed with no checks.
  4616. # 'test_compile' -- check by making test program.
  4617. # 'file_magic [[regex]]' -- check by looking for files in library path
  4618. # which responds to the $file_magic_cmd with a given extended regex.
  4619. # If you have `file' or equivalent on your system and you're not sure
  4620. # whether `pass_all' will *always* work, you probably want this one.
  4621. case $host_os in
  4622. aix4* | aix5*)
  4623. lt_cv_deplibs_check_method=pass_all
  4624. ;;
  4625. beos*)
  4626. lt_cv_deplibs_check_method=pass_all
  4627. ;;
  4628. bsdi4*)
  4629. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4630. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4631. lt_cv_file_magic_test_file=/shlib/libc.so
  4632. ;;
  4633. cygwin*)
  4634. # win32_libid is a shell function defined in ltmain.sh
  4635. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4636. lt_cv_file_magic_cmd='win32_libid'
  4637. ;;
  4638. mingw* | pw32*)
  4639. # Base MSYS/MinGW do not provide the 'file' command needed by
  4640. # win32_libid shell function, so use a weaker test based on 'objdump'.
  4641. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4642. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4643. ;;
  4644. darwin* | rhapsody*)
  4645. lt_cv_deplibs_check_method=pass_all
  4646. ;;
  4647. freebsd* | kfreebsd*-gnu)
  4648. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4649. case $host_cpu in
  4650. i*86 )
  4651. # Not sure whether the presence of OpenBSD here was a mistake.
  4652. # Let's accept both of them until this is cleared up.
  4653. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
  4654. lt_cv_file_magic_cmd=/usr/bin/file
  4655. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4656. ;;
  4657. esac
  4658. else
  4659. lt_cv_deplibs_check_method=pass_all
  4660. fi
  4661. ;;
  4662. gnu*)
  4663. lt_cv_deplibs_check_method=pass_all
  4664. ;;
  4665. hpux10.20* | hpux11*)
  4666. lt_cv_file_magic_cmd=/usr/bin/file
  4667. case "$host_cpu" in
  4668. ia64*)
  4669. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4670. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4671. ;;
  4672. hppa*64*)
  4673. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  4674. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4675. ;;
  4676. *)
  4677. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4678. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4679. ;;
  4680. esac
  4681. ;;
  4682. irix5* | irix6* | nonstopux*)
  4683. case $LD in
  4684. *-32|*"-32 ") libmagic=32-bit;;
  4685. *-n32|*"-n32 ") libmagic=N32;;
  4686. *-64|*"-64 ") libmagic=64-bit;;
  4687. *) libmagic=never-match;;
  4688. esac
  4689. lt_cv_deplibs_check_method=pass_all
  4690. ;;
  4691. # This must be Linux ELF.
  4692. linux*)
  4693. case $host_cpu in
  4694. alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
  4695. lt_cv_deplibs_check_method=pass_all ;;
  4696. *)
  4697. # glibc up to 2.1.1 does not perform some relocations on ARM
  4698. # this will be overridden with pass_all, but let us keep it just in case
  4699. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
  4700. esac
  4701. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  4702. lt_cv_deplibs_check_method=pass_all
  4703. ;;
  4704. netbsd*)
  4705. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4706. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4707. else
  4708. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4709. fi
  4710. ;;
  4711. newos6*)
  4712. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4713. lt_cv_file_magic_cmd=/usr/bin/file
  4714. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4715. ;;
  4716. nto-qnx*)
  4717. lt_cv_deplibs_check_method=unknown
  4718. ;;
  4719. openbsd*)
  4720. lt_cv_file_magic_cmd=/usr/bin/file
  4721. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4722. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4723. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
  4724. else
  4725. lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  4726. fi
  4727. ;;
  4728. osf3* | osf4* | osf5*)
  4729. lt_cv_deplibs_check_method=pass_all
  4730. ;;
  4731. sco3.2v5*)
  4732. lt_cv_deplibs_check_method=pass_all
  4733. ;;
  4734. solaris*)
  4735. lt_cv_deplibs_check_method=pass_all
  4736. ;;
  4737. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  4738. case $host_vendor in
  4739. motorola)
  4740. 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]'
  4741. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4742. ;;
  4743. ncr)
  4744. lt_cv_deplibs_check_method=pass_all
  4745. ;;
  4746. sequent)
  4747. lt_cv_file_magic_cmd='/bin/file'
  4748. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4749. ;;
  4750. sni)
  4751. lt_cv_file_magic_cmd='/bin/file'
  4752. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4753. lt_cv_file_magic_test_file=/lib/libc.so
  4754. ;;
  4755. siemens)
  4756. lt_cv_deplibs_check_method=pass_all
  4757. ;;
  4758. esac
  4759. ;;
  4760. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
  4761. lt_cv_deplibs_check_method=pass_all
  4762. ;;
  4763. esac
  4764. fi
  4765. echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  4766. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  4767. file_magic_cmd=$lt_cv_file_magic_cmd
  4768. deplibs_check_method=$lt_cv_deplibs_check_method
  4769. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4770. # If no C compiler was specified, use CC.
  4771. LTCC=${LTCC-"$CC"}
  4772. # Allow CC to be a program name with arguments.
  4773. compiler=$CC
  4774. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  4775. if test "${enable_libtool_lock+set}" = set; then
  4776. enableval="$enable_libtool_lock"
  4777. fi;
  4778. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4779. # Some flags need to be propagated to the compiler or linker for good
  4780. # libtool support.
  4781. case $host in
  4782. ia64-*-hpux*)
  4783. # Find out which ABI we are using.
  4784. echo 'int i;' > conftest.$ac_ext
  4785. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4786. (eval $ac_compile) 2>&5
  4787. ac_status=$?
  4788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4789. (exit $ac_status); }; then
  4790. case `/usr/bin/file conftest.$ac_objext` in
  4791. *ELF-32*)
  4792. HPUX_IA64_MODE="32"
  4793. ;;
  4794. *ELF-64*)
  4795. HPUX_IA64_MODE="64"
  4796. ;;
  4797. esac
  4798. fi
  4799. rm -rf conftest*
  4800. ;;
  4801. *-*-irix6*)
  4802. # Find out which ABI we are using.
  4803. echo '#line 5307 "configure"' > conftest.$ac_ext
  4804. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4805. (eval $ac_compile) 2>&5
  4806. ac_status=$?
  4807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4808. (exit $ac_status); }; then
  4809. if test "$lt_cv_prog_gnu_ld" = yes; then
  4810. case `/usr/bin/file conftest.$ac_objext` in
  4811. *32-bit*)
  4812. LD="${LD-ld} -melf32bsmip"
  4813. ;;
  4814. *N32*)
  4815. LD="${LD-ld} -melf32bmipn32"
  4816. ;;
  4817. *64-bit*)
  4818. LD="${LD-ld} -melf64bmip"
  4819. ;;
  4820. esac
  4821. else
  4822. case `/usr/bin/file conftest.$ac_objext` in
  4823. *32-bit*)
  4824. LD="${LD-ld} -32"
  4825. ;;
  4826. *N32*)
  4827. LD="${LD-ld} -n32"
  4828. ;;
  4829. *64-bit*)
  4830. LD="${LD-ld} -64"
  4831. ;;
  4832. esac
  4833. fi
  4834. fi
  4835. rm -rf conftest*
  4836. ;;
  4837. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  4838. # Find out which ABI we are using.
  4839. echo 'int i;' > conftest.$ac_ext
  4840. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4841. (eval $ac_compile) 2>&5
  4842. ac_status=$?
  4843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4844. (exit $ac_status); }; then
  4845. case "`/usr/bin/file conftest.o`" in
  4846. *32-bit*)
  4847. case $host in
  4848. x86_64-*linux*)
  4849. LD="${LD-ld} -m elf_i386"
  4850. ;;
  4851. ppc64-*linux*|powerpc64-*linux*)
  4852. LD="${LD-ld} -m elf32ppclinux"
  4853. ;;
  4854. s390x-*linux*)
  4855. LD="${LD-ld} -m elf_s390"
  4856. ;;
  4857. sparc64-*linux*)
  4858. LD="${LD-ld} -m elf32_sparc"
  4859. ;;
  4860. esac
  4861. ;;
  4862. *64-bit*)
  4863. case $host in
  4864. x86_64-*linux*)
  4865. LD="${LD-ld} -m elf_x86_64"
  4866. ;;
  4867. ppc*-*linux*|powerpc*-*linux*)
  4868. LD="${LD-ld} -m elf64ppc"
  4869. ;;
  4870. s390*-*linux*)
  4871. LD="${LD-ld} -m elf64_s390"
  4872. ;;
  4873. sparc*-*linux*)
  4874. LD="${LD-ld} -m elf64_sparc"
  4875. ;;
  4876. esac
  4877. ;;
  4878. esac
  4879. fi
  4880. rm -rf conftest*
  4881. ;;
  4882. *-*-sco3.2v5*)
  4883. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4884. SAVE_CFLAGS="$CFLAGS"
  4885. CFLAGS="$CFLAGS -belf"
  4886. echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4887. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  4888. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4889. echo $ECHO_N "(cached) $ECHO_C" >&6
  4890. else
  4891. ac_ext=c
  4892. ac_cpp='$CPP $CPPFLAGS'
  4893. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4894. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4895. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4896. cat >conftest.$ac_ext <<_ACEOF
  4897. /* confdefs.h. */
  4898. _ACEOF
  4899. cat confdefs.h >>conftest.$ac_ext
  4900. cat >>conftest.$ac_ext <<_ACEOF
  4901. /* end confdefs.h. */
  4902. int
  4903. main ()
  4904. {
  4905. ;
  4906. return 0;
  4907. }
  4908. _ACEOF
  4909. rm -f conftest.$ac_objext conftest$ac_exeext
  4910. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4911. (eval $ac_link) 2>conftest.er1
  4912. ac_status=$?
  4913. grep -v '^ *+' conftest.er1 >conftest.err
  4914. rm -f conftest.er1
  4915. cat conftest.err >&5
  4916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4917. (exit $ac_status); } &&
  4918. { ac_try='test -z "$ac_c_werror_flag"
  4919. || test ! -s conftest.err'
  4920. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4921. (eval $ac_try) 2>&5
  4922. ac_status=$?
  4923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4924. (exit $ac_status); }; } &&
  4925. { ac_try='test -s conftest$ac_exeext'
  4926. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4927. (eval $ac_try) 2>&5
  4928. ac_status=$?
  4929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4930. (exit $ac_status); }; }; then
  4931. lt_cv_cc_needs_belf=yes
  4932. else
  4933. echo "$as_me: failed program was:" >&5
  4934. sed 's/^/| /' conftest.$ac_ext >&5
  4935. lt_cv_cc_needs_belf=no
  4936. fi
  4937. rm -f conftest.err conftest.$ac_objext \
  4938. conftest$ac_exeext conftest.$ac_ext
  4939. ac_ext=c
  4940. ac_cpp='$CPP $CPPFLAGS'
  4941. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4942. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4943. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4944. fi
  4945. echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4946. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  4947. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4948. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4949. CFLAGS="$SAVE_CFLAGS"
  4950. fi
  4951. ;;
  4952. *-*-cygwin* | *-*-mingw* | *-*-pw32*)
  4953. if test -n "$ac_tool_prefix"; then
  4954. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4955. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4956. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4957. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4958. if test "${ac_cv_prog_DLLTOOL+set}" = set; then
  4959. echo $ECHO_N "(cached) $ECHO_C" >&6
  4960. else
  4961. if test -n "$DLLTOOL"; then
  4962. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4963. else
  4964. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4965. for as_dir in $PATH
  4966. do
  4967. IFS=$as_save_IFS
  4968. test -z "$as_dir" && as_dir=.
  4969. for ac_exec_ext in '' $ac_executable_extensions; do
  4970. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4971. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4972. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4973. break 2
  4974. fi
  4975. done
  4976. done
  4977. fi
  4978. fi
  4979. DLLTOOL=$ac_cv_prog_DLLTOOL
  4980. if test -n "$DLLTOOL"; then
  4981. echo "$as_me:$LINENO: result: $DLLTOOL" >&5
  4982. echo "${ECHO_T}$DLLTOOL" >&6
  4983. else
  4984. echo "$as_me:$LINENO: result: no" >&5
  4985. echo "${ECHO_T}no" >&6
  4986. fi
  4987. fi
  4988. if test -z "$ac_cv_prog_DLLTOOL"; then
  4989. ac_ct_DLLTOOL=$DLLTOOL
  4990. # Extract the first word of "dlltool", so it can be a program name with args.
  4991. set dummy dlltool; ac_word=$2
  4992. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4993. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4994. if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
  4995. echo $ECHO_N "(cached) $ECHO_C" >&6
  4996. else
  4997. if test -n "$ac_ct_DLLTOOL"; then
  4998. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4999. else
  5000. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5001. for as_dir in $PATH
  5002. do
  5003. IFS=$as_save_IFS
  5004. test -z "$as_dir" && as_dir=.
  5005. for ac_exec_ext in '' $ac_executable_extensions; do
  5006. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5007. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5008. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5009. break 2
  5010. fi
  5011. done
  5012. done
  5013. test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
  5014. fi
  5015. fi
  5016. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5017. if test -n "$ac_ct_DLLTOOL"; then
  5018. echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
  5019. echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
  5020. else
  5021. echo "$as_me:$LINENO: result: no" >&5
  5022. echo "${ECHO_T}no" >&6
  5023. fi
  5024. DLLTOOL=$ac_ct_DLLTOOL
  5025. else
  5026. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5027. fi
  5028. if test -n "$ac_tool_prefix"; then
  5029. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  5030. set dummy ${ac_tool_prefix}as; ac_word=$2
  5031. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5032. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5033. if test "${ac_cv_prog_AS+set}" = set; then
  5034. echo $ECHO_N "(cached) $ECHO_C" >&6
  5035. else
  5036. if test -n "$AS"; then
  5037. ac_cv_prog_AS="$AS" # Let the user override the test.
  5038. else
  5039. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5040. for as_dir in $PATH
  5041. do
  5042. IFS=$as_save_IFS
  5043. test -z "$as_dir" && as_dir=.
  5044. for ac_exec_ext in '' $ac_executable_extensions; do
  5045. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5046. ac_cv_prog_AS="${ac_tool_prefix}as"
  5047. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5048. break 2
  5049. fi
  5050. done
  5051. done
  5052. fi
  5053. fi
  5054. AS=$ac_cv_prog_AS
  5055. if test -n "$AS"; then
  5056. echo "$as_me:$LINENO: result: $AS" >&5
  5057. echo "${ECHO_T}$AS" >&6
  5058. else
  5059. echo "$as_me:$LINENO: result: no" >&5
  5060. echo "${ECHO_T}no" >&6
  5061. fi
  5062. fi
  5063. if test -z "$ac_cv_prog_AS"; then
  5064. ac_ct_AS=$AS
  5065. # Extract the first word of "as", so it can be a program name with args.
  5066. set dummy as; ac_word=$2
  5067. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5068. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5069. if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
  5070. echo $ECHO_N "(cached) $ECHO_C" >&6
  5071. else
  5072. if test -n "$ac_ct_AS"; then
  5073. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  5074. else
  5075. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5076. for as_dir in $PATH
  5077. do
  5078. IFS=$as_save_IFS
  5079. test -z "$as_dir" && as_dir=.
  5080. for ac_exec_ext in '' $ac_executable_extensions; do
  5081. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5082. ac_cv_prog_ac_ct_AS="as"
  5083. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5084. break 2
  5085. fi
  5086. done
  5087. done
  5088. test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
  5089. fi
  5090. fi
  5091. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  5092. if test -n "$ac_ct_AS"; then
  5093. echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
  5094. echo "${ECHO_T}$ac_ct_AS" >&6
  5095. else
  5096. echo "$as_me:$LINENO: result: no" >&5
  5097. echo "${ECHO_T}no" >&6
  5098. fi
  5099. AS=$ac_ct_AS
  5100. else
  5101. AS="$ac_cv_prog_AS"
  5102. fi
  5103. if test -n "$ac_tool_prefix"; then
  5104. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5105. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5106. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5107. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5108. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  5109. echo $ECHO_N "(cached) $ECHO_C" >&6
  5110. else
  5111. if test -n "$OBJDUMP"; then
  5112. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5113. else
  5114. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5115. for as_dir in $PATH
  5116. do
  5117. IFS=$as_save_IFS
  5118. test -z "$as_dir" && as_dir=.
  5119. for ac_exec_ext in '' $ac_executable_extensions; do
  5120. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5121. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5122. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5123. break 2
  5124. fi
  5125. done
  5126. done
  5127. fi
  5128. fi
  5129. OBJDUMP=$ac_cv_prog_OBJDUMP
  5130. if test -n "$OBJDUMP"; then
  5131. echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  5132. echo "${ECHO_T}$OBJDUMP" >&6
  5133. else
  5134. echo "$as_me:$LINENO: result: no" >&5
  5135. echo "${ECHO_T}no" >&6
  5136. fi
  5137. fi
  5138. if test -z "$ac_cv_prog_OBJDUMP"; then
  5139. ac_ct_OBJDUMP=$OBJDUMP
  5140. # Extract the first word of "objdump", so it can be a program name with args.
  5141. set dummy objdump; ac_word=$2
  5142. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5143. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5144. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  5145. echo $ECHO_N "(cached) $ECHO_C" >&6
  5146. else
  5147. if test -n "$ac_ct_OBJDUMP"; then
  5148. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5149. else
  5150. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5151. for as_dir in $PATH
  5152. do
  5153. IFS=$as_save_IFS
  5154. test -z "$as_dir" && as_dir=.
  5155. for ac_exec_ext in '' $ac_executable_extensions; do
  5156. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5157. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5158. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5159. break 2
  5160. fi
  5161. done
  5162. done
  5163. test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
  5164. fi
  5165. fi
  5166. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5167. if test -n "$ac_ct_OBJDUMP"; then
  5168. echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  5169. echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
  5170. else
  5171. echo "$as_me:$LINENO: result: no" >&5
  5172. echo "${ECHO_T}no" >&6
  5173. fi
  5174. OBJDUMP=$ac_ct_OBJDUMP
  5175. else
  5176. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5177. fi
  5178. ;;
  5179. esac
  5180. need_locks="$enable_libtool_lock"
  5181. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5182. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  5183. if test "${ac_cv_header_stdc+set}" = set; then
  5184. echo $ECHO_N "(cached) $ECHO_C" >&6
  5185. else
  5186. cat >conftest.$ac_ext <<_ACEOF
  5187. /* confdefs.h. */
  5188. _ACEOF
  5189. cat confdefs.h >>conftest.$ac_ext
  5190. cat >>conftest.$ac_ext <<_ACEOF
  5191. /* end confdefs.h. */
  5192. #include <stdlib.h>
  5193. #include <stdarg.h>
  5194. #include <string.h>
  5195. #include <float.h>
  5196. int
  5197. main ()
  5198. {
  5199. ;
  5200. return 0;
  5201. }
  5202. _ACEOF
  5203. rm -f conftest.$ac_objext
  5204. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5205. (eval $ac_compile) 2>conftest.er1
  5206. ac_status=$?
  5207. grep -v '^ *+' conftest.er1 >conftest.err
  5208. rm -f conftest.er1
  5209. cat conftest.err >&5
  5210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5211. (exit $ac_status); } &&
  5212. { ac_try='test -z "$ac_c_werror_flag"
  5213. || test ! -s conftest.err'
  5214. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5215. (eval $ac_try) 2>&5
  5216. ac_status=$?
  5217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5218. (exit $ac_status); }; } &&
  5219. { ac_try='test -s conftest.$ac_objext'
  5220. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5221. (eval $ac_try) 2>&5
  5222. ac_status=$?
  5223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5224. (exit $ac_status); }; }; then
  5225. ac_cv_header_stdc=yes
  5226. else
  5227. echo "$as_me: failed program was:" >&5
  5228. sed 's/^/| /' conftest.$ac_ext >&5
  5229. ac_cv_header_stdc=no
  5230. fi
  5231. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5232. if test $ac_cv_header_stdc = yes; then
  5233. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5234. cat >conftest.$ac_ext <<_ACEOF
  5235. /* confdefs.h. */
  5236. _ACEOF
  5237. cat confdefs.h >>conftest.$ac_ext
  5238. cat >>conftest.$ac_ext <<_ACEOF
  5239. /* end confdefs.h. */
  5240. #include <string.h>
  5241. _ACEOF
  5242. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5243. $EGREP "memchr" >/dev/null 2>&1; then
  5244. :
  5245. else
  5246. ac_cv_header_stdc=no
  5247. fi
  5248. rm -f conftest*
  5249. fi
  5250. if test $ac_cv_header_stdc = yes; then
  5251. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5252. cat >conftest.$ac_ext <<_ACEOF
  5253. /* confdefs.h. */
  5254. _ACEOF
  5255. cat confdefs.h >>conftest.$ac_ext
  5256. cat >>conftest.$ac_ext <<_ACEOF
  5257. /* end confdefs.h. */
  5258. #include <stdlib.h>
  5259. _ACEOF
  5260. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5261. $EGREP "free" >/dev/null 2>&1; then
  5262. :
  5263. else
  5264. ac_cv_header_stdc=no
  5265. fi
  5266. rm -f conftest*
  5267. fi
  5268. if test $ac_cv_header_stdc = yes; then
  5269. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5270. if test "$cross_compiling" = yes; then
  5271. :
  5272. else
  5273. cat >conftest.$ac_ext <<_ACEOF
  5274. /* confdefs.h. */
  5275. _ACEOF
  5276. cat confdefs.h >>conftest.$ac_ext
  5277. cat >>conftest.$ac_ext <<_ACEOF
  5278. /* end confdefs.h. */
  5279. #include <ctype.h>
  5280. #if ((' ' & 0x0FF) == 0x020)
  5281. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5282. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5283. #else
  5284. # define ISLOWER(c) \
  5285. (('a' <= (c) && (c) <= 'i') \
  5286. || ('j' <= (c) && (c) <= 'r') \
  5287. || ('s' <= (c) && (c) <= 'z'))
  5288. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5289. #endif
  5290. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5291. int
  5292. main ()
  5293. {
  5294. int i;
  5295. for (i = 0; i < 256; i++)
  5296. if (XOR (islower (i), ISLOWER (i))
  5297. || toupper (i) != TOUPPER (i))
  5298. exit(2);
  5299. exit (0);
  5300. }
  5301. _ACEOF
  5302. rm -f conftest$ac_exeext
  5303. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5304. (eval $ac_link) 2>&5
  5305. ac_status=$?
  5306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5307. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5308. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5309. (eval $ac_try) 2>&5
  5310. ac_status=$?
  5311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5312. (exit $ac_status); }; }; then
  5313. :
  5314. else
  5315. echo "$as_me: program exited with status $ac_status" >&5
  5316. echo "$as_me: failed program was:" >&5
  5317. sed 's/^/| /' conftest.$ac_ext >&5
  5318. ( exit $ac_status )
  5319. ac_cv_header_stdc=no
  5320. fi
  5321. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5322. fi
  5323. fi
  5324. fi
  5325. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5326. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  5327. if test $ac_cv_header_stdc = yes; then
  5328. cat >>confdefs.h <<\_ACEOF
  5329. #define STDC_HEADERS 1
  5330. _ACEOF
  5331. fi
  5332. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5333. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5334. inttypes.h stdint.h unistd.h
  5335. do
  5336. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5337. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5338. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5339. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5340. echo $ECHO_N "(cached) $ECHO_C" >&6
  5341. else
  5342. cat >conftest.$ac_ext <<_ACEOF
  5343. /* confdefs.h. */
  5344. _ACEOF
  5345. cat confdefs.h >>conftest.$ac_ext
  5346. cat >>conftest.$ac_ext <<_ACEOF
  5347. /* end confdefs.h. */
  5348. $ac_includes_default
  5349. #include <$ac_header>
  5350. _ACEOF
  5351. rm -f conftest.$ac_objext
  5352. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5353. (eval $ac_compile) 2>conftest.er1
  5354. ac_status=$?
  5355. grep -v '^ *+' conftest.er1 >conftest.err
  5356. rm -f conftest.er1
  5357. cat conftest.err >&5
  5358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5359. (exit $ac_status); } &&
  5360. { ac_try='test -z "$ac_c_werror_flag"
  5361. || test ! -s conftest.err'
  5362. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5363. (eval $ac_try) 2>&5
  5364. ac_status=$?
  5365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5366. (exit $ac_status); }; } &&
  5367. { ac_try='test -s conftest.$ac_objext'
  5368. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5369. (eval $ac_try) 2>&5
  5370. ac_status=$?
  5371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5372. (exit $ac_status); }; }; then
  5373. eval "$as_ac_Header=yes"
  5374. else
  5375. echo "$as_me: failed program was:" >&5
  5376. sed 's/^/| /' conftest.$ac_ext >&5
  5377. eval "$as_ac_Header=no"
  5378. fi
  5379. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5380. fi
  5381. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5382. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5383. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5384. cat >>confdefs.h <<_ACEOF
  5385. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5386. _ACEOF
  5387. fi
  5388. done
  5389. for ac_header in dlfcn.h
  5390. do
  5391. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5392. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5393. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5394. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5395. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5396. echo $ECHO_N "(cached) $ECHO_C" >&6
  5397. fi
  5398. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5399. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5400. else
  5401. # Is the header compilable?
  5402. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5403. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5404. cat >conftest.$ac_ext <<_ACEOF
  5405. /* confdefs.h. */
  5406. _ACEOF
  5407. cat confdefs.h >>conftest.$ac_ext
  5408. cat >>conftest.$ac_ext <<_ACEOF
  5409. /* end confdefs.h. */
  5410. $ac_includes_default
  5411. #include <$ac_header>
  5412. _ACEOF
  5413. rm -f conftest.$ac_objext
  5414. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5415. (eval $ac_compile) 2>conftest.er1
  5416. ac_status=$?
  5417. grep -v '^ *+' conftest.er1 >conftest.err
  5418. rm -f conftest.er1
  5419. cat conftest.err >&5
  5420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5421. (exit $ac_status); } &&
  5422. { ac_try='test -z "$ac_c_werror_flag"
  5423. || test ! -s conftest.err'
  5424. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5425. (eval $ac_try) 2>&5
  5426. ac_status=$?
  5427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5428. (exit $ac_status); }; } &&
  5429. { ac_try='test -s conftest.$ac_objext'
  5430. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5431. (eval $ac_try) 2>&5
  5432. ac_status=$?
  5433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5434. (exit $ac_status); }; }; then
  5435. ac_header_compiler=yes
  5436. else
  5437. echo "$as_me: failed program was:" >&5
  5438. sed 's/^/| /' conftest.$ac_ext >&5
  5439. ac_header_compiler=no
  5440. fi
  5441. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5442. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5443. echo "${ECHO_T}$ac_header_compiler" >&6
  5444. # Is the header present?
  5445. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5446. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5447. cat >conftest.$ac_ext <<_ACEOF
  5448. /* confdefs.h. */
  5449. _ACEOF
  5450. cat confdefs.h >>conftest.$ac_ext
  5451. cat >>conftest.$ac_ext <<_ACEOF
  5452. /* end confdefs.h. */
  5453. #include <$ac_header>
  5454. _ACEOF
  5455. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5456. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5457. ac_status=$?
  5458. grep -v '^ *+' conftest.er1 >conftest.err
  5459. rm -f conftest.er1
  5460. cat conftest.err >&5
  5461. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5462. (exit $ac_status); } >/dev/null; then
  5463. if test -s conftest.err; then
  5464. ac_cpp_err=$ac_c_preproc_warn_flag
  5465. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5466. else
  5467. ac_cpp_err=
  5468. fi
  5469. else
  5470. ac_cpp_err=yes
  5471. fi
  5472. if test -z "$ac_cpp_err"; then
  5473. ac_header_preproc=yes
  5474. else
  5475. echo "$as_me: failed program was:" >&5
  5476. sed 's/^/| /' conftest.$ac_ext >&5
  5477. ac_header_preproc=no
  5478. fi
  5479. rm -f conftest.err conftest.$ac_ext
  5480. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5481. echo "${ECHO_T}$ac_header_preproc" >&6
  5482. # So? What about this header?
  5483. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5484. yes:no: )
  5485. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5486. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5487. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5488. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5489. ac_header_preproc=yes
  5490. ;;
  5491. no:yes:* )
  5492. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5493. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5494. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5495. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5496. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5497. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5498. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5499. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5500. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5501. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5502. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5503. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5504. (
  5505. cat <<\_ASBOX
  5506. ## ------------------------------- ##
  5507. ## Report this to curl-bug@haxx.se ##
  5508. ## ------------------------------- ##
  5509. _ASBOX
  5510. ) |
  5511. sed "s/^/$as_me: WARNING: /" >&2
  5512. ;;
  5513. esac
  5514. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5515. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5516. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5517. echo $ECHO_N "(cached) $ECHO_C" >&6
  5518. else
  5519. eval "$as_ac_Header=\$ac_header_preproc"
  5520. fi
  5521. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5522. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5523. fi
  5524. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5525. cat >>confdefs.h <<_ACEOF
  5526. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5527. _ACEOF
  5528. fi
  5529. done
  5530. ac_ext=cc
  5531. ac_cpp='$CXXCPP $CPPFLAGS'
  5532. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5533. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5534. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5535. if test -n "$ac_tool_prefix"; then
  5536. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  5537. do
  5538. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5539. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5540. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5541. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5542. if test "${ac_cv_prog_CXX+set}" = set; then
  5543. echo $ECHO_N "(cached) $ECHO_C" >&6
  5544. else
  5545. if test -n "$CXX"; then
  5546. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  5547. else
  5548. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5549. for as_dir in $PATH
  5550. do
  5551. IFS=$as_save_IFS
  5552. test -z "$as_dir" && as_dir=.
  5553. for ac_exec_ext in '' $ac_executable_extensions; do
  5554. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5555. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  5556. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5557. break 2
  5558. fi
  5559. done
  5560. done
  5561. fi
  5562. fi
  5563. CXX=$ac_cv_prog_CXX
  5564. if test -n "$CXX"; then
  5565. echo "$as_me:$LINENO: result: $CXX" >&5
  5566. echo "${ECHO_T}$CXX" >&6
  5567. else
  5568. echo "$as_me:$LINENO: result: no" >&5
  5569. echo "${ECHO_T}no" >&6
  5570. fi
  5571. test -n "$CXX" && break
  5572. done
  5573. fi
  5574. if test -z "$CXX"; then
  5575. ac_ct_CXX=$CXX
  5576. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  5577. do
  5578. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5579. set dummy $ac_prog; ac_word=$2
  5580. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5581. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5582. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  5583. echo $ECHO_N "(cached) $ECHO_C" >&6
  5584. else
  5585. if test -n "$ac_ct_CXX"; then
  5586. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  5587. else
  5588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5589. for as_dir in $PATH
  5590. do
  5591. IFS=$as_save_IFS
  5592. test -z "$as_dir" && as_dir=.
  5593. for ac_exec_ext in '' $ac_executable_extensions; do
  5594. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5595. ac_cv_prog_ac_ct_CXX="$ac_prog"
  5596. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5597. break 2
  5598. fi
  5599. done
  5600. done
  5601. fi
  5602. fi
  5603. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  5604. if test -n "$ac_ct_CXX"; then
  5605. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  5606. echo "${ECHO_T}$ac_ct_CXX" >&6
  5607. else
  5608. echo "$as_me:$LINENO: result: no" >&5
  5609. echo "${ECHO_T}no" >&6
  5610. fi
  5611. test -n "$ac_ct_CXX" && break
  5612. done
  5613. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  5614. CXX=$ac_ct_CXX
  5615. fi
  5616. # Provide some information about the compiler.
  5617. echo "$as_me:$LINENO:" \
  5618. "checking for C++ compiler version" >&5
  5619. ac_compiler=`set X $ac_compile; echo $2`
  5620. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  5621. (eval $ac_compiler --version </dev/null >&5) 2>&5
  5622. ac_status=$?
  5623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5624. (exit $ac_status); }
  5625. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  5626. (eval $ac_compiler -v </dev/null >&5) 2>&5
  5627. ac_status=$?
  5628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5629. (exit $ac_status); }
  5630. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  5631. (eval $ac_compiler -V </dev/null >&5) 2>&5
  5632. ac_status=$?
  5633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5634. (exit $ac_status); }
  5635. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  5636. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  5637. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  5638. echo $ECHO_N "(cached) $ECHO_C" >&6
  5639. else
  5640. cat >conftest.$ac_ext <<_ACEOF
  5641. /* confdefs.h. */
  5642. _ACEOF
  5643. cat confdefs.h >>conftest.$ac_ext
  5644. cat >>conftest.$ac_ext <<_ACEOF
  5645. /* end confdefs.h. */
  5646. int
  5647. main ()
  5648. {
  5649. #ifndef __GNUC__
  5650. choke me
  5651. #endif
  5652. ;
  5653. return 0;
  5654. }
  5655. _ACEOF
  5656. rm -f conftest.$ac_objext
  5657. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5658. (eval $ac_compile) 2>conftest.er1
  5659. ac_status=$?
  5660. grep -v '^ *+' conftest.er1 >conftest.err
  5661. rm -f conftest.er1
  5662. cat conftest.err >&5
  5663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5664. (exit $ac_status); } &&
  5665. { ac_try='test -z "$ac_cxx_werror_flag"
  5666. || test ! -s conftest.err'
  5667. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5668. (eval $ac_try) 2>&5
  5669. ac_status=$?
  5670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5671. (exit $ac_status); }; } &&
  5672. { ac_try='test -s conftest.$ac_objext'
  5673. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5674. (eval $ac_try) 2>&5
  5675. ac_status=$?
  5676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5677. (exit $ac_status); }; }; then
  5678. ac_compiler_gnu=yes
  5679. else
  5680. echo "$as_me: failed program was:" >&5
  5681. sed 's/^/| /' conftest.$ac_ext >&5
  5682. ac_compiler_gnu=no
  5683. fi
  5684. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5685. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  5686. fi
  5687. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  5688. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  5689. GXX=`test $ac_compiler_gnu = yes && echo yes`
  5690. ac_test_CXXFLAGS=${CXXFLAGS+set}
  5691. ac_save_CXXFLAGS=$CXXFLAGS
  5692. CXXFLAGS="-g"
  5693. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  5694. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  5695. if test "${ac_cv_prog_cxx_g+set}" = set; then
  5696. echo $ECHO_N "(cached) $ECHO_C" >&6
  5697. else
  5698. cat >conftest.$ac_ext <<_ACEOF
  5699. /* confdefs.h. */
  5700. _ACEOF
  5701. cat confdefs.h >>conftest.$ac_ext
  5702. cat >>conftest.$ac_ext <<_ACEOF
  5703. /* end confdefs.h. */
  5704. int
  5705. main ()
  5706. {
  5707. ;
  5708. return 0;
  5709. }
  5710. _ACEOF
  5711. rm -f conftest.$ac_objext
  5712. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5713. (eval $ac_compile) 2>conftest.er1
  5714. ac_status=$?
  5715. grep -v '^ *+' conftest.er1 >conftest.err
  5716. rm -f conftest.er1
  5717. cat conftest.err >&5
  5718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5719. (exit $ac_status); } &&
  5720. { ac_try='test -z "$ac_cxx_werror_flag"
  5721. || test ! -s conftest.err'
  5722. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5723. (eval $ac_try) 2>&5
  5724. ac_status=$?
  5725. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5726. (exit $ac_status); }; } &&
  5727. { ac_try='test -s conftest.$ac_objext'
  5728. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5729. (eval $ac_try) 2>&5
  5730. ac_status=$?
  5731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5732. (exit $ac_status); }; }; then
  5733. ac_cv_prog_cxx_g=yes
  5734. else
  5735. echo "$as_me: failed program was:" >&5
  5736. sed 's/^/| /' conftest.$ac_ext >&5
  5737. ac_cv_prog_cxx_g=no
  5738. fi
  5739. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5740. fi
  5741. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  5742. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  5743. if test "$ac_test_CXXFLAGS" = set; then
  5744. CXXFLAGS=$ac_save_CXXFLAGS
  5745. elif test $ac_cv_prog_cxx_g = yes; then
  5746. if test "$GXX" = yes; then
  5747. CXXFLAGS="-g -O2"
  5748. else
  5749. CXXFLAGS="-g"
  5750. fi
  5751. else
  5752. if test "$GXX" = yes; then
  5753. CXXFLAGS="-O2"
  5754. else
  5755. CXXFLAGS=
  5756. fi
  5757. fi
  5758. for ac_declaration in \
  5759. '' \
  5760. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  5761. 'extern "C" void std::exit (int); using std::exit;' \
  5762. 'extern "C" void exit (int) throw ();' \
  5763. 'extern "C" void exit (int);' \
  5764. 'void exit (int);'
  5765. do
  5766. cat >conftest.$ac_ext <<_ACEOF
  5767. /* confdefs.h. */
  5768. _ACEOF
  5769. cat confdefs.h >>conftest.$ac_ext
  5770. cat >>conftest.$ac_ext <<_ACEOF
  5771. /* end confdefs.h. */
  5772. $ac_declaration
  5773. #include <stdlib.h>
  5774. int
  5775. main ()
  5776. {
  5777. exit (42);
  5778. ;
  5779. return 0;
  5780. }
  5781. _ACEOF
  5782. rm -f conftest.$ac_objext
  5783. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5784. (eval $ac_compile) 2>conftest.er1
  5785. ac_status=$?
  5786. grep -v '^ *+' conftest.er1 >conftest.err
  5787. rm -f conftest.er1
  5788. cat conftest.err >&5
  5789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5790. (exit $ac_status); } &&
  5791. { ac_try='test -z "$ac_cxx_werror_flag"
  5792. || test ! -s conftest.err'
  5793. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5794. (eval $ac_try) 2>&5
  5795. ac_status=$?
  5796. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5797. (exit $ac_status); }; } &&
  5798. { ac_try='test -s conftest.$ac_objext'
  5799. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5800. (eval $ac_try) 2>&5
  5801. ac_status=$?
  5802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5803. (exit $ac_status); }; }; then
  5804. :
  5805. else
  5806. echo "$as_me: failed program was:" >&5
  5807. sed 's/^/| /' conftest.$ac_ext >&5
  5808. continue
  5809. fi
  5810. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5811. cat >conftest.$ac_ext <<_ACEOF
  5812. /* confdefs.h. */
  5813. _ACEOF
  5814. cat confdefs.h >>conftest.$ac_ext
  5815. cat >>conftest.$ac_ext <<_ACEOF
  5816. /* end confdefs.h. */
  5817. $ac_declaration
  5818. int
  5819. main ()
  5820. {
  5821. exit (42);
  5822. ;
  5823. return 0;
  5824. }
  5825. _ACEOF
  5826. rm -f conftest.$ac_objext
  5827. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5828. (eval $ac_compile) 2>conftest.er1
  5829. ac_status=$?
  5830. grep -v '^ *+' conftest.er1 >conftest.err
  5831. rm -f conftest.er1
  5832. cat conftest.err >&5
  5833. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5834. (exit $ac_status); } &&
  5835. { ac_try='test -z "$ac_cxx_werror_flag"
  5836. || test ! -s conftest.err'
  5837. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5838. (eval $ac_try) 2>&5
  5839. ac_status=$?
  5840. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5841. (exit $ac_status); }; } &&
  5842. { ac_try='test -s conftest.$ac_objext'
  5843. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5844. (eval $ac_try) 2>&5
  5845. ac_status=$?
  5846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5847. (exit $ac_status); }; }; then
  5848. break
  5849. else
  5850. echo "$as_me: failed program was:" >&5
  5851. sed 's/^/| /' conftest.$ac_ext >&5
  5852. fi
  5853. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5854. done
  5855. rm -f conftest*
  5856. if test -n "$ac_declaration"; then
  5857. echo '#ifdef __cplusplus' >>confdefs.h
  5858. echo $ac_declaration >>confdefs.h
  5859. echo '#endif' >>confdefs.h
  5860. fi
  5861. ac_ext=cc
  5862. ac_cpp='$CXXCPP $CPPFLAGS'
  5863. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5864. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5865. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5866. depcc="$CXX" am_compiler_list=
  5867. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5868. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  5869. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  5870. echo $ECHO_N "(cached) $ECHO_C" >&6
  5871. else
  5872. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5873. # We make a subdir and do the tests there. Otherwise we can end up
  5874. # making bogus files that we don't know about and never remove. For
  5875. # instance it was reported that on HP-UX the gcc test will end up
  5876. # making a dummy file named `D' -- because `-MD' means `put the output
  5877. # in D'.
  5878. mkdir conftest.dir
  5879. # Copy depcomp to subdir because otherwise we won't find it if we're
  5880. # using a relative directory.
  5881. cp "$am_depcomp" conftest.dir
  5882. cd conftest.dir
  5883. # We will build objects and dependencies in a subdirectory because
  5884. # it helps to detect inapplicable dependency modes. For instance
  5885. # both Tru64's cc and ICC support -MD to output dependencies as a
  5886. # side effect of compilation, but ICC will put the dependencies in
  5887. # the current directory while Tru64 will put them in the object
  5888. # directory.
  5889. mkdir sub
  5890. am_cv_CXX_dependencies_compiler_type=none
  5891. if test "$am_compiler_list" = ""; then
  5892. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5893. fi
  5894. for depmode in $am_compiler_list; do
  5895. # Setup a source with many dependencies, because some compilers
  5896. # like to wrap large dependency lists on column 80 (with \), and
  5897. # we should not choose a depcomp mode which is confused by this.
  5898. #
  5899. # We need to recreate these files for each test, as the compiler may
  5900. # overwrite some of them when testing with obscure command lines.
  5901. # This happens at least with the AIX C compiler.
  5902. : > sub/conftest.c
  5903. for i in 1 2 3 4 5 6; do
  5904. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5905. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5906. # Solaris 8's {/usr,}/bin/sh.
  5907. touch sub/conftst$i.h
  5908. done
  5909. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5910. case $depmode in
  5911. nosideeffect)
  5912. # after this tag, mechanisms are not by side-effect, so they'll
  5913. # only be used when explicitly requested
  5914. if test "x$enable_dependency_tracking" = xyes; then
  5915. continue
  5916. else
  5917. break
  5918. fi
  5919. ;;
  5920. none) break ;;
  5921. esac
  5922. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5923. # mode. It turns out that the SunPro C++ compiler does not properly
  5924. # handle `-M -o', and we need to detect this.
  5925. if depmode=$depmode \
  5926. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5927. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5928. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5929. >/dev/null 2>conftest.err &&
  5930. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5931. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5932. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5933. # icc doesn't choke on unknown options, it will just issue warnings
  5934. # (even with -Werror). So we grep stderr for any message
  5935. # that says an option was ignored.
  5936. if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
  5937. am_cv_CXX_dependencies_compiler_type=$depmode
  5938. break
  5939. fi
  5940. fi
  5941. done
  5942. cd ..
  5943. rm -rf conftest.dir
  5944. else
  5945. am_cv_CXX_dependencies_compiler_type=none
  5946. fi
  5947. fi
  5948. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  5949. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  5950. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  5951. if
  5952. test "x$enable_dependency_tracking" != xno \
  5953. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  5954. am__fastdepCXX_TRUE=
  5955. am__fastdepCXX_FALSE='#'
  5956. else
  5957. am__fastdepCXX_TRUE='#'
  5958. am__fastdepCXX_FALSE=
  5959. fi
  5960. ac_ext=cc
  5961. ac_cpp='$CXXCPP $CPPFLAGS'
  5962. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5963. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5964. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5965. echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  5966. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  5967. if test -z "$CXXCPP"; then
  5968. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  5969. echo $ECHO_N "(cached) $ECHO_C" >&6
  5970. else
  5971. # Double quotes because CXXCPP needs to be expanded
  5972. for CXXCPP in "$CXX -E" "/lib/cpp"
  5973. do
  5974. ac_preproc_ok=false
  5975. for ac_cxx_preproc_warn_flag in '' yes
  5976. do
  5977. # Use a header file that comes with gcc, so configuring glibc
  5978. # with a fresh cross-compiler works.
  5979. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5980. # <limits.h> exists even on freestanding compilers.
  5981. # On the NeXT, cc -E runs the code through the compiler's parser,
  5982. # not just through cpp. "Syntax error" is here to catch this case.
  5983. cat >conftest.$ac_ext <<_ACEOF
  5984. /* confdefs.h. */
  5985. _ACEOF
  5986. cat confdefs.h >>conftest.$ac_ext
  5987. cat >>conftest.$ac_ext <<_ACEOF
  5988. /* end confdefs.h. */
  5989. #ifdef __STDC__
  5990. # include <limits.h>
  5991. #else
  5992. # include <assert.h>
  5993. #endif
  5994. Syntax error
  5995. _ACEOF
  5996. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5997. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5998. ac_status=$?
  5999. grep -v '^ *+' conftest.er1 >conftest.err
  6000. rm -f conftest.er1
  6001. cat conftest.err >&5
  6002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6003. (exit $ac_status); } >/dev/null; then
  6004. if test -s conftest.err; then
  6005. ac_cpp_err=$ac_cxx_preproc_warn_flag
  6006. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  6007. else
  6008. ac_cpp_err=
  6009. fi
  6010. else
  6011. ac_cpp_err=yes
  6012. fi
  6013. if test -z "$ac_cpp_err"; then
  6014. :
  6015. else
  6016. echo "$as_me: failed program was:" >&5
  6017. sed 's/^/| /' conftest.$ac_ext >&5
  6018. # Broken: fails on valid input.
  6019. continue
  6020. fi
  6021. rm -f conftest.err conftest.$ac_ext
  6022. # OK, works on sane cases. Now check whether non-existent headers
  6023. # can be detected and how.
  6024. cat >conftest.$ac_ext <<_ACEOF
  6025. /* confdefs.h. */
  6026. _ACEOF
  6027. cat confdefs.h >>conftest.$ac_ext
  6028. cat >>conftest.$ac_ext <<_ACEOF
  6029. /* end confdefs.h. */
  6030. #include <ac_nonexistent.h>
  6031. _ACEOF
  6032. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6033. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6034. ac_status=$?
  6035. grep -v '^ *+' conftest.er1 >conftest.err
  6036. rm -f conftest.er1
  6037. cat conftest.err >&5
  6038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6039. (exit $ac_status); } >/dev/null; then
  6040. if test -s conftest.err; then
  6041. ac_cpp_err=$ac_cxx_preproc_warn_flag
  6042. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  6043. else
  6044. ac_cpp_err=
  6045. fi
  6046. else
  6047. ac_cpp_err=yes
  6048. fi
  6049. if test -z "$ac_cpp_err"; then
  6050. # Broken: success on invalid input.
  6051. continue
  6052. else
  6053. echo "$as_me: failed program was:" >&5
  6054. sed 's/^/| /' conftest.$ac_ext >&5
  6055. # Passes both tests.
  6056. ac_preproc_ok=:
  6057. break
  6058. fi
  6059. rm -f conftest.err conftest.$ac_ext
  6060. done
  6061. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6062. rm -f conftest.err conftest.$ac_ext
  6063. if $ac_preproc_ok; then
  6064. break
  6065. fi
  6066. done
  6067. ac_cv_prog_CXXCPP=$CXXCPP
  6068. fi
  6069. CXXCPP=$ac_cv_prog_CXXCPP
  6070. else
  6071. ac_cv_prog_CXXCPP=$CXXCPP
  6072. fi
  6073. echo "$as_me:$LINENO: result: $CXXCPP" >&5
  6074. echo "${ECHO_T}$CXXCPP" >&6
  6075. ac_preproc_ok=false
  6076. for ac_cxx_preproc_warn_flag in '' yes
  6077. do
  6078. # Use a header file that comes with gcc, so configuring glibc
  6079. # with a fresh cross-compiler works.
  6080. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6081. # <limits.h> exists even on freestanding compilers.
  6082. # On the NeXT, cc -E runs the code through the compiler's parser,
  6083. # not just through cpp. "Syntax error" is here to catch this case.
  6084. cat >conftest.$ac_ext <<_ACEOF
  6085. /* confdefs.h. */
  6086. _ACEOF
  6087. cat confdefs.h >>conftest.$ac_ext
  6088. cat >>conftest.$ac_ext <<_ACEOF
  6089. /* end confdefs.h. */
  6090. #ifdef __STDC__
  6091. # include <limits.h>
  6092. #else
  6093. # include <assert.h>
  6094. #endif
  6095. Syntax error
  6096. _ACEOF
  6097. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6098. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6099. ac_status=$?
  6100. grep -v '^ *+' conftest.er1 >conftest.err
  6101. rm -f conftest.er1
  6102. cat conftest.err >&5
  6103. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6104. (exit $ac_status); } >/dev/null; then
  6105. if test -s conftest.err; then
  6106. ac_cpp_err=$ac_cxx_preproc_warn_flag
  6107. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  6108. else
  6109. ac_cpp_err=
  6110. fi
  6111. else
  6112. ac_cpp_err=yes
  6113. fi
  6114. if test -z "$ac_cpp_err"; then
  6115. :
  6116. else
  6117. echo "$as_me: failed program was:" >&5
  6118. sed 's/^/| /' conftest.$ac_ext >&5
  6119. # Broken: fails on valid input.
  6120. continue
  6121. fi
  6122. rm -f conftest.err conftest.$ac_ext
  6123. # OK, works on sane cases. Now check whether non-existent headers
  6124. # can be detected and how.
  6125. cat >conftest.$ac_ext <<_ACEOF
  6126. /* confdefs.h. */
  6127. _ACEOF
  6128. cat confdefs.h >>conftest.$ac_ext
  6129. cat >>conftest.$ac_ext <<_ACEOF
  6130. /* end confdefs.h. */
  6131. #include <ac_nonexistent.h>
  6132. _ACEOF
  6133. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6134. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6135. ac_status=$?
  6136. grep -v '^ *+' conftest.er1 >conftest.err
  6137. rm -f conftest.er1
  6138. cat conftest.err >&5
  6139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6140. (exit $ac_status); } >/dev/null; then
  6141. if test -s conftest.err; then
  6142. ac_cpp_err=$ac_cxx_preproc_warn_flag
  6143. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  6144. else
  6145. ac_cpp_err=
  6146. fi
  6147. else
  6148. ac_cpp_err=yes
  6149. fi
  6150. if test -z "$ac_cpp_err"; then
  6151. # Broken: success on invalid input.
  6152. continue
  6153. else
  6154. echo "$as_me: failed program was:" >&5
  6155. sed 's/^/| /' conftest.$ac_ext >&5
  6156. # Passes both tests.
  6157. ac_preproc_ok=:
  6158. break
  6159. fi
  6160. rm -f conftest.err conftest.$ac_ext
  6161. done
  6162. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6163. rm -f conftest.err conftest.$ac_ext
  6164. if $ac_preproc_ok; then
  6165. :
  6166. else
  6167. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  6168. See \`config.log' for more details." >&5
  6169. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  6170. See \`config.log' for more details." >&2;}
  6171. { (exit 1); exit 1; }; }
  6172. fi
  6173. ac_ext=cc
  6174. ac_cpp='$CXXCPP $CPPFLAGS'
  6175. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6176. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6177. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6178. ac_ext=f
  6179. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  6180. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6181. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  6182. if test -n "$ac_tool_prefix"; then
  6183. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  6184. do
  6185. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6186. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6187. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6188. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6189. if test "${ac_cv_prog_F77+set}" = set; then
  6190. echo $ECHO_N "(cached) $ECHO_C" >&6
  6191. else
  6192. if test -n "$F77"; then
  6193. ac_cv_prog_F77="$F77" # Let the user override the test.
  6194. else
  6195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6196. for as_dir in $PATH
  6197. do
  6198. IFS=$as_save_IFS
  6199. test -z "$as_dir" && as_dir=.
  6200. for ac_exec_ext in '' $ac_executable_extensions; do
  6201. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6202. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  6203. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6204. break 2
  6205. fi
  6206. done
  6207. done
  6208. fi
  6209. fi
  6210. F77=$ac_cv_prog_F77
  6211. if test -n "$F77"; then
  6212. echo "$as_me:$LINENO: result: $F77" >&5
  6213. echo "${ECHO_T}$F77" >&6
  6214. else
  6215. echo "$as_me:$LINENO: result: no" >&5
  6216. echo "${ECHO_T}no" >&6
  6217. fi
  6218. test -n "$F77" && break
  6219. done
  6220. fi
  6221. if test -z "$F77"; then
  6222. ac_ct_F77=$F77
  6223. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  6224. do
  6225. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6226. set dummy $ac_prog; ac_word=$2
  6227. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6228. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6229. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  6230. echo $ECHO_N "(cached) $ECHO_C" >&6
  6231. else
  6232. if test -n "$ac_ct_F77"; then
  6233. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  6234. else
  6235. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6236. for as_dir in $PATH
  6237. do
  6238. IFS=$as_save_IFS
  6239. test -z "$as_dir" && as_dir=.
  6240. for ac_exec_ext in '' $ac_executable_extensions; do
  6241. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6242. ac_cv_prog_ac_ct_F77="$ac_prog"
  6243. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6244. break 2
  6245. fi
  6246. done
  6247. done
  6248. fi
  6249. fi
  6250. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  6251. if test -n "$ac_ct_F77"; then
  6252. echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  6253. echo "${ECHO_T}$ac_ct_F77" >&6
  6254. else
  6255. echo "$as_me:$LINENO: result: no" >&5
  6256. echo "${ECHO_T}no" >&6
  6257. fi
  6258. test -n "$ac_ct_F77" && break
  6259. done
  6260. F77=$ac_ct_F77
  6261. fi
  6262. # Provide some information about the compiler.
  6263. echo "$as_me:6881:" \
  6264. "checking for Fortran 77 compiler version" >&5
  6265. ac_compiler=`set X $ac_compile; echo $2`
  6266. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  6267. (eval $ac_compiler --version </dev/null >&5) 2>&5
  6268. ac_status=$?
  6269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6270. (exit $ac_status); }
  6271. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  6272. (eval $ac_compiler -v </dev/null >&5) 2>&5
  6273. ac_status=$?
  6274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6275. (exit $ac_status); }
  6276. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  6277. (eval $ac_compiler -V </dev/null >&5) 2>&5
  6278. ac_status=$?
  6279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6280. (exit $ac_status); }
  6281. rm -f a.out
  6282. # If we don't use `.F' as extension, the preprocessor is not run on the
  6283. # input file. (Note that this only needs to work for GNU compilers.)
  6284. ac_save_ext=$ac_ext
  6285. ac_ext=F
  6286. echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  6287. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
  6288. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  6289. echo $ECHO_N "(cached) $ECHO_C" >&6
  6290. else
  6291. cat >conftest.$ac_ext <<_ACEOF
  6292. program main
  6293. #ifndef __GNUC__
  6294. choke me
  6295. #endif
  6296. end
  6297. _ACEOF
  6298. rm -f conftest.$ac_objext
  6299. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6300. (eval $ac_compile) 2>conftest.er1
  6301. ac_status=$?
  6302. grep -v '^ *+' conftest.er1 >conftest.err
  6303. rm -f conftest.er1
  6304. cat conftest.err >&5
  6305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6306. (exit $ac_status); } &&
  6307. { ac_try='test -z "$ac_f77_werror_flag"
  6308. || test ! -s conftest.err'
  6309. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6310. (eval $ac_try) 2>&5
  6311. ac_status=$?
  6312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6313. (exit $ac_status); }; } &&
  6314. { ac_try='test -s conftest.$ac_objext'
  6315. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6316. (eval $ac_try) 2>&5
  6317. ac_status=$?
  6318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6319. (exit $ac_status); }; }; then
  6320. ac_compiler_gnu=yes
  6321. else
  6322. echo "$as_me: failed program was:" >&5
  6323. sed 's/^/| /' conftest.$ac_ext >&5
  6324. ac_compiler_gnu=no
  6325. fi
  6326. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6327. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  6328. fi
  6329. echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  6330. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
  6331. ac_ext=$ac_save_ext
  6332. ac_test_FFLAGS=${FFLAGS+set}
  6333. ac_save_FFLAGS=$FFLAGS
  6334. FFLAGS=
  6335. echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  6336. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
  6337. if test "${ac_cv_prog_f77_g+set}" = set; then
  6338. echo $ECHO_N "(cached) $ECHO_C" >&6
  6339. else
  6340. FFLAGS=-g
  6341. cat >conftest.$ac_ext <<_ACEOF
  6342. program main
  6343. end
  6344. _ACEOF
  6345. rm -f conftest.$ac_objext
  6346. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6347. (eval $ac_compile) 2>conftest.er1
  6348. ac_status=$?
  6349. grep -v '^ *+' conftest.er1 >conftest.err
  6350. rm -f conftest.er1
  6351. cat conftest.err >&5
  6352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6353. (exit $ac_status); } &&
  6354. { ac_try='test -z "$ac_f77_werror_flag"
  6355. || test ! -s conftest.err'
  6356. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6357. (eval $ac_try) 2>&5
  6358. ac_status=$?
  6359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6360. (exit $ac_status); }; } &&
  6361. { ac_try='test -s conftest.$ac_objext'
  6362. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6363. (eval $ac_try) 2>&5
  6364. ac_status=$?
  6365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6366. (exit $ac_status); }; }; then
  6367. ac_cv_prog_f77_g=yes
  6368. else
  6369. echo "$as_me: failed program was:" >&5
  6370. sed 's/^/| /' conftest.$ac_ext >&5
  6371. ac_cv_prog_f77_g=no
  6372. fi
  6373. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6374. fi
  6375. echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  6376. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
  6377. if test "$ac_test_FFLAGS" = set; then
  6378. FFLAGS=$ac_save_FFLAGS
  6379. elif test $ac_cv_prog_f77_g = yes; then
  6380. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  6381. FFLAGS="-g -O2"
  6382. else
  6383. FFLAGS="-g"
  6384. fi
  6385. else
  6386. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  6387. FFLAGS="-O2"
  6388. else
  6389. FFLAGS=
  6390. fi
  6391. fi
  6392. G77=`test $ac_compiler_gnu = yes && echo yes`
  6393. ac_ext=c
  6394. ac_cpp='$CPP $CPPFLAGS'
  6395. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6396. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6397. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6398. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  6399. # find the maximum length of command line arguments
  6400. echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  6401. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
  6402. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  6403. echo $ECHO_N "(cached) $ECHO_C" >&6
  6404. else
  6405. i=0
  6406. testring="ABCD"
  6407. case $build_os in
  6408. msdosdjgpp*)
  6409. # On DJGPP, this test can blow up pretty badly due to problems in libc
  6410. # (any single argument exceeding 2000 bytes causes a buffer overrun
  6411. # during glob expansion). Even if it were fixed, the result of this
  6412. # check would be larger than it should be.
  6413. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  6414. ;;
  6415. gnu*)
  6416. # Under GNU Hurd, this test is not required because there is
  6417. # no limit to the length of command line arguments.
  6418. # Libtool will interpret -1 as no limit whatsoever
  6419. lt_cv_sys_max_cmd_len=-1;
  6420. ;;
  6421. cygwin* | mingw*)
  6422. # On Win9x/ME, this test blows up -- it succeeds, but takes
  6423. # about 5 minutes as the teststring grows exponentially.
  6424. # Worse, since 9x/ME are not pre-emptively multitasking,
  6425. # you end up with a "frozen" computer, even though with patience
  6426. # the test eventually succeeds (with a max line length of 256k).
  6427. # Instead, let's just punt: use the minimum linelength reported by
  6428. # all of the supported platforms: 8192 (on NT/2K/XP).
  6429. lt_cv_sys_max_cmd_len=8192;
  6430. ;;
  6431. amigaos*)
  6432. # On AmigaOS with pdksh, this test takes hours, literally.
  6433. # So we just punt and use a minimum line length of 8192.
  6434. lt_cv_sys_max_cmd_len=8192;
  6435. ;;
  6436. *)
  6437. # If test is not a shell built-in, we'll probably end up computing a
  6438. # maximum length that is only half of the actual maximum length, but
  6439. # we can't tell.
  6440. while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
  6441. = "XX$testring") >/dev/null 2>&1 &&
  6442. new_result=`expr "X$testring" : ".*" 2>&1` &&
  6443. lt_cv_sys_max_cmd_len=$new_result &&
  6444. test $i != 17 # 1/2 MB should be enough
  6445. do
  6446. i=`expr $i + 1`
  6447. testring=$testring$testring
  6448. done
  6449. testring=
  6450. # Add a significant safety factor because C++ compilers can tack on massive
  6451. # amounts of additional arguments before passing them to the linker.
  6452. # It appears as though 1/2 is a usable value.
  6453. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  6454. ;;
  6455. esac
  6456. fi
  6457. if test -n $lt_cv_sys_max_cmd_len ; then
  6458. echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  6459. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
  6460. else
  6461. echo "$as_me:$LINENO: result: none" >&5
  6462. echo "${ECHO_T}none" >&6
  6463. fi
  6464. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6465. echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  6466. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
  6467. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  6468. echo $ECHO_N "(cached) $ECHO_C" >&6
  6469. else
  6470. # These are sane defaults that work on at least a few old systems.
  6471. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6472. # Character class describing NM global symbol codes.
  6473. symcode='[BCDEGRST]'
  6474. # Regexp to match symbols that can be accessed directly from C.
  6475. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6476. # Transform the above into a raw symbol and a C symbol.
  6477. symxfrm='\1 \2\3 \3'
  6478. # Transform an extracted symbol line into a proper C declaration
  6479. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  6480. # Transform an extracted symbol line into symbol name and symbol address
  6481. 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'"
  6482. # Define system-specific variables.
  6483. case $host_os in
  6484. aix*)
  6485. symcode='[BCDT]'
  6486. ;;
  6487. cygwin* | mingw* | pw32*)
  6488. symcode='[ABCDGISTW]'
  6489. ;;
  6490. hpux*) # Its linker distinguishes data from code symbols
  6491. if test "$host_cpu" = ia64; then
  6492. symcode='[ABCDEGRST]'
  6493. fi
  6494. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6495. 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'"
  6496. ;;
  6497. irix* | nonstopux*)
  6498. symcode='[BCDEGRST]'
  6499. ;;
  6500. osf*)
  6501. symcode='[BCDEGQRST]'
  6502. ;;
  6503. solaris* | sysv5*)
  6504. symcode='[BDRT]'
  6505. ;;
  6506. sysv4)
  6507. symcode='[DFNSTU]'
  6508. ;;
  6509. esac
  6510. # Handle CRLF in mingw tool chain
  6511. opt_cr=
  6512. case $build_os in
  6513. mingw*)
  6514. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6515. ;;
  6516. esac
  6517. # If we're using GNU nm, then use its standard symbol codes.
  6518. case `$NM -V 2>&1` in
  6519. *GNU* | *'with BFD'*)
  6520. symcode='[ABCDGIRSTW]' ;;
  6521. esac
  6522. # Try without a prefix undercore, then with it.
  6523. for ac_symprfx in "" "_"; do
  6524. # Write the raw and C identifiers.
  6525. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  6526. # Check to see that the pipe works correctly.
  6527. pipe_works=no
  6528. rm -f conftest*
  6529. cat > conftest.$ac_ext <<EOF
  6530. #ifdef __cplusplus
  6531. extern "C" {
  6532. #endif
  6533. char nm_test_var;
  6534. void nm_test_func(){}
  6535. #ifdef __cplusplus
  6536. }
  6537. #endif
  6538. int main(){nm_test_var='a';nm_test_func();return(0);}
  6539. EOF
  6540. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6541. (eval $ac_compile) 2>&5
  6542. ac_status=$?
  6543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6544. (exit $ac_status); }; then
  6545. # Now try to grab the symbols.
  6546. nlist=conftest.nm
  6547. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  6548. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  6549. ac_status=$?
  6550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6551. (exit $ac_status); } && test -s "$nlist"; then
  6552. # Try sorting and uniquifying the output.
  6553. if sort "$nlist" | uniq > "$nlist"T; then
  6554. mv -f "$nlist"T "$nlist"
  6555. else
  6556. rm -f "$nlist"T
  6557. fi
  6558. # Make sure that we snagged all the symbols we need.
  6559. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  6560. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  6561. cat <<EOF > conftest.$ac_ext
  6562. #ifdef __cplusplus
  6563. extern "C" {
  6564. #endif
  6565. EOF
  6566. # Now generate the symbol file.
  6567. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  6568. cat <<EOF >> conftest.$ac_ext
  6569. #if defined (__STDC__) && __STDC__
  6570. # define lt_ptr_t void *
  6571. #else
  6572. # define lt_ptr_t char *
  6573. # define const
  6574. #endif
  6575. /* The mapping between symbol names and symbols. */
  6576. const struct {
  6577. const char *name;
  6578. lt_ptr_t address;
  6579. }
  6580. lt_preloaded_symbols[] =
  6581. {
  6582. EOF
  6583. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  6584. cat <<\EOF >> conftest.$ac_ext
  6585. {0, (lt_ptr_t) 0}
  6586. };
  6587. #ifdef __cplusplus
  6588. }
  6589. #endif
  6590. EOF
  6591. # Now try linking the two files.
  6592. mv conftest.$ac_objext conftstm.$ac_objext
  6593. lt_save_LIBS="$LIBS"
  6594. lt_save_CFLAGS="$CFLAGS"
  6595. LIBS="conftstm.$ac_objext"
  6596. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6597. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6598. (eval $ac_link) 2>&5
  6599. ac_status=$?
  6600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6601. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  6602. pipe_works=yes
  6603. fi
  6604. LIBS="$lt_save_LIBS"
  6605. CFLAGS="$lt_save_CFLAGS"
  6606. else
  6607. echo "cannot find nm_test_func in $nlist" >&5
  6608. fi
  6609. else
  6610. echo "cannot find nm_test_var in $nlist" >&5
  6611. fi
  6612. else
  6613. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6614. fi
  6615. else
  6616. echo "$progname: failed program was:" >&5
  6617. cat conftest.$ac_ext >&5
  6618. fi
  6619. rm -f conftest* conftst*
  6620. # Do not use the global_symbol_pipe unless it works.
  6621. if test "$pipe_works" = yes; then
  6622. break
  6623. else
  6624. lt_cv_sys_global_symbol_pipe=
  6625. fi
  6626. done
  6627. fi
  6628. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6629. lt_cv_sys_global_symbol_to_cdecl=
  6630. fi
  6631. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6632. echo "$as_me:$LINENO: result: failed" >&5
  6633. echo "${ECHO_T}failed" >&6
  6634. else
  6635. echo "$as_me:$LINENO: result: ok" >&5
  6636. echo "${ECHO_T}ok" >&6
  6637. fi
  6638. echo "$as_me:$LINENO: checking for objdir" >&5
  6639. echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  6640. if test "${lt_cv_objdir+set}" = set; then
  6641. echo $ECHO_N "(cached) $ECHO_C" >&6
  6642. else
  6643. rm -f .libs 2>/dev/null
  6644. mkdir .libs 2>/dev/null
  6645. if test -d .libs; then
  6646. lt_cv_objdir=.libs
  6647. else
  6648. # MS-DOS does not allow filenames that begin with a dot.
  6649. lt_cv_objdir=_libs
  6650. fi
  6651. rmdir .libs 2>/dev/null
  6652. fi
  6653. echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  6654. echo "${ECHO_T}$lt_cv_objdir" >&6
  6655. objdir=$lt_cv_objdir
  6656. case $host_os in
  6657. aix3*)
  6658. # AIX sometimes has problems with the GCC collect2 program. For some
  6659. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6660. # vanish in a puff of smoke.
  6661. if test "X${COLLECT_NAMES+set}" != Xset; then
  6662. COLLECT_NAMES=
  6663. export COLLECT_NAMES
  6664. fi
  6665. ;;
  6666. esac
  6667. # Sed substitution that helps us do robust quoting. It backslashifies
  6668. # metacharacters that are still active within double-quoted strings.
  6669. Xsed='sed -e s/^X//'
  6670. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  6671. # Same as above, but do not quote variable references.
  6672. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  6673. # Sed substitution to delay expansion of an escaped shell variable in a
  6674. # double_quote_subst'ed string.
  6675. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6676. # Sed substitution to avoid accidental globbing in evaled expressions
  6677. no_glob_subst='s/\*/\\\*/g'
  6678. # Constants:
  6679. rm="rm -f"
  6680. # Global variables:
  6681. default_ofile=libtool
  6682. can_build_shared=yes
  6683. # All known linkers require a `.a' archive for static linking (except M$VC,
  6684. # which needs '.lib').
  6685. libext=a
  6686. ltmain="$ac_aux_dir/ltmain.sh"
  6687. ofile="$default_ofile"
  6688. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6689. if test -n "$ac_tool_prefix"; then
  6690. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6691. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6692. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6693. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6694. if test "${ac_cv_prog_AR+set}" = set; then
  6695. echo $ECHO_N "(cached) $ECHO_C" >&6
  6696. else
  6697. if test -n "$AR"; then
  6698. ac_cv_prog_AR="$AR" # Let the user override the test.
  6699. else
  6700. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6701. for as_dir in $PATH
  6702. do
  6703. IFS=$as_save_IFS
  6704. test -z "$as_dir" && as_dir=.
  6705. for ac_exec_ext in '' $ac_executable_extensions; do
  6706. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6707. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6708. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6709. break 2
  6710. fi
  6711. done
  6712. done
  6713. fi
  6714. fi
  6715. AR=$ac_cv_prog_AR
  6716. if test -n "$AR"; then
  6717. echo "$as_me:$LINENO: result: $AR" >&5
  6718. echo "${ECHO_T}$AR" >&6
  6719. else
  6720. echo "$as_me:$LINENO: result: no" >&5
  6721. echo "${ECHO_T}no" >&6
  6722. fi
  6723. fi
  6724. if test -z "$ac_cv_prog_AR"; then
  6725. ac_ct_AR=$AR
  6726. # Extract the first word of "ar", so it can be a program name with args.
  6727. set dummy ar; ac_word=$2
  6728. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6729. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6730. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  6731. echo $ECHO_N "(cached) $ECHO_C" >&6
  6732. else
  6733. if test -n "$ac_ct_AR"; then
  6734. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6735. else
  6736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6737. for as_dir in $PATH
  6738. do
  6739. IFS=$as_save_IFS
  6740. test -z "$as_dir" && as_dir=.
  6741. for ac_exec_ext in '' $ac_executable_extensions; do
  6742. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6743. ac_cv_prog_ac_ct_AR="ar"
  6744. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6745. break 2
  6746. fi
  6747. done
  6748. done
  6749. test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
  6750. fi
  6751. fi
  6752. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6753. if test -n "$ac_ct_AR"; then
  6754. echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  6755. echo "${ECHO_T}$ac_ct_AR" >&6
  6756. else
  6757. echo "$as_me:$LINENO: result: no" >&5
  6758. echo "${ECHO_T}no" >&6
  6759. fi
  6760. AR=$ac_ct_AR
  6761. else
  6762. AR="$ac_cv_prog_AR"
  6763. fi
  6764. if test -n "$ac_tool_prefix"; then
  6765. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6766. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6767. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6768. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6769. if test "${ac_cv_prog_RANLIB+set}" = set; then
  6770. echo $ECHO_N "(cached) $ECHO_C" >&6
  6771. else
  6772. if test -n "$RANLIB"; then
  6773. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6774. else
  6775. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6776. for as_dir in $PATH
  6777. do
  6778. IFS=$as_save_IFS
  6779. test -z "$as_dir" && as_dir=.
  6780. for ac_exec_ext in '' $ac_executable_extensions; do
  6781. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6782. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6783. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6784. break 2
  6785. fi
  6786. done
  6787. done
  6788. fi
  6789. fi
  6790. RANLIB=$ac_cv_prog_RANLIB
  6791. if test -n "$RANLIB"; then
  6792. echo "$as_me:$LINENO: result: $RANLIB" >&5
  6793. echo "${ECHO_T}$RANLIB" >&6
  6794. else
  6795. echo "$as_me:$LINENO: result: no" >&5
  6796. echo "${ECHO_T}no" >&6
  6797. fi
  6798. fi
  6799. if test -z "$ac_cv_prog_RANLIB"; then
  6800. ac_ct_RANLIB=$RANLIB
  6801. # Extract the first word of "ranlib", so it can be a program name with args.
  6802. set dummy ranlib; ac_word=$2
  6803. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6804. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6805. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  6806. echo $ECHO_N "(cached) $ECHO_C" >&6
  6807. else
  6808. if test -n "$ac_ct_RANLIB"; then
  6809. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6810. else
  6811. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6812. for as_dir in $PATH
  6813. do
  6814. IFS=$as_save_IFS
  6815. test -z "$as_dir" && as_dir=.
  6816. for ac_exec_ext in '' $ac_executable_extensions; do
  6817. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6818. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6819. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6820. break 2
  6821. fi
  6822. done
  6823. done
  6824. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  6825. fi
  6826. fi
  6827. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6828. if test -n "$ac_ct_RANLIB"; then
  6829. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  6830. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  6831. else
  6832. echo "$as_me:$LINENO: result: no" >&5
  6833. echo "${ECHO_T}no" >&6
  6834. fi
  6835. RANLIB=$ac_ct_RANLIB
  6836. else
  6837. RANLIB="$ac_cv_prog_RANLIB"
  6838. fi
  6839. if test -n "$ac_tool_prefix"; then
  6840. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6841. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6842. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6843. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6844. if test "${ac_cv_prog_STRIP+set}" = set; then
  6845. echo $ECHO_N "(cached) $ECHO_C" >&6
  6846. else
  6847. if test -n "$STRIP"; then
  6848. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6849. else
  6850. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6851. for as_dir in $PATH
  6852. do
  6853. IFS=$as_save_IFS
  6854. test -z "$as_dir" && as_dir=.
  6855. for ac_exec_ext in '' $ac_executable_extensions; do
  6856. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6857. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6858. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6859. break 2
  6860. fi
  6861. done
  6862. done
  6863. fi
  6864. fi
  6865. STRIP=$ac_cv_prog_STRIP
  6866. if test -n "$STRIP"; then
  6867. echo "$as_me:$LINENO: result: $STRIP" >&5
  6868. echo "${ECHO_T}$STRIP" >&6
  6869. else
  6870. echo "$as_me:$LINENO: result: no" >&5
  6871. echo "${ECHO_T}no" >&6
  6872. fi
  6873. fi
  6874. if test -z "$ac_cv_prog_STRIP"; then
  6875. ac_ct_STRIP=$STRIP
  6876. # Extract the first word of "strip", so it can be a program name with args.
  6877. set dummy strip; ac_word=$2
  6878. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6879. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6880. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  6881. echo $ECHO_N "(cached) $ECHO_C" >&6
  6882. else
  6883. if test -n "$ac_ct_STRIP"; then
  6884. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6885. else
  6886. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6887. for as_dir in $PATH
  6888. do
  6889. IFS=$as_save_IFS
  6890. test -z "$as_dir" && as_dir=.
  6891. for ac_exec_ext in '' $ac_executable_extensions; do
  6892. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6893. ac_cv_prog_ac_ct_STRIP="strip"
  6894. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6895. break 2
  6896. fi
  6897. done
  6898. done
  6899. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  6900. fi
  6901. fi
  6902. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6903. if test -n "$ac_ct_STRIP"; then
  6904. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  6905. echo "${ECHO_T}$ac_ct_STRIP" >&6
  6906. else
  6907. echo "$as_me:$LINENO: result: no" >&5
  6908. echo "${ECHO_T}no" >&6
  6909. fi
  6910. STRIP=$ac_ct_STRIP
  6911. else
  6912. STRIP="$ac_cv_prog_STRIP"
  6913. fi
  6914. old_CC="$CC"
  6915. old_CFLAGS="$CFLAGS"
  6916. # Set sane defaults for various variables
  6917. test -z "$AR" && AR=ar
  6918. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6919. test -z "$AS" && AS=as
  6920. test -z "$CC" && CC=cc
  6921. test -z "$LTCC" && LTCC=$CC
  6922. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6923. test -z "$LD" && LD=ld
  6924. test -z "$LN_S" && LN_S="ln -s"
  6925. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6926. test -z "$NM" && NM=nm
  6927. test -z "$SED" && SED=sed
  6928. test -z "$OBJDUMP" && OBJDUMP=objdump
  6929. test -z "$RANLIB" && RANLIB=:
  6930. test -z "$STRIP" && STRIP=:
  6931. test -z "$ac_objext" && ac_objext=o
  6932. # Determine commands to create old-style static archives.
  6933. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  6934. old_postinstall_cmds='chmod 644 $oldlib'
  6935. old_postuninstall_cmds=
  6936. if test -n "$RANLIB"; then
  6937. case $host_os in
  6938. openbsd*)
  6939. old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  6940. ;;
  6941. *)
  6942. old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  6943. ;;
  6944. esac
  6945. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6946. fi
  6947. # Only perform the check for file, if the check method requires it
  6948. case $deplibs_check_method in
  6949. file_magic*)
  6950. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6951. echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  6952. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  6953. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6954. echo $ECHO_N "(cached) $ECHO_C" >&6
  6955. else
  6956. case $MAGIC_CMD in
  6957. [\\/*] | ?:[\\/]*)
  6958. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6959. ;;
  6960. *)
  6961. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6962. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6963. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6964. for ac_dir in $ac_dummy; do
  6965. IFS="$lt_save_ifs"
  6966. test -z "$ac_dir" && ac_dir=.
  6967. if test -f $ac_dir/${ac_tool_prefix}file; then
  6968. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6969. if test -n "$file_magic_test_file"; then
  6970. case $deplibs_check_method in
  6971. "file_magic "*)
  6972. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  6973. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6974. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6975. $EGREP "$file_magic_regex" > /dev/null; then
  6976. :
  6977. else
  6978. cat <<EOF 1>&2
  6979. *** Warning: the command libtool uses to detect shared libraries,
  6980. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6981. *** The result is that libtool may fail to recognize shared libraries
  6982. *** as such. This will affect the creation of libtool libraries that
  6983. *** depend on shared libraries, but programs linked with such libtool
  6984. *** libraries will work regardless of this problem. Nevertheless, you
  6985. *** may want to report the problem to your system manager and/or to
  6986. *** bug-libtool@gnu.org
  6987. EOF
  6988. fi ;;
  6989. esac
  6990. fi
  6991. break
  6992. fi
  6993. done
  6994. IFS="$lt_save_ifs"
  6995. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6996. ;;
  6997. esac
  6998. fi
  6999. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7000. if test -n "$MAGIC_CMD"; then
  7001. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  7002. echo "${ECHO_T}$MAGIC_CMD" >&6
  7003. else
  7004. echo "$as_me:$LINENO: result: no" >&5
  7005. echo "${ECHO_T}no" >&6
  7006. fi
  7007. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7008. if test -n "$ac_tool_prefix"; then
  7009. echo "$as_me:$LINENO: checking for file" >&5
  7010. echo $ECHO_N "checking for file... $ECHO_C" >&6
  7011. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  7012. echo $ECHO_N "(cached) $ECHO_C" >&6
  7013. else
  7014. case $MAGIC_CMD in
  7015. [\\/*] | ?:[\\/]*)
  7016. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7017. ;;
  7018. *)
  7019. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7020. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7021. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7022. for ac_dir in $ac_dummy; do
  7023. IFS="$lt_save_ifs"
  7024. test -z "$ac_dir" && ac_dir=.
  7025. if test -f $ac_dir/file; then
  7026. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7027. if test -n "$file_magic_test_file"; then
  7028. case $deplibs_check_method in
  7029. "file_magic "*)
  7030. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  7031. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7032. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7033. $EGREP "$file_magic_regex" > /dev/null; then
  7034. :
  7035. else
  7036. cat <<EOF 1>&2
  7037. *** Warning: the command libtool uses to detect shared libraries,
  7038. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7039. *** The result is that libtool may fail to recognize shared libraries
  7040. *** as such. This will affect the creation of libtool libraries that
  7041. *** depend on shared libraries, but programs linked with such libtool
  7042. *** libraries will work regardless of this problem. Nevertheless, you
  7043. *** may want to report the problem to your system manager and/or to
  7044. *** bug-libtool@gnu.org
  7045. EOF
  7046. fi ;;
  7047. esac
  7048. fi
  7049. break
  7050. fi
  7051. done
  7052. IFS="$lt_save_ifs"
  7053. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7054. ;;
  7055. esac
  7056. fi
  7057. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7058. if test -n "$MAGIC_CMD"; then
  7059. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  7060. echo "${ECHO_T}$MAGIC_CMD" >&6
  7061. else
  7062. echo "$as_me:$LINENO: result: no" >&5
  7063. echo "${ECHO_T}no" >&6
  7064. fi
  7065. else
  7066. MAGIC_CMD=:
  7067. fi
  7068. fi
  7069. fi
  7070. ;;
  7071. esac
  7072. enable_dlopen=no
  7073. enable_win32_dll=yes
  7074. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  7075. if test "${enable_libtool_lock+set}" = set; then
  7076. enableval="$enable_libtool_lock"
  7077. fi;
  7078. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  7079. # Check whether --with-pic or --without-pic was given.
  7080. if test "${with_pic+set}" = set; then
  7081. withval="$with_pic"
  7082. pic_mode="$withval"
  7083. else
  7084. pic_mode=default
  7085. fi;
  7086. test -z "$pic_mode" && pic_mode=default
  7087. # Use C for the default configuration in the libtool script
  7088. tagname=
  7089. lt_save_CC="$CC"
  7090. ac_ext=c
  7091. ac_cpp='$CPP $CPPFLAGS'
  7092. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7093. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7094. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7095. # Source file extension for C test sources.
  7096. ac_ext=c
  7097. # Object file extension for compiled C test sources.
  7098. objext=o
  7099. objext=$objext
  7100. # Code to be used in simple compile tests
  7101. lt_simple_compile_test_code="int some_variable = 0;\n"
  7102. # Code to be used in simple link tests
  7103. lt_simple_link_test_code='int main(){return(0);}\n'
  7104. # If no C compiler was specified, use CC.
  7105. LTCC=${LTCC-"$CC"}
  7106. # Allow CC to be a program name with arguments.
  7107. compiler=$CC
  7108. #
  7109. # Check for any special shared library compilation flags.
  7110. #
  7111. lt_prog_cc_shlib=
  7112. if test "$GCC" = no; then
  7113. case $host_os in
  7114. sco3.2v5*)
  7115. lt_prog_cc_shlib='-belf'
  7116. ;;
  7117. esac
  7118. fi
  7119. if test -n "$lt_prog_cc_shlib"; then
  7120. { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
  7121. echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
  7122. if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
  7123. else
  7124. { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  7125. echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  7126. lt_cv_prog_cc_can_build_shared=no
  7127. fi
  7128. fi
  7129. #
  7130. # Check to make sure the static flag actually works.
  7131. #
  7132. echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
  7133. echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
  7134. if test "${lt_prog_compiler_static_works+set}" = set; then
  7135. echo $ECHO_N "(cached) $ECHO_C" >&6
  7136. else
  7137. lt_prog_compiler_static_works=no
  7138. save_LDFLAGS="$LDFLAGS"
  7139. LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
  7140. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  7141. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7142. # The compiler can only warn and ignore the option if not recognized
  7143. # So say no if there are warnings
  7144. if test -s conftest.err; then
  7145. # Append any errors to the config.log.
  7146. cat conftest.err 1>&5
  7147. else
  7148. lt_prog_compiler_static_works=yes
  7149. fi
  7150. fi
  7151. $rm conftest*
  7152. LDFLAGS="$save_LDFLAGS"
  7153. fi
  7154. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  7155. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
  7156. if test x"$lt_prog_compiler_static_works" = xyes; then
  7157. :
  7158. else
  7159. lt_prog_compiler_static=
  7160. fi
  7161. lt_prog_compiler_no_builtin_flag=
  7162. if test "$GCC" = yes; then
  7163. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  7164. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7165. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  7166. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  7167. echo $ECHO_N "(cached) $ECHO_C" >&6
  7168. else
  7169. lt_cv_prog_compiler_rtti_exceptions=no
  7170. ac_outfile=conftest.$ac_objext
  7171. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  7172. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7173. # Insert the option either (1) after the last *FLAGS variable, or
  7174. # (2) before a word containing "conftest.", or (3) at the end.
  7175. # Note that $ac_compile itself does not contain backslashes and begins
  7176. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7177. # The option is referenced via a variable to avoid confusing sed.
  7178. lt_compile=`echo "$ac_compile" | $SED \
  7179. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  7180. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7181. -e 's:$: $lt_compiler_flag:'`
  7182. (eval echo "\"\$as_me:7915: $lt_compile\"" >&5)
  7183. (eval "$lt_compile" 2>conftest.err)
  7184. ac_status=$?
  7185. cat conftest.err >&5
  7186. echo "$as_me:7919: \$? = $ac_status" >&5
  7187. if (exit $ac_status) && test -s "$ac_outfile"; then
  7188. # The compiler can only warn and ignore the option if not recognized
  7189. # So say no if there are warnings
  7190. if test ! -s conftest.err; then
  7191. lt_cv_prog_compiler_rtti_exceptions=yes
  7192. fi
  7193. fi
  7194. $rm conftest*
  7195. fi
  7196. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7197. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  7198. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7199. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7200. else
  7201. :
  7202. fi
  7203. fi
  7204. lt_prog_compiler_wl=
  7205. lt_prog_compiler_pic=
  7206. lt_prog_compiler_static=
  7207. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  7208. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  7209. if test "$GCC" = yes; then
  7210. lt_prog_compiler_wl='-Wl,'
  7211. lt_prog_compiler_static='-static'
  7212. case $host_os in
  7213. aix*)
  7214. # All AIX code is PIC.
  7215. if test "$host_cpu" = ia64; then
  7216. # AIX 5 now supports IA64 processor
  7217. lt_prog_compiler_static='-Bstatic'
  7218. fi
  7219. ;;
  7220. amigaos*)
  7221. # FIXME: we need at least 68020 code to build shared libraries, but
  7222. # adding the `-m68020' flag to GCC prevents building anything better,
  7223. # like `-m68040'.
  7224. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7225. ;;
  7226. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7227. # PIC is the default for these OSes.
  7228. ;;
  7229. mingw* | pw32* | os2*)
  7230. # This hack is so that the source file can tell whether it is being
  7231. # built for inclusion in a dll (and should export symbols for example).
  7232. lt_prog_compiler_pic='-DDLL_EXPORT'
  7233. ;;
  7234. darwin* | rhapsody*)
  7235. # PIC is the default on this platform
  7236. # Common symbols not allowed in MH_DYLIB files
  7237. lt_prog_compiler_pic='-fno-common'
  7238. ;;
  7239. msdosdjgpp*)
  7240. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7241. # on systems that don't support them.
  7242. lt_prog_compiler_can_build_shared=no
  7243. enable_shared=no
  7244. ;;
  7245. sysv4*MP*)
  7246. if test -d /usr/nec; then
  7247. lt_prog_compiler_pic=-Kconform_pic
  7248. fi
  7249. ;;
  7250. hpux*)
  7251. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7252. # not for PA HP-UX.
  7253. case "$host_cpu" in
  7254. hppa*64*|ia64*)
  7255. # +Z the default
  7256. ;;
  7257. *)
  7258. lt_prog_compiler_pic='-fPIC'
  7259. ;;
  7260. esac
  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. 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. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7286. # not for PA HP-UX.
  7287. case "$host_cpu" in
  7288. hppa*64*|ia64*)
  7289. # +Z the default
  7290. ;;
  7291. *)
  7292. lt_prog_compiler_pic='+Z'
  7293. ;;
  7294. esac
  7295. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7296. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7297. ;;
  7298. irix5* | irix6* | nonstopux*)
  7299. lt_prog_compiler_wl='-Wl,'
  7300. # PIC (with -KPIC) is the default.
  7301. lt_prog_compiler_static='-non_shared'
  7302. ;;
  7303. newsos6)
  7304. lt_prog_compiler_pic='-KPIC'
  7305. lt_prog_compiler_static='-Bstatic'
  7306. ;;
  7307. linux*)
  7308. case $CC in
  7309. icc* | ecc*)
  7310. lt_prog_compiler_wl='-Wl,'
  7311. lt_prog_compiler_pic='-KPIC'
  7312. lt_prog_compiler_static='-static'
  7313. ;;
  7314. ccc*)
  7315. lt_prog_compiler_wl='-Wl,'
  7316. # All Alpha code is PIC.
  7317. lt_prog_compiler_static='-non_shared'
  7318. ;;
  7319. esac
  7320. ;;
  7321. osf3* | osf4* | osf5*)
  7322. lt_prog_compiler_wl='-Wl,'
  7323. # All OSF/1 code is PIC.
  7324. lt_prog_compiler_static='-non_shared'
  7325. ;;
  7326. sco3.2v5*)
  7327. lt_prog_compiler_pic='-Kpic'
  7328. lt_prog_compiler_static='-dn'
  7329. ;;
  7330. solaris*)
  7331. lt_prog_compiler_wl='-Wl,'
  7332. lt_prog_compiler_pic='-KPIC'
  7333. lt_prog_compiler_static='-Bstatic'
  7334. ;;
  7335. sunos4*)
  7336. lt_prog_compiler_wl='-Qoption ld '
  7337. lt_prog_compiler_pic='-PIC'
  7338. lt_prog_compiler_static='-Bstatic'
  7339. ;;
  7340. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  7341. lt_prog_compiler_wl='-Wl,'
  7342. lt_prog_compiler_pic='-KPIC'
  7343. lt_prog_compiler_static='-Bstatic'
  7344. ;;
  7345. sysv4*MP*)
  7346. if test -d /usr/nec ;then
  7347. lt_prog_compiler_pic='-Kconform_pic'
  7348. lt_prog_compiler_static='-Bstatic'
  7349. fi
  7350. ;;
  7351. uts4*)
  7352. lt_prog_compiler_pic='-pic'
  7353. lt_prog_compiler_static='-Bstatic'
  7354. ;;
  7355. *)
  7356. lt_prog_compiler_can_build_shared=no
  7357. ;;
  7358. esac
  7359. fi
  7360. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  7361. echo "${ECHO_T}$lt_prog_compiler_pic" >&6
  7362. #
  7363. # Check to make sure the PIC flag actually works.
  7364. #
  7365. if test -n "$lt_prog_compiler_pic"; then
  7366. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7367. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
  7368. if test "${lt_prog_compiler_pic_works+set}" = set; then
  7369. echo $ECHO_N "(cached) $ECHO_C" >&6
  7370. else
  7371. lt_prog_compiler_pic_works=no
  7372. ac_outfile=conftest.$ac_objext
  7373. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  7374. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7375. # Insert the option either (1) after the last *FLAGS variable, or
  7376. # (2) before a word containing "conftest.", or (3) at the end.
  7377. # Note that $ac_compile itself does not contain backslashes and begins
  7378. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7379. # The option is referenced via a variable to avoid confusing sed.
  7380. lt_compile=`echo "$ac_compile" | $SED \
  7381. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  7382. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7383. -e 's:$: $lt_compiler_flag:'`
  7384. (eval echo "\"\$as_me:8148: $lt_compile\"" >&5)
  7385. (eval "$lt_compile" 2>conftest.err)
  7386. ac_status=$?
  7387. cat conftest.err >&5
  7388. echo "$as_me:8152: \$? = $ac_status" >&5
  7389. if (exit $ac_status) && test -s "$ac_outfile"; then
  7390. # The compiler can only warn and ignore the option if not recognized
  7391. # So say no if there are warnings
  7392. if test ! -s conftest.err; then
  7393. lt_prog_compiler_pic_works=yes
  7394. fi
  7395. fi
  7396. $rm conftest*
  7397. fi
  7398. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  7399. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
  7400. if test x"$lt_prog_compiler_pic_works" = xyes; then
  7401. case $lt_prog_compiler_pic in
  7402. "" | " "*) ;;
  7403. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7404. esac
  7405. else
  7406. lt_prog_compiler_pic=
  7407. lt_prog_compiler_can_build_shared=no
  7408. fi
  7409. fi
  7410. case "$host_os" in
  7411. # For platforms which do not support PIC, -DPIC is meaningless:
  7412. *djgpp*)
  7413. lt_prog_compiler_pic=
  7414. ;;
  7415. *)
  7416. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7417. ;;
  7418. esac
  7419. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  7420. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  7421. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  7422. echo $ECHO_N "(cached) $ECHO_C" >&6
  7423. else
  7424. lt_cv_prog_compiler_c_o=no
  7425. $rm -r conftest 2>/dev/null
  7426. mkdir conftest
  7427. cd conftest
  7428. mkdir out
  7429. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  7430. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7431. # Insert the option either (1) after the last *FLAGS variable, or
  7432. # (2) before a word containing "conftest.", or (3) at the end.
  7433. # Note that $ac_compile itself does not contain backslashes and begins
  7434. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7435. lt_compile=`echo "$ac_compile" | $SED \
  7436. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  7437. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7438. -e 's:$: $lt_compiler_flag:'`
  7439. (eval echo "\"\$as_me:8208: $lt_compile\"" >&5)
  7440. (eval "$lt_compile" 2>out/conftest.err)
  7441. ac_status=$?
  7442. cat out/conftest.err >&5
  7443. echo "$as_me:8212: \$? = $ac_status" >&5
  7444. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7445. then
  7446. # The compiler can only warn and ignore the option if not recognized
  7447. # So say no if there are warnings
  7448. if test ! -s out/conftest.err; then
  7449. lt_cv_prog_compiler_c_o=yes
  7450. fi
  7451. fi
  7452. chmod u+w .
  7453. $rm conftest*
  7454. # SGI C++ compiler will create directory out/ii_files/ for
  7455. # template instantiation
  7456. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  7457. $rm out/* && rmdir out
  7458. cd ..
  7459. rmdir conftest
  7460. $rm conftest*
  7461. fi
  7462. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  7463. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
  7464. hard_links="nottested"
  7465. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7466. # do not overwrite the value of need_locks provided by the user
  7467. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  7468. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  7469. hard_links=yes
  7470. $rm conftest*
  7471. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7472. touch conftest.a
  7473. ln conftest.a conftest.b 2>&5 || hard_links=no
  7474. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7475. echo "$as_me:$LINENO: result: $hard_links" >&5
  7476. echo "${ECHO_T}$hard_links" >&6
  7477. if test "$hard_links" = no; then
  7478. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7479. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7480. need_locks=warn
  7481. fi
  7482. else
  7483. need_locks=no
  7484. fi
  7485. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7486. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  7487. runpath_var=
  7488. allow_undefined_flag=
  7489. enable_shared_with_static_runtimes=no
  7490. archive_cmds=
  7491. archive_expsym_cmds=
  7492. old_archive_From_new_cmds=
  7493. old_archive_from_expsyms_cmds=
  7494. export_dynamic_flag_spec=
  7495. whole_archive_flag_spec=
  7496. thread_safe_flag_spec=
  7497. hardcode_libdir_flag_spec=
  7498. hardcode_libdir_flag_spec_ld=
  7499. hardcode_libdir_separator=
  7500. hardcode_direct=no
  7501. hardcode_minus_L=no
  7502. hardcode_shlibpath_var=unsupported
  7503. link_all_deplibs=unknown
  7504. hardcode_automatic=no
  7505. module_cmds=
  7506. module_expsym_cmds=
  7507. always_export_symbols=no
  7508. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7509. # include_expsyms should be a list of space-separated symbols to be *always*
  7510. # included in the symbol list
  7511. include_expsyms=
  7512. # exclude_expsyms can be an extended regexp of symbols to exclude
  7513. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7514. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7515. # as well as any symbol that contains `d'.
  7516. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  7517. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7518. # platforms (ab)use it in PIC code, but their linkers get confused if
  7519. # the symbol is explicitly referenced. Since portable code cannot
  7520. # rely on this symbol name, it's probably fine to never include it in
  7521. # preloaded symbol tables.
  7522. extract_expsyms_cmds=
  7523. case $host_os in
  7524. cygwin* | mingw* | pw32*)
  7525. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7526. # When not using gcc, we currently assume that we are using
  7527. # Microsoft Visual C++.
  7528. if test "$GCC" != yes; then
  7529. with_gnu_ld=no
  7530. fi
  7531. ;;
  7532. openbsd*)
  7533. with_gnu_ld=no
  7534. ;;
  7535. esac
  7536. ld_shlibs=yes
  7537. if test "$with_gnu_ld" = yes; then
  7538. # If archive_cmds runs LD, not CC, wlarc should be empty
  7539. wlarc='${wl}'
  7540. # See if GNU ld supports shared libraries.
  7541. case $host_os in
  7542. aix3* | aix4* | aix5*)
  7543. # On AIX/PPC, the GNU linker is very broken
  7544. if test "$host_cpu" != ia64; then
  7545. ld_shlibs=no
  7546. cat <<EOF 1>&2
  7547. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7548. *** to be unable to reliably create shared libraries on AIX.
  7549. *** Therefore, libtool is disabling shared libraries support. If you
  7550. *** really care for shared libraries, you may want to modify your PATH
  7551. *** so that a non-GNU linker is found, and then restart.
  7552. EOF
  7553. fi
  7554. ;;
  7555. amigaos*)
  7556. 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)'
  7557. hardcode_libdir_flag_spec='-L$libdir'
  7558. hardcode_minus_L=yes
  7559. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  7560. # that the semantics of dynamic libraries on AmigaOS, at least up
  7561. # to version 4, is to share data among multiple programs linked
  7562. # with the same dynamic library. Since this doesn't match the
  7563. # behavior of shared libraries on other platforms, we can't use
  7564. # them.
  7565. ld_shlibs=no
  7566. ;;
  7567. beos*)
  7568. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7569. allow_undefined_flag=unsupported
  7570. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7571. # support --undefined. This deserves some investigation. FIXME
  7572. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7573. else
  7574. ld_shlibs=no
  7575. fi
  7576. ;;
  7577. cygwin* | mingw* | pw32*)
  7578. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7579. # as there is no search path for DLLs.
  7580. hardcode_libdir_flag_spec='-L$libdir'
  7581. allow_undefined_flag=unsupported
  7582. always_export_symbols=no
  7583. enable_shared_with_static_runtimes=yes
  7584. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  7585. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  7586. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  7587. # If the export-symbols file already is a .def file (1st line
  7588. # is EXPORTS), use it as is; otherwise, prepend...
  7589. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7590. cp $export_symbols $output_objdir/$soname.def;
  7591. else
  7592. echo EXPORTS > $output_objdir/$soname.def;
  7593. cat $export_symbols >> $output_objdir/$soname.def;
  7594. fi~
  7595. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  7596. else
  7597. ld_shlibs=no
  7598. fi
  7599. ;;
  7600. netbsd*)
  7601. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7602. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7603. wlarc=
  7604. else
  7605. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7606. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7607. fi
  7608. ;;
  7609. solaris* | sysv5*)
  7610. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  7611. ld_shlibs=no
  7612. cat <<EOF 1>&2
  7613. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7614. *** create shared libraries on Solaris systems. Therefore, libtool
  7615. *** is disabling shared libraries support. We urge you to upgrade GNU
  7616. *** binutils to release 2.9.1 or newer. Another option is to modify
  7617. *** your PATH or compiler configuration so that the native linker is
  7618. *** used, and then restart.
  7619. EOF
  7620. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7621. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7622. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7623. else
  7624. ld_shlibs=no
  7625. fi
  7626. ;;
  7627. sunos4*)
  7628. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7629. wlarc=
  7630. hardcode_direct=yes
  7631. hardcode_shlibpath_var=no
  7632. ;;
  7633. linux*)
  7634. if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  7635. tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7636. archive_cmds="$tmp_archive_cmds"
  7637. supports_anon_versioning=no
  7638. case `$LD -v 2>/dev/null` in
  7639. *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7640. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7641. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7642. *\ 2.11.*) ;; # other 2.11 versions
  7643. *) supports_anon_versioning=yes ;;
  7644. esac
  7645. if test $supports_anon_versioning = yes; then
  7646. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  7647. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7648. $echo "local: *; };" >> $output_objdir/$libname.ver~
  7649. $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7650. else
  7651. archive_expsym_cmds="$tmp_archive_cmds"
  7652. fi
  7653. else
  7654. ld_shlibs=no
  7655. fi
  7656. ;;
  7657. *)
  7658. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7659. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7660. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7661. else
  7662. ld_shlibs=no
  7663. fi
  7664. ;;
  7665. esac
  7666. if test "$ld_shlibs" = yes; then
  7667. runpath_var=LD_RUN_PATH
  7668. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  7669. export_dynamic_flag_spec='${wl}--export-dynamic'
  7670. # ancient GNU ld didn't support --whole-archive et. al.
  7671. if $LD --help 2>&1 | grep '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. fi
  7677. else
  7678. # PORTME fill in a description of your system's linker (not GNU ld)
  7679. case $host_os in
  7680. aix3*)
  7681. allow_undefined_flag=unsupported
  7682. always_export_symbols=yes
  7683. 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'
  7684. # Note: this linker hardcodes the directories in LIBPATH if there
  7685. # are no directories specified by -L.
  7686. hardcode_minus_L=yes
  7687. if test "$GCC" = yes && test -z "$link_static_flag"; then
  7688. # Neither direct hardcoding nor static linking is supported with a
  7689. # broken collect2.
  7690. hardcode_direct=unsupported
  7691. fi
  7692. ;;
  7693. aix4* | aix5*)
  7694. if test "$host_cpu" = ia64; then
  7695. # On IA64, the linker does run time linking by default, so we don't
  7696. # have to do anything special.
  7697. aix_use_runtimelinking=no
  7698. exp_sym_flag='-Bexport'
  7699. no_entry_flag=""
  7700. else
  7701. # If we're using GNU nm, then we don't want the "-C" option.
  7702. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7703. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  7704. 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'
  7705. else
  7706. 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'
  7707. fi
  7708. aix_use_runtimelinking=no
  7709. # Test if we are trying to use run time linking or normal
  7710. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7711. # need to do runtime linking.
  7712. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  7713. for ld_flag in $LDFLAGS; do
  7714. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7715. aix_use_runtimelinking=yes
  7716. break
  7717. fi
  7718. done
  7719. esac
  7720. exp_sym_flag='-bexport'
  7721. no_entry_flag='-bnoentry'
  7722. fi
  7723. # When large executables or shared objects are built, AIX ld can
  7724. # have problems creating the table of contents. If linking a library
  7725. # or program results in "error TOC overflow" add -mminimal-toc to
  7726. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7727. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7728. archive_cmds=''
  7729. hardcode_direct=yes
  7730. hardcode_libdir_separator=':'
  7731. link_all_deplibs=yes
  7732. if test "$GCC" = yes; then
  7733. case $host_os in aix4.012|aix4.012.*)
  7734. # We only want to do this on AIX 4.2 and lower, the check
  7735. # below for broken collect2 doesn't work under 4.3+
  7736. collect2name=`${CC} -print-prog-name=collect2`
  7737. if test -f "$collect2name" && \
  7738. strings "$collect2name" | grep resolve_lib_name >/dev/null
  7739. then
  7740. # We have reworked collect2
  7741. hardcode_direct=yes
  7742. else
  7743. # We have old collect2
  7744. hardcode_direct=unsupported
  7745. # It fails to find uninstalled libraries when the uninstalled
  7746. # path is not listed in the libpath. Setting hardcode_minus_L
  7747. # to unsupported forces relinking
  7748. hardcode_minus_L=yes
  7749. hardcode_libdir_flag_spec='-L$libdir'
  7750. hardcode_libdir_separator=
  7751. fi
  7752. esac
  7753. shared_flag='-shared'
  7754. else
  7755. # not using gcc
  7756. if test "$host_cpu" = ia64; then
  7757. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7758. # chokes on -Wl,-G. The following line is correct:
  7759. shared_flag='-G'
  7760. else
  7761. if test "$aix_use_runtimelinking" = yes; then
  7762. shared_flag='${wl}-G'
  7763. else
  7764. shared_flag='${wl}-bM:SRE'
  7765. fi
  7766. fi
  7767. fi
  7768. # It seems that -bexpall does not export symbols beginning with
  7769. # underscore (_), so it is better to generate a list of symbols to export.
  7770. always_export_symbols=yes
  7771. if test "$aix_use_runtimelinking" = yes; then
  7772. # Warning - without using the other runtime loading flags (-brtl),
  7773. # -berok will link without error, but may produce a broken library.
  7774. allow_undefined_flag='-berok'
  7775. # Determine the default libpath from the value encoded in an empty executable.
  7776. cat >conftest.$ac_ext <<_ACEOF
  7777. /* confdefs.h. */
  7778. _ACEOF
  7779. cat confdefs.h >>conftest.$ac_ext
  7780. cat >>conftest.$ac_ext <<_ACEOF
  7781. /* end confdefs.h. */
  7782. int
  7783. main ()
  7784. {
  7785. ;
  7786. return 0;
  7787. }
  7788. _ACEOF
  7789. rm -f conftest.$ac_objext conftest$ac_exeext
  7790. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7791. (eval $ac_link) 2>conftest.er1
  7792. ac_status=$?
  7793. grep -v '^ *+' conftest.er1 >conftest.err
  7794. rm -f conftest.er1
  7795. cat conftest.err >&5
  7796. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7797. (exit $ac_status); } &&
  7798. { ac_try='test -z "$ac_c_werror_flag"
  7799. || test ! -s conftest.err'
  7800. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7801. (eval $ac_try) 2>&5
  7802. ac_status=$?
  7803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7804. (exit $ac_status); }; } &&
  7805. { ac_try='test -s conftest$ac_exeext'
  7806. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7807. (eval $ac_try) 2>&5
  7808. ac_status=$?
  7809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7810. (exit $ac_status); }; }; then
  7811. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  7812. }'`
  7813. # Check for a 64-bit object if we didn't find anything.
  7814. 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; }
  7815. }'`; fi
  7816. else
  7817. echo "$as_me: failed program was:" >&5
  7818. sed 's/^/| /' conftest.$ac_ext >&5
  7819. fi
  7820. rm -f conftest.err conftest.$ac_objext \
  7821. conftest$ac_exeext conftest.$ac_ext
  7822. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7823. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7824. 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}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7825. else
  7826. if test "$host_cpu" = ia64; then
  7827. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7828. allow_undefined_flag="-z nodefs"
  7829. 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"
  7830. else
  7831. # Determine the default libpath from the value encoded in an empty executable.
  7832. cat >conftest.$ac_ext <<_ACEOF
  7833. /* confdefs.h. */
  7834. _ACEOF
  7835. cat confdefs.h >>conftest.$ac_ext
  7836. cat >>conftest.$ac_ext <<_ACEOF
  7837. /* end confdefs.h. */
  7838. int
  7839. main ()
  7840. {
  7841. ;
  7842. return 0;
  7843. }
  7844. _ACEOF
  7845. rm -f conftest.$ac_objext conftest$ac_exeext
  7846. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7847. (eval $ac_link) 2>conftest.er1
  7848. ac_status=$?
  7849. grep -v '^ *+' conftest.er1 >conftest.err
  7850. rm -f conftest.er1
  7851. cat conftest.err >&5
  7852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7853. (exit $ac_status); } &&
  7854. { ac_try='test -z "$ac_c_werror_flag"
  7855. || test ! -s conftest.err'
  7856. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7857. (eval $ac_try) 2>&5
  7858. ac_status=$?
  7859. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7860. (exit $ac_status); }; } &&
  7861. { ac_try='test -s conftest$ac_exeext'
  7862. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7863. (eval $ac_try) 2>&5
  7864. ac_status=$?
  7865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7866. (exit $ac_status); }; }; then
  7867. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  7868. }'`
  7869. # Check for a 64-bit object if we didn't find anything.
  7870. 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; }
  7871. }'`; fi
  7872. else
  7873. echo "$as_me: failed program was:" >&5
  7874. sed 's/^/| /' conftest.$ac_ext >&5
  7875. fi
  7876. rm -f conftest.err conftest.$ac_objext \
  7877. conftest$ac_exeext conftest.$ac_ext
  7878. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7879. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7880. # Warning - without using the other run time loading flags,
  7881. # -berok will link without error, but may produce a broken library.
  7882. no_undefined_flag=' ${wl}-bernotok'
  7883. allow_undefined_flag=' ${wl}-berok'
  7884. # -bexpall does not export symbols beginning with underscore (_)
  7885. always_export_symbols=yes
  7886. # Exported symbols can be pulled into shared objects from archives
  7887. whole_archive_flag_spec=' '
  7888. archive_cmds_need_lc=yes
  7889. # This is similar to how AIX traditionally builds it's shared libraries.
  7890. 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'
  7891. fi
  7892. fi
  7893. ;;
  7894. amigaos*)
  7895. 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)'
  7896. hardcode_libdir_flag_spec='-L$libdir'
  7897. hardcode_minus_L=yes
  7898. # see comment about different semantics on the GNU ld section
  7899. ld_shlibs=no
  7900. ;;
  7901. bsdi4*)
  7902. export_dynamic_flag_spec=-rdynamic
  7903. ;;
  7904. cygwin* | mingw* | pw32*)
  7905. # When not using gcc, we currently assume that we are using
  7906. # Microsoft Visual C++.
  7907. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7908. # no search path for DLLs.
  7909. hardcode_libdir_flag_spec=' '
  7910. allow_undefined_flag=unsupported
  7911. # Tell ltmain to make .lib files, not .a files.
  7912. libext=lib
  7913. # Tell ltmain to make .dll files, not .so files.
  7914. shrext=".dll"
  7915. # FIXME: Setting linknames here is a bad hack.
  7916. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7917. # The linker will automatically build a .lib file if we build a DLL.
  7918. old_archive_From_new_cmds='true'
  7919. # FIXME: Should let the user specify the lib program.
  7920. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  7921. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7922. enable_shared_with_static_runtimes=yes
  7923. ;;
  7924. darwin* | rhapsody*)
  7925. if test "$GXX" = yes ; then
  7926. archive_cmds_need_lc=no
  7927. case "$host_os" in
  7928. rhapsody* | darwin1.[012])
  7929. allow_undefined_flag='-undefined suppress'
  7930. ;;
  7931. *) # Darwin 1.3 on
  7932. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  7933. allow_undefined_flag='-flat_namespace -undefined suppress'
  7934. else
  7935. case ${MACOSX_DEPLOYMENT_TARGET} in
  7936. 10.[012])
  7937. allow_undefined_flag='-flat_namespace -undefined suppress'
  7938. ;;
  7939. 10.*)
  7940. allow_undefined_flag='-undefined dynamic_lookup'
  7941. ;;
  7942. esac
  7943. fi
  7944. ;;
  7945. esac
  7946. lt_int_apple_cc_single_mod=no
  7947. output_verbose_link_cmd='echo'
  7948. if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  7949. lt_int_apple_cc_single_mod=yes
  7950. fi
  7951. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  7952. archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  7953. else
  7954. archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  7955. fi
  7956. module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7957. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  7958. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  7959. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7960. else
  7961. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7962. fi
  7963. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7964. hardcode_direct=no
  7965. hardcode_automatic=yes
  7966. hardcode_shlibpath_var=unsupported
  7967. whole_archive_flag_spec='-all_load $convenience'
  7968. link_all_deplibs=yes
  7969. else
  7970. ld_shlibs=no
  7971. fi
  7972. ;;
  7973. dgux*)
  7974. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7975. hardcode_libdir_flag_spec='-L$libdir'
  7976. hardcode_shlibpath_var=no
  7977. ;;
  7978. freebsd1*)
  7979. ld_shlibs=no
  7980. ;;
  7981. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7982. # support. Future versions do this automatically, but an explicit c++rt0.o
  7983. # does not break anything, and helps significantly (at the cost of a little
  7984. # extra space).
  7985. freebsd2.2*)
  7986. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7987. hardcode_libdir_flag_spec='-R$libdir'
  7988. hardcode_direct=yes
  7989. hardcode_shlibpath_var=no
  7990. ;;
  7991. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7992. freebsd2*)
  7993. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7994. hardcode_direct=yes
  7995. hardcode_minus_L=yes
  7996. hardcode_shlibpath_var=no
  7997. ;;
  7998. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7999. freebsd* | kfreebsd*-gnu)
  8000. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8001. hardcode_libdir_flag_spec='-R$libdir'
  8002. hardcode_direct=yes
  8003. hardcode_shlibpath_var=no
  8004. ;;
  8005. hpux9*)
  8006. if test "$GCC" = yes; then
  8007. 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'
  8008. else
  8009. 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'
  8010. fi
  8011. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8012. hardcode_libdir_separator=:
  8013. hardcode_direct=yes
  8014. # hardcode_minus_L: Not really in the search PATH,
  8015. # but as the default location of the library.
  8016. hardcode_minus_L=yes
  8017. export_dynamic_flag_spec='${wl}-E'
  8018. ;;
  8019. hpux10* | hpux11*)
  8020. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8021. case "$host_cpu" in
  8022. hppa*64*|ia64*)
  8023. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8024. ;;
  8025. *)
  8026. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8027. ;;
  8028. esac
  8029. else
  8030. case "$host_cpu" in
  8031. hppa*64*|ia64*)
  8032. archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  8033. ;;
  8034. *)
  8035. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8036. ;;
  8037. esac
  8038. fi
  8039. if test "$with_gnu_ld" = no; then
  8040. case "$host_cpu" in
  8041. hppa*64*)
  8042. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8043. hardcode_libdir_flag_spec_ld='+b $libdir'
  8044. hardcode_libdir_separator=:
  8045. hardcode_direct=no
  8046. hardcode_shlibpath_var=no
  8047. ;;
  8048. ia64*)
  8049. hardcode_libdir_flag_spec='-L$libdir'
  8050. hardcode_direct=no
  8051. hardcode_shlibpath_var=no
  8052. # hardcode_minus_L: Not really in the search PATH,
  8053. # but as the default location of the library.
  8054. hardcode_minus_L=yes
  8055. ;;
  8056. *)
  8057. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8058. hardcode_libdir_separator=:
  8059. hardcode_direct=yes
  8060. export_dynamic_flag_spec='${wl}-E'
  8061. # hardcode_minus_L: Not really in the search PATH,
  8062. # but as the default location of the library.
  8063. hardcode_minus_L=yes
  8064. ;;
  8065. esac
  8066. fi
  8067. ;;
  8068. irix5* | irix6* | nonstopux*)
  8069. if test "$GCC" = yes; then
  8070. 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'
  8071. else
  8072. 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'
  8073. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8074. fi
  8075. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8076. hardcode_libdir_separator=:
  8077. link_all_deplibs=yes
  8078. ;;
  8079. netbsd*)
  8080. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8081. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8082. else
  8083. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8084. fi
  8085. hardcode_libdir_flag_spec='-R$libdir'
  8086. hardcode_direct=yes
  8087. hardcode_shlibpath_var=no
  8088. ;;
  8089. newsos6)
  8090. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8091. hardcode_direct=yes
  8092. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8093. hardcode_libdir_separator=:
  8094. hardcode_shlibpath_var=no
  8095. ;;
  8096. openbsd*)
  8097. hardcode_direct=yes
  8098. hardcode_shlibpath_var=no
  8099. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8100. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8101. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8102. export_dynamic_flag_spec='${wl}-E'
  8103. else
  8104. case $host_os in
  8105. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8106. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8107. hardcode_libdir_flag_spec='-R$libdir'
  8108. ;;
  8109. *)
  8110. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8111. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8112. ;;
  8113. esac
  8114. fi
  8115. ;;
  8116. os2*)
  8117. hardcode_libdir_flag_spec='-L$libdir'
  8118. hardcode_minus_L=yes
  8119. allow_undefined_flag=unsupported
  8120. 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'
  8121. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8122. ;;
  8123. osf3*)
  8124. if test "$GCC" = yes; then
  8125. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8126. 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'
  8127. else
  8128. allow_undefined_flag=' -expect_unresolved \*'
  8129. 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'
  8130. fi
  8131. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8132. hardcode_libdir_separator=:
  8133. ;;
  8134. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8135. if test "$GCC" = yes; then
  8136. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8137. 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'
  8138. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8139. else
  8140. allow_undefined_flag=' -expect_unresolved \*'
  8141. 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'
  8142. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  8143. $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'
  8144. # Both c and cxx compiler support -rpath directly
  8145. hardcode_libdir_flag_spec='-rpath $libdir'
  8146. fi
  8147. hardcode_libdir_separator=:
  8148. ;;
  8149. sco3.2v5*)
  8150. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8151. hardcode_shlibpath_var=no
  8152. export_dynamic_flag_spec='${wl}-Bexport'
  8153. runpath_var=LD_RUN_PATH
  8154. hardcode_runpath_var=yes
  8155. ;;
  8156. solaris*)
  8157. no_undefined_flag=' -z text'
  8158. if test "$GCC" = yes; then
  8159. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8160. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  8161. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  8162. else
  8163. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8164. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  8165. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  8166. fi
  8167. hardcode_libdir_flag_spec='-R$libdir'
  8168. hardcode_shlibpath_var=no
  8169. case $host_os in
  8170. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8171. *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  8172. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  8173. esac
  8174. link_all_deplibs=yes
  8175. ;;
  8176. sunos4*)
  8177. if test "x$host_vendor" = xsequent; then
  8178. # Use $CC to link under sequent, because it throws in some extra .o
  8179. # files that make .init and .fini sections work.
  8180. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8181. else
  8182. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8183. fi
  8184. hardcode_libdir_flag_spec='-L$libdir'
  8185. hardcode_direct=yes
  8186. hardcode_minus_L=yes
  8187. hardcode_shlibpath_var=no
  8188. ;;
  8189. sysv4)
  8190. case $host_vendor in
  8191. sni)
  8192. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8193. hardcode_direct=yes # is this really true???
  8194. ;;
  8195. siemens)
  8196. ## LD is ld it makes a PLAMLIB
  8197. ## CC just makes a GrossModule.
  8198. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8199. reload_cmds='$CC -r -o $output$reload_objs'
  8200. hardcode_direct=no
  8201. ;;
  8202. motorola)
  8203. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8204. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8205. ;;
  8206. esac
  8207. runpath_var='LD_RUN_PATH'
  8208. hardcode_shlibpath_var=no
  8209. ;;
  8210. sysv4.3*)
  8211. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8212. hardcode_shlibpath_var=no
  8213. export_dynamic_flag_spec='-Bexport'
  8214. ;;
  8215. sysv4*MP*)
  8216. if test -d /usr/nec; then
  8217. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8218. hardcode_shlibpath_var=no
  8219. runpath_var=LD_RUN_PATH
  8220. hardcode_runpath_var=yes
  8221. ld_shlibs=yes
  8222. fi
  8223. ;;
  8224. sysv4.2uw2*)
  8225. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8226. hardcode_direct=yes
  8227. hardcode_minus_L=no
  8228. hardcode_shlibpath_var=no
  8229. hardcode_runpath_var=yes
  8230. runpath_var=LD_RUN_PATH
  8231. ;;
  8232. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  8233. no_undefined_flag='${wl}-z ${wl}text'
  8234. if test "$GCC" = yes; then
  8235. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8236. else
  8237. archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8238. fi
  8239. runpath_var='LD_RUN_PATH'
  8240. hardcode_shlibpath_var=no
  8241. ;;
  8242. sysv5*)
  8243. no_undefined_flag=' -z text'
  8244. # $CC -shared without GNU ld will not create a library from C++
  8245. # object files and a static libstdc++, better avoid it by now
  8246. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8247. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  8248. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  8249. hardcode_libdir_flag_spec=
  8250. hardcode_shlibpath_var=no
  8251. runpath_var='LD_RUN_PATH'
  8252. ;;
  8253. uts4*)
  8254. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8255. hardcode_libdir_flag_spec='-L$libdir'
  8256. hardcode_shlibpath_var=no
  8257. ;;
  8258. *)
  8259. ld_shlibs=no
  8260. ;;
  8261. esac
  8262. fi
  8263. echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  8264. echo "${ECHO_T}$ld_shlibs" >&6
  8265. test "$ld_shlibs" = no && can_build_shared=no
  8266. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8267. if test "$GCC" = yes; then
  8268. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8269. fi
  8270. #
  8271. # Do we need to explicitly link libc?
  8272. #
  8273. case "x$archive_cmds_need_lc" in
  8274. x|xyes)
  8275. # Assume -lc should be added
  8276. archive_cmds_need_lc=yes
  8277. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8278. case $archive_cmds in
  8279. *'~'*)
  8280. # FIXME: we may have to deal with multi-command sequences.
  8281. ;;
  8282. '$CC '*)
  8283. # Test whether the compiler implicitly links with -lc since on some
  8284. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8285. # to ld, don't add -lc before -lgcc.
  8286. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  8287. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  8288. $rm conftest*
  8289. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  8290. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8291. (eval $ac_compile) 2>&5
  8292. ac_status=$?
  8293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8294. (exit $ac_status); } 2>conftest.err; then
  8295. soname=conftest
  8296. lib=conftest
  8297. libobjs=conftest.$ac_objext
  8298. deplibs=
  8299. wl=$lt_prog_compiler_wl
  8300. compiler_flags=-v
  8301. linker_flags=-v
  8302. verstring=
  8303. output_objdir=.
  8304. libname=conftest
  8305. lt_save_allow_undefined_flag=$allow_undefined_flag
  8306. allow_undefined_flag=
  8307. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  8308. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8309. ac_status=$?
  8310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8311. (exit $ac_status); }
  8312. then
  8313. archive_cmds_need_lc=no
  8314. else
  8315. archive_cmds_need_lc=yes
  8316. fi
  8317. allow_undefined_flag=$lt_save_allow_undefined_flag
  8318. else
  8319. cat conftest.err 1>&5
  8320. fi
  8321. $rm conftest*
  8322. echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  8323. echo "${ECHO_T}$archive_cmds_need_lc" >&6
  8324. ;;
  8325. esac
  8326. fi
  8327. ;;
  8328. esac
  8329. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  8330. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  8331. library_names_spec=
  8332. libname_spec='lib$name'
  8333. soname_spec=
  8334. shrext=".so"
  8335. postinstall_cmds=
  8336. postuninstall_cmds=
  8337. finish_cmds=
  8338. finish_eval=
  8339. shlibpath_var=
  8340. shlibpath_overrides_runpath=unknown
  8341. version_type=none
  8342. dynamic_linker="$host_os ld.so"
  8343. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8344. if test "$GCC" = yes; then
  8345. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8346. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  8347. # if the path contains ";" then we assume it to be the separator
  8348. # otherwise default to the standard path separator (i.e. ":") - it is
  8349. # assumed that no part of a normal pathname contains ";" but that should
  8350. # okay in the real world where ";" in dirpaths is itself problematic.
  8351. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8352. else
  8353. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8354. fi
  8355. else
  8356. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8357. fi
  8358. need_lib_prefix=unknown
  8359. hardcode_into_libs=no
  8360. # when you set need_version to no, make sure it does not cause -set_version
  8361. # flags to be left without arguments
  8362. need_version=unknown
  8363. case $host_os in
  8364. aix3*)
  8365. version_type=linux
  8366. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8367. shlibpath_var=LIBPATH
  8368. # AIX 3 has no versioning support, so we append a major version to the name.
  8369. soname_spec='${libname}${release}${shared_ext}$major'
  8370. ;;
  8371. aix4* | aix5*)
  8372. version_type=linux
  8373. need_lib_prefix=no
  8374. need_version=no
  8375. hardcode_into_libs=yes
  8376. if test "$host_cpu" = ia64; then
  8377. # AIX 5 supports IA64
  8378. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8379. shlibpath_var=LD_LIBRARY_PATH
  8380. else
  8381. # With GCC up to 2.95.x, collect2 would create an import file
  8382. # for dependence libraries. The import file would start with
  8383. # the line `#! .'. This would cause the generated library to
  8384. # depend on `.', always an invalid library. This was fixed in
  8385. # development snapshots of GCC prior to 3.0.
  8386. case $host_os in
  8387. aix4 | aix4.[01] | aix4.[01].*)
  8388. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8389. echo ' yes '
  8390. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  8391. :
  8392. else
  8393. can_build_shared=no
  8394. fi
  8395. ;;
  8396. esac
  8397. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8398. # soname into executable. Probably we can add versioning support to
  8399. # collect2, so additional links can be useful in future.
  8400. if test "$aix_use_runtimelinking" = yes; then
  8401. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8402. # instead of lib<name>.a to let people know that these are not
  8403. # typical AIX shared libraries.
  8404. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8405. else
  8406. # We preserve .a as extension for shared libraries through AIX4.2
  8407. # and later when we are not doing run time linking.
  8408. library_names_spec='${libname}${release}.a $libname.a'
  8409. soname_spec='${libname}${release}${shared_ext}$major'
  8410. fi
  8411. shlibpath_var=LIBPATH
  8412. fi
  8413. ;;
  8414. amigaos*)
  8415. library_names_spec='$libname.ixlibrary $libname.a'
  8416. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8417. 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'
  8418. ;;
  8419. beos*)
  8420. library_names_spec='${libname}${shared_ext}'
  8421. dynamic_linker="$host_os ld.so"
  8422. shlibpath_var=LIBRARY_PATH
  8423. ;;
  8424. bsdi4*)
  8425. version_type=linux
  8426. need_version=no
  8427. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8428. soname_spec='${libname}${release}${shared_ext}$major'
  8429. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8430. shlibpath_var=LD_LIBRARY_PATH
  8431. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8432. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8433. # the default ld.so.conf also contains /usr/contrib/lib and
  8434. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8435. # libtool to hard-code these into programs
  8436. ;;
  8437. cygwin* | mingw* | pw32*)
  8438. version_type=windows
  8439. shrext=".dll"
  8440. need_version=no
  8441. need_lib_prefix=no
  8442. case $GCC,$host_os in
  8443. yes,cygwin* | yes,mingw* | yes,pw32*)
  8444. library_names_spec='$libname.dll.a'
  8445. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8446. postinstall_cmds='base_file=`basename \${file}`~
  8447. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  8448. dldir=$destdir/`dirname \$dlpath`~
  8449. test -d \$dldir || mkdir -p \$dldir~
  8450. $install_prog $dir/$dlname \$dldir/$dlname'
  8451. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8452. dlpath=$dir/\$dldll~
  8453. $rm \$dlpath'
  8454. shlibpath_overrides_runpath=yes
  8455. case $host_os in
  8456. cygwin*)
  8457. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8458. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8459. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8460. ;;
  8461. mingw*)
  8462. # MinGW DLLs use traditional 'lib' prefix
  8463. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8464. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8465. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  8466. # It is most probably a Windows format PATH printed by
  8467. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8468. # path with ; separators, and with drive letters. We can handle the
  8469. # drive letters (cygwin fileutils understands them), so leave them,
  8470. # especially as we might pass files found there to a mingw objdump,
  8471. # which wouldn't understand a cygwinified path. Ahh.
  8472. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8473. else
  8474. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8475. fi
  8476. ;;
  8477. pw32*)
  8478. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8479. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  8480. ;;
  8481. esac
  8482. ;;
  8483. *)
  8484. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8485. ;;
  8486. esac
  8487. dynamic_linker='Win32 ld.exe'
  8488. # FIXME: first we should search . and the directory the executable is in
  8489. shlibpath_var=PATH
  8490. ;;
  8491. darwin* | rhapsody*)
  8492. dynamic_linker="$host_os dyld"
  8493. version_type=darwin
  8494. need_lib_prefix=no
  8495. need_version=no
  8496. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8497. soname_spec='${libname}${release}${major}$shared_ext'
  8498. shlibpath_overrides_runpath=yes
  8499. shlibpath_var=DYLD_LIBRARY_PATH
  8500. shrext='$(test .$module = .yes && echo .so || echo .dylib)'
  8501. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  8502. if test "$GCC" = yes; then
  8503. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  8504. else
  8505. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  8506. fi
  8507. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8508. ;;
  8509. dgux*)
  8510. version_type=linux
  8511. need_lib_prefix=no
  8512. need_version=no
  8513. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8514. soname_spec='${libname}${release}${shared_ext}$major'
  8515. shlibpath_var=LD_LIBRARY_PATH
  8516. ;;
  8517. freebsd1*)
  8518. dynamic_linker=no
  8519. ;;
  8520. kfreebsd*-gnu)
  8521. version_type=linux
  8522. need_lib_prefix=no
  8523. need_version=no
  8524. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8525. soname_spec='${libname}${release}${shared_ext}$major'
  8526. shlibpath_var=LD_LIBRARY_PATH
  8527. shlibpath_overrides_runpath=no
  8528. hardcode_into_libs=yes
  8529. dynamic_linker='GNU ld.so'
  8530. ;;
  8531. freebsd*)
  8532. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  8533. version_type=freebsd-$objformat
  8534. case $version_type in
  8535. freebsd-elf*)
  8536. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8537. need_version=no
  8538. need_lib_prefix=no
  8539. ;;
  8540. freebsd-*)
  8541. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8542. need_version=yes
  8543. ;;
  8544. esac
  8545. shlibpath_var=LD_LIBRARY_PATH
  8546. case $host_os in
  8547. freebsd2*)
  8548. shlibpath_overrides_runpath=yes
  8549. ;;
  8550. freebsd3.01* | freebsdelf3.01*)
  8551. shlibpath_overrides_runpath=yes
  8552. hardcode_into_libs=yes
  8553. ;;
  8554. *) # from 3.2 on
  8555. shlibpath_overrides_runpath=no
  8556. hardcode_into_libs=yes
  8557. ;;
  8558. esac
  8559. ;;
  8560. gnu*)
  8561. version_type=linux
  8562. need_lib_prefix=no
  8563. need_version=no
  8564. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8565. soname_spec='${libname}${release}${shared_ext}$major'
  8566. shlibpath_var=LD_LIBRARY_PATH
  8567. hardcode_into_libs=yes
  8568. ;;
  8569. hpux9* | hpux10* | hpux11*)
  8570. # Give a soname corresponding to the major version so that dld.sl refuses to
  8571. # link against other versions.
  8572. version_type=sunos
  8573. need_lib_prefix=no
  8574. need_version=no
  8575. case "$host_cpu" in
  8576. ia64*)
  8577. shrext='.so'
  8578. hardcode_into_libs=yes
  8579. dynamic_linker="$host_os dld.so"
  8580. shlibpath_var=LD_LIBRARY_PATH
  8581. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8582. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8583. soname_spec='${libname}${release}${shared_ext}$major'
  8584. if test "X$HPUX_IA64_MODE" = X32; then
  8585. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8586. else
  8587. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8588. fi
  8589. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8590. ;;
  8591. hppa*64*)
  8592. shrext='.sl'
  8593. hardcode_into_libs=yes
  8594. dynamic_linker="$host_os dld.sl"
  8595. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8596. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8597. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8598. soname_spec='${libname}${release}${shared_ext}$major'
  8599. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8600. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8601. ;;
  8602. *)
  8603. shrext='.sl'
  8604. dynamic_linker="$host_os dld.sl"
  8605. shlibpath_var=SHLIB_PATH
  8606. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8607. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8608. soname_spec='${libname}${release}${shared_ext}$major'
  8609. ;;
  8610. esac
  8611. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8612. postinstall_cmds='chmod 555 $lib'
  8613. ;;
  8614. irix5* | irix6* | nonstopux*)
  8615. case $host_os in
  8616. nonstopux*) version_type=nonstopux ;;
  8617. *)
  8618. if test "$lt_cv_prog_gnu_ld" = yes; then
  8619. version_type=linux
  8620. else
  8621. version_type=irix
  8622. fi ;;
  8623. esac
  8624. need_lib_prefix=no
  8625. need_version=no
  8626. soname_spec='${libname}${release}${shared_ext}$major'
  8627. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8628. case $host_os in
  8629. irix5* | nonstopux*)
  8630. libsuff= shlibsuff=
  8631. ;;
  8632. *)
  8633. case $LD in # libtool.m4 will add one of these switches to LD
  8634. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8635. libsuff= shlibsuff= libmagic=32-bit;;
  8636. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8637. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8638. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8639. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8640. *) libsuff= shlibsuff= libmagic=never-match;;
  8641. esac
  8642. ;;
  8643. esac
  8644. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8645. shlibpath_overrides_runpath=no
  8646. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8647. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8648. hardcode_into_libs=yes
  8649. ;;
  8650. # No shared lib support for Linux oldld, aout, or coff.
  8651. linux*oldld* | linux*aout* | linux*coff*)
  8652. dynamic_linker=no
  8653. ;;
  8654. # This must be Linux ELF.
  8655. linux*)
  8656. version_type=linux
  8657. need_lib_prefix=no
  8658. need_version=no
  8659. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8660. soname_spec='${libname}${release}${shared_ext}$major'
  8661. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8662. shlibpath_var=LD_LIBRARY_PATH
  8663. shlibpath_overrides_runpath=no
  8664. # This implies no fast_install, which is unacceptable.
  8665. # Some rework will be needed to allow for fast_install
  8666. # before this can be enabled.
  8667. hardcode_into_libs=yes
  8668. # Append ld.so.conf contents to the search path
  8669. if test -f /etc/ld.so.conf; then
  8670. ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
  8671. sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
  8672. fi
  8673. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8674. # powerpc, because MkLinux only supported shared libraries with the
  8675. # GNU dynamic linker. Since this was broken with cross compilers,
  8676. # most powerpc-linux boxes support dynamic linking these days and
  8677. # people can always --disable-shared, the test was removed, and we
  8678. # assume the GNU/Linux dynamic linker is in use.
  8679. dynamic_linker='GNU/Linux ld.so'
  8680. ;;
  8681. knetbsd*-gnu)
  8682. version_type=linux
  8683. need_lib_prefix=no
  8684. need_version=no
  8685. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8686. soname_spec='${libname}${release}${shared_ext}$major'
  8687. shlibpath_var=LD_LIBRARY_PATH
  8688. shlibpath_overrides_runpath=no
  8689. hardcode_into_libs=yes
  8690. dynamic_linker='GNU ld.so'
  8691. ;;
  8692. netbsd*)
  8693. version_type=sunos
  8694. need_lib_prefix=no
  8695. need_version=no
  8696. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8697. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8698. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8699. dynamic_linker='NetBSD (a.out) ld.so'
  8700. else
  8701. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8702. soname_spec='${libname}${release}${shared_ext}$major'
  8703. dynamic_linker='NetBSD ld.elf_so'
  8704. fi
  8705. shlibpath_var=LD_LIBRARY_PATH
  8706. shlibpath_overrides_runpath=yes
  8707. hardcode_into_libs=yes
  8708. ;;
  8709. newsos6)
  8710. version_type=linux
  8711. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8712. shlibpath_var=LD_LIBRARY_PATH
  8713. shlibpath_overrides_runpath=yes
  8714. ;;
  8715. nto-qnx*)
  8716. version_type=linux
  8717. need_lib_prefix=no
  8718. need_version=no
  8719. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8720. soname_spec='${libname}${release}${shared_ext}$major'
  8721. shlibpath_var=LD_LIBRARY_PATH
  8722. shlibpath_overrides_runpath=yes
  8723. ;;
  8724. openbsd*)
  8725. version_type=sunos
  8726. need_lib_prefix=no
  8727. need_version=yes
  8728. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8729. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8730. shlibpath_var=LD_LIBRARY_PATH
  8731. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8732. case $host_os in
  8733. openbsd2.[89] | openbsd2.[89].*)
  8734. shlibpath_overrides_runpath=no
  8735. ;;
  8736. *)
  8737. shlibpath_overrides_runpath=yes
  8738. ;;
  8739. esac
  8740. else
  8741. shlibpath_overrides_runpath=yes
  8742. fi
  8743. ;;
  8744. os2*)
  8745. libname_spec='$name'
  8746. shrext=".dll"
  8747. need_lib_prefix=no
  8748. library_names_spec='$libname${shared_ext} $libname.a'
  8749. dynamic_linker='OS/2 ld.exe'
  8750. shlibpath_var=LIBPATH
  8751. ;;
  8752. osf3* | osf4* | osf5*)
  8753. version_type=osf
  8754. need_lib_prefix=no
  8755. need_version=no
  8756. soname_spec='${libname}${release}${shared_ext}$major'
  8757. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8758. shlibpath_var=LD_LIBRARY_PATH
  8759. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8760. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8761. ;;
  8762. sco3.2v5*)
  8763. version_type=osf
  8764. soname_spec='${libname}${release}${shared_ext}$major'
  8765. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8766. shlibpath_var=LD_LIBRARY_PATH
  8767. ;;
  8768. solaris*)
  8769. version_type=linux
  8770. need_lib_prefix=no
  8771. need_version=no
  8772. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8773. soname_spec='${libname}${release}${shared_ext}$major'
  8774. shlibpath_var=LD_LIBRARY_PATH
  8775. shlibpath_overrides_runpath=yes
  8776. hardcode_into_libs=yes
  8777. # ldd complains unless libraries are executable
  8778. postinstall_cmds='chmod +x $lib'
  8779. ;;
  8780. sunos4*)
  8781. version_type=sunos
  8782. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8783. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8784. shlibpath_var=LD_LIBRARY_PATH
  8785. shlibpath_overrides_runpath=yes
  8786. if test "$with_gnu_ld" = yes; then
  8787. need_lib_prefix=no
  8788. fi
  8789. need_version=yes
  8790. ;;
  8791. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8792. version_type=linux
  8793. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8794. soname_spec='${libname}${release}${shared_ext}$major'
  8795. shlibpath_var=LD_LIBRARY_PATH
  8796. case $host_vendor in
  8797. sni)
  8798. shlibpath_overrides_runpath=no
  8799. need_lib_prefix=no
  8800. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8801. runpath_var=LD_RUN_PATH
  8802. ;;
  8803. siemens)
  8804. need_lib_prefix=no
  8805. ;;
  8806. motorola)
  8807. need_lib_prefix=no
  8808. need_version=no
  8809. shlibpath_overrides_runpath=no
  8810. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8811. ;;
  8812. esac
  8813. ;;
  8814. sysv4*MP*)
  8815. if test -d /usr/nec ;then
  8816. version_type=linux
  8817. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8818. soname_spec='$libname${shared_ext}.$major'
  8819. shlibpath_var=LD_LIBRARY_PATH
  8820. fi
  8821. ;;
  8822. uts4*)
  8823. version_type=linux
  8824. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8825. soname_spec='${libname}${release}${shared_ext}$major'
  8826. shlibpath_var=LD_LIBRARY_PATH
  8827. ;;
  8828. *)
  8829. dynamic_linker=no
  8830. ;;
  8831. esac
  8832. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8833. echo "${ECHO_T}$dynamic_linker" >&6
  8834. test "$dynamic_linker" = no && can_build_shared=no
  8835. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8836. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  8837. hardcode_action=
  8838. if test -n "$hardcode_libdir_flag_spec" || \
  8839. test -n "$runpath_var " || \
  8840. test "X$hardcode_automatic"="Xyes" ; then
  8841. # We can hardcode non-existant directories.
  8842. if test "$hardcode_direct" != no &&
  8843. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8844. # have to relink, otherwise we might link with an installed library
  8845. # when we should be linking with a yet-to-be-installed one
  8846. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8847. test "$hardcode_minus_L" != no; then
  8848. # Linking always hardcodes the temporary library directory.
  8849. hardcode_action=relink
  8850. else
  8851. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8852. hardcode_action=immediate
  8853. fi
  8854. else
  8855. # We cannot hardcode anything, or else we can only hardcode existing
  8856. # directories.
  8857. hardcode_action=unsupported
  8858. fi
  8859. echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8860. echo "${ECHO_T}$hardcode_action" >&6
  8861. if test "$hardcode_action" = relink; then
  8862. # Fast installation is not supported
  8863. enable_fast_install=no
  8864. elif test "$shlibpath_overrides_runpath" = yes ||
  8865. test "$enable_shared" = no; then
  8866. # Fast installation is not necessary
  8867. enable_fast_install=needless
  8868. fi
  8869. striplib=
  8870. old_striplib=
  8871. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  8872. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  8873. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  8874. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  8875. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  8876. echo "$as_me:$LINENO: result: yes" >&5
  8877. echo "${ECHO_T}yes" >&6
  8878. else
  8879. # FIXME - insert some real tests, host_os isn't really good enough
  8880. case $host_os in
  8881. darwin*)
  8882. if test -n "$STRIP" ; then
  8883. striplib="$STRIP -x"
  8884. echo "$as_me:$LINENO: result: yes" >&5
  8885. echo "${ECHO_T}yes" >&6
  8886. else
  8887. echo "$as_me:$LINENO: result: no" >&5
  8888. echo "${ECHO_T}no" >&6
  8889. fi
  8890. ;;
  8891. *)
  8892. echo "$as_me:$LINENO: result: no" >&5
  8893. echo "${ECHO_T}no" >&6
  8894. ;;
  8895. esac
  8896. fi
  8897. if test "x$enable_dlopen" != xyes; then
  8898. enable_dlopen=unknown
  8899. enable_dlopen_self=unknown
  8900. enable_dlopen_self_static=unknown
  8901. else
  8902. lt_cv_dlopen=no
  8903. lt_cv_dlopen_libs=
  8904. case $host_os in
  8905. beos*)
  8906. lt_cv_dlopen="load_add_on"
  8907. lt_cv_dlopen_libs=
  8908. lt_cv_dlopen_self=yes
  8909. ;;
  8910. mingw* | pw32*)
  8911. lt_cv_dlopen="LoadLibrary"
  8912. lt_cv_dlopen_libs=
  8913. ;;
  8914. cygwin*)
  8915. lt_cv_dlopen="dlopen"
  8916. lt_cv_dlopen_libs=
  8917. ;;
  8918. darwin*)
  8919. # if libdl is installed we need to link against it
  8920. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8921. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  8922. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8923. echo $ECHO_N "(cached) $ECHO_C" >&6
  8924. else
  8925. ac_check_lib_save_LIBS=$LIBS
  8926. LIBS="-ldl $LIBS"
  8927. cat >conftest.$ac_ext <<_ACEOF
  8928. /* confdefs.h. */
  8929. _ACEOF
  8930. cat confdefs.h >>conftest.$ac_ext
  8931. cat >>conftest.$ac_ext <<_ACEOF
  8932. /* end confdefs.h. */
  8933. /* Override any gcc2 internal prototype to avoid an error. */
  8934. #ifdef __cplusplus
  8935. extern "C"
  8936. #endif
  8937. /* We use char because int might match the return type of a gcc2
  8938. builtin and then its argument prototype would still apply. */
  8939. char dlopen ();
  8940. int
  8941. main ()
  8942. {
  8943. dlopen ();
  8944. ;
  8945. return 0;
  8946. }
  8947. _ACEOF
  8948. rm -f conftest.$ac_objext conftest$ac_exeext
  8949. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8950. (eval $ac_link) 2>conftest.er1
  8951. ac_status=$?
  8952. grep -v '^ *+' conftest.er1 >conftest.err
  8953. rm -f conftest.er1
  8954. cat conftest.err >&5
  8955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8956. (exit $ac_status); } &&
  8957. { ac_try='test -z "$ac_c_werror_flag"
  8958. || test ! -s conftest.err'
  8959. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8960. (eval $ac_try) 2>&5
  8961. ac_status=$?
  8962. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8963. (exit $ac_status); }; } &&
  8964. { ac_try='test -s conftest$ac_exeext'
  8965. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8966. (eval $ac_try) 2>&5
  8967. ac_status=$?
  8968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8969. (exit $ac_status); }; }; then
  8970. ac_cv_lib_dl_dlopen=yes
  8971. else
  8972. echo "$as_me: failed program was:" >&5
  8973. sed 's/^/| /' conftest.$ac_ext >&5
  8974. ac_cv_lib_dl_dlopen=no
  8975. fi
  8976. rm -f conftest.err conftest.$ac_objext \
  8977. conftest$ac_exeext conftest.$ac_ext
  8978. LIBS=$ac_check_lib_save_LIBS
  8979. fi
  8980. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8981. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  8982. if test $ac_cv_lib_dl_dlopen = yes; then
  8983. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8984. else
  8985. lt_cv_dlopen="dyld"
  8986. lt_cv_dlopen_libs=
  8987. lt_cv_dlopen_self=yes
  8988. fi
  8989. ;;
  8990. *)
  8991. echo "$as_me:$LINENO: checking for shl_load" >&5
  8992. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  8993. if test "${ac_cv_func_shl_load+set}" = set; then
  8994. echo $ECHO_N "(cached) $ECHO_C" >&6
  8995. else
  8996. cat >conftest.$ac_ext <<_ACEOF
  8997. /* confdefs.h. */
  8998. _ACEOF
  8999. cat confdefs.h >>conftest.$ac_ext
  9000. cat >>conftest.$ac_ext <<_ACEOF
  9001. /* end confdefs.h. */
  9002. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  9003. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9004. #define shl_load innocuous_shl_load
  9005. /* System header to define __stub macros and hopefully few prototypes,
  9006. which can conflict with char shl_load (); below.
  9007. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9008. <limits.h> exists even on freestanding compilers. */
  9009. #ifdef __STDC__
  9010. # include <limits.h>
  9011. #else
  9012. # include <assert.h>
  9013. #endif
  9014. #undef shl_load
  9015. /* Override any gcc2 internal prototype to avoid an error. */
  9016. #ifdef __cplusplus
  9017. extern "C"
  9018. {
  9019. #endif
  9020. /* We use char because int might match the return type of a gcc2
  9021. builtin and then its argument prototype would still apply. */
  9022. char shl_load ();
  9023. /* The GNU C library defines this for functions which it implements
  9024. to always fail with ENOSYS. Some functions are actually named
  9025. something starting with __ and the normal name is an alias. */
  9026. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  9027. choke me
  9028. #else
  9029. char (*f) () = shl_load;
  9030. #endif
  9031. #ifdef __cplusplus
  9032. }
  9033. #endif
  9034. int
  9035. main ()
  9036. {
  9037. return f != shl_load;
  9038. ;
  9039. return 0;
  9040. }
  9041. _ACEOF
  9042. rm -f conftest.$ac_objext conftest$ac_exeext
  9043. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9044. (eval $ac_link) 2>conftest.er1
  9045. ac_status=$?
  9046. grep -v '^ *+' conftest.er1 >conftest.err
  9047. rm -f conftest.er1
  9048. cat conftest.err >&5
  9049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9050. (exit $ac_status); } &&
  9051. { ac_try='test -z "$ac_c_werror_flag"
  9052. || test ! -s conftest.err'
  9053. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9054. (eval $ac_try) 2>&5
  9055. ac_status=$?
  9056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9057. (exit $ac_status); }; } &&
  9058. { ac_try='test -s conftest$ac_exeext'
  9059. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9060. (eval $ac_try) 2>&5
  9061. ac_status=$?
  9062. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9063. (exit $ac_status); }; }; then
  9064. ac_cv_func_shl_load=yes
  9065. else
  9066. echo "$as_me: failed program was:" >&5
  9067. sed 's/^/| /' conftest.$ac_ext >&5
  9068. ac_cv_func_shl_load=no
  9069. fi
  9070. rm -f conftest.err conftest.$ac_objext \
  9071. conftest$ac_exeext conftest.$ac_ext
  9072. fi
  9073. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  9074. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  9075. if test $ac_cv_func_shl_load = yes; then
  9076. lt_cv_dlopen="shl_load"
  9077. else
  9078. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  9079. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  9080. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  9081. echo $ECHO_N "(cached) $ECHO_C" >&6
  9082. else
  9083. ac_check_lib_save_LIBS=$LIBS
  9084. LIBS="-ldld $LIBS"
  9085. cat >conftest.$ac_ext <<_ACEOF
  9086. /* confdefs.h. */
  9087. _ACEOF
  9088. cat confdefs.h >>conftest.$ac_ext
  9089. cat >>conftest.$ac_ext <<_ACEOF
  9090. /* end confdefs.h. */
  9091. /* Override any gcc2 internal prototype to avoid an error. */
  9092. #ifdef __cplusplus
  9093. extern "C"
  9094. #endif
  9095. /* We use char because int might match the return type of a gcc2
  9096. builtin and then its argument prototype would still apply. */
  9097. char shl_load ();
  9098. int
  9099. main ()
  9100. {
  9101. shl_load ();
  9102. ;
  9103. return 0;
  9104. }
  9105. _ACEOF
  9106. rm -f conftest.$ac_objext conftest$ac_exeext
  9107. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9108. (eval $ac_link) 2>conftest.er1
  9109. ac_status=$?
  9110. grep -v '^ *+' conftest.er1 >conftest.err
  9111. rm -f conftest.er1
  9112. cat conftest.err >&5
  9113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9114. (exit $ac_status); } &&
  9115. { ac_try='test -z "$ac_c_werror_flag"
  9116. || test ! -s conftest.err'
  9117. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9118. (eval $ac_try) 2>&5
  9119. ac_status=$?
  9120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9121. (exit $ac_status); }; } &&
  9122. { ac_try='test -s conftest$ac_exeext'
  9123. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9124. (eval $ac_try) 2>&5
  9125. ac_status=$?
  9126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9127. (exit $ac_status); }; }; then
  9128. ac_cv_lib_dld_shl_load=yes
  9129. else
  9130. echo "$as_me: failed program was:" >&5
  9131. sed 's/^/| /' conftest.$ac_ext >&5
  9132. ac_cv_lib_dld_shl_load=no
  9133. fi
  9134. rm -f conftest.err conftest.$ac_objext \
  9135. conftest$ac_exeext conftest.$ac_ext
  9136. LIBS=$ac_check_lib_save_LIBS
  9137. fi
  9138. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  9139. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  9140. if test $ac_cv_lib_dld_shl_load = yes; then
  9141. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  9142. else
  9143. echo "$as_me:$LINENO: checking for dlopen" >&5
  9144. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  9145. if test "${ac_cv_func_dlopen+set}" = set; then
  9146. echo $ECHO_N "(cached) $ECHO_C" >&6
  9147. else
  9148. cat >conftest.$ac_ext <<_ACEOF
  9149. /* confdefs.h. */
  9150. _ACEOF
  9151. cat confdefs.h >>conftest.$ac_ext
  9152. cat >>conftest.$ac_ext <<_ACEOF
  9153. /* end confdefs.h. */
  9154. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  9155. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9156. #define dlopen innocuous_dlopen
  9157. /* System header to define __stub macros and hopefully few prototypes,
  9158. which can conflict with char dlopen (); below.
  9159. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9160. <limits.h> exists even on freestanding compilers. */
  9161. #ifdef __STDC__
  9162. # include <limits.h>
  9163. #else
  9164. # include <assert.h>
  9165. #endif
  9166. #undef dlopen
  9167. /* Override any gcc2 internal prototype to avoid an error. */
  9168. #ifdef __cplusplus
  9169. extern "C"
  9170. {
  9171. #endif
  9172. /* We use char because int might match the return type of a gcc2
  9173. builtin and then its argument prototype would still apply. */
  9174. char dlopen ();
  9175. /* The GNU C library defines this for functions which it implements
  9176. to always fail with ENOSYS. Some functions are actually named
  9177. something starting with __ and the normal name is an alias. */
  9178. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  9179. choke me
  9180. #else
  9181. char (*f) () = dlopen;
  9182. #endif
  9183. #ifdef __cplusplus
  9184. }
  9185. #endif
  9186. int
  9187. main ()
  9188. {
  9189. return f != dlopen;
  9190. ;
  9191. return 0;
  9192. }
  9193. _ACEOF
  9194. rm -f conftest.$ac_objext conftest$ac_exeext
  9195. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9196. (eval $ac_link) 2>conftest.er1
  9197. ac_status=$?
  9198. grep -v '^ *+' conftest.er1 >conftest.err
  9199. rm -f conftest.er1
  9200. cat conftest.err >&5
  9201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9202. (exit $ac_status); } &&
  9203. { ac_try='test -z "$ac_c_werror_flag"
  9204. || test ! -s conftest.err'
  9205. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9206. (eval $ac_try) 2>&5
  9207. ac_status=$?
  9208. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9209. (exit $ac_status); }; } &&
  9210. { ac_try='test -s conftest$ac_exeext'
  9211. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9212. (eval $ac_try) 2>&5
  9213. ac_status=$?
  9214. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9215. (exit $ac_status); }; }; then
  9216. ac_cv_func_dlopen=yes
  9217. else
  9218. echo "$as_me: failed program was:" >&5
  9219. sed 's/^/| /' conftest.$ac_ext >&5
  9220. ac_cv_func_dlopen=no
  9221. fi
  9222. rm -f conftest.err conftest.$ac_objext \
  9223. conftest$ac_exeext conftest.$ac_ext
  9224. fi
  9225. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  9226. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  9227. if test $ac_cv_func_dlopen = yes; then
  9228. lt_cv_dlopen="dlopen"
  9229. else
  9230. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  9231. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  9232. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  9233. echo $ECHO_N "(cached) $ECHO_C" >&6
  9234. else
  9235. ac_check_lib_save_LIBS=$LIBS
  9236. LIBS="-ldl $LIBS"
  9237. cat >conftest.$ac_ext <<_ACEOF
  9238. /* confdefs.h. */
  9239. _ACEOF
  9240. cat confdefs.h >>conftest.$ac_ext
  9241. cat >>conftest.$ac_ext <<_ACEOF
  9242. /* end confdefs.h. */
  9243. /* Override any gcc2 internal prototype to avoid an error. */
  9244. #ifdef __cplusplus
  9245. extern "C"
  9246. #endif
  9247. /* We use char because int might match the return type of a gcc2
  9248. builtin and then its argument prototype would still apply. */
  9249. char dlopen ();
  9250. int
  9251. main ()
  9252. {
  9253. dlopen ();
  9254. ;
  9255. return 0;
  9256. }
  9257. _ACEOF
  9258. rm -f conftest.$ac_objext conftest$ac_exeext
  9259. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9260. (eval $ac_link) 2>conftest.er1
  9261. ac_status=$?
  9262. grep -v '^ *+' conftest.er1 >conftest.err
  9263. rm -f conftest.er1
  9264. cat conftest.err >&5
  9265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9266. (exit $ac_status); } &&
  9267. { ac_try='test -z "$ac_c_werror_flag"
  9268. || test ! -s conftest.err'
  9269. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9270. (eval $ac_try) 2>&5
  9271. ac_status=$?
  9272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9273. (exit $ac_status); }; } &&
  9274. { ac_try='test -s conftest$ac_exeext'
  9275. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9276. (eval $ac_try) 2>&5
  9277. ac_status=$?
  9278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9279. (exit $ac_status); }; }; then
  9280. ac_cv_lib_dl_dlopen=yes
  9281. else
  9282. echo "$as_me: failed program was:" >&5
  9283. sed 's/^/| /' conftest.$ac_ext >&5
  9284. ac_cv_lib_dl_dlopen=no
  9285. fi
  9286. rm -f conftest.err conftest.$ac_objext \
  9287. conftest$ac_exeext conftest.$ac_ext
  9288. LIBS=$ac_check_lib_save_LIBS
  9289. fi
  9290. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  9291. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  9292. if test $ac_cv_lib_dl_dlopen = yes; then
  9293. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9294. else
  9295. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  9296. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  9297. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  9298. echo $ECHO_N "(cached) $ECHO_C" >&6
  9299. else
  9300. ac_check_lib_save_LIBS=$LIBS
  9301. LIBS="-lsvld $LIBS"
  9302. cat >conftest.$ac_ext <<_ACEOF
  9303. /* confdefs.h. */
  9304. _ACEOF
  9305. cat confdefs.h >>conftest.$ac_ext
  9306. cat >>conftest.$ac_ext <<_ACEOF
  9307. /* end confdefs.h. */
  9308. /* Override any gcc2 internal prototype to avoid an error. */
  9309. #ifdef __cplusplus
  9310. extern "C"
  9311. #endif
  9312. /* We use char because int might match the return type of a gcc2
  9313. builtin and then its argument prototype would still apply. */
  9314. char dlopen ();
  9315. int
  9316. main ()
  9317. {
  9318. dlopen ();
  9319. ;
  9320. return 0;
  9321. }
  9322. _ACEOF
  9323. rm -f conftest.$ac_objext conftest$ac_exeext
  9324. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9325. (eval $ac_link) 2>conftest.er1
  9326. ac_status=$?
  9327. grep -v '^ *+' conftest.er1 >conftest.err
  9328. rm -f conftest.er1
  9329. cat conftest.err >&5
  9330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9331. (exit $ac_status); } &&
  9332. { ac_try='test -z "$ac_c_werror_flag"
  9333. || test ! -s conftest.err'
  9334. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9335. (eval $ac_try) 2>&5
  9336. ac_status=$?
  9337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9338. (exit $ac_status); }; } &&
  9339. { ac_try='test -s conftest$ac_exeext'
  9340. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9341. (eval $ac_try) 2>&5
  9342. ac_status=$?
  9343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9344. (exit $ac_status); }; }; then
  9345. ac_cv_lib_svld_dlopen=yes
  9346. else
  9347. echo "$as_me: failed program was:" >&5
  9348. sed 's/^/| /' conftest.$ac_ext >&5
  9349. ac_cv_lib_svld_dlopen=no
  9350. fi
  9351. rm -f conftest.err conftest.$ac_objext \
  9352. conftest$ac_exeext conftest.$ac_ext
  9353. LIBS=$ac_check_lib_save_LIBS
  9354. fi
  9355. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  9356. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  9357. if test $ac_cv_lib_svld_dlopen = yes; then
  9358. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9359. else
  9360. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  9361. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  9362. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  9363. echo $ECHO_N "(cached) $ECHO_C" >&6
  9364. else
  9365. ac_check_lib_save_LIBS=$LIBS
  9366. LIBS="-ldld $LIBS"
  9367. cat >conftest.$ac_ext <<_ACEOF
  9368. /* confdefs.h. */
  9369. _ACEOF
  9370. cat confdefs.h >>conftest.$ac_ext
  9371. cat >>conftest.$ac_ext <<_ACEOF
  9372. /* end confdefs.h. */
  9373. /* Override any gcc2 internal prototype to avoid an error. */
  9374. #ifdef __cplusplus
  9375. extern "C"
  9376. #endif
  9377. /* We use char because int might match the return type of a gcc2
  9378. builtin and then its argument prototype would still apply. */
  9379. char dld_link ();
  9380. int
  9381. main ()
  9382. {
  9383. dld_link ();
  9384. ;
  9385. return 0;
  9386. }
  9387. _ACEOF
  9388. rm -f conftest.$ac_objext conftest$ac_exeext
  9389. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9390. (eval $ac_link) 2>conftest.er1
  9391. ac_status=$?
  9392. grep -v '^ *+' conftest.er1 >conftest.err
  9393. rm -f conftest.er1
  9394. cat conftest.err >&5
  9395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9396. (exit $ac_status); } &&
  9397. { ac_try='test -z "$ac_c_werror_flag"
  9398. || test ! -s conftest.err'
  9399. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9400. (eval $ac_try) 2>&5
  9401. ac_status=$?
  9402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9403. (exit $ac_status); }; } &&
  9404. { ac_try='test -s conftest$ac_exeext'
  9405. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9406. (eval $ac_try) 2>&5
  9407. ac_status=$?
  9408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9409. (exit $ac_status); }; }; then
  9410. ac_cv_lib_dld_dld_link=yes
  9411. else
  9412. echo "$as_me: failed program was:" >&5
  9413. sed 's/^/| /' conftest.$ac_ext >&5
  9414. ac_cv_lib_dld_dld_link=no
  9415. fi
  9416. rm -f conftest.err conftest.$ac_objext \
  9417. conftest$ac_exeext conftest.$ac_ext
  9418. LIBS=$ac_check_lib_save_LIBS
  9419. fi
  9420. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  9421. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  9422. if test $ac_cv_lib_dld_dld_link = yes; then
  9423. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  9424. fi
  9425. fi
  9426. fi
  9427. fi
  9428. fi
  9429. fi
  9430. ;;
  9431. esac
  9432. if test "x$lt_cv_dlopen" != xno; then
  9433. enable_dlopen=yes
  9434. else
  9435. enable_dlopen=no
  9436. fi
  9437. case $lt_cv_dlopen in
  9438. dlopen)
  9439. save_CPPFLAGS="$CPPFLAGS"
  9440. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9441. save_LDFLAGS="$LDFLAGS"
  9442. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9443. save_LIBS="$LIBS"
  9444. LIBS="$lt_cv_dlopen_libs $LIBS"
  9445. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  9446. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  9447. if test "${lt_cv_dlopen_self+set}" = set; then
  9448. echo $ECHO_N "(cached) $ECHO_C" >&6
  9449. else
  9450. if test "$cross_compiling" = yes; then :
  9451. lt_cv_dlopen_self=cross
  9452. else
  9453. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9454. lt_status=$lt_dlunknown
  9455. cat > conftest.$ac_ext <<EOF
  9456. #line 10392 "configure"
  9457. #include "confdefs.h"
  9458. #if HAVE_DLFCN_H
  9459. #include <dlfcn.h>
  9460. #endif
  9461. #include <stdio.h>
  9462. #ifdef RTLD_GLOBAL
  9463. # define LT_DLGLOBAL RTLD_GLOBAL
  9464. #else
  9465. # ifdef DL_GLOBAL
  9466. # define LT_DLGLOBAL DL_GLOBAL
  9467. # else
  9468. # define LT_DLGLOBAL 0
  9469. # endif
  9470. #endif
  9471. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9472. find out it does not work in some platform. */
  9473. #ifndef LT_DLLAZY_OR_NOW
  9474. # ifdef RTLD_LAZY
  9475. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9476. # else
  9477. # ifdef DL_LAZY
  9478. # define LT_DLLAZY_OR_NOW DL_LAZY
  9479. # else
  9480. # ifdef RTLD_NOW
  9481. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9482. # else
  9483. # ifdef DL_NOW
  9484. # define LT_DLLAZY_OR_NOW DL_NOW
  9485. # else
  9486. # define LT_DLLAZY_OR_NOW 0
  9487. # endif
  9488. # endif
  9489. # endif
  9490. # endif
  9491. #endif
  9492. #ifdef __cplusplus
  9493. extern "C" void exit (int);
  9494. #endif
  9495. void fnord() { int i=42;}
  9496. int main ()
  9497. {
  9498. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9499. int status = $lt_dlunknown;
  9500. if (self)
  9501. {
  9502. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9503. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9504. /* dlclose (self); */
  9505. }
  9506. exit (status);
  9507. }
  9508. EOF
  9509. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9510. (eval $ac_link) 2>&5
  9511. ac_status=$?
  9512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9513. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9514. (./conftest; exit; ) 2>/dev/null
  9515. lt_status=$?
  9516. case x$lt_status in
  9517. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9518. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9519. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  9520. esac
  9521. else :
  9522. # compilation failed
  9523. lt_cv_dlopen_self=no
  9524. fi
  9525. fi
  9526. rm -fr conftest*
  9527. fi
  9528. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  9529. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  9530. if test "x$lt_cv_dlopen_self" = xyes; then
  9531. LDFLAGS="$LDFLAGS $link_static_flag"
  9532. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  9533. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  9534. if test "${lt_cv_dlopen_self_static+set}" = set; then
  9535. echo $ECHO_N "(cached) $ECHO_C" >&6
  9536. else
  9537. if test "$cross_compiling" = yes; then :
  9538. lt_cv_dlopen_self_static=cross
  9539. else
  9540. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9541. lt_status=$lt_dlunknown
  9542. cat > conftest.$ac_ext <<EOF
  9543. #line 10490 "configure"
  9544. #include "confdefs.h"
  9545. #if HAVE_DLFCN_H
  9546. #include <dlfcn.h>
  9547. #endif
  9548. #include <stdio.h>
  9549. #ifdef RTLD_GLOBAL
  9550. # define LT_DLGLOBAL RTLD_GLOBAL
  9551. #else
  9552. # ifdef DL_GLOBAL
  9553. # define LT_DLGLOBAL DL_GLOBAL
  9554. # else
  9555. # define LT_DLGLOBAL 0
  9556. # endif
  9557. #endif
  9558. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9559. find out it does not work in some platform. */
  9560. #ifndef LT_DLLAZY_OR_NOW
  9561. # ifdef RTLD_LAZY
  9562. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9563. # else
  9564. # ifdef DL_LAZY
  9565. # define LT_DLLAZY_OR_NOW DL_LAZY
  9566. # else
  9567. # ifdef RTLD_NOW
  9568. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9569. # else
  9570. # ifdef DL_NOW
  9571. # define LT_DLLAZY_OR_NOW DL_NOW
  9572. # else
  9573. # define LT_DLLAZY_OR_NOW 0
  9574. # endif
  9575. # endif
  9576. # endif
  9577. # endif
  9578. #endif
  9579. #ifdef __cplusplus
  9580. extern "C" void exit (int);
  9581. #endif
  9582. void fnord() { int i=42;}
  9583. int main ()
  9584. {
  9585. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9586. int status = $lt_dlunknown;
  9587. if (self)
  9588. {
  9589. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9590. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9591. /* dlclose (self); */
  9592. }
  9593. exit (status);
  9594. }
  9595. EOF
  9596. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9597. (eval $ac_link) 2>&5
  9598. ac_status=$?
  9599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9600. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9601. (./conftest; exit; ) 2>/dev/null
  9602. lt_status=$?
  9603. case x$lt_status in
  9604. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9605. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9606. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  9607. esac
  9608. else :
  9609. # compilation failed
  9610. lt_cv_dlopen_self_static=no
  9611. fi
  9612. fi
  9613. rm -fr conftest*
  9614. fi
  9615. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  9616. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  9617. fi
  9618. CPPFLAGS="$save_CPPFLAGS"
  9619. LDFLAGS="$save_LDFLAGS"
  9620. LIBS="$save_LIBS"
  9621. ;;
  9622. esac
  9623. case $lt_cv_dlopen_self in
  9624. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9625. *) enable_dlopen_self=unknown ;;
  9626. esac
  9627. case $lt_cv_dlopen_self_static in
  9628. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9629. *) enable_dlopen_self_static=unknown ;;
  9630. esac
  9631. fi
  9632. # Report which librarie types wil actually be built
  9633. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  9634. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  9635. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  9636. echo "${ECHO_T}$can_build_shared" >&6
  9637. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  9638. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  9639. test "$can_build_shared" = "no" && enable_shared=no
  9640. # On AIX, shared libraries and static libraries use the same namespace, and
  9641. # are all built from PIC.
  9642. case "$host_os" in
  9643. aix3*)
  9644. test "$enable_shared" = yes && enable_static=no
  9645. if test -n "$RANLIB"; then
  9646. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9647. postinstall_cmds='$RANLIB $lib'
  9648. fi
  9649. ;;
  9650. aix4*)
  9651. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9652. test "$enable_shared" = yes && enable_static=no
  9653. fi
  9654. ;;
  9655. darwin* | rhapsody*)
  9656. if test "$GCC" = yes; then
  9657. archive_cmds_need_lc=no
  9658. case "$host_os" in
  9659. rhapsody* | darwin1.[012])
  9660. allow_undefined_flag='-undefined suppress'
  9661. ;;
  9662. *) # Darwin 1.3 on
  9663. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  9664. allow_undefined_flag='-flat_namespace -undefined suppress'
  9665. else
  9666. case ${MACOSX_DEPLOYMENT_TARGET} in
  9667. 10.[012])
  9668. allow_undefined_flag='-flat_namespace -undefined suppress'
  9669. ;;
  9670. 10.*)
  9671. allow_undefined_flag='-undefined dynamic_lookup'
  9672. ;;
  9673. esac
  9674. fi
  9675. ;;
  9676. esac
  9677. output_verbose_link_cmd='echo'
  9678. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
  9679. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9680. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  9681. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9682. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9683. hardcode_direct=no
  9684. hardcode_automatic=yes
  9685. hardcode_shlibpath_var=unsupported
  9686. whole_archive_flag_spec='-all_load $convenience'
  9687. link_all_deplibs=yes
  9688. else
  9689. ld_shlibs=no
  9690. fi
  9691. ;;
  9692. esac
  9693. echo "$as_me:$LINENO: result: $enable_shared" >&5
  9694. echo "${ECHO_T}$enable_shared" >&6
  9695. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  9696. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  9697. # Make sure either enable_shared or enable_static is yes.
  9698. test "$enable_shared" = yes || enable_static=yes
  9699. echo "$as_me:$LINENO: result: $enable_static" >&5
  9700. echo "${ECHO_T}$enable_static" >&6
  9701. # The else clause should only fire when bootstrapping the
  9702. # libtool distribution, otherwise you forgot to ship ltmain.sh
  9703. # with your package, and you will get complaints that there are
  9704. # no rules to generate ltmain.sh.
  9705. if test -f "$ltmain"; then
  9706. # See if we are running on zsh, and set the options which allow our commands through
  9707. # without removal of \ escapes.
  9708. if test -n "${ZSH_VERSION+set}" ; then
  9709. setopt NO_GLOB_SUBST
  9710. fi
  9711. # Now quote all the things that may contain metacharacters while being
  9712. # careful not to overquote the AC_SUBSTed values. We take copies of the
  9713. # variables and quote the copies for generation of the libtool script.
  9714. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  9715. SED SHELL STRIP \
  9716. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  9717. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  9718. deplibs_check_method reload_flag reload_cmds need_locks \
  9719. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  9720. lt_cv_sys_global_symbol_to_c_name_address \
  9721. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  9722. old_postinstall_cmds old_postuninstall_cmds \
  9723. compiler \
  9724. CC \
  9725. LD \
  9726. lt_prog_compiler_wl \
  9727. lt_prog_compiler_pic \
  9728. lt_prog_compiler_static \
  9729. lt_prog_compiler_no_builtin_flag \
  9730. export_dynamic_flag_spec \
  9731. thread_safe_flag_spec \
  9732. whole_archive_flag_spec \
  9733. enable_shared_with_static_runtimes \
  9734. old_archive_cmds \
  9735. old_archive_from_new_cmds \
  9736. predep_objects \
  9737. postdep_objects \
  9738. predeps \
  9739. postdeps \
  9740. compiler_lib_search_path \
  9741. archive_cmds \
  9742. archive_expsym_cmds \
  9743. postinstall_cmds \
  9744. postuninstall_cmds \
  9745. old_archive_from_expsyms_cmds \
  9746. allow_undefined_flag \
  9747. no_undefined_flag \
  9748. export_symbols_cmds \
  9749. hardcode_libdir_flag_spec \
  9750. hardcode_libdir_flag_spec_ld \
  9751. hardcode_libdir_separator \
  9752. hardcode_automatic \
  9753. module_cmds \
  9754. module_expsym_cmds \
  9755. lt_cv_prog_compiler_c_o \
  9756. exclude_expsyms \
  9757. include_expsyms; do
  9758. case $var in
  9759. old_archive_cmds | \
  9760. old_archive_from_new_cmds | \
  9761. archive_cmds | \
  9762. archive_expsym_cmds | \
  9763. module_cmds | \
  9764. module_expsym_cmds | \
  9765. old_archive_from_expsyms_cmds | \
  9766. export_symbols_cmds | \
  9767. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  9768. postinstall_cmds | postuninstall_cmds | \
  9769. old_postinstall_cmds | old_postuninstall_cmds | \
  9770. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  9771. # Double-quote double-evaled strings.
  9772. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  9773. ;;
  9774. *)
  9775. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  9776. ;;
  9777. esac
  9778. done
  9779. case $lt_echo in
  9780. *'\$0 --fallback-echo"')
  9781. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  9782. ;;
  9783. esac
  9784. cfgfile="${ofile}T"
  9785. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  9786. $rm -f "$cfgfile"
  9787. { echo "$as_me:$LINENO: creating $ofile" >&5
  9788. echo "$as_me: creating $ofile" >&6;}
  9789. cat <<__EOF__ >> "$cfgfile"
  9790. #! $SHELL
  9791. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  9792. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  9793. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  9794. #
  9795. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  9796. # Free Software Foundation, Inc.
  9797. #
  9798. # This file is part of GNU Libtool:
  9799. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  9800. #
  9801. # This program is free software; you can redistribute it and/or modify
  9802. # it under the terms of the GNU General Public License as published by
  9803. # the Free Software Foundation; either version 2 of the License, or
  9804. # (at your option) any later version.
  9805. #
  9806. # This program is distributed in the hope that it will be useful, but
  9807. # WITHOUT ANY WARRANTY; without even the implied warranty of
  9808. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  9809. # General Public License for more details.
  9810. #
  9811. # You should have received a copy of the GNU General Public License
  9812. # along with this program; if not, write to the Free Software
  9813. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  9814. #
  9815. # As a special exception to the GNU General Public License, if you
  9816. # distribute this file as part of a program that contains a
  9817. # configuration script generated by Autoconf, you may include it under
  9818. # the same distribution terms that you use for the rest of that program.
  9819. # A sed program that does not truncate output.
  9820. SED=$lt_SED
  9821. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  9822. Xsed="$SED -e s/^X//"
  9823. # The HP-UX ksh and POSIX shell print the target directory to stdout
  9824. # if CDPATH is set.
  9825. if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  9826. # The names of the tagged configurations supported by this script.
  9827. available_tags=
  9828. # ### BEGIN LIBTOOL CONFIG
  9829. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  9830. # Shell to use when invoking shell scripts.
  9831. SHELL=$lt_SHELL
  9832. # Whether or not to build shared libraries.
  9833. build_libtool_libs=$enable_shared
  9834. # Whether or not to build static libraries.
  9835. build_old_libs=$enable_static
  9836. # Whether or not to add -lc for building shared libraries.
  9837. build_libtool_need_lc=$archive_cmds_need_lc
  9838. # Whether or not to disallow shared libs when runtime libs are static
  9839. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  9840. # Whether or not to optimize for fast installation.
  9841. fast_install=$enable_fast_install
  9842. # The host system.
  9843. host_alias=$host_alias
  9844. host=$host
  9845. # An echo program that does not interpret backslashes.
  9846. echo=$lt_echo
  9847. # The archiver.
  9848. AR=$lt_AR
  9849. AR_FLAGS=$lt_AR_FLAGS
  9850. # A C compiler.
  9851. LTCC=$lt_LTCC
  9852. # A language-specific compiler.
  9853. CC=$lt_compiler
  9854. # Is the compiler the GNU C compiler?
  9855. with_gcc=$GCC
  9856. # An ERE matcher.
  9857. EGREP=$lt_EGREP
  9858. # The linker used to build libraries.
  9859. LD=$lt_LD
  9860. # Whether we need hard or soft links.
  9861. LN_S=$lt_LN_S
  9862. # A BSD-compatible nm program.
  9863. NM=$lt_NM
  9864. # A symbol stripping program
  9865. STRIP=$lt_STRIP
  9866. # Used to examine libraries when file_magic_cmd begins "file"
  9867. MAGIC_CMD=$MAGIC_CMD
  9868. # Used on cygwin: DLL creation program.
  9869. DLLTOOL="$DLLTOOL"
  9870. # Used on cygwin: object dumper.
  9871. OBJDUMP="$OBJDUMP"
  9872. # Used on cygwin: assembler.
  9873. AS="$AS"
  9874. # The name of the directory that contains temporary libtool files.
  9875. objdir=$objdir
  9876. # How to create reloadable object files.
  9877. reload_flag=$lt_reload_flag
  9878. reload_cmds=$lt_reload_cmds
  9879. # How to pass a linker flag through the compiler.
  9880. wl=$lt_lt_prog_compiler_wl
  9881. # Object file suffix (normally "o").
  9882. objext="$ac_objext"
  9883. # Old archive suffix (normally "a").
  9884. libext="$libext"
  9885. # Shared library suffix (normally ".so").
  9886. shrext='$shrext'
  9887. # Executable file suffix (normally "").
  9888. exeext="$exeext"
  9889. # Additional compiler flags for building library objects.
  9890. pic_flag=$lt_lt_prog_compiler_pic
  9891. pic_mode=$pic_mode
  9892. # What is the maximum length of a command?
  9893. max_cmd_len=$lt_cv_sys_max_cmd_len
  9894. # Does compiler simultaneously support -c and -o options?
  9895. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  9896. # Must we lock files when doing compilation ?
  9897. need_locks=$lt_need_locks
  9898. # Do we need the lib prefix for modules?
  9899. need_lib_prefix=$need_lib_prefix
  9900. # Do we need a version for libraries?
  9901. need_version=$need_version
  9902. # Whether dlopen is supported.
  9903. dlopen_support=$enable_dlopen
  9904. # Whether dlopen of programs is supported.
  9905. dlopen_self=$enable_dlopen_self
  9906. # Whether dlopen of statically linked programs is supported.
  9907. dlopen_self_static=$enable_dlopen_self_static
  9908. # Compiler flag to prevent dynamic linking.
  9909. link_static_flag=$lt_lt_prog_compiler_static
  9910. # Compiler flag to turn off builtin functions.
  9911. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  9912. # Compiler flag to allow reflexive dlopens.
  9913. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  9914. # Compiler flag to generate shared objects directly from archives.
  9915. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  9916. # Compiler flag to generate thread-safe objects.
  9917. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  9918. # Library versioning type.
  9919. version_type=$version_type
  9920. # Format of library name prefix.
  9921. libname_spec=$lt_libname_spec
  9922. # List of archive names. First name is the real one, the rest are links.
  9923. # The last name is the one that the linker finds with -lNAME.
  9924. library_names_spec=$lt_library_names_spec
  9925. # The coded name of the library, if different from the real name.
  9926. soname_spec=$lt_soname_spec
  9927. # Commands used to build and install an old-style archive.
  9928. RANLIB=$lt_RANLIB
  9929. old_archive_cmds=$lt_old_archive_cmds
  9930. old_postinstall_cmds=$lt_old_postinstall_cmds
  9931. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  9932. # Create an old-style archive from a shared archive.
  9933. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  9934. # Create a temporary old-style archive to link instead of a shared archive.
  9935. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  9936. # Commands used to build and install a shared archive.
  9937. archive_cmds=$lt_archive_cmds
  9938. archive_expsym_cmds=$lt_archive_expsym_cmds
  9939. postinstall_cmds=$lt_postinstall_cmds
  9940. postuninstall_cmds=$lt_postuninstall_cmds
  9941. # Commands used to build a loadable module (assumed same as above if empty)
  9942. module_cmds=$lt_module_cmds
  9943. module_expsym_cmds=$lt_module_expsym_cmds
  9944. # Commands to strip libraries.
  9945. old_striplib=$lt_old_striplib
  9946. striplib=$lt_striplib
  9947. # Dependencies to place before the objects being linked to create a
  9948. # shared library.
  9949. predep_objects=$lt_predep_objects
  9950. # Dependencies to place after the objects being linked to create a
  9951. # shared library.
  9952. postdep_objects=$lt_postdep_objects
  9953. # Dependencies to place before the objects being linked to create a
  9954. # shared library.
  9955. predeps=$lt_predeps
  9956. # Dependencies to place after the objects being linked to create a
  9957. # shared library.
  9958. postdeps=$lt_postdeps
  9959. # The library search path used internally by the compiler when linking
  9960. # a shared library.
  9961. compiler_lib_search_path=$lt_compiler_lib_search_path
  9962. # Method to check whether dependent libraries are shared objects.
  9963. deplibs_check_method=$lt_deplibs_check_method
  9964. # Command to use when deplibs_check_method == file_magic.
  9965. file_magic_cmd=$lt_file_magic_cmd
  9966. # Flag that allows shared libraries with undefined symbols to be built.
  9967. allow_undefined_flag=$lt_allow_undefined_flag
  9968. # Flag that forces no undefined symbols.
  9969. no_undefined_flag=$lt_no_undefined_flag
  9970. # Commands used to finish a libtool library installation in a directory.
  9971. finish_cmds=$lt_finish_cmds
  9972. # Same as above, but a single script fragment to be evaled but not shown.
  9973. finish_eval=$lt_finish_eval
  9974. # Take the output of nm and produce a listing of raw symbols and C names.
  9975. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  9976. # Transform the output of nm in a proper C declaration
  9977. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  9978. # Transform the output of nm in a C name address pair
  9979. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  9980. # This is the shared library runtime path variable.
  9981. runpath_var=$runpath_var
  9982. # This is the shared library path variable.
  9983. shlibpath_var=$shlibpath_var
  9984. # Is shlibpath searched before the hard-coded library search path?
  9985. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  9986. # How to hardcode a shared library path into an executable.
  9987. hardcode_action=$hardcode_action
  9988. # Whether we should hardcode library paths into libraries.
  9989. hardcode_into_libs=$hardcode_into_libs
  9990. # Flag to hardcode \$libdir into a binary during linking.
  9991. # This must work even if \$libdir does not exist.
  9992. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  9993. # If ld is used when linking, flag to hardcode \$libdir into
  9994. # a binary during linking. This must work even if \$libdir does
  9995. # not exist.
  9996. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  9997. # Whether we need a single -rpath flag with a separated argument.
  9998. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  9999. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  10000. # resulting binary.
  10001. hardcode_direct=$hardcode_direct
  10002. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  10003. # resulting binary.
  10004. hardcode_minus_L=$hardcode_minus_L
  10005. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  10006. # the resulting binary.
  10007. hardcode_shlibpath_var=$hardcode_shlibpath_var
  10008. # Set to yes if building a shared library automatically hardcodes DIR into the library
  10009. # and all subsequent libraries and executables linked against it.
  10010. hardcode_automatic=$hardcode_automatic
  10011. # Variables whose values should be saved in libtool wrapper scripts and
  10012. # restored at relink time.
  10013. variables_saved_for_relink="$variables_saved_for_relink"
  10014. # Whether libtool must link a program against all its dependency libraries.
  10015. link_all_deplibs=$link_all_deplibs
  10016. # Compile-time system search path for libraries
  10017. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  10018. # Run-time system search path for libraries
  10019. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  10020. # Fix the shell variable \$srcfile for the compiler.
  10021. fix_srcfile_path="$fix_srcfile_path"
  10022. # Set to yes if exported symbols are required.
  10023. always_export_symbols=$always_export_symbols
  10024. # The commands to list exported symbols.
  10025. export_symbols_cmds=$lt_export_symbols_cmds
  10026. # The commands to extract the exported symbol list from a shared archive.
  10027. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  10028. # Symbols that should not be listed in the preloaded symbols.
  10029. exclude_expsyms=$lt_exclude_expsyms
  10030. # Symbols that must always be exported.
  10031. include_expsyms=$lt_include_expsyms
  10032. # ### END LIBTOOL CONFIG
  10033. __EOF__
  10034. case $host_os in
  10035. aix3*)
  10036. cat <<\EOF >> "$cfgfile"
  10037. # AIX sometimes has problems with the GCC collect2 program. For some
  10038. # reason, if we set the COLLECT_NAMES environment variable, the problems
  10039. # vanish in a puff of smoke.
  10040. if test "X${COLLECT_NAMES+set}" != Xset; then
  10041. COLLECT_NAMES=
  10042. export COLLECT_NAMES
  10043. fi
  10044. EOF
  10045. ;;
  10046. esac
  10047. # We use sed instead of cat because bash on DJGPP gets confused if
  10048. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  10049. # text mode, it properly converts lines to CR/LF. This bash problem
  10050. # is reportedly fixed, but why not run on old versions too?
  10051. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  10052. mv -f "$cfgfile" "$ofile" || \
  10053. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  10054. chmod +x "$ofile"
  10055. else
  10056. # If there is no Makefile yet, we rely on a make rule to execute
  10057. # `config.status --recheck' to rerun these tests and create the
  10058. # libtool script then.
  10059. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  10060. if test -f "$ltmain_in"; then
  10061. test -f Makefile && make "$ltmain"
  10062. fi
  10063. fi
  10064. ac_ext=c
  10065. ac_cpp='$CPP $CPPFLAGS'
  10066. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10067. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10068. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10069. CC="$lt_save_CC"
  10070. # Check whether --with-tags or --without-tags was given.
  10071. if test "${with_tags+set}" = set; then
  10072. withval="$with_tags"
  10073. tagnames="$withval"
  10074. fi;
  10075. if test -f "$ltmain" && test -n "$tagnames"; then
  10076. if test ! -f "${ofile}"; then
  10077. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  10078. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  10079. fi
  10080. if test -z "$LTCC"; then
  10081. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  10082. if test -z "$LTCC"; then
  10083. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  10084. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  10085. else
  10086. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  10087. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  10088. fi
  10089. fi
  10090. # Extract list of available tagged configurations in $ofile.
  10091. # Note that this assumes the entire list is on one line.
  10092. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  10093. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10094. for tagname in $tagnames; do
  10095. IFS="$lt_save_ifs"
  10096. # Check whether tagname contains only valid characters
  10097. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  10098. "") ;;
  10099. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  10100. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  10101. { (exit 1); exit 1; }; }
  10102. ;;
  10103. esac
  10104. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  10105. then
  10106. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  10107. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  10108. { (exit 1); exit 1; }; }
  10109. fi
  10110. # Update the list of available tags.
  10111. if test -n "$tagname"; then
  10112. echo appending configuration tag \"$tagname\" to $ofile
  10113. case $tagname in
  10114. CXX)
  10115. if test -n "$CXX" && test "X$CXX" != "Xno"; then
  10116. ac_ext=cc
  10117. ac_cpp='$CXXCPP $CPPFLAGS'
  10118. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10119. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10120. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10121. archive_cmds_need_lc_CXX=no
  10122. allow_undefined_flag_CXX=
  10123. always_export_symbols_CXX=no
  10124. archive_expsym_cmds_CXX=
  10125. export_dynamic_flag_spec_CXX=
  10126. hardcode_direct_CXX=no
  10127. hardcode_libdir_flag_spec_CXX=
  10128. hardcode_libdir_flag_spec_ld_CXX=
  10129. hardcode_libdir_separator_CXX=
  10130. hardcode_minus_L_CXX=no
  10131. hardcode_automatic_CXX=no
  10132. module_cmds_CXX=
  10133. module_expsym_cmds_CXX=
  10134. link_all_deplibs_CXX=unknown
  10135. old_archive_cmds_CXX=$old_archive_cmds
  10136. no_undefined_flag_CXX=
  10137. whole_archive_flag_spec_CXX=
  10138. enable_shared_with_static_runtimes_CXX=no
  10139. # Dependencies to place before and after the object being linked:
  10140. predep_objects_CXX=
  10141. postdep_objects_CXX=
  10142. predeps_CXX=
  10143. postdeps_CXX=
  10144. compiler_lib_search_path_CXX=
  10145. # Source file extension for C++ test sources.
  10146. ac_ext=cc
  10147. # Object file extension for compiled C++ test sources.
  10148. objext=o
  10149. objext_CXX=$objext
  10150. # Code to be used in simple compile tests
  10151. lt_simple_compile_test_code="int some_variable = 0;\n"
  10152. # Code to be used in simple link tests
  10153. lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
  10154. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10155. # If no C compiler was specified, use CC.
  10156. LTCC=${LTCC-"$CC"}
  10157. # Allow CC to be a program name with arguments.
  10158. compiler=$CC
  10159. # Allow CC to be a program name with arguments.
  10160. lt_save_CC=$CC
  10161. lt_save_LD=$LD
  10162. lt_save_GCC=$GCC
  10163. GCC=$GXX
  10164. lt_save_with_gnu_ld=$with_gnu_ld
  10165. lt_save_path_LD=$lt_cv_path_LD
  10166. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10167. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10168. else
  10169. unset lt_cv_prog_gnu_ld
  10170. fi
  10171. if test -n "${lt_cv_path_LDCXX+set}"; then
  10172. lt_cv_path_LD=$lt_cv_path_LDCXX
  10173. else
  10174. unset lt_cv_path_LD
  10175. fi
  10176. test -z "${LDCXX+set}" || LD=$LDCXX
  10177. CC=${CXX-"c++"}
  10178. compiler=$CC
  10179. compiler_CXX=$CC
  10180. cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  10181. # We don't want -fno-exception wen compiling C++ code, so set the
  10182. # no_builtin_flag separately
  10183. if test "$GXX" = yes; then
  10184. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10185. else
  10186. lt_prog_compiler_no_builtin_flag_CXX=
  10187. fi
  10188. if test "$GXX" = yes; then
  10189. # Set up default GNU C++ configuration
  10190. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  10191. if test "${with_gnu_ld+set}" = set; then
  10192. withval="$with_gnu_ld"
  10193. test "$withval" = no || with_gnu_ld=yes
  10194. else
  10195. with_gnu_ld=no
  10196. fi;
  10197. ac_prog=ld
  10198. if test "$GCC" = yes; then
  10199. # Check if gcc -print-prog-name=ld gives a path.
  10200. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  10201. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  10202. case $host in
  10203. *-*-mingw*)
  10204. # gcc leaves a trailing carriage return which upsets mingw
  10205. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10206. *)
  10207. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10208. esac
  10209. case $ac_prog in
  10210. # Accept absolute paths.
  10211. [\\/]* | ?:[\\/]*)
  10212. re_direlt='/[^/][^/]*/\.\./'
  10213. # Canonicalize the pathname of ld
  10214. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  10215. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  10216. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  10217. done
  10218. test -z "$LD" && LD="$ac_prog"
  10219. ;;
  10220. "")
  10221. # If it fails, then pretend we aren't using GCC.
  10222. ac_prog=ld
  10223. ;;
  10224. *)
  10225. # If it is relative, then search for the first ld in PATH.
  10226. with_gnu_ld=unknown
  10227. ;;
  10228. esac
  10229. elif test "$with_gnu_ld" = yes; then
  10230. echo "$as_me:$LINENO: checking for GNU ld" >&5
  10231. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  10232. else
  10233. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  10234. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  10235. fi
  10236. if test "${lt_cv_path_LD+set}" = set; then
  10237. echo $ECHO_N "(cached) $ECHO_C" >&6
  10238. else
  10239. if test -z "$LD"; then
  10240. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10241. for ac_dir in $PATH; do
  10242. IFS="$lt_save_ifs"
  10243. test -z "$ac_dir" && ac_dir=.
  10244. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10245. lt_cv_path_LD="$ac_dir/$ac_prog"
  10246. # Check to see if the program is GNU ld. I'd rather use --version,
  10247. # but apparently some GNU ld's only accept -v.
  10248. # Break only if it was the GNU/non-GNU ld that we prefer.
  10249. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10250. *GNU* | *'with BFD'*)
  10251. test "$with_gnu_ld" != no && break
  10252. ;;
  10253. *)
  10254. test "$with_gnu_ld" != yes && break
  10255. ;;
  10256. esac
  10257. fi
  10258. done
  10259. IFS="$lt_save_ifs"
  10260. else
  10261. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10262. fi
  10263. fi
  10264. LD="$lt_cv_path_LD"
  10265. if test -n "$LD"; then
  10266. echo "$as_me:$LINENO: result: $LD" >&5
  10267. echo "${ECHO_T}$LD" >&6
  10268. else
  10269. echo "$as_me:$LINENO: result: no" >&5
  10270. echo "${ECHO_T}no" >&6
  10271. fi
  10272. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  10273. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  10274. { (exit 1); exit 1; }; }
  10275. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  10276. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  10277. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  10278. echo $ECHO_N "(cached) $ECHO_C" >&6
  10279. else
  10280. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  10281. case `$LD -v 2>&1 </dev/null` in
  10282. *GNU* | *'with BFD'*)
  10283. lt_cv_prog_gnu_ld=yes
  10284. ;;
  10285. *)
  10286. lt_cv_prog_gnu_ld=no
  10287. ;;
  10288. esac
  10289. fi
  10290. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  10291. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  10292. with_gnu_ld=$lt_cv_prog_gnu_ld
  10293. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10294. # archiving commands below assume that GNU ld is being used.
  10295. if test "$with_gnu_ld" = yes; then
  10296. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10297. 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'
  10298. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10299. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10300. # If archive_cmds runs LD, not CC, wlarc should be empty
  10301. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10302. # investigate it a little bit more. (MM)
  10303. wlarc='${wl}'
  10304. # ancient GNU ld didn't support --whole-archive et. al.
  10305. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  10306. grep 'no-whole-archive' > /dev/null; then
  10307. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10308. else
  10309. whole_archive_flag_spec_CXX=
  10310. fi
  10311. else
  10312. with_gnu_ld=no
  10313. wlarc=
  10314. # A generic and very simple default shared library creation
  10315. # command for GNU C++ for the case where it uses the native
  10316. # linker, instead of GNU ld. If possible, this setting should
  10317. # overridden to take advantage of the native linker features on
  10318. # the platform it is being used on.
  10319. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10320. fi
  10321. # Commands to make compiler produce verbose output that lists
  10322. # what "hidden" libraries, object files and flags are used when
  10323. # linking a shared library.
  10324. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10325. else
  10326. GXX=no
  10327. with_gnu_ld=no
  10328. wlarc=
  10329. fi
  10330. # PORTME: fill in a description of your system's C++ link characteristics
  10331. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10332. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  10333. ld_shlibs_CXX=yes
  10334. case $host_os in
  10335. aix3*)
  10336. # FIXME: insert proper C++ library support
  10337. ld_shlibs_CXX=no
  10338. ;;
  10339. aix4* | aix5*)
  10340. if test "$host_cpu" = ia64; then
  10341. # On IA64, the linker does run time linking by default, so we don't
  10342. # have to do anything special.
  10343. aix_use_runtimelinking=no
  10344. exp_sym_flag='-Bexport'
  10345. no_entry_flag=""
  10346. else
  10347. aix_use_runtimelinking=no
  10348. # Test if we are trying to use run time linking or normal
  10349. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10350. # need to do runtime linking.
  10351. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  10352. for ld_flag in $LDFLAGS; do
  10353. case $ld_flag in
  10354. *-brtl*)
  10355. aix_use_runtimelinking=yes
  10356. break
  10357. ;;
  10358. esac
  10359. done
  10360. esac
  10361. exp_sym_flag='-bexport'
  10362. no_entry_flag='-bnoentry'
  10363. fi
  10364. # When large executables or shared objects are built, AIX ld can
  10365. # have problems creating the table of contents. If linking a library
  10366. # or program results in "error TOC overflow" add -mminimal-toc to
  10367. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10368. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10369. archive_cmds_CXX=''
  10370. hardcode_direct_CXX=yes
  10371. hardcode_libdir_separator_CXX=':'
  10372. link_all_deplibs_CXX=yes
  10373. if test "$GXX" = yes; then
  10374. case $host_os in aix4.012|aix4.012.*)
  10375. # We only want to do this on AIX 4.2 and lower, the check
  10376. # below for broken collect2 doesn't work under 4.3+
  10377. collect2name=`${CC} -print-prog-name=collect2`
  10378. if test -f "$collect2name" && \
  10379. strings "$collect2name" | grep resolve_lib_name >/dev/null
  10380. then
  10381. # We have reworked collect2
  10382. hardcode_direct_CXX=yes
  10383. else
  10384. # We have old collect2
  10385. hardcode_direct_CXX=unsupported
  10386. # It fails to find uninstalled libraries when the uninstalled
  10387. # path is not listed in the libpath. Setting hardcode_minus_L
  10388. # to unsupported forces relinking
  10389. hardcode_minus_L_CXX=yes
  10390. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10391. hardcode_libdir_separator_CXX=
  10392. fi
  10393. esac
  10394. shared_flag='-shared'
  10395. else
  10396. # not using gcc
  10397. if test "$host_cpu" = ia64; then
  10398. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10399. # chokes on -Wl,-G. The following line is correct:
  10400. shared_flag='-G'
  10401. else
  10402. if test "$aix_use_runtimelinking" = yes; then
  10403. shared_flag='${wl}-G'
  10404. else
  10405. shared_flag='${wl}-bM:SRE'
  10406. fi
  10407. fi
  10408. fi
  10409. # It seems that -bexpall does not export symbols beginning with
  10410. # underscore (_), so it is better to generate a list of symbols to export.
  10411. always_export_symbols_CXX=yes
  10412. if test "$aix_use_runtimelinking" = yes; then
  10413. # Warning - without using the other runtime loading flags (-brtl),
  10414. # -berok will link without error, but may produce a broken library.
  10415. allow_undefined_flag_CXX='-berok'
  10416. # Determine the default libpath from the value encoded in an empty executable.
  10417. cat >conftest.$ac_ext <<_ACEOF
  10418. /* confdefs.h. */
  10419. _ACEOF
  10420. cat confdefs.h >>conftest.$ac_ext
  10421. cat >>conftest.$ac_ext <<_ACEOF
  10422. /* end confdefs.h. */
  10423. int
  10424. main ()
  10425. {
  10426. ;
  10427. return 0;
  10428. }
  10429. _ACEOF
  10430. rm -f conftest.$ac_objext conftest$ac_exeext
  10431. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10432. (eval $ac_link) 2>conftest.er1
  10433. ac_status=$?
  10434. grep -v '^ *+' conftest.er1 >conftest.err
  10435. rm -f conftest.er1
  10436. cat conftest.err >&5
  10437. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10438. (exit $ac_status); } &&
  10439. { ac_try='test -z "$ac_cxx_werror_flag"
  10440. || test ! -s conftest.err'
  10441. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10442. (eval $ac_try) 2>&5
  10443. ac_status=$?
  10444. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10445. (exit $ac_status); }; } &&
  10446. { ac_try='test -s conftest$ac_exeext'
  10447. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10448. (eval $ac_try) 2>&5
  10449. ac_status=$?
  10450. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10451. (exit $ac_status); }; }; then
  10452. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  10453. }'`
  10454. # Check for a 64-bit object if we didn't find anything.
  10455. 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; }
  10456. }'`; fi
  10457. else
  10458. echo "$as_me: failed program was:" >&5
  10459. sed 's/^/| /' conftest.$ac_ext >&5
  10460. fi
  10461. rm -f conftest.err conftest.$ac_objext \
  10462. conftest$ac_exeext conftest.$ac_ext
  10463. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10464. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10465. 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}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10466. else
  10467. if test "$host_cpu" = ia64; then
  10468. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10469. allow_undefined_flag_CXX="-z nodefs"
  10470. 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"
  10471. else
  10472. # Determine the default libpath from the value encoded in an empty executable.
  10473. cat >conftest.$ac_ext <<_ACEOF
  10474. /* confdefs.h. */
  10475. _ACEOF
  10476. cat confdefs.h >>conftest.$ac_ext
  10477. cat >>conftest.$ac_ext <<_ACEOF
  10478. /* end confdefs.h. */
  10479. int
  10480. main ()
  10481. {
  10482. ;
  10483. return 0;
  10484. }
  10485. _ACEOF
  10486. rm -f conftest.$ac_objext conftest$ac_exeext
  10487. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10488. (eval $ac_link) 2>conftest.er1
  10489. ac_status=$?
  10490. grep -v '^ *+' conftest.er1 >conftest.err
  10491. rm -f conftest.er1
  10492. cat conftest.err >&5
  10493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10494. (exit $ac_status); } &&
  10495. { ac_try='test -z "$ac_cxx_werror_flag"
  10496. || test ! -s conftest.err'
  10497. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10498. (eval $ac_try) 2>&5
  10499. ac_status=$?
  10500. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10501. (exit $ac_status); }; } &&
  10502. { ac_try='test -s conftest$ac_exeext'
  10503. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10504. (eval $ac_try) 2>&5
  10505. ac_status=$?
  10506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10507. (exit $ac_status); }; }; then
  10508. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  10509. }'`
  10510. # Check for a 64-bit object if we didn't find anything.
  10511. 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; }
  10512. }'`; fi
  10513. else
  10514. echo "$as_me: failed program was:" >&5
  10515. sed 's/^/| /' conftest.$ac_ext >&5
  10516. fi
  10517. rm -f conftest.err conftest.$ac_objext \
  10518. conftest$ac_exeext conftest.$ac_ext
  10519. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10520. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10521. # Warning - without using the other run time loading flags,
  10522. # -berok will link without error, but may produce a broken library.
  10523. no_undefined_flag_CXX=' ${wl}-bernotok'
  10524. allow_undefined_flag_CXX=' ${wl}-berok'
  10525. # -bexpall does not export symbols beginning with underscore (_)
  10526. always_export_symbols_CXX=yes
  10527. # Exported symbols can be pulled into shared objects from archives
  10528. whole_archive_flag_spec_CXX=' '
  10529. archive_cmds_need_lc_CXX=yes
  10530. # This is similar to how AIX traditionally builds it's shared libraries.
  10531. 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'
  10532. fi
  10533. fi
  10534. ;;
  10535. chorus*)
  10536. case $cc_basename in
  10537. *)
  10538. # FIXME: insert proper C++ library support
  10539. ld_shlibs_CXX=no
  10540. ;;
  10541. esac
  10542. ;;
  10543. cygwin* | mingw* | pw32*)
  10544. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10545. # as there is no search path for DLLs.
  10546. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10547. allow_undefined_flag_CXX=unsupported
  10548. always_export_symbols_CXX=no
  10549. enable_shared_with_static_runtimes_CXX=yes
  10550. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  10551. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  10552. # If the export-symbols file already is a .def file (1st line
  10553. # is EXPORTS), use it as is; otherwise, prepend...
  10554. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10555. cp $export_symbols $output_objdir/$soname.def;
  10556. else
  10557. echo EXPORTS > $output_objdir/$soname.def;
  10558. cat $export_symbols >> $output_objdir/$soname.def;
  10559. fi~
  10560. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  10561. else
  10562. ld_shlibs_CXX=no
  10563. fi
  10564. ;;
  10565. darwin* | rhapsody*)
  10566. if test "$GXX" = yes; then
  10567. archive_cmds_need_lc_CXX=no
  10568. case "$host_os" in
  10569. rhapsody* | darwin1.[012])
  10570. allow_undefined_flag_CXX='-undefined suppress'
  10571. ;;
  10572. *) # Darwin 1.3 on
  10573. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  10574. allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
  10575. else
  10576. case ${MACOSX_DEPLOYMENT_TARGET} in
  10577. 10.[012])
  10578. allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
  10579. ;;
  10580. 10.*)
  10581. allow_undefined_flag_CXX='-undefined dynamic_lookup'
  10582. ;;
  10583. esac
  10584. fi
  10585. ;;
  10586. esac
  10587. lt_int_apple_cc_single_mod=no
  10588. output_verbose_link_cmd='echo'
  10589. if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  10590. lt_int_apple_cc_single_mod=yes
  10591. fi
  10592. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10593. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  10594. else
  10595. archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  10596. fi
  10597. module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10598. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  10599. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10600. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10601. else
  10602. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10603. fi
  10604. module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10605. hardcode_direct_CXX=no
  10606. hardcode_automatic_CXX=yes
  10607. hardcode_shlibpath_var_CXX=unsupported
  10608. whole_archive_flag_spec_CXX='-all_load $convenience'
  10609. link_all_deplibs_CXX=yes
  10610. else
  10611. ld_shlibs_CXX=no
  10612. fi
  10613. ;;
  10614. dgux*)
  10615. case $cc_basename in
  10616. ec++)
  10617. # FIXME: insert proper C++ library support
  10618. ld_shlibs_CXX=no
  10619. ;;
  10620. ghcx)
  10621. # Green Hills C++ Compiler
  10622. # FIXME: insert proper C++ library support
  10623. ld_shlibs_CXX=no
  10624. ;;
  10625. *)
  10626. # FIXME: insert proper C++ library support
  10627. ld_shlibs_CXX=no
  10628. ;;
  10629. esac
  10630. ;;
  10631. freebsd12*)
  10632. # C++ shared libraries reported to be fairly broken before switch to ELF
  10633. ld_shlibs_CXX=no
  10634. ;;
  10635. freebsd-elf*)
  10636. archive_cmds_need_lc_CXX=no
  10637. ;;
  10638. freebsd* | kfreebsd*-gnu)
  10639. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10640. # conventions
  10641. ld_shlibs_CXX=yes
  10642. ;;
  10643. gnu*)
  10644. ;;
  10645. hpux9*)
  10646. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10647. hardcode_libdir_separator_CXX=:
  10648. export_dynamic_flag_spec_CXX='${wl}-E'
  10649. hardcode_direct_CXX=yes
  10650. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10651. # but as the default
  10652. # location of the library.
  10653. case $cc_basename in
  10654. CC)
  10655. # FIXME: insert proper C++ library support
  10656. ld_shlibs_CXX=no
  10657. ;;
  10658. aCC)
  10659. 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'
  10660. # Commands to make compiler produce verbose output that lists
  10661. # what "hidden" libraries, object files and flags are used when
  10662. # linking a shared library.
  10663. #
  10664. # There doesn't appear to be a way to prevent this compiler from
  10665. # explicitly linking system object files so we need to strip them
  10666. # from the output so that they don't get included in the library
  10667. # dependencies.
  10668. 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'
  10669. ;;
  10670. *)
  10671. if test "$GXX" = yes; then
  10672. 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'
  10673. else
  10674. # FIXME: insert proper C++ library support
  10675. ld_shlibs_CXX=no
  10676. fi
  10677. ;;
  10678. esac
  10679. ;;
  10680. hpux10*|hpux11*)
  10681. if test $with_gnu_ld = no; then
  10682. case "$host_cpu" in
  10683. hppa*64*)
  10684. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10685. hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  10686. hardcode_libdir_separator_CXX=:
  10687. ;;
  10688. ia64*)
  10689. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10690. ;;
  10691. *)
  10692. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10693. hardcode_libdir_separator_CXX=:
  10694. export_dynamic_flag_spec_CXX='${wl}-E'
  10695. ;;
  10696. esac
  10697. fi
  10698. case "$host_cpu" in
  10699. hppa*64*)
  10700. hardcode_direct_CXX=no
  10701. hardcode_shlibpath_var_CXX=no
  10702. ;;
  10703. ia64*)
  10704. hardcode_direct_CXX=no
  10705. hardcode_shlibpath_var_CXX=no
  10706. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10707. # but as the default
  10708. # location of the library.
  10709. ;;
  10710. *)
  10711. hardcode_direct_CXX=yes
  10712. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10713. # but as the default
  10714. # location of the library.
  10715. ;;
  10716. esac
  10717. case $cc_basename in
  10718. CC)
  10719. # FIXME: insert proper C++ library support
  10720. ld_shlibs_CXX=no
  10721. ;;
  10722. aCC)
  10723. case "$host_cpu" in
  10724. hppa*64*|ia64*)
  10725. archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  10726. ;;
  10727. *)
  10728. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10729. ;;
  10730. esac
  10731. # Commands to make compiler produce verbose output that lists
  10732. # what "hidden" libraries, object files and flags are used when
  10733. # linking a shared library.
  10734. #
  10735. # There doesn't appear to be a way to prevent this compiler from
  10736. # explicitly linking system object files so we need to strip them
  10737. # from the output so that they don't get included in the library
  10738. # dependencies.
  10739. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10740. ;;
  10741. *)
  10742. if test "$GXX" = yes; then
  10743. if test $with_gnu_ld = no; then
  10744. case "$host_cpu" in
  10745. ia64*|hppa*64*)
  10746. archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  10747. ;;
  10748. *)
  10749. 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'
  10750. ;;
  10751. esac
  10752. fi
  10753. else
  10754. # FIXME: insert proper C++ library support
  10755. ld_shlibs_CXX=no
  10756. fi
  10757. ;;
  10758. esac
  10759. ;;
  10760. irix5* | irix6*)
  10761. case $cc_basename in
  10762. CC)
  10763. # SGI C++
  10764. 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'
  10765. # Archives containing C++ object files must be created using
  10766. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10767. # necessary to make sure instantiated templates are included
  10768. # in the archive.
  10769. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10770. ;;
  10771. *)
  10772. if test "$GXX" = yes; then
  10773. if test "$with_gnu_ld" = no; then
  10774. 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'
  10775. else
  10776. 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` -o $lib'
  10777. fi
  10778. fi
  10779. link_all_deplibs_CXX=yes
  10780. ;;
  10781. esac
  10782. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10783. hardcode_libdir_separator_CXX=:
  10784. ;;
  10785. linux*)
  10786. case $cc_basename in
  10787. KCC)
  10788. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10789. # KCC will only create a shared library if the output file
  10790. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10791. # to its proper name (with version) after linking.
  10792. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10793. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  10794. # Commands to make compiler produce verbose output that lists
  10795. # what "hidden" libraries, object files and flags are used when
  10796. # linking a shared library.
  10797. #
  10798. # There doesn't appear to be a way to prevent this compiler from
  10799. # explicitly linking system object files so we need to strip them
  10800. # from the output so that they don't get included in the library
  10801. # dependencies.
  10802. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10803. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  10804. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10805. # Archives containing C++ object files must be created using
  10806. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10807. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10808. ;;
  10809. icpc)
  10810. # Intel C++
  10811. with_gnu_ld=yes
  10812. archive_cmds_need_lc_CXX=no
  10813. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10814. 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'
  10815. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10816. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10817. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10818. ;;
  10819. cxx)
  10820. # Compaq C++
  10821. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10822. 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'
  10823. runpath_var=LD_RUN_PATH
  10824. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10825. hardcode_libdir_separator_CXX=:
  10826. # Commands to make compiler produce verbose output that lists
  10827. # what "hidden" libraries, object files and flags are used when
  10828. # linking a shared library.
  10829. #
  10830. # There doesn't appear to be a way to prevent this compiler from
  10831. # explicitly linking system object files so we need to strip them
  10832. # from the output so that they don't get included in the library
  10833. # dependencies.
  10834. 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'
  10835. ;;
  10836. esac
  10837. ;;
  10838. lynxos*)
  10839. # FIXME: insert proper C++ library support
  10840. ld_shlibs_CXX=no
  10841. ;;
  10842. m88k*)
  10843. # FIXME: insert proper C++ library support
  10844. ld_shlibs_CXX=no
  10845. ;;
  10846. mvs*)
  10847. case $cc_basename in
  10848. cxx)
  10849. # FIXME: insert proper C++ library support
  10850. ld_shlibs_CXX=no
  10851. ;;
  10852. *)
  10853. # FIXME: insert proper C++ library support
  10854. ld_shlibs_CXX=no
  10855. ;;
  10856. esac
  10857. ;;
  10858. netbsd*)
  10859. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10860. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10861. wlarc=
  10862. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10863. hardcode_direct_CXX=yes
  10864. hardcode_shlibpath_var_CXX=no
  10865. fi
  10866. # Workaround some broken pre-1.5 toolchains
  10867. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10868. ;;
  10869. osf3*)
  10870. case $cc_basename in
  10871. KCC)
  10872. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10873. # KCC will only create a shared library if the output file
  10874. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10875. # to its proper name (with version) after linking.
  10876. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10877. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10878. hardcode_libdir_separator_CXX=:
  10879. # Archives containing C++ object files must be created using
  10880. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10881. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10882. ;;
  10883. RCC)
  10884. # Rational C++ 2.4.1
  10885. # FIXME: insert proper C++ library support
  10886. ld_shlibs_CXX=no
  10887. ;;
  10888. cxx)
  10889. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10890. 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'
  10891. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10892. hardcode_libdir_separator_CXX=:
  10893. # Commands to make compiler produce verbose output that lists
  10894. # what "hidden" libraries, object files and flags are used when
  10895. # linking a shared library.
  10896. #
  10897. # There doesn't appear to be a way to prevent this compiler from
  10898. # explicitly linking system object files so we need to strip them
  10899. # from the output so that they don't get included in the library
  10900. # dependencies.
  10901. 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'
  10902. ;;
  10903. *)
  10904. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10905. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10906. 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'
  10907. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10908. hardcode_libdir_separator_CXX=:
  10909. # Commands to make compiler produce verbose output that lists
  10910. # what "hidden" libraries, object files and flags are used when
  10911. # linking a shared library.
  10912. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10913. else
  10914. # FIXME: insert proper C++ library support
  10915. ld_shlibs_CXX=no
  10916. fi
  10917. ;;
  10918. esac
  10919. ;;
  10920. osf4* | osf5*)
  10921. case $cc_basename in
  10922. KCC)
  10923. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10924. # KCC will only create a shared library if the output file
  10925. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10926. # to its proper name (with version) after linking.
  10927. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10928. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10929. hardcode_libdir_separator_CXX=:
  10930. # Archives containing C++ object files must be created using
  10931. # the KAI C++ compiler.
  10932. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  10933. ;;
  10934. RCC)
  10935. # Rational C++ 2.4.1
  10936. # FIXME: insert proper C++ library support
  10937. ld_shlibs_CXX=no
  10938. ;;
  10939. cxx)
  10940. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10941. 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'
  10942. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10943. echo "-hidden">> $lib.exp~
  10944. $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~
  10945. $rm $lib.exp'
  10946. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10947. hardcode_libdir_separator_CXX=:
  10948. # Commands to make compiler produce verbose output that lists
  10949. # what "hidden" libraries, object files and flags are used when
  10950. # linking a shared library.
  10951. #
  10952. # There doesn't appear to be a way to prevent this compiler from
  10953. # explicitly linking system object files so we need to strip them
  10954. # from the output so that they don't get included in the library
  10955. # dependencies.
  10956. 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'
  10957. ;;
  10958. *)
  10959. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10960. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10961. 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'
  10962. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10963. hardcode_libdir_separator_CXX=:
  10964. # Commands to make compiler produce verbose output that lists
  10965. # what "hidden" libraries, object files and flags are used when
  10966. # linking a shared library.
  10967. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10968. else
  10969. # FIXME: insert proper C++ library support
  10970. ld_shlibs_CXX=no
  10971. fi
  10972. ;;
  10973. esac
  10974. ;;
  10975. psos*)
  10976. # FIXME: insert proper C++ library support
  10977. ld_shlibs_CXX=no
  10978. ;;
  10979. sco*)
  10980. archive_cmds_need_lc_CXX=no
  10981. case $cc_basename in
  10982. CC)
  10983. # FIXME: insert proper C++ library support
  10984. ld_shlibs_CXX=no
  10985. ;;
  10986. *)
  10987. # FIXME: insert proper C++ library support
  10988. ld_shlibs_CXX=no
  10989. ;;
  10990. esac
  10991. ;;
  10992. sunos4*)
  10993. case $cc_basename in
  10994. CC)
  10995. # Sun C++ 4.x
  10996. # FIXME: insert proper C++ library support
  10997. ld_shlibs_CXX=no
  10998. ;;
  10999. lcc)
  11000. # Lucid
  11001. # FIXME: insert proper C++ library support
  11002. ld_shlibs_CXX=no
  11003. ;;
  11004. *)
  11005. # FIXME: insert proper C++ library support
  11006. ld_shlibs_CXX=no
  11007. ;;
  11008. esac
  11009. ;;
  11010. solaris*)
  11011. case $cc_basename in
  11012. CC)
  11013. # Sun C++ 4.2, 5.x and Centerline C++
  11014. no_undefined_flag_CXX=' -zdefs'
  11015. archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11016. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  11017. $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'
  11018. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11019. hardcode_shlibpath_var_CXX=no
  11020. case $host_os in
  11021. solaris2.0-5 | solaris2.0-5.*) ;;
  11022. *)
  11023. # The C++ compiler is used as linker so we must use $wl
  11024. # flag to pass the commands to the underlying system
  11025. # linker.
  11026. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11027. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11028. ;;
  11029. esac
  11030. link_all_deplibs_CXX=yes
  11031. # Commands to make compiler produce verbose output that lists
  11032. # what "hidden" libraries, object files and flags are used when
  11033. # linking a shared library.
  11034. #
  11035. # There doesn't appear to be a way to prevent this compiler from
  11036. # explicitly linking system object files so we need to strip them
  11037. # from the output so that they don't get included in the library
  11038. # dependencies.
  11039. output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  11040. # Archives containing C++ object files must be created using
  11041. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11042. # necessary to make sure instantiated templates are included
  11043. # in the archive.
  11044. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11045. ;;
  11046. gcx)
  11047. # Green Hills C++ Compiler
  11048. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11049. # The C++ compiler must be used to create the archive.
  11050. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11051. ;;
  11052. *)
  11053. # GNU C++ compiler with Solaris linker
  11054. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11055. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11056. if $CC --version | grep -v '^2\.7' > /dev/null; then
  11057. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11058. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  11059. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  11060. # Commands to make compiler produce verbose output that lists
  11061. # what "hidden" libraries, object files and flags are used when
  11062. # linking a shared library.
  11063. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  11064. else
  11065. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11066. # platform.
  11067. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11068. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  11069. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  11070. # Commands to make compiler produce verbose output that lists
  11071. # what "hidden" libraries, object files and flags are used when
  11072. # linking a shared library.
  11073. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  11074. fi
  11075. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11076. fi
  11077. ;;
  11078. esac
  11079. ;;
  11080. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  11081. archive_cmds_need_lc_CXX=no
  11082. ;;
  11083. tandem*)
  11084. case $cc_basename in
  11085. NCC)
  11086. # NonStop-UX NCC 3.20
  11087. # FIXME: insert proper C++ library support
  11088. ld_shlibs_CXX=no
  11089. ;;
  11090. *)
  11091. # FIXME: insert proper C++ library support
  11092. ld_shlibs_CXX=no
  11093. ;;
  11094. esac
  11095. ;;
  11096. vxworks*)
  11097. # FIXME: insert proper C++ library support
  11098. ld_shlibs_CXX=no
  11099. ;;
  11100. *)
  11101. # FIXME: insert proper C++ library support
  11102. ld_shlibs_CXX=no
  11103. ;;
  11104. esac
  11105. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11106. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  11107. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11108. GCC_CXX="$GXX"
  11109. LD_CXX="$LD"
  11110. cat > conftest.$ac_ext <<EOF
  11111. class Foo
  11112. {
  11113. public:
  11114. Foo (void) { a = 0; }
  11115. private:
  11116. int a;
  11117. };
  11118. EOF
  11119. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11120. (eval $ac_compile) 2>&5
  11121. ac_status=$?
  11122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11123. (exit $ac_status); }; then
  11124. # Parse the compiler output and extract the necessary
  11125. # objects, libraries and library flags.
  11126. # Sentinel used to keep track of whether or not we are before
  11127. # the conftest object file.
  11128. pre_test_object_deps_done=no
  11129. # The `*' in the case matches for architectures that use `case' in
  11130. # $output_verbose_cmd can trigger glob expansion during the loop
  11131. # eval without this substitution.
  11132. output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  11133. for p in `eval $output_verbose_link_cmd`; do
  11134. case $p in
  11135. -L* | -R* | -l*)
  11136. # Some compilers place space between "-{L,R}" and the path.
  11137. # Remove the space.
  11138. if test $p = "-L" \
  11139. || test $p = "-R"; then
  11140. prev=$p
  11141. continue
  11142. else
  11143. prev=
  11144. fi
  11145. if test "$pre_test_object_deps_done" = no; then
  11146. case $p in
  11147. -L* | -R*)
  11148. # Internal compiler library paths should come after those
  11149. # provided the user. The postdeps already come after the
  11150. # user supplied libs so there is no need to process them.
  11151. if test -z "$compiler_lib_search_path_CXX"; then
  11152. compiler_lib_search_path_CXX="${prev}${p}"
  11153. else
  11154. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11155. fi
  11156. ;;
  11157. # The "-l" case would never come before the object being
  11158. # linked, so don't bother handling this case.
  11159. esac
  11160. else
  11161. if test -z "$postdeps_CXX"; then
  11162. postdeps_CXX="${prev}${p}"
  11163. else
  11164. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11165. fi
  11166. fi
  11167. ;;
  11168. *.$objext)
  11169. # This assumes that the test object file only shows up
  11170. # once in the compiler output.
  11171. if test "$p" = "conftest.$objext"; then
  11172. pre_test_object_deps_done=yes
  11173. continue
  11174. fi
  11175. if test "$pre_test_object_deps_done" = no; then
  11176. if test -z "$predep_objects_CXX"; then
  11177. predep_objects_CXX="$p"
  11178. else
  11179. predep_objects_CXX="$predep_objects_CXX $p"
  11180. fi
  11181. else
  11182. if test -z "$postdep_objects_CXX"; then
  11183. postdep_objects_CXX="$p"
  11184. else
  11185. postdep_objects_CXX="$postdep_objects_CXX $p"
  11186. fi
  11187. fi
  11188. ;;
  11189. *) ;; # Ignore the rest.
  11190. esac
  11191. done
  11192. # Clean up.
  11193. rm -f a.out a.exe
  11194. else
  11195. echo "libtool.m4: error: problem compiling CXX test program"
  11196. fi
  11197. $rm -f confest.$objext
  11198. case " $postdeps_CXX " in
  11199. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11200. esac
  11201. lt_prog_compiler_wl_CXX=
  11202. lt_prog_compiler_pic_CXX=
  11203. lt_prog_compiler_static_CXX=
  11204. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11205. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  11206. # C++ specific cases for pic, static, wl, etc.
  11207. if test "$GXX" = yes; then
  11208. lt_prog_compiler_wl_CXX='-Wl,'
  11209. lt_prog_compiler_static_CXX='-static'
  11210. case $host_os in
  11211. aix*)
  11212. # All AIX code is PIC.
  11213. if test "$host_cpu" = ia64; then
  11214. # AIX 5 now supports IA64 processor
  11215. lt_prog_compiler_static_CXX='-Bstatic'
  11216. fi
  11217. ;;
  11218. amigaos*)
  11219. # FIXME: we need at least 68020 code to build shared libraries, but
  11220. # adding the `-m68020' flag to GCC prevents building anything better,
  11221. # like `-m68040'.
  11222. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11223. ;;
  11224. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11225. # PIC is the default for these OSes.
  11226. ;;
  11227. mingw* | os2* | pw32*)
  11228. # This hack is so that the source file can tell whether it is being
  11229. # built for inclusion in a dll (and should export symbols for example).
  11230. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11231. ;;
  11232. darwin* | rhapsody*)
  11233. # PIC is the default on this platform
  11234. # Common symbols not allowed in MH_DYLIB files
  11235. lt_prog_compiler_pic_CXX='-fno-common'
  11236. ;;
  11237. *djgpp*)
  11238. # DJGPP does not support shared libraries at all
  11239. lt_prog_compiler_pic_CXX=
  11240. ;;
  11241. sysv4*MP*)
  11242. if test -d /usr/nec; then
  11243. lt_prog_compiler_pic_CXX=-Kconform_pic
  11244. fi
  11245. ;;
  11246. hpux*)
  11247. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11248. # not for PA HP-UX.
  11249. case "$host_cpu" in
  11250. hppa*64*|ia64*)
  11251. ;;
  11252. *)
  11253. lt_prog_compiler_pic_CXX='-fPIC'
  11254. ;;
  11255. esac
  11256. ;;
  11257. *)
  11258. lt_prog_compiler_pic_CXX='-fPIC'
  11259. ;;
  11260. esac
  11261. else
  11262. case $host_os in
  11263. aix4* | aix5*)
  11264. # All AIX code is PIC.
  11265. if test "$host_cpu" = ia64; then
  11266. # AIX 5 now supports IA64 processor
  11267. lt_prog_compiler_static_CXX='-Bstatic'
  11268. else
  11269. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11270. fi
  11271. ;;
  11272. chorus*)
  11273. case $cc_basename in
  11274. cxch68)
  11275. # Green Hills C++ Compiler
  11276. # _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"
  11277. ;;
  11278. esac
  11279. ;;
  11280. dgux*)
  11281. case $cc_basename in
  11282. ec++)
  11283. lt_prog_compiler_pic_CXX='-KPIC'
  11284. ;;
  11285. ghcx)
  11286. # Green Hills C++ Compiler
  11287. lt_prog_compiler_pic_CXX='-pic'
  11288. ;;
  11289. *)
  11290. ;;
  11291. esac
  11292. ;;
  11293. freebsd* | kfreebsd*-gnu)
  11294. # FreeBSD uses GNU C++
  11295. ;;
  11296. hpux9* | hpux10* | hpux11*)
  11297. case $cc_basename in
  11298. CC)
  11299. lt_prog_compiler_wl_CXX='-Wl,'
  11300. lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  11301. if test "$host_cpu" != ia64; then
  11302. lt_prog_compiler_pic_CXX='+Z'
  11303. fi
  11304. ;;
  11305. aCC)
  11306. lt_prog_compiler_wl_CXX='-Wl,'
  11307. lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  11308. case "$host_cpu" in
  11309. hppa*64*|ia64*)
  11310. # +Z the default
  11311. ;;
  11312. *)
  11313. lt_prog_compiler_pic_CXX='+Z'
  11314. ;;
  11315. esac
  11316. ;;
  11317. *)
  11318. ;;
  11319. esac
  11320. ;;
  11321. irix5* | irix6* | nonstopux*)
  11322. case $cc_basename in
  11323. CC)
  11324. lt_prog_compiler_wl_CXX='-Wl,'
  11325. lt_prog_compiler_static_CXX='-non_shared'
  11326. # CC pic flag -KPIC is the default.
  11327. ;;
  11328. *)
  11329. ;;
  11330. esac
  11331. ;;
  11332. linux*)
  11333. case $cc_basename in
  11334. KCC)
  11335. # KAI C++ Compiler
  11336. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11337. lt_prog_compiler_pic_CXX='-fPIC'
  11338. ;;
  11339. icpc)
  11340. # Intel C++
  11341. lt_prog_compiler_wl_CXX='-Wl,'
  11342. lt_prog_compiler_pic_CXX='-KPIC'
  11343. lt_prog_compiler_static_CXX='-static'
  11344. ;;
  11345. cxx)
  11346. # Compaq C++
  11347. # Make sure the PIC flag is empty. It appears that all Alpha
  11348. # Linux and Compaq Tru64 Unix objects are PIC.
  11349. lt_prog_compiler_pic_CXX=
  11350. lt_prog_compiler_static_CXX='-non_shared'
  11351. ;;
  11352. *)
  11353. ;;
  11354. esac
  11355. ;;
  11356. lynxos*)
  11357. ;;
  11358. m88k*)
  11359. ;;
  11360. mvs*)
  11361. case $cc_basename in
  11362. cxx)
  11363. lt_prog_compiler_pic_CXX='-W c,exportall'
  11364. ;;
  11365. *)
  11366. ;;
  11367. esac
  11368. ;;
  11369. netbsd*)
  11370. ;;
  11371. osf3* | osf4* | osf5*)
  11372. case $cc_basename in
  11373. KCC)
  11374. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11375. ;;
  11376. RCC)
  11377. # Rational C++ 2.4.1
  11378. lt_prog_compiler_pic_CXX='-pic'
  11379. ;;
  11380. cxx)
  11381. # Digital/Compaq C++
  11382. lt_prog_compiler_wl_CXX='-Wl,'
  11383. # Make sure the PIC flag is empty. It appears that all Alpha
  11384. # Linux and Compaq Tru64 Unix objects are PIC.
  11385. lt_prog_compiler_pic_CXX=
  11386. lt_prog_compiler_static_CXX='-non_shared'
  11387. ;;
  11388. *)
  11389. ;;
  11390. esac
  11391. ;;
  11392. psos*)
  11393. ;;
  11394. sco*)
  11395. case $cc_basename in
  11396. CC)
  11397. lt_prog_compiler_pic_CXX='-fPIC'
  11398. ;;
  11399. *)
  11400. ;;
  11401. esac
  11402. ;;
  11403. solaris*)
  11404. case $cc_basename in
  11405. CC)
  11406. # Sun C++ 4.2, 5.x and Centerline C++
  11407. lt_prog_compiler_pic_CXX='-KPIC'
  11408. lt_prog_compiler_static_CXX='-Bstatic'
  11409. lt_prog_compiler_wl_CXX='-Qoption ld '
  11410. ;;
  11411. gcx)
  11412. # Green Hills C++ Compiler
  11413. lt_prog_compiler_pic_CXX='-PIC'
  11414. ;;
  11415. *)
  11416. ;;
  11417. esac
  11418. ;;
  11419. sunos4*)
  11420. case $cc_basename in
  11421. CC)
  11422. # Sun C++ 4.x
  11423. lt_prog_compiler_pic_CXX='-pic'
  11424. lt_prog_compiler_static_CXX='-Bstatic'
  11425. ;;
  11426. lcc)
  11427. # Lucid
  11428. lt_prog_compiler_pic_CXX='-pic'
  11429. ;;
  11430. *)
  11431. ;;
  11432. esac
  11433. ;;
  11434. tandem*)
  11435. case $cc_basename in
  11436. NCC)
  11437. # NonStop-UX NCC 3.20
  11438. lt_prog_compiler_pic_CXX='-KPIC'
  11439. ;;
  11440. *)
  11441. ;;
  11442. esac
  11443. ;;
  11444. unixware*)
  11445. ;;
  11446. vxworks*)
  11447. ;;
  11448. *)
  11449. lt_prog_compiler_can_build_shared_CXX=no
  11450. ;;
  11451. esac
  11452. fi
  11453. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  11454. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
  11455. #
  11456. # Check to make sure the PIC flag actually works.
  11457. #
  11458. if test -n "$lt_prog_compiler_pic_CXX"; then
  11459. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11460. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
  11461. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  11462. echo $ECHO_N "(cached) $ECHO_C" >&6
  11463. else
  11464. lt_prog_compiler_pic_works_CXX=no
  11465. ac_outfile=conftest.$ac_objext
  11466. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11467. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11468. # Insert the option either (1) after the last *FLAGS variable, or
  11469. # (2) before a word containing "conftest.", or (3) at the end.
  11470. # Note that $ac_compile itself does not contain backslashes and begins
  11471. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11472. # The option is referenced via a variable to avoid confusing sed.
  11473. lt_compile=`echo "$ac_compile" | $SED \
  11474. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  11475. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11476. -e 's:$: $lt_compiler_flag:'`
  11477. (eval echo "\"\$as_me:12669: $lt_compile\"" >&5)
  11478. (eval "$lt_compile" 2>conftest.err)
  11479. ac_status=$?
  11480. cat conftest.err >&5
  11481. echo "$as_me:12673: \$? = $ac_status" >&5
  11482. if (exit $ac_status) && test -s "$ac_outfile"; then
  11483. # The compiler can only warn and ignore the option if not recognized
  11484. # So say no if there are warnings
  11485. if test ! -s conftest.err; then
  11486. lt_prog_compiler_pic_works_CXX=yes
  11487. fi
  11488. fi
  11489. $rm conftest*
  11490. fi
  11491. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  11492. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
  11493. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  11494. case $lt_prog_compiler_pic_CXX in
  11495. "" | " "*) ;;
  11496. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11497. esac
  11498. else
  11499. lt_prog_compiler_pic_CXX=
  11500. lt_prog_compiler_can_build_shared_CXX=no
  11501. fi
  11502. fi
  11503. case "$host_os" in
  11504. # For platforms which do not support PIC, -DPIC is meaningless:
  11505. *djgpp*)
  11506. lt_prog_compiler_pic_CXX=
  11507. ;;
  11508. *)
  11509. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11510. ;;
  11511. esac
  11512. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  11513. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  11514. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  11515. echo $ECHO_N "(cached) $ECHO_C" >&6
  11516. else
  11517. lt_cv_prog_compiler_c_o_CXX=no
  11518. $rm -r conftest 2>/dev/null
  11519. mkdir conftest
  11520. cd conftest
  11521. mkdir out
  11522. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11523. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11524. # Insert the option either (1) after the last *FLAGS variable, or
  11525. # (2) before a word containing "conftest.", or (3) at the end.
  11526. # Note that $ac_compile itself does not contain backslashes and begins
  11527. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11528. lt_compile=`echo "$ac_compile" | $SED \
  11529. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  11530. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11531. -e 's:$: $lt_compiler_flag:'`
  11532. (eval echo "\"\$as_me:12729: $lt_compile\"" >&5)
  11533. (eval "$lt_compile" 2>out/conftest.err)
  11534. ac_status=$?
  11535. cat out/conftest.err >&5
  11536. echo "$as_me:12733: \$? = $ac_status" >&5
  11537. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11538. then
  11539. # The compiler can only warn and ignore the option if not recognized
  11540. # So say no if there are warnings
  11541. if test ! -s out/conftest.err; then
  11542. lt_cv_prog_compiler_c_o_CXX=yes
  11543. fi
  11544. fi
  11545. chmod u+w .
  11546. $rm conftest*
  11547. # SGI C++ compiler will create directory out/ii_files/ for
  11548. # template instantiation
  11549. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  11550. $rm out/* && rmdir out
  11551. cd ..
  11552. rmdir conftest
  11553. $rm conftest*
  11554. fi
  11555. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11556. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
  11557. hard_links="nottested"
  11558. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11559. # do not overwrite the value of need_locks provided by the user
  11560. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  11561. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  11562. hard_links=yes
  11563. $rm conftest*
  11564. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11565. touch conftest.a
  11566. ln conftest.a conftest.b 2>&5 || hard_links=no
  11567. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11568. echo "$as_me:$LINENO: result: $hard_links" >&5
  11569. echo "${ECHO_T}$hard_links" >&6
  11570. if test "$hard_links" = no; then
  11571. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11572. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11573. need_locks=warn
  11574. fi
  11575. else
  11576. need_locks=no
  11577. fi
  11578. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11579. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  11580. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11581. case $host_os in
  11582. aix4* | aix5*)
  11583. # If we're using GNU nm, then we don't want the "-C" option.
  11584. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11585. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11586. 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'
  11587. else
  11588. 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'
  11589. fi
  11590. ;;
  11591. pw32*)
  11592. export_symbols_cmds_CXX="$ltdll_cmds"
  11593. ;;
  11594. cygwin* | mingw*)
  11595. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  11596. ;;
  11597. *)
  11598. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11599. ;;
  11600. esac
  11601. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11602. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  11603. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11604. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11605. if test "$GCC" = yes; then
  11606. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11607. fi
  11608. #
  11609. # Do we need to explicitly link libc?
  11610. #
  11611. case "x$archive_cmds_need_lc_CXX" in
  11612. x|xyes)
  11613. # Assume -lc should be added
  11614. archive_cmds_need_lc_CXX=yes
  11615. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11616. case $archive_cmds_CXX in
  11617. *'~'*)
  11618. # FIXME: we may have to deal with multi-command sequences.
  11619. ;;
  11620. '$CC '*)
  11621. # Test whether the compiler implicitly links with -lc since on some
  11622. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11623. # to ld, don't add -lc before -lgcc.
  11624. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  11625. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  11626. $rm conftest*
  11627. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11628. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11629. (eval $ac_compile) 2>&5
  11630. ac_status=$?
  11631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11632. (exit $ac_status); } 2>conftest.err; then
  11633. soname=conftest
  11634. lib=conftest
  11635. libobjs=conftest.$ac_objext
  11636. deplibs=
  11637. wl=$lt_prog_compiler_wl_CXX
  11638. compiler_flags=-v
  11639. linker_flags=-v
  11640. verstring=
  11641. output_objdir=.
  11642. libname=conftest
  11643. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11644. allow_undefined_flag_CXX=
  11645. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  11646. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11647. ac_status=$?
  11648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11649. (exit $ac_status); }
  11650. then
  11651. archive_cmds_need_lc_CXX=no
  11652. else
  11653. archive_cmds_need_lc_CXX=yes
  11654. fi
  11655. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11656. else
  11657. cat conftest.err 1>&5
  11658. fi
  11659. $rm conftest*
  11660. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  11661. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
  11662. ;;
  11663. esac
  11664. fi
  11665. ;;
  11666. esac
  11667. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  11668. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  11669. library_names_spec=
  11670. libname_spec='lib$name'
  11671. soname_spec=
  11672. shrext=".so"
  11673. postinstall_cmds=
  11674. postuninstall_cmds=
  11675. finish_cmds=
  11676. finish_eval=
  11677. shlibpath_var=
  11678. shlibpath_overrides_runpath=unknown
  11679. version_type=none
  11680. dynamic_linker="$host_os ld.so"
  11681. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11682. if test "$GCC" = yes; then
  11683. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11684. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  11685. # if the path contains ";" then we assume it to be the separator
  11686. # otherwise default to the standard path separator (i.e. ":") - it is
  11687. # assumed that no part of a normal pathname contains ";" but that should
  11688. # okay in the real world where ";" in dirpaths is itself problematic.
  11689. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11690. else
  11691. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11692. fi
  11693. else
  11694. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11695. fi
  11696. need_lib_prefix=unknown
  11697. hardcode_into_libs=no
  11698. # when you set need_version to no, make sure it does not cause -set_version
  11699. # flags to be left without arguments
  11700. need_version=unknown
  11701. case $host_os in
  11702. aix3*)
  11703. version_type=linux
  11704. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11705. shlibpath_var=LIBPATH
  11706. # AIX 3 has no versioning support, so we append a major version to the name.
  11707. soname_spec='${libname}${release}${shared_ext}$major'
  11708. ;;
  11709. aix4* | aix5*)
  11710. version_type=linux
  11711. need_lib_prefix=no
  11712. need_version=no
  11713. hardcode_into_libs=yes
  11714. if test "$host_cpu" = ia64; then
  11715. # AIX 5 supports IA64
  11716. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11717. shlibpath_var=LD_LIBRARY_PATH
  11718. else
  11719. # With GCC up to 2.95.x, collect2 would create an import file
  11720. # for dependence libraries. The import file would start with
  11721. # the line `#! .'. This would cause the generated library to
  11722. # depend on `.', always an invalid library. This was fixed in
  11723. # development snapshots of GCC prior to 3.0.
  11724. case $host_os in
  11725. aix4 | aix4.[01] | aix4.[01].*)
  11726. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11727. echo ' yes '
  11728. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  11729. :
  11730. else
  11731. can_build_shared=no
  11732. fi
  11733. ;;
  11734. esac
  11735. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11736. # soname into executable. Probably we can add versioning support to
  11737. # collect2, so additional links can be useful in future.
  11738. if test "$aix_use_runtimelinking" = yes; then
  11739. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11740. # instead of lib<name>.a to let people know that these are not
  11741. # typical AIX shared libraries.
  11742. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11743. else
  11744. # We preserve .a as extension for shared libraries through AIX4.2
  11745. # and later when we are not doing run time linking.
  11746. library_names_spec='${libname}${release}.a $libname.a'
  11747. soname_spec='${libname}${release}${shared_ext}$major'
  11748. fi
  11749. shlibpath_var=LIBPATH
  11750. fi
  11751. ;;
  11752. amigaos*)
  11753. library_names_spec='$libname.ixlibrary $libname.a'
  11754. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11755. 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'
  11756. ;;
  11757. beos*)
  11758. library_names_spec='${libname}${shared_ext}'
  11759. dynamic_linker="$host_os ld.so"
  11760. shlibpath_var=LIBRARY_PATH
  11761. ;;
  11762. bsdi4*)
  11763. version_type=linux
  11764. need_version=no
  11765. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11766. soname_spec='${libname}${release}${shared_ext}$major'
  11767. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11768. shlibpath_var=LD_LIBRARY_PATH
  11769. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11770. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11771. # the default ld.so.conf also contains /usr/contrib/lib and
  11772. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11773. # libtool to hard-code these into programs
  11774. ;;
  11775. cygwin* | mingw* | pw32*)
  11776. version_type=windows
  11777. shrext=".dll"
  11778. need_version=no
  11779. need_lib_prefix=no
  11780. case $GCC,$host_os in
  11781. yes,cygwin* | yes,mingw* | yes,pw32*)
  11782. library_names_spec='$libname.dll.a'
  11783. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11784. postinstall_cmds='base_file=`basename \${file}`~
  11785. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  11786. dldir=$destdir/`dirname \$dlpath`~
  11787. test -d \$dldir || mkdir -p \$dldir~
  11788. $install_prog $dir/$dlname \$dldir/$dlname'
  11789. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11790. dlpath=$dir/\$dldll~
  11791. $rm \$dlpath'
  11792. shlibpath_overrides_runpath=yes
  11793. case $host_os in
  11794. cygwin*)
  11795. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11796. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11797. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11798. ;;
  11799. mingw*)
  11800. # MinGW DLLs use traditional 'lib' prefix
  11801. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11802. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11803. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  11804. # It is most probably a Windows format PATH printed by
  11805. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11806. # path with ; separators, and with drive letters. We can handle the
  11807. # drive letters (cygwin fileutils understands them), so leave them,
  11808. # especially as we might pass files found there to a mingw objdump,
  11809. # which wouldn't understand a cygwinified path. Ahh.
  11810. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11811. else
  11812. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11813. fi
  11814. ;;
  11815. pw32*)
  11816. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11817. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  11818. ;;
  11819. esac
  11820. ;;
  11821. *)
  11822. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11823. ;;
  11824. esac
  11825. dynamic_linker='Win32 ld.exe'
  11826. # FIXME: first we should search . and the directory the executable is in
  11827. shlibpath_var=PATH
  11828. ;;
  11829. darwin* | rhapsody*)
  11830. dynamic_linker="$host_os dyld"
  11831. version_type=darwin
  11832. need_lib_prefix=no
  11833. need_version=no
  11834. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11835. soname_spec='${libname}${release}${major}$shared_ext'
  11836. shlibpath_overrides_runpath=yes
  11837. shlibpath_var=DYLD_LIBRARY_PATH
  11838. shrext='$(test .$module = .yes && echo .so || echo .dylib)'
  11839. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  11840. if test "$GCC" = yes; then
  11841. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  11842. else
  11843. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  11844. fi
  11845. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11846. ;;
  11847. dgux*)
  11848. version_type=linux
  11849. need_lib_prefix=no
  11850. need_version=no
  11851. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11852. soname_spec='${libname}${release}${shared_ext}$major'
  11853. shlibpath_var=LD_LIBRARY_PATH
  11854. ;;
  11855. freebsd1*)
  11856. dynamic_linker=no
  11857. ;;
  11858. kfreebsd*-gnu)
  11859. version_type=linux
  11860. need_lib_prefix=no
  11861. need_version=no
  11862. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11863. soname_spec='${libname}${release}${shared_ext}$major'
  11864. shlibpath_var=LD_LIBRARY_PATH
  11865. shlibpath_overrides_runpath=no
  11866. hardcode_into_libs=yes
  11867. dynamic_linker='GNU ld.so'
  11868. ;;
  11869. freebsd*)
  11870. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  11871. version_type=freebsd-$objformat
  11872. case $version_type in
  11873. freebsd-elf*)
  11874. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11875. need_version=no
  11876. need_lib_prefix=no
  11877. ;;
  11878. freebsd-*)
  11879. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11880. need_version=yes
  11881. ;;
  11882. esac
  11883. shlibpath_var=LD_LIBRARY_PATH
  11884. case $host_os in
  11885. freebsd2*)
  11886. shlibpath_overrides_runpath=yes
  11887. ;;
  11888. freebsd3.01* | freebsdelf3.01*)
  11889. shlibpath_overrides_runpath=yes
  11890. hardcode_into_libs=yes
  11891. ;;
  11892. *) # from 3.2 on
  11893. shlibpath_overrides_runpath=no
  11894. hardcode_into_libs=yes
  11895. ;;
  11896. esac
  11897. ;;
  11898. gnu*)
  11899. version_type=linux
  11900. need_lib_prefix=no
  11901. need_version=no
  11902. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11903. soname_spec='${libname}${release}${shared_ext}$major'
  11904. shlibpath_var=LD_LIBRARY_PATH
  11905. hardcode_into_libs=yes
  11906. ;;
  11907. hpux9* | hpux10* | hpux11*)
  11908. # Give a soname corresponding to the major version so that dld.sl refuses to
  11909. # link against other versions.
  11910. version_type=sunos
  11911. need_lib_prefix=no
  11912. need_version=no
  11913. case "$host_cpu" in
  11914. ia64*)
  11915. shrext='.so'
  11916. hardcode_into_libs=yes
  11917. dynamic_linker="$host_os dld.so"
  11918. shlibpath_var=LD_LIBRARY_PATH
  11919. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11920. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11921. soname_spec='${libname}${release}${shared_ext}$major'
  11922. if test "X$HPUX_IA64_MODE" = X32; then
  11923. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11924. else
  11925. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11926. fi
  11927. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11928. ;;
  11929. hppa*64*)
  11930. shrext='.sl'
  11931. hardcode_into_libs=yes
  11932. dynamic_linker="$host_os dld.sl"
  11933. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11934. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11935. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11936. soname_spec='${libname}${release}${shared_ext}$major'
  11937. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11938. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11939. ;;
  11940. *)
  11941. shrext='.sl'
  11942. dynamic_linker="$host_os dld.sl"
  11943. shlibpath_var=SHLIB_PATH
  11944. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11945. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11946. soname_spec='${libname}${release}${shared_ext}$major'
  11947. ;;
  11948. esac
  11949. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11950. postinstall_cmds='chmod 555 $lib'
  11951. ;;
  11952. irix5* | irix6* | nonstopux*)
  11953. case $host_os in
  11954. nonstopux*) version_type=nonstopux ;;
  11955. *)
  11956. if test "$lt_cv_prog_gnu_ld" = yes; then
  11957. version_type=linux
  11958. else
  11959. version_type=irix
  11960. fi ;;
  11961. esac
  11962. need_lib_prefix=no
  11963. need_version=no
  11964. soname_spec='${libname}${release}${shared_ext}$major'
  11965. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11966. case $host_os in
  11967. irix5* | nonstopux*)
  11968. libsuff= shlibsuff=
  11969. ;;
  11970. *)
  11971. case $LD in # libtool.m4 will add one of these switches to LD
  11972. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11973. libsuff= shlibsuff= libmagic=32-bit;;
  11974. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11975. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11976. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11977. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11978. *) libsuff= shlibsuff= libmagic=never-match;;
  11979. esac
  11980. ;;
  11981. esac
  11982. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11983. shlibpath_overrides_runpath=no
  11984. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11985. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11986. hardcode_into_libs=yes
  11987. ;;
  11988. # No shared lib support for Linux oldld, aout, or coff.
  11989. linux*oldld* | linux*aout* | linux*coff*)
  11990. dynamic_linker=no
  11991. ;;
  11992. # This must be Linux ELF.
  11993. linux*)
  11994. version_type=linux
  11995. need_lib_prefix=no
  11996. need_version=no
  11997. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11998. soname_spec='${libname}${release}${shared_ext}$major'
  11999. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12000. shlibpath_var=LD_LIBRARY_PATH
  12001. shlibpath_overrides_runpath=no
  12002. # This implies no fast_install, which is unacceptable.
  12003. # Some rework will be needed to allow for fast_install
  12004. # before this can be enabled.
  12005. hardcode_into_libs=yes
  12006. # Append ld.so.conf contents to the search path
  12007. if test -f /etc/ld.so.conf; then
  12008. ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
  12009. sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
  12010. fi
  12011. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12012. # powerpc, because MkLinux only supported shared libraries with the
  12013. # GNU dynamic linker. Since this was broken with cross compilers,
  12014. # most powerpc-linux boxes support dynamic linking these days and
  12015. # people can always --disable-shared, the test was removed, and we
  12016. # assume the GNU/Linux dynamic linker is in use.
  12017. dynamic_linker='GNU/Linux ld.so'
  12018. ;;
  12019. knetbsd*-gnu)
  12020. version_type=linux
  12021. need_lib_prefix=no
  12022. need_version=no
  12023. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12024. soname_spec='${libname}${release}${shared_ext}$major'
  12025. shlibpath_var=LD_LIBRARY_PATH
  12026. shlibpath_overrides_runpath=no
  12027. hardcode_into_libs=yes
  12028. dynamic_linker='GNU ld.so'
  12029. ;;
  12030. netbsd*)
  12031. version_type=sunos
  12032. need_lib_prefix=no
  12033. need_version=no
  12034. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12035. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12036. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12037. dynamic_linker='NetBSD (a.out) ld.so'
  12038. else
  12039. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12040. soname_spec='${libname}${release}${shared_ext}$major'
  12041. dynamic_linker='NetBSD ld.elf_so'
  12042. fi
  12043. shlibpath_var=LD_LIBRARY_PATH
  12044. shlibpath_overrides_runpath=yes
  12045. hardcode_into_libs=yes
  12046. ;;
  12047. newsos6)
  12048. version_type=linux
  12049. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12050. shlibpath_var=LD_LIBRARY_PATH
  12051. shlibpath_overrides_runpath=yes
  12052. ;;
  12053. nto-qnx*)
  12054. version_type=linux
  12055. need_lib_prefix=no
  12056. need_version=no
  12057. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12058. soname_spec='${libname}${release}${shared_ext}$major'
  12059. shlibpath_var=LD_LIBRARY_PATH
  12060. shlibpath_overrides_runpath=yes
  12061. ;;
  12062. openbsd*)
  12063. version_type=sunos
  12064. need_lib_prefix=no
  12065. need_version=yes
  12066. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12067. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12068. shlibpath_var=LD_LIBRARY_PATH
  12069. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12070. case $host_os in
  12071. openbsd2.[89] | openbsd2.[89].*)
  12072. shlibpath_overrides_runpath=no
  12073. ;;
  12074. *)
  12075. shlibpath_overrides_runpath=yes
  12076. ;;
  12077. esac
  12078. else
  12079. shlibpath_overrides_runpath=yes
  12080. fi
  12081. ;;
  12082. os2*)
  12083. libname_spec='$name'
  12084. shrext=".dll"
  12085. need_lib_prefix=no
  12086. library_names_spec='$libname${shared_ext} $libname.a'
  12087. dynamic_linker='OS/2 ld.exe'
  12088. shlibpath_var=LIBPATH
  12089. ;;
  12090. osf3* | osf4* | osf5*)
  12091. version_type=osf
  12092. need_lib_prefix=no
  12093. need_version=no
  12094. soname_spec='${libname}${release}${shared_ext}$major'
  12095. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12096. shlibpath_var=LD_LIBRARY_PATH
  12097. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12098. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12099. ;;
  12100. sco3.2v5*)
  12101. version_type=osf
  12102. soname_spec='${libname}${release}${shared_ext}$major'
  12103. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12104. shlibpath_var=LD_LIBRARY_PATH
  12105. ;;
  12106. solaris*)
  12107. version_type=linux
  12108. need_lib_prefix=no
  12109. need_version=no
  12110. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12111. soname_spec='${libname}${release}${shared_ext}$major'
  12112. shlibpath_var=LD_LIBRARY_PATH
  12113. shlibpath_overrides_runpath=yes
  12114. hardcode_into_libs=yes
  12115. # ldd complains unless libraries are executable
  12116. postinstall_cmds='chmod +x $lib'
  12117. ;;
  12118. sunos4*)
  12119. version_type=sunos
  12120. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12121. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12122. shlibpath_var=LD_LIBRARY_PATH
  12123. shlibpath_overrides_runpath=yes
  12124. if test "$with_gnu_ld" = yes; then
  12125. need_lib_prefix=no
  12126. fi
  12127. need_version=yes
  12128. ;;
  12129. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  12130. version_type=linux
  12131. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12132. soname_spec='${libname}${release}${shared_ext}$major'
  12133. shlibpath_var=LD_LIBRARY_PATH
  12134. case $host_vendor in
  12135. sni)
  12136. shlibpath_overrides_runpath=no
  12137. need_lib_prefix=no
  12138. export_dynamic_flag_spec='${wl}-Blargedynsym'
  12139. runpath_var=LD_RUN_PATH
  12140. ;;
  12141. siemens)
  12142. need_lib_prefix=no
  12143. ;;
  12144. motorola)
  12145. need_lib_prefix=no
  12146. need_version=no
  12147. shlibpath_overrides_runpath=no
  12148. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12149. ;;
  12150. esac
  12151. ;;
  12152. sysv4*MP*)
  12153. if test -d /usr/nec ;then
  12154. version_type=linux
  12155. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12156. soname_spec='$libname${shared_ext}.$major'
  12157. shlibpath_var=LD_LIBRARY_PATH
  12158. fi
  12159. ;;
  12160. uts4*)
  12161. version_type=linux
  12162. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12163. soname_spec='${libname}${release}${shared_ext}$major'
  12164. shlibpath_var=LD_LIBRARY_PATH
  12165. ;;
  12166. *)
  12167. dynamic_linker=no
  12168. ;;
  12169. esac
  12170. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  12171. echo "${ECHO_T}$dynamic_linker" >&6
  12172. test "$dynamic_linker" = no && can_build_shared=no
  12173. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  12174. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  12175. hardcode_action_CXX=
  12176. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  12177. test -n "$runpath_var CXX" || \
  12178. test "X$hardcode_automatic_CXX"="Xyes" ; then
  12179. # We can hardcode non-existant directories.
  12180. if test "$hardcode_direct_CXX" != no &&
  12181. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12182. # have to relink, otherwise we might link with an installed library
  12183. # when we should be linking with a yet-to-be-installed one
  12184. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12185. test "$hardcode_minus_L_CXX" != no; then
  12186. # Linking always hardcodes the temporary library directory.
  12187. hardcode_action_CXX=relink
  12188. else
  12189. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12190. hardcode_action_CXX=immediate
  12191. fi
  12192. else
  12193. # We cannot hardcode anything, or else we can only hardcode existing
  12194. # directories.
  12195. hardcode_action_CXX=unsupported
  12196. fi
  12197. echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  12198. echo "${ECHO_T}$hardcode_action_CXX" >&6
  12199. if test "$hardcode_action_CXX" = relink; then
  12200. # Fast installation is not supported
  12201. enable_fast_install=no
  12202. elif test "$shlibpath_overrides_runpath" = yes ||
  12203. test "$enable_shared" = no; then
  12204. # Fast installation is not necessary
  12205. enable_fast_install=needless
  12206. fi
  12207. striplib=
  12208. old_striplib=
  12209. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  12210. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  12211. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  12212. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  12213. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  12214. echo "$as_me:$LINENO: result: yes" >&5
  12215. echo "${ECHO_T}yes" >&6
  12216. else
  12217. # FIXME - insert some real tests, host_os isn't really good enough
  12218. case $host_os in
  12219. darwin*)
  12220. if test -n "$STRIP" ; then
  12221. striplib="$STRIP -x"
  12222. echo "$as_me:$LINENO: result: yes" >&5
  12223. echo "${ECHO_T}yes" >&6
  12224. else
  12225. echo "$as_me:$LINENO: result: no" >&5
  12226. echo "${ECHO_T}no" >&6
  12227. fi
  12228. ;;
  12229. *)
  12230. echo "$as_me:$LINENO: result: no" >&5
  12231. echo "${ECHO_T}no" >&6
  12232. ;;
  12233. esac
  12234. fi
  12235. if test "x$enable_dlopen" != xyes; then
  12236. enable_dlopen=unknown
  12237. enable_dlopen_self=unknown
  12238. enable_dlopen_self_static=unknown
  12239. else
  12240. lt_cv_dlopen=no
  12241. lt_cv_dlopen_libs=
  12242. case $host_os in
  12243. beos*)
  12244. lt_cv_dlopen="load_add_on"
  12245. lt_cv_dlopen_libs=
  12246. lt_cv_dlopen_self=yes
  12247. ;;
  12248. mingw* | pw32*)
  12249. lt_cv_dlopen="LoadLibrary"
  12250. lt_cv_dlopen_libs=
  12251. ;;
  12252. cygwin*)
  12253. lt_cv_dlopen="dlopen"
  12254. lt_cv_dlopen_libs=
  12255. ;;
  12256. darwin*)
  12257. # if libdl is installed we need to link against it
  12258. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  12259. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  12260. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  12261. echo $ECHO_N "(cached) $ECHO_C" >&6
  12262. else
  12263. ac_check_lib_save_LIBS=$LIBS
  12264. LIBS="-ldl $LIBS"
  12265. cat >conftest.$ac_ext <<_ACEOF
  12266. /* confdefs.h. */
  12267. _ACEOF
  12268. cat confdefs.h >>conftest.$ac_ext
  12269. cat >>conftest.$ac_ext <<_ACEOF
  12270. /* end confdefs.h. */
  12271. /* Override any gcc2 internal prototype to avoid an error. */
  12272. #ifdef __cplusplus
  12273. extern "C"
  12274. #endif
  12275. /* We use char because int might match the return type of a gcc2
  12276. builtin and then its argument prototype would still apply. */
  12277. char dlopen ();
  12278. int
  12279. main ()
  12280. {
  12281. dlopen ();
  12282. ;
  12283. return 0;
  12284. }
  12285. _ACEOF
  12286. rm -f conftest.$ac_objext conftest$ac_exeext
  12287. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12288. (eval $ac_link) 2>conftest.er1
  12289. ac_status=$?
  12290. grep -v '^ *+' conftest.er1 >conftest.err
  12291. rm -f conftest.er1
  12292. cat conftest.err >&5
  12293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12294. (exit $ac_status); } &&
  12295. { ac_try='test -z "$ac_cxx_werror_flag"
  12296. || test ! -s conftest.err'
  12297. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12298. (eval $ac_try) 2>&5
  12299. ac_status=$?
  12300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12301. (exit $ac_status); }; } &&
  12302. { ac_try='test -s conftest$ac_exeext'
  12303. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12304. (eval $ac_try) 2>&5
  12305. ac_status=$?
  12306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12307. (exit $ac_status); }; }; then
  12308. ac_cv_lib_dl_dlopen=yes
  12309. else
  12310. echo "$as_me: failed program was:" >&5
  12311. sed 's/^/| /' conftest.$ac_ext >&5
  12312. ac_cv_lib_dl_dlopen=no
  12313. fi
  12314. rm -f conftest.err conftest.$ac_objext \
  12315. conftest$ac_exeext conftest.$ac_ext
  12316. LIBS=$ac_check_lib_save_LIBS
  12317. fi
  12318. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  12319. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  12320. if test $ac_cv_lib_dl_dlopen = yes; then
  12321. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  12322. else
  12323. lt_cv_dlopen="dyld"
  12324. lt_cv_dlopen_libs=
  12325. lt_cv_dlopen_self=yes
  12326. fi
  12327. ;;
  12328. *)
  12329. echo "$as_me:$LINENO: checking for shl_load" >&5
  12330. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  12331. if test "${ac_cv_func_shl_load+set}" = set; then
  12332. echo $ECHO_N "(cached) $ECHO_C" >&6
  12333. else
  12334. cat >conftest.$ac_ext <<_ACEOF
  12335. /* confdefs.h. */
  12336. _ACEOF
  12337. cat confdefs.h >>conftest.$ac_ext
  12338. cat >>conftest.$ac_ext <<_ACEOF
  12339. /* end confdefs.h. */
  12340. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  12341. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12342. #define shl_load innocuous_shl_load
  12343. /* System header to define __stub macros and hopefully few prototypes,
  12344. which can conflict with char shl_load (); below.
  12345. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12346. <limits.h> exists even on freestanding compilers. */
  12347. #ifdef __STDC__
  12348. # include <limits.h>
  12349. #else
  12350. # include <assert.h>
  12351. #endif
  12352. #undef shl_load
  12353. /* Override any gcc2 internal prototype to avoid an error. */
  12354. #ifdef __cplusplus
  12355. extern "C"
  12356. {
  12357. #endif
  12358. /* We use char because int might match the return type of a gcc2
  12359. builtin and then its argument prototype would still apply. */
  12360. char shl_load ();
  12361. /* The GNU C library defines this for functions which it implements
  12362. to always fail with ENOSYS. Some functions are actually named
  12363. something starting with __ and the normal name is an alias. */
  12364. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  12365. choke me
  12366. #else
  12367. char (*f) () = shl_load;
  12368. #endif
  12369. #ifdef __cplusplus
  12370. }
  12371. #endif
  12372. int
  12373. main ()
  12374. {
  12375. return f != shl_load;
  12376. ;
  12377. return 0;
  12378. }
  12379. _ACEOF
  12380. rm -f conftest.$ac_objext conftest$ac_exeext
  12381. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12382. (eval $ac_link) 2>conftest.er1
  12383. ac_status=$?
  12384. grep -v '^ *+' conftest.er1 >conftest.err
  12385. rm -f conftest.er1
  12386. cat conftest.err >&5
  12387. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12388. (exit $ac_status); } &&
  12389. { ac_try='test -z "$ac_cxx_werror_flag"
  12390. || test ! -s conftest.err'
  12391. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12392. (eval $ac_try) 2>&5
  12393. ac_status=$?
  12394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12395. (exit $ac_status); }; } &&
  12396. { ac_try='test -s conftest$ac_exeext'
  12397. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12398. (eval $ac_try) 2>&5
  12399. ac_status=$?
  12400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12401. (exit $ac_status); }; }; then
  12402. ac_cv_func_shl_load=yes
  12403. else
  12404. echo "$as_me: failed program was:" >&5
  12405. sed 's/^/| /' conftest.$ac_ext >&5
  12406. ac_cv_func_shl_load=no
  12407. fi
  12408. rm -f conftest.err conftest.$ac_objext \
  12409. conftest$ac_exeext conftest.$ac_ext
  12410. fi
  12411. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  12412. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  12413. if test $ac_cv_func_shl_load = yes; then
  12414. lt_cv_dlopen="shl_load"
  12415. else
  12416. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  12417. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  12418. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  12419. echo $ECHO_N "(cached) $ECHO_C" >&6
  12420. else
  12421. ac_check_lib_save_LIBS=$LIBS
  12422. LIBS="-ldld $LIBS"
  12423. cat >conftest.$ac_ext <<_ACEOF
  12424. /* confdefs.h. */
  12425. _ACEOF
  12426. cat confdefs.h >>conftest.$ac_ext
  12427. cat >>conftest.$ac_ext <<_ACEOF
  12428. /* end confdefs.h. */
  12429. /* Override any gcc2 internal prototype to avoid an error. */
  12430. #ifdef __cplusplus
  12431. extern "C"
  12432. #endif
  12433. /* We use char because int might match the return type of a gcc2
  12434. builtin and then its argument prototype would still apply. */
  12435. char shl_load ();
  12436. int
  12437. main ()
  12438. {
  12439. shl_load ();
  12440. ;
  12441. return 0;
  12442. }
  12443. _ACEOF
  12444. rm -f conftest.$ac_objext conftest$ac_exeext
  12445. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12446. (eval $ac_link) 2>conftest.er1
  12447. ac_status=$?
  12448. grep -v '^ *+' conftest.er1 >conftest.err
  12449. rm -f conftest.er1
  12450. cat conftest.err >&5
  12451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12452. (exit $ac_status); } &&
  12453. { ac_try='test -z "$ac_cxx_werror_flag"
  12454. || test ! -s conftest.err'
  12455. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12456. (eval $ac_try) 2>&5
  12457. ac_status=$?
  12458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12459. (exit $ac_status); }; } &&
  12460. { ac_try='test -s conftest$ac_exeext'
  12461. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12462. (eval $ac_try) 2>&5
  12463. ac_status=$?
  12464. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12465. (exit $ac_status); }; }; then
  12466. ac_cv_lib_dld_shl_load=yes
  12467. else
  12468. echo "$as_me: failed program was:" >&5
  12469. sed 's/^/| /' conftest.$ac_ext >&5
  12470. ac_cv_lib_dld_shl_load=no
  12471. fi
  12472. rm -f conftest.err conftest.$ac_objext \
  12473. conftest$ac_exeext conftest.$ac_ext
  12474. LIBS=$ac_check_lib_save_LIBS
  12475. fi
  12476. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  12477. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  12478. if test $ac_cv_lib_dld_shl_load = yes; then
  12479. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  12480. else
  12481. echo "$as_me:$LINENO: checking for dlopen" >&5
  12482. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  12483. if test "${ac_cv_func_dlopen+set}" = set; then
  12484. echo $ECHO_N "(cached) $ECHO_C" >&6
  12485. else
  12486. cat >conftest.$ac_ext <<_ACEOF
  12487. /* confdefs.h. */
  12488. _ACEOF
  12489. cat confdefs.h >>conftest.$ac_ext
  12490. cat >>conftest.$ac_ext <<_ACEOF
  12491. /* end confdefs.h. */
  12492. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  12493. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12494. #define dlopen innocuous_dlopen
  12495. /* System header to define __stub macros and hopefully few prototypes,
  12496. which can conflict with char dlopen (); below.
  12497. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12498. <limits.h> exists even on freestanding compilers. */
  12499. #ifdef __STDC__
  12500. # include <limits.h>
  12501. #else
  12502. # include <assert.h>
  12503. #endif
  12504. #undef dlopen
  12505. /* Override any gcc2 internal prototype to avoid an error. */
  12506. #ifdef __cplusplus
  12507. extern "C"
  12508. {
  12509. #endif
  12510. /* We use char because int might match the return type of a gcc2
  12511. builtin and then its argument prototype would still apply. */
  12512. char dlopen ();
  12513. /* The GNU C library defines this for functions which it implements
  12514. to always fail with ENOSYS. Some functions are actually named
  12515. something starting with __ and the normal name is an alias. */
  12516. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  12517. choke me
  12518. #else
  12519. char (*f) () = dlopen;
  12520. #endif
  12521. #ifdef __cplusplus
  12522. }
  12523. #endif
  12524. int
  12525. main ()
  12526. {
  12527. return f != dlopen;
  12528. ;
  12529. return 0;
  12530. }
  12531. _ACEOF
  12532. rm -f conftest.$ac_objext conftest$ac_exeext
  12533. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12534. (eval $ac_link) 2>conftest.er1
  12535. ac_status=$?
  12536. grep -v '^ *+' conftest.er1 >conftest.err
  12537. rm -f conftest.er1
  12538. cat conftest.err >&5
  12539. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12540. (exit $ac_status); } &&
  12541. { ac_try='test -z "$ac_cxx_werror_flag"
  12542. || test ! -s conftest.err'
  12543. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12544. (eval $ac_try) 2>&5
  12545. ac_status=$?
  12546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12547. (exit $ac_status); }; } &&
  12548. { ac_try='test -s conftest$ac_exeext'
  12549. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12550. (eval $ac_try) 2>&5
  12551. ac_status=$?
  12552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12553. (exit $ac_status); }; }; then
  12554. ac_cv_func_dlopen=yes
  12555. else
  12556. echo "$as_me: failed program was:" >&5
  12557. sed 's/^/| /' conftest.$ac_ext >&5
  12558. ac_cv_func_dlopen=no
  12559. fi
  12560. rm -f conftest.err conftest.$ac_objext \
  12561. conftest$ac_exeext conftest.$ac_ext
  12562. fi
  12563. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  12564. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  12565. if test $ac_cv_func_dlopen = yes; then
  12566. lt_cv_dlopen="dlopen"
  12567. else
  12568. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  12569. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  12570. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  12571. echo $ECHO_N "(cached) $ECHO_C" >&6
  12572. else
  12573. ac_check_lib_save_LIBS=$LIBS
  12574. LIBS="-ldl $LIBS"
  12575. cat >conftest.$ac_ext <<_ACEOF
  12576. /* confdefs.h. */
  12577. _ACEOF
  12578. cat confdefs.h >>conftest.$ac_ext
  12579. cat >>conftest.$ac_ext <<_ACEOF
  12580. /* end confdefs.h. */
  12581. /* Override any gcc2 internal prototype to avoid an error. */
  12582. #ifdef __cplusplus
  12583. extern "C"
  12584. #endif
  12585. /* We use char because int might match the return type of a gcc2
  12586. builtin and then its argument prototype would still apply. */
  12587. char dlopen ();
  12588. int
  12589. main ()
  12590. {
  12591. dlopen ();
  12592. ;
  12593. return 0;
  12594. }
  12595. _ACEOF
  12596. rm -f conftest.$ac_objext conftest$ac_exeext
  12597. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12598. (eval $ac_link) 2>conftest.er1
  12599. ac_status=$?
  12600. grep -v '^ *+' conftest.er1 >conftest.err
  12601. rm -f conftest.er1
  12602. cat conftest.err >&5
  12603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12604. (exit $ac_status); } &&
  12605. { ac_try='test -z "$ac_cxx_werror_flag"
  12606. || test ! -s conftest.err'
  12607. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12608. (eval $ac_try) 2>&5
  12609. ac_status=$?
  12610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12611. (exit $ac_status); }; } &&
  12612. { ac_try='test -s conftest$ac_exeext'
  12613. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12614. (eval $ac_try) 2>&5
  12615. ac_status=$?
  12616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12617. (exit $ac_status); }; }; then
  12618. ac_cv_lib_dl_dlopen=yes
  12619. else
  12620. echo "$as_me: failed program was:" >&5
  12621. sed 's/^/| /' conftest.$ac_ext >&5
  12622. ac_cv_lib_dl_dlopen=no
  12623. fi
  12624. rm -f conftest.err conftest.$ac_objext \
  12625. conftest$ac_exeext conftest.$ac_ext
  12626. LIBS=$ac_check_lib_save_LIBS
  12627. fi
  12628. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  12629. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  12630. if test $ac_cv_lib_dl_dlopen = yes; then
  12631. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  12632. else
  12633. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  12634. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  12635. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  12636. echo $ECHO_N "(cached) $ECHO_C" >&6
  12637. else
  12638. ac_check_lib_save_LIBS=$LIBS
  12639. LIBS="-lsvld $LIBS"
  12640. cat >conftest.$ac_ext <<_ACEOF
  12641. /* confdefs.h. */
  12642. _ACEOF
  12643. cat confdefs.h >>conftest.$ac_ext
  12644. cat >>conftest.$ac_ext <<_ACEOF
  12645. /* end confdefs.h. */
  12646. /* Override any gcc2 internal prototype to avoid an error. */
  12647. #ifdef __cplusplus
  12648. extern "C"
  12649. #endif
  12650. /* We use char because int might match the return type of a gcc2
  12651. builtin and then its argument prototype would still apply. */
  12652. char dlopen ();
  12653. int
  12654. main ()
  12655. {
  12656. dlopen ();
  12657. ;
  12658. return 0;
  12659. }
  12660. _ACEOF
  12661. rm -f conftest.$ac_objext conftest$ac_exeext
  12662. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12663. (eval $ac_link) 2>conftest.er1
  12664. ac_status=$?
  12665. grep -v '^ *+' conftest.er1 >conftest.err
  12666. rm -f conftest.er1
  12667. cat conftest.err >&5
  12668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12669. (exit $ac_status); } &&
  12670. { ac_try='test -z "$ac_cxx_werror_flag"
  12671. || test ! -s conftest.err'
  12672. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12673. (eval $ac_try) 2>&5
  12674. ac_status=$?
  12675. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12676. (exit $ac_status); }; } &&
  12677. { ac_try='test -s conftest$ac_exeext'
  12678. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12679. (eval $ac_try) 2>&5
  12680. ac_status=$?
  12681. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12682. (exit $ac_status); }; }; then
  12683. ac_cv_lib_svld_dlopen=yes
  12684. else
  12685. echo "$as_me: failed program was:" >&5
  12686. sed 's/^/| /' conftest.$ac_ext >&5
  12687. ac_cv_lib_svld_dlopen=no
  12688. fi
  12689. rm -f conftest.err conftest.$ac_objext \
  12690. conftest$ac_exeext conftest.$ac_ext
  12691. LIBS=$ac_check_lib_save_LIBS
  12692. fi
  12693. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  12694. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  12695. if test $ac_cv_lib_svld_dlopen = yes; then
  12696. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  12697. else
  12698. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  12699. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  12700. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  12701. echo $ECHO_N "(cached) $ECHO_C" >&6
  12702. else
  12703. ac_check_lib_save_LIBS=$LIBS
  12704. LIBS="-ldld $LIBS"
  12705. cat >conftest.$ac_ext <<_ACEOF
  12706. /* confdefs.h. */
  12707. _ACEOF
  12708. cat confdefs.h >>conftest.$ac_ext
  12709. cat >>conftest.$ac_ext <<_ACEOF
  12710. /* end confdefs.h. */
  12711. /* Override any gcc2 internal prototype to avoid an error. */
  12712. #ifdef __cplusplus
  12713. extern "C"
  12714. #endif
  12715. /* We use char because int might match the return type of a gcc2
  12716. builtin and then its argument prototype would still apply. */
  12717. char dld_link ();
  12718. int
  12719. main ()
  12720. {
  12721. dld_link ();
  12722. ;
  12723. return 0;
  12724. }
  12725. _ACEOF
  12726. rm -f conftest.$ac_objext conftest$ac_exeext
  12727. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12728. (eval $ac_link) 2>conftest.er1
  12729. ac_status=$?
  12730. grep -v '^ *+' conftest.er1 >conftest.err
  12731. rm -f conftest.er1
  12732. cat conftest.err >&5
  12733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12734. (exit $ac_status); } &&
  12735. { ac_try='test -z "$ac_cxx_werror_flag"
  12736. || test ! -s conftest.err'
  12737. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12738. (eval $ac_try) 2>&5
  12739. ac_status=$?
  12740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12741. (exit $ac_status); }; } &&
  12742. { ac_try='test -s conftest$ac_exeext'
  12743. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12744. (eval $ac_try) 2>&5
  12745. ac_status=$?
  12746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12747. (exit $ac_status); }; }; then
  12748. ac_cv_lib_dld_dld_link=yes
  12749. else
  12750. echo "$as_me: failed program was:" >&5
  12751. sed 's/^/| /' conftest.$ac_ext >&5
  12752. ac_cv_lib_dld_dld_link=no
  12753. fi
  12754. rm -f conftest.err conftest.$ac_objext \
  12755. conftest$ac_exeext conftest.$ac_ext
  12756. LIBS=$ac_check_lib_save_LIBS
  12757. fi
  12758. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  12759. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  12760. if test $ac_cv_lib_dld_dld_link = yes; then
  12761. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  12762. fi
  12763. fi
  12764. fi
  12765. fi
  12766. fi
  12767. fi
  12768. ;;
  12769. esac
  12770. if test "x$lt_cv_dlopen" != xno; then
  12771. enable_dlopen=yes
  12772. else
  12773. enable_dlopen=no
  12774. fi
  12775. case $lt_cv_dlopen in
  12776. dlopen)
  12777. save_CPPFLAGS="$CPPFLAGS"
  12778. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  12779. save_LDFLAGS="$LDFLAGS"
  12780. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  12781. save_LIBS="$LIBS"
  12782. LIBS="$lt_cv_dlopen_libs $LIBS"
  12783. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  12784. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  12785. if test "${lt_cv_dlopen_self+set}" = set; then
  12786. echo $ECHO_N "(cached) $ECHO_C" >&6
  12787. else
  12788. if test "$cross_compiling" = yes; then :
  12789. lt_cv_dlopen_self=cross
  12790. else
  12791. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12792. lt_status=$lt_dlunknown
  12793. cat > conftest.$ac_ext <<EOF
  12794. #line 14090 "configure"
  12795. #include "confdefs.h"
  12796. #if HAVE_DLFCN_H
  12797. #include <dlfcn.h>
  12798. #endif
  12799. #include <stdio.h>
  12800. #ifdef RTLD_GLOBAL
  12801. # define LT_DLGLOBAL RTLD_GLOBAL
  12802. #else
  12803. # ifdef DL_GLOBAL
  12804. # define LT_DLGLOBAL DL_GLOBAL
  12805. # else
  12806. # define LT_DLGLOBAL 0
  12807. # endif
  12808. #endif
  12809. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12810. find out it does not work in some platform. */
  12811. #ifndef LT_DLLAZY_OR_NOW
  12812. # ifdef RTLD_LAZY
  12813. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12814. # else
  12815. # ifdef DL_LAZY
  12816. # define LT_DLLAZY_OR_NOW DL_LAZY
  12817. # else
  12818. # ifdef RTLD_NOW
  12819. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12820. # else
  12821. # ifdef DL_NOW
  12822. # define LT_DLLAZY_OR_NOW DL_NOW
  12823. # else
  12824. # define LT_DLLAZY_OR_NOW 0
  12825. # endif
  12826. # endif
  12827. # endif
  12828. # endif
  12829. #endif
  12830. #ifdef __cplusplus
  12831. extern "C" void exit (int);
  12832. #endif
  12833. void fnord() { int i=42;}
  12834. int main ()
  12835. {
  12836. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12837. int status = $lt_dlunknown;
  12838. if (self)
  12839. {
  12840. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12841. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12842. /* dlclose (self); */
  12843. }
  12844. exit (status);
  12845. }
  12846. EOF
  12847. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12848. (eval $ac_link) 2>&5
  12849. ac_status=$?
  12850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12851. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  12852. (./conftest; exit; ) 2>/dev/null
  12853. lt_status=$?
  12854. case x$lt_status in
  12855. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  12856. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  12857. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  12858. esac
  12859. else :
  12860. # compilation failed
  12861. lt_cv_dlopen_self=no
  12862. fi
  12863. fi
  12864. rm -fr conftest*
  12865. fi
  12866. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  12867. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  12868. if test "x$lt_cv_dlopen_self" = xyes; then
  12869. LDFLAGS="$LDFLAGS $link_static_flag"
  12870. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  12871. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  12872. if test "${lt_cv_dlopen_self_static+set}" = set; then
  12873. echo $ECHO_N "(cached) $ECHO_C" >&6
  12874. else
  12875. if test "$cross_compiling" = yes; then :
  12876. lt_cv_dlopen_self_static=cross
  12877. else
  12878. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12879. lt_status=$lt_dlunknown
  12880. cat > conftest.$ac_ext <<EOF
  12881. #line 14188 "configure"
  12882. #include "confdefs.h"
  12883. #if HAVE_DLFCN_H
  12884. #include <dlfcn.h>
  12885. #endif
  12886. #include <stdio.h>
  12887. #ifdef RTLD_GLOBAL
  12888. # define LT_DLGLOBAL RTLD_GLOBAL
  12889. #else
  12890. # ifdef DL_GLOBAL
  12891. # define LT_DLGLOBAL DL_GLOBAL
  12892. # else
  12893. # define LT_DLGLOBAL 0
  12894. # endif
  12895. #endif
  12896. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12897. find out it does not work in some platform. */
  12898. #ifndef LT_DLLAZY_OR_NOW
  12899. # ifdef RTLD_LAZY
  12900. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12901. # else
  12902. # ifdef DL_LAZY
  12903. # define LT_DLLAZY_OR_NOW DL_LAZY
  12904. # else
  12905. # ifdef RTLD_NOW
  12906. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12907. # else
  12908. # ifdef DL_NOW
  12909. # define LT_DLLAZY_OR_NOW DL_NOW
  12910. # else
  12911. # define LT_DLLAZY_OR_NOW 0
  12912. # endif
  12913. # endif
  12914. # endif
  12915. # endif
  12916. #endif
  12917. #ifdef __cplusplus
  12918. extern "C" void exit (int);
  12919. #endif
  12920. void fnord() { int i=42;}
  12921. int main ()
  12922. {
  12923. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12924. int status = $lt_dlunknown;
  12925. if (self)
  12926. {
  12927. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12928. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12929. /* dlclose (self); */
  12930. }
  12931. exit (status);
  12932. }
  12933. EOF
  12934. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12935. (eval $ac_link) 2>&5
  12936. ac_status=$?
  12937. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12938. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  12939. (./conftest; exit; ) 2>/dev/null
  12940. lt_status=$?
  12941. case x$lt_status in
  12942. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  12943. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  12944. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  12945. esac
  12946. else :
  12947. # compilation failed
  12948. lt_cv_dlopen_self_static=no
  12949. fi
  12950. fi
  12951. rm -fr conftest*
  12952. fi
  12953. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  12954. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  12955. fi
  12956. CPPFLAGS="$save_CPPFLAGS"
  12957. LDFLAGS="$save_LDFLAGS"
  12958. LIBS="$save_LIBS"
  12959. ;;
  12960. esac
  12961. case $lt_cv_dlopen_self in
  12962. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  12963. *) enable_dlopen_self=unknown ;;
  12964. esac
  12965. case $lt_cv_dlopen_self_static in
  12966. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  12967. *) enable_dlopen_self_static=unknown ;;
  12968. esac
  12969. fi
  12970. # The else clause should only fire when bootstrapping the
  12971. # libtool distribution, otherwise you forgot to ship ltmain.sh
  12972. # with your package, and you will get complaints that there are
  12973. # no rules to generate ltmain.sh.
  12974. if test -f "$ltmain"; then
  12975. # See if we are running on zsh, and set the options which allow our commands through
  12976. # without removal of \ escapes.
  12977. if test -n "${ZSH_VERSION+set}" ; then
  12978. setopt NO_GLOB_SUBST
  12979. fi
  12980. # Now quote all the things that may contain metacharacters while being
  12981. # careful not to overquote the AC_SUBSTed values. We take copies of the
  12982. # variables and quote the copies for generation of the libtool script.
  12983. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  12984. SED SHELL STRIP \
  12985. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  12986. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  12987. deplibs_check_method reload_flag reload_cmds need_locks \
  12988. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  12989. lt_cv_sys_global_symbol_to_c_name_address \
  12990. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  12991. old_postinstall_cmds old_postuninstall_cmds \
  12992. compiler_CXX \
  12993. CC_CXX \
  12994. LD_CXX \
  12995. lt_prog_compiler_wl_CXX \
  12996. lt_prog_compiler_pic_CXX \
  12997. lt_prog_compiler_static_CXX \
  12998. lt_prog_compiler_no_builtin_flag_CXX \
  12999. export_dynamic_flag_spec_CXX \
  13000. thread_safe_flag_spec_CXX \
  13001. whole_archive_flag_spec_CXX \
  13002. enable_shared_with_static_runtimes_CXX \
  13003. old_archive_cmds_CXX \
  13004. old_archive_from_new_cmds_CXX \
  13005. predep_objects_CXX \
  13006. postdep_objects_CXX \
  13007. predeps_CXX \
  13008. postdeps_CXX \
  13009. compiler_lib_search_path_CXX \
  13010. archive_cmds_CXX \
  13011. archive_expsym_cmds_CXX \
  13012. postinstall_cmds_CXX \
  13013. postuninstall_cmds_CXX \
  13014. old_archive_from_expsyms_cmds_CXX \
  13015. allow_undefined_flag_CXX \
  13016. no_undefined_flag_CXX \
  13017. export_symbols_cmds_CXX \
  13018. hardcode_libdir_flag_spec_CXX \
  13019. hardcode_libdir_flag_spec_ld_CXX \
  13020. hardcode_libdir_separator_CXX \
  13021. hardcode_automatic_CXX \
  13022. module_cmds_CXX \
  13023. module_expsym_cmds_CXX \
  13024. lt_cv_prog_compiler_c_o_CXX \
  13025. exclude_expsyms_CXX \
  13026. include_expsyms_CXX; do
  13027. case $var in
  13028. old_archive_cmds_CXX | \
  13029. old_archive_from_new_cmds_CXX | \
  13030. archive_cmds_CXX | \
  13031. archive_expsym_cmds_CXX | \
  13032. module_cmds_CXX | \
  13033. module_expsym_cmds_CXX | \
  13034. old_archive_from_expsyms_cmds_CXX | \
  13035. export_symbols_cmds_CXX | \
  13036. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  13037. postinstall_cmds | postuninstall_cmds | \
  13038. old_postinstall_cmds | old_postuninstall_cmds | \
  13039. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  13040. # Double-quote double-evaled strings.
  13041. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  13042. ;;
  13043. *)
  13044. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  13045. ;;
  13046. esac
  13047. done
  13048. case $lt_echo in
  13049. *'\$0 --fallback-echo"')
  13050. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  13051. ;;
  13052. esac
  13053. cfgfile="$ofile"
  13054. cat <<__EOF__ >> "$cfgfile"
  13055. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  13056. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13057. # Shell to use when invoking shell scripts.
  13058. SHELL=$lt_SHELL
  13059. # Whether or not to build shared libraries.
  13060. build_libtool_libs=$enable_shared
  13061. # Whether or not to build static libraries.
  13062. build_old_libs=$enable_static
  13063. # Whether or not to add -lc for building shared libraries.
  13064. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  13065. # Whether or not to disallow shared libs when runtime libs are static
  13066. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  13067. # Whether or not to optimize for fast installation.
  13068. fast_install=$enable_fast_install
  13069. # The host system.
  13070. host_alias=$host_alias
  13071. host=$host
  13072. # An echo program that does not interpret backslashes.
  13073. echo=$lt_echo
  13074. # The archiver.
  13075. AR=$lt_AR
  13076. AR_FLAGS=$lt_AR_FLAGS
  13077. # A C compiler.
  13078. LTCC=$lt_LTCC
  13079. # A language-specific compiler.
  13080. CC=$lt_compiler_CXX
  13081. # Is the compiler the GNU C compiler?
  13082. with_gcc=$GCC_CXX
  13083. # An ERE matcher.
  13084. EGREP=$lt_EGREP
  13085. # The linker used to build libraries.
  13086. LD=$lt_LD_CXX
  13087. # Whether we need hard or soft links.
  13088. LN_S=$lt_LN_S
  13089. # A BSD-compatible nm program.
  13090. NM=$lt_NM
  13091. # A symbol stripping program
  13092. STRIP=$lt_STRIP
  13093. # Used to examine libraries when file_magic_cmd begins "file"
  13094. MAGIC_CMD=$MAGIC_CMD
  13095. # Used on cygwin: DLL creation program.
  13096. DLLTOOL="$DLLTOOL"
  13097. # Used on cygwin: object dumper.
  13098. OBJDUMP="$OBJDUMP"
  13099. # Used on cygwin: assembler.
  13100. AS="$AS"
  13101. # The name of the directory that contains temporary libtool files.
  13102. objdir=$objdir
  13103. # How to create reloadable object files.
  13104. reload_flag=$lt_reload_flag
  13105. reload_cmds=$lt_reload_cmds
  13106. # How to pass a linker flag through the compiler.
  13107. wl=$lt_lt_prog_compiler_wl_CXX
  13108. # Object file suffix (normally "o").
  13109. objext="$ac_objext"
  13110. # Old archive suffix (normally "a").
  13111. libext="$libext"
  13112. # Shared library suffix (normally ".so").
  13113. shrext='$shrext'
  13114. # Executable file suffix (normally "").
  13115. exeext="$exeext"
  13116. # Additional compiler flags for building library objects.
  13117. pic_flag=$lt_lt_prog_compiler_pic_CXX
  13118. pic_mode=$pic_mode
  13119. # What is the maximum length of a command?
  13120. max_cmd_len=$lt_cv_sys_max_cmd_len
  13121. # Does compiler simultaneously support -c and -o options?
  13122. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  13123. # Must we lock files when doing compilation ?
  13124. need_locks=$lt_need_locks
  13125. # Do we need the lib prefix for modules?
  13126. need_lib_prefix=$need_lib_prefix
  13127. # Do we need a version for libraries?
  13128. need_version=$need_version
  13129. # Whether dlopen is supported.
  13130. dlopen_support=$enable_dlopen
  13131. # Whether dlopen of programs is supported.
  13132. dlopen_self=$enable_dlopen_self
  13133. # Whether dlopen of statically linked programs is supported.
  13134. dlopen_self_static=$enable_dlopen_self_static
  13135. # Compiler flag to prevent dynamic linking.
  13136. link_static_flag=$lt_lt_prog_compiler_static_CXX
  13137. # Compiler flag to turn off builtin functions.
  13138. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  13139. # Compiler flag to allow reflexive dlopens.
  13140. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  13141. # Compiler flag to generate shared objects directly from archives.
  13142. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  13143. # Compiler flag to generate thread-safe objects.
  13144. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  13145. # Library versioning type.
  13146. version_type=$version_type
  13147. # Format of library name prefix.
  13148. libname_spec=$lt_libname_spec
  13149. # List of archive names. First name is the real one, the rest are links.
  13150. # The last name is the one that the linker finds with -lNAME.
  13151. library_names_spec=$lt_library_names_spec
  13152. # The coded name of the library, if different from the real name.
  13153. soname_spec=$lt_soname_spec
  13154. # Commands used to build and install an old-style archive.
  13155. RANLIB=$lt_RANLIB
  13156. old_archive_cmds=$lt_old_archive_cmds_CXX
  13157. old_postinstall_cmds=$lt_old_postinstall_cmds
  13158. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13159. # Create an old-style archive from a shared archive.
  13160. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  13161. # Create a temporary old-style archive to link instead of a shared archive.
  13162. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  13163. # Commands used to build and install a shared archive.
  13164. archive_cmds=$lt_archive_cmds_CXX
  13165. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  13166. postinstall_cmds=$lt_postinstall_cmds
  13167. postuninstall_cmds=$lt_postuninstall_cmds
  13168. # Commands used to build a loadable module (assumed same as above if empty)
  13169. module_cmds=$lt_module_cmds_CXX
  13170. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  13171. # Commands to strip libraries.
  13172. old_striplib=$lt_old_striplib
  13173. striplib=$lt_striplib
  13174. # Dependencies to place before the objects being linked to create a
  13175. # shared library.
  13176. predep_objects=$lt_predep_objects_CXX
  13177. # Dependencies to place after the objects being linked to create a
  13178. # shared library.
  13179. postdep_objects=$lt_postdep_objects_CXX
  13180. # Dependencies to place before the objects being linked to create a
  13181. # shared library.
  13182. predeps=$lt_predeps_CXX
  13183. # Dependencies to place after the objects being linked to create a
  13184. # shared library.
  13185. postdeps=$lt_postdeps_CXX
  13186. # The library search path used internally by the compiler when linking
  13187. # a shared library.
  13188. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  13189. # Method to check whether dependent libraries are shared objects.
  13190. deplibs_check_method=$lt_deplibs_check_method
  13191. # Command to use when deplibs_check_method == file_magic.
  13192. file_magic_cmd=$lt_file_magic_cmd
  13193. # Flag that allows shared libraries with undefined symbols to be built.
  13194. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  13195. # Flag that forces no undefined symbols.
  13196. no_undefined_flag=$lt_no_undefined_flag_CXX
  13197. # Commands used to finish a libtool library installation in a directory.
  13198. finish_cmds=$lt_finish_cmds
  13199. # Same as above, but a single script fragment to be evaled but not shown.
  13200. finish_eval=$lt_finish_eval
  13201. # Take the output of nm and produce a listing of raw symbols and C names.
  13202. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13203. # Transform the output of nm in a proper C declaration
  13204. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13205. # Transform the output of nm in a C name address pair
  13206. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13207. # This is the shared library runtime path variable.
  13208. runpath_var=$runpath_var
  13209. # This is the shared library path variable.
  13210. shlibpath_var=$shlibpath_var
  13211. # Is shlibpath searched before the hard-coded library search path?
  13212. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13213. # How to hardcode a shared library path into an executable.
  13214. hardcode_action=$hardcode_action_CXX
  13215. # Whether we should hardcode library paths into libraries.
  13216. hardcode_into_libs=$hardcode_into_libs
  13217. # Flag to hardcode \$libdir into a binary during linking.
  13218. # This must work even if \$libdir does not exist.
  13219. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  13220. # If ld is used when linking, flag to hardcode \$libdir into
  13221. # a binary during linking. This must work even if \$libdir does
  13222. # not exist.
  13223. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  13224. # Whether we need a single -rpath flag with a separated argument.
  13225. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  13226. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  13227. # resulting binary.
  13228. hardcode_direct=$hardcode_direct_CXX
  13229. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  13230. # resulting binary.
  13231. hardcode_minus_L=$hardcode_minus_L_CXX
  13232. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  13233. # the resulting binary.
  13234. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  13235. # Set to yes if building a shared library automatically hardcodes DIR into the library
  13236. # and all subsequent libraries and executables linked against it.
  13237. hardcode_automatic=$hardcode_automatic_CXX
  13238. # Variables whose values should be saved in libtool wrapper scripts and
  13239. # restored at relink time.
  13240. variables_saved_for_relink="$variables_saved_for_relink"
  13241. # Whether libtool must link a program against all its dependency libraries.
  13242. link_all_deplibs=$link_all_deplibs_CXX
  13243. # Compile-time system search path for libraries
  13244. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13245. # Run-time system search path for libraries
  13246. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  13247. # Fix the shell variable \$srcfile for the compiler.
  13248. fix_srcfile_path="$fix_srcfile_path_CXX"
  13249. # Set to yes if exported symbols are required.
  13250. always_export_symbols=$always_export_symbols_CXX
  13251. # The commands to list exported symbols.
  13252. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  13253. # The commands to extract the exported symbol list from a shared archive.
  13254. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13255. # Symbols that should not be listed in the preloaded symbols.
  13256. exclude_expsyms=$lt_exclude_expsyms_CXX
  13257. # Symbols that must always be exported.
  13258. include_expsyms=$lt_include_expsyms_CXX
  13259. # ### END LIBTOOL TAG CONFIG: $tagname
  13260. __EOF__
  13261. else
  13262. # If there is no Makefile yet, we rely on a make rule to execute
  13263. # `config.status --recheck' to rerun these tests and create the
  13264. # libtool script then.
  13265. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  13266. if test -f "$ltmain_in"; then
  13267. test -f Makefile && make "$ltmain"
  13268. fi
  13269. fi
  13270. ac_ext=c
  13271. ac_cpp='$CPP $CPPFLAGS'
  13272. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13273. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13274. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13275. CC=$lt_save_CC
  13276. LDCXX=$LD
  13277. LD=$lt_save_LD
  13278. GCC=$lt_save_GCC
  13279. with_gnu_ldcxx=$with_gnu_ld
  13280. with_gnu_ld=$lt_save_with_gnu_ld
  13281. lt_cv_path_LDCXX=$lt_cv_path_LD
  13282. lt_cv_path_LD=$lt_save_path_LD
  13283. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13284. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13285. else
  13286. tagname=""
  13287. fi
  13288. ;;
  13289. F77)
  13290. if test -n "$F77" && test "X$F77" != "Xno"; then
  13291. ac_ext=f
  13292. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  13293. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13294. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  13295. archive_cmds_need_lc_F77=no
  13296. allow_undefined_flag_F77=
  13297. always_export_symbols_F77=no
  13298. archive_expsym_cmds_F77=
  13299. export_dynamic_flag_spec_F77=
  13300. hardcode_direct_F77=no
  13301. hardcode_libdir_flag_spec_F77=
  13302. hardcode_libdir_flag_spec_ld_F77=
  13303. hardcode_libdir_separator_F77=
  13304. hardcode_minus_L_F77=no
  13305. hardcode_automatic_F77=no
  13306. module_cmds_F77=
  13307. module_expsym_cmds_F77=
  13308. link_all_deplibs_F77=unknown
  13309. old_archive_cmds_F77=$old_archive_cmds
  13310. no_undefined_flag_F77=
  13311. whole_archive_flag_spec_F77=
  13312. enable_shared_with_static_runtimes_F77=no
  13313. # Source file extension for f77 test sources.
  13314. ac_ext=f
  13315. # Object file extension for compiled f77 test sources.
  13316. objext=o
  13317. objext_F77=$objext
  13318. # Code to be used in simple compile tests
  13319. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  13320. # Code to be used in simple link tests
  13321. lt_simple_link_test_code=" program t\n end\n"
  13322. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  13323. # If no C compiler was specified, use CC.
  13324. LTCC=${LTCC-"$CC"}
  13325. # Allow CC to be a program name with arguments.
  13326. compiler=$CC
  13327. # Allow CC to be a program name with arguments.
  13328. lt_save_CC="$CC"
  13329. CC=${F77-"f77"}
  13330. compiler=$CC
  13331. compiler_F77=$CC
  13332. cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  13333. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  13334. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  13335. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  13336. echo "${ECHO_T}$can_build_shared" >&6
  13337. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  13338. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  13339. test "$can_build_shared" = "no" && enable_shared=no
  13340. # On AIX, shared libraries and static libraries use the same namespace, and
  13341. # are all built from PIC.
  13342. case "$host_os" in
  13343. aix3*)
  13344. test "$enable_shared" = yes && enable_static=no
  13345. if test -n "$RANLIB"; then
  13346. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  13347. postinstall_cmds='$RANLIB $lib'
  13348. fi
  13349. ;;
  13350. aix4*)
  13351. test "$enable_shared" = yes && enable_static=no
  13352. ;;
  13353. esac
  13354. echo "$as_me:$LINENO: result: $enable_shared" >&5
  13355. echo "${ECHO_T}$enable_shared" >&6
  13356. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  13357. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  13358. # Make sure either enable_shared or enable_static is yes.
  13359. test "$enable_shared" = yes || enable_static=yes
  13360. echo "$as_me:$LINENO: result: $enable_static" >&5
  13361. echo "${ECHO_T}$enable_static" >&6
  13362. test "$ld_shlibs_F77" = no && can_build_shared=no
  13363. GCC_F77="$G77"
  13364. LD_F77="$LD"
  13365. lt_prog_compiler_wl_F77=
  13366. lt_prog_compiler_pic_F77=
  13367. lt_prog_compiler_static_F77=
  13368. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  13369. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  13370. if test "$GCC" = yes; then
  13371. lt_prog_compiler_wl_F77='-Wl,'
  13372. lt_prog_compiler_static_F77='-static'
  13373. case $host_os in
  13374. aix*)
  13375. # All AIX code is PIC.
  13376. if test "$host_cpu" = ia64; then
  13377. # AIX 5 now supports IA64 processor
  13378. lt_prog_compiler_static_F77='-Bstatic'
  13379. fi
  13380. ;;
  13381. amigaos*)
  13382. # FIXME: we need at least 68020 code to build shared libraries, but
  13383. # adding the `-m68020' flag to GCC prevents building anything better,
  13384. # like `-m68040'.
  13385. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  13386. ;;
  13387. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13388. # PIC is the default for these OSes.
  13389. ;;
  13390. mingw* | pw32* | os2*)
  13391. # This hack is so that the source file can tell whether it is being
  13392. # built for inclusion in a dll (and should export symbols for example).
  13393. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  13394. ;;
  13395. darwin* | rhapsody*)
  13396. # PIC is the default on this platform
  13397. # Common symbols not allowed in MH_DYLIB files
  13398. lt_prog_compiler_pic_F77='-fno-common'
  13399. ;;
  13400. msdosdjgpp*)
  13401. # Just because we use GCC doesn't mean we suddenly get shared libraries
  13402. # on systems that don't support them.
  13403. lt_prog_compiler_can_build_shared_F77=no
  13404. enable_shared=no
  13405. ;;
  13406. sysv4*MP*)
  13407. if test -d /usr/nec; then
  13408. lt_prog_compiler_pic_F77=-Kconform_pic
  13409. fi
  13410. ;;
  13411. hpux*)
  13412. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13413. # not for PA HP-UX.
  13414. case "$host_cpu" in
  13415. hppa*64*|ia64*)
  13416. # +Z the default
  13417. ;;
  13418. *)
  13419. lt_prog_compiler_pic_F77='-fPIC'
  13420. ;;
  13421. esac
  13422. ;;
  13423. *)
  13424. lt_prog_compiler_pic_F77='-fPIC'
  13425. ;;
  13426. esac
  13427. else
  13428. # PORTME Check for flag to pass linker flags through the system compiler.
  13429. case $host_os in
  13430. aix*)
  13431. lt_prog_compiler_wl_F77='-Wl,'
  13432. if test "$host_cpu" = ia64; then
  13433. # AIX 5 now supports IA64 processor
  13434. lt_prog_compiler_static_F77='-Bstatic'
  13435. else
  13436. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  13437. fi
  13438. ;;
  13439. mingw* | pw32* | os2*)
  13440. # This hack is so that the source file can tell whether it is being
  13441. # built for inclusion in a dll (and should export symbols for example).
  13442. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  13443. ;;
  13444. hpux9* | hpux10* | hpux11*)
  13445. lt_prog_compiler_wl_F77='-Wl,'
  13446. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13447. # not for PA HP-UX.
  13448. case "$host_cpu" in
  13449. hppa*64*|ia64*)
  13450. # +Z the default
  13451. ;;
  13452. *)
  13453. lt_prog_compiler_pic_F77='+Z'
  13454. ;;
  13455. esac
  13456. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  13457. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  13458. ;;
  13459. irix5* | irix6* | nonstopux*)
  13460. lt_prog_compiler_wl_F77='-Wl,'
  13461. # PIC (with -KPIC) is the default.
  13462. lt_prog_compiler_static_F77='-non_shared'
  13463. ;;
  13464. newsos6)
  13465. lt_prog_compiler_pic_F77='-KPIC'
  13466. lt_prog_compiler_static_F77='-Bstatic'
  13467. ;;
  13468. linux*)
  13469. case $CC in
  13470. icc* | ecc*)
  13471. lt_prog_compiler_wl_F77='-Wl,'
  13472. lt_prog_compiler_pic_F77='-KPIC'
  13473. lt_prog_compiler_static_F77='-static'
  13474. ;;
  13475. ccc*)
  13476. lt_prog_compiler_wl_F77='-Wl,'
  13477. # All Alpha code is PIC.
  13478. lt_prog_compiler_static_F77='-non_shared'
  13479. ;;
  13480. esac
  13481. ;;
  13482. osf3* | osf4* | osf5*)
  13483. lt_prog_compiler_wl_F77='-Wl,'
  13484. # All OSF/1 code is PIC.
  13485. lt_prog_compiler_static_F77='-non_shared'
  13486. ;;
  13487. sco3.2v5*)
  13488. lt_prog_compiler_pic_F77='-Kpic'
  13489. lt_prog_compiler_static_F77='-dn'
  13490. ;;
  13491. solaris*)
  13492. lt_prog_compiler_wl_F77='-Wl,'
  13493. lt_prog_compiler_pic_F77='-KPIC'
  13494. lt_prog_compiler_static_F77='-Bstatic'
  13495. ;;
  13496. sunos4*)
  13497. lt_prog_compiler_wl_F77='-Qoption ld '
  13498. lt_prog_compiler_pic_F77='-PIC'
  13499. lt_prog_compiler_static_F77='-Bstatic'
  13500. ;;
  13501. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  13502. lt_prog_compiler_wl_F77='-Wl,'
  13503. lt_prog_compiler_pic_F77='-KPIC'
  13504. lt_prog_compiler_static_F77='-Bstatic'
  13505. ;;
  13506. sysv4*MP*)
  13507. if test -d /usr/nec ;then
  13508. lt_prog_compiler_pic_F77='-Kconform_pic'
  13509. lt_prog_compiler_static_F77='-Bstatic'
  13510. fi
  13511. ;;
  13512. uts4*)
  13513. lt_prog_compiler_pic_F77='-pic'
  13514. lt_prog_compiler_static_F77='-Bstatic'
  13515. ;;
  13516. *)
  13517. lt_prog_compiler_can_build_shared_F77=no
  13518. ;;
  13519. esac
  13520. fi
  13521. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  13522. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
  13523. #
  13524. # Check to make sure the PIC flag actually works.
  13525. #
  13526. if test -n "$lt_prog_compiler_pic_F77"; then
  13527. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  13528. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
  13529. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  13530. echo $ECHO_N "(cached) $ECHO_C" >&6
  13531. else
  13532. lt_prog_compiler_pic_works_F77=no
  13533. ac_outfile=conftest.$ac_objext
  13534. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13535. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  13536. # Insert the option either (1) after the last *FLAGS variable, or
  13537. # (2) before a word containing "conftest.", or (3) at the end.
  13538. # Note that $ac_compile itself does not contain backslashes and begins
  13539. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13540. # The option is referenced via a variable to avoid confusing sed.
  13541. lt_compile=`echo "$ac_compile" | $SED \
  13542. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  13543. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13544. -e 's:$: $lt_compiler_flag:'`
  13545. (eval echo "\"\$as_me:15015: $lt_compile\"" >&5)
  13546. (eval "$lt_compile" 2>conftest.err)
  13547. ac_status=$?
  13548. cat conftest.err >&5
  13549. echo "$as_me:15019: \$? = $ac_status" >&5
  13550. if (exit $ac_status) && test -s "$ac_outfile"; then
  13551. # The compiler can only warn and ignore the option if not recognized
  13552. # So say no if there are warnings
  13553. if test ! -s conftest.err; then
  13554. lt_prog_compiler_pic_works_F77=yes
  13555. fi
  13556. fi
  13557. $rm conftest*
  13558. fi
  13559. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  13560. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
  13561. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  13562. case $lt_prog_compiler_pic_F77 in
  13563. "" | " "*) ;;
  13564. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  13565. esac
  13566. else
  13567. lt_prog_compiler_pic_F77=
  13568. lt_prog_compiler_can_build_shared_F77=no
  13569. fi
  13570. fi
  13571. case "$host_os" in
  13572. # For platforms which do not support PIC, -DPIC is meaningless:
  13573. *djgpp*)
  13574. lt_prog_compiler_pic_F77=
  13575. ;;
  13576. *)
  13577. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  13578. ;;
  13579. esac
  13580. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  13581. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  13582. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  13583. echo $ECHO_N "(cached) $ECHO_C" >&6
  13584. else
  13585. lt_cv_prog_compiler_c_o_F77=no
  13586. $rm -r conftest 2>/dev/null
  13587. mkdir conftest
  13588. cd conftest
  13589. mkdir out
  13590. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13591. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13592. # Insert the option either (1) after the last *FLAGS variable, or
  13593. # (2) before a word containing "conftest.", or (3) at the end.
  13594. # Note that $ac_compile itself does not contain backslashes and begins
  13595. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13596. lt_compile=`echo "$ac_compile" | $SED \
  13597. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  13598. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13599. -e 's:$: $lt_compiler_flag:'`
  13600. (eval echo "\"\$as_me:15075: $lt_compile\"" >&5)
  13601. (eval "$lt_compile" 2>out/conftest.err)
  13602. ac_status=$?
  13603. cat out/conftest.err >&5
  13604. echo "$as_me:15079: \$? = $ac_status" >&5
  13605. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13606. then
  13607. # The compiler can only warn and ignore the option if not recognized
  13608. # So say no if there are warnings
  13609. if test ! -s out/conftest.err; then
  13610. lt_cv_prog_compiler_c_o_F77=yes
  13611. fi
  13612. fi
  13613. chmod u+w .
  13614. $rm conftest*
  13615. # SGI C++ compiler will create directory out/ii_files/ for
  13616. # template instantiation
  13617. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  13618. $rm out/* && rmdir out
  13619. cd ..
  13620. rmdir conftest
  13621. $rm conftest*
  13622. fi
  13623. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  13624. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
  13625. hard_links="nottested"
  13626. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  13627. # do not overwrite the value of need_locks provided by the user
  13628. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  13629. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  13630. hard_links=yes
  13631. $rm conftest*
  13632. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13633. touch conftest.a
  13634. ln conftest.a conftest.b 2>&5 || hard_links=no
  13635. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13636. echo "$as_me:$LINENO: result: $hard_links" >&5
  13637. echo "${ECHO_T}$hard_links" >&6
  13638. if test "$hard_links" = no; then
  13639. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  13640. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  13641. need_locks=warn
  13642. fi
  13643. else
  13644. need_locks=no
  13645. fi
  13646. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13647. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  13648. runpath_var=
  13649. allow_undefined_flag_F77=
  13650. enable_shared_with_static_runtimes_F77=no
  13651. archive_cmds_F77=
  13652. archive_expsym_cmds_F77=
  13653. old_archive_From_new_cmds_F77=
  13654. old_archive_from_expsyms_cmds_F77=
  13655. export_dynamic_flag_spec_F77=
  13656. whole_archive_flag_spec_F77=
  13657. thread_safe_flag_spec_F77=
  13658. hardcode_libdir_flag_spec_F77=
  13659. hardcode_libdir_flag_spec_ld_F77=
  13660. hardcode_libdir_separator_F77=
  13661. hardcode_direct_F77=no
  13662. hardcode_minus_L_F77=no
  13663. hardcode_shlibpath_var_F77=unsupported
  13664. link_all_deplibs_F77=unknown
  13665. hardcode_automatic_F77=no
  13666. module_cmds_F77=
  13667. module_expsym_cmds_F77=
  13668. always_export_symbols_F77=no
  13669. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13670. # include_expsyms should be a list of space-separated symbols to be *always*
  13671. # included in the symbol list
  13672. include_expsyms_F77=
  13673. # exclude_expsyms can be an extended regexp of symbols to exclude
  13674. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  13675. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  13676. # as well as any symbol that contains `d'.
  13677. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  13678. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  13679. # platforms (ab)use it in PIC code, but their linkers get confused if
  13680. # the symbol is explicitly referenced. Since portable code cannot
  13681. # rely on this symbol name, it's probably fine to never include it in
  13682. # preloaded symbol tables.
  13683. extract_expsyms_cmds=
  13684. case $host_os in
  13685. cygwin* | mingw* | pw32*)
  13686. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  13687. # When not using gcc, we currently assume that we are using
  13688. # Microsoft Visual C++.
  13689. if test "$GCC" != yes; then
  13690. with_gnu_ld=no
  13691. fi
  13692. ;;
  13693. openbsd*)
  13694. with_gnu_ld=no
  13695. ;;
  13696. esac
  13697. ld_shlibs_F77=yes
  13698. if test "$with_gnu_ld" = yes; then
  13699. # If archive_cmds runs LD, not CC, wlarc should be empty
  13700. wlarc='${wl}'
  13701. # See if GNU ld supports shared libraries.
  13702. case $host_os in
  13703. aix3* | aix4* | aix5*)
  13704. # On AIX/PPC, the GNU linker is very broken
  13705. if test "$host_cpu" != ia64; then
  13706. ld_shlibs_F77=no
  13707. cat <<EOF 1>&2
  13708. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  13709. *** to be unable to reliably create shared libraries on AIX.
  13710. *** Therefore, libtool is disabling shared libraries support. If you
  13711. *** really care for shared libraries, you may want to modify your PATH
  13712. *** so that a non-GNU linker is found, and then restart.
  13713. EOF
  13714. fi
  13715. ;;
  13716. amigaos*)
  13717. archive_cmds_F77='$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)'
  13718. hardcode_libdir_flag_spec_F77='-L$libdir'
  13719. hardcode_minus_L_F77=yes
  13720. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  13721. # that the semantics of dynamic libraries on AmigaOS, at least up
  13722. # to version 4, is to share data among multiple programs linked
  13723. # with the same dynamic library. Since this doesn't match the
  13724. # behavior of shared libraries on other platforms, we can't use
  13725. # them.
  13726. ld_shlibs_F77=no
  13727. ;;
  13728. beos*)
  13729. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13730. allow_undefined_flag_F77=unsupported
  13731. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13732. # support --undefined. This deserves some investigation. FIXME
  13733. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13734. else
  13735. ld_shlibs_F77=no
  13736. fi
  13737. ;;
  13738. cygwin* | mingw* | pw32*)
  13739. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  13740. # as there is no search path for DLLs.
  13741. hardcode_libdir_flag_spec_F77='-L$libdir'
  13742. allow_undefined_flag_F77=unsupported
  13743. always_export_symbols_F77=no
  13744. enable_shared_with_static_runtimes_F77=yes
  13745. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  13746. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  13747. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  13748. # If the export-symbols file already is a .def file (1st line
  13749. # is EXPORTS), use it as is; otherwise, prepend...
  13750. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13751. cp $export_symbols $output_objdir/$soname.def;
  13752. else
  13753. echo EXPORTS > $output_objdir/$soname.def;
  13754. cat $export_symbols >> $output_objdir/$soname.def;
  13755. fi~
  13756. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  13757. else
  13758. ld_shlibs=no
  13759. fi
  13760. ;;
  13761. netbsd*)
  13762. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13763. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  13764. wlarc=
  13765. else
  13766. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13767. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13768. fi
  13769. ;;
  13770. solaris* | sysv5*)
  13771. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  13772. ld_shlibs_F77=no
  13773. cat <<EOF 1>&2
  13774. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  13775. *** create shared libraries on Solaris systems. Therefore, libtool
  13776. *** is disabling shared libraries support. We urge you to upgrade GNU
  13777. *** binutils to release 2.9.1 or newer. Another option is to modify
  13778. *** your PATH or compiler configuration so that the native linker is
  13779. *** used, and then restart.
  13780. EOF
  13781. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13782. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13783. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13784. else
  13785. ld_shlibs_F77=no
  13786. fi
  13787. ;;
  13788. sunos4*)
  13789. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13790. wlarc=
  13791. hardcode_direct_F77=yes
  13792. hardcode_shlibpath_var_F77=no
  13793. ;;
  13794. linux*)
  13795. if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  13796. tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13797. archive_cmds_F77="$tmp_archive_cmds"
  13798. supports_anon_versioning=no
  13799. case `$LD -v 2>/dev/null` in
  13800. *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  13801. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  13802. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  13803. *\ 2.11.*) ;; # other 2.11 versions
  13804. *) supports_anon_versioning=yes ;;
  13805. esac
  13806. if test $supports_anon_versioning = yes; then
  13807. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  13808. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13809. $echo "local: *; };" >> $output_objdir/$libname.ver~
  13810. $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  13811. else
  13812. archive_expsym_cmds_F77="$tmp_archive_cmds"
  13813. fi
  13814. else
  13815. ld_shlibs_F77=no
  13816. fi
  13817. ;;
  13818. *)
  13819. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13820. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13821. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13822. else
  13823. ld_shlibs_F77=no
  13824. fi
  13825. ;;
  13826. esac
  13827. if test "$ld_shlibs_F77" = yes; then
  13828. runpath_var=LD_RUN_PATH
  13829. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  13830. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  13831. # ancient GNU ld didn't support --whole-archive et. al.
  13832. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  13833. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  13834. else
  13835. whole_archive_flag_spec_F77=
  13836. fi
  13837. fi
  13838. else
  13839. # PORTME fill in a description of your system's linker (not GNU ld)
  13840. case $host_os in
  13841. aix3*)
  13842. allow_undefined_flag_F77=unsupported
  13843. always_export_symbols_F77=yes
  13844. archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  13845. # Note: this linker hardcodes the directories in LIBPATH if there
  13846. # are no directories specified by -L.
  13847. hardcode_minus_L_F77=yes
  13848. if test "$GCC" = yes && test -z "$link_static_flag"; then
  13849. # Neither direct hardcoding nor static linking is supported with a
  13850. # broken collect2.
  13851. hardcode_direct_F77=unsupported
  13852. fi
  13853. ;;
  13854. aix4* | aix5*)
  13855. if test "$host_cpu" = ia64; then
  13856. # On IA64, the linker does run time linking by default, so we don't
  13857. # have to do anything special.
  13858. aix_use_runtimelinking=no
  13859. exp_sym_flag='-Bexport'
  13860. no_entry_flag=""
  13861. else
  13862. # If we're using GNU nm, then we don't want the "-C" option.
  13863. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  13864. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  13865. export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  13866. else
  13867. export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  13868. fi
  13869. aix_use_runtimelinking=no
  13870. # Test if we are trying to use run time linking or normal
  13871. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13872. # need to do runtime linking.
  13873. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  13874. for ld_flag in $LDFLAGS; do
  13875. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  13876. aix_use_runtimelinking=yes
  13877. break
  13878. fi
  13879. done
  13880. esac
  13881. exp_sym_flag='-bexport'
  13882. no_entry_flag='-bnoentry'
  13883. fi
  13884. # When large executables or shared objects are built, AIX ld can
  13885. # have problems creating the table of contents. If linking a library
  13886. # or program results in "error TOC overflow" add -mminimal-toc to
  13887. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13888. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13889. archive_cmds_F77=''
  13890. hardcode_direct_F77=yes
  13891. hardcode_libdir_separator_F77=':'
  13892. link_all_deplibs_F77=yes
  13893. if test "$GCC" = yes; then
  13894. case $host_os in aix4.012|aix4.012.*)
  13895. # We only want to do this on AIX 4.2 and lower, the check
  13896. # below for broken collect2 doesn't work under 4.3+
  13897. collect2name=`${CC} -print-prog-name=collect2`
  13898. if test -f "$collect2name" && \
  13899. strings "$collect2name" | grep resolve_lib_name >/dev/null
  13900. then
  13901. # We have reworked collect2
  13902. hardcode_direct_F77=yes
  13903. else
  13904. # We have old collect2
  13905. hardcode_direct_F77=unsupported
  13906. # It fails to find uninstalled libraries when the uninstalled
  13907. # path is not listed in the libpath. Setting hardcode_minus_L
  13908. # to unsupported forces relinking
  13909. hardcode_minus_L_F77=yes
  13910. hardcode_libdir_flag_spec_F77='-L$libdir'
  13911. hardcode_libdir_separator_F77=
  13912. fi
  13913. esac
  13914. shared_flag='-shared'
  13915. else
  13916. # not using gcc
  13917. if test "$host_cpu" = ia64; then
  13918. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13919. # chokes on -Wl,-G. The following line is correct:
  13920. shared_flag='-G'
  13921. else
  13922. if test "$aix_use_runtimelinking" = yes; then
  13923. shared_flag='${wl}-G'
  13924. else
  13925. shared_flag='${wl}-bM:SRE'
  13926. fi
  13927. fi
  13928. fi
  13929. # It seems that -bexpall does not export symbols beginning with
  13930. # underscore (_), so it is better to generate a list of symbols to export.
  13931. always_export_symbols_F77=yes
  13932. if test "$aix_use_runtimelinking" = yes; then
  13933. # Warning - without using the other runtime loading flags (-brtl),
  13934. # -berok will link without error, but may produce a broken library.
  13935. allow_undefined_flag_F77='-berok'
  13936. # Determine the default libpath from the value encoded in an empty executable.
  13937. cat >conftest.$ac_ext <<_ACEOF
  13938. program main
  13939. end
  13940. _ACEOF
  13941. rm -f conftest.$ac_objext conftest$ac_exeext
  13942. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13943. (eval $ac_link) 2>conftest.er1
  13944. ac_status=$?
  13945. grep -v '^ *+' conftest.er1 >conftest.err
  13946. rm -f conftest.er1
  13947. cat conftest.err >&5
  13948. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13949. (exit $ac_status); } &&
  13950. { ac_try='test -z "$ac_f77_werror_flag"
  13951. || test ! -s conftest.err'
  13952. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13953. (eval $ac_try) 2>&5
  13954. ac_status=$?
  13955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13956. (exit $ac_status); }; } &&
  13957. { ac_try='test -s conftest$ac_exeext'
  13958. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13959. (eval $ac_try) 2>&5
  13960. ac_status=$?
  13961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13962. (exit $ac_status); }; }; then
  13963. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13964. }'`
  13965. # Check for a 64-bit object if we didn't find anything.
  13966. 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; }
  13967. }'`; fi
  13968. else
  13969. echo "$as_me: failed program was:" >&5
  13970. sed 's/^/| /' conftest.$ac_ext >&5
  13971. fi
  13972. rm -f conftest.err conftest.$ac_objext \
  13973. conftest$ac_exeext conftest.$ac_ext
  13974. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13975. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13976. archive_expsym_cmds_F77="\$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}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  13977. else
  13978. if test "$host_cpu" = ia64; then
  13979. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  13980. allow_undefined_flag_F77="-z nodefs"
  13981. archive_expsym_cmds_F77="\$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"
  13982. else
  13983. # Determine the default libpath from the value encoded in an empty executable.
  13984. cat >conftest.$ac_ext <<_ACEOF
  13985. program main
  13986. end
  13987. _ACEOF
  13988. rm -f conftest.$ac_objext conftest$ac_exeext
  13989. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13990. (eval $ac_link) 2>conftest.er1
  13991. ac_status=$?
  13992. grep -v '^ *+' conftest.er1 >conftest.err
  13993. rm -f conftest.er1
  13994. cat conftest.err >&5
  13995. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13996. (exit $ac_status); } &&
  13997. { ac_try='test -z "$ac_f77_werror_flag"
  13998. || test ! -s conftest.err'
  13999. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14000. (eval $ac_try) 2>&5
  14001. ac_status=$?
  14002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14003. (exit $ac_status); }; } &&
  14004. { ac_try='test -s conftest$ac_exeext'
  14005. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14006. (eval $ac_try) 2>&5
  14007. ac_status=$?
  14008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14009. (exit $ac_status); }; }; then
  14010. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14011. }'`
  14012. # Check for a 64-bit object if we didn't find anything.
  14013. 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; }
  14014. }'`; fi
  14015. else
  14016. echo "$as_me: failed program was:" >&5
  14017. sed 's/^/| /' conftest.$ac_ext >&5
  14018. fi
  14019. rm -f conftest.err conftest.$ac_objext \
  14020. conftest$ac_exeext conftest.$ac_ext
  14021. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14022. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  14023. # Warning - without using the other run time loading flags,
  14024. # -berok will link without error, but may produce a broken library.
  14025. no_undefined_flag_F77=' ${wl}-bernotok'
  14026. allow_undefined_flag_F77=' ${wl}-berok'
  14027. # -bexpall does not export symbols beginning with underscore (_)
  14028. always_export_symbols_F77=yes
  14029. # Exported symbols can be pulled into shared objects from archives
  14030. whole_archive_flag_spec_F77=' '
  14031. archive_cmds_need_lc_F77=yes
  14032. # This is similar to how AIX traditionally builds it's shared libraries.
  14033. archive_expsym_cmds_F77="\$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'
  14034. fi
  14035. fi
  14036. ;;
  14037. amigaos*)
  14038. archive_cmds_F77='$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)'
  14039. hardcode_libdir_flag_spec_F77='-L$libdir'
  14040. hardcode_minus_L_F77=yes
  14041. # see comment about different semantics on the GNU ld section
  14042. ld_shlibs_F77=no
  14043. ;;
  14044. bsdi4*)
  14045. export_dynamic_flag_spec_F77=-rdynamic
  14046. ;;
  14047. cygwin* | mingw* | pw32*)
  14048. # When not using gcc, we currently assume that we are using
  14049. # Microsoft Visual C++.
  14050. # hardcode_libdir_flag_spec is actually meaningless, as there is
  14051. # no search path for DLLs.
  14052. hardcode_libdir_flag_spec_F77=' '
  14053. allow_undefined_flag_F77=unsupported
  14054. # Tell ltmain to make .lib files, not .a files.
  14055. libext=lib
  14056. # Tell ltmain to make .dll files, not .so files.
  14057. shrext=".dll"
  14058. # FIXME: Setting linknames here is a bad hack.
  14059. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  14060. # The linker will automatically build a .lib file if we build a DLL.
  14061. old_archive_From_new_cmds_F77='true'
  14062. # FIXME: Should let the user specify the lib program.
  14063. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  14064. fix_srcfile_path='`cygpath -w "$srcfile"`'
  14065. enable_shared_with_static_runtimes_F77=yes
  14066. ;;
  14067. darwin* | rhapsody*)
  14068. if test "$GXX" = yes ; then
  14069. archive_cmds_need_lc_F77=no
  14070. case "$host_os" in
  14071. rhapsody* | darwin1.[012])
  14072. allow_undefined_flag_F77='-undefined suppress'
  14073. ;;
  14074. *) # Darwin 1.3 on
  14075. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  14076. allow_undefined_flag_F77='-flat_namespace -undefined suppress'
  14077. else
  14078. case ${MACOSX_DEPLOYMENT_TARGET} in
  14079. 10.[012])
  14080. allow_undefined_flag_F77='-flat_namespace -undefined suppress'
  14081. ;;
  14082. 10.*)
  14083. allow_undefined_flag_F77='-undefined dynamic_lookup'
  14084. ;;
  14085. esac
  14086. fi
  14087. ;;
  14088. esac
  14089. lt_int_apple_cc_single_mod=no
  14090. output_verbose_link_cmd='echo'
  14091. if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  14092. lt_int_apple_cc_single_mod=yes
  14093. fi
  14094. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  14095. archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  14096. else
  14097. archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  14098. fi
  14099. module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  14100. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  14101. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  14102. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  14103. else
  14104. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  14105. fi
  14106. module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  14107. hardcode_direct_F77=no
  14108. hardcode_automatic_F77=yes
  14109. hardcode_shlibpath_var_F77=unsupported
  14110. whole_archive_flag_spec_F77='-all_load $convenience'
  14111. link_all_deplibs_F77=yes
  14112. else
  14113. ld_shlibs_F77=no
  14114. fi
  14115. ;;
  14116. dgux*)
  14117. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14118. hardcode_libdir_flag_spec_F77='-L$libdir'
  14119. hardcode_shlibpath_var_F77=no
  14120. ;;
  14121. freebsd1*)
  14122. ld_shlibs_F77=no
  14123. ;;
  14124. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  14125. # support. Future versions do this automatically, but an explicit c++rt0.o
  14126. # does not break anything, and helps significantly (at the cost of a little
  14127. # extra space).
  14128. freebsd2.2*)
  14129. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  14130. hardcode_libdir_flag_spec_F77='-R$libdir'
  14131. hardcode_direct_F77=yes
  14132. hardcode_shlibpath_var_F77=no
  14133. ;;
  14134. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  14135. freebsd2*)
  14136. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14137. hardcode_direct_F77=yes
  14138. hardcode_minus_L_F77=yes
  14139. hardcode_shlibpath_var_F77=no
  14140. ;;
  14141. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  14142. freebsd* | kfreebsd*-gnu)
  14143. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  14144. hardcode_libdir_flag_spec_F77='-R$libdir'
  14145. hardcode_direct_F77=yes
  14146. hardcode_shlibpath_var_F77=no
  14147. ;;
  14148. hpux9*)
  14149. if test "$GCC" = yes; then
  14150. archive_cmds_F77='$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'
  14151. else
  14152. archive_cmds_F77='$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'
  14153. fi
  14154. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  14155. hardcode_libdir_separator_F77=:
  14156. hardcode_direct_F77=yes
  14157. # hardcode_minus_L: Not really in the search PATH,
  14158. # but as the default location of the library.
  14159. hardcode_minus_L_F77=yes
  14160. export_dynamic_flag_spec_F77='${wl}-E'
  14161. ;;
  14162. hpux10* | hpux11*)
  14163. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  14164. case "$host_cpu" in
  14165. hppa*64*|ia64*)
  14166. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14167. ;;
  14168. *)
  14169. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14170. ;;
  14171. esac
  14172. else
  14173. case "$host_cpu" in
  14174. hppa*64*|ia64*)
  14175. archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  14176. ;;
  14177. *)
  14178. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  14179. ;;
  14180. esac
  14181. fi
  14182. if test "$with_gnu_ld" = no; then
  14183. case "$host_cpu" in
  14184. hppa*64*)
  14185. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  14186. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  14187. hardcode_libdir_separator_F77=:
  14188. hardcode_direct_F77=no
  14189. hardcode_shlibpath_var_F77=no
  14190. ;;
  14191. ia64*)
  14192. hardcode_libdir_flag_spec_F77='-L$libdir'
  14193. hardcode_direct_F77=no
  14194. hardcode_shlibpath_var_F77=no
  14195. # hardcode_minus_L: Not really in the search PATH,
  14196. # but as the default location of the library.
  14197. hardcode_minus_L_F77=yes
  14198. ;;
  14199. *)
  14200. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  14201. hardcode_libdir_separator_F77=:
  14202. hardcode_direct_F77=yes
  14203. export_dynamic_flag_spec_F77='${wl}-E'
  14204. # hardcode_minus_L: Not really in the search PATH,
  14205. # but as the default location of the library.
  14206. hardcode_minus_L_F77=yes
  14207. ;;
  14208. esac
  14209. fi
  14210. ;;
  14211. irix5* | irix6* | nonstopux*)
  14212. if test "$GCC" = yes; then
  14213. archive_cmds_F77='$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'
  14214. else
  14215. archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  14216. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  14217. fi
  14218. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  14219. hardcode_libdir_separator_F77=:
  14220. link_all_deplibs_F77=yes
  14221. ;;
  14222. netbsd*)
  14223. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14224. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  14225. else
  14226. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  14227. fi
  14228. hardcode_libdir_flag_spec_F77='-R$libdir'
  14229. hardcode_direct_F77=yes
  14230. hardcode_shlibpath_var_F77=no
  14231. ;;
  14232. newsos6)
  14233. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14234. hardcode_direct_F77=yes
  14235. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  14236. hardcode_libdir_separator_F77=:
  14237. hardcode_shlibpath_var_F77=no
  14238. ;;
  14239. openbsd*)
  14240. hardcode_direct_F77=yes
  14241. hardcode_shlibpath_var_F77=no
  14242. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14243. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14244. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  14245. export_dynamic_flag_spec_F77='${wl}-E'
  14246. else
  14247. case $host_os in
  14248. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  14249. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14250. hardcode_libdir_flag_spec_F77='-R$libdir'
  14251. ;;
  14252. *)
  14253. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14254. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  14255. ;;
  14256. esac
  14257. fi
  14258. ;;
  14259. os2*)
  14260. hardcode_libdir_flag_spec_F77='-L$libdir'
  14261. hardcode_minus_L_F77=yes
  14262. allow_undefined_flag_F77=unsupported
  14263. archive_cmds_F77='$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'
  14264. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  14265. ;;
  14266. osf3*)
  14267. if test "$GCC" = yes; then
  14268. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  14269. archive_cmds_F77='$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'
  14270. else
  14271. allow_undefined_flag_F77=' -expect_unresolved \*'
  14272. archive_cmds_F77='$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'
  14273. fi
  14274. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  14275. hardcode_libdir_separator_F77=:
  14276. ;;
  14277. osf4* | osf5*) # as osf3* with the addition of -msym flag
  14278. if test "$GCC" = yes; then
  14279. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  14280. archive_cmds_F77='$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'
  14281. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  14282. else
  14283. allow_undefined_flag_F77=' -expect_unresolved \*'
  14284. archive_cmds_F77='$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'
  14285. archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  14286. $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'
  14287. # Both c and cxx compiler support -rpath directly
  14288. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  14289. fi
  14290. hardcode_libdir_separator_F77=:
  14291. ;;
  14292. sco3.2v5*)
  14293. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14294. hardcode_shlibpath_var_F77=no
  14295. export_dynamic_flag_spec_F77='${wl}-Bexport'
  14296. runpath_var=LD_RUN_PATH
  14297. hardcode_runpath_var=yes
  14298. ;;
  14299. solaris*)
  14300. no_undefined_flag_F77=' -z text'
  14301. if test "$GCC" = yes; then
  14302. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14303. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14304. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  14305. else
  14306. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14307. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14308. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  14309. fi
  14310. hardcode_libdir_flag_spec_F77='-R$libdir'
  14311. hardcode_shlibpath_var_F77=no
  14312. case $host_os in
  14313. solaris2.[0-5] | solaris2.[0-5].*) ;;
  14314. *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  14315. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  14316. esac
  14317. link_all_deplibs_F77=yes
  14318. ;;
  14319. sunos4*)
  14320. if test "x$host_vendor" = xsequent; then
  14321. # Use $CC to link under sequent, because it throws in some extra .o
  14322. # files that make .init and .fini sections work.
  14323. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  14324. else
  14325. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  14326. fi
  14327. hardcode_libdir_flag_spec_F77='-L$libdir'
  14328. hardcode_direct_F77=yes
  14329. hardcode_minus_L_F77=yes
  14330. hardcode_shlibpath_var_F77=no
  14331. ;;
  14332. sysv4)
  14333. case $host_vendor in
  14334. sni)
  14335. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14336. hardcode_direct_F77=yes # is this really true???
  14337. ;;
  14338. siemens)
  14339. ## LD is ld it makes a PLAMLIB
  14340. ## CC just makes a GrossModule.
  14341. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  14342. reload_cmds_F77='$CC -r -o $output$reload_objs'
  14343. hardcode_direct_F77=no
  14344. ;;
  14345. motorola)
  14346. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14347. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  14348. ;;
  14349. esac
  14350. runpath_var='LD_RUN_PATH'
  14351. hardcode_shlibpath_var_F77=no
  14352. ;;
  14353. sysv4.3*)
  14354. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14355. hardcode_shlibpath_var_F77=no
  14356. export_dynamic_flag_spec_F77='-Bexport'
  14357. ;;
  14358. sysv4*MP*)
  14359. if test -d /usr/nec; then
  14360. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14361. hardcode_shlibpath_var_F77=no
  14362. runpath_var=LD_RUN_PATH
  14363. hardcode_runpath_var=yes
  14364. ld_shlibs_F77=yes
  14365. fi
  14366. ;;
  14367. sysv4.2uw2*)
  14368. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  14369. hardcode_direct_F77=yes
  14370. hardcode_minus_L_F77=no
  14371. hardcode_shlibpath_var_F77=no
  14372. hardcode_runpath_var=yes
  14373. runpath_var=LD_RUN_PATH
  14374. ;;
  14375. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  14376. no_undefined_flag_F77='${wl}-z ${wl}text'
  14377. if test "$GCC" = yes; then
  14378. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14379. else
  14380. archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14381. fi
  14382. runpath_var='LD_RUN_PATH'
  14383. hardcode_shlibpath_var_F77=no
  14384. ;;
  14385. sysv5*)
  14386. no_undefined_flag_F77=' -z text'
  14387. # $CC -shared without GNU ld will not create a library from C++
  14388. # object files and a static libstdc++, better avoid it by now
  14389. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14390. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14391. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  14392. hardcode_libdir_flag_spec_F77=
  14393. hardcode_shlibpath_var_F77=no
  14394. runpath_var='LD_RUN_PATH'
  14395. ;;
  14396. uts4*)
  14397. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14398. hardcode_libdir_flag_spec_F77='-L$libdir'
  14399. hardcode_shlibpath_var_F77=no
  14400. ;;
  14401. *)
  14402. ld_shlibs_F77=no
  14403. ;;
  14404. esac
  14405. fi
  14406. echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  14407. echo "${ECHO_T}$ld_shlibs_F77" >&6
  14408. test "$ld_shlibs_F77" = no && can_build_shared=no
  14409. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14410. if test "$GCC" = yes; then
  14411. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14412. fi
  14413. #
  14414. # Do we need to explicitly link libc?
  14415. #
  14416. case "x$archive_cmds_need_lc_F77" in
  14417. x|xyes)
  14418. # Assume -lc should be added
  14419. archive_cmds_need_lc_F77=yes
  14420. if test "$enable_shared" = yes && test "$GCC" = yes; then
  14421. case $archive_cmds_F77 in
  14422. *'~'*)
  14423. # FIXME: we may have to deal with multi-command sequences.
  14424. ;;
  14425. '$CC '*)
  14426. # Test whether the compiler implicitly links with -lc since on some
  14427. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14428. # to ld, don't add -lc before -lgcc.
  14429. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  14430. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  14431. $rm conftest*
  14432. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14433. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14434. (eval $ac_compile) 2>&5
  14435. ac_status=$?
  14436. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14437. (exit $ac_status); } 2>conftest.err; then
  14438. soname=conftest
  14439. lib=conftest
  14440. libobjs=conftest.$ac_objext
  14441. deplibs=
  14442. wl=$lt_prog_compiler_wl_F77
  14443. compiler_flags=-v
  14444. linker_flags=-v
  14445. verstring=
  14446. output_objdir=.
  14447. libname=conftest
  14448. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  14449. allow_undefined_flag_F77=
  14450. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  14451. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14452. ac_status=$?
  14453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14454. (exit $ac_status); }
  14455. then
  14456. archive_cmds_need_lc_F77=no
  14457. else
  14458. archive_cmds_need_lc_F77=yes
  14459. fi
  14460. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  14461. else
  14462. cat conftest.err 1>&5
  14463. fi
  14464. $rm conftest*
  14465. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  14466. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
  14467. ;;
  14468. esac
  14469. fi
  14470. ;;
  14471. esac
  14472. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  14473. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  14474. library_names_spec=
  14475. libname_spec='lib$name'
  14476. soname_spec=
  14477. shrext=".so"
  14478. postinstall_cmds=
  14479. postuninstall_cmds=
  14480. finish_cmds=
  14481. finish_eval=
  14482. shlibpath_var=
  14483. shlibpath_overrides_runpath=unknown
  14484. version_type=none
  14485. dynamic_linker="$host_os ld.so"
  14486. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14487. if test "$GCC" = yes; then
  14488. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14489. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  14490. # if the path contains ";" then we assume it to be the separator
  14491. # otherwise default to the standard path separator (i.e. ":") - it is
  14492. # assumed that no part of a normal pathname contains ";" but that should
  14493. # okay in the real world where ";" in dirpaths is itself problematic.
  14494. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14495. else
  14496. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14497. fi
  14498. else
  14499. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14500. fi
  14501. need_lib_prefix=unknown
  14502. hardcode_into_libs=no
  14503. # when you set need_version to no, make sure it does not cause -set_version
  14504. # flags to be left without arguments
  14505. need_version=unknown
  14506. case $host_os in
  14507. aix3*)
  14508. version_type=linux
  14509. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  14510. shlibpath_var=LIBPATH
  14511. # AIX 3 has no versioning support, so we append a major version to the name.
  14512. soname_spec='${libname}${release}${shared_ext}$major'
  14513. ;;
  14514. aix4* | aix5*)
  14515. version_type=linux
  14516. need_lib_prefix=no
  14517. need_version=no
  14518. hardcode_into_libs=yes
  14519. if test "$host_cpu" = ia64; then
  14520. # AIX 5 supports IA64
  14521. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  14522. shlibpath_var=LD_LIBRARY_PATH
  14523. else
  14524. # With GCC up to 2.95.x, collect2 would create an import file
  14525. # for dependence libraries. The import file would start with
  14526. # the line `#! .'. This would cause the generated library to
  14527. # depend on `.', always an invalid library. This was fixed in
  14528. # development snapshots of GCC prior to 3.0.
  14529. case $host_os in
  14530. aix4 | aix4.[01] | aix4.[01].*)
  14531. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14532. echo ' yes '
  14533. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  14534. :
  14535. else
  14536. can_build_shared=no
  14537. fi
  14538. ;;
  14539. esac
  14540. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  14541. # soname into executable. Probably we can add versioning support to
  14542. # collect2, so additional links can be useful in future.
  14543. if test "$aix_use_runtimelinking" = yes; then
  14544. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14545. # instead of lib<name>.a to let people know that these are not
  14546. # typical AIX shared libraries.
  14547. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14548. else
  14549. # We preserve .a as extension for shared libraries through AIX4.2
  14550. # and later when we are not doing run time linking.
  14551. library_names_spec='${libname}${release}.a $libname.a'
  14552. soname_spec='${libname}${release}${shared_ext}$major'
  14553. fi
  14554. shlibpath_var=LIBPATH
  14555. fi
  14556. ;;
  14557. amigaos*)
  14558. library_names_spec='$libname.ixlibrary $libname.a'
  14559. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14560. 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'
  14561. ;;
  14562. beos*)
  14563. library_names_spec='${libname}${shared_ext}'
  14564. dynamic_linker="$host_os ld.so"
  14565. shlibpath_var=LIBRARY_PATH
  14566. ;;
  14567. bsdi4*)
  14568. version_type=linux
  14569. need_version=no
  14570. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14571. soname_spec='${libname}${release}${shared_ext}$major'
  14572. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14573. shlibpath_var=LD_LIBRARY_PATH
  14574. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14575. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14576. # the default ld.so.conf also contains /usr/contrib/lib and
  14577. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14578. # libtool to hard-code these into programs
  14579. ;;
  14580. cygwin* | mingw* | pw32*)
  14581. version_type=windows
  14582. shrext=".dll"
  14583. need_version=no
  14584. need_lib_prefix=no
  14585. case $GCC,$host_os in
  14586. yes,cygwin* | yes,mingw* | yes,pw32*)
  14587. library_names_spec='$libname.dll.a'
  14588. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14589. postinstall_cmds='base_file=`basename \${file}`~
  14590. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  14591. dldir=$destdir/`dirname \$dlpath`~
  14592. test -d \$dldir || mkdir -p \$dldir~
  14593. $install_prog $dir/$dlname \$dldir/$dlname'
  14594. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14595. dlpath=$dir/\$dldll~
  14596. $rm \$dlpath'
  14597. shlibpath_overrides_runpath=yes
  14598. case $host_os in
  14599. cygwin*)
  14600. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14601. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14602. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  14603. ;;
  14604. mingw*)
  14605. # MinGW DLLs use traditional 'lib' prefix
  14606. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14607. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14608. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  14609. # It is most probably a Windows format PATH printed by
  14610. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  14611. # path with ; separators, and with drive letters. We can handle the
  14612. # drive letters (cygwin fileutils understands them), so leave them,
  14613. # especially as we might pass files found there to a mingw objdump,
  14614. # which wouldn't understand a cygwinified path. Ahh.
  14615. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14616. else
  14617. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14618. fi
  14619. ;;
  14620. pw32*)
  14621. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14622. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  14623. ;;
  14624. esac
  14625. ;;
  14626. *)
  14627. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  14628. ;;
  14629. esac
  14630. dynamic_linker='Win32 ld.exe'
  14631. # FIXME: first we should search . and the directory the executable is in
  14632. shlibpath_var=PATH
  14633. ;;
  14634. darwin* | rhapsody*)
  14635. dynamic_linker="$host_os dyld"
  14636. version_type=darwin
  14637. need_lib_prefix=no
  14638. need_version=no
  14639. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  14640. soname_spec='${libname}${release}${major}$shared_ext'
  14641. shlibpath_overrides_runpath=yes
  14642. shlibpath_var=DYLD_LIBRARY_PATH
  14643. shrext='$(test .$module = .yes && echo .so || echo .dylib)'
  14644. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  14645. if test "$GCC" = yes; then
  14646. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  14647. else
  14648. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  14649. fi
  14650. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14651. ;;
  14652. dgux*)
  14653. version_type=linux
  14654. need_lib_prefix=no
  14655. need_version=no
  14656. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  14657. soname_spec='${libname}${release}${shared_ext}$major'
  14658. shlibpath_var=LD_LIBRARY_PATH
  14659. ;;
  14660. freebsd1*)
  14661. dynamic_linker=no
  14662. ;;
  14663. kfreebsd*-gnu)
  14664. version_type=linux
  14665. need_lib_prefix=no
  14666. need_version=no
  14667. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14668. soname_spec='${libname}${release}${shared_ext}$major'
  14669. shlibpath_var=LD_LIBRARY_PATH
  14670. shlibpath_overrides_runpath=no
  14671. hardcode_into_libs=yes
  14672. dynamic_linker='GNU ld.so'
  14673. ;;
  14674. freebsd*)
  14675. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  14676. version_type=freebsd-$objformat
  14677. case $version_type in
  14678. freebsd-elf*)
  14679. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14680. need_version=no
  14681. need_lib_prefix=no
  14682. ;;
  14683. freebsd-*)
  14684. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  14685. need_version=yes
  14686. ;;
  14687. esac
  14688. shlibpath_var=LD_LIBRARY_PATH
  14689. case $host_os in
  14690. freebsd2*)
  14691. shlibpath_overrides_runpath=yes
  14692. ;;
  14693. freebsd3.01* | freebsdelf3.01*)
  14694. shlibpath_overrides_runpath=yes
  14695. hardcode_into_libs=yes
  14696. ;;
  14697. *) # from 3.2 on
  14698. shlibpath_overrides_runpath=no
  14699. hardcode_into_libs=yes
  14700. ;;
  14701. esac
  14702. ;;
  14703. gnu*)
  14704. version_type=linux
  14705. need_lib_prefix=no
  14706. need_version=no
  14707. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  14708. soname_spec='${libname}${release}${shared_ext}$major'
  14709. shlibpath_var=LD_LIBRARY_PATH
  14710. hardcode_into_libs=yes
  14711. ;;
  14712. hpux9* | hpux10* | hpux11*)
  14713. # Give a soname corresponding to the major version so that dld.sl refuses to
  14714. # link against other versions.
  14715. version_type=sunos
  14716. need_lib_prefix=no
  14717. need_version=no
  14718. case "$host_cpu" in
  14719. ia64*)
  14720. shrext='.so'
  14721. hardcode_into_libs=yes
  14722. dynamic_linker="$host_os dld.so"
  14723. shlibpath_var=LD_LIBRARY_PATH
  14724. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14725. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14726. soname_spec='${libname}${release}${shared_ext}$major'
  14727. if test "X$HPUX_IA64_MODE" = X32; then
  14728. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14729. else
  14730. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14731. fi
  14732. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14733. ;;
  14734. hppa*64*)
  14735. shrext='.sl'
  14736. hardcode_into_libs=yes
  14737. dynamic_linker="$host_os dld.sl"
  14738. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14739. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14740. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14741. soname_spec='${libname}${release}${shared_ext}$major'
  14742. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14743. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14744. ;;
  14745. *)
  14746. shrext='.sl'
  14747. dynamic_linker="$host_os dld.sl"
  14748. shlibpath_var=SHLIB_PATH
  14749. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14750. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14751. soname_spec='${libname}${release}${shared_ext}$major'
  14752. ;;
  14753. esac
  14754. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  14755. postinstall_cmds='chmod 555 $lib'
  14756. ;;
  14757. irix5* | irix6* | nonstopux*)
  14758. case $host_os in
  14759. nonstopux*) version_type=nonstopux ;;
  14760. *)
  14761. if test "$lt_cv_prog_gnu_ld" = yes; then
  14762. version_type=linux
  14763. else
  14764. version_type=irix
  14765. fi ;;
  14766. esac
  14767. need_lib_prefix=no
  14768. need_version=no
  14769. soname_spec='${libname}${release}${shared_ext}$major'
  14770. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  14771. case $host_os in
  14772. irix5* | nonstopux*)
  14773. libsuff= shlibsuff=
  14774. ;;
  14775. *)
  14776. case $LD in # libtool.m4 will add one of these switches to LD
  14777. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14778. libsuff= shlibsuff= libmagic=32-bit;;
  14779. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14780. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14781. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14782. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14783. *) libsuff= shlibsuff= libmagic=never-match;;
  14784. esac
  14785. ;;
  14786. esac
  14787. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14788. shlibpath_overrides_runpath=no
  14789. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  14790. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  14791. hardcode_into_libs=yes
  14792. ;;
  14793. # No shared lib support for Linux oldld, aout, or coff.
  14794. linux*oldld* | linux*aout* | linux*coff*)
  14795. dynamic_linker=no
  14796. ;;
  14797. # This must be Linux ELF.
  14798. linux*)
  14799. version_type=linux
  14800. need_lib_prefix=no
  14801. need_version=no
  14802. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14803. soname_spec='${libname}${release}${shared_ext}$major'
  14804. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14805. shlibpath_var=LD_LIBRARY_PATH
  14806. shlibpath_overrides_runpath=no
  14807. # This implies no fast_install, which is unacceptable.
  14808. # Some rework will be needed to allow for fast_install
  14809. # before this can be enabled.
  14810. hardcode_into_libs=yes
  14811. # Append ld.so.conf contents to the search path
  14812. if test -f /etc/ld.so.conf; then
  14813. ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
  14814. sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
  14815. fi
  14816. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14817. # powerpc, because MkLinux only supported shared libraries with the
  14818. # GNU dynamic linker. Since this was broken with cross compilers,
  14819. # most powerpc-linux boxes support dynamic linking these days and
  14820. # people can always --disable-shared, the test was removed, and we
  14821. # assume the GNU/Linux dynamic linker is in use.
  14822. dynamic_linker='GNU/Linux ld.so'
  14823. ;;
  14824. knetbsd*-gnu)
  14825. version_type=linux
  14826. need_lib_prefix=no
  14827. need_version=no
  14828. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14829. soname_spec='${libname}${release}${shared_ext}$major'
  14830. shlibpath_var=LD_LIBRARY_PATH
  14831. shlibpath_overrides_runpath=no
  14832. hardcode_into_libs=yes
  14833. dynamic_linker='GNU ld.so'
  14834. ;;
  14835. netbsd*)
  14836. version_type=sunos
  14837. need_lib_prefix=no
  14838. need_version=no
  14839. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14840. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14841. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14842. dynamic_linker='NetBSD (a.out) ld.so'
  14843. else
  14844. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14845. soname_spec='${libname}${release}${shared_ext}$major'
  14846. dynamic_linker='NetBSD ld.elf_so'
  14847. fi
  14848. shlibpath_var=LD_LIBRARY_PATH
  14849. shlibpath_overrides_runpath=yes
  14850. hardcode_into_libs=yes
  14851. ;;
  14852. newsos6)
  14853. version_type=linux
  14854. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14855. shlibpath_var=LD_LIBRARY_PATH
  14856. shlibpath_overrides_runpath=yes
  14857. ;;
  14858. nto-qnx*)
  14859. version_type=linux
  14860. need_lib_prefix=no
  14861. need_version=no
  14862. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14863. soname_spec='${libname}${release}${shared_ext}$major'
  14864. shlibpath_var=LD_LIBRARY_PATH
  14865. shlibpath_overrides_runpath=yes
  14866. ;;
  14867. openbsd*)
  14868. version_type=sunos
  14869. need_lib_prefix=no
  14870. need_version=yes
  14871. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14872. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14873. shlibpath_var=LD_LIBRARY_PATH
  14874. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14875. case $host_os in
  14876. openbsd2.[89] | openbsd2.[89].*)
  14877. shlibpath_overrides_runpath=no
  14878. ;;
  14879. *)
  14880. shlibpath_overrides_runpath=yes
  14881. ;;
  14882. esac
  14883. else
  14884. shlibpath_overrides_runpath=yes
  14885. fi
  14886. ;;
  14887. os2*)
  14888. libname_spec='$name'
  14889. shrext=".dll"
  14890. need_lib_prefix=no
  14891. library_names_spec='$libname${shared_ext} $libname.a'
  14892. dynamic_linker='OS/2 ld.exe'
  14893. shlibpath_var=LIBPATH
  14894. ;;
  14895. osf3* | osf4* | osf5*)
  14896. version_type=osf
  14897. need_lib_prefix=no
  14898. need_version=no
  14899. soname_spec='${libname}${release}${shared_ext}$major'
  14900. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14901. shlibpath_var=LD_LIBRARY_PATH
  14902. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14903. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  14904. ;;
  14905. sco3.2v5*)
  14906. version_type=osf
  14907. soname_spec='${libname}${release}${shared_ext}$major'
  14908. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14909. shlibpath_var=LD_LIBRARY_PATH
  14910. ;;
  14911. solaris*)
  14912. version_type=linux
  14913. need_lib_prefix=no
  14914. need_version=no
  14915. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14916. soname_spec='${libname}${release}${shared_ext}$major'
  14917. shlibpath_var=LD_LIBRARY_PATH
  14918. shlibpath_overrides_runpath=yes
  14919. hardcode_into_libs=yes
  14920. # ldd complains unless libraries are executable
  14921. postinstall_cmds='chmod +x $lib'
  14922. ;;
  14923. sunos4*)
  14924. version_type=sunos
  14925. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14926. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14927. shlibpath_var=LD_LIBRARY_PATH
  14928. shlibpath_overrides_runpath=yes
  14929. if test "$with_gnu_ld" = yes; then
  14930. need_lib_prefix=no
  14931. fi
  14932. need_version=yes
  14933. ;;
  14934. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  14935. version_type=linux
  14936. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14937. soname_spec='${libname}${release}${shared_ext}$major'
  14938. shlibpath_var=LD_LIBRARY_PATH
  14939. case $host_vendor in
  14940. sni)
  14941. shlibpath_overrides_runpath=no
  14942. need_lib_prefix=no
  14943. export_dynamic_flag_spec='${wl}-Blargedynsym'
  14944. runpath_var=LD_RUN_PATH
  14945. ;;
  14946. siemens)
  14947. need_lib_prefix=no
  14948. ;;
  14949. motorola)
  14950. need_lib_prefix=no
  14951. need_version=no
  14952. shlibpath_overrides_runpath=no
  14953. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14954. ;;
  14955. esac
  14956. ;;
  14957. sysv4*MP*)
  14958. if test -d /usr/nec ;then
  14959. version_type=linux
  14960. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  14961. soname_spec='$libname${shared_ext}.$major'
  14962. shlibpath_var=LD_LIBRARY_PATH
  14963. fi
  14964. ;;
  14965. uts4*)
  14966. version_type=linux
  14967. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14968. soname_spec='${libname}${release}${shared_ext}$major'
  14969. shlibpath_var=LD_LIBRARY_PATH
  14970. ;;
  14971. *)
  14972. dynamic_linker=no
  14973. ;;
  14974. esac
  14975. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  14976. echo "${ECHO_T}$dynamic_linker" >&6
  14977. test "$dynamic_linker" = no && can_build_shared=no
  14978. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  14979. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  14980. hardcode_action_F77=
  14981. if test -n "$hardcode_libdir_flag_spec_F77" || \
  14982. test -n "$runpath_var F77" || \
  14983. test "X$hardcode_automatic_F77"="Xyes" ; then
  14984. # We can hardcode non-existant directories.
  14985. if test "$hardcode_direct_F77" != no &&
  14986. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14987. # have to relink, otherwise we might link with an installed library
  14988. # when we should be linking with a yet-to-be-installed one
  14989. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  14990. test "$hardcode_minus_L_F77" != no; then
  14991. # Linking always hardcodes the temporary library directory.
  14992. hardcode_action_F77=relink
  14993. else
  14994. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14995. hardcode_action_F77=immediate
  14996. fi
  14997. else
  14998. # We cannot hardcode anything, or else we can only hardcode existing
  14999. # directories.
  15000. hardcode_action_F77=unsupported
  15001. fi
  15002. echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  15003. echo "${ECHO_T}$hardcode_action_F77" >&6
  15004. if test "$hardcode_action_F77" = relink; then
  15005. # Fast installation is not supported
  15006. enable_fast_install=no
  15007. elif test "$shlibpath_overrides_runpath" = yes ||
  15008. test "$enable_shared" = no; then
  15009. # Fast installation is not necessary
  15010. enable_fast_install=needless
  15011. fi
  15012. striplib=
  15013. old_striplib=
  15014. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  15015. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  15016. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  15017. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  15018. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  15019. echo "$as_me:$LINENO: result: yes" >&5
  15020. echo "${ECHO_T}yes" >&6
  15021. else
  15022. # FIXME - insert some real tests, host_os isn't really good enough
  15023. case $host_os in
  15024. darwin*)
  15025. if test -n "$STRIP" ; then
  15026. striplib="$STRIP -x"
  15027. echo "$as_me:$LINENO: result: yes" >&5
  15028. echo "${ECHO_T}yes" >&6
  15029. else
  15030. echo "$as_me:$LINENO: result: no" >&5
  15031. echo "${ECHO_T}no" >&6
  15032. fi
  15033. ;;
  15034. *)
  15035. echo "$as_me:$LINENO: result: no" >&5
  15036. echo "${ECHO_T}no" >&6
  15037. ;;
  15038. esac
  15039. fi
  15040. # The else clause should only fire when bootstrapping the
  15041. # libtool distribution, otherwise you forgot to ship ltmain.sh
  15042. # with your package, and you will get complaints that there are
  15043. # no rules to generate ltmain.sh.
  15044. if test -f "$ltmain"; then
  15045. # See if we are running on zsh, and set the options which allow our commands through
  15046. # without removal of \ escapes.
  15047. if test -n "${ZSH_VERSION+set}" ; then
  15048. setopt NO_GLOB_SUBST
  15049. fi
  15050. # Now quote all the things that may contain metacharacters while being
  15051. # careful not to overquote the AC_SUBSTed values. We take copies of the
  15052. # variables and quote the copies for generation of the libtool script.
  15053. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  15054. SED SHELL STRIP \
  15055. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  15056. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  15057. deplibs_check_method reload_flag reload_cmds need_locks \
  15058. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  15059. lt_cv_sys_global_symbol_to_c_name_address \
  15060. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  15061. old_postinstall_cmds old_postuninstall_cmds \
  15062. compiler_F77 \
  15063. CC_F77 \
  15064. LD_F77 \
  15065. lt_prog_compiler_wl_F77 \
  15066. lt_prog_compiler_pic_F77 \
  15067. lt_prog_compiler_static_F77 \
  15068. lt_prog_compiler_no_builtin_flag_F77 \
  15069. export_dynamic_flag_spec_F77 \
  15070. thread_safe_flag_spec_F77 \
  15071. whole_archive_flag_spec_F77 \
  15072. enable_shared_with_static_runtimes_F77 \
  15073. old_archive_cmds_F77 \
  15074. old_archive_from_new_cmds_F77 \
  15075. predep_objects_F77 \
  15076. postdep_objects_F77 \
  15077. predeps_F77 \
  15078. postdeps_F77 \
  15079. compiler_lib_search_path_F77 \
  15080. archive_cmds_F77 \
  15081. archive_expsym_cmds_F77 \
  15082. postinstall_cmds_F77 \
  15083. postuninstall_cmds_F77 \
  15084. old_archive_from_expsyms_cmds_F77 \
  15085. allow_undefined_flag_F77 \
  15086. no_undefined_flag_F77 \
  15087. export_symbols_cmds_F77 \
  15088. hardcode_libdir_flag_spec_F77 \
  15089. hardcode_libdir_flag_spec_ld_F77 \
  15090. hardcode_libdir_separator_F77 \
  15091. hardcode_automatic_F77 \
  15092. module_cmds_F77 \
  15093. module_expsym_cmds_F77 \
  15094. lt_cv_prog_compiler_c_o_F77 \
  15095. exclude_expsyms_F77 \
  15096. include_expsyms_F77; do
  15097. case $var in
  15098. old_archive_cmds_F77 | \
  15099. old_archive_from_new_cmds_F77 | \
  15100. archive_cmds_F77 | \
  15101. archive_expsym_cmds_F77 | \
  15102. module_cmds_F77 | \
  15103. module_expsym_cmds_F77 | \
  15104. old_archive_from_expsyms_cmds_F77 | \
  15105. export_symbols_cmds_F77 | \
  15106. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  15107. postinstall_cmds | postuninstall_cmds | \
  15108. old_postinstall_cmds | old_postuninstall_cmds | \
  15109. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  15110. # Double-quote double-evaled strings.
  15111. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  15112. ;;
  15113. *)
  15114. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  15115. ;;
  15116. esac
  15117. done
  15118. case $lt_echo in
  15119. *'\$0 --fallback-echo"')
  15120. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  15121. ;;
  15122. esac
  15123. cfgfile="$ofile"
  15124. cat <<__EOF__ >> "$cfgfile"
  15125. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  15126. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15127. # Shell to use when invoking shell scripts.
  15128. SHELL=$lt_SHELL
  15129. # Whether or not to build shared libraries.
  15130. build_libtool_libs=$enable_shared
  15131. # Whether or not to build static libraries.
  15132. build_old_libs=$enable_static
  15133. # Whether or not to add -lc for building shared libraries.
  15134. build_libtool_need_lc=$archive_cmds_need_lc_F77
  15135. # Whether or not to disallow shared libs when runtime libs are static
  15136. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  15137. # Whether or not to optimize for fast installation.
  15138. fast_install=$enable_fast_install
  15139. # The host system.
  15140. host_alias=$host_alias
  15141. host=$host
  15142. # An echo program that does not interpret backslashes.
  15143. echo=$lt_echo
  15144. # The archiver.
  15145. AR=$lt_AR
  15146. AR_FLAGS=$lt_AR_FLAGS
  15147. # A C compiler.
  15148. LTCC=$lt_LTCC
  15149. # A language-specific compiler.
  15150. CC=$lt_compiler_F77
  15151. # Is the compiler the GNU C compiler?
  15152. with_gcc=$GCC_F77
  15153. # An ERE matcher.
  15154. EGREP=$lt_EGREP
  15155. # The linker used to build libraries.
  15156. LD=$lt_LD_F77
  15157. # Whether we need hard or soft links.
  15158. LN_S=$lt_LN_S
  15159. # A BSD-compatible nm program.
  15160. NM=$lt_NM
  15161. # A symbol stripping program
  15162. STRIP=$lt_STRIP
  15163. # Used to examine libraries when file_magic_cmd begins "file"
  15164. MAGIC_CMD=$MAGIC_CMD
  15165. # Used on cygwin: DLL creation program.
  15166. DLLTOOL="$DLLTOOL"
  15167. # Used on cygwin: object dumper.
  15168. OBJDUMP="$OBJDUMP"
  15169. # Used on cygwin: assembler.
  15170. AS="$AS"
  15171. # The name of the directory that contains temporary libtool files.
  15172. objdir=$objdir
  15173. # How to create reloadable object files.
  15174. reload_flag=$lt_reload_flag
  15175. reload_cmds=$lt_reload_cmds
  15176. # How to pass a linker flag through the compiler.
  15177. wl=$lt_lt_prog_compiler_wl_F77
  15178. # Object file suffix (normally "o").
  15179. objext="$ac_objext"
  15180. # Old archive suffix (normally "a").
  15181. libext="$libext"
  15182. # Shared library suffix (normally ".so").
  15183. shrext='$shrext'
  15184. # Executable file suffix (normally "").
  15185. exeext="$exeext"
  15186. # Additional compiler flags for building library objects.
  15187. pic_flag=$lt_lt_prog_compiler_pic_F77
  15188. pic_mode=$pic_mode
  15189. # What is the maximum length of a command?
  15190. max_cmd_len=$lt_cv_sys_max_cmd_len
  15191. # Does compiler simultaneously support -c and -o options?
  15192. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  15193. # Must we lock files when doing compilation ?
  15194. need_locks=$lt_need_locks
  15195. # Do we need the lib prefix for modules?
  15196. need_lib_prefix=$need_lib_prefix
  15197. # Do we need a version for libraries?
  15198. need_version=$need_version
  15199. # Whether dlopen is supported.
  15200. dlopen_support=$enable_dlopen
  15201. # Whether dlopen of programs is supported.
  15202. dlopen_self=$enable_dlopen_self
  15203. # Whether dlopen of statically linked programs is supported.
  15204. dlopen_self_static=$enable_dlopen_self_static
  15205. # Compiler flag to prevent dynamic linking.
  15206. link_static_flag=$lt_lt_prog_compiler_static_F77
  15207. # Compiler flag to turn off builtin functions.
  15208. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  15209. # Compiler flag to allow reflexive dlopens.
  15210. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  15211. # Compiler flag to generate shared objects directly from archives.
  15212. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  15213. # Compiler flag to generate thread-safe objects.
  15214. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  15215. # Library versioning type.
  15216. version_type=$version_type
  15217. # Format of library name prefix.
  15218. libname_spec=$lt_libname_spec
  15219. # List of archive names. First name is the real one, the rest are links.
  15220. # The last name is the one that the linker finds with -lNAME.
  15221. library_names_spec=$lt_library_names_spec
  15222. # The coded name of the library, if different from the real name.
  15223. soname_spec=$lt_soname_spec
  15224. # Commands used to build and install an old-style archive.
  15225. RANLIB=$lt_RANLIB
  15226. old_archive_cmds=$lt_old_archive_cmds_F77
  15227. old_postinstall_cmds=$lt_old_postinstall_cmds
  15228. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15229. # Create an old-style archive from a shared archive.
  15230. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  15231. # Create a temporary old-style archive to link instead of a shared archive.
  15232. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  15233. # Commands used to build and install a shared archive.
  15234. archive_cmds=$lt_archive_cmds_F77
  15235. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  15236. postinstall_cmds=$lt_postinstall_cmds
  15237. postuninstall_cmds=$lt_postuninstall_cmds
  15238. # Commands used to build a loadable module (assumed same as above if empty)
  15239. module_cmds=$lt_module_cmds_F77
  15240. module_expsym_cmds=$lt_module_expsym_cmds_F77
  15241. # Commands to strip libraries.
  15242. old_striplib=$lt_old_striplib
  15243. striplib=$lt_striplib
  15244. # Dependencies to place before the objects being linked to create a
  15245. # shared library.
  15246. predep_objects=$lt_predep_objects_F77
  15247. # Dependencies to place after the objects being linked to create a
  15248. # shared library.
  15249. postdep_objects=$lt_postdep_objects_F77
  15250. # Dependencies to place before the objects being linked to create a
  15251. # shared library.
  15252. predeps=$lt_predeps_F77
  15253. # Dependencies to place after the objects being linked to create a
  15254. # shared library.
  15255. postdeps=$lt_postdeps_F77
  15256. # The library search path used internally by the compiler when linking
  15257. # a shared library.
  15258. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  15259. # Method to check whether dependent libraries are shared objects.
  15260. deplibs_check_method=$lt_deplibs_check_method
  15261. # Command to use when deplibs_check_method == file_magic.
  15262. file_magic_cmd=$lt_file_magic_cmd
  15263. # Flag that allows shared libraries with undefined symbols to be built.
  15264. allow_undefined_flag=$lt_allow_undefined_flag_F77
  15265. # Flag that forces no undefined symbols.
  15266. no_undefined_flag=$lt_no_undefined_flag_F77
  15267. # Commands used to finish a libtool library installation in a directory.
  15268. finish_cmds=$lt_finish_cmds
  15269. # Same as above, but a single script fragment to be evaled but not shown.
  15270. finish_eval=$lt_finish_eval
  15271. # Take the output of nm and produce a listing of raw symbols and C names.
  15272. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15273. # Transform the output of nm in a proper C declaration
  15274. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15275. # Transform the output of nm in a C name address pair
  15276. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15277. # This is the shared library runtime path variable.
  15278. runpath_var=$runpath_var
  15279. # This is the shared library path variable.
  15280. shlibpath_var=$shlibpath_var
  15281. # Is shlibpath searched before the hard-coded library search path?
  15282. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15283. # How to hardcode a shared library path into an executable.
  15284. hardcode_action=$hardcode_action_F77
  15285. # Whether we should hardcode library paths into libraries.
  15286. hardcode_into_libs=$hardcode_into_libs
  15287. # Flag to hardcode \$libdir into a binary during linking.
  15288. # This must work even if \$libdir does not exist.
  15289. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  15290. # If ld is used when linking, flag to hardcode \$libdir into
  15291. # a binary during linking. This must work even if \$libdir does
  15292. # not exist.
  15293. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  15294. # Whether we need a single -rpath flag with a separated argument.
  15295. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  15296. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  15297. # resulting binary.
  15298. hardcode_direct=$hardcode_direct_F77
  15299. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  15300. # resulting binary.
  15301. hardcode_minus_L=$hardcode_minus_L_F77
  15302. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  15303. # the resulting binary.
  15304. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  15305. # Set to yes if building a shared library automatically hardcodes DIR into the library
  15306. # and all subsequent libraries and executables linked against it.
  15307. hardcode_automatic=$hardcode_automatic_F77
  15308. # Variables whose values should be saved in libtool wrapper scripts and
  15309. # restored at relink time.
  15310. variables_saved_for_relink="$variables_saved_for_relink"
  15311. # Whether libtool must link a program against all its dependency libraries.
  15312. link_all_deplibs=$link_all_deplibs_F77
  15313. # Compile-time system search path for libraries
  15314. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15315. # Run-time system search path for libraries
  15316. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15317. # Fix the shell variable \$srcfile for the compiler.
  15318. fix_srcfile_path="$fix_srcfile_path_F77"
  15319. # Set to yes if exported symbols are required.
  15320. always_export_symbols=$always_export_symbols_F77
  15321. # The commands to list exported symbols.
  15322. export_symbols_cmds=$lt_export_symbols_cmds_F77
  15323. # The commands to extract the exported symbol list from a shared archive.
  15324. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15325. # Symbols that should not be listed in the preloaded symbols.
  15326. exclude_expsyms=$lt_exclude_expsyms_F77
  15327. # Symbols that must always be exported.
  15328. include_expsyms=$lt_include_expsyms_F77
  15329. # ### END LIBTOOL TAG CONFIG: $tagname
  15330. __EOF__
  15331. else
  15332. # If there is no Makefile yet, we rely on a make rule to execute
  15333. # `config.status --recheck' to rerun these tests and create the
  15334. # libtool script then.
  15335. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  15336. if test -f "$ltmain_in"; then
  15337. test -f Makefile && make "$ltmain"
  15338. fi
  15339. fi
  15340. ac_ext=c
  15341. ac_cpp='$CPP $CPPFLAGS'
  15342. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15343. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15344. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15345. CC="$lt_save_CC"
  15346. else
  15347. tagname=""
  15348. fi
  15349. ;;
  15350. GCJ)
  15351. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  15352. # Source file extension for Java test sources.
  15353. ac_ext=java
  15354. # Object file extension for compiled Java test sources.
  15355. objext=o
  15356. objext_GCJ=$objext
  15357. # Code to be used in simple compile tests
  15358. lt_simple_compile_test_code="class foo {}\n"
  15359. # Code to be used in simple link tests
  15360. lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
  15361. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  15362. # If no C compiler was specified, use CC.
  15363. LTCC=${LTCC-"$CC"}
  15364. # Allow CC to be a program name with arguments.
  15365. compiler=$CC
  15366. # Allow CC to be a program name with arguments.
  15367. lt_save_CC="$CC"
  15368. CC=${GCJ-"gcj"}
  15369. compiler=$CC
  15370. compiler_GCJ=$CC
  15371. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  15372. archive_cmds_need_lc_GCJ=no
  15373. lt_prog_compiler_no_builtin_flag_GCJ=
  15374. if test "$GCC" = yes; then
  15375. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  15376. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  15377. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  15378. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  15379. echo $ECHO_N "(cached) $ECHO_C" >&6
  15380. else
  15381. lt_cv_prog_compiler_rtti_exceptions=no
  15382. ac_outfile=conftest.$ac_objext
  15383. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15384. lt_compiler_flag="-fno-rtti -fno-exceptions"
  15385. # Insert the option either (1) after the last *FLAGS variable, or
  15386. # (2) before a word containing "conftest.", or (3) at the end.
  15387. # Note that $ac_compile itself does not contain backslashes and begins
  15388. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15389. # The option is referenced via a variable to avoid confusing sed.
  15390. lt_compile=`echo "$ac_compile" | $SED \
  15391. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  15392. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15393. -e 's:$: $lt_compiler_flag:'`
  15394. (eval echo "\"\$as_me:17109: $lt_compile\"" >&5)
  15395. (eval "$lt_compile" 2>conftest.err)
  15396. ac_status=$?
  15397. cat conftest.err >&5
  15398. echo "$as_me:17113: \$? = $ac_status" >&5
  15399. if (exit $ac_status) && test -s "$ac_outfile"; then
  15400. # The compiler can only warn and ignore the option if not recognized
  15401. # So say no if there are warnings
  15402. if test ! -s conftest.err; then
  15403. lt_cv_prog_compiler_rtti_exceptions=yes
  15404. fi
  15405. fi
  15406. $rm conftest*
  15407. fi
  15408. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  15409. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  15410. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  15411. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  15412. else
  15413. :
  15414. fi
  15415. fi
  15416. lt_prog_compiler_wl_GCJ=
  15417. lt_prog_compiler_pic_GCJ=
  15418. lt_prog_compiler_static_GCJ=
  15419. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  15420. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  15421. if test "$GCC" = yes; then
  15422. lt_prog_compiler_wl_GCJ='-Wl,'
  15423. lt_prog_compiler_static_GCJ='-static'
  15424. case $host_os in
  15425. aix*)
  15426. # All AIX code is PIC.
  15427. if test "$host_cpu" = ia64; then
  15428. # AIX 5 now supports IA64 processor
  15429. lt_prog_compiler_static_GCJ='-Bstatic'
  15430. fi
  15431. ;;
  15432. amigaos*)
  15433. # FIXME: we need at least 68020 code to build shared libraries, but
  15434. # adding the `-m68020' flag to GCC prevents building anything better,
  15435. # like `-m68040'.
  15436. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  15437. ;;
  15438. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  15439. # PIC is the default for these OSes.
  15440. ;;
  15441. mingw* | pw32* | os2*)
  15442. # This hack is so that the source file can tell whether it is being
  15443. # built for inclusion in a dll (and should export symbols for example).
  15444. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  15445. ;;
  15446. darwin* | rhapsody*)
  15447. # PIC is the default on this platform
  15448. # Common symbols not allowed in MH_DYLIB files
  15449. lt_prog_compiler_pic_GCJ='-fno-common'
  15450. ;;
  15451. msdosdjgpp*)
  15452. # Just because we use GCC doesn't mean we suddenly get shared libraries
  15453. # on systems that don't support them.
  15454. lt_prog_compiler_can_build_shared_GCJ=no
  15455. enable_shared=no
  15456. ;;
  15457. sysv4*MP*)
  15458. if test -d /usr/nec; then
  15459. lt_prog_compiler_pic_GCJ=-Kconform_pic
  15460. fi
  15461. ;;
  15462. hpux*)
  15463. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  15464. # not for PA HP-UX.
  15465. case "$host_cpu" in
  15466. hppa*64*|ia64*)
  15467. # +Z the default
  15468. ;;
  15469. *)
  15470. lt_prog_compiler_pic_GCJ='-fPIC'
  15471. ;;
  15472. esac
  15473. ;;
  15474. *)
  15475. lt_prog_compiler_pic_GCJ='-fPIC'
  15476. ;;
  15477. esac
  15478. else
  15479. # PORTME Check for flag to pass linker flags through the system compiler.
  15480. case $host_os in
  15481. aix*)
  15482. lt_prog_compiler_wl_GCJ='-Wl,'
  15483. if test "$host_cpu" = ia64; then
  15484. # AIX 5 now supports IA64 processor
  15485. lt_prog_compiler_static_GCJ='-Bstatic'
  15486. else
  15487. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  15488. fi
  15489. ;;
  15490. mingw* | pw32* | os2*)
  15491. # This hack is so that the source file can tell whether it is being
  15492. # built for inclusion in a dll (and should export symbols for example).
  15493. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  15494. ;;
  15495. hpux9* | hpux10* | hpux11*)
  15496. lt_prog_compiler_wl_GCJ='-Wl,'
  15497. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  15498. # not for PA HP-UX.
  15499. case "$host_cpu" in
  15500. hppa*64*|ia64*)
  15501. # +Z the default
  15502. ;;
  15503. *)
  15504. lt_prog_compiler_pic_GCJ='+Z'
  15505. ;;
  15506. esac
  15507. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  15508. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  15509. ;;
  15510. irix5* | irix6* | nonstopux*)
  15511. lt_prog_compiler_wl_GCJ='-Wl,'
  15512. # PIC (with -KPIC) is the default.
  15513. lt_prog_compiler_static_GCJ='-non_shared'
  15514. ;;
  15515. newsos6)
  15516. lt_prog_compiler_pic_GCJ='-KPIC'
  15517. lt_prog_compiler_static_GCJ='-Bstatic'
  15518. ;;
  15519. linux*)
  15520. case $CC in
  15521. icc* | ecc*)
  15522. lt_prog_compiler_wl_GCJ='-Wl,'
  15523. lt_prog_compiler_pic_GCJ='-KPIC'
  15524. lt_prog_compiler_static_GCJ='-static'
  15525. ;;
  15526. ccc*)
  15527. lt_prog_compiler_wl_GCJ='-Wl,'
  15528. # All Alpha code is PIC.
  15529. lt_prog_compiler_static_GCJ='-non_shared'
  15530. ;;
  15531. esac
  15532. ;;
  15533. osf3* | osf4* | osf5*)
  15534. lt_prog_compiler_wl_GCJ='-Wl,'
  15535. # All OSF/1 code is PIC.
  15536. lt_prog_compiler_static_GCJ='-non_shared'
  15537. ;;
  15538. sco3.2v5*)
  15539. lt_prog_compiler_pic_GCJ='-Kpic'
  15540. lt_prog_compiler_static_GCJ='-dn'
  15541. ;;
  15542. solaris*)
  15543. lt_prog_compiler_wl_GCJ='-Wl,'
  15544. lt_prog_compiler_pic_GCJ='-KPIC'
  15545. lt_prog_compiler_static_GCJ='-Bstatic'
  15546. ;;
  15547. sunos4*)
  15548. lt_prog_compiler_wl_GCJ='-Qoption ld '
  15549. lt_prog_compiler_pic_GCJ='-PIC'
  15550. lt_prog_compiler_static_GCJ='-Bstatic'
  15551. ;;
  15552. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  15553. lt_prog_compiler_wl_GCJ='-Wl,'
  15554. lt_prog_compiler_pic_GCJ='-KPIC'
  15555. lt_prog_compiler_static_GCJ='-Bstatic'
  15556. ;;
  15557. sysv4*MP*)
  15558. if test -d /usr/nec ;then
  15559. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  15560. lt_prog_compiler_static_GCJ='-Bstatic'
  15561. fi
  15562. ;;
  15563. uts4*)
  15564. lt_prog_compiler_pic_GCJ='-pic'
  15565. lt_prog_compiler_static_GCJ='-Bstatic'
  15566. ;;
  15567. *)
  15568. lt_prog_compiler_can_build_shared_GCJ=no
  15569. ;;
  15570. esac
  15571. fi
  15572. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  15573. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
  15574. #
  15575. # Check to make sure the PIC flag actually works.
  15576. #
  15577. if test -n "$lt_prog_compiler_pic_GCJ"; then
  15578. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  15579. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
  15580. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  15581. echo $ECHO_N "(cached) $ECHO_C" >&6
  15582. else
  15583. lt_prog_compiler_pic_works_GCJ=no
  15584. ac_outfile=conftest.$ac_objext
  15585. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15586. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  15587. # Insert the option either (1) after the last *FLAGS variable, or
  15588. # (2) before a word containing "conftest.", or (3) at the end.
  15589. # Note that $ac_compile itself does not contain backslashes and begins
  15590. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15591. # The option is referenced via a variable to avoid confusing sed.
  15592. lt_compile=`echo "$ac_compile" | $SED \
  15593. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  15594. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15595. -e 's:$: $lt_compiler_flag:'`
  15596. (eval echo "\"\$as_me:17342: $lt_compile\"" >&5)
  15597. (eval "$lt_compile" 2>conftest.err)
  15598. ac_status=$?
  15599. cat conftest.err >&5
  15600. echo "$as_me:17346: \$? = $ac_status" >&5
  15601. if (exit $ac_status) && test -s "$ac_outfile"; then
  15602. # The compiler can only warn and ignore the option if not recognized
  15603. # So say no if there are warnings
  15604. if test ! -s conftest.err; then
  15605. lt_prog_compiler_pic_works_GCJ=yes
  15606. fi
  15607. fi
  15608. $rm conftest*
  15609. fi
  15610. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  15611. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
  15612. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  15613. case $lt_prog_compiler_pic_GCJ in
  15614. "" | " "*) ;;
  15615. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  15616. esac
  15617. else
  15618. lt_prog_compiler_pic_GCJ=
  15619. lt_prog_compiler_can_build_shared_GCJ=no
  15620. fi
  15621. fi
  15622. case "$host_os" in
  15623. # For platforms which do not support PIC, -DPIC is meaningless:
  15624. *djgpp*)
  15625. lt_prog_compiler_pic_GCJ=
  15626. ;;
  15627. *)
  15628. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  15629. ;;
  15630. esac
  15631. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  15632. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  15633. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  15634. echo $ECHO_N "(cached) $ECHO_C" >&6
  15635. else
  15636. lt_cv_prog_compiler_c_o_GCJ=no
  15637. $rm -r conftest 2>/dev/null
  15638. mkdir conftest
  15639. cd conftest
  15640. mkdir out
  15641. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15642. lt_compiler_flag="-o out/conftest2.$ac_objext"
  15643. # Insert the option either (1) after the last *FLAGS variable, or
  15644. # (2) before a word containing "conftest.", or (3) at the end.
  15645. # Note that $ac_compile itself does not contain backslashes and begins
  15646. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15647. lt_compile=`echo "$ac_compile" | $SED \
  15648. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  15649. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15650. -e 's:$: $lt_compiler_flag:'`
  15651. (eval echo "\"\$as_me:17402: $lt_compile\"" >&5)
  15652. (eval "$lt_compile" 2>out/conftest.err)
  15653. ac_status=$?
  15654. cat out/conftest.err >&5
  15655. echo "$as_me:17406: \$? = $ac_status" >&5
  15656. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15657. then
  15658. # The compiler can only warn and ignore the option if not recognized
  15659. # So say no if there are warnings
  15660. if test ! -s out/conftest.err; then
  15661. lt_cv_prog_compiler_c_o_GCJ=yes
  15662. fi
  15663. fi
  15664. chmod u+w .
  15665. $rm conftest*
  15666. # SGI C++ compiler will create directory out/ii_files/ for
  15667. # template instantiation
  15668. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  15669. $rm out/* && rmdir out
  15670. cd ..
  15671. rmdir conftest
  15672. $rm conftest*
  15673. fi
  15674. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  15675. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
  15676. hard_links="nottested"
  15677. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  15678. # do not overwrite the value of need_locks provided by the user
  15679. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  15680. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  15681. hard_links=yes
  15682. $rm conftest*
  15683. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15684. touch conftest.a
  15685. ln conftest.a conftest.b 2>&5 || hard_links=no
  15686. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15687. echo "$as_me:$LINENO: result: $hard_links" >&5
  15688. echo "${ECHO_T}$hard_links" >&6
  15689. if test "$hard_links" = no; then
  15690. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  15691. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  15692. need_locks=warn
  15693. fi
  15694. else
  15695. need_locks=no
  15696. fi
  15697. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  15698. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  15699. runpath_var=
  15700. allow_undefined_flag_GCJ=
  15701. enable_shared_with_static_runtimes_GCJ=no
  15702. archive_cmds_GCJ=
  15703. archive_expsym_cmds_GCJ=
  15704. old_archive_From_new_cmds_GCJ=
  15705. old_archive_from_expsyms_cmds_GCJ=
  15706. export_dynamic_flag_spec_GCJ=
  15707. whole_archive_flag_spec_GCJ=
  15708. thread_safe_flag_spec_GCJ=
  15709. hardcode_libdir_flag_spec_GCJ=
  15710. hardcode_libdir_flag_spec_ld_GCJ=
  15711. hardcode_libdir_separator_GCJ=
  15712. hardcode_direct_GCJ=no
  15713. hardcode_minus_L_GCJ=no
  15714. hardcode_shlibpath_var_GCJ=unsupported
  15715. link_all_deplibs_GCJ=unknown
  15716. hardcode_automatic_GCJ=no
  15717. module_cmds_GCJ=
  15718. module_expsym_cmds_GCJ=
  15719. always_export_symbols_GCJ=no
  15720. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  15721. # include_expsyms should be a list of space-separated symbols to be *always*
  15722. # included in the symbol list
  15723. include_expsyms_GCJ=
  15724. # exclude_expsyms can be an extended regexp of symbols to exclude
  15725. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  15726. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  15727. # as well as any symbol that contains `d'.
  15728. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  15729. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  15730. # platforms (ab)use it in PIC code, but their linkers get confused if
  15731. # the symbol is explicitly referenced. Since portable code cannot
  15732. # rely on this symbol name, it's probably fine to never include it in
  15733. # preloaded symbol tables.
  15734. extract_expsyms_cmds=
  15735. case $host_os in
  15736. cygwin* | mingw* | pw32*)
  15737. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  15738. # When not using gcc, we currently assume that we are using
  15739. # Microsoft Visual C++.
  15740. if test "$GCC" != yes; then
  15741. with_gnu_ld=no
  15742. fi
  15743. ;;
  15744. openbsd*)
  15745. with_gnu_ld=no
  15746. ;;
  15747. esac
  15748. ld_shlibs_GCJ=yes
  15749. if test "$with_gnu_ld" = yes; then
  15750. # If archive_cmds runs LD, not CC, wlarc should be empty
  15751. wlarc='${wl}'
  15752. # See if GNU ld supports shared libraries.
  15753. case $host_os in
  15754. aix3* | aix4* | aix5*)
  15755. # On AIX/PPC, the GNU linker is very broken
  15756. if test "$host_cpu" != ia64; then
  15757. ld_shlibs_GCJ=no
  15758. cat <<EOF 1>&2
  15759. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  15760. *** to be unable to reliably create shared libraries on AIX.
  15761. *** Therefore, libtool is disabling shared libraries support. If you
  15762. *** really care for shared libraries, you may want to modify your PATH
  15763. *** so that a non-GNU linker is found, and then restart.
  15764. EOF
  15765. fi
  15766. ;;
  15767. amigaos*)
  15768. 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)'
  15769. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15770. hardcode_minus_L_GCJ=yes
  15771. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  15772. # that the semantics of dynamic libraries on AmigaOS, at least up
  15773. # to version 4, is to share data among multiple programs linked
  15774. # with the same dynamic library. Since this doesn't match the
  15775. # behavior of shared libraries on other platforms, we can't use
  15776. # them.
  15777. ld_shlibs_GCJ=no
  15778. ;;
  15779. beos*)
  15780. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15781. allow_undefined_flag_GCJ=unsupported
  15782. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  15783. # support --undefined. This deserves some investigation. FIXME
  15784. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15785. else
  15786. ld_shlibs_GCJ=no
  15787. fi
  15788. ;;
  15789. cygwin* | mingw* | pw32*)
  15790. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  15791. # as there is no search path for DLLs.
  15792. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15793. allow_undefined_flag_GCJ=unsupported
  15794. always_export_symbols_GCJ=no
  15795. enable_shared_with_static_runtimes_GCJ=yes
  15796. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  15797. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  15798. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  15799. # If the export-symbols file already is a .def file (1st line
  15800. # is EXPORTS), use it as is; otherwise, prepend...
  15801. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  15802. cp $export_symbols $output_objdir/$soname.def;
  15803. else
  15804. echo EXPORTS > $output_objdir/$soname.def;
  15805. cat $export_symbols >> $output_objdir/$soname.def;
  15806. fi~
  15807. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  15808. else
  15809. ld_shlibs=no
  15810. fi
  15811. ;;
  15812. netbsd*)
  15813. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15814. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  15815. wlarc=
  15816. else
  15817. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15818. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15819. fi
  15820. ;;
  15821. solaris* | sysv5*)
  15822. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  15823. ld_shlibs_GCJ=no
  15824. cat <<EOF 1>&2
  15825. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  15826. *** create shared libraries on Solaris systems. Therefore, libtool
  15827. *** is disabling shared libraries support. We urge you to upgrade GNU
  15828. *** binutils to release 2.9.1 or newer. Another option is to modify
  15829. *** your PATH or compiler configuration so that the native linker is
  15830. *** used, and then restart.
  15831. EOF
  15832. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15833. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15834. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15835. else
  15836. ld_shlibs_GCJ=no
  15837. fi
  15838. ;;
  15839. sunos4*)
  15840. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15841. wlarc=
  15842. hardcode_direct_GCJ=yes
  15843. hardcode_shlibpath_var_GCJ=no
  15844. ;;
  15845. linux*)
  15846. if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  15847. tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15848. archive_cmds_GCJ="$tmp_archive_cmds"
  15849. supports_anon_versioning=no
  15850. case `$LD -v 2>/dev/null` in
  15851. *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  15852. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  15853. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  15854. *\ 2.11.*) ;; # other 2.11 versions
  15855. *) supports_anon_versioning=yes ;;
  15856. esac
  15857. if test $supports_anon_versioning = yes; then
  15858. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  15859. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  15860. $echo "local: *; };" >> $output_objdir/$libname.ver~
  15861. $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  15862. else
  15863. archive_expsym_cmds_GCJ="$tmp_archive_cmds"
  15864. fi
  15865. else
  15866. ld_shlibs_GCJ=no
  15867. fi
  15868. ;;
  15869. *)
  15870. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15871. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15872. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15873. else
  15874. ld_shlibs_GCJ=no
  15875. fi
  15876. ;;
  15877. esac
  15878. if test "$ld_shlibs_GCJ" = yes; then
  15879. runpath_var=LD_RUN_PATH
  15880. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  15881. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  15882. # ancient GNU ld didn't support --whole-archive et. al.
  15883. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  15884. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  15885. else
  15886. whole_archive_flag_spec_GCJ=
  15887. fi
  15888. fi
  15889. else
  15890. # PORTME fill in a description of your system's linker (not GNU ld)
  15891. case $host_os in
  15892. aix3*)
  15893. allow_undefined_flag_GCJ=unsupported
  15894. always_export_symbols_GCJ=yes
  15895. 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'
  15896. # Note: this linker hardcodes the directories in LIBPATH if there
  15897. # are no directories specified by -L.
  15898. hardcode_minus_L_GCJ=yes
  15899. if test "$GCC" = yes && test -z "$link_static_flag"; then
  15900. # Neither direct hardcoding nor static linking is supported with a
  15901. # broken collect2.
  15902. hardcode_direct_GCJ=unsupported
  15903. fi
  15904. ;;
  15905. aix4* | aix5*)
  15906. if test "$host_cpu" = ia64; then
  15907. # On IA64, the linker does run time linking by default, so we don't
  15908. # have to do anything special.
  15909. aix_use_runtimelinking=no
  15910. exp_sym_flag='-Bexport'
  15911. no_entry_flag=""
  15912. else
  15913. # If we're using GNU nm, then we don't want the "-C" option.
  15914. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  15915. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  15916. 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'
  15917. else
  15918. 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'
  15919. fi
  15920. aix_use_runtimelinking=no
  15921. # Test if we are trying to use run time linking or normal
  15922. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  15923. # need to do runtime linking.
  15924. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  15925. for ld_flag in $LDFLAGS; do
  15926. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  15927. aix_use_runtimelinking=yes
  15928. break
  15929. fi
  15930. done
  15931. esac
  15932. exp_sym_flag='-bexport'
  15933. no_entry_flag='-bnoentry'
  15934. fi
  15935. # When large executables or shared objects are built, AIX ld can
  15936. # have problems creating the table of contents. If linking a library
  15937. # or program results in "error TOC overflow" add -mminimal-toc to
  15938. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  15939. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  15940. archive_cmds_GCJ=''
  15941. hardcode_direct_GCJ=yes
  15942. hardcode_libdir_separator_GCJ=':'
  15943. link_all_deplibs_GCJ=yes
  15944. if test "$GCC" = yes; then
  15945. case $host_os in aix4.012|aix4.012.*)
  15946. # We only want to do this on AIX 4.2 and lower, the check
  15947. # below for broken collect2 doesn't work under 4.3+
  15948. collect2name=`${CC} -print-prog-name=collect2`
  15949. if test -f "$collect2name" && \
  15950. strings "$collect2name" | grep resolve_lib_name >/dev/null
  15951. then
  15952. # We have reworked collect2
  15953. hardcode_direct_GCJ=yes
  15954. else
  15955. # We have old collect2
  15956. hardcode_direct_GCJ=unsupported
  15957. # It fails to find uninstalled libraries when the uninstalled
  15958. # path is not listed in the libpath. Setting hardcode_minus_L
  15959. # to unsupported forces relinking
  15960. hardcode_minus_L_GCJ=yes
  15961. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15962. hardcode_libdir_separator_GCJ=
  15963. fi
  15964. esac
  15965. shared_flag='-shared'
  15966. else
  15967. # not using gcc
  15968. if test "$host_cpu" = ia64; then
  15969. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  15970. # chokes on -Wl,-G. The following line is correct:
  15971. shared_flag='-G'
  15972. else
  15973. if test "$aix_use_runtimelinking" = yes; then
  15974. shared_flag='${wl}-G'
  15975. else
  15976. shared_flag='${wl}-bM:SRE'
  15977. fi
  15978. fi
  15979. fi
  15980. # It seems that -bexpall does not export symbols beginning with
  15981. # underscore (_), so it is better to generate a list of symbols to export.
  15982. always_export_symbols_GCJ=yes
  15983. if test "$aix_use_runtimelinking" = yes; then
  15984. # Warning - without using the other runtime loading flags (-brtl),
  15985. # -berok will link without error, but may produce a broken library.
  15986. allow_undefined_flag_GCJ='-berok'
  15987. # Determine the default libpath from the value encoded in an empty executable.
  15988. cat >conftest.$ac_ext <<_ACEOF
  15989. /* confdefs.h. */
  15990. _ACEOF
  15991. cat confdefs.h >>conftest.$ac_ext
  15992. cat >>conftest.$ac_ext <<_ACEOF
  15993. /* end confdefs.h. */
  15994. int
  15995. main ()
  15996. {
  15997. ;
  15998. return 0;
  15999. }
  16000. _ACEOF
  16001. rm -f conftest.$ac_objext conftest$ac_exeext
  16002. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16003. (eval $ac_link) 2>conftest.er1
  16004. ac_status=$?
  16005. grep -v '^ *+' conftest.er1 >conftest.err
  16006. rm -f conftest.er1
  16007. cat conftest.err >&5
  16008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16009. (exit $ac_status); } &&
  16010. { ac_try='test -z "$ac_c_werror_flag"
  16011. || test ! -s conftest.err'
  16012. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16013. (eval $ac_try) 2>&5
  16014. ac_status=$?
  16015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16016. (exit $ac_status); }; } &&
  16017. { ac_try='test -s conftest$ac_exeext'
  16018. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16019. (eval $ac_try) 2>&5
  16020. ac_status=$?
  16021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16022. (exit $ac_status); }; }; then
  16023. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  16024. }'`
  16025. # Check for a 64-bit object if we didn't find anything.
  16026. 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; }
  16027. }'`; fi
  16028. else
  16029. echo "$as_me: failed program was:" >&5
  16030. sed 's/^/| /' conftest.$ac_ext >&5
  16031. fi
  16032. rm -f conftest.err conftest.$ac_objext \
  16033. conftest$ac_exeext conftest.$ac_ext
  16034. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  16035. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  16036. 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}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  16037. else
  16038. if test "$host_cpu" = ia64; then
  16039. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  16040. allow_undefined_flag_GCJ="-z nodefs"
  16041. 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"
  16042. else
  16043. # Determine the default libpath from the value encoded in an empty executable.
  16044. cat >conftest.$ac_ext <<_ACEOF
  16045. /* confdefs.h. */
  16046. _ACEOF
  16047. cat confdefs.h >>conftest.$ac_ext
  16048. cat >>conftest.$ac_ext <<_ACEOF
  16049. /* end confdefs.h. */
  16050. int
  16051. main ()
  16052. {
  16053. ;
  16054. return 0;
  16055. }
  16056. _ACEOF
  16057. rm -f conftest.$ac_objext conftest$ac_exeext
  16058. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16059. (eval $ac_link) 2>conftest.er1
  16060. ac_status=$?
  16061. grep -v '^ *+' conftest.er1 >conftest.err
  16062. rm -f conftest.er1
  16063. cat conftest.err >&5
  16064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16065. (exit $ac_status); } &&
  16066. { ac_try='test -z "$ac_c_werror_flag"
  16067. || test ! -s conftest.err'
  16068. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16069. (eval $ac_try) 2>&5
  16070. ac_status=$?
  16071. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16072. (exit $ac_status); }; } &&
  16073. { ac_try='test -s conftest$ac_exeext'
  16074. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16075. (eval $ac_try) 2>&5
  16076. ac_status=$?
  16077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16078. (exit $ac_status); }; }; then
  16079. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  16080. }'`
  16081. # Check for a 64-bit object if we didn't find anything.
  16082. 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; }
  16083. }'`; fi
  16084. else
  16085. echo "$as_me: failed program was:" >&5
  16086. sed 's/^/| /' conftest.$ac_ext >&5
  16087. fi
  16088. rm -f conftest.err conftest.$ac_objext \
  16089. conftest$ac_exeext conftest.$ac_ext
  16090. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  16091. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  16092. # Warning - without using the other run time loading flags,
  16093. # -berok will link without error, but may produce a broken library.
  16094. no_undefined_flag_GCJ=' ${wl}-bernotok'
  16095. allow_undefined_flag_GCJ=' ${wl}-berok'
  16096. # -bexpall does not export symbols beginning with underscore (_)
  16097. always_export_symbols_GCJ=yes
  16098. # Exported symbols can be pulled into shared objects from archives
  16099. whole_archive_flag_spec_GCJ=' '
  16100. archive_cmds_need_lc_GCJ=yes
  16101. # This is similar to how AIX traditionally builds it's shared libraries.
  16102. 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'
  16103. fi
  16104. fi
  16105. ;;
  16106. amigaos*)
  16107. 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)'
  16108. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16109. hardcode_minus_L_GCJ=yes
  16110. # see comment about different semantics on the GNU ld section
  16111. ld_shlibs_GCJ=no
  16112. ;;
  16113. bsdi4*)
  16114. export_dynamic_flag_spec_GCJ=-rdynamic
  16115. ;;
  16116. cygwin* | mingw* | pw32*)
  16117. # When not using gcc, we currently assume that we are using
  16118. # Microsoft Visual C++.
  16119. # hardcode_libdir_flag_spec is actually meaningless, as there is
  16120. # no search path for DLLs.
  16121. hardcode_libdir_flag_spec_GCJ=' '
  16122. allow_undefined_flag_GCJ=unsupported
  16123. # Tell ltmain to make .lib files, not .a files.
  16124. libext=lib
  16125. # Tell ltmain to make .dll files, not .so files.
  16126. shrext=".dll"
  16127. # FIXME: Setting linknames here is a bad hack.
  16128. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  16129. # The linker will automatically build a .lib file if we build a DLL.
  16130. old_archive_From_new_cmds_GCJ='true'
  16131. # FIXME: Should let the user specify the lib program.
  16132. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  16133. fix_srcfile_path='`cygpath -w "$srcfile"`'
  16134. enable_shared_with_static_runtimes_GCJ=yes
  16135. ;;
  16136. darwin* | rhapsody*)
  16137. if test "$GXX" = yes ; then
  16138. archive_cmds_need_lc_GCJ=no
  16139. case "$host_os" in
  16140. rhapsody* | darwin1.[012])
  16141. allow_undefined_flag_GCJ='-undefined suppress'
  16142. ;;
  16143. *) # Darwin 1.3 on
  16144. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  16145. allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
  16146. else
  16147. case ${MACOSX_DEPLOYMENT_TARGET} in
  16148. 10.[012])
  16149. allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
  16150. ;;
  16151. 10.*)
  16152. allow_undefined_flag_GCJ='-undefined dynamic_lookup'
  16153. ;;
  16154. esac
  16155. fi
  16156. ;;
  16157. esac
  16158. lt_int_apple_cc_single_mod=no
  16159. output_verbose_link_cmd='echo'
  16160. if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  16161. lt_int_apple_cc_single_mod=yes
  16162. fi
  16163. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  16164. archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  16165. else
  16166. archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  16167. fi
  16168. module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  16169. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  16170. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  16171. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  16172. else
  16173. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  16174. fi
  16175. module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  16176. hardcode_direct_GCJ=no
  16177. hardcode_automatic_GCJ=yes
  16178. hardcode_shlibpath_var_GCJ=unsupported
  16179. whole_archive_flag_spec_GCJ='-all_load $convenience'
  16180. link_all_deplibs_GCJ=yes
  16181. else
  16182. ld_shlibs_GCJ=no
  16183. fi
  16184. ;;
  16185. dgux*)
  16186. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16187. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16188. hardcode_shlibpath_var_GCJ=no
  16189. ;;
  16190. freebsd1*)
  16191. ld_shlibs_GCJ=no
  16192. ;;
  16193. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  16194. # support. Future versions do this automatically, but an explicit c++rt0.o
  16195. # does not break anything, and helps significantly (at the cost of a little
  16196. # extra space).
  16197. freebsd2.2*)
  16198. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  16199. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16200. hardcode_direct_GCJ=yes
  16201. hardcode_shlibpath_var_GCJ=no
  16202. ;;
  16203. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  16204. freebsd2*)
  16205. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  16206. hardcode_direct_GCJ=yes
  16207. hardcode_minus_L_GCJ=yes
  16208. hardcode_shlibpath_var_GCJ=no
  16209. ;;
  16210. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  16211. freebsd* | kfreebsd*-gnu)
  16212. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  16213. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16214. hardcode_direct_GCJ=yes
  16215. hardcode_shlibpath_var_GCJ=no
  16216. ;;
  16217. hpux9*)
  16218. if test "$GCC" = yes; then
  16219. 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'
  16220. else
  16221. 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'
  16222. fi
  16223. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  16224. hardcode_libdir_separator_GCJ=:
  16225. hardcode_direct_GCJ=yes
  16226. # hardcode_minus_L: Not really in the search PATH,
  16227. # but as the default location of the library.
  16228. hardcode_minus_L_GCJ=yes
  16229. export_dynamic_flag_spec_GCJ='${wl}-E'
  16230. ;;
  16231. hpux10* | hpux11*)
  16232. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  16233. case "$host_cpu" in
  16234. hppa*64*|ia64*)
  16235. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16236. ;;
  16237. *)
  16238. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  16239. ;;
  16240. esac
  16241. else
  16242. case "$host_cpu" in
  16243. hppa*64*|ia64*)
  16244. archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  16245. ;;
  16246. *)
  16247. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  16248. ;;
  16249. esac
  16250. fi
  16251. if test "$with_gnu_ld" = no; then
  16252. case "$host_cpu" in
  16253. hppa*64*)
  16254. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  16255. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  16256. hardcode_libdir_separator_GCJ=:
  16257. hardcode_direct_GCJ=no
  16258. hardcode_shlibpath_var_GCJ=no
  16259. ;;
  16260. ia64*)
  16261. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16262. hardcode_direct_GCJ=no
  16263. hardcode_shlibpath_var_GCJ=no
  16264. # hardcode_minus_L: Not really in the search PATH,
  16265. # but as the default location of the library.
  16266. hardcode_minus_L_GCJ=yes
  16267. ;;
  16268. *)
  16269. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  16270. hardcode_libdir_separator_GCJ=:
  16271. hardcode_direct_GCJ=yes
  16272. export_dynamic_flag_spec_GCJ='${wl}-E'
  16273. # hardcode_minus_L: Not really in the search PATH,
  16274. # but as the default location of the library.
  16275. hardcode_minus_L_GCJ=yes
  16276. ;;
  16277. esac
  16278. fi
  16279. ;;
  16280. irix5* | irix6* | nonstopux*)
  16281. if test "$GCC" = yes; then
  16282. 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'
  16283. else
  16284. 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'
  16285. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  16286. fi
  16287. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16288. hardcode_libdir_separator_GCJ=:
  16289. link_all_deplibs_GCJ=yes
  16290. ;;
  16291. netbsd*)
  16292. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16293. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  16294. else
  16295. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  16296. fi
  16297. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16298. hardcode_direct_GCJ=yes
  16299. hardcode_shlibpath_var_GCJ=no
  16300. ;;
  16301. newsos6)
  16302. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16303. hardcode_direct_GCJ=yes
  16304. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16305. hardcode_libdir_separator_GCJ=:
  16306. hardcode_shlibpath_var_GCJ=no
  16307. ;;
  16308. openbsd*)
  16309. hardcode_direct_GCJ=yes
  16310. hardcode_shlibpath_var_GCJ=no
  16311. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16312. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  16313. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  16314. export_dynamic_flag_spec_GCJ='${wl}-E'
  16315. else
  16316. case $host_os in
  16317. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  16318. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  16319. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16320. ;;
  16321. *)
  16322. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  16323. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  16324. ;;
  16325. esac
  16326. fi
  16327. ;;
  16328. os2*)
  16329. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16330. hardcode_minus_L_GCJ=yes
  16331. allow_undefined_flag_GCJ=unsupported
  16332. 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'
  16333. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  16334. ;;
  16335. osf3*)
  16336. if test "$GCC" = yes; then
  16337. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  16338. 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'
  16339. else
  16340. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  16341. 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'
  16342. fi
  16343. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16344. hardcode_libdir_separator_GCJ=:
  16345. ;;
  16346. osf4* | osf5*) # as osf3* with the addition of -msym flag
  16347. if test "$GCC" = yes; then
  16348. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  16349. 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'
  16350. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16351. else
  16352. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  16353. 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'
  16354. archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  16355. $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'
  16356. # Both c and cxx compiler support -rpath directly
  16357. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  16358. fi
  16359. hardcode_libdir_separator_GCJ=:
  16360. ;;
  16361. sco3.2v5*)
  16362. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16363. hardcode_shlibpath_var_GCJ=no
  16364. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  16365. runpath_var=LD_RUN_PATH
  16366. hardcode_runpath_var=yes
  16367. ;;
  16368. solaris*)
  16369. no_undefined_flag_GCJ=' -z text'
  16370. if test "$GCC" = yes; then
  16371. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16372. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  16373. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  16374. else
  16375. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16376. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  16377. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  16378. fi
  16379. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16380. hardcode_shlibpath_var_GCJ=no
  16381. case $host_os in
  16382. solaris2.[0-5] | solaris2.[0-5].*) ;;
  16383. *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  16384. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  16385. esac
  16386. link_all_deplibs_GCJ=yes
  16387. ;;
  16388. sunos4*)
  16389. if test "x$host_vendor" = xsequent; then
  16390. # Use $CC to link under sequent, because it throws in some extra .o
  16391. # files that make .init and .fini sections work.
  16392. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  16393. else
  16394. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  16395. fi
  16396. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16397. hardcode_direct_GCJ=yes
  16398. hardcode_minus_L_GCJ=yes
  16399. hardcode_shlibpath_var_GCJ=no
  16400. ;;
  16401. sysv4)
  16402. case $host_vendor in
  16403. sni)
  16404. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16405. hardcode_direct_GCJ=yes # is this really true???
  16406. ;;
  16407. siemens)
  16408. ## LD is ld it makes a PLAMLIB
  16409. ## CC just makes a GrossModule.
  16410. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  16411. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  16412. hardcode_direct_GCJ=no
  16413. ;;
  16414. motorola)
  16415. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16416. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  16417. ;;
  16418. esac
  16419. runpath_var='LD_RUN_PATH'
  16420. hardcode_shlibpath_var_GCJ=no
  16421. ;;
  16422. sysv4.3*)
  16423. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16424. hardcode_shlibpath_var_GCJ=no
  16425. export_dynamic_flag_spec_GCJ='-Bexport'
  16426. ;;
  16427. sysv4*MP*)
  16428. if test -d /usr/nec; then
  16429. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16430. hardcode_shlibpath_var_GCJ=no
  16431. runpath_var=LD_RUN_PATH
  16432. hardcode_runpath_var=yes
  16433. ld_shlibs_GCJ=yes
  16434. fi
  16435. ;;
  16436. sysv4.2uw2*)
  16437. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  16438. hardcode_direct_GCJ=yes
  16439. hardcode_minus_L_GCJ=no
  16440. hardcode_shlibpath_var_GCJ=no
  16441. hardcode_runpath_var=yes
  16442. runpath_var=LD_RUN_PATH
  16443. ;;
  16444. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  16445. no_undefined_flag_GCJ='${wl}-z ${wl}text'
  16446. if test "$GCC" = yes; then
  16447. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16448. else
  16449. archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16450. fi
  16451. runpath_var='LD_RUN_PATH'
  16452. hardcode_shlibpath_var_GCJ=no
  16453. ;;
  16454. sysv5*)
  16455. no_undefined_flag_GCJ=' -z text'
  16456. # $CC -shared without GNU ld will not create a library from C++
  16457. # object files and a static libstdc++, better avoid it by now
  16458. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16459. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  16460. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  16461. hardcode_libdir_flag_spec_GCJ=
  16462. hardcode_shlibpath_var_GCJ=no
  16463. runpath_var='LD_RUN_PATH'
  16464. ;;
  16465. uts4*)
  16466. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16467. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16468. hardcode_shlibpath_var_GCJ=no
  16469. ;;
  16470. *)
  16471. ld_shlibs_GCJ=no
  16472. ;;
  16473. esac
  16474. fi
  16475. echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  16476. echo "${ECHO_T}$ld_shlibs_GCJ" >&6
  16477. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  16478. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  16479. if test "$GCC" = yes; then
  16480. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  16481. fi
  16482. #
  16483. # Do we need to explicitly link libc?
  16484. #
  16485. case "x$archive_cmds_need_lc_GCJ" in
  16486. x|xyes)
  16487. # Assume -lc should be added
  16488. archive_cmds_need_lc_GCJ=yes
  16489. if test "$enable_shared" = yes && test "$GCC" = yes; then
  16490. case $archive_cmds_GCJ in
  16491. *'~'*)
  16492. # FIXME: we may have to deal with multi-command sequences.
  16493. ;;
  16494. '$CC '*)
  16495. # Test whether the compiler implicitly links with -lc since on some
  16496. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  16497. # to ld, don't add -lc before -lgcc.
  16498. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  16499. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  16500. $rm conftest*
  16501. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  16502. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16503. (eval $ac_compile) 2>&5
  16504. ac_status=$?
  16505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16506. (exit $ac_status); } 2>conftest.err; then
  16507. soname=conftest
  16508. lib=conftest
  16509. libobjs=conftest.$ac_objext
  16510. deplibs=
  16511. wl=$lt_prog_compiler_wl_GCJ
  16512. compiler_flags=-v
  16513. linker_flags=-v
  16514. verstring=
  16515. output_objdir=.
  16516. libname=conftest
  16517. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  16518. allow_undefined_flag_GCJ=
  16519. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  16520. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  16521. ac_status=$?
  16522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16523. (exit $ac_status); }
  16524. then
  16525. archive_cmds_need_lc_GCJ=no
  16526. else
  16527. archive_cmds_need_lc_GCJ=yes
  16528. fi
  16529. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  16530. else
  16531. cat conftest.err 1>&5
  16532. fi
  16533. $rm conftest*
  16534. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  16535. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
  16536. ;;
  16537. esac
  16538. fi
  16539. ;;
  16540. esac
  16541. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  16542. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  16543. library_names_spec=
  16544. libname_spec='lib$name'
  16545. soname_spec=
  16546. shrext=".so"
  16547. postinstall_cmds=
  16548. postuninstall_cmds=
  16549. finish_cmds=
  16550. finish_eval=
  16551. shlibpath_var=
  16552. shlibpath_overrides_runpath=unknown
  16553. version_type=none
  16554. dynamic_linker="$host_os ld.so"
  16555. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  16556. if test "$GCC" = yes; then
  16557. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16558. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  16559. # if the path contains ";" then we assume it to be the separator
  16560. # otherwise default to the standard path separator (i.e. ":") - it is
  16561. # assumed that no part of a normal pathname contains ";" but that should
  16562. # okay in the real world where ";" in dirpaths is itself problematic.
  16563. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16564. else
  16565. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16566. fi
  16567. else
  16568. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  16569. fi
  16570. need_lib_prefix=unknown
  16571. hardcode_into_libs=no
  16572. # when you set need_version to no, make sure it does not cause -set_version
  16573. # flags to be left without arguments
  16574. need_version=unknown
  16575. case $host_os in
  16576. aix3*)
  16577. version_type=linux
  16578. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  16579. shlibpath_var=LIBPATH
  16580. # AIX 3 has no versioning support, so we append a major version to the name.
  16581. soname_spec='${libname}${release}${shared_ext}$major'
  16582. ;;
  16583. aix4* | aix5*)
  16584. version_type=linux
  16585. need_lib_prefix=no
  16586. need_version=no
  16587. hardcode_into_libs=yes
  16588. if test "$host_cpu" = ia64; then
  16589. # AIX 5 supports IA64
  16590. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  16591. shlibpath_var=LD_LIBRARY_PATH
  16592. else
  16593. # With GCC up to 2.95.x, collect2 would create an import file
  16594. # for dependence libraries. The import file would start with
  16595. # the line `#! .'. This would cause the generated library to
  16596. # depend on `.', always an invalid library. This was fixed in
  16597. # development snapshots of GCC prior to 3.0.
  16598. case $host_os in
  16599. aix4 | aix4.[01] | aix4.[01].*)
  16600. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  16601. echo ' yes '
  16602. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  16603. :
  16604. else
  16605. can_build_shared=no
  16606. fi
  16607. ;;
  16608. esac
  16609. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  16610. # soname into executable. Probably we can add versioning support to
  16611. # collect2, so additional links can be useful in future.
  16612. if test "$aix_use_runtimelinking" = yes; then
  16613. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  16614. # instead of lib<name>.a to let people know that these are not
  16615. # typical AIX shared libraries.
  16616. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16617. else
  16618. # We preserve .a as extension for shared libraries through AIX4.2
  16619. # and later when we are not doing run time linking.
  16620. library_names_spec='${libname}${release}.a $libname.a'
  16621. soname_spec='${libname}${release}${shared_ext}$major'
  16622. fi
  16623. shlibpath_var=LIBPATH
  16624. fi
  16625. ;;
  16626. amigaos*)
  16627. library_names_spec='$libname.ixlibrary $libname.a'
  16628. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  16629. 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'
  16630. ;;
  16631. beos*)
  16632. library_names_spec='${libname}${shared_ext}'
  16633. dynamic_linker="$host_os ld.so"
  16634. shlibpath_var=LIBRARY_PATH
  16635. ;;
  16636. bsdi4*)
  16637. version_type=linux
  16638. need_version=no
  16639. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16640. soname_spec='${libname}${release}${shared_ext}$major'
  16641. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  16642. shlibpath_var=LD_LIBRARY_PATH
  16643. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  16644. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  16645. # the default ld.so.conf also contains /usr/contrib/lib and
  16646. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  16647. # libtool to hard-code these into programs
  16648. ;;
  16649. cygwin* | mingw* | pw32*)
  16650. version_type=windows
  16651. shrext=".dll"
  16652. need_version=no
  16653. need_lib_prefix=no
  16654. case $GCC,$host_os in
  16655. yes,cygwin* | yes,mingw* | yes,pw32*)
  16656. library_names_spec='$libname.dll.a'
  16657. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  16658. postinstall_cmds='base_file=`basename \${file}`~
  16659. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  16660. dldir=$destdir/`dirname \$dlpath`~
  16661. test -d \$dldir || mkdir -p \$dldir~
  16662. $install_prog $dir/$dlname \$dldir/$dlname'
  16663. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  16664. dlpath=$dir/\$dldll~
  16665. $rm \$dlpath'
  16666. shlibpath_overrides_runpath=yes
  16667. case $host_os in
  16668. cygwin*)
  16669. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  16670. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16671. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  16672. ;;
  16673. mingw*)
  16674. # MinGW DLLs use traditional 'lib' prefix
  16675. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16676. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16677. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  16678. # It is most probably a Windows format PATH printed by
  16679. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  16680. # path with ; separators, and with drive letters. We can handle the
  16681. # drive letters (cygwin fileutils understands them), so leave them,
  16682. # especially as we might pass files found there to a mingw objdump,
  16683. # which wouldn't understand a cygwinified path. Ahh.
  16684. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16685. else
  16686. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16687. fi
  16688. ;;
  16689. pw32*)
  16690. # pw32 DLLs use 'pw' prefix rather than 'lib'
  16691. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  16692. ;;
  16693. esac
  16694. ;;
  16695. *)
  16696. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  16697. ;;
  16698. esac
  16699. dynamic_linker='Win32 ld.exe'
  16700. # FIXME: first we should search . and the directory the executable is in
  16701. shlibpath_var=PATH
  16702. ;;
  16703. darwin* | rhapsody*)
  16704. dynamic_linker="$host_os dyld"
  16705. version_type=darwin
  16706. need_lib_prefix=no
  16707. need_version=no
  16708. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  16709. soname_spec='${libname}${release}${major}$shared_ext'
  16710. shlibpath_overrides_runpath=yes
  16711. shlibpath_var=DYLD_LIBRARY_PATH
  16712. shrext='$(test .$module = .yes && echo .so || echo .dylib)'
  16713. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  16714. if test "$GCC" = yes; then
  16715. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  16716. else
  16717. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  16718. fi
  16719. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  16720. ;;
  16721. dgux*)
  16722. version_type=linux
  16723. need_lib_prefix=no
  16724. need_version=no
  16725. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  16726. soname_spec='${libname}${release}${shared_ext}$major'
  16727. shlibpath_var=LD_LIBRARY_PATH
  16728. ;;
  16729. freebsd1*)
  16730. dynamic_linker=no
  16731. ;;
  16732. kfreebsd*-gnu)
  16733. version_type=linux
  16734. need_lib_prefix=no
  16735. need_version=no
  16736. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16737. soname_spec='${libname}${release}${shared_ext}$major'
  16738. shlibpath_var=LD_LIBRARY_PATH
  16739. shlibpath_overrides_runpath=no
  16740. hardcode_into_libs=yes
  16741. dynamic_linker='GNU ld.so'
  16742. ;;
  16743. freebsd*)
  16744. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  16745. version_type=freebsd-$objformat
  16746. case $version_type in
  16747. freebsd-elf*)
  16748. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16749. need_version=no
  16750. need_lib_prefix=no
  16751. ;;
  16752. freebsd-*)
  16753. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  16754. need_version=yes
  16755. ;;
  16756. esac
  16757. shlibpath_var=LD_LIBRARY_PATH
  16758. case $host_os in
  16759. freebsd2*)
  16760. shlibpath_overrides_runpath=yes
  16761. ;;
  16762. freebsd3.01* | freebsdelf3.01*)
  16763. shlibpath_overrides_runpath=yes
  16764. hardcode_into_libs=yes
  16765. ;;
  16766. *) # from 3.2 on
  16767. shlibpath_overrides_runpath=no
  16768. hardcode_into_libs=yes
  16769. ;;
  16770. esac
  16771. ;;
  16772. gnu*)
  16773. version_type=linux
  16774. need_lib_prefix=no
  16775. need_version=no
  16776. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  16777. soname_spec='${libname}${release}${shared_ext}$major'
  16778. shlibpath_var=LD_LIBRARY_PATH
  16779. hardcode_into_libs=yes
  16780. ;;
  16781. hpux9* | hpux10* | hpux11*)
  16782. # Give a soname corresponding to the major version so that dld.sl refuses to
  16783. # link against other versions.
  16784. version_type=sunos
  16785. need_lib_prefix=no
  16786. need_version=no
  16787. case "$host_cpu" in
  16788. ia64*)
  16789. shrext='.so'
  16790. hardcode_into_libs=yes
  16791. dynamic_linker="$host_os dld.so"
  16792. shlibpath_var=LD_LIBRARY_PATH
  16793. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16794. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16795. soname_spec='${libname}${release}${shared_ext}$major'
  16796. if test "X$HPUX_IA64_MODE" = X32; then
  16797. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  16798. else
  16799. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  16800. fi
  16801. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16802. ;;
  16803. hppa*64*)
  16804. shrext='.sl'
  16805. hardcode_into_libs=yes
  16806. dynamic_linker="$host_os dld.sl"
  16807. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  16808. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16809. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16810. soname_spec='${libname}${release}${shared_ext}$major'
  16811. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  16812. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16813. ;;
  16814. *)
  16815. shrext='.sl'
  16816. dynamic_linker="$host_os dld.sl"
  16817. shlibpath_var=SHLIB_PATH
  16818. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  16819. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16820. soname_spec='${libname}${release}${shared_ext}$major'
  16821. ;;
  16822. esac
  16823. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  16824. postinstall_cmds='chmod 555 $lib'
  16825. ;;
  16826. irix5* | irix6* | nonstopux*)
  16827. case $host_os in
  16828. nonstopux*) version_type=nonstopux ;;
  16829. *)
  16830. if test "$lt_cv_prog_gnu_ld" = yes; then
  16831. version_type=linux
  16832. else
  16833. version_type=irix
  16834. fi ;;
  16835. esac
  16836. need_lib_prefix=no
  16837. need_version=no
  16838. soname_spec='${libname}${release}${shared_ext}$major'
  16839. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  16840. case $host_os in
  16841. irix5* | nonstopux*)
  16842. libsuff= shlibsuff=
  16843. ;;
  16844. *)
  16845. case $LD in # libtool.m4 will add one of these switches to LD
  16846. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  16847. libsuff= shlibsuff= libmagic=32-bit;;
  16848. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  16849. libsuff=32 shlibsuff=N32 libmagic=N32;;
  16850. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  16851. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  16852. *) libsuff= shlibsuff= libmagic=never-match;;
  16853. esac
  16854. ;;
  16855. esac
  16856. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  16857. shlibpath_overrides_runpath=no
  16858. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  16859. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  16860. hardcode_into_libs=yes
  16861. ;;
  16862. # No shared lib support for Linux oldld, aout, or coff.
  16863. linux*oldld* | linux*aout* | linux*coff*)
  16864. dynamic_linker=no
  16865. ;;
  16866. # This must be Linux ELF.
  16867. linux*)
  16868. version_type=linux
  16869. need_lib_prefix=no
  16870. need_version=no
  16871. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16872. soname_spec='${libname}${release}${shared_ext}$major'
  16873. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  16874. shlibpath_var=LD_LIBRARY_PATH
  16875. shlibpath_overrides_runpath=no
  16876. # This implies no fast_install, which is unacceptable.
  16877. # Some rework will be needed to allow for fast_install
  16878. # before this can be enabled.
  16879. hardcode_into_libs=yes
  16880. # Append ld.so.conf contents to the search path
  16881. if test -f /etc/ld.so.conf; then
  16882. ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
  16883. sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
  16884. fi
  16885. # We used to test for /lib/ld.so.1 and disable shared libraries on
  16886. # powerpc, because MkLinux only supported shared libraries with the
  16887. # GNU dynamic linker. Since this was broken with cross compilers,
  16888. # most powerpc-linux boxes support dynamic linking these days and
  16889. # people can always --disable-shared, the test was removed, and we
  16890. # assume the GNU/Linux dynamic linker is in use.
  16891. dynamic_linker='GNU/Linux ld.so'
  16892. ;;
  16893. knetbsd*-gnu)
  16894. version_type=linux
  16895. need_lib_prefix=no
  16896. need_version=no
  16897. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16898. soname_spec='${libname}${release}${shared_ext}$major'
  16899. shlibpath_var=LD_LIBRARY_PATH
  16900. shlibpath_overrides_runpath=no
  16901. hardcode_into_libs=yes
  16902. dynamic_linker='GNU ld.so'
  16903. ;;
  16904. netbsd*)
  16905. version_type=sunos
  16906. need_lib_prefix=no
  16907. need_version=no
  16908. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16909. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16910. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16911. dynamic_linker='NetBSD (a.out) ld.so'
  16912. else
  16913. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16914. soname_spec='${libname}${release}${shared_ext}$major'
  16915. dynamic_linker='NetBSD ld.elf_so'
  16916. fi
  16917. shlibpath_var=LD_LIBRARY_PATH
  16918. shlibpath_overrides_runpath=yes
  16919. hardcode_into_libs=yes
  16920. ;;
  16921. newsos6)
  16922. version_type=linux
  16923. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16924. shlibpath_var=LD_LIBRARY_PATH
  16925. shlibpath_overrides_runpath=yes
  16926. ;;
  16927. nto-qnx*)
  16928. version_type=linux
  16929. need_lib_prefix=no
  16930. need_version=no
  16931. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16932. soname_spec='${libname}${release}${shared_ext}$major'
  16933. shlibpath_var=LD_LIBRARY_PATH
  16934. shlibpath_overrides_runpath=yes
  16935. ;;
  16936. openbsd*)
  16937. version_type=sunos
  16938. need_lib_prefix=no
  16939. need_version=yes
  16940. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16941. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16942. shlibpath_var=LD_LIBRARY_PATH
  16943. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16944. case $host_os in
  16945. openbsd2.[89] | openbsd2.[89].*)
  16946. shlibpath_overrides_runpath=no
  16947. ;;
  16948. *)
  16949. shlibpath_overrides_runpath=yes
  16950. ;;
  16951. esac
  16952. else
  16953. shlibpath_overrides_runpath=yes
  16954. fi
  16955. ;;
  16956. os2*)
  16957. libname_spec='$name'
  16958. shrext=".dll"
  16959. need_lib_prefix=no
  16960. library_names_spec='$libname${shared_ext} $libname.a'
  16961. dynamic_linker='OS/2 ld.exe'
  16962. shlibpath_var=LIBPATH
  16963. ;;
  16964. osf3* | osf4* | osf5*)
  16965. version_type=osf
  16966. need_lib_prefix=no
  16967. need_version=no
  16968. soname_spec='${libname}${release}${shared_ext}$major'
  16969. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16970. shlibpath_var=LD_LIBRARY_PATH
  16971. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  16972. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  16973. ;;
  16974. sco3.2v5*)
  16975. version_type=osf
  16976. soname_spec='${libname}${release}${shared_ext}$major'
  16977. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16978. shlibpath_var=LD_LIBRARY_PATH
  16979. ;;
  16980. solaris*)
  16981. version_type=linux
  16982. need_lib_prefix=no
  16983. need_version=no
  16984. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16985. soname_spec='${libname}${release}${shared_ext}$major'
  16986. shlibpath_var=LD_LIBRARY_PATH
  16987. shlibpath_overrides_runpath=yes
  16988. hardcode_into_libs=yes
  16989. # ldd complains unless libraries are executable
  16990. postinstall_cmds='chmod +x $lib'
  16991. ;;
  16992. sunos4*)
  16993. version_type=sunos
  16994. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16995. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  16996. shlibpath_var=LD_LIBRARY_PATH
  16997. shlibpath_overrides_runpath=yes
  16998. if test "$with_gnu_ld" = yes; then
  16999. need_lib_prefix=no
  17000. fi
  17001. need_version=yes
  17002. ;;
  17003. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  17004. version_type=linux
  17005. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17006. soname_spec='${libname}${release}${shared_ext}$major'
  17007. shlibpath_var=LD_LIBRARY_PATH
  17008. case $host_vendor in
  17009. sni)
  17010. shlibpath_overrides_runpath=no
  17011. need_lib_prefix=no
  17012. export_dynamic_flag_spec='${wl}-Blargedynsym'
  17013. runpath_var=LD_RUN_PATH
  17014. ;;
  17015. siemens)
  17016. need_lib_prefix=no
  17017. ;;
  17018. motorola)
  17019. need_lib_prefix=no
  17020. need_version=no
  17021. shlibpath_overrides_runpath=no
  17022. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  17023. ;;
  17024. esac
  17025. ;;
  17026. sysv4*MP*)
  17027. if test -d /usr/nec ;then
  17028. version_type=linux
  17029. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  17030. soname_spec='$libname${shared_ext}.$major'
  17031. shlibpath_var=LD_LIBRARY_PATH
  17032. fi
  17033. ;;
  17034. uts4*)
  17035. version_type=linux
  17036. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17037. soname_spec='${libname}${release}${shared_ext}$major'
  17038. shlibpath_var=LD_LIBRARY_PATH
  17039. ;;
  17040. *)
  17041. dynamic_linker=no
  17042. ;;
  17043. esac
  17044. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  17045. echo "${ECHO_T}$dynamic_linker" >&6
  17046. test "$dynamic_linker" = no && can_build_shared=no
  17047. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  17048. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  17049. hardcode_action_GCJ=
  17050. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  17051. test -n "$runpath_var GCJ" || \
  17052. test "X$hardcode_automatic_GCJ"="Xyes" ; then
  17053. # We can hardcode non-existant directories.
  17054. if test "$hardcode_direct_GCJ" != no &&
  17055. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  17056. # have to relink, otherwise we might link with an installed library
  17057. # when we should be linking with a yet-to-be-installed one
  17058. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  17059. test "$hardcode_minus_L_GCJ" != no; then
  17060. # Linking always hardcodes the temporary library directory.
  17061. hardcode_action_GCJ=relink
  17062. else
  17063. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  17064. hardcode_action_GCJ=immediate
  17065. fi
  17066. else
  17067. # We cannot hardcode anything, or else we can only hardcode existing
  17068. # directories.
  17069. hardcode_action_GCJ=unsupported
  17070. fi
  17071. echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  17072. echo "${ECHO_T}$hardcode_action_GCJ" >&6
  17073. if test "$hardcode_action_GCJ" = relink; then
  17074. # Fast installation is not supported
  17075. enable_fast_install=no
  17076. elif test "$shlibpath_overrides_runpath" = yes ||
  17077. test "$enable_shared" = no; then
  17078. # Fast installation is not necessary
  17079. enable_fast_install=needless
  17080. fi
  17081. striplib=
  17082. old_striplib=
  17083. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  17084. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  17085. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  17086. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  17087. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  17088. echo "$as_me:$LINENO: result: yes" >&5
  17089. echo "${ECHO_T}yes" >&6
  17090. else
  17091. # FIXME - insert some real tests, host_os isn't really good enough
  17092. case $host_os in
  17093. darwin*)
  17094. if test -n "$STRIP" ; then
  17095. striplib="$STRIP -x"
  17096. echo "$as_me:$LINENO: result: yes" >&5
  17097. echo "${ECHO_T}yes" >&6
  17098. else
  17099. echo "$as_me:$LINENO: result: no" >&5
  17100. echo "${ECHO_T}no" >&6
  17101. fi
  17102. ;;
  17103. *)
  17104. echo "$as_me:$LINENO: result: no" >&5
  17105. echo "${ECHO_T}no" >&6
  17106. ;;
  17107. esac
  17108. fi
  17109. if test "x$enable_dlopen" != xyes; then
  17110. enable_dlopen=unknown
  17111. enable_dlopen_self=unknown
  17112. enable_dlopen_self_static=unknown
  17113. else
  17114. lt_cv_dlopen=no
  17115. lt_cv_dlopen_libs=
  17116. case $host_os in
  17117. beos*)
  17118. lt_cv_dlopen="load_add_on"
  17119. lt_cv_dlopen_libs=
  17120. lt_cv_dlopen_self=yes
  17121. ;;
  17122. mingw* | pw32*)
  17123. lt_cv_dlopen="LoadLibrary"
  17124. lt_cv_dlopen_libs=
  17125. ;;
  17126. cygwin*)
  17127. lt_cv_dlopen="dlopen"
  17128. lt_cv_dlopen_libs=
  17129. ;;
  17130. darwin*)
  17131. # if libdl is installed we need to link against it
  17132. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  17133. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  17134. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  17135. echo $ECHO_N "(cached) $ECHO_C" >&6
  17136. else
  17137. ac_check_lib_save_LIBS=$LIBS
  17138. LIBS="-ldl $LIBS"
  17139. cat >conftest.$ac_ext <<_ACEOF
  17140. /* confdefs.h. */
  17141. _ACEOF
  17142. cat confdefs.h >>conftest.$ac_ext
  17143. cat >>conftest.$ac_ext <<_ACEOF
  17144. /* end confdefs.h. */
  17145. /* Override any gcc2 internal prototype to avoid an error. */
  17146. #ifdef __cplusplus
  17147. extern "C"
  17148. #endif
  17149. /* We use char because int might match the return type of a gcc2
  17150. builtin and then its argument prototype would still apply. */
  17151. char dlopen ();
  17152. int
  17153. main ()
  17154. {
  17155. dlopen ();
  17156. ;
  17157. return 0;
  17158. }
  17159. _ACEOF
  17160. rm -f conftest.$ac_objext conftest$ac_exeext
  17161. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17162. (eval $ac_link) 2>conftest.er1
  17163. ac_status=$?
  17164. grep -v '^ *+' conftest.er1 >conftest.err
  17165. rm -f conftest.er1
  17166. cat conftest.err >&5
  17167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17168. (exit $ac_status); } &&
  17169. { ac_try='test -z "$ac_c_werror_flag"
  17170. || test ! -s conftest.err'
  17171. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17172. (eval $ac_try) 2>&5
  17173. ac_status=$?
  17174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17175. (exit $ac_status); }; } &&
  17176. { ac_try='test -s conftest$ac_exeext'
  17177. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17178. (eval $ac_try) 2>&5
  17179. ac_status=$?
  17180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17181. (exit $ac_status); }; }; then
  17182. ac_cv_lib_dl_dlopen=yes
  17183. else
  17184. echo "$as_me: failed program was:" >&5
  17185. sed 's/^/| /' conftest.$ac_ext >&5
  17186. ac_cv_lib_dl_dlopen=no
  17187. fi
  17188. rm -f conftest.err conftest.$ac_objext \
  17189. conftest$ac_exeext conftest.$ac_ext
  17190. LIBS=$ac_check_lib_save_LIBS
  17191. fi
  17192. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  17193. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  17194. if test $ac_cv_lib_dl_dlopen = yes; then
  17195. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  17196. else
  17197. lt_cv_dlopen="dyld"
  17198. lt_cv_dlopen_libs=
  17199. lt_cv_dlopen_self=yes
  17200. fi
  17201. ;;
  17202. *)
  17203. echo "$as_me:$LINENO: checking for shl_load" >&5
  17204. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  17205. if test "${ac_cv_func_shl_load+set}" = set; then
  17206. echo $ECHO_N "(cached) $ECHO_C" >&6
  17207. else
  17208. cat >conftest.$ac_ext <<_ACEOF
  17209. /* confdefs.h. */
  17210. _ACEOF
  17211. cat confdefs.h >>conftest.$ac_ext
  17212. cat >>conftest.$ac_ext <<_ACEOF
  17213. /* end confdefs.h. */
  17214. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  17215. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17216. #define shl_load innocuous_shl_load
  17217. /* System header to define __stub macros and hopefully few prototypes,
  17218. which can conflict with char shl_load (); below.
  17219. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17220. <limits.h> exists even on freestanding compilers. */
  17221. #ifdef __STDC__
  17222. # include <limits.h>
  17223. #else
  17224. # include <assert.h>
  17225. #endif
  17226. #undef shl_load
  17227. /* Override any gcc2 internal prototype to avoid an error. */
  17228. #ifdef __cplusplus
  17229. extern "C"
  17230. {
  17231. #endif
  17232. /* We use char because int might match the return type of a gcc2
  17233. builtin and then its argument prototype would still apply. */
  17234. char shl_load ();
  17235. /* The GNU C library defines this for functions which it implements
  17236. to always fail with ENOSYS. Some functions are actually named
  17237. something starting with __ and the normal name is an alias. */
  17238. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  17239. choke me
  17240. #else
  17241. char (*f) () = shl_load;
  17242. #endif
  17243. #ifdef __cplusplus
  17244. }
  17245. #endif
  17246. int
  17247. main ()
  17248. {
  17249. return f != shl_load;
  17250. ;
  17251. return 0;
  17252. }
  17253. _ACEOF
  17254. rm -f conftest.$ac_objext conftest$ac_exeext
  17255. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17256. (eval $ac_link) 2>conftest.er1
  17257. ac_status=$?
  17258. grep -v '^ *+' conftest.er1 >conftest.err
  17259. rm -f conftest.er1
  17260. cat conftest.err >&5
  17261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17262. (exit $ac_status); } &&
  17263. { ac_try='test -z "$ac_c_werror_flag"
  17264. || test ! -s conftest.err'
  17265. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17266. (eval $ac_try) 2>&5
  17267. ac_status=$?
  17268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17269. (exit $ac_status); }; } &&
  17270. { ac_try='test -s conftest$ac_exeext'
  17271. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17272. (eval $ac_try) 2>&5
  17273. ac_status=$?
  17274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17275. (exit $ac_status); }; }; then
  17276. ac_cv_func_shl_load=yes
  17277. else
  17278. echo "$as_me: failed program was:" >&5
  17279. sed 's/^/| /' conftest.$ac_ext >&5
  17280. ac_cv_func_shl_load=no
  17281. fi
  17282. rm -f conftest.err conftest.$ac_objext \
  17283. conftest$ac_exeext conftest.$ac_ext
  17284. fi
  17285. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  17286. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  17287. if test $ac_cv_func_shl_load = yes; then
  17288. lt_cv_dlopen="shl_load"
  17289. else
  17290. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  17291. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  17292. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  17293. echo $ECHO_N "(cached) $ECHO_C" >&6
  17294. else
  17295. ac_check_lib_save_LIBS=$LIBS
  17296. LIBS="-ldld $LIBS"
  17297. cat >conftest.$ac_ext <<_ACEOF
  17298. /* confdefs.h. */
  17299. _ACEOF
  17300. cat confdefs.h >>conftest.$ac_ext
  17301. cat >>conftest.$ac_ext <<_ACEOF
  17302. /* end confdefs.h. */
  17303. /* Override any gcc2 internal prototype to avoid an error. */
  17304. #ifdef __cplusplus
  17305. extern "C"
  17306. #endif
  17307. /* We use char because int might match the return type of a gcc2
  17308. builtin and then its argument prototype would still apply. */
  17309. char shl_load ();
  17310. int
  17311. main ()
  17312. {
  17313. shl_load ();
  17314. ;
  17315. return 0;
  17316. }
  17317. _ACEOF
  17318. rm -f conftest.$ac_objext conftest$ac_exeext
  17319. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17320. (eval $ac_link) 2>conftest.er1
  17321. ac_status=$?
  17322. grep -v '^ *+' conftest.er1 >conftest.err
  17323. rm -f conftest.er1
  17324. cat conftest.err >&5
  17325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17326. (exit $ac_status); } &&
  17327. { ac_try='test -z "$ac_c_werror_flag"
  17328. || test ! -s conftest.err'
  17329. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17330. (eval $ac_try) 2>&5
  17331. ac_status=$?
  17332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17333. (exit $ac_status); }; } &&
  17334. { ac_try='test -s conftest$ac_exeext'
  17335. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17336. (eval $ac_try) 2>&5
  17337. ac_status=$?
  17338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17339. (exit $ac_status); }; }; then
  17340. ac_cv_lib_dld_shl_load=yes
  17341. else
  17342. echo "$as_me: failed program was:" >&5
  17343. sed 's/^/| /' conftest.$ac_ext >&5
  17344. ac_cv_lib_dld_shl_load=no
  17345. fi
  17346. rm -f conftest.err conftest.$ac_objext \
  17347. conftest$ac_exeext conftest.$ac_ext
  17348. LIBS=$ac_check_lib_save_LIBS
  17349. fi
  17350. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  17351. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  17352. if test $ac_cv_lib_dld_shl_load = yes; then
  17353. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  17354. else
  17355. echo "$as_me:$LINENO: checking for dlopen" >&5
  17356. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  17357. if test "${ac_cv_func_dlopen+set}" = set; then
  17358. echo $ECHO_N "(cached) $ECHO_C" >&6
  17359. else
  17360. cat >conftest.$ac_ext <<_ACEOF
  17361. /* confdefs.h. */
  17362. _ACEOF
  17363. cat confdefs.h >>conftest.$ac_ext
  17364. cat >>conftest.$ac_ext <<_ACEOF
  17365. /* end confdefs.h. */
  17366. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  17367. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17368. #define dlopen innocuous_dlopen
  17369. /* System header to define __stub macros and hopefully few prototypes,
  17370. which can conflict with char dlopen (); below.
  17371. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17372. <limits.h> exists even on freestanding compilers. */
  17373. #ifdef __STDC__
  17374. # include <limits.h>
  17375. #else
  17376. # include <assert.h>
  17377. #endif
  17378. #undef dlopen
  17379. /* Override any gcc2 internal prototype to avoid an error. */
  17380. #ifdef __cplusplus
  17381. extern "C"
  17382. {
  17383. #endif
  17384. /* We use char because int might match the return type of a gcc2
  17385. builtin and then its argument prototype would still apply. */
  17386. char dlopen ();
  17387. /* The GNU C library defines this for functions which it implements
  17388. to always fail with ENOSYS. Some functions are actually named
  17389. something starting with __ and the normal name is an alias. */
  17390. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  17391. choke me
  17392. #else
  17393. char (*f) () = dlopen;
  17394. #endif
  17395. #ifdef __cplusplus
  17396. }
  17397. #endif
  17398. int
  17399. main ()
  17400. {
  17401. return f != dlopen;
  17402. ;
  17403. return 0;
  17404. }
  17405. _ACEOF
  17406. rm -f conftest.$ac_objext conftest$ac_exeext
  17407. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17408. (eval $ac_link) 2>conftest.er1
  17409. ac_status=$?
  17410. grep -v '^ *+' conftest.er1 >conftest.err
  17411. rm -f conftest.er1
  17412. cat conftest.err >&5
  17413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17414. (exit $ac_status); } &&
  17415. { ac_try='test -z "$ac_c_werror_flag"
  17416. || test ! -s conftest.err'
  17417. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17418. (eval $ac_try) 2>&5
  17419. ac_status=$?
  17420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17421. (exit $ac_status); }; } &&
  17422. { ac_try='test -s conftest$ac_exeext'
  17423. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17424. (eval $ac_try) 2>&5
  17425. ac_status=$?
  17426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17427. (exit $ac_status); }; }; then
  17428. ac_cv_func_dlopen=yes
  17429. else
  17430. echo "$as_me: failed program was:" >&5
  17431. sed 's/^/| /' conftest.$ac_ext >&5
  17432. ac_cv_func_dlopen=no
  17433. fi
  17434. rm -f conftest.err conftest.$ac_objext \
  17435. conftest$ac_exeext conftest.$ac_ext
  17436. fi
  17437. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  17438. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  17439. if test $ac_cv_func_dlopen = yes; then
  17440. lt_cv_dlopen="dlopen"
  17441. else
  17442. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  17443. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  17444. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  17445. echo $ECHO_N "(cached) $ECHO_C" >&6
  17446. else
  17447. ac_check_lib_save_LIBS=$LIBS
  17448. LIBS="-ldl $LIBS"
  17449. cat >conftest.$ac_ext <<_ACEOF
  17450. /* confdefs.h. */
  17451. _ACEOF
  17452. cat confdefs.h >>conftest.$ac_ext
  17453. cat >>conftest.$ac_ext <<_ACEOF
  17454. /* end confdefs.h. */
  17455. /* Override any gcc2 internal prototype to avoid an error. */
  17456. #ifdef __cplusplus
  17457. extern "C"
  17458. #endif
  17459. /* We use char because int might match the return type of a gcc2
  17460. builtin and then its argument prototype would still apply. */
  17461. char dlopen ();
  17462. int
  17463. main ()
  17464. {
  17465. dlopen ();
  17466. ;
  17467. return 0;
  17468. }
  17469. _ACEOF
  17470. rm -f conftest.$ac_objext conftest$ac_exeext
  17471. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17472. (eval $ac_link) 2>conftest.er1
  17473. ac_status=$?
  17474. grep -v '^ *+' conftest.er1 >conftest.err
  17475. rm -f conftest.er1
  17476. cat conftest.err >&5
  17477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17478. (exit $ac_status); } &&
  17479. { ac_try='test -z "$ac_c_werror_flag"
  17480. || test ! -s conftest.err'
  17481. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17482. (eval $ac_try) 2>&5
  17483. ac_status=$?
  17484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17485. (exit $ac_status); }; } &&
  17486. { ac_try='test -s conftest$ac_exeext'
  17487. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17488. (eval $ac_try) 2>&5
  17489. ac_status=$?
  17490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17491. (exit $ac_status); }; }; then
  17492. ac_cv_lib_dl_dlopen=yes
  17493. else
  17494. echo "$as_me: failed program was:" >&5
  17495. sed 's/^/| /' conftest.$ac_ext >&5
  17496. ac_cv_lib_dl_dlopen=no
  17497. fi
  17498. rm -f conftest.err conftest.$ac_objext \
  17499. conftest$ac_exeext conftest.$ac_ext
  17500. LIBS=$ac_check_lib_save_LIBS
  17501. fi
  17502. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  17503. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  17504. if test $ac_cv_lib_dl_dlopen = yes; then
  17505. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  17506. else
  17507. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  17508. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  17509. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  17510. echo $ECHO_N "(cached) $ECHO_C" >&6
  17511. else
  17512. ac_check_lib_save_LIBS=$LIBS
  17513. LIBS="-lsvld $LIBS"
  17514. cat >conftest.$ac_ext <<_ACEOF
  17515. /* confdefs.h. */
  17516. _ACEOF
  17517. cat confdefs.h >>conftest.$ac_ext
  17518. cat >>conftest.$ac_ext <<_ACEOF
  17519. /* end confdefs.h. */
  17520. /* Override any gcc2 internal prototype to avoid an error. */
  17521. #ifdef __cplusplus
  17522. extern "C"
  17523. #endif
  17524. /* We use char because int might match the return type of a gcc2
  17525. builtin and then its argument prototype would still apply. */
  17526. char dlopen ();
  17527. int
  17528. main ()
  17529. {
  17530. dlopen ();
  17531. ;
  17532. return 0;
  17533. }
  17534. _ACEOF
  17535. rm -f conftest.$ac_objext conftest$ac_exeext
  17536. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17537. (eval $ac_link) 2>conftest.er1
  17538. ac_status=$?
  17539. grep -v '^ *+' conftest.er1 >conftest.err
  17540. rm -f conftest.er1
  17541. cat conftest.err >&5
  17542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17543. (exit $ac_status); } &&
  17544. { ac_try='test -z "$ac_c_werror_flag"
  17545. || test ! -s conftest.err'
  17546. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17547. (eval $ac_try) 2>&5
  17548. ac_status=$?
  17549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17550. (exit $ac_status); }; } &&
  17551. { ac_try='test -s conftest$ac_exeext'
  17552. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17553. (eval $ac_try) 2>&5
  17554. ac_status=$?
  17555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17556. (exit $ac_status); }; }; then
  17557. ac_cv_lib_svld_dlopen=yes
  17558. else
  17559. echo "$as_me: failed program was:" >&5
  17560. sed 's/^/| /' conftest.$ac_ext >&5
  17561. ac_cv_lib_svld_dlopen=no
  17562. fi
  17563. rm -f conftest.err conftest.$ac_objext \
  17564. conftest$ac_exeext conftest.$ac_ext
  17565. LIBS=$ac_check_lib_save_LIBS
  17566. fi
  17567. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  17568. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  17569. if test $ac_cv_lib_svld_dlopen = yes; then
  17570. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  17571. else
  17572. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  17573. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  17574. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  17575. echo $ECHO_N "(cached) $ECHO_C" >&6
  17576. else
  17577. ac_check_lib_save_LIBS=$LIBS
  17578. LIBS="-ldld $LIBS"
  17579. cat >conftest.$ac_ext <<_ACEOF
  17580. /* confdefs.h. */
  17581. _ACEOF
  17582. cat confdefs.h >>conftest.$ac_ext
  17583. cat >>conftest.$ac_ext <<_ACEOF
  17584. /* end confdefs.h. */
  17585. /* Override any gcc2 internal prototype to avoid an error. */
  17586. #ifdef __cplusplus
  17587. extern "C"
  17588. #endif
  17589. /* We use char because int might match the return type of a gcc2
  17590. builtin and then its argument prototype would still apply. */
  17591. char dld_link ();
  17592. int
  17593. main ()
  17594. {
  17595. dld_link ();
  17596. ;
  17597. return 0;
  17598. }
  17599. _ACEOF
  17600. rm -f conftest.$ac_objext conftest$ac_exeext
  17601. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17602. (eval $ac_link) 2>conftest.er1
  17603. ac_status=$?
  17604. grep -v '^ *+' conftest.er1 >conftest.err
  17605. rm -f conftest.er1
  17606. cat conftest.err >&5
  17607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17608. (exit $ac_status); } &&
  17609. { ac_try='test -z "$ac_c_werror_flag"
  17610. || test ! -s conftest.err'
  17611. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17612. (eval $ac_try) 2>&5
  17613. ac_status=$?
  17614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17615. (exit $ac_status); }; } &&
  17616. { ac_try='test -s conftest$ac_exeext'
  17617. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17618. (eval $ac_try) 2>&5
  17619. ac_status=$?
  17620. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17621. (exit $ac_status); }; }; then
  17622. ac_cv_lib_dld_dld_link=yes
  17623. else
  17624. echo "$as_me: failed program was:" >&5
  17625. sed 's/^/| /' conftest.$ac_ext >&5
  17626. ac_cv_lib_dld_dld_link=no
  17627. fi
  17628. rm -f conftest.err conftest.$ac_objext \
  17629. conftest$ac_exeext conftest.$ac_ext
  17630. LIBS=$ac_check_lib_save_LIBS
  17631. fi
  17632. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  17633. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  17634. if test $ac_cv_lib_dld_dld_link = yes; then
  17635. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  17636. fi
  17637. fi
  17638. fi
  17639. fi
  17640. fi
  17641. fi
  17642. ;;
  17643. esac
  17644. if test "x$lt_cv_dlopen" != xno; then
  17645. enable_dlopen=yes
  17646. else
  17647. enable_dlopen=no
  17648. fi
  17649. case $lt_cv_dlopen in
  17650. dlopen)
  17651. save_CPPFLAGS="$CPPFLAGS"
  17652. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  17653. save_LDFLAGS="$LDFLAGS"
  17654. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  17655. save_LIBS="$LIBS"
  17656. LIBS="$lt_cv_dlopen_libs $LIBS"
  17657. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  17658. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  17659. if test "${lt_cv_dlopen_self+set}" = set; then
  17660. echo $ECHO_N "(cached) $ECHO_C" >&6
  17661. else
  17662. if test "$cross_compiling" = yes; then :
  17663. lt_cv_dlopen_self=cross
  17664. else
  17665. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  17666. lt_status=$lt_dlunknown
  17667. cat > conftest.$ac_ext <<EOF
  17668. #line 19586 "configure"
  17669. #include "confdefs.h"
  17670. #if HAVE_DLFCN_H
  17671. #include <dlfcn.h>
  17672. #endif
  17673. #include <stdio.h>
  17674. #ifdef RTLD_GLOBAL
  17675. # define LT_DLGLOBAL RTLD_GLOBAL
  17676. #else
  17677. # ifdef DL_GLOBAL
  17678. # define LT_DLGLOBAL DL_GLOBAL
  17679. # else
  17680. # define LT_DLGLOBAL 0
  17681. # endif
  17682. #endif
  17683. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  17684. find out it does not work in some platform. */
  17685. #ifndef LT_DLLAZY_OR_NOW
  17686. # ifdef RTLD_LAZY
  17687. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  17688. # else
  17689. # ifdef DL_LAZY
  17690. # define LT_DLLAZY_OR_NOW DL_LAZY
  17691. # else
  17692. # ifdef RTLD_NOW
  17693. # define LT_DLLAZY_OR_NOW RTLD_NOW
  17694. # else
  17695. # ifdef DL_NOW
  17696. # define LT_DLLAZY_OR_NOW DL_NOW
  17697. # else
  17698. # define LT_DLLAZY_OR_NOW 0
  17699. # endif
  17700. # endif
  17701. # endif
  17702. # endif
  17703. #endif
  17704. #ifdef __cplusplus
  17705. extern "C" void exit (int);
  17706. #endif
  17707. void fnord() { int i=42;}
  17708. int main ()
  17709. {
  17710. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  17711. int status = $lt_dlunknown;
  17712. if (self)
  17713. {
  17714. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  17715. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  17716. /* dlclose (self); */
  17717. }
  17718. exit (status);
  17719. }
  17720. EOF
  17721. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17722. (eval $ac_link) 2>&5
  17723. ac_status=$?
  17724. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17725. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  17726. (./conftest; exit; ) 2>/dev/null
  17727. lt_status=$?
  17728. case x$lt_status in
  17729. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  17730. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  17731. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  17732. esac
  17733. else :
  17734. # compilation failed
  17735. lt_cv_dlopen_self=no
  17736. fi
  17737. fi
  17738. rm -fr conftest*
  17739. fi
  17740. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  17741. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  17742. if test "x$lt_cv_dlopen_self" = xyes; then
  17743. LDFLAGS="$LDFLAGS $link_static_flag"
  17744. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  17745. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  17746. if test "${lt_cv_dlopen_self_static+set}" = set; then
  17747. echo $ECHO_N "(cached) $ECHO_C" >&6
  17748. else
  17749. if test "$cross_compiling" = yes; then :
  17750. lt_cv_dlopen_self_static=cross
  17751. else
  17752. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  17753. lt_status=$lt_dlunknown
  17754. cat > conftest.$ac_ext <<EOF
  17755. #line 19684 "configure"
  17756. #include "confdefs.h"
  17757. #if HAVE_DLFCN_H
  17758. #include <dlfcn.h>
  17759. #endif
  17760. #include <stdio.h>
  17761. #ifdef RTLD_GLOBAL
  17762. # define LT_DLGLOBAL RTLD_GLOBAL
  17763. #else
  17764. # ifdef DL_GLOBAL
  17765. # define LT_DLGLOBAL DL_GLOBAL
  17766. # else
  17767. # define LT_DLGLOBAL 0
  17768. # endif
  17769. #endif
  17770. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  17771. find out it does not work in some platform. */
  17772. #ifndef LT_DLLAZY_OR_NOW
  17773. # ifdef RTLD_LAZY
  17774. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  17775. # else
  17776. # ifdef DL_LAZY
  17777. # define LT_DLLAZY_OR_NOW DL_LAZY
  17778. # else
  17779. # ifdef RTLD_NOW
  17780. # define LT_DLLAZY_OR_NOW RTLD_NOW
  17781. # else
  17782. # ifdef DL_NOW
  17783. # define LT_DLLAZY_OR_NOW DL_NOW
  17784. # else
  17785. # define LT_DLLAZY_OR_NOW 0
  17786. # endif
  17787. # endif
  17788. # endif
  17789. # endif
  17790. #endif
  17791. #ifdef __cplusplus
  17792. extern "C" void exit (int);
  17793. #endif
  17794. void fnord() { int i=42;}
  17795. int main ()
  17796. {
  17797. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  17798. int status = $lt_dlunknown;
  17799. if (self)
  17800. {
  17801. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  17802. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  17803. /* dlclose (self); */
  17804. }
  17805. exit (status);
  17806. }
  17807. EOF
  17808. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17809. (eval $ac_link) 2>&5
  17810. ac_status=$?
  17811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17812. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  17813. (./conftest; exit; ) 2>/dev/null
  17814. lt_status=$?
  17815. case x$lt_status in
  17816. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  17817. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  17818. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  17819. esac
  17820. else :
  17821. # compilation failed
  17822. lt_cv_dlopen_self_static=no
  17823. fi
  17824. fi
  17825. rm -fr conftest*
  17826. fi
  17827. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  17828. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  17829. fi
  17830. CPPFLAGS="$save_CPPFLAGS"
  17831. LDFLAGS="$save_LDFLAGS"
  17832. LIBS="$save_LIBS"
  17833. ;;
  17834. esac
  17835. case $lt_cv_dlopen_self in
  17836. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  17837. *) enable_dlopen_self=unknown ;;
  17838. esac
  17839. case $lt_cv_dlopen_self_static in
  17840. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  17841. *) enable_dlopen_self_static=unknown ;;
  17842. esac
  17843. fi
  17844. # The else clause should only fire when bootstrapping the
  17845. # libtool distribution, otherwise you forgot to ship ltmain.sh
  17846. # with your package, and you will get complaints that there are
  17847. # no rules to generate ltmain.sh.
  17848. if test -f "$ltmain"; then
  17849. # See if we are running on zsh, and set the options which allow our commands through
  17850. # without removal of \ escapes.
  17851. if test -n "${ZSH_VERSION+set}" ; then
  17852. setopt NO_GLOB_SUBST
  17853. fi
  17854. # Now quote all the things that may contain metacharacters while being
  17855. # careful not to overquote the AC_SUBSTed values. We take copies of the
  17856. # variables and quote the copies for generation of the libtool script.
  17857. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  17858. SED SHELL STRIP \
  17859. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  17860. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  17861. deplibs_check_method reload_flag reload_cmds need_locks \
  17862. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  17863. lt_cv_sys_global_symbol_to_c_name_address \
  17864. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  17865. old_postinstall_cmds old_postuninstall_cmds \
  17866. compiler_GCJ \
  17867. CC_GCJ \
  17868. LD_GCJ \
  17869. lt_prog_compiler_wl_GCJ \
  17870. lt_prog_compiler_pic_GCJ \
  17871. lt_prog_compiler_static_GCJ \
  17872. lt_prog_compiler_no_builtin_flag_GCJ \
  17873. export_dynamic_flag_spec_GCJ \
  17874. thread_safe_flag_spec_GCJ \
  17875. whole_archive_flag_spec_GCJ \
  17876. enable_shared_with_static_runtimes_GCJ \
  17877. old_archive_cmds_GCJ \
  17878. old_archive_from_new_cmds_GCJ \
  17879. predep_objects_GCJ \
  17880. postdep_objects_GCJ \
  17881. predeps_GCJ \
  17882. postdeps_GCJ \
  17883. compiler_lib_search_path_GCJ \
  17884. archive_cmds_GCJ \
  17885. archive_expsym_cmds_GCJ \
  17886. postinstall_cmds_GCJ \
  17887. postuninstall_cmds_GCJ \
  17888. old_archive_from_expsyms_cmds_GCJ \
  17889. allow_undefined_flag_GCJ \
  17890. no_undefined_flag_GCJ \
  17891. export_symbols_cmds_GCJ \
  17892. hardcode_libdir_flag_spec_GCJ \
  17893. hardcode_libdir_flag_spec_ld_GCJ \
  17894. hardcode_libdir_separator_GCJ \
  17895. hardcode_automatic_GCJ \
  17896. module_cmds_GCJ \
  17897. module_expsym_cmds_GCJ \
  17898. lt_cv_prog_compiler_c_o_GCJ \
  17899. exclude_expsyms_GCJ \
  17900. include_expsyms_GCJ; do
  17901. case $var in
  17902. old_archive_cmds_GCJ | \
  17903. old_archive_from_new_cmds_GCJ | \
  17904. archive_cmds_GCJ | \
  17905. archive_expsym_cmds_GCJ | \
  17906. module_cmds_GCJ | \
  17907. module_expsym_cmds_GCJ | \
  17908. old_archive_from_expsyms_cmds_GCJ | \
  17909. export_symbols_cmds_GCJ | \
  17910. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  17911. postinstall_cmds | postuninstall_cmds | \
  17912. old_postinstall_cmds | old_postuninstall_cmds | \
  17913. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  17914. # Double-quote double-evaled strings.
  17915. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  17916. ;;
  17917. *)
  17918. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  17919. ;;
  17920. esac
  17921. done
  17922. case $lt_echo in
  17923. *'\$0 --fallback-echo"')
  17924. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  17925. ;;
  17926. esac
  17927. cfgfile="$ofile"
  17928. cat <<__EOF__ >> "$cfgfile"
  17929. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  17930. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17931. # Shell to use when invoking shell scripts.
  17932. SHELL=$lt_SHELL
  17933. # Whether or not to build shared libraries.
  17934. build_libtool_libs=$enable_shared
  17935. # Whether or not to build static libraries.
  17936. build_old_libs=$enable_static
  17937. # Whether or not to add -lc for building shared libraries.
  17938. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  17939. # Whether or not to disallow shared libs when runtime libs are static
  17940. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  17941. # Whether or not to optimize for fast installation.
  17942. fast_install=$enable_fast_install
  17943. # The host system.
  17944. host_alias=$host_alias
  17945. host=$host
  17946. # An echo program that does not interpret backslashes.
  17947. echo=$lt_echo
  17948. # The archiver.
  17949. AR=$lt_AR
  17950. AR_FLAGS=$lt_AR_FLAGS
  17951. # A C compiler.
  17952. LTCC=$lt_LTCC
  17953. # A language-specific compiler.
  17954. CC=$lt_compiler_GCJ
  17955. # Is the compiler the GNU C compiler?
  17956. with_gcc=$GCC_GCJ
  17957. # An ERE matcher.
  17958. EGREP=$lt_EGREP
  17959. # The linker used to build libraries.
  17960. LD=$lt_LD_GCJ
  17961. # Whether we need hard or soft links.
  17962. LN_S=$lt_LN_S
  17963. # A BSD-compatible nm program.
  17964. NM=$lt_NM
  17965. # A symbol stripping program
  17966. STRIP=$lt_STRIP
  17967. # Used to examine libraries when file_magic_cmd begins "file"
  17968. MAGIC_CMD=$MAGIC_CMD
  17969. # Used on cygwin: DLL creation program.
  17970. DLLTOOL="$DLLTOOL"
  17971. # Used on cygwin: object dumper.
  17972. OBJDUMP="$OBJDUMP"
  17973. # Used on cygwin: assembler.
  17974. AS="$AS"
  17975. # The name of the directory that contains temporary libtool files.
  17976. objdir=$objdir
  17977. # How to create reloadable object files.
  17978. reload_flag=$lt_reload_flag
  17979. reload_cmds=$lt_reload_cmds
  17980. # How to pass a linker flag through the compiler.
  17981. wl=$lt_lt_prog_compiler_wl_GCJ
  17982. # Object file suffix (normally "o").
  17983. objext="$ac_objext"
  17984. # Old archive suffix (normally "a").
  17985. libext="$libext"
  17986. # Shared library suffix (normally ".so").
  17987. shrext='$shrext'
  17988. # Executable file suffix (normally "").
  17989. exeext="$exeext"
  17990. # Additional compiler flags for building library objects.
  17991. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  17992. pic_mode=$pic_mode
  17993. # What is the maximum length of a command?
  17994. max_cmd_len=$lt_cv_sys_max_cmd_len
  17995. # Does compiler simultaneously support -c and -o options?
  17996. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  17997. # Must we lock files when doing compilation ?
  17998. need_locks=$lt_need_locks
  17999. # Do we need the lib prefix for modules?
  18000. need_lib_prefix=$need_lib_prefix
  18001. # Do we need a version for libraries?
  18002. need_version=$need_version
  18003. # Whether dlopen is supported.
  18004. dlopen_support=$enable_dlopen
  18005. # Whether dlopen of programs is supported.
  18006. dlopen_self=$enable_dlopen_self
  18007. # Whether dlopen of statically linked programs is supported.
  18008. dlopen_self_static=$enable_dlopen_self_static
  18009. # Compiler flag to prevent dynamic linking.
  18010. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  18011. # Compiler flag to turn off builtin functions.
  18012. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  18013. # Compiler flag to allow reflexive dlopens.
  18014. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  18015. # Compiler flag to generate shared objects directly from archives.
  18016. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  18017. # Compiler flag to generate thread-safe objects.
  18018. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  18019. # Library versioning type.
  18020. version_type=$version_type
  18021. # Format of library name prefix.
  18022. libname_spec=$lt_libname_spec
  18023. # List of archive names. First name is the real one, the rest are links.
  18024. # The last name is the one that the linker finds with -lNAME.
  18025. library_names_spec=$lt_library_names_spec
  18026. # The coded name of the library, if different from the real name.
  18027. soname_spec=$lt_soname_spec
  18028. # Commands used to build and install an old-style archive.
  18029. RANLIB=$lt_RANLIB
  18030. old_archive_cmds=$lt_old_archive_cmds_GCJ
  18031. old_postinstall_cmds=$lt_old_postinstall_cmds
  18032. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  18033. # Create an old-style archive from a shared archive.
  18034. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  18035. # Create a temporary old-style archive to link instead of a shared archive.
  18036. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  18037. # Commands used to build and install a shared archive.
  18038. archive_cmds=$lt_archive_cmds_GCJ
  18039. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  18040. postinstall_cmds=$lt_postinstall_cmds
  18041. postuninstall_cmds=$lt_postuninstall_cmds
  18042. # Commands used to build a loadable module (assumed same as above if empty)
  18043. module_cmds=$lt_module_cmds_GCJ
  18044. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  18045. # Commands to strip libraries.
  18046. old_striplib=$lt_old_striplib
  18047. striplib=$lt_striplib
  18048. # Dependencies to place before the objects being linked to create a
  18049. # shared library.
  18050. predep_objects=$lt_predep_objects_GCJ
  18051. # Dependencies to place after the objects being linked to create a
  18052. # shared library.
  18053. postdep_objects=$lt_postdep_objects_GCJ
  18054. # Dependencies to place before the objects being linked to create a
  18055. # shared library.
  18056. predeps=$lt_predeps_GCJ
  18057. # Dependencies to place after the objects being linked to create a
  18058. # shared library.
  18059. postdeps=$lt_postdeps_GCJ
  18060. # The library search path used internally by the compiler when linking
  18061. # a shared library.
  18062. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  18063. # Method to check whether dependent libraries are shared objects.
  18064. deplibs_check_method=$lt_deplibs_check_method
  18065. # Command to use when deplibs_check_method == file_magic.
  18066. file_magic_cmd=$lt_file_magic_cmd
  18067. # Flag that allows shared libraries with undefined symbols to be built.
  18068. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  18069. # Flag that forces no undefined symbols.
  18070. no_undefined_flag=$lt_no_undefined_flag_GCJ
  18071. # Commands used to finish a libtool library installation in a directory.
  18072. finish_cmds=$lt_finish_cmds
  18073. # Same as above, but a single script fragment to be evaled but not shown.
  18074. finish_eval=$lt_finish_eval
  18075. # Take the output of nm and produce a listing of raw symbols and C names.
  18076. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  18077. # Transform the output of nm in a proper C declaration
  18078. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  18079. # Transform the output of nm in a C name address pair
  18080. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  18081. # This is the shared library runtime path variable.
  18082. runpath_var=$runpath_var
  18083. # This is the shared library path variable.
  18084. shlibpath_var=$shlibpath_var
  18085. # Is shlibpath searched before the hard-coded library search path?
  18086. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  18087. # How to hardcode a shared library path into an executable.
  18088. hardcode_action=$hardcode_action_GCJ
  18089. # Whether we should hardcode library paths into libraries.
  18090. hardcode_into_libs=$hardcode_into_libs
  18091. # Flag to hardcode \$libdir into a binary during linking.
  18092. # This must work even if \$libdir does not exist.
  18093. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  18094. # If ld is used when linking, flag to hardcode \$libdir into
  18095. # a binary during linking. This must work even if \$libdir does
  18096. # not exist.
  18097. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  18098. # Whether we need a single -rpath flag with a separated argument.
  18099. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  18100. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  18101. # resulting binary.
  18102. hardcode_direct=$hardcode_direct_GCJ
  18103. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  18104. # resulting binary.
  18105. hardcode_minus_L=$hardcode_minus_L_GCJ
  18106. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  18107. # the resulting binary.
  18108. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  18109. # Set to yes if building a shared library automatically hardcodes DIR into the library
  18110. # and all subsequent libraries and executables linked against it.
  18111. hardcode_automatic=$hardcode_automatic_GCJ
  18112. # Variables whose values should be saved in libtool wrapper scripts and
  18113. # restored at relink time.
  18114. variables_saved_for_relink="$variables_saved_for_relink"
  18115. # Whether libtool must link a program against all its dependency libraries.
  18116. link_all_deplibs=$link_all_deplibs_GCJ
  18117. # Compile-time system search path for libraries
  18118. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  18119. # Run-time system search path for libraries
  18120. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  18121. # Fix the shell variable \$srcfile for the compiler.
  18122. fix_srcfile_path="$fix_srcfile_path_GCJ"
  18123. # Set to yes if exported symbols are required.
  18124. always_export_symbols=$always_export_symbols_GCJ
  18125. # The commands to list exported symbols.
  18126. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  18127. # The commands to extract the exported symbol list from a shared archive.
  18128. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  18129. # Symbols that should not be listed in the preloaded symbols.
  18130. exclude_expsyms=$lt_exclude_expsyms_GCJ
  18131. # Symbols that must always be exported.
  18132. include_expsyms=$lt_include_expsyms_GCJ
  18133. # ### END LIBTOOL TAG CONFIG: $tagname
  18134. __EOF__
  18135. else
  18136. # If there is no Makefile yet, we rely on a make rule to execute
  18137. # `config.status --recheck' to rerun these tests and create the
  18138. # libtool script then.
  18139. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  18140. if test -f "$ltmain_in"; then
  18141. test -f Makefile && make "$ltmain"
  18142. fi
  18143. fi
  18144. ac_ext=c
  18145. ac_cpp='$CPP $CPPFLAGS'
  18146. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18147. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18148. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18149. CC="$lt_save_CC"
  18150. else
  18151. tagname=""
  18152. fi
  18153. ;;
  18154. RC)
  18155. # Source file extension for RC test sources.
  18156. ac_ext=rc
  18157. # Object file extension for compiled RC test sources.
  18158. objext=o
  18159. objext_RC=$objext
  18160. # Code to be used in simple compile tests
  18161. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  18162. # Code to be used in simple link tests
  18163. lt_simple_link_test_code="$lt_simple_compile_test_code"
  18164. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  18165. # If no C compiler was specified, use CC.
  18166. LTCC=${LTCC-"$CC"}
  18167. # Allow CC to be a program name with arguments.
  18168. compiler=$CC
  18169. # Allow CC to be a program name with arguments.
  18170. lt_save_CC="$CC"
  18171. CC=${RC-"windres"}
  18172. compiler=$CC
  18173. compiler_RC=$CC
  18174. lt_cv_prog_compiler_c_o_RC=yes
  18175. # The else clause should only fire when bootstrapping the
  18176. # libtool distribution, otherwise you forgot to ship ltmain.sh
  18177. # with your package, and you will get complaints that there are
  18178. # no rules to generate ltmain.sh.
  18179. if test -f "$ltmain"; then
  18180. # See if we are running on zsh, and set the options which allow our commands through
  18181. # without removal of \ escapes.
  18182. if test -n "${ZSH_VERSION+set}" ; then
  18183. setopt NO_GLOB_SUBST
  18184. fi
  18185. # Now quote all the things that may contain metacharacters while being
  18186. # careful not to overquote the AC_SUBSTed values. We take copies of the
  18187. # variables and quote the copies for generation of the libtool script.
  18188. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  18189. SED SHELL STRIP \
  18190. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  18191. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  18192. deplibs_check_method reload_flag reload_cmds need_locks \
  18193. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  18194. lt_cv_sys_global_symbol_to_c_name_address \
  18195. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  18196. old_postinstall_cmds old_postuninstall_cmds \
  18197. compiler_RC \
  18198. CC_RC \
  18199. LD_RC \
  18200. lt_prog_compiler_wl_RC \
  18201. lt_prog_compiler_pic_RC \
  18202. lt_prog_compiler_static_RC \
  18203. lt_prog_compiler_no_builtin_flag_RC \
  18204. export_dynamic_flag_spec_RC \
  18205. thread_safe_flag_spec_RC \
  18206. whole_archive_flag_spec_RC \
  18207. enable_shared_with_static_runtimes_RC \
  18208. old_archive_cmds_RC \
  18209. old_archive_from_new_cmds_RC \
  18210. predep_objects_RC \
  18211. postdep_objects_RC \
  18212. predeps_RC \
  18213. postdeps_RC \
  18214. compiler_lib_search_path_RC \
  18215. archive_cmds_RC \
  18216. archive_expsym_cmds_RC \
  18217. postinstall_cmds_RC \
  18218. postuninstall_cmds_RC \
  18219. old_archive_from_expsyms_cmds_RC \
  18220. allow_undefined_flag_RC \
  18221. no_undefined_flag_RC \
  18222. export_symbols_cmds_RC \
  18223. hardcode_libdir_flag_spec_RC \
  18224. hardcode_libdir_flag_spec_ld_RC \
  18225. hardcode_libdir_separator_RC \
  18226. hardcode_automatic_RC \
  18227. module_cmds_RC \
  18228. module_expsym_cmds_RC \
  18229. lt_cv_prog_compiler_c_o_RC \
  18230. exclude_expsyms_RC \
  18231. include_expsyms_RC; do
  18232. case $var in
  18233. old_archive_cmds_RC | \
  18234. old_archive_from_new_cmds_RC | \
  18235. archive_cmds_RC | \
  18236. archive_expsym_cmds_RC | \
  18237. module_cmds_RC | \
  18238. module_expsym_cmds_RC | \
  18239. old_archive_from_expsyms_cmds_RC | \
  18240. export_symbols_cmds_RC | \
  18241. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  18242. postinstall_cmds | postuninstall_cmds | \
  18243. old_postinstall_cmds | old_postuninstall_cmds | \
  18244. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  18245. # Double-quote double-evaled strings.
  18246. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  18247. ;;
  18248. *)
  18249. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  18250. ;;
  18251. esac
  18252. done
  18253. case $lt_echo in
  18254. *'\$0 --fallback-echo"')
  18255. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  18256. ;;
  18257. esac
  18258. cfgfile="$ofile"
  18259. cat <<__EOF__ >> "$cfgfile"
  18260. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  18261. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  18262. # Shell to use when invoking shell scripts.
  18263. SHELL=$lt_SHELL
  18264. # Whether or not to build shared libraries.
  18265. build_libtool_libs=$enable_shared
  18266. # Whether or not to build static libraries.
  18267. build_old_libs=$enable_static
  18268. # Whether or not to add -lc for building shared libraries.
  18269. build_libtool_need_lc=$archive_cmds_need_lc_RC
  18270. # Whether or not to disallow shared libs when runtime libs are static
  18271. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  18272. # Whether or not to optimize for fast installation.
  18273. fast_install=$enable_fast_install
  18274. # The host system.
  18275. host_alias=$host_alias
  18276. host=$host
  18277. # An echo program that does not interpret backslashes.
  18278. echo=$lt_echo
  18279. # The archiver.
  18280. AR=$lt_AR
  18281. AR_FLAGS=$lt_AR_FLAGS
  18282. # A C compiler.
  18283. LTCC=$lt_LTCC
  18284. # A language-specific compiler.
  18285. CC=$lt_compiler_RC
  18286. # Is the compiler the GNU C compiler?
  18287. with_gcc=$GCC_RC
  18288. # An ERE matcher.
  18289. EGREP=$lt_EGREP
  18290. # The linker used to build libraries.
  18291. LD=$lt_LD_RC
  18292. # Whether we need hard or soft links.
  18293. LN_S=$lt_LN_S
  18294. # A BSD-compatible nm program.
  18295. NM=$lt_NM
  18296. # A symbol stripping program
  18297. STRIP=$lt_STRIP
  18298. # Used to examine libraries when file_magic_cmd begins "file"
  18299. MAGIC_CMD=$MAGIC_CMD
  18300. # Used on cygwin: DLL creation program.
  18301. DLLTOOL="$DLLTOOL"
  18302. # Used on cygwin: object dumper.
  18303. OBJDUMP="$OBJDUMP"
  18304. # Used on cygwin: assembler.
  18305. AS="$AS"
  18306. # The name of the directory that contains temporary libtool files.
  18307. objdir=$objdir
  18308. # How to create reloadable object files.
  18309. reload_flag=$lt_reload_flag
  18310. reload_cmds=$lt_reload_cmds
  18311. # How to pass a linker flag through the compiler.
  18312. wl=$lt_lt_prog_compiler_wl_RC
  18313. # Object file suffix (normally "o").
  18314. objext="$ac_objext"
  18315. # Old archive suffix (normally "a").
  18316. libext="$libext"
  18317. # Shared library suffix (normally ".so").
  18318. shrext='$shrext'
  18319. # Executable file suffix (normally "").
  18320. exeext="$exeext"
  18321. # Additional compiler flags for building library objects.
  18322. pic_flag=$lt_lt_prog_compiler_pic_RC
  18323. pic_mode=$pic_mode
  18324. # What is the maximum length of a command?
  18325. max_cmd_len=$lt_cv_sys_max_cmd_len
  18326. # Does compiler simultaneously support -c and -o options?
  18327. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  18328. # Must we lock files when doing compilation ?
  18329. need_locks=$lt_need_locks
  18330. # Do we need the lib prefix for modules?
  18331. need_lib_prefix=$need_lib_prefix
  18332. # Do we need a version for libraries?
  18333. need_version=$need_version
  18334. # Whether dlopen is supported.
  18335. dlopen_support=$enable_dlopen
  18336. # Whether dlopen of programs is supported.
  18337. dlopen_self=$enable_dlopen_self
  18338. # Whether dlopen of statically linked programs is supported.
  18339. dlopen_self_static=$enable_dlopen_self_static
  18340. # Compiler flag to prevent dynamic linking.
  18341. link_static_flag=$lt_lt_prog_compiler_static_RC
  18342. # Compiler flag to turn off builtin functions.
  18343. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  18344. # Compiler flag to allow reflexive dlopens.
  18345. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  18346. # Compiler flag to generate shared objects directly from archives.
  18347. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  18348. # Compiler flag to generate thread-safe objects.
  18349. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  18350. # Library versioning type.
  18351. version_type=$version_type
  18352. # Format of library name prefix.
  18353. libname_spec=$lt_libname_spec
  18354. # List of archive names. First name is the real one, the rest are links.
  18355. # The last name is the one that the linker finds with -lNAME.
  18356. library_names_spec=$lt_library_names_spec
  18357. # The coded name of the library, if different from the real name.
  18358. soname_spec=$lt_soname_spec
  18359. # Commands used to build and install an old-style archive.
  18360. RANLIB=$lt_RANLIB
  18361. old_archive_cmds=$lt_old_archive_cmds_RC
  18362. old_postinstall_cmds=$lt_old_postinstall_cmds
  18363. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  18364. # Create an old-style archive from a shared archive.
  18365. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  18366. # Create a temporary old-style archive to link instead of a shared archive.
  18367. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  18368. # Commands used to build and install a shared archive.
  18369. archive_cmds=$lt_archive_cmds_RC
  18370. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  18371. postinstall_cmds=$lt_postinstall_cmds
  18372. postuninstall_cmds=$lt_postuninstall_cmds
  18373. # Commands used to build a loadable module (assumed same as above if empty)
  18374. module_cmds=$lt_module_cmds_RC
  18375. module_expsym_cmds=$lt_module_expsym_cmds_RC
  18376. # Commands to strip libraries.
  18377. old_striplib=$lt_old_striplib
  18378. striplib=$lt_striplib
  18379. # Dependencies to place before the objects being linked to create a
  18380. # shared library.
  18381. predep_objects=$lt_predep_objects_RC
  18382. # Dependencies to place after the objects being linked to create a
  18383. # shared library.
  18384. postdep_objects=$lt_postdep_objects_RC
  18385. # Dependencies to place before the objects being linked to create a
  18386. # shared library.
  18387. predeps=$lt_predeps_RC
  18388. # Dependencies to place after the objects being linked to create a
  18389. # shared library.
  18390. postdeps=$lt_postdeps_RC
  18391. # The library search path used internally by the compiler when linking
  18392. # a shared library.
  18393. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  18394. # Method to check whether dependent libraries are shared objects.
  18395. deplibs_check_method=$lt_deplibs_check_method
  18396. # Command to use when deplibs_check_method == file_magic.
  18397. file_magic_cmd=$lt_file_magic_cmd
  18398. # Flag that allows shared libraries with undefined symbols to be built.
  18399. allow_undefined_flag=$lt_allow_undefined_flag_RC
  18400. # Flag that forces no undefined symbols.
  18401. no_undefined_flag=$lt_no_undefined_flag_RC
  18402. # Commands used to finish a libtool library installation in a directory.
  18403. finish_cmds=$lt_finish_cmds
  18404. # Same as above, but a single script fragment to be evaled but not shown.
  18405. finish_eval=$lt_finish_eval
  18406. # Take the output of nm and produce a listing of raw symbols and C names.
  18407. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  18408. # Transform the output of nm in a proper C declaration
  18409. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  18410. # Transform the output of nm in a C name address pair
  18411. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  18412. # This is the shared library runtime path variable.
  18413. runpath_var=$runpath_var
  18414. # This is the shared library path variable.
  18415. shlibpath_var=$shlibpath_var
  18416. # Is shlibpath searched before the hard-coded library search path?
  18417. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  18418. # How to hardcode a shared library path into an executable.
  18419. hardcode_action=$hardcode_action_RC
  18420. # Whether we should hardcode library paths into libraries.
  18421. hardcode_into_libs=$hardcode_into_libs
  18422. # Flag to hardcode \$libdir into a binary during linking.
  18423. # This must work even if \$libdir does not exist.
  18424. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  18425. # If ld is used when linking, flag to hardcode \$libdir into
  18426. # a binary during linking. This must work even if \$libdir does
  18427. # not exist.
  18428. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  18429. # Whether we need a single -rpath flag with a separated argument.
  18430. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  18431. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  18432. # resulting binary.
  18433. hardcode_direct=$hardcode_direct_RC
  18434. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  18435. # resulting binary.
  18436. hardcode_minus_L=$hardcode_minus_L_RC
  18437. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  18438. # the resulting binary.
  18439. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  18440. # Set to yes if building a shared library automatically hardcodes DIR into the library
  18441. # and all subsequent libraries and executables linked against it.
  18442. hardcode_automatic=$hardcode_automatic_RC
  18443. # Variables whose values should be saved in libtool wrapper scripts and
  18444. # restored at relink time.
  18445. variables_saved_for_relink="$variables_saved_for_relink"
  18446. # Whether libtool must link a program against all its dependency libraries.
  18447. link_all_deplibs=$link_all_deplibs_RC
  18448. # Compile-time system search path for libraries
  18449. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  18450. # Run-time system search path for libraries
  18451. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  18452. # Fix the shell variable \$srcfile for the compiler.
  18453. fix_srcfile_path="$fix_srcfile_path_RC"
  18454. # Set to yes if exported symbols are required.
  18455. always_export_symbols=$always_export_symbols_RC
  18456. # The commands to list exported symbols.
  18457. export_symbols_cmds=$lt_export_symbols_cmds_RC
  18458. # The commands to extract the exported symbol list from a shared archive.
  18459. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  18460. # Symbols that should not be listed in the preloaded symbols.
  18461. exclude_expsyms=$lt_exclude_expsyms_RC
  18462. # Symbols that must always be exported.
  18463. include_expsyms=$lt_include_expsyms_RC
  18464. # ### END LIBTOOL TAG CONFIG: $tagname
  18465. __EOF__
  18466. else
  18467. # If there is no Makefile yet, we rely on a make rule to execute
  18468. # `config.status --recheck' to rerun these tests and create the
  18469. # libtool script then.
  18470. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  18471. if test -f "$ltmain_in"; then
  18472. test -f Makefile && make "$ltmain"
  18473. fi
  18474. fi
  18475. ac_ext=c
  18476. ac_cpp='$CPP $CPPFLAGS'
  18477. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18478. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18479. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18480. CC="$lt_save_CC"
  18481. ;;
  18482. *)
  18483. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  18484. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  18485. { (exit 1); exit 1; }; }
  18486. ;;
  18487. esac
  18488. # Append the new tag name to the list of available tags.
  18489. if test -n "$tagname" ; then
  18490. available_tags="$available_tags $tagname"
  18491. fi
  18492. fi
  18493. done
  18494. IFS="$lt_save_ifs"
  18495. # Now substitute the updated list of available tags.
  18496. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  18497. mv "${ofile}T" "$ofile"
  18498. chmod +x "$ofile"
  18499. else
  18500. rm -f "${ofile}T"
  18501. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  18502. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  18503. { (exit 1); exit 1; }; }
  18504. fi
  18505. fi
  18506. # This can be used to rebuild libtool when needed
  18507. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  18508. # Always use our own libtool.
  18509. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  18510. # Prevent multiple expansion
  18511. echo "$as_me:$LINENO: checking if we need -no-undefined" >&5
  18512. echo $ECHO_N "checking if we need -no-undefined... $ECHO_C" >&6
  18513. case $host in
  18514. *-*-cygwin | *-*-mingw* | *-*-pw32*)
  18515. need_no_undefined=yes
  18516. ;;
  18517. *)
  18518. need_no_undefined=no
  18519. ;;
  18520. esac
  18521. echo "$as_me:$LINENO: result: $need_no_undefined" >&5
  18522. echo "${ECHO_T}$need_no_undefined" >&6
  18523. if test x$need_no_undefined = xyes; then
  18524. NO_UNDEFINED_TRUE=
  18525. NO_UNDEFINED_FALSE='#'
  18526. else
  18527. NO_UNDEFINED_TRUE='#'
  18528. NO_UNDEFINED_FALSE=
  18529. fi
  18530. echo "$as_me:$LINENO: checking if we need -mimpure-text" >&5
  18531. echo $ECHO_N "checking if we need -mimpure-text... $ECHO_C" >&6
  18532. case $host in
  18533. *-*-solaris2*)
  18534. if test "$GCC" = "yes"; then
  18535. mimpure="yes"
  18536. fi
  18537. ;;
  18538. *)
  18539. mimpure=no
  18540. ;;
  18541. esac
  18542. echo "$as_me:$LINENO: result: $mimpure" >&5
  18543. echo "${ECHO_T}$mimpure" >&6
  18544. if test x$mimpure = xyes; then
  18545. MIMPURE_TRUE=
  18546. MIMPURE_FALSE='#'
  18547. else
  18548. MIMPURE_TRUE='#'
  18549. MIMPURE_FALSE=
  18550. fi
  18551. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  18552. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  18553. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  18554. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  18555. echo $ECHO_N "(cached) $ECHO_C" >&6
  18556. else
  18557. cat >conftest.make <<\_ACEOF
  18558. all:
  18559. @echo 'ac_maketemp="$(MAKE)"'
  18560. _ACEOF
  18561. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  18562. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  18563. if test -n "$ac_maketemp"; then
  18564. eval ac_cv_prog_make_${ac_make}_set=yes
  18565. else
  18566. eval ac_cv_prog_make_${ac_make}_set=no
  18567. fi
  18568. rm -f conftest.make
  18569. fi
  18570. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  18571. echo "$as_me:$LINENO: result: yes" >&5
  18572. echo "${ECHO_T}yes" >&6
  18573. SET_MAKE=
  18574. else
  18575. echo "$as_me:$LINENO: result: no" >&5
  18576. echo "${ECHO_T}no" >&6
  18577. SET_MAKE="MAKE=${MAKE-make}"
  18578. fi
  18579. echo "$as_me:$LINENO: checking whether to support http" >&5
  18580. echo $ECHO_N "checking whether to support http... $ECHO_C" >&6
  18581. # Check whether --enable-http or --disable-http was given.
  18582. if test "${enable_http+set}" = set; then
  18583. enableval="$enable_http"
  18584. case "$enableval" in
  18585. no)
  18586. echo "$as_me:$LINENO: result: no" >&5
  18587. echo "${ECHO_T}no" >&6
  18588. cat >>confdefs.h <<\_ACEOF
  18589. #define CURL_DISABLE_HTTP 1
  18590. _ACEOF
  18591. { echo "$as_me:$LINENO: WARNING: disable HTTP disables FTP over proxy and GOPHER too" >&5
  18592. echo "$as_me: WARNING: disable HTTP disables FTP over proxy and GOPHER too" >&2;}
  18593. cat >>confdefs.h <<\_ACEOF
  18594. #define CURL_DISABLE_GOPHER 1
  18595. _ACEOF
  18596. ;;
  18597. *) echo "$as_me:$LINENO: result: yes" >&5
  18598. echo "${ECHO_T}yes" >&6
  18599. ;;
  18600. esac
  18601. else
  18602. echo "$as_me:$LINENO: result: yes" >&5
  18603. echo "${ECHO_T}yes" >&6
  18604. fi;
  18605. echo "$as_me:$LINENO: checking whether to support ftp" >&5
  18606. echo $ECHO_N "checking whether to support ftp... $ECHO_C" >&6
  18607. # Check whether --enable-ftp or --disable-ftp was given.
  18608. if test "${enable_ftp+set}" = set; then
  18609. enableval="$enable_ftp"
  18610. case "$enableval" in
  18611. no)
  18612. echo "$as_me:$LINENO: result: no" >&5
  18613. echo "${ECHO_T}no" >&6
  18614. cat >>confdefs.h <<\_ACEOF
  18615. #define CURL_DISABLE_FTP 1
  18616. _ACEOF
  18617. ;;
  18618. *) echo "$as_me:$LINENO: result: yes" >&5
  18619. echo "${ECHO_T}yes" >&6
  18620. ;;
  18621. esac
  18622. else
  18623. echo "$as_me:$LINENO: result: yes" >&5
  18624. echo "${ECHO_T}yes" >&6
  18625. fi;
  18626. echo "$as_me:$LINENO: checking whether to support gopher" >&5
  18627. echo $ECHO_N "checking whether to support gopher... $ECHO_C" >&6
  18628. # Check whether --enable-gopher or --disable-gopher was given.
  18629. if test "${enable_gopher+set}" = set; then
  18630. enableval="$enable_gopher"
  18631. case "$enableval" in
  18632. no)
  18633. echo "$as_me:$LINENO: result: no" >&5
  18634. echo "${ECHO_T}no" >&6
  18635. cat >>confdefs.h <<\_ACEOF
  18636. #define CURL_DISABLE_GOPHER 1
  18637. _ACEOF
  18638. ;;
  18639. *) echo "$as_me:$LINENO: result: yes" >&5
  18640. echo "${ECHO_T}yes" >&6
  18641. ;;
  18642. esac
  18643. else
  18644. echo "$as_me:$LINENO: result: yes" >&5
  18645. echo "${ECHO_T}yes" >&6
  18646. fi;
  18647. echo "$as_me:$LINENO: checking whether to support file" >&5
  18648. echo $ECHO_N "checking whether to support file... $ECHO_C" >&6
  18649. # Check whether --enable-file or --disable-file was given.
  18650. if test "${enable_file+set}" = set; then
  18651. enableval="$enable_file"
  18652. case "$enableval" in
  18653. no)
  18654. echo "$as_me:$LINENO: result: no" >&5
  18655. echo "${ECHO_T}no" >&6
  18656. cat >>confdefs.h <<\_ACEOF
  18657. #define CURL_DISABLE_FILE 1
  18658. _ACEOF
  18659. ;;
  18660. *) echo "$as_me:$LINENO: result: yes" >&5
  18661. echo "${ECHO_T}yes" >&6
  18662. ;;
  18663. esac
  18664. else
  18665. echo "$as_me:$LINENO: result: yes" >&5
  18666. echo "${ECHO_T}yes" >&6
  18667. fi;
  18668. echo "$as_me:$LINENO: checking whether to support ldap" >&5
  18669. echo $ECHO_N "checking whether to support ldap... $ECHO_C" >&6
  18670. # Check whether --enable-ldap or --disable-ldap was given.
  18671. if test "${enable_ldap+set}" = set; then
  18672. enableval="$enable_ldap"
  18673. case "$enableval" in
  18674. no)
  18675. echo "$as_me:$LINENO: result: no" >&5
  18676. echo "${ECHO_T}no" >&6
  18677. cat >>confdefs.h <<\_ACEOF
  18678. #define CURL_DISABLE_LDAP 1
  18679. _ACEOF
  18680. ;;
  18681. *) echo "$as_me:$LINENO: result: yes" >&5
  18682. echo "${ECHO_T}yes" >&6
  18683. ;;
  18684. esac
  18685. else
  18686. echo "$as_me:$LINENO: result: yes" >&5
  18687. echo "${ECHO_T}yes" >&6
  18688. fi;
  18689. echo "$as_me:$LINENO: checking whether to support dict" >&5
  18690. echo $ECHO_N "checking whether to support dict... $ECHO_C" >&6
  18691. # Check whether --enable-dict or --disable-dict was given.
  18692. if test "${enable_dict+set}" = set; then
  18693. enableval="$enable_dict"
  18694. case "$enableval" in
  18695. no)
  18696. echo "$as_me:$LINENO: result: no" >&5
  18697. echo "${ECHO_T}no" >&6
  18698. cat >>confdefs.h <<\_ACEOF
  18699. #define CURL_DISABLE_DICT 1
  18700. _ACEOF
  18701. ;;
  18702. *) echo "$as_me:$LINENO: result: yes" >&5
  18703. echo "${ECHO_T}yes" >&6
  18704. ;;
  18705. esac
  18706. else
  18707. echo "$as_me:$LINENO: result: yes" >&5
  18708. echo "${ECHO_T}yes" >&6
  18709. fi;
  18710. echo "$as_me:$LINENO: checking whether to support telnet" >&5
  18711. echo $ECHO_N "checking whether to support telnet... $ECHO_C" >&6
  18712. # Check whether --enable-telnet or --disable-telnet was given.
  18713. if test "${enable_telnet+set}" = set; then
  18714. enableval="$enable_telnet"
  18715. case "$enableval" in
  18716. no)
  18717. echo "$as_me:$LINENO: result: no" >&5
  18718. echo "${ECHO_T}no" >&6
  18719. cat >>confdefs.h <<\_ACEOF
  18720. #define CURL_DISABLE_TELNET 1
  18721. _ACEOF
  18722. ;;
  18723. *) echo "$as_me:$LINENO: result: yes" >&5
  18724. echo "${ECHO_T}yes" >&6
  18725. ;;
  18726. esac
  18727. else
  18728. echo "$as_me:$LINENO: result: yes" >&5
  18729. echo "${ECHO_T}yes" >&6
  18730. fi;
  18731. echo "$as_me:$LINENO: checking whether to provide built-in manual" >&5
  18732. echo $ECHO_N "checking whether to provide built-in manual... $ECHO_C" >&6
  18733. # Check whether --enable-manual or --disable-manual was given.
  18734. if test "${enable_manual+set}" = set; then
  18735. enableval="$enable_manual"
  18736. case "$enableval" in
  18737. no)
  18738. echo "$as_me:$LINENO: result: no" >&5
  18739. echo "${ECHO_T}no" >&6
  18740. ;;
  18741. *) echo "$as_me:$LINENO: result: yes" >&5
  18742. echo "${ECHO_T}yes" >&6
  18743. USE_MANUAL="1"
  18744. ;;
  18745. esac
  18746. else
  18747. echo "$as_me:$LINENO: result: yes" >&5
  18748. echo "${ECHO_T}yes" >&6
  18749. USE_MANUAL="1"
  18750. fi;
  18751. echo "$as_me:$LINENO: checking for gethostbyname" >&5
  18752. echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
  18753. if test "${ac_cv_func_gethostbyname+set}" = set; then
  18754. echo $ECHO_N "(cached) $ECHO_C" >&6
  18755. else
  18756. cat >conftest.$ac_ext <<_ACEOF
  18757. /* confdefs.h. */
  18758. _ACEOF
  18759. cat confdefs.h >>conftest.$ac_ext
  18760. cat >>conftest.$ac_ext <<_ACEOF
  18761. /* end confdefs.h. */
  18762. /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
  18763. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18764. #define gethostbyname innocuous_gethostbyname
  18765. /* System header to define __stub macros and hopefully few prototypes,
  18766. which can conflict with char gethostbyname (); below.
  18767. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18768. <limits.h> exists even on freestanding compilers. */
  18769. #ifdef __STDC__
  18770. # include <limits.h>
  18771. #else
  18772. # include <assert.h>
  18773. #endif
  18774. #undef gethostbyname
  18775. /* Override any gcc2 internal prototype to avoid an error. */
  18776. #ifdef __cplusplus
  18777. extern "C"
  18778. {
  18779. #endif
  18780. /* We use char because int might match the return type of a gcc2
  18781. builtin and then its argument prototype would still apply. */
  18782. char gethostbyname ();
  18783. /* The GNU C library defines this for functions which it implements
  18784. to always fail with ENOSYS. Some functions are actually named
  18785. something starting with __ and the normal name is an alias. */
  18786. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  18787. choke me
  18788. #else
  18789. char (*f) () = gethostbyname;
  18790. #endif
  18791. #ifdef __cplusplus
  18792. }
  18793. #endif
  18794. int
  18795. main ()
  18796. {
  18797. return f != gethostbyname;
  18798. ;
  18799. return 0;
  18800. }
  18801. _ACEOF
  18802. rm -f conftest.$ac_objext conftest$ac_exeext
  18803. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18804. (eval $ac_link) 2>conftest.er1
  18805. ac_status=$?
  18806. grep -v '^ *+' conftest.er1 >conftest.err
  18807. rm -f conftest.er1
  18808. cat conftest.err >&5
  18809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18810. (exit $ac_status); } &&
  18811. { ac_try='test -z "$ac_c_werror_flag"
  18812. || test ! -s conftest.err'
  18813. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18814. (eval $ac_try) 2>&5
  18815. ac_status=$?
  18816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18817. (exit $ac_status); }; } &&
  18818. { ac_try='test -s conftest$ac_exeext'
  18819. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18820. (eval $ac_try) 2>&5
  18821. ac_status=$?
  18822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18823. (exit $ac_status); }; }; then
  18824. ac_cv_func_gethostbyname=yes
  18825. else
  18826. echo "$as_me: failed program was:" >&5
  18827. sed 's/^/| /' conftest.$ac_ext >&5
  18828. ac_cv_func_gethostbyname=no
  18829. fi
  18830. rm -f conftest.err conftest.$ac_objext \
  18831. conftest$ac_exeext conftest.$ac_ext
  18832. fi
  18833. echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
  18834. echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
  18835. if test $ac_cv_func_gethostbyname = yes; then
  18836. HAVE_GETHOSTBYNAME="1"
  18837. else
  18838. echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  18839. echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
  18840. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  18841. echo $ECHO_N "(cached) $ECHO_C" >&6
  18842. else
  18843. ac_check_lib_save_LIBS=$LIBS
  18844. LIBS="-lnsl $LIBS"
  18845. cat >conftest.$ac_ext <<_ACEOF
  18846. /* confdefs.h. */
  18847. _ACEOF
  18848. cat confdefs.h >>conftest.$ac_ext
  18849. cat >>conftest.$ac_ext <<_ACEOF
  18850. /* end confdefs.h. */
  18851. /* Override any gcc2 internal prototype to avoid an error. */
  18852. #ifdef __cplusplus
  18853. extern "C"
  18854. #endif
  18855. /* We use char because int might match the return type of a gcc2
  18856. builtin and then its argument prototype would still apply. */
  18857. char gethostbyname ();
  18858. int
  18859. main ()
  18860. {
  18861. gethostbyname ();
  18862. ;
  18863. return 0;
  18864. }
  18865. _ACEOF
  18866. rm -f conftest.$ac_objext conftest$ac_exeext
  18867. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18868. (eval $ac_link) 2>conftest.er1
  18869. ac_status=$?
  18870. grep -v '^ *+' conftest.er1 >conftest.err
  18871. rm -f conftest.er1
  18872. cat conftest.err >&5
  18873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18874. (exit $ac_status); } &&
  18875. { ac_try='test -z "$ac_c_werror_flag"
  18876. || test ! -s conftest.err'
  18877. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18878. (eval $ac_try) 2>&5
  18879. ac_status=$?
  18880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18881. (exit $ac_status); }; } &&
  18882. { ac_try='test -s conftest$ac_exeext'
  18883. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18884. (eval $ac_try) 2>&5
  18885. ac_status=$?
  18886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18887. (exit $ac_status); }; }; then
  18888. ac_cv_lib_nsl_gethostbyname=yes
  18889. else
  18890. echo "$as_me: failed program was:" >&5
  18891. sed 's/^/| /' conftest.$ac_ext >&5
  18892. ac_cv_lib_nsl_gethostbyname=no
  18893. fi
  18894. rm -f conftest.err conftest.$ac_objext \
  18895. conftest$ac_exeext conftest.$ac_ext
  18896. LIBS=$ac_check_lib_save_LIBS
  18897. fi
  18898. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  18899. echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
  18900. if test $ac_cv_lib_nsl_gethostbyname = yes; then
  18901. HAVE_GETHOSTBYNAME="1"
  18902. LIBS="$LIBS -lnsl"
  18903. fi
  18904. fi
  18905. if test "$HAVE_GETHOSTBYNAME" != "1"
  18906. then
  18907. echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
  18908. echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
  18909. if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
  18910. echo $ECHO_N "(cached) $ECHO_C" >&6
  18911. else
  18912. ac_check_lib_save_LIBS=$LIBS
  18913. LIBS="-lsocket $LIBS"
  18914. cat >conftest.$ac_ext <<_ACEOF
  18915. /* confdefs.h. */
  18916. _ACEOF
  18917. cat confdefs.h >>conftest.$ac_ext
  18918. cat >>conftest.$ac_ext <<_ACEOF
  18919. /* end confdefs.h. */
  18920. /* Override any gcc2 internal prototype to avoid an error. */
  18921. #ifdef __cplusplus
  18922. extern "C"
  18923. #endif
  18924. /* We use char because int might match the return type of a gcc2
  18925. builtin and then its argument prototype would still apply. */
  18926. char gethostbyname ();
  18927. int
  18928. main ()
  18929. {
  18930. gethostbyname ();
  18931. ;
  18932. return 0;
  18933. }
  18934. _ACEOF
  18935. rm -f conftest.$ac_objext conftest$ac_exeext
  18936. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18937. (eval $ac_link) 2>conftest.er1
  18938. ac_status=$?
  18939. grep -v '^ *+' conftest.er1 >conftest.err
  18940. rm -f conftest.er1
  18941. cat conftest.err >&5
  18942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18943. (exit $ac_status); } &&
  18944. { ac_try='test -z "$ac_c_werror_flag"
  18945. || test ! -s conftest.err'
  18946. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18947. (eval $ac_try) 2>&5
  18948. ac_status=$?
  18949. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18950. (exit $ac_status); }; } &&
  18951. { ac_try='test -s conftest$ac_exeext'
  18952. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18953. (eval $ac_try) 2>&5
  18954. ac_status=$?
  18955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18956. (exit $ac_status); }; }; then
  18957. ac_cv_lib_socket_gethostbyname=yes
  18958. else
  18959. echo "$as_me: failed program was:" >&5
  18960. sed 's/^/| /' conftest.$ac_ext >&5
  18961. ac_cv_lib_socket_gethostbyname=no
  18962. fi
  18963. rm -f conftest.err conftest.$ac_objext \
  18964. conftest$ac_exeext conftest.$ac_ext
  18965. LIBS=$ac_check_lib_save_LIBS
  18966. fi
  18967. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
  18968. echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
  18969. if test $ac_cv_lib_socket_gethostbyname = yes; then
  18970. HAVE_GETHOSTBYNAME="1"
  18971. LIBS="$LIBS -lsocket"
  18972. fi
  18973. fi
  18974. if test "$HAVE_GETHOSTBYNAME" != "1"
  18975. then
  18976. echo "$as_me:$LINENO: checking trying gethostbyname with both nsl and socket libs" >&5
  18977. echo $ECHO_N "checking trying gethostbyname with both nsl and socket libs... $ECHO_C" >&6
  18978. my_ac_save_LIBS=$LIBS
  18979. LIBS="-lnsl -lsocket $LIBS"
  18980. cat >conftest.$ac_ext <<_ACEOF
  18981. /* confdefs.h. */
  18982. _ACEOF
  18983. cat confdefs.h >>conftest.$ac_ext
  18984. cat >>conftest.$ac_ext <<_ACEOF
  18985. /* end confdefs.h. */
  18986. int
  18987. main ()
  18988. {
  18989. gethostbyname();
  18990. ;
  18991. return 0;
  18992. }
  18993. _ACEOF
  18994. rm -f conftest.$ac_objext conftest$ac_exeext
  18995. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18996. (eval $ac_link) 2>conftest.er1
  18997. ac_status=$?
  18998. grep -v '^ *+' conftest.er1 >conftest.err
  18999. rm -f conftest.er1
  19000. cat conftest.err >&5
  19001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19002. (exit $ac_status); } &&
  19003. { ac_try='test -z "$ac_c_werror_flag"
  19004. || test ! -s conftest.err'
  19005. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19006. (eval $ac_try) 2>&5
  19007. ac_status=$?
  19008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19009. (exit $ac_status); }; } &&
  19010. { ac_try='test -s conftest$ac_exeext'
  19011. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19012. (eval $ac_try) 2>&5
  19013. ac_status=$?
  19014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19015. (exit $ac_status); }; }; then
  19016. HAVE_GETHOSTBYNAME="1",
  19017. echo "$as_me:$LINENO: result: yes" >&5
  19018. echo "${ECHO_T}yes" >&6
  19019. else
  19020. echo "$as_me: failed program was:" >&5
  19021. sed 's/^/| /' conftest.$ac_ext >&5
  19022. echo "$as_me:$LINENO: result: no" >&5
  19023. echo "${ECHO_T}no" >&6
  19024. LIBS=$my_ac_save_LIBS
  19025. fi
  19026. rm -f conftest.err conftest.$ac_objext \
  19027. conftest$ac_exeext conftest.$ac_ext
  19028. fi
  19029. if test "$HAVE_GETHOSTBYNAME" != "1"
  19030. then
  19031. echo "$as_me:$LINENO: checking for gethostbyname in ws2_32" >&5
  19032. echo $ECHO_N "checking for gethostbyname in ws2_32... $ECHO_C" >&6
  19033. my_ac_save_LIBS=$LIBS
  19034. LIBS="-lws2_32 $LIBS"
  19035. cat >conftest.$ac_ext <<_ACEOF
  19036. /* confdefs.h. */
  19037. _ACEOF
  19038. cat confdefs.h >>conftest.$ac_ext
  19039. cat >>conftest.$ac_ext <<_ACEOF
  19040. /* end confdefs.h. */
  19041. #include <winsock2.h>
  19042. int
  19043. main ()
  19044. {
  19045. gethostbyname("www.dummysite.com");
  19046. ;
  19047. return 0;
  19048. }
  19049. _ACEOF
  19050. rm -f conftest.$ac_objext conftest$ac_exeext
  19051. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19052. (eval $ac_link) 2>conftest.er1
  19053. ac_status=$?
  19054. grep -v '^ *+' conftest.er1 >conftest.err
  19055. rm -f conftest.er1
  19056. cat conftest.err >&5
  19057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19058. (exit $ac_status); } &&
  19059. { ac_try='test -z "$ac_c_werror_flag"
  19060. || test ! -s conftest.err'
  19061. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19062. (eval $ac_try) 2>&5
  19063. ac_status=$?
  19064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19065. (exit $ac_status); }; } &&
  19066. { ac_try='test -s conftest$ac_exeext'
  19067. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19068. (eval $ac_try) 2>&5
  19069. ac_status=$?
  19070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19071. (exit $ac_status); }; }; then
  19072. echo "$as_me:$LINENO: result: yes" >&5
  19073. echo "${ECHO_T}yes" >&6
  19074. HAVE_GETHOSTBYNAME="1"
  19075. else
  19076. echo "$as_me: failed program was:" >&5
  19077. sed 's/^/| /' conftest.$ac_ext >&5
  19078. LIBS=$my_ac_save_LIBS
  19079. echo "$as_me:$LINENO: result: no" >&5
  19080. echo "${ECHO_T}no" >&6
  19081. fi
  19082. rm -f conftest.err conftest.$ac_objext \
  19083. conftest$ac_exeext conftest.$ac_ext
  19084. fi
  19085. if test "$HAVE_GETHOSTBYNAME" = "1"; then
  19086. cat >>confdefs.h <<\_ACEOF
  19087. #define HAVE_GETHOSTBYNAME 1
  19088. _ACEOF
  19089. else
  19090. { { echo "$as_me:$LINENO: error: couldn't find libraries for gethostbyname()" >&5
  19091. echo "$as_me: error: couldn't find libraries for gethostbyname()" >&2;}
  19092. { (exit 1); exit 1; }; }
  19093. fi
  19094. echo "$as_me:$LINENO: checking for strcasecmp" >&5
  19095. echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
  19096. if test "${ac_cv_func_strcasecmp+set}" = set; then
  19097. echo $ECHO_N "(cached) $ECHO_C" >&6
  19098. else
  19099. cat >conftest.$ac_ext <<_ACEOF
  19100. /* confdefs.h. */
  19101. _ACEOF
  19102. cat confdefs.h >>conftest.$ac_ext
  19103. cat >>conftest.$ac_ext <<_ACEOF
  19104. /* end confdefs.h. */
  19105. /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
  19106. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19107. #define strcasecmp innocuous_strcasecmp
  19108. /* System header to define __stub macros and hopefully few prototypes,
  19109. which can conflict with char strcasecmp (); below.
  19110. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19111. <limits.h> exists even on freestanding compilers. */
  19112. #ifdef __STDC__
  19113. # include <limits.h>
  19114. #else
  19115. # include <assert.h>
  19116. #endif
  19117. #undef strcasecmp
  19118. /* Override any gcc2 internal prototype to avoid an error. */
  19119. #ifdef __cplusplus
  19120. extern "C"
  19121. {
  19122. #endif
  19123. /* We use char because int might match the return type of a gcc2
  19124. builtin and then its argument prototype would still apply. */
  19125. char strcasecmp ();
  19126. /* The GNU C library defines this for functions which it implements
  19127. to always fail with ENOSYS. Some functions are actually named
  19128. something starting with __ and the normal name is an alias. */
  19129. #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
  19130. choke me
  19131. #else
  19132. char (*f) () = strcasecmp;
  19133. #endif
  19134. #ifdef __cplusplus
  19135. }
  19136. #endif
  19137. int
  19138. main ()
  19139. {
  19140. return f != strcasecmp;
  19141. ;
  19142. return 0;
  19143. }
  19144. _ACEOF
  19145. rm -f conftest.$ac_objext conftest$ac_exeext
  19146. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19147. (eval $ac_link) 2>conftest.er1
  19148. ac_status=$?
  19149. grep -v '^ *+' conftest.er1 >conftest.err
  19150. rm -f conftest.er1
  19151. cat conftest.err >&5
  19152. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19153. (exit $ac_status); } &&
  19154. { ac_try='test -z "$ac_c_werror_flag"
  19155. || test ! -s conftest.err'
  19156. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19157. (eval $ac_try) 2>&5
  19158. ac_status=$?
  19159. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19160. (exit $ac_status); }; } &&
  19161. { ac_try='test -s conftest$ac_exeext'
  19162. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19163. (eval $ac_try) 2>&5
  19164. ac_status=$?
  19165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19166. (exit $ac_status); }; }; then
  19167. ac_cv_func_strcasecmp=yes
  19168. else
  19169. echo "$as_me: failed program was:" >&5
  19170. sed 's/^/| /' conftest.$ac_ext >&5
  19171. ac_cv_func_strcasecmp=no
  19172. fi
  19173. rm -f conftest.err conftest.$ac_objext \
  19174. conftest$ac_exeext conftest.$ac_ext
  19175. fi
  19176. echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
  19177. echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
  19178. if test $ac_cv_func_strcasecmp = yes; then
  19179. :
  19180. else
  19181. echo "$as_me:$LINENO: checking for strcasecmp in -lresolve" >&5
  19182. echo $ECHO_N "checking for strcasecmp in -lresolve... $ECHO_C" >&6
  19183. if test "${ac_cv_lib_resolve_strcasecmp+set}" = set; then
  19184. echo $ECHO_N "(cached) $ECHO_C" >&6
  19185. else
  19186. ac_check_lib_save_LIBS=$LIBS
  19187. LIBS="-lresolve $LIBS"
  19188. cat >conftest.$ac_ext <<_ACEOF
  19189. /* confdefs.h. */
  19190. _ACEOF
  19191. cat confdefs.h >>conftest.$ac_ext
  19192. cat >>conftest.$ac_ext <<_ACEOF
  19193. /* end confdefs.h. */
  19194. /* Override any gcc2 internal prototype to avoid an error. */
  19195. #ifdef __cplusplus
  19196. extern "C"
  19197. #endif
  19198. /* We use char because int might match the return type of a gcc2
  19199. builtin and then its argument prototype would still apply. */
  19200. char strcasecmp ();
  19201. int
  19202. main ()
  19203. {
  19204. strcasecmp ();
  19205. ;
  19206. return 0;
  19207. }
  19208. _ACEOF
  19209. rm -f conftest.$ac_objext conftest$ac_exeext
  19210. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19211. (eval $ac_link) 2>conftest.er1
  19212. ac_status=$?
  19213. grep -v '^ *+' conftest.er1 >conftest.err
  19214. rm -f conftest.er1
  19215. cat conftest.err >&5
  19216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19217. (exit $ac_status); } &&
  19218. { ac_try='test -z "$ac_c_werror_flag"
  19219. || test ! -s conftest.err'
  19220. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19221. (eval $ac_try) 2>&5
  19222. ac_status=$?
  19223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19224. (exit $ac_status); }; } &&
  19225. { ac_try='test -s conftest$ac_exeext'
  19226. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19227. (eval $ac_try) 2>&5
  19228. ac_status=$?
  19229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19230. (exit $ac_status); }; }; then
  19231. ac_cv_lib_resolve_strcasecmp=yes
  19232. else
  19233. echo "$as_me: failed program was:" >&5
  19234. sed 's/^/| /' conftest.$ac_ext >&5
  19235. ac_cv_lib_resolve_strcasecmp=no
  19236. fi
  19237. rm -f conftest.err conftest.$ac_objext \
  19238. conftest$ac_exeext conftest.$ac_ext
  19239. LIBS=$ac_check_lib_save_LIBS
  19240. fi
  19241. echo "$as_me:$LINENO: result: $ac_cv_lib_resolve_strcasecmp" >&5
  19242. echo "${ECHO_T}$ac_cv_lib_resolve_strcasecmp" >&6
  19243. if test $ac_cv_lib_resolve_strcasecmp = yes; then
  19244. cat >>confdefs.h <<_ACEOF
  19245. #define HAVE_LIBRESOLVE 1
  19246. _ACEOF
  19247. LIBS="-lresolve $LIBS"
  19248. fi
  19249. fi
  19250. if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
  19251. echo "$as_me:$LINENO: checking for strcasecmp in -lresolve" >&5
  19252. echo $ECHO_N "checking for strcasecmp in -lresolve... $ECHO_C" >&6
  19253. if test "${ac_cv_lib_resolve_strcasecmp+set}" = set; then
  19254. echo $ECHO_N "(cached) $ECHO_C" >&6
  19255. else
  19256. ac_check_lib_save_LIBS=$LIBS
  19257. LIBS="-lresolve -lnsl $LIBS"
  19258. cat >conftest.$ac_ext <<_ACEOF
  19259. /* confdefs.h. */
  19260. _ACEOF
  19261. cat confdefs.h >>conftest.$ac_ext
  19262. cat >>conftest.$ac_ext <<_ACEOF
  19263. /* end confdefs.h. */
  19264. /* Override any gcc2 internal prototype to avoid an error. */
  19265. #ifdef __cplusplus
  19266. extern "C"
  19267. #endif
  19268. /* We use char because int might match the return type of a gcc2
  19269. builtin and then its argument prototype would still apply. */
  19270. char strcasecmp ();
  19271. int
  19272. main ()
  19273. {
  19274. strcasecmp ();
  19275. ;
  19276. return 0;
  19277. }
  19278. _ACEOF
  19279. rm -f conftest.$ac_objext conftest$ac_exeext
  19280. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19281. (eval $ac_link) 2>conftest.er1
  19282. ac_status=$?
  19283. grep -v '^ *+' conftest.er1 >conftest.err
  19284. rm -f conftest.er1
  19285. cat conftest.err >&5
  19286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19287. (exit $ac_status); } &&
  19288. { ac_try='test -z "$ac_c_werror_flag"
  19289. || test ! -s conftest.err'
  19290. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19291. (eval $ac_try) 2>&5
  19292. ac_status=$?
  19293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19294. (exit $ac_status); }; } &&
  19295. { ac_try='test -s conftest$ac_exeext'
  19296. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19297. (eval $ac_try) 2>&5
  19298. ac_status=$?
  19299. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19300. (exit $ac_status); }; }; then
  19301. ac_cv_lib_resolve_strcasecmp=yes
  19302. else
  19303. echo "$as_me: failed program was:" >&5
  19304. sed 's/^/| /' conftest.$ac_ext >&5
  19305. ac_cv_lib_resolve_strcasecmp=no
  19306. fi
  19307. rm -f conftest.err conftest.$ac_objext \
  19308. conftest$ac_exeext conftest.$ac_ext
  19309. LIBS=$ac_check_lib_save_LIBS
  19310. fi
  19311. echo "$as_me:$LINENO: result: $ac_cv_lib_resolve_strcasecmp" >&5
  19312. echo "${ECHO_T}$ac_cv_lib_resolve_strcasecmp" >&6
  19313. if test $ac_cv_lib_resolve_strcasecmp = yes; then
  19314. LIBS="-lresolve $LIBS"
  19315. fi
  19316. fi
  19317. echo "$as_me:$LINENO: checking for connect" >&5
  19318. echo $ECHO_N "checking for connect... $ECHO_C" >&6
  19319. if test "${ac_cv_func_connect+set}" = set; then
  19320. echo $ECHO_N "(cached) $ECHO_C" >&6
  19321. else
  19322. cat >conftest.$ac_ext <<_ACEOF
  19323. /* confdefs.h. */
  19324. _ACEOF
  19325. cat confdefs.h >>conftest.$ac_ext
  19326. cat >>conftest.$ac_ext <<_ACEOF
  19327. /* end confdefs.h. */
  19328. /* Define connect to an innocuous variant, in case <limits.h> declares connect.
  19329. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19330. #define connect innocuous_connect
  19331. /* System header to define __stub macros and hopefully few prototypes,
  19332. which can conflict with char connect (); below.
  19333. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19334. <limits.h> exists even on freestanding compilers. */
  19335. #ifdef __STDC__
  19336. # include <limits.h>
  19337. #else
  19338. # include <assert.h>
  19339. #endif
  19340. #undef connect
  19341. /* Override any gcc2 internal prototype to avoid an error. */
  19342. #ifdef __cplusplus
  19343. extern "C"
  19344. {
  19345. #endif
  19346. /* We use char because int might match the return type of a gcc2
  19347. builtin and then its argument prototype would still apply. */
  19348. char connect ();
  19349. /* The GNU C library defines this for functions which it implements
  19350. to always fail with ENOSYS. Some functions are actually named
  19351. something starting with __ and the normal name is an alias. */
  19352. #if defined (__stub_connect) || defined (__stub___connect)
  19353. choke me
  19354. #else
  19355. char (*f) () = connect;
  19356. #endif
  19357. #ifdef __cplusplus
  19358. }
  19359. #endif
  19360. int
  19361. main ()
  19362. {
  19363. return f != connect;
  19364. ;
  19365. return 0;
  19366. }
  19367. _ACEOF
  19368. rm -f conftest.$ac_objext conftest$ac_exeext
  19369. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19370. (eval $ac_link) 2>conftest.er1
  19371. ac_status=$?
  19372. grep -v '^ *+' conftest.er1 >conftest.err
  19373. rm -f conftest.er1
  19374. cat conftest.err >&5
  19375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19376. (exit $ac_status); } &&
  19377. { ac_try='test -z "$ac_c_werror_flag"
  19378. || test ! -s conftest.err'
  19379. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19380. (eval $ac_try) 2>&5
  19381. ac_status=$?
  19382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19383. (exit $ac_status); }; } &&
  19384. { ac_try='test -s conftest$ac_exeext'
  19385. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19386. (eval $ac_try) 2>&5
  19387. ac_status=$?
  19388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19389. (exit $ac_status); }; }; then
  19390. ac_cv_func_connect=yes
  19391. else
  19392. echo "$as_me: failed program was:" >&5
  19393. sed 's/^/| /' conftest.$ac_ext >&5
  19394. ac_cv_func_connect=no
  19395. fi
  19396. rm -f conftest.err conftest.$ac_objext \
  19397. conftest$ac_exeext conftest.$ac_ext
  19398. fi
  19399. echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
  19400. echo "${ECHO_T}$ac_cv_func_connect" >&6
  19401. if test $ac_cv_func_connect = yes; then
  19402. :
  19403. else
  19404. echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
  19405. echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
  19406. if test "${ac_cv_lib_socket_connect+set}" = set; then
  19407. echo $ECHO_N "(cached) $ECHO_C" >&6
  19408. else
  19409. ac_check_lib_save_LIBS=$LIBS
  19410. LIBS="-lsocket $LIBS"
  19411. cat >conftest.$ac_ext <<_ACEOF
  19412. /* confdefs.h. */
  19413. _ACEOF
  19414. cat confdefs.h >>conftest.$ac_ext
  19415. cat >>conftest.$ac_ext <<_ACEOF
  19416. /* end confdefs.h. */
  19417. /* Override any gcc2 internal prototype to avoid an error. */
  19418. #ifdef __cplusplus
  19419. extern "C"
  19420. #endif
  19421. /* We use char because int might match the return type of a gcc2
  19422. builtin and then its argument prototype would still apply. */
  19423. char connect ();
  19424. int
  19425. main ()
  19426. {
  19427. connect ();
  19428. ;
  19429. return 0;
  19430. }
  19431. _ACEOF
  19432. rm -f conftest.$ac_objext conftest$ac_exeext
  19433. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19434. (eval $ac_link) 2>conftest.er1
  19435. ac_status=$?
  19436. grep -v '^ *+' conftest.er1 >conftest.err
  19437. rm -f conftest.er1
  19438. cat conftest.err >&5
  19439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19440. (exit $ac_status); } &&
  19441. { ac_try='test -z "$ac_c_werror_flag"
  19442. || test ! -s conftest.err'
  19443. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19444. (eval $ac_try) 2>&5
  19445. ac_status=$?
  19446. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19447. (exit $ac_status); }; } &&
  19448. { ac_try='test -s conftest$ac_exeext'
  19449. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19450. (eval $ac_try) 2>&5
  19451. ac_status=$?
  19452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19453. (exit $ac_status); }; }; then
  19454. ac_cv_lib_socket_connect=yes
  19455. else
  19456. echo "$as_me: failed program was:" >&5
  19457. sed 's/^/| /' conftest.$ac_ext >&5
  19458. ac_cv_lib_socket_connect=no
  19459. fi
  19460. rm -f conftest.err conftest.$ac_objext \
  19461. conftest$ac_exeext conftest.$ac_ext
  19462. LIBS=$ac_check_lib_save_LIBS
  19463. fi
  19464. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
  19465. echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
  19466. if test $ac_cv_lib_socket_connect = yes; then
  19467. cat >>confdefs.h <<_ACEOF
  19468. #define HAVE_LIBSOCKET 1
  19469. _ACEOF
  19470. LIBS="-lsocket $LIBS"
  19471. fi
  19472. fi
  19473. echo "$as_me:$LINENO: checking for dlclose" >&5
  19474. echo $ECHO_N "checking for dlclose... $ECHO_C" >&6
  19475. if test "${ac_cv_func_dlclose+set}" = set; then
  19476. echo $ECHO_N "(cached) $ECHO_C" >&6
  19477. else
  19478. cat >conftest.$ac_ext <<_ACEOF
  19479. /* confdefs.h. */
  19480. _ACEOF
  19481. cat confdefs.h >>conftest.$ac_ext
  19482. cat >>conftest.$ac_ext <<_ACEOF
  19483. /* end confdefs.h. */
  19484. /* Define dlclose to an innocuous variant, in case <limits.h> declares dlclose.
  19485. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19486. #define dlclose innocuous_dlclose
  19487. /* System header to define __stub macros and hopefully few prototypes,
  19488. which can conflict with char dlclose (); below.
  19489. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19490. <limits.h> exists even on freestanding compilers. */
  19491. #ifdef __STDC__
  19492. # include <limits.h>
  19493. #else
  19494. # include <assert.h>
  19495. #endif
  19496. #undef dlclose
  19497. /* Override any gcc2 internal prototype to avoid an error. */
  19498. #ifdef __cplusplus
  19499. extern "C"
  19500. {
  19501. #endif
  19502. /* We use char because int might match the return type of a gcc2
  19503. builtin and then its argument prototype would still apply. */
  19504. char dlclose ();
  19505. /* The GNU C library defines this for functions which it implements
  19506. to always fail with ENOSYS. Some functions are actually named
  19507. something starting with __ and the normal name is an alias. */
  19508. #if defined (__stub_dlclose) || defined (__stub___dlclose)
  19509. choke me
  19510. #else
  19511. char (*f) () = dlclose;
  19512. #endif
  19513. #ifdef __cplusplus
  19514. }
  19515. #endif
  19516. int
  19517. main ()
  19518. {
  19519. return f != dlclose;
  19520. ;
  19521. return 0;
  19522. }
  19523. _ACEOF
  19524. rm -f conftest.$ac_objext conftest$ac_exeext
  19525. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19526. (eval $ac_link) 2>conftest.er1
  19527. ac_status=$?
  19528. grep -v '^ *+' conftest.er1 >conftest.err
  19529. rm -f conftest.er1
  19530. cat conftest.err >&5
  19531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19532. (exit $ac_status); } &&
  19533. { ac_try='test -z "$ac_c_werror_flag"
  19534. || test ! -s conftest.err'
  19535. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19536. (eval $ac_try) 2>&5
  19537. ac_status=$?
  19538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19539. (exit $ac_status); }; } &&
  19540. { ac_try='test -s conftest$ac_exeext'
  19541. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19542. (eval $ac_try) 2>&5
  19543. ac_status=$?
  19544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19545. (exit $ac_status); }; }; then
  19546. ac_cv_func_dlclose=yes
  19547. else
  19548. echo "$as_me: failed program was:" >&5
  19549. sed 's/^/| /' conftest.$ac_ext >&5
  19550. ac_cv_func_dlclose=no
  19551. fi
  19552. rm -f conftest.err conftest.$ac_objext \
  19553. conftest$ac_exeext conftest.$ac_ext
  19554. fi
  19555. echo "$as_me:$LINENO: result: $ac_cv_func_dlclose" >&5
  19556. echo "${ECHO_T}$ac_cv_func_dlclose" >&6
  19557. if test $ac_cv_func_dlclose = yes; then
  19558. :
  19559. else
  19560. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  19561. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  19562. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  19563. echo $ECHO_N "(cached) $ECHO_C" >&6
  19564. else
  19565. ac_check_lib_save_LIBS=$LIBS
  19566. LIBS="-ldl $LIBS"
  19567. cat >conftest.$ac_ext <<_ACEOF
  19568. /* confdefs.h. */
  19569. _ACEOF
  19570. cat confdefs.h >>conftest.$ac_ext
  19571. cat >>conftest.$ac_ext <<_ACEOF
  19572. /* end confdefs.h. */
  19573. /* Override any gcc2 internal prototype to avoid an error. */
  19574. #ifdef __cplusplus
  19575. extern "C"
  19576. #endif
  19577. /* We use char because int might match the return type of a gcc2
  19578. builtin and then its argument prototype would still apply. */
  19579. char dlopen ();
  19580. int
  19581. main ()
  19582. {
  19583. dlopen ();
  19584. ;
  19585. return 0;
  19586. }
  19587. _ACEOF
  19588. rm -f conftest.$ac_objext conftest$ac_exeext
  19589. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19590. (eval $ac_link) 2>conftest.er1
  19591. ac_status=$?
  19592. grep -v '^ *+' conftest.er1 >conftest.err
  19593. rm -f conftest.er1
  19594. cat conftest.err >&5
  19595. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19596. (exit $ac_status); } &&
  19597. { ac_try='test -z "$ac_c_werror_flag"
  19598. || test ! -s conftest.err'
  19599. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19600. (eval $ac_try) 2>&5
  19601. ac_status=$?
  19602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19603. (exit $ac_status); }; } &&
  19604. { ac_try='test -s conftest$ac_exeext'
  19605. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19606. (eval $ac_try) 2>&5
  19607. ac_status=$?
  19608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19609. (exit $ac_status); }; }; then
  19610. ac_cv_lib_dl_dlopen=yes
  19611. else
  19612. echo "$as_me: failed program was:" >&5
  19613. sed 's/^/| /' conftest.$ac_ext >&5
  19614. ac_cv_lib_dl_dlopen=no
  19615. fi
  19616. rm -f conftest.err conftest.$ac_objext \
  19617. conftest$ac_exeext conftest.$ac_ext
  19618. LIBS=$ac_check_lib_save_LIBS
  19619. fi
  19620. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  19621. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  19622. if test $ac_cv_lib_dl_dlopen = yes; then
  19623. cat >>confdefs.h <<_ACEOF
  19624. #define HAVE_LIBDL 1
  19625. _ACEOF
  19626. LIBS="-ldl $LIBS"
  19627. fi
  19628. fi
  19629. echo "$as_me:$LINENO: checking whether to use libgcc" >&5
  19630. echo $ECHO_N "checking whether to use libgcc... $ECHO_C" >&6
  19631. # Check whether --enable-libgcc or --disable-libgcc was given.
  19632. if test "${enable_libgcc+set}" = set; then
  19633. enableval="$enable_libgcc"
  19634. case "$enableval" in
  19635. yes)
  19636. LIBS="$LIBS -lgcc"
  19637. echo "$as_me:$LINENO: result: yes" >&5
  19638. echo "${ECHO_T}yes" >&6
  19639. ;;
  19640. *) echo "$as_me:$LINENO: result: no" >&5
  19641. echo "${ECHO_T}no" >&6
  19642. ;;
  19643. esac
  19644. else
  19645. echo "$as_me:$LINENO: result: no" >&5
  19646. echo "${ECHO_T}no" >&6
  19647. fi;
  19648. echo "$as_me:$LINENO: checking for timeGetTime in winmm" >&5
  19649. echo $ECHO_N "checking for timeGetTime in winmm... $ECHO_C" >&6
  19650. my_ac_save_LIBS=$LIBS
  19651. LIBS="-lwinmm $LIBS"
  19652. cat >conftest.$ac_ext <<_ACEOF
  19653. /* confdefs.h. */
  19654. _ACEOF
  19655. cat confdefs.h >>conftest.$ac_ext
  19656. cat >>conftest.$ac_ext <<_ACEOF
  19657. /* end confdefs.h. */
  19658. #include <windef.h>
  19659. #include <mmsystem.h>
  19660. int
  19661. main ()
  19662. {
  19663. timeGetTime();
  19664. ;
  19665. return 0;
  19666. }
  19667. _ACEOF
  19668. rm -f conftest.$ac_objext conftest$ac_exeext
  19669. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19670. (eval $ac_link) 2>conftest.er1
  19671. ac_status=$?
  19672. grep -v '^ *+' conftest.er1 >conftest.err
  19673. rm -f conftest.er1
  19674. cat conftest.err >&5
  19675. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19676. (exit $ac_status); } &&
  19677. { ac_try='test -z "$ac_c_werror_flag"
  19678. || test ! -s conftest.err'
  19679. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19680. (eval $ac_try) 2>&5
  19681. ac_status=$?
  19682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19683. (exit $ac_status); }; } &&
  19684. { ac_try='test -s conftest$ac_exeext'
  19685. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19686. (eval $ac_try) 2>&5
  19687. ac_status=$?
  19688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19689. (exit $ac_status); }; }; then
  19690. echo "$as_me:$LINENO: result: yes" >&5
  19691. echo "${ECHO_T}yes" >&6
  19692. else
  19693. echo "$as_me: failed program was:" >&5
  19694. sed 's/^/| /' conftest.$ac_ext >&5
  19695. LIBS=$my_ac_save_LIBS
  19696. echo "$as_me:$LINENO: result: no" >&5
  19697. echo "${ECHO_T}no" >&6
  19698. fi
  19699. rm -f conftest.err conftest.$ac_objext \
  19700. conftest$ac_exeext conftest.$ac_ext
  19701. echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
  19702. echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
  19703. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  19704. if test "${enable_ipv6+set}" = set; then
  19705. enableval="$enable_ipv6"
  19706. case "$enableval" in
  19707. no)
  19708. echo "$as_me:$LINENO: result: no" >&5
  19709. echo "${ECHO_T}no" >&6
  19710. ipv6=no
  19711. ;;
  19712. *) echo "$as_me:$LINENO: result: yes" >&5
  19713. echo "${ECHO_T}yes" >&6
  19714. ipv6=yes
  19715. ;;
  19716. esac
  19717. else
  19718. if test "$cross_compiling" = yes; then
  19719. echo "$as_me:$LINENO: result: no" >&5
  19720. echo "${ECHO_T}no" >&6
  19721. ipv6=no
  19722. else
  19723. cat >conftest.$ac_ext <<_ACEOF
  19724. /* confdefs.h. */
  19725. _ACEOF
  19726. cat confdefs.h >>conftest.$ac_ext
  19727. cat >>conftest.$ac_ext <<_ACEOF
  19728. /* end confdefs.h. */
  19729. /* is AF_INET6 available? */
  19730. #include <sys/types.h>
  19731. #include <sys/socket.h>
  19732. main()
  19733. {
  19734. if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
  19735. exit(1);
  19736. else
  19737. exit(0);
  19738. }
  19739. _ACEOF
  19740. rm -f conftest$ac_exeext
  19741. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19742. (eval $ac_link) 2>&5
  19743. ac_status=$?
  19744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19745. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19746. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19747. (eval $ac_try) 2>&5
  19748. ac_status=$?
  19749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19750. (exit $ac_status); }; }; then
  19751. echo "$as_me:$LINENO: result: yes" >&5
  19752. echo "${ECHO_T}yes" >&6
  19753. ipv6=yes
  19754. else
  19755. echo "$as_me: program exited with status $ac_status" >&5
  19756. echo "$as_me: failed program was:" >&5
  19757. sed 's/^/| /' conftest.$ac_ext >&5
  19758. ( exit $ac_status )
  19759. echo "$as_me:$LINENO: result: no" >&5
  19760. echo "${ECHO_T}no" >&6
  19761. ipv6=no
  19762. fi
  19763. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19764. fi
  19765. fi;
  19766. if test "$ipv6" = "yes"; then
  19767. echo "$as_me:$LINENO: checking for working getaddrinfo" >&5
  19768. echo $ECHO_N "checking for working getaddrinfo... $ECHO_C" >&6
  19769. if test "${ac_cv_working_getaddrinfo+set}" = set; then
  19770. echo $ECHO_N "(cached) $ECHO_C" >&6
  19771. else
  19772. if test "$cross_compiling" = yes; then
  19773. ac_cv_working_getaddrinfo="yes"
  19774. else
  19775. cat >conftest.$ac_ext <<_ACEOF
  19776. /* confdefs.h. */
  19777. _ACEOF
  19778. cat confdefs.h >>conftest.$ac_ext
  19779. cat >>conftest.$ac_ext <<_ACEOF
  19780. /* end confdefs.h. */
  19781. #include <netdb.h>
  19782. #include <sys/types.h>
  19783. #include <sys/socket.h>
  19784. void main(void) {
  19785. struct addrinfo hints, *ai;
  19786. int error;
  19787. memset(&hints, 0, sizeof(hints));
  19788. hints.ai_family = AF_UNSPEC;
  19789. hints.ai_socktype = SOCK_STREAM;
  19790. error = getaddrinfo("127.0.0.1", "8080", &hints, &ai);
  19791. if (error) {
  19792. exit(1);
  19793. }
  19794. else {
  19795. exit(0);
  19796. }
  19797. }
  19798. _ACEOF
  19799. rm -f conftest$ac_exeext
  19800. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19801. (eval $ac_link) 2>&5
  19802. ac_status=$?
  19803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19804. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19805. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19806. (eval $ac_try) 2>&5
  19807. ac_status=$?
  19808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19809. (exit $ac_status); }; }; then
  19810. ac_cv_working_getaddrinfo="yes"
  19811. else
  19812. echo "$as_me: program exited with status $ac_status" >&5
  19813. echo "$as_me: failed program was:" >&5
  19814. sed 's/^/| /' conftest.$ac_ext >&5
  19815. ( exit $ac_status )
  19816. ac_cv_working_getaddrinfo="no"
  19817. fi
  19818. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19819. fi
  19820. fi
  19821. echo "$as_me:$LINENO: result: $ac_cv_working_getaddrinfo" >&5
  19822. echo "${ECHO_T}$ac_cv_working_getaddrinfo" >&6
  19823. if test "$ac_cv_working_getaddrinfo" = "yes"; then
  19824. cat >>confdefs.h <<\_ACEOF
  19825. #define HAVE_GETADDRINFO 1
  19826. _ACEOF
  19827. cat >>confdefs.h <<\_ACEOF
  19828. #define ENABLE_IPV6 1
  19829. _ACEOF
  19830. IPV6_ENABLED=1
  19831. fi
  19832. fi
  19833. # Check whether --enable-nonblocking or --disable-nonblocking was given.
  19834. if test "${enable_nonblocking+set}" = set; then
  19835. enableval="$enable_nonblocking"
  19836. if test "$enableval" = "no" ; then
  19837. { echo "$as_me:$LINENO: WARNING: non-blocking sockets disabled" >&5
  19838. echo "$as_me: WARNING: non-blocking sockets disabled" >&2;}
  19839. cat >>confdefs.h <<\_ACEOF
  19840. #define HAVE_DISABLED_NONBLOCKING 1
  19841. _ACEOF
  19842. else
  19843. echo "$as_me:$LINENO: checking non-blocking sockets style" >&5
  19844. echo $ECHO_N "checking non-blocking sockets style... $ECHO_C" >&6
  19845. cat >conftest.$ac_ext <<_ACEOF
  19846. /* confdefs.h. */
  19847. _ACEOF
  19848. cat confdefs.h >>conftest.$ac_ext
  19849. cat >>conftest.$ac_ext <<_ACEOF
  19850. /* end confdefs.h. */
  19851. /* headers for O_NONBLOCK test */
  19852. #include <sys/types.h>
  19853. #include <unistd.h>
  19854. #include <fcntl.h>
  19855. int
  19856. main ()
  19857. {
  19858. /* try to compile O_NONBLOCK */
  19859. #if defined(sun) || defined(__sun__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
  19860. # if defined(__SVR4) || defined(__srv4__)
  19861. # define PLATFORM_SOLARIS
  19862. # else
  19863. # define PLATFORM_SUNOS4
  19864. # endif
  19865. #endif
  19866. #if (defined(_AIX) || defined(__xlC__)) && !defined(_AIX4)
  19867. # define PLATFORM_AIX_V3
  19868. #endif
  19869. #if defined(PLATFORM_SUNOS4) || defined(PLATFORM_AIX_V3) || defined(__BEOS__)
  19870. #error "O_NONBLOCK does not work on this platform"
  19871. #endif
  19872. int socket;
  19873. int flags = fcntl(socket, F_SETFL, flags | O_NONBLOCK);
  19874. ;
  19875. return 0;
  19876. }
  19877. _ACEOF
  19878. rm -f conftest.$ac_objext
  19879. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19880. (eval $ac_compile) 2>conftest.er1
  19881. ac_status=$?
  19882. grep -v '^ *+' conftest.er1 >conftest.err
  19883. rm -f conftest.er1
  19884. cat conftest.err >&5
  19885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19886. (exit $ac_status); } &&
  19887. { ac_try='test -z "$ac_c_werror_flag"
  19888. || test ! -s conftest.err'
  19889. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19890. (eval $ac_try) 2>&5
  19891. ac_status=$?
  19892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19893. (exit $ac_status); }; } &&
  19894. { ac_try='test -s conftest.$ac_objext'
  19895. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19896. (eval $ac_try) 2>&5
  19897. ac_status=$?
  19898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19899. (exit $ac_status); }; }; then
  19900. nonblock="O_NONBLOCK"
  19901. cat >>confdefs.h <<\_ACEOF
  19902. #define HAVE_O_NONBLOCK 1
  19903. _ACEOF
  19904. else
  19905. echo "$as_me: failed program was:" >&5
  19906. sed 's/^/| /' conftest.$ac_ext >&5
  19907. cat >conftest.$ac_ext <<_ACEOF
  19908. /* confdefs.h. */
  19909. _ACEOF
  19910. cat confdefs.h >>conftest.$ac_ext
  19911. cat >>conftest.$ac_ext <<_ACEOF
  19912. /* end confdefs.h. */
  19913. /* headers for FIONBIO test */
  19914. #include <unistd.h>
  19915. #include <stropts.h>
  19916. int
  19917. main ()
  19918. {
  19919. /* FIONBIO source test (old-style unix) */
  19920. int socket;
  19921. int flags = ioctl(socket, FIONBIO, &flags);
  19922. ;
  19923. return 0;
  19924. }
  19925. _ACEOF
  19926. rm -f conftest.$ac_objext
  19927. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19928. (eval $ac_compile) 2>conftest.er1
  19929. ac_status=$?
  19930. grep -v '^ *+' conftest.er1 >conftest.err
  19931. rm -f conftest.er1
  19932. cat conftest.err >&5
  19933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19934. (exit $ac_status); } &&
  19935. { ac_try='test -z "$ac_c_werror_flag"
  19936. || test ! -s conftest.err'
  19937. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19938. (eval $ac_try) 2>&5
  19939. ac_status=$?
  19940. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19941. (exit $ac_status); }; } &&
  19942. { ac_try='test -s conftest.$ac_objext'
  19943. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19944. (eval $ac_try) 2>&5
  19945. ac_status=$?
  19946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19947. (exit $ac_status); }; }; then
  19948. nonblock="FIONBIO"
  19949. cat >>confdefs.h <<\_ACEOF
  19950. #define HAVE_FIONBIO 1
  19951. _ACEOF
  19952. else
  19953. echo "$as_me: failed program was:" >&5
  19954. sed 's/^/| /' conftest.$ac_ext >&5
  19955. cat >conftest.$ac_ext <<_ACEOF
  19956. /* confdefs.h. */
  19957. _ACEOF
  19958. cat confdefs.h >>conftest.$ac_ext
  19959. cat >>conftest.$ac_ext <<_ACEOF
  19960. /* end confdefs.h. */
  19961. /* headers for ioctlsocket test (cygwin?) */
  19962. #include <windows.h>
  19963. int
  19964. main ()
  19965. {
  19966. /* ioctlsocket source code */
  19967. int socket;
  19968. int flags = ioctlsocket(socket, FIONBIO, &flags);
  19969. ;
  19970. return 0;
  19971. }
  19972. _ACEOF
  19973. rm -f conftest.$ac_objext
  19974. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19975. (eval $ac_compile) 2>conftest.er1
  19976. ac_status=$?
  19977. grep -v '^ *+' conftest.er1 >conftest.err
  19978. rm -f conftest.er1
  19979. cat conftest.err >&5
  19980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19981. (exit $ac_status); } &&
  19982. { ac_try='test -z "$ac_c_werror_flag"
  19983. || test ! -s conftest.err'
  19984. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19985. (eval $ac_try) 2>&5
  19986. ac_status=$?
  19987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19988. (exit $ac_status); }; } &&
  19989. { ac_try='test -s conftest.$ac_objext'
  19990. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19991. (eval $ac_try) 2>&5
  19992. ac_status=$?
  19993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19994. (exit $ac_status); }; }; then
  19995. nonblock="ioctlsocket"
  19996. cat >>confdefs.h <<\_ACEOF
  19997. #define HAVE_IOCTLSOCKET 1
  19998. _ACEOF
  19999. else
  20000. echo "$as_me: failed program was:" >&5
  20001. sed 's/^/| /' conftest.$ac_ext >&5
  20002. cat >conftest.$ac_ext <<_ACEOF
  20003. /* confdefs.h. */
  20004. _ACEOF
  20005. cat confdefs.h >>conftest.$ac_ext
  20006. cat >>conftest.$ac_ext <<_ACEOF
  20007. /* end confdefs.h. */
  20008. /* headers for IoctlSocket test (Amiga?) */
  20009. #include <sys/ioctl.h>
  20010. int
  20011. main ()
  20012. {
  20013. /* IoctlSocket source code */
  20014. int socket;
  20015. int flags = IoctlSocket(socket, FIONBIO, (long)1);
  20016. ;
  20017. return 0;
  20018. }
  20019. _ACEOF
  20020. rm -f conftest.$ac_objext conftest$ac_exeext
  20021. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20022. (eval $ac_link) 2>conftest.er1
  20023. ac_status=$?
  20024. grep -v '^ *+' conftest.er1 >conftest.err
  20025. rm -f conftest.er1
  20026. cat conftest.err >&5
  20027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20028. (exit $ac_status); } &&
  20029. { ac_try='test -z "$ac_c_werror_flag"
  20030. || test ! -s conftest.err'
  20031. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20032. (eval $ac_try) 2>&5
  20033. ac_status=$?
  20034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20035. (exit $ac_status); }; } &&
  20036. { ac_try='test -s conftest$ac_exeext'
  20037. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20038. (eval $ac_try) 2>&5
  20039. ac_status=$?
  20040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20041. (exit $ac_status); }; }; then
  20042. nonblock="IoctlSocket"
  20043. cat >>confdefs.h <<\_ACEOF
  20044. #define HAVE_IOCTLSOCKET_CASE 1
  20045. _ACEOF
  20046. else
  20047. echo "$as_me: failed program was:" >&5
  20048. sed 's/^/| /' conftest.$ac_ext >&5
  20049. cat >conftest.$ac_ext <<_ACEOF
  20050. /* confdefs.h. */
  20051. _ACEOF
  20052. cat confdefs.h >>conftest.$ac_ext
  20053. cat >>conftest.$ac_ext <<_ACEOF
  20054. /* end confdefs.h. */
  20055. /* headers for SO_NONBLOCK test (BeOS) */
  20056. #include <sys/types.h>
  20057. #include <unistd.h>
  20058. #include <fcntl.h>
  20059. int
  20060. main ()
  20061. {
  20062. /* SO_NONBLOCK source code */
  20063. long b = 1;
  20064. int socket;
  20065. int flags = setsockopt(socket, SOL_SOCKET, SO_NONBLOCK, &b, sizeof(b));
  20066. ;
  20067. return 0;
  20068. }
  20069. _ACEOF
  20070. rm -f conftest.$ac_objext
  20071. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20072. (eval $ac_compile) 2>conftest.er1
  20073. ac_status=$?
  20074. grep -v '^ *+' conftest.er1 >conftest.err
  20075. rm -f conftest.er1
  20076. cat conftest.err >&5
  20077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20078. (exit $ac_status); } &&
  20079. { ac_try='test -z "$ac_c_werror_flag"
  20080. || test ! -s conftest.err'
  20081. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20082. (eval $ac_try) 2>&5
  20083. ac_status=$?
  20084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20085. (exit $ac_status); }; } &&
  20086. { ac_try='test -s conftest.$ac_objext'
  20087. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20088. (eval $ac_try) 2>&5
  20089. ac_status=$?
  20090. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20091. (exit $ac_status); }; }; then
  20092. nonblock="SO_NONBLOCK"
  20093. cat >>confdefs.h <<\_ACEOF
  20094. #define HAVE_SO_NONBLOCK 1
  20095. _ACEOF
  20096. else
  20097. echo "$as_me: failed program was:" >&5
  20098. sed 's/^/| /' conftest.$ac_ext >&5
  20099. nonblock="nada"
  20100. cat >>confdefs.h <<\_ACEOF
  20101. #define HAVE_DISABLED_NONBLOCKING 1
  20102. _ACEOF
  20103. fi
  20104. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20105. fi
  20106. rm -f conftest.err conftest.$ac_objext \
  20107. conftest$ac_exeext conftest.$ac_ext
  20108. fi
  20109. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20110. fi
  20111. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20112. fi
  20113. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20114. echo "$as_me:$LINENO: result: $nonblock" >&5
  20115. echo "${ECHO_T}$nonblock" >&6
  20116. if test "$nonblock" = "nada"; then
  20117. { echo "$as_me:$LINENO: WARNING: non-block sockets disabled" >&5
  20118. echo "$as_me: WARNING: non-block sockets disabled" >&2;}
  20119. fi
  20120. fi
  20121. else
  20122. echo "$as_me:$LINENO: checking non-blocking sockets style" >&5
  20123. echo $ECHO_N "checking non-blocking sockets style... $ECHO_C" >&6
  20124. cat >conftest.$ac_ext <<_ACEOF
  20125. /* confdefs.h. */
  20126. _ACEOF
  20127. cat confdefs.h >>conftest.$ac_ext
  20128. cat >>conftest.$ac_ext <<_ACEOF
  20129. /* end confdefs.h. */
  20130. /* headers for O_NONBLOCK test */
  20131. #include <sys/types.h>
  20132. #include <unistd.h>
  20133. #include <fcntl.h>
  20134. int
  20135. main ()
  20136. {
  20137. /* try to compile O_NONBLOCK */
  20138. #if defined(sun) || defined(__sun__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
  20139. # if defined(__SVR4) || defined(__srv4__)
  20140. # define PLATFORM_SOLARIS
  20141. # else
  20142. # define PLATFORM_SUNOS4
  20143. # endif
  20144. #endif
  20145. #if (defined(_AIX) || defined(__xlC__)) && !defined(_AIX4)
  20146. # define PLATFORM_AIX_V3
  20147. #endif
  20148. #if defined(PLATFORM_SUNOS4) || defined(PLATFORM_AIX_V3) || defined(__BEOS__)
  20149. #error "O_NONBLOCK does not work on this platform"
  20150. #endif
  20151. int socket;
  20152. int flags = fcntl(socket, F_SETFL, flags | O_NONBLOCK);
  20153. ;
  20154. return 0;
  20155. }
  20156. _ACEOF
  20157. rm -f conftest.$ac_objext
  20158. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20159. (eval $ac_compile) 2>conftest.er1
  20160. ac_status=$?
  20161. grep -v '^ *+' conftest.er1 >conftest.err
  20162. rm -f conftest.er1
  20163. cat conftest.err >&5
  20164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20165. (exit $ac_status); } &&
  20166. { ac_try='test -z "$ac_c_werror_flag"
  20167. || test ! -s conftest.err'
  20168. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20169. (eval $ac_try) 2>&5
  20170. ac_status=$?
  20171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20172. (exit $ac_status); }; } &&
  20173. { ac_try='test -s conftest.$ac_objext'
  20174. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20175. (eval $ac_try) 2>&5
  20176. ac_status=$?
  20177. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20178. (exit $ac_status); }; }; then
  20179. nonblock="O_NONBLOCK"
  20180. cat >>confdefs.h <<\_ACEOF
  20181. #define HAVE_O_NONBLOCK 1
  20182. _ACEOF
  20183. else
  20184. echo "$as_me: failed program was:" >&5
  20185. sed 's/^/| /' conftest.$ac_ext >&5
  20186. cat >conftest.$ac_ext <<_ACEOF
  20187. /* confdefs.h. */
  20188. _ACEOF
  20189. cat confdefs.h >>conftest.$ac_ext
  20190. cat >>conftest.$ac_ext <<_ACEOF
  20191. /* end confdefs.h. */
  20192. /* headers for FIONBIO test */
  20193. #include <unistd.h>
  20194. #include <stropts.h>
  20195. int
  20196. main ()
  20197. {
  20198. /* FIONBIO source test (old-style unix) */
  20199. int socket;
  20200. int flags = ioctl(socket, FIONBIO, &flags);
  20201. ;
  20202. return 0;
  20203. }
  20204. _ACEOF
  20205. rm -f conftest.$ac_objext
  20206. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20207. (eval $ac_compile) 2>conftest.er1
  20208. ac_status=$?
  20209. grep -v '^ *+' conftest.er1 >conftest.err
  20210. rm -f conftest.er1
  20211. cat conftest.err >&5
  20212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20213. (exit $ac_status); } &&
  20214. { ac_try='test -z "$ac_c_werror_flag"
  20215. || test ! -s conftest.err'
  20216. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20217. (eval $ac_try) 2>&5
  20218. ac_status=$?
  20219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20220. (exit $ac_status); }; } &&
  20221. { ac_try='test -s conftest.$ac_objext'
  20222. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20223. (eval $ac_try) 2>&5
  20224. ac_status=$?
  20225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20226. (exit $ac_status); }; }; then
  20227. nonblock="FIONBIO"
  20228. cat >>confdefs.h <<\_ACEOF
  20229. #define HAVE_FIONBIO 1
  20230. _ACEOF
  20231. else
  20232. echo "$as_me: failed program was:" >&5
  20233. sed 's/^/| /' conftest.$ac_ext >&5
  20234. cat >conftest.$ac_ext <<_ACEOF
  20235. /* confdefs.h. */
  20236. _ACEOF
  20237. cat confdefs.h >>conftest.$ac_ext
  20238. cat >>conftest.$ac_ext <<_ACEOF
  20239. /* end confdefs.h. */
  20240. /* headers for ioctlsocket test (cygwin?) */
  20241. #include <windows.h>
  20242. int
  20243. main ()
  20244. {
  20245. /* ioctlsocket source code */
  20246. int socket;
  20247. int flags = ioctlsocket(socket, FIONBIO, &flags);
  20248. ;
  20249. return 0;
  20250. }
  20251. _ACEOF
  20252. rm -f conftest.$ac_objext
  20253. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20254. (eval $ac_compile) 2>conftest.er1
  20255. ac_status=$?
  20256. grep -v '^ *+' conftest.er1 >conftest.err
  20257. rm -f conftest.er1
  20258. cat conftest.err >&5
  20259. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20260. (exit $ac_status); } &&
  20261. { ac_try='test -z "$ac_c_werror_flag"
  20262. || test ! -s conftest.err'
  20263. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20264. (eval $ac_try) 2>&5
  20265. ac_status=$?
  20266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20267. (exit $ac_status); }; } &&
  20268. { ac_try='test -s conftest.$ac_objext'
  20269. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20270. (eval $ac_try) 2>&5
  20271. ac_status=$?
  20272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20273. (exit $ac_status); }; }; then
  20274. nonblock="ioctlsocket"
  20275. cat >>confdefs.h <<\_ACEOF
  20276. #define HAVE_IOCTLSOCKET 1
  20277. _ACEOF
  20278. else
  20279. echo "$as_me: failed program was:" >&5
  20280. sed 's/^/| /' conftest.$ac_ext >&5
  20281. cat >conftest.$ac_ext <<_ACEOF
  20282. /* confdefs.h. */
  20283. _ACEOF
  20284. cat confdefs.h >>conftest.$ac_ext
  20285. cat >>conftest.$ac_ext <<_ACEOF
  20286. /* end confdefs.h. */
  20287. /* headers for IoctlSocket test (Amiga?) */
  20288. #include <sys/ioctl.h>
  20289. int
  20290. main ()
  20291. {
  20292. /* IoctlSocket source code */
  20293. int socket;
  20294. int flags = IoctlSocket(socket, FIONBIO, (long)1);
  20295. ;
  20296. return 0;
  20297. }
  20298. _ACEOF
  20299. rm -f conftest.$ac_objext conftest$ac_exeext
  20300. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20301. (eval $ac_link) 2>conftest.er1
  20302. ac_status=$?
  20303. grep -v '^ *+' conftest.er1 >conftest.err
  20304. rm -f conftest.er1
  20305. cat conftest.err >&5
  20306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20307. (exit $ac_status); } &&
  20308. { ac_try='test -z "$ac_c_werror_flag"
  20309. || test ! -s conftest.err'
  20310. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20311. (eval $ac_try) 2>&5
  20312. ac_status=$?
  20313. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20314. (exit $ac_status); }; } &&
  20315. { ac_try='test -s conftest$ac_exeext'
  20316. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20317. (eval $ac_try) 2>&5
  20318. ac_status=$?
  20319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20320. (exit $ac_status); }; }; then
  20321. nonblock="IoctlSocket"
  20322. cat >>confdefs.h <<\_ACEOF
  20323. #define HAVE_IOCTLSOCKET_CASE 1
  20324. _ACEOF
  20325. else
  20326. echo "$as_me: failed program was:" >&5
  20327. sed 's/^/| /' conftest.$ac_ext >&5
  20328. cat >conftest.$ac_ext <<_ACEOF
  20329. /* confdefs.h. */
  20330. _ACEOF
  20331. cat confdefs.h >>conftest.$ac_ext
  20332. cat >>conftest.$ac_ext <<_ACEOF
  20333. /* end confdefs.h. */
  20334. /* headers for SO_NONBLOCK test (BeOS) */
  20335. #include <sys/types.h>
  20336. #include <unistd.h>
  20337. #include <fcntl.h>
  20338. int
  20339. main ()
  20340. {
  20341. /* SO_NONBLOCK source code */
  20342. long b = 1;
  20343. int socket;
  20344. int flags = setsockopt(socket, SOL_SOCKET, SO_NONBLOCK, &b, sizeof(b));
  20345. ;
  20346. return 0;
  20347. }
  20348. _ACEOF
  20349. rm -f conftest.$ac_objext
  20350. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20351. (eval $ac_compile) 2>conftest.er1
  20352. ac_status=$?
  20353. grep -v '^ *+' conftest.er1 >conftest.err
  20354. rm -f conftest.er1
  20355. cat conftest.err >&5
  20356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20357. (exit $ac_status); } &&
  20358. { ac_try='test -z "$ac_c_werror_flag"
  20359. || test ! -s conftest.err'
  20360. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20361. (eval $ac_try) 2>&5
  20362. ac_status=$?
  20363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20364. (exit $ac_status); }; } &&
  20365. { ac_try='test -s conftest.$ac_objext'
  20366. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20367. (eval $ac_try) 2>&5
  20368. ac_status=$?
  20369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20370. (exit $ac_status); }; }; then
  20371. nonblock="SO_NONBLOCK"
  20372. cat >>confdefs.h <<\_ACEOF
  20373. #define HAVE_SO_NONBLOCK 1
  20374. _ACEOF
  20375. else
  20376. echo "$as_me: failed program was:" >&5
  20377. sed 's/^/| /' conftest.$ac_ext >&5
  20378. nonblock="nada"
  20379. cat >>confdefs.h <<\_ACEOF
  20380. #define HAVE_DISABLED_NONBLOCKING 1
  20381. _ACEOF
  20382. fi
  20383. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20384. fi
  20385. rm -f conftest.err conftest.$ac_objext \
  20386. conftest$ac_exeext conftest.$ac_ext
  20387. fi
  20388. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20389. fi
  20390. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20391. fi
  20392. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20393. echo "$as_me:$LINENO: result: $nonblock" >&5
  20394. echo "${ECHO_T}$nonblock" >&6
  20395. if test "$nonblock" = "nada"; then
  20396. { echo "$as_me:$LINENO: WARNING: non-block sockets disabled" >&5
  20397. echo "$as_me: WARNING: non-block sockets disabled" >&2;}
  20398. fi
  20399. fi;
  20400. # Check whether --with-egd-socket or --without-egd-socket was given.
  20401. if test "${with_egd_socket+set}" = set; then
  20402. withval="$with_egd_socket"
  20403. EGD_SOCKET="$withval"
  20404. fi;
  20405. if test -n "$EGD_SOCKET" ; then
  20406. cat >>confdefs.h <<_ACEOF
  20407. #define EGD_SOCKET "$EGD_SOCKET"
  20408. _ACEOF
  20409. fi
  20410. # Check whether --with-random or --without-random was given.
  20411. if test "${with_random+set}" = set; then
  20412. withval="$with_random"
  20413. RANDOM_FILE="$withval"
  20414. else
  20415. echo "$as_me:$LINENO: checking for \"/dev/urandom\"" >&5
  20416. echo $ECHO_N "checking for \"/dev/urandom\"... $ECHO_C" >&6
  20417. if test "${ac_cv_file___dev_urandom_+set}" = set; then
  20418. echo $ECHO_N "(cached) $ECHO_C" >&6
  20419. else
  20420. test "$cross_compiling" = yes &&
  20421. { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  20422. echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  20423. { (exit 1); exit 1; }; }
  20424. if test -r ""/dev/urandom""; then
  20425. ac_cv_file___dev_urandom_=yes
  20426. else
  20427. ac_cv_file___dev_urandom_=no
  20428. fi
  20429. fi
  20430. echo "$as_me:$LINENO: result: $ac_cv_file___dev_urandom_" >&5
  20431. echo "${ECHO_T}$ac_cv_file___dev_urandom_" >&6
  20432. if test $ac_cv_file___dev_urandom_ = yes; then
  20433. RANDOM_FILE="/dev/urandom"
  20434. fi
  20435. fi;
  20436. if test -n "$RANDOM_FILE" ; then
  20437. cat >>confdefs.h <<_ACEOF
  20438. #define RANDOM_FILE "$RANDOM_FILE"
  20439. _ACEOF
  20440. fi
  20441. echo "$as_me:$LINENO: checking if argv can be written to" >&5
  20442. echo $ECHO_N "checking if argv can be written to... $ECHO_C" >&6
  20443. if test "${curl_cv_writable_argv+set}" = set; then
  20444. echo $ECHO_N "(cached) $ECHO_C" >&6
  20445. else
  20446. if test "$cross_compiling" = yes; then
  20447. curl_cv_writable_argv=cross
  20448. else
  20449. cat >conftest.$ac_ext <<_ACEOF
  20450. int main(int argc, char ** argv) {
  20451. argv[0][0] = ' ';
  20452. return (argv[0][0] == ' ')?0:1;
  20453. }
  20454. _ACEOF
  20455. rm -f conftest$ac_exeext
  20456. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20457. (eval $ac_link) 2>&5
  20458. ac_status=$?
  20459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20460. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20461. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20462. (eval $ac_try) 2>&5
  20463. ac_status=$?
  20464. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20465. (exit $ac_status); }; }; then
  20466. curl_cv_writable_argv=yes
  20467. else
  20468. echo "$as_me: program exited with status $ac_status" >&5
  20469. echo "$as_me: failed program was:" >&5
  20470. sed 's/^/| /' conftest.$ac_ext >&5
  20471. ( exit $ac_status )
  20472. curl_cv_writable_argv=no
  20473. fi
  20474. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20475. fi
  20476. fi
  20477. case $curl_cv_writable_argv in
  20478. yes)
  20479. cat >>confdefs.h <<\_ACEOF
  20480. #define HAVE_WRITABLE_ARGV 1
  20481. _ACEOF
  20482. echo "$as_me:$LINENO: result: yes" >&5
  20483. echo "${ECHO_T}yes" >&6
  20484. ;;
  20485. no)
  20486. echo "$as_me:$LINENO: result: no" >&5
  20487. echo "${ECHO_T}no" >&6
  20488. ;;
  20489. *)
  20490. echo "$as_me:$LINENO: result: no" >&5
  20491. echo "${ECHO_T}no" >&6
  20492. { echo "$as_me:$LINENO: WARNING: the previous check could not be made default was used" >&5
  20493. echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
  20494. ;;
  20495. esac
  20496. # Check whether --with-krb4-includes or --without-krb4-includes was given.
  20497. if test "${with_krb4_includes+set}" = set; then
  20498. withval="$with_krb4_includes"
  20499. CPPFLAGS="$CPPFLAGS -I$withval"
  20500. KRB4INC="$withval"
  20501. want_krb4=yes
  20502. fi;
  20503. # Check whether --with-krb4-libs or --without-krb4-libs was given.
  20504. if test "${with_krb4_libs+set}" = set; then
  20505. withval="$with_krb4_libs"
  20506. LDFLAGS="$LDFLAGS -L$withval"
  20507. KRB4LIB="$withval"
  20508. want_krb4=yes
  20509. fi;
  20510. OPT_KRB4=off
  20511. # Check whether --with-krb4 or --without-krb4 was given.
  20512. if test "${with_krb4+set}" = set; then
  20513. withval="$with_krb4"
  20514. OPT_KRB4="$withval"
  20515. if test X"$OPT_KRB4" != Xyes
  20516. then
  20517. LDFLAGS="$LDFLAGS -L$OPT_KRB4/lib$libsuff"
  20518. KRB4LIB="$OPT_KRB4/lib$libsuff"
  20519. CPPFLAGS="$CPPFLAGS -I$OPT_KRB4/include"
  20520. KRB4INC="$OPT_KRB4/include"
  20521. fi
  20522. want_krb4="yes"
  20523. fi;
  20524. echo "$as_me:$LINENO: checking if Kerberos4 support is requested" >&5
  20525. echo $ECHO_N "checking if Kerberos4 support is requested... $ECHO_C" >&6
  20526. if test "$want_krb4" = yes
  20527. then
  20528. if test "$ipv6" = "yes"; then
  20529. echo krb4 is not compatible with IPv6
  20530. exit 1
  20531. fi
  20532. echo "$as_me:$LINENO: result: yes" >&5
  20533. echo "${ECHO_T}yes" >&6
  20534. echo "$as_me:$LINENO: checking where to look for Kerberos4" >&5
  20535. echo $ECHO_N "checking where to look for Kerberos4... $ECHO_C" >&6
  20536. if test X"$OPT_KRB4" = Xyes
  20537. then
  20538. echo "$as_me:$LINENO: result: defaults" >&5
  20539. echo "${ECHO_T}defaults" >&6
  20540. else
  20541. echo "$as_me:$LINENO: result: libs in $KRB4LIB, headers in $KRB4INC" >&5
  20542. echo "${ECHO_T}libs in $KRB4LIB, headers in $KRB4INC" >&6
  20543. fi
  20544. echo "$as_me:$LINENO: checking for des_pcbc_encrypt in -ldes" >&5
  20545. echo $ECHO_N "checking for des_pcbc_encrypt in -ldes... $ECHO_C" >&6
  20546. if test "${ac_cv_lib_des_des_pcbc_encrypt+set}" = set; then
  20547. echo $ECHO_N "(cached) $ECHO_C" >&6
  20548. else
  20549. ac_check_lib_save_LIBS=$LIBS
  20550. LIBS="-ldes $LIBS"
  20551. cat >conftest.$ac_ext <<_ACEOF
  20552. /* confdefs.h. */
  20553. _ACEOF
  20554. cat confdefs.h >>conftest.$ac_ext
  20555. cat >>conftest.$ac_ext <<_ACEOF
  20556. /* end confdefs.h. */
  20557. /* Override any gcc2 internal prototype to avoid an error. */
  20558. #ifdef __cplusplus
  20559. extern "C"
  20560. #endif
  20561. /* We use char because int might match the return type of a gcc2
  20562. builtin and then its argument prototype would still apply. */
  20563. char des_pcbc_encrypt ();
  20564. int
  20565. main ()
  20566. {
  20567. des_pcbc_encrypt ();
  20568. ;
  20569. return 0;
  20570. }
  20571. _ACEOF
  20572. rm -f conftest.$ac_objext conftest$ac_exeext
  20573. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20574. (eval $ac_link) 2>conftest.er1
  20575. ac_status=$?
  20576. grep -v '^ *+' conftest.er1 >conftest.err
  20577. rm -f conftest.er1
  20578. cat conftest.err >&5
  20579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20580. (exit $ac_status); } &&
  20581. { ac_try='test -z "$ac_c_werror_flag"
  20582. || test ! -s conftest.err'
  20583. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20584. (eval $ac_try) 2>&5
  20585. ac_status=$?
  20586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20587. (exit $ac_status); }; } &&
  20588. { ac_try='test -s conftest$ac_exeext'
  20589. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20590. (eval $ac_try) 2>&5
  20591. ac_status=$?
  20592. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20593. (exit $ac_status); }; }; then
  20594. ac_cv_lib_des_des_pcbc_encrypt=yes
  20595. else
  20596. echo "$as_me: failed program was:" >&5
  20597. sed 's/^/| /' conftest.$ac_ext >&5
  20598. ac_cv_lib_des_des_pcbc_encrypt=no
  20599. fi
  20600. rm -f conftest.err conftest.$ac_objext \
  20601. conftest$ac_exeext conftest.$ac_ext
  20602. LIBS=$ac_check_lib_save_LIBS
  20603. fi
  20604. echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_pcbc_encrypt" >&5
  20605. echo "${ECHO_T}$ac_cv_lib_des_des_pcbc_encrypt" >&6
  20606. if test $ac_cv_lib_des_des_pcbc_encrypt = yes; then
  20607. for ac_header in des.h
  20608. do
  20609. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20610. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  20611. echo "$as_me:$LINENO: checking for $ac_header" >&5
  20612. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  20613. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  20614. echo $ECHO_N "(cached) $ECHO_C" >&6
  20615. fi
  20616. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  20617. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  20618. else
  20619. # Is the header compilable?
  20620. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  20621. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  20622. cat >conftest.$ac_ext <<_ACEOF
  20623. /* confdefs.h. */
  20624. _ACEOF
  20625. cat confdefs.h >>conftest.$ac_ext
  20626. cat >>conftest.$ac_ext <<_ACEOF
  20627. /* end confdefs.h. */
  20628. $ac_includes_default
  20629. #include <$ac_header>
  20630. _ACEOF
  20631. rm -f conftest.$ac_objext
  20632. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20633. (eval $ac_compile) 2>conftest.er1
  20634. ac_status=$?
  20635. grep -v '^ *+' conftest.er1 >conftest.err
  20636. rm -f conftest.er1
  20637. cat conftest.err >&5
  20638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20639. (exit $ac_status); } &&
  20640. { ac_try='test -z "$ac_c_werror_flag"
  20641. || test ! -s conftest.err'
  20642. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20643. (eval $ac_try) 2>&5
  20644. ac_status=$?
  20645. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20646. (exit $ac_status); }; } &&
  20647. { ac_try='test -s conftest.$ac_objext'
  20648. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20649. (eval $ac_try) 2>&5
  20650. ac_status=$?
  20651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20652. (exit $ac_status); }; }; then
  20653. ac_header_compiler=yes
  20654. else
  20655. echo "$as_me: failed program was:" >&5
  20656. sed 's/^/| /' conftest.$ac_ext >&5
  20657. ac_header_compiler=no
  20658. fi
  20659. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20660. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20661. echo "${ECHO_T}$ac_header_compiler" >&6
  20662. # Is the header present?
  20663. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  20664. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  20665. cat >conftest.$ac_ext <<_ACEOF
  20666. /* confdefs.h. */
  20667. _ACEOF
  20668. cat confdefs.h >>conftest.$ac_ext
  20669. cat >>conftest.$ac_ext <<_ACEOF
  20670. /* end confdefs.h. */
  20671. #include <$ac_header>
  20672. _ACEOF
  20673. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  20674. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  20675. ac_status=$?
  20676. grep -v '^ *+' conftest.er1 >conftest.err
  20677. rm -f conftest.er1
  20678. cat conftest.err >&5
  20679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20680. (exit $ac_status); } >/dev/null; then
  20681. if test -s conftest.err; then
  20682. ac_cpp_err=$ac_c_preproc_warn_flag
  20683. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  20684. else
  20685. ac_cpp_err=
  20686. fi
  20687. else
  20688. ac_cpp_err=yes
  20689. fi
  20690. if test -z "$ac_cpp_err"; then
  20691. ac_header_preproc=yes
  20692. else
  20693. echo "$as_me: failed program was:" >&5
  20694. sed 's/^/| /' conftest.$ac_ext >&5
  20695. ac_header_preproc=no
  20696. fi
  20697. rm -f conftest.err conftest.$ac_ext
  20698. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20699. echo "${ECHO_T}$ac_header_preproc" >&6
  20700. # So? What about this header?
  20701. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20702. yes:no: )
  20703. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  20704. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20705. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  20706. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  20707. ac_header_preproc=yes
  20708. ;;
  20709. no:yes:* )
  20710. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  20711. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  20712. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  20713. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  20714. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  20715. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  20716. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  20717. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  20718. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  20719. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  20720. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  20721. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  20722. (
  20723. cat <<\_ASBOX
  20724. ## ------------------------------- ##
  20725. ## Report this to curl-bug@haxx.se ##
  20726. ## ------------------------------- ##
  20727. _ASBOX
  20728. ) |
  20729. sed "s/^/$as_me: WARNING: /" >&2
  20730. ;;
  20731. esac
  20732. echo "$as_me:$LINENO: checking for $ac_header" >&5
  20733. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  20734. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  20735. echo $ECHO_N "(cached) $ECHO_C" >&6
  20736. else
  20737. eval "$as_ac_Header=\$ac_header_preproc"
  20738. fi
  20739. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  20740. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  20741. fi
  20742. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  20743. cat >>confdefs.h <<_ACEOF
  20744. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20745. _ACEOF
  20746. fi
  20747. done
  20748. echo "$as_me:$LINENO: checking for res_search" >&5
  20749. echo $ECHO_N "checking for res_search... $ECHO_C" >&6
  20750. if test "${ac_cv_func_res_search+set}" = set; then
  20751. echo $ECHO_N "(cached) $ECHO_C" >&6
  20752. else
  20753. cat >conftest.$ac_ext <<_ACEOF
  20754. /* confdefs.h. */
  20755. _ACEOF
  20756. cat confdefs.h >>conftest.$ac_ext
  20757. cat >>conftest.$ac_ext <<_ACEOF
  20758. /* end confdefs.h. */
  20759. /* Define res_search to an innocuous variant, in case <limits.h> declares res_search.
  20760. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20761. #define res_search innocuous_res_search
  20762. /* System header to define __stub macros and hopefully few prototypes,
  20763. which can conflict with char res_search (); below.
  20764. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20765. <limits.h> exists even on freestanding compilers. */
  20766. #ifdef __STDC__
  20767. # include <limits.h>
  20768. #else
  20769. # include <assert.h>
  20770. #endif
  20771. #undef res_search
  20772. /* Override any gcc2 internal prototype to avoid an error. */
  20773. #ifdef __cplusplus
  20774. extern "C"
  20775. {
  20776. #endif
  20777. /* We use char because int might match the return type of a gcc2
  20778. builtin and then its argument prototype would still apply. */
  20779. char res_search ();
  20780. /* The GNU C library defines this for functions which it implements
  20781. to always fail with ENOSYS. Some functions are actually named
  20782. something starting with __ and the normal name is an alias. */
  20783. #if defined (__stub_res_search) || defined (__stub___res_search)
  20784. choke me
  20785. #else
  20786. char (*f) () = res_search;
  20787. #endif
  20788. #ifdef __cplusplus
  20789. }
  20790. #endif
  20791. int
  20792. main ()
  20793. {
  20794. return f != res_search;
  20795. ;
  20796. return 0;
  20797. }
  20798. _ACEOF
  20799. rm -f conftest.$ac_objext conftest$ac_exeext
  20800. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20801. (eval $ac_link) 2>conftest.er1
  20802. ac_status=$?
  20803. grep -v '^ *+' conftest.er1 >conftest.err
  20804. rm -f conftest.er1
  20805. cat conftest.err >&5
  20806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20807. (exit $ac_status); } &&
  20808. { ac_try='test -z "$ac_c_werror_flag"
  20809. || test ! -s conftest.err'
  20810. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20811. (eval $ac_try) 2>&5
  20812. ac_status=$?
  20813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20814. (exit $ac_status); }; } &&
  20815. { ac_try='test -s conftest$ac_exeext'
  20816. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20817. (eval $ac_try) 2>&5
  20818. ac_status=$?
  20819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20820. (exit $ac_status); }; }; then
  20821. ac_cv_func_res_search=yes
  20822. else
  20823. echo "$as_me: failed program was:" >&5
  20824. sed 's/^/| /' conftest.$ac_ext >&5
  20825. ac_cv_func_res_search=no
  20826. fi
  20827. rm -f conftest.err conftest.$ac_objext \
  20828. conftest$ac_exeext conftest.$ac_ext
  20829. fi
  20830. echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
  20831. echo "${ECHO_T}$ac_cv_func_res_search" >&6
  20832. if test $ac_cv_func_res_search = yes; then
  20833. :
  20834. else
  20835. echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
  20836. echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
  20837. if test "${ac_cv_lib_resolv_res_search+set}" = set; then
  20838. echo $ECHO_N "(cached) $ECHO_C" >&6
  20839. else
  20840. ac_check_lib_save_LIBS=$LIBS
  20841. LIBS="-lresolv $LIBS"
  20842. cat >conftest.$ac_ext <<_ACEOF
  20843. /* confdefs.h. */
  20844. _ACEOF
  20845. cat confdefs.h >>conftest.$ac_ext
  20846. cat >>conftest.$ac_ext <<_ACEOF
  20847. /* end confdefs.h. */
  20848. /* Override any gcc2 internal prototype to avoid an error. */
  20849. #ifdef __cplusplus
  20850. extern "C"
  20851. #endif
  20852. /* We use char because int might match the return type of a gcc2
  20853. builtin and then its argument prototype would still apply. */
  20854. char res_search ();
  20855. int
  20856. main ()
  20857. {
  20858. res_search ();
  20859. ;
  20860. return 0;
  20861. }
  20862. _ACEOF
  20863. rm -f conftest.$ac_objext conftest$ac_exeext
  20864. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20865. (eval $ac_link) 2>conftest.er1
  20866. ac_status=$?
  20867. grep -v '^ *+' conftest.er1 >conftest.err
  20868. rm -f conftest.er1
  20869. cat conftest.err >&5
  20870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20871. (exit $ac_status); } &&
  20872. { ac_try='test -z "$ac_c_werror_flag"
  20873. || test ! -s conftest.err'
  20874. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20875. (eval $ac_try) 2>&5
  20876. ac_status=$?
  20877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20878. (exit $ac_status); }; } &&
  20879. { ac_try='test -s conftest$ac_exeext'
  20880. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20881. (eval $ac_try) 2>&5
  20882. ac_status=$?
  20883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20884. (exit $ac_status); }; }; then
  20885. ac_cv_lib_resolv_res_search=yes
  20886. else
  20887. echo "$as_me: failed program was:" >&5
  20888. sed 's/^/| /' conftest.$ac_ext >&5
  20889. ac_cv_lib_resolv_res_search=no
  20890. fi
  20891. rm -f conftest.err conftest.$ac_objext \
  20892. conftest$ac_exeext conftest.$ac_ext
  20893. LIBS=$ac_check_lib_save_LIBS
  20894. fi
  20895. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
  20896. echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
  20897. if test $ac_cv_lib_resolv_res_search = yes; then
  20898. cat >>confdefs.h <<_ACEOF
  20899. #define HAVE_LIBRESOLV 1
  20900. _ACEOF
  20901. LIBS="-lresolv $LIBS"
  20902. fi
  20903. fi
  20904. echo "$as_me:$LINENO: checking for krb_net_read in -lkrb" >&5
  20905. echo $ECHO_N "checking for krb_net_read in -lkrb... $ECHO_C" >&6
  20906. if test "${ac_cv_lib_krb_krb_net_read+set}" = set; then
  20907. echo $ECHO_N "(cached) $ECHO_C" >&6
  20908. else
  20909. ac_check_lib_save_LIBS=$LIBS
  20910. LIBS="-lkrb $LIBS"
  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. /* Override any gcc2 internal prototype to avoid an error. */
  20918. #ifdef __cplusplus
  20919. extern "C"
  20920. #endif
  20921. /* We use char because int might match the return type of a gcc2
  20922. builtin and then its argument prototype would still apply. */
  20923. char krb_net_read ();
  20924. int
  20925. main ()
  20926. {
  20927. krb_net_read ();
  20928. ;
  20929. return 0;
  20930. }
  20931. _ACEOF
  20932. rm -f conftest.$ac_objext conftest$ac_exeext
  20933. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20934. (eval $ac_link) 2>conftest.er1
  20935. ac_status=$?
  20936. grep -v '^ *+' conftest.er1 >conftest.err
  20937. rm -f conftest.er1
  20938. cat conftest.err >&5
  20939. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20940. (exit $ac_status); } &&
  20941. { ac_try='test -z "$ac_c_werror_flag"
  20942. || test ! -s conftest.err'
  20943. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20944. (eval $ac_try) 2>&5
  20945. ac_status=$?
  20946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20947. (exit $ac_status); }; } &&
  20948. { ac_try='test -s conftest$ac_exeext'
  20949. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20950. (eval $ac_try) 2>&5
  20951. ac_status=$?
  20952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20953. (exit $ac_status); }; }; then
  20954. ac_cv_lib_krb_krb_net_read=yes
  20955. else
  20956. echo "$as_me: failed program was:" >&5
  20957. sed 's/^/| /' conftest.$ac_ext >&5
  20958. ac_cv_lib_krb_krb_net_read=no
  20959. fi
  20960. rm -f conftest.err conftest.$ac_objext \
  20961. conftest$ac_exeext conftest.$ac_ext
  20962. LIBS=$ac_check_lib_save_LIBS
  20963. fi
  20964. echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_net_read" >&5
  20965. echo "${ECHO_T}$ac_cv_lib_krb_krb_net_read" >&6
  20966. if test $ac_cv_lib_krb_krb_net_read = yes; then
  20967. for ac_header in krb.h
  20968. do
  20969. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20970. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  20971. echo "$as_me:$LINENO: checking for $ac_header" >&5
  20972. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  20973. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  20974. echo $ECHO_N "(cached) $ECHO_C" >&6
  20975. fi
  20976. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  20977. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  20978. else
  20979. # Is the header compilable?
  20980. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  20981. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  20982. cat >conftest.$ac_ext <<_ACEOF
  20983. /* confdefs.h. */
  20984. _ACEOF
  20985. cat confdefs.h >>conftest.$ac_ext
  20986. cat >>conftest.$ac_ext <<_ACEOF
  20987. /* end confdefs.h. */
  20988. $ac_includes_default
  20989. #include <$ac_header>
  20990. _ACEOF
  20991. rm -f conftest.$ac_objext
  20992. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20993. (eval $ac_compile) 2>conftest.er1
  20994. ac_status=$?
  20995. grep -v '^ *+' conftest.er1 >conftest.err
  20996. rm -f conftest.er1
  20997. cat conftest.err >&5
  20998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20999. (exit $ac_status); } &&
  21000. { ac_try='test -z "$ac_c_werror_flag"
  21001. || test ! -s conftest.err'
  21002. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21003. (eval $ac_try) 2>&5
  21004. ac_status=$?
  21005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21006. (exit $ac_status); }; } &&
  21007. { ac_try='test -s conftest.$ac_objext'
  21008. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21009. (eval $ac_try) 2>&5
  21010. ac_status=$?
  21011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21012. (exit $ac_status); }; }; then
  21013. ac_header_compiler=yes
  21014. else
  21015. echo "$as_me: failed program was:" >&5
  21016. sed 's/^/| /' conftest.$ac_ext >&5
  21017. ac_header_compiler=no
  21018. fi
  21019. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21020. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21021. echo "${ECHO_T}$ac_header_compiler" >&6
  21022. # Is the header present?
  21023. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  21024. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  21025. cat >conftest.$ac_ext <<_ACEOF
  21026. /* confdefs.h. */
  21027. _ACEOF
  21028. cat confdefs.h >>conftest.$ac_ext
  21029. cat >>conftest.$ac_ext <<_ACEOF
  21030. /* end confdefs.h. */
  21031. #include <$ac_header>
  21032. _ACEOF
  21033. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  21034. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  21035. ac_status=$?
  21036. grep -v '^ *+' conftest.er1 >conftest.err
  21037. rm -f conftest.er1
  21038. cat conftest.err >&5
  21039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21040. (exit $ac_status); } >/dev/null; then
  21041. if test -s conftest.err; then
  21042. ac_cpp_err=$ac_c_preproc_warn_flag
  21043. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  21044. else
  21045. ac_cpp_err=
  21046. fi
  21047. else
  21048. ac_cpp_err=yes
  21049. fi
  21050. if test -z "$ac_cpp_err"; then
  21051. ac_header_preproc=yes
  21052. else
  21053. echo "$as_me: failed program was:" >&5
  21054. sed 's/^/| /' conftest.$ac_ext >&5
  21055. ac_header_preproc=no
  21056. fi
  21057. rm -f conftest.err conftest.$ac_ext
  21058. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21059. echo "${ECHO_T}$ac_header_preproc" >&6
  21060. # So? What about this header?
  21061. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21062. yes:no: )
  21063. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  21064. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21065. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  21066. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  21067. ac_header_preproc=yes
  21068. ;;
  21069. no:yes:* )
  21070. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  21071. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  21072. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  21073. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  21074. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  21075. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  21076. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  21077. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  21078. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  21079. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  21080. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  21081. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  21082. (
  21083. cat <<\_ASBOX
  21084. ## ------------------------------- ##
  21085. ## Report this to curl-bug@haxx.se ##
  21086. ## ------------------------------- ##
  21087. _ASBOX
  21088. ) |
  21089. sed "s/^/$as_me: WARNING: /" >&2
  21090. ;;
  21091. esac
  21092. echo "$as_me:$LINENO: checking for $ac_header" >&5
  21093. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  21094. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  21095. echo $ECHO_N "(cached) $ECHO_C" >&6
  21096. else
  21097. eval "$as_ac_Header=\$ac_header_preproc"
  21098. fi
  21099. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  21100. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  21101. fi
  21102. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  21103. cat >>confdefs.h <<_ACEOF
  21104. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21105. _ACEOF
  21106. fi
  21107. done
  21108. LIBS="-lkrb -ldes $LIBS"
  21109. for ac_func in krb_get_our_ip_for_realm
  21110. do
  21111. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21112. echo "$as_me:$LINENO: checking for $ac_func" >&5
  21113. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  21114. if eval "test \"\${$as_ac_var+set}\" = set"; then
  21115. echo $ECHO_N "(cached) $ECHO_C" >&6
  21116. else
  21117. cat >conftest.$ac_ext <<_ACEOF
  21118. /* confdefs.h. */
  21119. _ACEOF
  21120. cat confdefs.h >>conftest.$ac_ext
  21121. cat >>conftest.$ac_ext <<_ACEOF
  21122. /* end confdefs.h. */
  21123. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21124. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21125. #define $ac_func innocuous_$ac_func
  21126. /* System header to define __stub macros and hopefully few prototypes,
  21127. which can conflict with char $ac_func (); below.
  21128. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21129. <limits.h> exists even on freestanding compilers. */
  21130. #ifdef __STDC__
  21131. # include <limits.h>
  21132. #else
  21133. # include <assert.h>
  21134. #endif
  21135. #undef $ac_func
  21136. /* Override any gcc2 internal prototype to avoid an error. */
  21137. #ifdef __cplusplus
  21138. extern "C"
  21139. {
  21140. #endif
  21141. /* We use char because int might match the return type of a gcc2
  21142. builtin and then its argument prototype would still apply. */
  21143. char $ac_func ();
  21144. /* The GNU C library defines this for functions which it implements
  21145. to always fail with ENOSYS. Some functions are actually named
  21146. something starting with __ and the normal name is an alias. */
  21147. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  21148. choke me
  21149. #else
  21150. char (*f) () = $ac_func;
  21151. #endif
  21152. #ifdef __cplusplus
  21153. }
  21154. #endif
  21155. int
  21156. main ()
  21157. {
  21158. return f != $ac_func;
  21159. ;
  21160. return 0;
  21161. }
  21162. _ACEOF
  21163. rm -f conftest.$ac_objext conftest$ac_exeext
  21164. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21165. (eval $ac_link) 2>conftest.er1
  21166. ac_status=$?
  21167. grep -v '^ *+' conftest.er1 >conftest.err
  21168. rm -f conftest.er1
  21169. cat conftest.err >&5
  21170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21171. (exit $ac_status); } &&
  21172. { ac_try='test -z "$ac_c_werror_flag"
  21173. || test ! -s conftest.err'
  21174. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21175. (eval $ac_try) 2>&5
  21176. ac_status=$?
  21177. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21178. (exit $ac_status); }; } &&
  21179. { ac_try='test -s conftest$ac_exeext'
  21180. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21181. (eval $ac_try) 2>&5
  21182. ac_status=$?
  21183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21184. (exit $ac_status); }; }; then
  21185. eval "$as_ac_var=yes"
  21186. else
  21187. echo "$as_me: failed program was:" >&5
  21188. sed 's/^/| /' conftest.$ac_ext >&5
  21189. eval "$as_ac_var=no"
  21190. fi
  21191. rm -f conftest.err conftest.$ac_objext \
  21192. conftest$ac_exeext conftest.$ac_ext
  21193. fi
  21194. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  21195. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  21196. if test `eval echo '${'$as_ac_var'}'` = yes; then
  21197. cat >>confdefs.h <<_ACEOF
  21198. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21199. _ACEOF
  21200. fi
  21201. done
  21202. cat >>confdefs.h <<\_ACEOF
  21203. #define HAVE_KRB4 1
  21204. _ACEOF
  21205. KRB4_ENABLED=1
  21206. for ac_func in strlcpy
  21207. do
  21208. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21209. echo "$as_me:$LINENO: checking for $ac_func" >&5
  21210. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  21211. if eval "test \"\${$as_ac_var+set}\" = set"; then
  21212. echo $ECHO_N "(cached) $ECHO_C" >&6
  21213. else
  21214. cat >conftest.$ac_ext <<_ACEOF
  21215. /* confdefs.h. */
  21216. _ACEOF
  21217. cat confdefs.h >>conftest.$ac_ext
  21218. cat >>conftest.$ac_ext <<_ACEOF
  21219. /* end confdefs.h. */
  21220. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21221. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21222. #define $ac_func innocuous_$ac_func
  21223. /* System header to define __stub macros and hopefully few prototypes,
  21224. which can conflict with char $ac_func (); below.
  21225. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21226. <limits.h> exists even on freestanding compilers. */
  21227. #ifdef __STDC__
  21228. # include <limits.h>
  21229. #else
  21230. # include <assert.h>
  21231. #endif
  21232. #undef $ac_func
  21233. /* Override any gcc2 internal prototype to avoid an error. */
  21234. #ifdef __cplusplus
  21235. extern "C"
  21236. {
  21237. #endif
  21238. /* We use char because int might match the return type of a gcc2
  21239. builtin and then its argument prototype would still apply. */
  21240. char $ac_func ();
  21241. /* The GNU C library defines this for functions which it implements
  21242. to always fail with ENOSYS. Some functions are actually named
  21243. something starting with __ and the normal name is an alias. */
  21244. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  21245. choke me
  21246. #else
  21247. char (*f) () = $ac_func;
  21248. #endif
  21249. #ifdef __cplusplus
  21250. }
  21251. #endif
  21252. int
  21253. main ()
  21254. {
  21255. return f != $ac_func;
  21256. ;
  21257. return 0;
  21258. }
  21259. _ACEOF
  21260. rm -f conftest.$ac_objext conftest$ac_exeext
  21261. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21262. (eval $ac_link) 2>conftest.er1
  21263. ac_status=$?
  21264. grep -v '^ *+' conftest.er1 >conftest.err
  21265. rm -f conftest.er1
  21266. cat conftest.err >&5
  21267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21268. (exit $ac_status); } &&
  21269. { ac_try='test -z "$ac_c_werror_flag"
  21270. || test ! -s conftest.err'
  21271. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21272. (eval $ac_try) 2>&5
  21273. ac_status=$?
  21274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21275. (exit $ac_status); }; } &&
  21276. { ac_try='test -s conftest$ac_exeext'
  21277. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21278. (eval $ac_try) 2>&5
  21279. ac_status=$?
  21280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21281. (exit $ac_status); }; }; then
  21282. eval "$as_ac_var=yes"
  21283. else
  21284. echo "$as_me: failed program was:" >&5
  21285. sed 's/^/| /' conftest.$ac_ext >&5
  21286. eval "$as_ac_var=no"
  21287. fi
  21288. rm -f conftest.err conftest.$ac_objext \
  21289. conftest$ac_exeext conftest.$ac_ext
  21290. fi
  21291. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  21292. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  21293. if test `eval echo '${'$as_ac_var'}'` = yes; then
  21294. cat >>confdefs.h <<_ACEOF
  21295. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21296. _ACEOF
  21297. fi
  21298. done
  21299. fi
  21300. fi
  21301. else
  21302. echo "$as_me:$LINENO: result: no" >&5
  21303. echo "${ECHO_T}no" >&6
  21304. fi
  21305. # Check whether --with-spnego or --without-spnego was given.
  21306. if test "${with_spnego+set}" = set; then
  21307. withval="$with_spnego"
  21308. SPNEGO_ROOT="$withval"
  21309. want_spnego="yes"
  21310. fi;
  21311. echo "$as_me:$LINENO: checking if SPNEGO support is requested" >&5
  21312. echo $ECHO_N "checking if SPNEGO support is requested... $ECHO_C" >&6
  21313. if test x"$want_spnego" = xyes; then
  21314. if test X"$SPNEGO_ROOT" = Xyes; then
  21315. { { echo "$as_me:$LINENO: error: FBOpenSSL libs and/or directories were not found where specified!" >&5
  21316. echo "$as_me: error: FBOpenSSL libs and/or directories were not found where specified!" >&2;}
  21317. { (exit 1); exit 1; }; }
  21318. echo "$as_me:$LINENO: result: no" >&5
  21319. echo "${ECHO_T}no" >&6
  21320. else
  21321. if test -z "$SPNEGO_LIB_DIR"; then
  21322. LDFLAGS="$LDFLAGS -L$SPNEGO_ROOT -lfbopenssl"
  21323. else
  21324. LDFLAGS="$LDFLAGS $SPNEGO_LIB_DIR"
  21325. fi
  21326. echo "$as_me:$LINENO: result: yes" >&5
  21327. echo "${ECHO_T}yes" >&6
  21328. cat >>confdefs.h <<\_ACEOF
  21329. #define HAVE_SPNEGO 1
  21330. _ACEOF
  21331. fi
  21332. else
  21333. echo "$as_me:$LINENO: result: no" >&5
  21334. echo "${ECHO_T}no" >&6
  21335. fi
  21336. # Check whether --with-gssapi-includes or --without-gssapi-includes was given.
  21337. if test "${with_gssapi_includes+set}" = set; then
  21338. withval="$with_gssapi_includes"
  21339. GSSAPI_INCS="-I$withval"
  21340. want_gss="yes"
  21341. fi;
  21342. # Check whether --with-gssapi-libs or --without-gssapi-libs was given.
  21343. if test "${with_gssapi_libs+set}" = set; then
  21344. withval="$with_gssapi_libs"
  21345. GSSAPI_LIBS="-L$withval -lgssapi"
  21346. want_gss="yes"
  21347. fi;
  21348. # Check whether --with-gssapi or --without-gssapi was given.
  21349. if test "${with_gssapi+set}" = set; then
  21350. withval="$with_gssapi"
  21351. GSSAPI_ROOT="$withval"
  21352. want_gss="yes"
  21353. fi;
  21354. echo "$as_me:$LINENO: checking if GSSAPI support is requested" >&5
  21355. echo $ECHO_N "checking if GSSAPI support is requested... $ECHO_C" >&6
  21356. if test x"$want_gss" = xyes; then
  21357. if test -z "$GSSAPI_INCS"; then
  21358. if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
  21359. GSSAPI_INCS=`$GSSAPI_ROOT/bin/krb5-config --cflags gssapi`
  21360. else
  21361. GSSAPI_INCS="-I$GSSAPI_ROOT/include"
  21362. fi
  21363. fi
  21364. CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
  21365. if test -z "$GSSAPI_LIB_DIR"; then
  21366. if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
  21367. gss_ldflags=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi`
  21368. LDFLAGS="$LDFLAGS $gss_ldflags"
  21369. else
  21370. LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff -lgssapi"
  21371. fi
  21372. else
  21373. LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
  21374. fi
  21375. echo "$as_me:$LINENO: result: yes" >&5
  21376. echo "${ECHO_T}yes" >&6
  21377. cat >>confdefs.h <<\_ACEOF
  21378. #define HAVE_GSSAPI 1
  21379. _ACEOF
  21380. if test -n "$GSSAPI_INCS"; then
  21381. # cut off the preceding -I from the include path
  21382. GSSAPI_INCS=`echo $GSSAPI_INCS | sed -e s/^-I//g`
  21383. fi
  21384. if test -f "$GSSAPI_INCS/gssapi.h"; then
  21385. cat >>confdefs.h <<\_ACEOF
  21386. #define HAVE_GSSHEIMDAL 1
  21387. _ACEOF
  21388. else
  21389. cat >>confdefs.h <<\_ACEOF
  21390. #define HAVE_GSSMIT 1
  21391. _ACEOF
  21392. fi
  21393. else
  21394. echo "$as_me:$LINENO: result: no" >&5
  21395. echo "${ECHO_T}no" >&6
  21396. fi
  21397. # Extract the first word of "pkg-config", so it can be a program name with args.
  21398. set dummy pkg-config; ac_word=$2
  21399. echo "$as_me:$LINENO: checking for $ac_word" >&5
  21400. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21401. if test "${ac_cv_path_PKGCONFIG+set}" = set; then
  21402. echo $ECHO_N "(cached) $ECHO_C" >&6
  21403. else
  21404. case $PKGCONFIG in
  21405. [\\/]* | ?:[\\/]*)
  21406. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  21407. ;;
  21408. *)
  21409. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21410. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  21411. for as_dir in $as_dummy
  21412. do
  21413. IFS=$as_save_IFS
  21414. test -z "$as_dir" && as_dir=.
  21415. for ac_exec_ext in '' $ac_executable_extensions; do
  21416. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21417. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  21418. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21419. break 2
  21420. fi
  21421. done
  21422. done
  21423. test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
  21424. ;;
  21425. esac
  21426. fi
  21427. PKGCONFIG=$ac_cv_path_PKGCONFIG
  21428. if test -n "$PKGCONFIG"; then
  21429. echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
  21430. echo "${ECHO_T}$PKGCONFIG" >&6
  21431. else
  21432. echo "$as_me:$LINENO: result: no" >&5
  21433. echo "${ECHO_T}no" >&6
  21434. fi
  21435. if test "$PKGCONFIG" != "no" ; then
  21436. echo "$as_me:$LINENO: checking for OpenSSL options using pkg-config" >&5
  21437. echo $ECHO_N "checking for OpenSSL options using pkg-config... $ECHO_C" >&6
  21438. $PKGCONFIG --exists openssl
  21439. SSL_EXISTS=$?
  21440. if test "$SSL_EXISTS" -eq "0"; then
  21441. SSL_LIBS=`$PKGCONFIG --libs-only-l openssl 2>/dev/null`
  21442. SSL_LDFLAGS=`$PKGCONFIG --libs-only-L openssl 2>/dev/null`
  21443. SSL_CPPFLAGS=`$PKGCONFIG --cflags-only-I openssl 2>/dev/null`
  21444. LIBS="$LIBS $SSL_LIBS"
  21445. CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
  21446. LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
  21447. echo "$as_me:$LINENO: result: yes" >&5
  21448. echo "${ECHO_T}yes" >&6
  21449. else
  21450. echo "$as_me:$LINENO: result: no" >&5
  21451. echo "${ECHO_T}no" >&6
  21452. fi
  21453. fi
  21454. OPT_SSL=off
  21455. ca="no"
  21456. # Check whether --with-ssl or --without-ssl was given.
  21457. if test "${with_ssl+set}" = set; then
  21458. withval="$with_ssl"
  21459. OPT_SSL=$withval
  21460. fi;
  21461. if test X"$OPT_SSL" = Xno
  21462. then
  21463. { echo "$as_me:$LINENO: WARNING: SSL/https support disabled" >&5
  21464. echo "$as_me: WARNING: SSL/https support disabled" >&2;}
  21465. else
  21466. CLEANLDFLAGS="$LDFLAGS"
  21467. CLEANCPPFLAGS="$CPPFLAGS"
  21468. case "$OPT_SSL" in
  21469. yes)
  21470. EXTRA_SSL=/usr/local/ssl ;;
  21471. off)
  21472. EXTRA_SSL= ;;
  21473. *)
  21474. EXTRA_SSL=$OPT_SSL
  21475. LDFLAGS="$LDFLAGS -L$EXTRA_SSL/lib$libsuff"
  21476. CPPFLAGS="$CPPFLAGS -I$EXTRA_SSL/include/openssl -I$EXTRA_SSL/include"
  21477. ;;
  21478. esac
  21479. echo "$as_me:$LINENO: checking for CRYPTO_lock in -lcrypto" >&5
  21480. echo $ECHO_N "checking for CRYPTO_lock in -lcrypto... $ECHO_C" >&6
  21481. if test "${ac_cv_lib_crypto_CRYPTO_lock+set}" = set; then
  21482. echo $ECHO_N "(cached) $ECHO_C" >&6
  21483. else
  21484. ac_check_lib_save_LIBS=$LIBS
  21485. LIBS="-lcrypto $LIBS"
  21486. cat >conftest.$ac_ext <<_ACEOF
  21487. /* confdefs.h. */
  21488. _ACEOF
  21489. cat confdefs.h >>conftest.$ac_ext
  21490. cat >>conftest.$ac_ext <<_ACEOF
  21491. /* end confdefs.h. */
  21492. /* Override any gcc2 internal prototype to avoid an error. */
  21493. #ifdef __cplusplus
  21494. extern "C"
  21495. #endif
  21496. /* We use char because int might match the return type of a gcc2
  21497. builtin and then its argument prototype would still apply. */
  21498. char CRYPTO_lock ();
  21499. int
  21500. main ()
  21501. {
  21502. CRYPTO_lock ();
  21503. ;
  21504. return 0;
  21505. }
  21506. _ACEOF
  21507. rm -f conftest.$ac_objext conftest$ac_exeext
  21508. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21509. (eval $ac_link) 2>conftest.er1
  21510. ac_status=$?
  21511. grep -v '^ *+' conftest.er1 >conftest.err
  21512. rm -f conftest.er1
  21513. cat conftest.err >&5
  21514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21515. (exit $ac_status); } &&
  21516. { ac_try='test -z "$ac_c_werror_flag"
  21517. || test ! -s conftest.err'
  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); }; } &&
  21523. { ac_try='test -s conftest$ac_exeext'
  21524. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21525. (eval $ac_try) 2>&5
  21526. ac_status=$?
  21527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21528. (exit $ac_status); }; }; then
  21529. ac_cv_lib_crypto_CRYPTO_lock=yes
  21530. else
  21531. echo "$as_me: failed program was:" >&5
  21532. sed 's/^/| /' conftest.$ac_ext >&5
  21533. ac_cv_lib_crypto_CRYPTO_lock=no
  21534. fi
  21535. rm -f conftest.err conftest.$ac_objext \
  21536. conftest$ac_exeext conftest.$ac_ext
  21537. LIBS=$ac_check_lib_save_LIBS
  21538. fi
  21539. echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_lock" >&5
  21540. echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_lock" >&6
  21541. if test $ac_cv_lib_crypto_CRYPTO_lock = yes; then
  21542. HAVECRYPTO="yes"
  21543. else
  21544. OLDLDFLAGS="$LDFLAGS"
  21545. OLDCPPFLAGS="$CPPFLAGS"
  21546. LDFLAGS="$CLEANLDFLAGS -L$EXTRA_SSL/lib$libsuff"
  21547. CPPFLAGS="$CLEANCPPFLAGS -I$EXTRA_SSL/include/openssl -I$EXTRA_SSL/include"
  21548. echo "$as_me:$LINENO: checking for CRYPTO_add_lock in -lcrypto" >&5
  21549. echo $ECHO_N "checking for CRYPTO_add_lock in -lcrypto... $ECHO_C" >&6
  21550. if test "${ac_cv_lib_crypto_CRYPTO_add_lock+set}" = set; then
  21551. echo $ECHO_N "(cached) $ECHO_C" >&6
  21552. else
  21553. ac_check_lib_save_LIBS=$LIBS
  21554. LIBS="-lcrypto $LIBS"
  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. #ifdef __cplusplus
  21563. extern "C"
  21564. #endif
  21565. /* We use char because int might match the return type of a gcc2
  21566. builtin and then its argument prototype would still apply. */
  21567. char CRYPTO_add_lock ();
  21568. int
  21569. main ()
  21570. {
  21571. CRYPTO_add_lock ();
  21572. ;
  21573. return 0;
  21574. }
  21575. _ACEOF
  21576. rm -f conftest.$ac_objext conftest$ac_exeext
  21577. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21578. (eval $ac_link) 2>conftest.er1
  21579. ac_status=$?
  21580. grep -v '^ *+' conftest.er1 >conftest.err
  21581. rm -f conftest.er1
  21582. cat conftest.err >&5
  21583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21584. (exit $ac_status); } &&
  21585. { ac_try='test -z "$ac_c_werror_flag"
  21586. || test ! -s conftest.err'
  21587. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21588. (eval $ac_try) 2>&5
  21589. ac_status=$?
  21590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21591. (exit $ac_status); }; } &&
  21592. { ac_try='test -s conftest$ac_exeext'
  21593. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21594. (eval $ac_try) 2>&5
  21595. ac_status=$?
  21596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21597. (exit $ac_status); }; }; then
  21598. ac_cv_lib_crypto_CRYPTO_add_lock=yes
  21599. else
  21600. echo "$as_me: failed program was:" >&5
  21601. sed 's/^/| /' conftest.$ac_ext >&5
  21602. ac_cv_lib_crypto_CRYPTO_add_lock=no
  21603. fi
  21604. rm -f conftest.err conftest.$ac_objext \
  21605. conftest$ac_exeext conftest.$ac_ext
  21606. LIBS=$ac_check_lib_save_LIBS
  21607. fi
  21608. echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_add_lock" >&5
  21609. echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_add_lock" >&6
  21610. if test $ac_cv_lib_crypto_CRYPTO_add_lock = yes; then
  21611. HAVECRYPTO="yes"
  21612. else
  21613. LDFLAGS="$OLDLDFLAGS"
  21614. CPPFLAGS="$OLDCPPFLAGS"
  21615. fi
  21616. fi
  21617. if test "$HAVECRYPTO" = "yes"; then
  21618. echo "$as_me:$LINENO: checking for gdi32" >&5
  21619. echo $ECHO_N "checking for gdi32... $ECHO_C" >&6
  21620. my_ac_save_LIBS=$LIBS
  21621. LIBS="-lgdi32 $LIBS"
  21622. cat >conftest.$ac_ext <<_ACEOF
  21623. /* confdefs.h. */
  21624. _ACEOF
  21625. cat confdefs.h >>conftest.$ac_ext
  21626. cat >>conftest.$ac_ext <<_ACEOF
  21627. /* end confdefs.h. */
  21628. #include <windef.h>
  21629. #include <wingdi.h>
  21630. int
  21631. main ()
  21632. {
  21633. GdiFlush();
  21634. ;
  21635. return 0;
  21636. }
  21637. _ACEOF
  21638. rm -f conftest.$ac_objext conftest$ac_exeext
  21639. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21640. (eval $ac_link) 2>conftest.er1
  21641. ac_status=$?
  21642. grep -v '^ *+' conftest.er1 >conftest.err
  21643. rm -f conftest.er1
  21644. cat conftest.err >&5
  21645. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21646. (exit $ac_status); } &&
  21647. { ac_try='test -z "$ac_c_werror_flag"
  21648. || test ! -s conftest.err'
  21649. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21650. (eval $ac_try) 2>&5
  21651. ac_status=$?
  21652. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21653. (exit $ac_status); }; } &&
  21654. { ac_try='test -s conftest$ac_exeext'
  21655. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21656. (eval $ac_try) 2>&5
  21657. ac_status=$?
  21658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21659. (exit $ac_status); }; }; then
  21660. echo "$as_me:$LINENO: result: yes" >&5
  21661. echo "${ECHO_T}yes" >&6
  21662. else
  21663. echo "$as_me: failed program was:" >&5
  21664. sed 's/^/| /' conftest.$ac_ext >&5
  21665. LIBS=$my_ac_save_LIBS
  21666. echo "$as_me:$LINENO: result: no" >&5
  21667. echo "${ECHO_T}no" >&6
  21668. fi
  21669. rm -f conftest.err conftest.$ac_objext \
  21670. conftest$ac_exeext conftest.$ac_ext
  21671. echo "$as_me:$LINENO: checking for CRYPTO_add_lock in -lcrypto" >&5
  21672. echo $ECHO_N "checking for CRYPTO_add_lock in -lcrypto... $ECHO_C" >&6
  21673. if test "${ac_cv_lib_crypto_CRYPTO_add_lock+set}" = set; then
  21674. echo $ECHO_N "(cached) $ECHO_C" >&6
  21675. else
  21676. ac_check_lib_save_LIBS=$LIBS
  21677. LIBS="-lcrypto $LIBS"
  21678. cat >conftest.$ac_ext <<_ACEOF
  21679. /* confdefs.h. */
  21680. _ACEOF
  21681. cat confdefs.h >>conftest.$ac_ext
  21682. cat >>conftest.$ac_ext <<_ACEOF
  21683. /* end confdefs.h. */
  21684. /* Override any gcc2 internal prototype to avoid an error. */
  21685. #ifdef __cplusplus
  21686. extern "C"
  21687. #endif
  21688. /* We use char because int might match the return type of a gcc2
  21689. builtin and then its argument prototype would still apply. */
  21690. char CRYPTO_add_lock ();
  21691. int
  21692. main ()
  21693. {
  21694. CRYPTO_add_lock ();
  21695. ;
  21696. return 0;
  21697. }
  21698. _ACEOF
  21699. rm -f conftest.$ac_objext conftest$ac_exeext
  21700. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21701. (eval $ac_link) 2>conftest.er1
  21702. ac_status=$?
  21703. grep -v '^ *+' conftest.er1 >conftest.err
  21704. rm -f conftest.er1
  21705. cat conftest.err >&5
  21706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21707. (exit $ac_status); } &&
  21708. { ac_try='test -z "$ac_c_werror_flag"
  21709. || test ! -s conftest.err'
  21710. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21711. (eval $ac_try) 2>&5
  21712. ac_status=$?
  21713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21714. (exit $ac_status); }; } &&
  21715. { ac_try='test -s conftest$ac_exeext'
  21716. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21717. (eval $ac_try) 2>&5
  21718. ac_status=$?
  21719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21720. (exit $ac_status); }; }; then
  21721. ac_cv_lib_crypto_CRYPTO_add_lock=yes
  21722. else
  21723. echo "$as_me: failed program was:" >&5
  21724. sed 's/^/| /' conftest.$ac_ext >&5
  21725. ac_cv_lib_crypto_CRYPTO_add_lock=no
  21726. fi
  21727. rm -f conftest.err conftest.$ac_objext \
  21728. conftest$ac_exeext conftest.$ac_ext
  21729. LIBS=$ac_check_lib_save_LIBS
  21730. fi
  21731. echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_add_lock" >&5
  21732. echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_add_lock" >&6
  21733. if test $ac_cv_lib_crypto_CRYPTO_add_lock = yes; then
  21734. cat >>confdefs.h <<_ACEOF
  21735. #define HAVE_LIBCRYPTO 1
  21736. _ACEOF
  21737. LIBS="-lcrypto $LIBS"
  21738. fi
  21739. echo "$as_me:$LINENO: checking for SSL_connect in -lssl" >&5
  21740. echo $ECHO_N "checking for SSL_connect in -lssl... $ECHO_C" >&6
  21741. if test "${ac_cv_lib_ssl_SSL_connect+set}" = set; then
  21742. echo $ECHO_N "(cached) $ECHO_C" >&6
  21743. else
  21744. ac_check_lib_save_LIBS=$LIBS
  21745. LIBS="-lssl $LIBS"
  21746. cat >conftest.$ac_ext <<_ACEOF
  21747. /* confdefs.h. */
  21748. _ACEOF
  21749. cat confdefs.h >>conftest.$ac_ext
  21750. cat >>conftest.$ac_ext <<_ACEOF
  21751. /* end confdefs.h. */
  21752. /* Override any gcc2 internal prototype to avoid an error. */
  21753. #ifdef __cplusplus
  21754. extern "C"
  21755. #endif
  21756. /* We use char because int might match the return type of a gcc2
  21757. builtin and then its argument prototype would still apply. */
  21758. char SSL_connect ();
  21759. int
  21760. main ()
  21761. {
  21762. SSL_connect ();
  21763. ;
  21764. return 0;
  21765. }
  21766. _ACEOF
  21767. rm -f conftest.$ac_objext conftest$ac_exeext
  21768. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21769. (eval $ac_link) 2>conftest.er1
  21770. ac_status=$?
  21771. grep -v '^ *+' conftest.er1 >conftest.err
  21772. rm -f conftest.er1
  21773. cat conftest.err >&5
  21774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21775. (exit $ac_status); } &&
  21776. { ac_try='test -z "$ac_c_werror_flag"
  21777. || test ! -s conftest.err'
  21778. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21779. (eval $ac_try) 2>&5
  21780. ac_status=$?
  21781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21782. (exit $ac_status); }; } &&
  21783. { ac_try='test -s conftest$ac_exeext'
  21784. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21785. (eval $ac_try) 2>&5
  21786. ac_status=$?
  21787. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21788. (exit $ac_status); }; }; then
  21789. ac_cv_lib_ssl_SSL_connect=yes
  21790. else
  21791. echo "$as_me: failed program was:" >&5
  21792. sed 's/^/| /' conftest.$ac_ext >&5
  21793. ac_cv_lib_ssl_SSL_connect=no
  21794. fi
  21795. rm -f conftest.err conftest.$ac_objext \
  21796. conftest$ac_exeext conftest.$ac_ext
  21797. LIBS=$ac_check_lib_save_LIBS
  21798. fi
  21799. echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_connect" >&5
  21800. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_connect" >&6
  21801. if test $ac_cv_lib_ssl_SSL_connect = yes; then
  21802. cat >>confdefs.h <<_ACEOF
  21803. #define HAVE_LIBSSL 1
  21804. _ACEOF
  21805. LIBS="-lssl $LIBS"
  21806. fi
  21807. if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
  21808. echo "$as_me:$LINENO: checking for ssl with RSAglue/rsaref libs in use" >&5
  21809. echo $ECHO_N "checking for ssl with RSAglue/rsaref libs in use... $ECHO_C" >&6;
  21810. OLIBS=$LIBS
  21811. LIBS="$LIBS -lRSAglue -lrsaref"
  21812. echo "$as_me:$LINENO: checking for SSL_connect in -lssl" >&5
  21813. echo $ECHO_N "checking for SSL_connect in -lssl... $ECHO_C" >&6
  21814. if test "${ac_cv_lib_ssl_SSL_connect+set}" = set; then
  21815. echo $ECHO_N "(cached) $ECHO_C" >&6
  21816. else
  21817. ac_check_lib_save_LIBS=$LIBS
  21818. LIBS="-lssl $LIBS"
  21819. cat >conftest.$ac_ext <<_ACEOF
  21820. /* confdefs.h. */
  21821. _ACEOF
  21822. cat confdefs.h >>conftest.$ac_ext
  21823. cat >>conftest.$ac_ext <<_ACEOF
  21824. /* end confdefs.h. */
  21825. /* Override any gcc2 internal prototype to avoid an error. */
  21826. #ifdef __cplusplus
  21827. extern "C"
  21828. #endif
  21829. /* We use char because int might match the return type of a gcc2
  21830. builtin and then its argument prototype would still apply. */
  21831. char SSL_connect ();
  21832. int
  21833. main ()
  21834. {
  21835. SSL_connect ();
  21836. ;
  21837. return 0;
  21838. }
  21839. _ACEOF
  21840. rm -f conftest.$ac_objext conftest$ac_exeext
  21841. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21842. (eval $ac_link) 2>conftest.er1
  21843. ac_status=$?
  21844. grep -v '^ *+' conftest.er1 >conftest.err
  21845. rm -f conftest.er1
  21846. cat conftest.err >&5
  21847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21848. (exit $ac_status); } &&
  21849. { ac_try='test -z "$ac_c_werror_flag"
  21850. || test ! -s conftest.err'
  21851. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21852. (eval $ac_try) 2>&5
  21853. ac_status=$?
  21854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21855. (exit $ac_status); }; } &&
  21856. { ac_try='test -s conftest$ac_exeext'
  21857. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21858. (eval $ac_try) 2>&5
  21859. ac_status=$?
  21860. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21861. (exit $ac_status); }; }; then
  21862. ac_cv_lib_ssl_SSL_connect=yes
  21863. else
  21864. echo "$as_me: failed program was:" >&5
  21865. sed 's/^/| /' conftest.$ac_ext >&5
  21866. ac_cv_lib_ssl_SSL_connect=no
  21867. fi
  21868. rm -f conftest.err conftest.$ac_objext \
  21869. conftest$ac_exeext conftest.$ac_ext
  21870. LIBS=$ac_check_lib_save_LIBS
  21871. fi
  21872. echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_connect" >&5
  21873. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_connect" >&6
  21874. if test $ac_cv_lib_ssl_SSL_connect = yes; then
  21875. cat >>confdefs.h <<_ACEOF
  21876. #define HAVE_LIBSSL 1
  21877. _ACEOF
  21878. LIBS="-lssl $LIBS"
  21879. fi
  21880. if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
  21881. echo "$as_me:$LINENO: result: no" >&5
  21882. echo "${ECHO_T}no" >&6
  21883. LIBS=$OLIBS
  21884. else
  21885. echo "$as_me:$LINENO: result: yes" >&5
  21886. echo "${ECHO_T}yes" >&6
  21887. fi
  21888. fi
  21889. for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
  21890. openssl/pem.h openssl/ssl.h openssl/err.h
  21891. do
  21892. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21893. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  21894. echo "$as_me:$LINENO: checking for $ac_header" >&5
  21895. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  21896. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  21897. echo $ECHO_N "(cached) $ECHO_C" >&6
  21898. fi
  21899. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  21900. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  21901. else
  21902. # Is the header compilable?
  21903. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  21904. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  21905. cat >conftest.$ac_ext <<_ACEOF
  21906. /* confdefs.h. */
  21907. _ACEOF
  21908. cat confdefs.h >>conftest.$ac_ext
  21909. cat >>conftest.$ac_ext <<_ACEOF
  21910. /* end confdefs.h. */
  21911. $ac_includes_default
  21912. #include <$ac_header>
  21913. _ACEOF
  21914. rm -f conftest.$ac_objext
  21915. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21916. (eval $ac_compile) 2>conftest.er1
  21917. ac_status=$?
  21918. grep -v '^ *+' conftest.er1 >conftest.err
  21919. rm -f conftest.er1
  21920. cat conftest.err >&5
  21921. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21922. (exit $ac_status); } &&
  21923. { ac_try='test -z "$ac_c_werror_flag"
  21924. || test ! -s conftest.err'
  21925. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21926. (eval $ac_try) 2>&5
  21927. ac_status=$?
  21928. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21929. (exit $ac_status); }; } &&
  21930. { ac_try='test -s conftest.$ac_objext'
  21931. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21932. (eval $ac_try) 2>&5
  21933. ac_status=$?
  21934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21935. (exit $ac_status); }; }; then
  21936. ac_header_compiler=yes
  21937. else
  21938. echo "$as_me: failed program was:" >&5
  21939. sed 's/^/| /' conftest.$ac_ext >&5
  21940. ac_header_compiler=no
  21941. fi
  21942. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21943. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21944. echo "${ECHO_T}$ac_header_compiler" >&6
  21945. # Is the header present?
  21946. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  21947. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  21948. cat >conftest.$ac_ext <<_ACEOF
  21949. /* confdefs.h. */
  21950. _ACEOF
  21951. cat confdefs.h >>conftest.$ac_ext
  21952. cat >>conftest.$ac_ext <<_ACEOF
  21953. /* end confdefs.h. */
  21954. #include <$ac_header>
  21955. _ACEOF
  21956. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  21957. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  21958. ac_status=$?
  21959. grep -v '^ *+' conftest.er1 >conftest.err
  21960. rm -f conftest.er1
  21961. cat conftest.err >&5
  21962. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21963. (exit $ac_status); } >/dev/null; then
  21964. if test -s conftest.err; then
  21965. ac_cpp_err=$ac_c_preproc_warn_flag
  21966. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  21967. else
  21968. ac_cpp_err=
  21969. fi
  21970. else
  21971. ac_cpp_err=yes
  21972. fi
  21973. if test -z "$ac_cpp_err"; then
  21974. ac_header_preproc=yes
  21975. else
  21976. echo "$as_me: failed program was:" >&5
  21977. sed 's/^/| /' conftest.$ac_ext >&5
  21978. ac_header_preproc=no
  21979. fi
  21980. rm -f conftest.err conftest.$ac_ext
  21981. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21982. echo "${ECHO_T}$ac_header_preproc" >&6
  21983. # So? What about this header?
  21984. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21985. yes:no: )
  21986. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  21987. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21988. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  21989. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  21990. ac_header_preproc=yes
  21991. ;;
  21992. no:yes:* )
  21993. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  21994. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  21995. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  21996. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  21997. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  21998. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  21999. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  22000. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  22001. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  22002. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  22003. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  22004. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  22005. (
  22006. cat <<\_ASBOX
  22007. ## ------------------------------- ##
  22008. ## Report this to curl-bug@haxx.se ##
  22009. ## ------------------------------- ##
  22010. _ASBOX
  22011. ) |
  22012. sed "s/^/$as_me: WARNING: /" >&2
  22013. ;;
  22014. esac
  22015. echo "$as_me:$LINENO: checking for $ac_header" >&5
  22016. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  22017. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  22018. echo $ECHO_N "(cached) $ECHO_C" >&6
  22019. else
  22020. eval "$as_ac_Header=\$ac_header_preproc"
  22021. fi
  22022. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  22023. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  22024. fi
  22025. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  22026. cat >>confdefs.h <<_ACEOF
  22027. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  22028. _ACEOF
  22029. OPENSSL_ENABLED=1
  22030. fi
  22031. done
  22032. if test $ac_cv_header_openssl_x509_h = no; then
  22033. for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
  22034. do
  22035. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  22036. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  22037. echo "$as_me:$LINENO: checking for $ac_header" >&5
  22038. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  22039. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  22040. echo $ECHO_N "(cached) $ECHO_C" >&6
  22041. fi
  22042. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  22043. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  22044. else
  22045. # Is the header compilable?
  22046. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  22047. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  22048. cat >conftest.$ac_ext <<_ACEOF
  22049. /* confdefs.h. */
  22050. _ACEOF
  22051. cat confdefs.h >>conftest.$ac_ext
  22052. cat >>conftest.$ac_ext <<_ACEOF
  22053. /* end confdefs.h. */
  22054. $ac_includes_default
  22055. #include <$ac_header>
  22056. _ACEOF
  22057. rm -f conftest.$ac_objext
  22058. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22059. (eval $ac_compile) 2>conftest.er1
  22060. ac_status=$?
  22061. grep -v '^ *+' conftest.er1 >conftest.err
  22062. rm -f conftest.er1
  22063. cat conftest.err >&5
  22064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22065. (exit $ac_status); } &&
  22066. { ac_try='test -z "$ac_c_werror_flag"
  22067. || test ! -s conftest.err'
  22068. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22069. (eval $ac_try) 2>&5
  22070. ac_status=$?
  22071. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22072. (exit $ac_status); }; } &&
  22073. { ac_try='test -s conftest.$ac_objext'
  22074. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22075. (eval $ac_try) 2>&5
  22076. ac_status=$?
  22077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22078. (exit $ac_status); }; }; then
  22079. ac_header_compiler=yes
  22080. else
  22081. echo "$as_me: failed program was:" >&5
  22082. sed 's/^/| /' conftest.$ac_ext >&5
  22083. ac_header_compiler=no
  22084. fi
  22085. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22086. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  22087. echo "${ECHO_T}$ac_header_compiler" >&6
  22088. # Is the header present?
  22089. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  22090. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  22091. cat >conftest.$ac_ext <<_ACEOF
  22092. /* confdefs.h. */
  22093. _ACEOF
  22094. cat confdefs.h >>conftest.$ac_ext
  22095. cat >>conftest.$ac_ext <<_ACEOF
  22096. /* end confdefs.h. */
  22097. #include <$ac_header>
  22098. _ACEOF
  22099. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  22100. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  22101. ac_status=$?
  22102. grep -v '^ *+' conftest.er1 >conftest.err
  22103. rm -f conftest.er1
  22104. cat conftest.err >&5
  22105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22106. (exit $ac_status); } >/dev/null; then
  22107. if test -s conftest.err; then
  22108. ac_cpp_err=$ac_c_preproc_warn_flag
  22109. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  22110. else
  22111. ac_cpp_err=
  22112. fi
  22113. else
  22114. ac_cpp_err=yes
  22115. fi
  22116. if test -z "$ac_cpp_err"; then
  22117. ac_header_preproc=yes
  22118. else
  22119. echo "$as_me: failed program was:" >&5
  22120. sed 's/^/| /' conftest.$ac_ext >&5
  22121. ac_header_preproc=no
  22122. fi
  22123. rm -f conftest.err conftest.$ac_ext
  22124. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  22125. echo "${ECHO_T}$ac_header_preproc" >&6
  22126. # So? What about this header?
  22127. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  22128. yes:no: )
  22129. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  22130. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  22131. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  22132. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  22133. ac_header_preproc=yes
  22134. ;;
  22135. no:yes:* )
  22136. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  22137. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  22138. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  22139. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  22140. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  22141. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  22142. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  22143. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  22144. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  22145. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  22146. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  22147. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  22148. (
  22149. cat <<\_ASBOX
  22150. ## ------------------------------- ##
  22151. ## Report this to curl-bug@haxx.se ##
  22152. ## ------------------------------- ##
  22153. _ASBOX
  22154. ) |
  22155. sed "s/^/$as_me: WARNING: /" >&2
  22156. ;;
  22157. esac
  22158. echo "$as_me:$LINENO: checking for $ac_header" >&5
  22159. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  22160. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  22161. echo $ECHO_N "(cached) $ECHO_C" >&6
  22162. else
  22163. eval "$as_ac_Header=\$ac_header_preproc"
  22164. fi
  22165. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  22166. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  22167. fi
  22168. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  22169. cat >>confdefs.h <<_ACEOF
  22170. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  22171. _ACEOF
  22172. OPENSSL_ENABLED=1
  22173. fi
  22174. done
  22175. fi
  22176. echo "$as_me:$LINENO: checking for ENGINE_init" >&5
  22177. echo $ECHO_N "checking for ENGINE_init... $ECHO_C" >&6
  22178. if test "${ac_cv_func_ENGINE_init+set}" = set; then
  22179. echo $ECHO_N "(cached) $ECHO_C" >&6
  22180. else
  22181. cat >conftest.$ac_ext <<_ACEOF
  22182. /* confdefs.h. */
  22183. _ACEOF
  22184. cat confdefs.h >>conftest.$ac_ext
  22185. cat >>conftest.$ac_ext <<_ACEOF
  22186. /* end confdefs.h. */
  22187. /* Define ENGINE_init to an innocuous variant, in case <limits.h> declares ENGINE_init.
  22188. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22189. #define ENGINE_init innocuous_ENGINE_init
  22190. /* System header to define __stub macros and hopefully few prototypes,
  22191. which can conflict with char ENGINE_init (); below.
  22192. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22193. <limits.h> exists even on freestanding compilers. */
  22194. #ifdef __STDC__
  22195. # include <limits.h>
  22196. #else
  22197. # include <assert.h>
  22198. #endif
  22199. #undef ENGINE_init
  22200. /* Override any gcc2 internal prototype to avoid an error. */
  22201. #ifdef __cplusplus
  22202. extern "C"
  22203. {
  22204. #endif
  22205. /* We use char because int might match the return type of a gcc2
  22206. builtin and then its argument prototype would still apply. */
  22207. char ENGINE_init ();
  22208. /* The GNU C library defines this for functions which it implements
  22209. to always fail with ENOSYS. Some functions are actually named
  22210. something starting with __ and the normal name is an alias. */
  22211. #if defined (__stub_ENGINE_init) || defined (__stub___ENGINE_init)
  22212. choke me
  22213. #else
  22214. char (*f) () = ENGINE_init;
  22215. #endif
  22216. #ifdef __cplusplus
  22217. }
  22218. #endif
  22219. int
  22220. main ()
  22221. {
  22222. return f != ENGINE_init;
  22223. ;
  22224. return 0;
  22225. }
  22226. _ACEOF
  22227. rm -f conftest.$ac_objext conftest$ac_exeext
  22228. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22229. (eval $ac_link) 2>conftest.er1
  22230. ac_status=$?
  22231. grep -v '^ *+' conftest.er1 >conftest.err
  22232. rm -f conftest.er1
  22233. cat conftest.err >&5
  22234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22235. (exit $ac_status); } &&
  22236. { ac_try='test -z "$ac_c_werror_flag"
  22237. || test ! -s conftest.err'
  22238. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22239. (eval $ac_try) 2>&5
  22240. ac_status=$?
  22241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22242. (exit $ac_status); }; } &&
  22243. { ac_try='test -s conftest$ac_exeext'
  22244. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22245. (eval $ac_try) 2>&5
  22246. ac_status=$?
  22247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22248. (exit $ac_status); }; }; then
  22249. ac_cv_func_ENGINE_init=yes
  22250. else
  22251. echo "$as_me: failed program was:" >&5
  22252. sed 's/^/| /' conftest.$ac_ext >&5
  22253. ac_cv_func_ENGINE_init=no
  22254. fi
  22255. rm -f conftest.err conftest.$ac_objext \
  22256. conftest$ac_exeext conftest.$ac_ext
  22257. fi
  22258. echo "$as_me:$LINENO: result: $ac_cv_func_ENGINE_init" >&5
  22259. echo "${ECHO_T}$ac_cv_func_ENGINE_init" >&6
  22260. if test $ac_cv_func_ENGINE_init = yes; then
  22261. for ac_header in openssl/engine.h
  22262. do
  22263. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  22264. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  22265. echo "$as_me:$LINENO: checking for $ac_header" >&5
  22266. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  22267. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  22268. echo $ECHO_N "(cached) $ECHO_C" >&6
  22269. fi
  22270. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  22271. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  22272. else
  22273. # Is the header compilable?
  22274. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  22275. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  22276. cat >conftest.$ac_ext <<_ACEOF
  22277. /* confdefs.h. */
  22278. _ACEOF
  22279. cat confdefs.h >>conftest.$ac_ext
  22280. cat >>conftest.$ac_ext <<_ACEOF
  22281. /* end confdefs.h. */
  22282. $ac_includes_default
  22283. #include <$ac_header>
  22284. _ACEOF
  22285. rm -f conftest.$ac_objext
  22286. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22287. (eval $ac_compile) 2>conftest.er1
  22288. ac_status=$?
  22289. grep -v '^ *+' conftest.er1 >conftest.err
  22290. rm -f conftest.er1
  22291. cat conftest.err >&5
  22292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22293. (exit $ac_status); } &&
  22294. { ac_try='test -z "$ac_c_werror_flag"
  22295. || test ! -s conftest.err'
  22296. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22297. (eval $ac_try) 2>&5
  22298. ac_status=$?
  22299. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22300. (exit $ac_status); }; } &&
  22301. { ac_try='test -s conftest.$ac_objext'
  22302. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22303. (eval $ac_try) 2>&5
  22304. ac_status=$?
  22305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22306. (exit $ac_status); }; }; then
  22307. ac_header_compiler=yes
  22308. else
  22309. echo "$as_me: failed program was:" >&5
  22310. sed 's/^/| /' conftest.$ac_ext >&5
  22311. ac_header_compiler=no
  22312. fi
  22313. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22314. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  22315. echo "${ECHO_T}$ac_header_compiler" >&6
  22316. # Is the header present?
  22317. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  22318. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  22319. cat >conftest.$ac_ext <<_ACEOF
  22320. /* confdefs.h. */
  22321. _ACEOF
  22322. cat confdefs.h >>conftest.$ac_ext
  22323. cat >>conftest.$ac_ext <<_ACEOF
  22324. /* end confdefs.h. */
  22325. #include <$ac_header>
  22326. _ACEOF
  22327. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  22328. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  22329. ac_status=$?
  22330. grep -v '^ *+' conftest.er1 >conftest.err
  22331. rm -f conftest.er1
  22332. cat conftest.err >&5
  22333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22334. (exit $ac_status); } >/dev/null; then
  22335. if test -s conftest.err; then
  22336. ac_cpp_err=$ac_c_preproc_warn_flag
  22337. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  22338. else
  22339. ac_cpp_err=
  22340. fi
  22341. else
  22342. ac_cpp_err=yes
  22343. fi
  22344. if test -z "$ac_cpp_err"; then
  22345. ac_header_preproc=yes
  22346. else
  22347. echo "$as_me: failed program was:" >&5
  22348. sed 's/^/| /' conftest.$ac_ext >&5
  22349. ac_header_preproc=no
  22350. fi
  22351. rm -f conftest.err conftest.$ac_ext
  22352. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  22353. echo "${ECHO_T}$ac_header_preproc" >&6
  22354. # So? What about this header?
  22355. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  22356. yes:no: )
  22357. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  22358. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  22359. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  22360. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  22361. ac_header_preproc=yes
  22362. ;;
  22363. no:yes:* )
  22364. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  22365. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  22366. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  22367. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  22368. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  22369. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  22370. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  22371. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  22372. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  22373. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  22374. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  22375. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  22376. (
  22377. cat <<\_ASBOX
  22378. ## ------------------------------- ##
  22379. ## Report this to curl-bug@haxx.se ##
  22380. ## ------------------------------- ##
  22381. _ASBOX
  22382. ) |
  22383. sed "s/^/$as_me: WARNING: /" >&2
  22384. ;;
  22385. esac
  22386. echo "$as_me:$LINENO: checking for $ac_header" >&5
  22387. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  22388. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  22389. echo $ECHO_N "(cached) $ECHO_C" >&6
  22390. else
  22391. eval "$as_ac_Header=\$ac_header_preproc"
  22392. fi
  22393. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  22394. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  22395. fi
  22396. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  22397. cat >>confdefs.h <<_ACEOF
  22398. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  22399. _ACEOF
  22400. fi
  22401. done
  22402. fi
  22403. echo "$as_me:$LINENO: checking CA cert bundle install path" >&5
  22404. echo $ECHO_N "checking CA cert bundle install path... $ECHO_C" >&6
  22405. # Check whether --with-ca-bundle or --without-ca-bundle was given.
  22406. if test "${with_ca_bundle+set}" = set; then
  22407. withval="$with_ca_bundle"
  22408. ca="$withval"
  22409. else
  22410. if test "x$prefix" != xNONE; then
  22411. ca="\${prefix}/share/curl/curl-ca-bundle.crt"
  22412. else
  22413. ca="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
  22414. fi
  22415. fi;
  22416. if test X"$OPT_SSL" = Xno; then
  22417. ca="no"
  22418. fi
  22419. if test "x$ca" != "xno"; then
  22420. CURL_CA_BUNDLE='"'$ca'"'
  22421. fi
  22422. echo "$as_me:$LINENO: result: $ca" >&5
  22423. echo "${ECHO_T}$ca" >&6
  22424. for ac_func in RAND_status \
  22425. RAND_screen \
  22426. RAND_egd \
  22427. CRYPTO_cleanup_all_ex_data
  22428. do
  22429. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  22430. echo "$as_me:$LINENO: checking for $ac_func" >&5
  22431. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  22432. if eval "test \"\${$as_ac_var+set}\" = set"; then
  22433. echo $ECHO_N "(cached) $ECHO_C" >&6
  22434. else
  22435. cat >conftest.$ac_ext <<_ACEOF
  22436. /* confdefs.h. */
  22437. _ACEOF
  22438. cat confdefs.h >>conftest.$ac_ext
  22439. cat >>conftest.$ac_ext <<_ACEOF
  22440. /* end confdefs.h. */
  22441. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  22442. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22443. #define $ac_func innocuous_$ac_func
  22444. /* System header to define __stub macros and hopefully few prototypes,
  22445. which can conflict with char $ac_func (); below.
  22446. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22447. <limits.h> exists even on freestanding compilers. */
  22448. #ifdef __STDC__
  22449. # include <limits.h>
  22450. #else
  22451. # include <assert.h>
  22452. #endif
  22453. #undef $ac_func
  22454. /* Override any gcc2 internal prototype to avoid an error. */
  22455. #ifdef __cplusplus
  22456. extern "C"
  22457. {
  22458. #endif
  22459. /* We use char because int might match the return type of a gcc2
  22460. builtin and then its argument prototype would still apply. */
  22461. char $ac_func ();
  22462. /* The GNU C library defines this for functions which it implements
  22463. to always fail with ENOSYS. Some functions are actually named
  22464. something starting with __ and the normal name is an alias. */
  22465. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  22466. choke me
  22467. #else
  22468. char (*f) () = $ac_func;
  22469. #endif
  22470. #ifdef __cplusplus
  22471. }
  22472. #endif
  22473. int
  22474. main ()
  22475. {
  22476. return f != $ac_func;
  22477. ;
  22478. return 0;
  22479. }
  22480. _ACEOF
  22481. rm -f conftest.$ac_objext conftest$ac_exeext
  22482. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22483. (eval $ac_link) 2>conftest.er1
  22484. ac_status=$?
  22485. grep -v '^ *+' conftest.er1 >conftest.err
  22486. rm -f conftest.er1
  22487. cat conftest.err >&5
  22488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22489. (exit $ac_status); } &&
  22490. { ac_try='test -z "$ac_c_werror_flag"
  22491. || test ! -s conftest.err'
  22492. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22493. (eval $ac_try) 2>&5
  22494. ac_status=$?
  22495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22496. (exit $ac_status); }; } &&
  22497. { ac_try='test -s conftest$ac_exeext'
  22498. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22499. (eval $ac_try) 2>&5
  22500. ac_status=$?
  22501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22502. (exit $ac_status); }; }; then
  22503. eval "$as_ac_var=yes"
  22504. else
  22505. echo "$as_me: failed program was:" >&5
  22506. sed 's/^/| /' conftest.$ac_ext >&5
  22507. eval "$as_ac_var=no"
  22508. fi
  22509. rm -f conftest.err conftest.$ac_objext \
  22510. conftest$ac_exeext conftest.$ac_ext
  22511. fi
  22512. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  22513. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  22514. if test `eval echo '${'$as_ac_var'}'` = yes; then
  22515. cat >>confdefs.h <<_ACEOF
  22516. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  22517. _ACEOF
  22518. fi
  22519. done
  22520. fi
  22521. if test X"$OPT_SSL" != Xoff &&
  22522. test "$OPENSSL_ENABLED" != "1"; then
  22523. { { echo "$as_me:$LINENO: error: OpenSSL libs and/or directories were not found where specified!" >&5
  22524. echo "$as_me: error: OpenSSL libs and/or directories were not found where specified!" >&2;}
  22525. { (exit 1); exit 1; }; }
  22526. fi
  22527. fi
  22528. if test x$ca != xno; then
  22529. CABUNDLE_TRUE=
  22530. CABUNDLE_FALSE='#'
  22531. else
  22532. CABUNDLE_TRUE='#'
  22533. CABUNDLE_FALSE=
  22534. fi
  22535. _cppflags=$CPPFLAGS
  22536. _ldflags=$LDFLAGS
  22537. OPT_ZLIB="/usr/local"
  22538. # Check whether --with-zlib or --without-zlib was given.
  22539. if test "${with_zlib+set}" = set; then
  22540. withval="$with_zlib"
  22541. OPT_ZLIB="$withval"
  22542. fi;
  22543. case "$OPT_ZLIB" in
  22544. no)
  22545. { echo "$as_me:$LINENO: WARNING: zlib disabled" >&5
  22546. echo "$as_me: WARNING: zlib disabled" >&2;} ;;
  22547. *)
  22548. echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
  22549. echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6
  22550. if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
  22551. echo $ECHO_N "(cached) $ECHO_C" >&6
  22552. else
  22553. ac_check_lib_save_LIBS=$LIBS
  22554. LIBS="-lz $LIBS"
  22555. cat >conftest.$ac_ext <<_ACEOF
  22556. /* confdefs.h. */
  22557. _ACEOF
  22558. cat confdefs.h >>conftest.$ac_ext
  22559. cat >>conftest.$ac_ext <<_ACEOF
  22560. /* end confdefs.h. */
  22561. /* Override any gcc2 internal prototype to avoid an error. */
  22562. #ifdef __cplusplus
  22563. extern "C"
  22564. #endif
  22565. /* We use char because int might match the return type of a gcc2
  22566. builtin and then its argument prototype would still apply. */
  22567. char inflateEnd ();
  22568. int
  22569. main ()
  22570. {
  22571. inflateEnd ();
  22572. ;
  22573. return 0;
  22574. }
  22575. _ACEOF
  22576. rm -f conftest.$ac_objext conftest$ac_exeext
  22577. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22578. (eval $ac_link) 2>conftest.er1
  22579. ac_status=$?
  22580. grep -v '^ *+' conftest.er1 >conftest.err
  22581. rm -f conftest.er1
  22582. cat conftest.err >&5
  22583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22584. (exit $ac_status); } &&
  22585. { ac_try='test -z "$ac_c_werror_flag"
  22586. || test ! -s conftest.err'
  22587. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22588. (eval $ac_try) 2>&5
  22589. ac_status=$?
  22590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22591. (exit $ac_status); }; } &&
  22592. { ac_try='test -s conftest$ac_exeext'
  22593. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22594. (eval $ac_try) 2>&5
  22595. ac_status=$?
  22596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22597. (exit $ac_status); }; }; then
  22598. ac_cv_lib_z_inflateEnd=yes
  22599. else
  22600. echo "$as_me: failed program was:" >&5
  22601. sed 's/^/| /' conftest.$ac_ext >&5
  22602. ac_cv_lib_z_inflateEnd=no
  22603. fi
  22604. rm -f conftest.err conftest.$ac_objext \
  22605. conftest$ac_exeext conftest.$ac_ext
  22606. LIBS=$ac_check_lib_save_LIBS
  22607. fi
  22608. echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
  22609. echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6
  22610. if test $ac_cv_lib_z_inflateEnd = yes; then
  22611. HAVE_LIBZ="1"
  22612. else
  22613. if test -d "$OPT_ZLIB"; then
  22614. CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
  22615. LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
  22616. fi
  22617. fi
  22618. if test "${ac_cv_header_zlib_h+set}" = set; then
  22619. echo "$as_me:$LINENO: checking for zlib.h" >&5
  22620. echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
  22621. if test "${ac_cv_header_zlib_h+set}" = set; then
  22622. echo $ECHO_N "(cached) $ECHO_C" >&6
  22623. fi
  22624. echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
  22625. echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
  22626. else
  22627. # Is the header compilable?
  22628. echo "$as_me:$LINENO: checking zlib.h usability" >&5
  22629. echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
  22630. cat >conftest.$ac_ext <<_ACEOF
  22631. /* confdefs.h. */
  22632. _ACEOF
  22633. cat confdefs.h >>conftest.$ac_ext
  22634. cat >>conftest.$ac_ext <<_ACEOF
  22635. /* end confdefs.h. */
  22636. $ac_includes_default
  22637. #include <zlib.h>
  22638. _ACEOF
  22639. rm -f conftest.$ac_objext
  22640. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22641. (eval $ac_compile) 2>conftest.er1
  22642. ac_status=$?
  22643. grep -v '^ *+' conftest.er1 >conftest.err
  22644. rm -f conftest.er1
  22645. cat conftest.err >&5
  22646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22647. (exit $ac_status); } &&
  22648. { ac_try='test -z "$ac_c_werror_flag"
  22649. || test ! -s conftest.err'
  22650. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22651. (eval $ac_try) 2>&5
  22652. ac_status=$?
  22653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22654. (exit $ac_status); }; } &&
  22655. { ac_try='test -s conftest.$ac_objext'
  22656. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22657. (eval $ac_try) 2>&5
  22658. ac_status=$?
  22659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22660. (exit $ac_status); }; }; then
  22661. ac_header_compiler=yes
  22662. else
  22663. echo "$as_me: failed program was:" >&5
  22664. sed 's/^/| /' conftest.$ac_ext >&5
  22665. ac_header_compiler=no
  22666. fi
  22667. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22668. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  22669. echo "${ECHO_T}$ac_header_compiler" >&6
  22670. # Is the header present?
  22671. echo "$as_me:$LINENO: checking zlib.h presence" >&5
  22672. echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
  22673. cat >conftest.$ac_ext <<_ACEOF
  22674. /* confdefs.h. */
  22675. _ACEOF
  22676. cat confdefs.h >>conftest.$ac_ext
  22677. cat >>conftest.$ac_ext <<_ACEOF
  22678. /* end confdefs.h. */
  22679. #include <zlib.h>
  22680. _ACEOF
  22681. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  22682. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  22683. ac_status=$?
  22684. grep -v '^ *+' conftest.er1 >conftest.err
  22685. rm -f conftest.er1
  22686. cat conftest.err >&5
  22687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22688. (exit $ac_status); } >/dev/null; then
  22689. if test -s conftest.err; then
  22690. ac_cpp_err=$ac_c_preproc_warn_flag
  22691. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  22692. else
  22693. ac_cpp_err=
  22694. fi
  22695. else
  22696. ac_cpp_err=yes
  22697. fi
  22698. if test -z "$ac_cpp_err"; then
  22699. ac_header_preproc=yes
  22700. else
  22701. echo "$as_me: failed program was:" >&5
  22702. sed 's/^/| /' conftest.$ac_ext >&5
  22703. ac_header_preproc=no
  22704. fi
  22705. rm -f conftest.err conftest.$ac_ext
  22706. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  22707. echo "${ECHO_T}$ac_header_preproc" >&6
  22708. # So? What about this header?
  22709. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  22710. yes:no: )
  22711. { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  22712. echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  22713. { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
  22714. echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
  22715. ac_header_preproc=yes
  22716. ;;
  22717. no:yes:* )
  22718. { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
  22719. echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
  22720. { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
  22721. echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
  22722. { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
  22723. echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
  22724. { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
  22725. echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
  22726. { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
  22727. echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
  22728. { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
  22729. echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
  22730. (
  22731. cat <<\_ASBOX
  22732. ## ------------------------------- ##
  22733. ## Report this to curl-bug@haxx.se ##
  22734. ## ------------------------------- ##
  22735. _ASBOX
  22736. ) |
  22737. sed "s/^/$as_me: WARNING: /" >&2
  22738. ;;
  22739. esac
  22740. echo "$as_me:$LINENO: checking for zlib.h" >&5
  22741. echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
  22742. if test "${ac_cv_header_zlib_h+set}" = set; then
  22743. echo $ECHO_N "(cached) $ECHO_C" >&6
  22744. else
  22745. ac_cv_header_zlib_h=$ac_header_preproc
  22746. fi
  22747. echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
  22748. echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
  22749. fi
  22750. if test $ac_cv_header_zlib_h = yes; then
  22751. HAVE_ZLIB_H="1"
  22752. if test "$HAVE_LIBZ" != "1"; then
  22753. echo "$as_me:$LINENO: checking for gzread in -lz" >&5
  22754. echo $ECHO_N "checking for gzread in -lz... $ECHO_C" >&6
  22755. if test "${ac_cv_lib_z_gzread+set}" = set; then
  22756. echo $ECHO_N "(cached) $ECHO_C" >&6
  22757. else
  22758. ac_check_lib_save_LIBS=$LIBS
  22759. LIBS="-lz $LIBS"
  22760. cat >conftest.$ac_ext <<_ACEOF
  22761. /* confdefs.h. */
  22762. _ACEOF
  22763. cat confdefs.h >>conftest.$ac_ext
  22764. cat >>conftest.$ac_ext <<_ACEOF
  22765. /* end confdefs.h. */
  22766. /* Override any gcc2 internal prototype to avoid an error. */
  22767. #ifdef __cplusplus
  22768. extern "C"
  22769. #endif
  22770. /* We use char because int might match the return type of a gcc2
  22771. builtin and then its argument prototype would still apply. */
  22772. char gzread ();
  22773. int
  22774. main ()
  22775. {
  22776. gzread ();
  22777. ;
  22778. return 0;
  22779. }
  22780. _ACEOF
  22781. rm -f conftest.$ac_objext conftest$ac_exeext
  22782. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22783. (eval $ac_link) 2>conftest.er1
  22784. ac_status=$?
  22785. grep -v '^ *+' conftest.er1 >conftest.err
  22786. rm -f conftest.er1
  22787. cat conftest.err >&5
  22788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22789. (exit $ac_status); } &&
  22790. { ac_try='test -z "$ac_c_werror_flag"
  22791. || test ! -s conftest.err'
  22792. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22793. (eval $ac_try) 2>&5
  22794. ac_status=$?
  22795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22796. (exit $ac_status); }; } &&
  22797. { ac_try='test -s conftest$ac_exeext'
  22798. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22799. (eval $ac_try) 2>&5
  22800. ac_status=$?
  22801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22802. (exit $ac_status); }; }; then
  22803. ac_cv_lib_z_gzread=yes
  22804. else
  22805. echo "$as_me: failed program was:" >&5
  22806. sed 's/^/| /' conftest.$ac_ext >&5
  22807. ac_cv_lib_z_gzread=no
  22808. fi
  22809. rm -f conftest.err conftest.$ac_objext \
  22810. conftest$ac_exeext conftest.$ac_ext
  22811. LIBS=$ac_check_lib_save_LIBS
  22812. fi
  22813. echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzread" >&5
  22814. echo "${ECHO_T}$ac_cv_lib_z_gzread" >&6
  22815. if test $ac_cv_lib_z_gzread = yes; then
  22816. HAVE_LIBZ="1"
  22817. else
  22818. CPPFLAGS=$_cppflags
  22819. LDFLAGS=$_ldflags
  22820. fi
  22821. fi
  22822. else
  22823. CPPFLAGS=$_cppflags
  22824. LDFLAGS=$_ldflags
  22825. fi
  22826. if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
  22827. then
  22828. { echo "$as_me:$LINENO: WARNING: configure found only the libz lib, not the header file!" >&5
  22829. echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
  22830. elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
  22831. then
  22832. { echo "$as_me:$LINENO: WARNING: configure found only the libz header file, not the lib!" >&5
  22833. echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
  22834. elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
  22835. then
  22836. cat >>confdefs.h <<\_ACEOF
  22837. #define HAVE_ZLIB_H 1
  22838. _ACEOF
  22839. cat >>confdefs.h <<\_ACEOF
  22840. #define HAVE_LIBZ 1
  22841. _ACEOF
  22842. LIBS="$LIBS -lz"
  22843. AMFIXLIB="1"
  22844. { echo "$as_me:$LINENO: found both libz and libz.h header" >&5
  22845. echo "$as_me: found both libz and libz.h header" >&6;}
  22846. fi
  22847. ;;
  22848. esac
  22849. if test x"$AMFIXLIB" = x1; then
  22850. HAVE_LIBZ_TRUE=
  22851. HAVE_LIBZ_FALSE='#'
  22852. else
  22853. HAVE_LIBZ_TRUE='#'
  22854. HAVE_LIBZ_FALSE=
  22855. fi
  22856. OPT_THREAD=on
  22857. echo "$as_me:$LINENO: checking AIX 4.3 or later" >&5
  22858. echo $ECHO_N "checking AIX 4.3 or later... $ECHO_C" >&6
  22859. cat >conftest.$ac_ext <<_ACEOF
  22860. #if defined(_AIX) && defined(_AIX43)
  22861. printf("just fine");
  22862. #else
  22863. #error "this is not AIX 4.3 or later"
  22864. #endif
  22865. _ACEOF
  22866. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  22867. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  22868. ac_status=$?
  22869. grep -v '^ *+' conftest.er1 >conftest.err
  22870. rm -f conftest.er1
  22871. cat conftest.err >&5
  22872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22873. (exit $ac_status); } >/dev/null; then
  22874. if test -s conftest.err; then
  22875. ac_cpp_err=$ac_c_preproc_warn_flag
  22876. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  22877. else
  22878. ac_cpp_err=
  22879. fi
  22880. else
  22881. ac_cpp_err=yes
  22882. fi
  22883. if test -z "$ac_cpp_err"; then
  22884. echo "$as_me:$LINENO: result: yes" >&5
  22885. echo "${ECHO_T}yes" >&6
  22886. OPT_THREAD=off
  22887. else
  22888. echo "$as_me: failed program was:" >&5
  22889. sed 's/^/| /' conftest.$ac_ext >&5
  22890. echo "$as_me:$LINENO: result: no" >&5
  22891. echo "${ECHO_T}no" >&6
  22892. fi
  22893. rm -f conftest.err conftest.$ac_ext
  22894. # Check whether --enable-thread or --disable-thread was given.
  22895. if test "${enable_thread+set}" = set; then
  22896. enableval="$enable_thread"
  22897. case "$enableval" in
  22898. no)
  22899. OPT_THREAD=off
  22900. { echo "$as_me:$LINENO: WARNING: libcurl will not get built using thread-safe functions" >&5
  22901. echo "$as_me: WARNING: libcurl will not get built using thread-safe functions" >&2;}
  22902. ;;
  22903. *)
  22904. ;;
  22905. esac
  22906. fi;
  22907. if test X"$OPT_THREAD" = Xoff
  22908. then
  22909. cat >>confdefs.h <<\_ACEOF
  22910. #define DISABLED_THREADSAFE 1
  22911. _ACEOF
  22912. else
  22913. if test "$ipv6" != "yes"; then
  22914. for ac_func in gethostbyname_r
  22915. do
  22916. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  22917. echo "$as_me:$LINENO: checking for $ac_func" >&5
  22918. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  22919. if eval "test \"\${$as_ac_var+set}\" = set"; then
  22920. echo $ECHO_N "(cached) $ECHO_C" >&6
  22921. else
  22922. cat >conftest.$ac_ext <<_ACEOF
  22923. /* confdefs.h. */
  22924. _ACEOF
  22925. cat confdefs.h >>conftest.$ac_ext
  22926. cat >>conftest.$ac_ext <<_ACEOF
  22927. /* end confdefs.h. */
  22928. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  22929. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22930. #define $ac_func innocuous_$ac_func
  22931. /* System header to define __stub macros and hopefully few prototypes,
  22932. which can conflict with char $ac_func (); below.
  22933. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22934. <limits.h> exists even on freestanding compilers. */
  22935. #ifdef __STDC__
  22936. # include <limits.h>
  22937. #else
  22938. # include <assert.h>
  22939. #endif
  22940. #undef $ac_func
  22941. /* Override any gcc2 internal prototype to avoid an error. */
  22942. #ifdef __cplusplus
  22943. extern "C"
  22944. {
  22945. #endif
  22946. /* We use char because int might match the return type of a gcc2
  22947. builtin and then its argument prototype would still apply. */
  22948. char $ac_func ();
  22949. /* The GNU C library defines this for functions which it implements
  22950. to always fail with ENOSYS. Some functions are actually named
  22951. something starting with __ and the normal name is an alias. */
  22952. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  22953. choke me
  22954. #else
  22955. char (*f) () = $ac_func;
  22956. #endif
  22957. #ifdef __cplusplus
  22958. }
  22959. #endif
  22960. int
  22961. main ()
  22962. {
  22963. return f != $ac_func;
  22964. ;
  22965. return 0;
  22966. }
  22967. _ACEOF
  22968. rm -f conftest.$ac_objext conftest$ac_exeext
  22969. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22970. (eval $ac_link) 2>conftest.er1
  22971. ac_status=$?
  22972. grep -v '^ *+' conftest.er1 >conftest.err
  22973. rm -f conftest.er1
  22974. cat conftest.err >&5
  22975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22976. (exit $ac_status); } &&
  22977. { ac_try='test -z "$ac_c_werror_flag"
  22978. || test ! -s conftest.err'
  22979. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22980. (eval $ac_try) 2>&5
  22981. ac_status=$?
  22982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22983. (exit $ac_status); }; } &&
  22984. { ac_try='test -s conftest$ac_exeext'
  22985. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22986. (eval $ac_try) 2>&5
  22987. ac_status=$?
  22988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22989. (exit $ac_status); }; }; then
  22990. eval "$as_ac_var=yes"
  22991. else
  22992. echo "$as_me: failed program was:" >&5
  22993. sed 's/^/| /' conftest.$ac_ext >&5
  22994. eval "$as_ac_var=no"
  22995. fi
  22996. rm -f conftest.err conftest.$ac_objext \
  22997. conftest$ac_exeext conftest.$ac_ext
  22998. fi
  22999. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  23000. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  23001. if test `eval echo '${'$as_ac_var'}'` = yes; then
  23002. cat >>confdefs.h <<_ACEOF
  23003. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  23004. _ACEOF
  23005. echo "$as_me:$LINENO: checking if gethostbyname_r takes 3 arguments" >&5
  23006. echo $ECHO_N "checking if gethostbyname_r takes 3 arguments... $ECHO_C" >&6
  23007. cat >conftest.$ac_ext <<_ACEOF
  23008. /* confdefs.h. */
  23009. _ACEOF
  23010. cat confdefs.h >>conftest.$ac_ext
  23011. cat >>conftest.$ac_ext <<_ACEOF
  23012. /* end confdefs.h. */
  23013. #include <string.h>
  23014. #include <sys/types.h>
  23015. #include <netdb.h>
  23016. #undef NULL
  23017. #define NULL (void *)0
  23018. int
  23019. gethostbyname_r(const char *, struct hostent *, struct hostent_data *);
  23020. int
  23021. main ()
  23022. {
  23023. struct hostent_data data;
  23024. gethostbyname_r(NULL, NULL, NULL);
  23025. ;
  23026. return 0;
  23027. }
  23028. _ACEOF
  23029. rm -f conftest.$ac_objext
  23030. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23031. (eval $ac_compile) 2>conftest.er1
  23032. ac_status=$?
  23033. grep -v '^ *+' conftest.er1 >conftest.err
  23034. rm -f conftest.er1
  23035. cat conftest.err >&5
  23036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23037. (exit $ac_status); } &&
  23038. { ac_try='test -z "$ac_c_werror_flag"
  23039. || test ! -s conftest.err'
  23040. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23041. (eval $ac_try) 2>&5
  23042. ac_status=$?
  23043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23044. (exit $ac_status); }; } &&
  23045. { ac_try='test -s conftest.$ac_objext'
  23046. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23047. (eval $ac_try) 2>&5
  23048. ac_status=$?
  23049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23050. (exit $ac_status); }; }; then
  23051. echo "$as_me:$LINENO: result: yes" >&5
  23052. echo "${ECHO_T}yes" >&6
  23053. cat >>confdefs.h <<\_ACEOF
  23054. #define HAVE_GETHOSTBYNAME_R_3 1
  23055. _ACEOF
  23056. ac_cv_gethostbyname_args=3
  23057. else
  23058. echo "$as_me: failed program was:" >&5
  23059. sed 's/^/| /' conftest.$ac_ext >&5
  23060. echo "$as_me:$LINENO: result: no" >&5
  23061. echo "${ECHO_T}no" >&6
  23062. echo "$as_me:$LINENO: checking if gethostbyname_r with -D_REENTRANT takes 3 arguments" >&5
  23063. echo $ECHO_N "checking if gethostbyname_r with -D_REENTRANT takes 3 arguments... $ECHO_C" >&6
  23064. cat >conftest.$ac_ext <<_ACEOF
  23065. /* confdefs.h. */
  23066. _ACEOF
  23067. cat confdefs.h >>conftest.$ac_ext
  23068. cat >>conftest.$ac_ext <<_ACEOF
  23069. /* end confdefs.h. */
  23070. #define _REENTRANT
  23071. #include <string.h>
  23072. #include <sys/types.h>
  23073. #include <netdb.h>
  23074. #undef NULL
  23075. #define NULL (void *)0
  23076. int
  23077. gethostbyname_r(const char *,struct hostent *, struct hostent_data *);
  23078. int
  23079. main ()
  23080. {
  23081. struct hostent_data data;
  23082. gethostbyname_r(NULL, NULL, NULL);
  23083. ;
  23084. return 0;
  23085. }
  23086. _ACEOF
  23087. rm -f conftest.$ac_objext
  23088. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23089. (eval $ac_compile) 2>conftest.er1
  23090. ac_status=$?
  23091. grep -v '^ *+' conftest.er1 >conftest.err
  23092. rm -f conftest.er1
  23093. cat conftest.err >&5
  23094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23095. (exit $ac_status); } &&
  23096. { ac_try='test -z "$ac_c_werror_flag"
  23097. || test ! -s conftest.err'
  23098. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23099. (eval $ac_try) 2>&5
  23100. ac_status=$?
  23101. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23102. (exit $ac_status); }; } &&
  23103. { ac_try='test -s conftest.$ac_objext'
  23104. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23105. (eval $ac_try) 2>&5
  23106. ac_status=$?
  23107. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23108. (exit $ac_status); }; }; then
  23109. echo "$as_me:$LINENO: result: yes" >&5
  23110. echo "${ECHO_T}yes" >&6
  23111. cat >>confdefs.h <<\_ACEOF
  23112. #define HAVE_GETHOSTBYNAME_R_3 1
  23113. _ACEOF
  23114. cat >>confdefs.h <<\_ACEOF
  23115. #define NEED_REENTRANT 1
  23116. _ACEOF
  23117. ac_cv_gethostbyname_args=3
  23118. else
  23119. echo "$as_me: failed program was:" >&5
  23120. sed 's/^/| /' conftest.$ac_ext >&5
  23121. echo "$as_me:$LINENO: result: no" >&5
  23122. echo "${ECHO_T}no" >&6
  23123. echo "$as_me:$LINENO: checking if gethostbyname_r takes 5 arguments" >&5
  23124. echo $ECHO_N "checking if gethostbyname_r takes 5 arguments... $ECHO_C" >&6
  23125. cat >conftest.$ac_ext <<_ACEOF
  23126. /* confdefs.h. */
  23127. _ACEOF
  23128. cat confdefs.h >>conftest.$ac_ext
  23129. cat >>conftest.$ac_ext <<_ACEOF
  23130. /* end confdefs.h. */
  23131. #include <sys/types.h>
  23132. #include <netdb.h>
  23133. #undef NULL
  23134. #define NULL (void *)0
  23135. struct hostent *
  23136. gethostbyname_r(const char *, struct hostent *, char *, int, int *);
  23137. int
  23138. main ()
  23139. {
  23140. gethostbyname_r(NULL, NULL, NULL, 0, NULL);
  23141. ;
  23142. return 0;
  23143. }
  23144. _ACEOF
  23145. rm -f conftest.$ac_objext
  23146. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23147. (eval $ac_compile) 2>conftest.er1
  23148. ac_status=$?
  23149. grep -v '^ *+' conftest.er1 >conftest.err
  23150. rm -f conftest.er1
  23151. cat conftest.err >&5
  23152. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23153. (exit $ac_status); } &&
  23154. { ac_try='test -z "$ac_c_werror_flag"
  23155. || test ! -s conftest.err'
  23156. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23157. (eval $ac_try) 2>&5
  23158. ac_status=$?
  23159. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23160. (exit $ac_status); }; } &&
  23161. { ac_try='test -s conftest.$ac_objext'
  23162. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23163. (eval $ac_try) 2>&5
  23164. ac_status=$?
  23165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23166. (exit $ac_status); }; }; then
  23167. echo "$as_me:$LINENO: result: yes" >&5
  23168. echo "${ECHO_T}yes" >&6
  23169. cat >>confdefs.h <<\_ACEOF
  23170. #define HAVE_GETHOSTBYNAME_R_5 1
  23171. _ACEOF
  23172. ac_cv_gethostbyname_args=5
  23173. else
  23174. echo "$as_me: failed program was:" >&5
  23175. sed 's/^/| /' conftest.$ac_ext >&5
  23176. echo "$as_me:$LINENO: result: no" >&5
  23177. echo "${ECHO_T}no" >&6
  23178. echo "$as_me:$LINENO: checking if gethostbyname_r takes 6 arguments" >&5
  23179. echo $ECHO_N "checking if gethostbyname_r takes 6 arguments... $ECHO_C" >&6
  23180. cat >conftest.$ac_ext <<_ACEOF
  23181. /* confdefs.h. */
  23182. _ACEOF
  23183. cat confdefs.h >>conftest.$ac_ext
  23184. cat >>conftest.$ac_ext <<_ACEOF
  23185. /* end confdefs.h. */
  23186. #include <sys/types.h>
  23187. #include <netdb.h>
  23188. #undef NULL
  23189. #define NULL (void *)0
  23190. int
  23191. gethostbyname_r(const char *, struct hostent *, char *, size_t,
  23192. struct hostent **, int *);
  23193. int
  23194. main ()
  23195. {
  23196. gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL);
  23197. ;
  23198. return 0;
  23199. }
  23200. _ACEOF
  23201. rm -f conftest.$ac_objext
  23202. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23203. (eval $ac_compile) 2>conftest.er1
  23204. ac_status=$?
  23205. grep -v '^ *+' conftest.er1 >conftest.err
  23206. rm -f conftest.er1
  23207. cat conftest.err >&5
  23208. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23209. (exit $ac_status); } &&
  23210. { ac_try='test -z "$ac_c_werror_flag"
  23211. || test ! -s conftest.err'
  23212. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23213. (eval $ac_try) 2>&5
  23214. ac_status=$?
  23215. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23216. (exit $ac_status); }; } &&
  23217. { ac_try='test -s conftest.$ac_objext'
  23218. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23219. (eval $ac_try) 2>&5
  23220. ac_status=$?
  23221. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23222. (exit $ac_status); }; }; then
  23223. echo "$as_me:$LINENO: result: yes" >&5
  23224. echo "${ECHO_T}yes" >&6
  23225. cat >>confdefs.h <<\_ACEOF
  23226. #define HAVE_GETHOSTBYNAME_R_6 1
  23227. _ACEOF
  23228. ac_cv_gethostbyname_args=6
  23229. else
  23230. echo "$as_me: failed program was:" >&5
  23231. sed 's/^/| /' conftest.$ac_ext >&5
  23232. echo "$as_me:$LINENO: result: no" >&5
  23233. echo "${ECHO_T}no" >&6
  23234. have_missing_r_funcs="$have_missing_r_funcs gethostbyname_r"
  23235. fi
  23236. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23237. fi
  23238. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23239. fi
  23240. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23241. fi
  23242. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23243. fi
  23244. done
  23245. if test "$ac_cv_func_gethostbyname_r" = "yes"; then
  23246. if test "$ac_cv_gethostbyname_args" = "0"; then
  23247. { { echo "$as_me:$LINENO: error: couldn't figure out how to use gethostbyname_r()" >&5
  23248. echo "$as_me: error: couldn't figure out how to use gethostbyname_r()" >&2;}
  23249. { (exit 1); exit 1; }; }
  23250. fi
  23251. fi
  23252. for ac_func in gethostbyaddr_r
  23253. do
  23254. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  23255. echo "$as_me:$LINENO: checking for $ac_func" >&5
  23256. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  23257. if eval "test \"\${$as_ac_var+set}\" = set"; then
  23258. echo $ECHO_N "(cached) $ECHO_C" >&6
  23259. else
  23260. cat >conftest.$ac_ext <<_ACEOF
  23261. /* confdefs.h. */
  23262. _ACEOF
  23263. cat confdefs.h >>conftest.$ac_ext
  23264. cat >>conftest.$ac_ext <<_ACEOF
  23265. /* end confdefs.h. */
  23266. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  23267. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  23268. #define $ac_func innocuous_$ac_func
  23269. /* System header to define __stub macros and hopefully few prototypes,
  23270. which can conflict with char $ac_func (); below.
  23271. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23272. <limits.h> exists even on freestanding compilers. */
  23273. #ifdef __STDC__
  23274. # include <limits.h>
  23275. #else
  23276. # include <assert.h>
  23277. #endif
  23278. #undef $ac_func
  23279. /* Override any gcc2 internal prototype to avoid an error. */
  23280. #ifdef __cplusplus
  23281. extern "C"
  23282. {
  23283. #endif
  23284. /* We use char because int might match the return type of a gcc2
  23285. builtin and then its argument prototype would still apply. */
  23286. char $ac_func ();
  23287. /* The GNU C library defines this for functions which it implements
  23288. to always fail with ENOSYS. Some functions are actually named
  23289. something starting with __ and the normal name is an alias. */
  23290. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  23291. choke me
  23292. #else
  23293. char (*f) () = $ac_func;
  23294. #endif
  23295. #ifdef __cplusplus
  23296. }
  23297. #endif
  23298. int
  23299. main ()
  23300. {
  23301. return f != $ac_func;
  23302. ;
  23303. return 0;
  23304. }
  23305. _ACEOF
  23306. rm -f conftest.$ac_objext conftest$ac_exeext
  23307. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23308. (eval $ac_link) 2>conftest.er1
  23309. ac_status=$?
  23310. grep -v '^ *+' conftest.er1 >conftest.err
  23311. rm -f conftest.er1
  23312. cat conftest.err >&5
  23313. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23314. (exit $ac_status); } &&
  23315. { ac_try='test -z "$ac_c_werror_flag"
  23316. || test ! -s conftest.err'
  23317. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23318. (eval $ac_try) 2>&5
  23319. ac_status=$?
  23320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23321. (exit $ac_status); }; } &&
  23322. { ac_try='test -s conftest$ac_exeext'
  23323. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23324. (eval $ac_try) 2>&5
  23325. ac_status=$?
  23326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23327. (exit $ac_status); }; }; then
  23328. eval "$as_ac_var=yes"
  23329. else
  23330. echo "$as_me: failed program was:" >&5
  23331. sed 's/^/| /' conftest.$ac_ext >&5
  23332. eval "$as_ac_var=no"
  23333. fi
  23334. rm -f conftest.err conftest.$ac_objext \
  23335. conftest$ac_exeext conftest.$ac_ext
  23336. fi
  23337. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  23338. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  23339. if test `eval echo '${'$as_ac_var'}'` = yes; then
  23340. cat >>confdefs.h <<_ACEOF
  23341. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  23342. _ACEOF
  23343. echo "$as_me:$LINENO: checking if gethostbyaddr_r takes 5 arguments" >&5
  23344. echo $ECHO_N "checking if gethostbyaddr_r takes 5 arguments... $ECHO_C" >&6
  23345. cat >conftest.$ac_ext <<_ACEOF
  23346. /* confdefs.h. */
  23347. _ACEOF
  23348. cat confdefs.h >>conftest.$ac_ext
  23349. cat >>conftest.$ac_ext <<_ACEOF
  23350. /* end confdefs.h. */
  23351. #include <sys/types.h>
  23352. #include <netdb.h>
  23353. int
  23354. main ()
  23355. {
  23356. char * address;
  23357. int length;
  23358. int type;
  23359. struct hostent h;
  23360. struct hostent_data hdata;
  23361. int rc;
  23362. rc = gethostbyaddr_r(address, length, type, &h, &hdata);
  23363. ;
  23364. return 0;
  23365. }
  23366. _ACEOF
  23367. rm -f conftest.$ac_objext
  23368. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23369. (eval $ac_compile) 2>conftest.er1
  23370. ac_status=$?
  23371. grep -v '^ *+' conftest.er1 >conftest.err
  23372. rm -f conftest.er1
  23373. cat conftest.err >&5
  23374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23375. (exit $ac_status); } &&
  23376. { ac_try='test -z "$ac_c_werror_flag"
  23377. || test ! -s conftest.err'
  23378. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23379. (eval $ac_try) 2>&5
  23380. ac_status=$?
  23381. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23382. (exit $ac_status); }; } &&
  23383. { ac_try='test -s conftest.$ac_objext'
  23384. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23385. (eval $ac_try) 2>&5
  23386. ac_status=$?
  23387. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23388. (exit $ac_status); }; }; then
  23389. echo "$as_me:$LINENO: result: yes" >&5
  23390. echo "${ECHO_T}yes" >&6
  23391. cat >>confdefs.h <<\_ACEOF
  23392. #define HAVE_GETHOSTBYADDR_R_5 1
  23393. _ACEOF
  23394. ac_cv_gethostbyaddr_args=5
  23395. else
  23396. echo "$as_me: failed program was:" >&5
  23397. sed 's/^/| /' conftest.$ac_ext >&5
  23398. echo "$as_me:$LINENO: result: no" >&5
  23399. echo "${ECHO_T}no" >&6
  23400. echo "$as_me:$LINENO: checking if gethostbyaddr_r with -D_REENTRANT takes 5 arguments" >&5
  23401. echo $ECHO_N "checking if gethostbyaddr_r with -D_REENTRANT takes 5 arguments... $ECHO_C" >&6
  23402. cat >conftest.$ac_ext <<_ACEOF
  23403. /* confdefs.h. */
  23404. _ACEOF
  23405. cat confdefs.h >>conftest.$ac_ext
  23406. cat >>conftest.$ac_ext <<_ACEOF
  23407. /* end confdefs.h. */
  23408. #define _REENTRANT
  23409. #include <sys/types.h>
  23410. #include <netdb.h>
  23411. int
  23412. main ()
  23413. {
  23414. char * address;
  23415. int length;
  23416. int type;
  23417. struct hostent h;
  23418. struct hostent_data hdata;
  23419. int rc;
  23420. rc = gethostbyaddr_r(address, length, type, &h, &hdata);
  23421. ;
  23422. return 0;
  23423. }
  23424. _ACEOF
  23425. rm -f conftest.$ac_objext
  23426. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23427. (eval $ac_compile) 2>conftest.er1
  23428. ac_status=$?
  23429. grep -v '^ *+' conftest.er1 >conftest.err
  23430. rm -f conftest.er1
  23431. cat conftest.err >&5
  23432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23433. (exit $ac_status); } &&
  23434. { ac_try='test -z "$ac_c_werror_flag"
  23435. || test ! -s conftest.err'
  23436. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23437. (eval $ac_try) 2>&5
  23438. ac_status=$?
  23439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23440. (exit $ac_status); }; } &&
  23441. { ac_try='test -s conftest.$ac_objext'
  23442. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23443. (eval $ac_try) 2>&5
  23444. ac_status=$?
  23445. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23446. (exit $ac_status); }; }; then
  23447. echo "$as_me:$LINENO: result: yes" >&5
  23448. echo "${ECHO_T}yes" >&6
  23449. cat >>confdefs.h <<\_ACEOF
  23450. #define HAVE_GETHOSTBYADDR_R_5 1
  23451. _ACEOF
  23452. cat >>confdefs.h <<\_ACEOF
  23453. #define NEED_REENTRANT 1
  23454. _ACEOF
  23455. ac_cv_gethostbyaddr_args=5
  23456. else
  23457. echo "$as_me: failed program was:" >&5
  23458. sed 's/^/| /' conftest.$ac_ext >&5
  23459. echo "$as_me:$LINENO: result: no" >&5
  23460. echo "${ECHO_T}no" >&6
  23461. echo "$as_me:$LINENO: checking if gethostbyaddr_r takes 7 arguments" >&5
  23462. echo $ECHO_N "checking if gethostbyaddr_r takes 7 arguments... $ECHO_C" >&6
  23463. cat >conftest.$ac_ext <<_ACEOF
  23464. /* confdefs.h. */
  23465. _ACEOF
  23466. cat confdefs.h >>conftest.$ac_ext
  23467. cat >>conftest.$ac_ext <<_ACEOF
  23468. /* end confdefs.h. */
  23469. #include <sys/types.h>
  23470. #include <netdb.h>
  23471. int
  23472. main ()
  23473. {
  23474. char * address;
  23475. int length;
  23476. int type;
  23477. struct hostent h;
  23478. char buffer[8192];
  23479. int h_errnop;
  23480. struct hostent * hp;
  23481. hp = gethostbyaddr_r(address, length, type, &h,
  23482. buffer, 8192, &h_errnop);
  23483. ;
  23484. return 0;
  23485. }
  23486. _ACEOF
  23487. rm -f conftest.$ac_objext
  23488. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23489. (eval $ac_compile) 2>conftest.er1
  23490. ac_status=$?
  23491. grep -v '^ *+' conftest.er1 >conftest.err
  23492. rm -f conftest.er1
  23493. cat conftest.err >&5
  23494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23495. (exit $ac_status); } &&
  23496. { ac_try='test -z "$ac_c_werror_flag"
  23497. || test ! -s conftest.err'
  23498. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23499. (eval $ac_try) 2>&5
  23500. ac_status=$?
  23501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23502. (exit $ac_status); }; } &&
  23503. { ac_try='test -s conftest.$ac_objext'
  23504. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23505. (eval $ac_try) 2>&5
  23506. ac_status=$?
  23507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23508. (exit $ac_status); }; }; then
  23509. echo "$as_me:$LINENO: result: yes" >&5
  23510. echo "${ECHO_T}yes" >&6
  23511. cat >>confdefs.h <<\_ACEOF
  23512. #define HAVE_GETHOSTBYADDR_R_7 1
  23513. _ACEOF
  23514. ac_cv_gethostbyaddr_args=7
  23515. else
  23516. echo "$as_me: failed program was:" >&5
  23517. sed 's/^/| /' conftest.$ac_ext >&5
  23518. echo "$as_me:$LINENO: result: no" >&5
  23519. echo "${ECHO_T}no" >&6
  23520. echo "$as_me:$LINENO: checking if gethostbyaddr_r takes 8 arguments" >&5
  23521. echo $ECHO_N "checking if gethostbyaddr_r takes 8 arguments... $ECHO_C" >&6
  23522. cat >conftest.$ac_ext <<_ACEOF
  23523. /* confdefs.h. */
  23524. _ACEOF
  23525. cat confdefs.h >>conftest.$ac_ext
  23526. cat >>conftest.$ac_ext <<_ACEOF
  23527. /* end confdefs.h. */
  23528. #include <sys/types.h>
  23529. #include <netdb.h>
  23530. int
  23531. main ()
  23532. {
  23533. char * address;
  23534. int length;
  23535. int type;
  23536. struct hostent h;
  23537. char buffer[8192];
  23538. int h_errnop;
  23539. struct hostent * hp;
  23540. int rc;
  23541. rc = gethostbyaddr_r(address, length, type, &h,
  23542. buffer, 8192, &hp, &h_errnop);
  23543. ;
  23544. return 0;
  23545. }
  23546. _ACEOF
  23547. rm -f conftest.$ac_objext
  23548. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23549. (eval $ac_compile) 2>conftest.er1
  23550. ac_status=$?
  23551. grep -v '^ *+' conftest.er1 >conftest.err
  23552. rm -f conftest.er1
  23553. cat conftest.err >&5
  23554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23555. (exit $ac_status); } &&
  23556. { ac_try='test -z "$ac_c_werror_flag"
  23557. || test ! -s conftest.err'
  23558. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23559. (eval $ac_try) 2>&5
  23560. ac_status=$?
  23561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23562. (exit $ac_status); }; } &&
  23563. { ac_try='test -s conftest.$ac_objext'
  23564. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23565. (eval $ac_try) 2>&5
  23566. ac_status=$?
  23567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23568. (exit $ac_status); }; }; then
  23569. echo "$as_me:$LINENO: result: yes" >&5
  23570. echo "${ECHO_T}yes" >&6
  23571. cat >>confdefs.h <<\_ACEOF
  23572. #define HAVE_GETHOSTBYADDR_R_8 1
  23573. _ACEOF
  23574. ac_cv_gethostbyaddr_args=8
  23575. else
  23576. echo "$as_me: failed program was:" >&5
  23577. sed 's/^/| /' conftest.$ac_ext >&5
  23578. echo "$as_me:$LINENO: result: no" >&5
  23579. echo "${ECHO_T}no" >&6
  23580. have_missing_r_funcs="$have_missing_r_funcs gethostbyaddr_r"
  23581. fi
  23582. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23583. fi
  23584. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23585. fi
  23586. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23587. fi
  23588. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23589. fi
  23590. done
  23591. fi
  23592. for ac_func in inet_ntoa_r
  23593. do
  23594. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  23595. echo "$as_me:$LINENO: checking for $ac_func" >&5
  23596. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  23597. if eval "test \"\${$as_ac_var+set}\" = set"; then
  23598. echo $ECHO_N "(cached) $ECHO_C" >&6
  23599. else
  23600. cat >conftest.$ac_ext <<_ACEOF
  23601. /* confdefs.h. */
  23602. _ACEOF
  23603. cat confdefs.h >>conftest.$ac_ext
  23604. cat >>conftest.$ac_ext <<_ACEOF
  23605. /* end confdefs.h. */
  23606. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  23607. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  23608. #define $ac_func innocuous_$ac_func
  23609. /* System header to define __stub macros and hopefully few prototypes,
  23610. which can conflict with char $ac_func (); below.
  23611. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23612. <limits.h> exists even on freestanding compilers. */
  23613. #ifdef __STDC__
  23614. # include <limits.h>
  23615. #else
  23616. # include <assert.h>
  23617. #endif
  23618. #undef $ac_func
  23619. /* Override any gcc2 internal prototype to avoid an error. */
  23620. #ifdef __cplusplus
  23621. extern "C"
  23622. {
  23623. #endif
  23624. /* We use char because int might match the return type of a gcc2
  23625. builtin and then its argument prototype would still apply. */
  23626. char $ac_func ();
  23627. /* The GNU C library defines this for functions which it implements
  23628. to always fail with ENOSYS. Some functions are actually named
  23629. something starting with __ and the normal name is an alias. */
  23630. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  23631. choke me
  23632. #else
  23633. char (*f) () = $ac_func;
  23634. #endif
  23635. #ifdef __cplusplus
  23636. }
  23637. #endif
  23638. int
  23639. main ()
  23640. {
  23641. return f != $ac_func;
  23642. ;
  23643. return 0;
  23644. }
  23645. _ACEOF
  23646. rm -f conftest.$ac_objext conftest$ac_exeext
  23647. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23648. (eval $ac_link) 2>conftest.er1
  23649. ac_status=$?
  23650. grep -v '^ *+' conftest.er1 >conftest.err
  23651. rm -f conftest.er1
  23652. cat conftest.err >&5
  23653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23654. (exit $ac_status); } &&
  23655. { ac_try='test -z "$ac_c_werror_flag"
  23656. || test ! -s conftest.err'
  23657. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23658. (eval $ac_try) 2>&5
  23659. ac_status=$?
  23660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23661. (exit $ac_status); }; } &&
  23662. { ac_try='test -s conftest$ac_exeext'
  23663. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23664. (eval $ac_try) 2>&5
  23665. ac_status=$?
  23666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23667. (exit $ac_status); }; }; then
  23668. eval "$as_ac_var=yes"
  23669. else
  23670. echo "$as_me: failed program was:" >&5
  23671. sed 's/^/| /' conftest.$ac_ext >&5
  23672. eval "$as_ac_var=no"
  23673. fi
  23674. rm -f conftest.err conftest.$ac_objext \
  23675. conftest$ac_exeext conftest.$ac_ext
  23676. fi
  23677. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  23678. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  23679. if test `eval echo '${'$as_ac_var'}'` = yes; then
  23680. cat >>confdefs.h <<_ACEOF
  23681. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  23682. _ACEOF
  23683. echo "$as_me:$LINENO: checking whether inet_ntoa_r is declared" >&5
  23684. echo $ECHO_N "checking whether inet_ntoa_r is declared... $ECHO_C" >&6
  23685. cat >conftest.$ac_ext <<_ACEOF
  23686. /* confdefs.h. */
  23687. _ACEOF
  23688. cat confdefs.h >>conftest.$ac_ext
  23689. cat >>conftest.$ac_ext <<_ACEOF
  23690. /* end confdefs.h. */
  23691. #include <arpa/inet.h>
  23692. _ACEOF
  23693. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  23694. $EGREP "inet_ntoa_r" >/dev/null 2>&1; then
  23695. cat >>confdefs.h <<\_ACEOF
  23696. #define HAVE_INET_NTOA_R_DECL 1
  23697. _ACEOF
  23698. echo "$as_me:$LINENO: result: yes" >&5
  23699. echo "${ECHO_T}yes" >&6
  23700. else
  23701. echo "$as_me:$LINENO: result: no" >&5
  23702. echo "${ECHO_T}no" >&6
  23703. echo "$as_me:$LINENO: checking whether inet_ntoa_r with -D_REENTRANT is declared" >&5
  23704. echo $ECHO_N "checking whether inet_ntoa_r with -D_REENTRANT is declared... $ECHO_C" >&6
  23705. cat >conftest.$ac_ext <<_ACEOF
  23706. /* confdefs.h. */
  23707. _ACEOF
  23708. cat confdefs.h >>conftest.$ac_ext
  23709. cat >>conftest.$ac_ext <<_ACEOF
  23710. /* end confdefs.h. */
  23711. #define _REENTRANT
  23712. #include <arpa/inet.h>
  23713. _ACEOF
  23714. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  23715. $EGREP "inet_ntoa_r" >/dev/null 2>&1; then
  23716. cat >>confdefs.h <<\_ACEOF
  23717. #define HAVE_INET_NTOA_R_DECL 1
  23718. _ACEOF
  23719. cat >>confdefs.h <<\_ACEOF
  23720. #define NEED_REENTRANT 1
  23721. _ACEOF
  23722. echo "$as_me:$LINENO: result: yes" >&5
  23723. echo "${ECHO_T}yes" >&6
  23724. else
  23725. echo "$as_me:$LINENO: result: no" >&5
  23726. echo "${ECHO_T}no" >&6
  23727. fi
  23728. rm -f conftest*
  23729. fi
  23730. rm -f conftest*
  23731. fi
  23732. done
  23733. for ac_func in localtime_r
  23734. do
  23735. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  23736. echo "$as_me:$LINENO: checking for $ac_func" >&5
  23737. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  23738. if eval "test \"\${$as_ac_var+set}\" = set"; then
  23739. echo $ECHO_N "(cached) $ECHO_C" >&6
  23740. else
  23741. cat >conftest.$ac_ext <<_ACEOF
  23742. /* confdefs.h. */
  23743. _ACEOF
  23744. cat confdefs.h >>conftest.$ac_ext
  23745. cat >>conftest.$ac_ext <<_ACEOF
  23746. /* end confdefs.h. */
  23747. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  23748. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  23749. #define $ac_func innocuous_$ac_func
  23750. /* System header to define __stub macros and hopefully few prototypes,
  23751. which can conflict with char $ac_func (); below.
  23752. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23753. <limits.h> exists even on freestanding compilers. */
  23754. #ifdef __STDC__
  23755. # include <limits.h>
  23756. #else
  23757. # include <assert.h>
  23758. #endif
  23759. #undef $ac_func
  23760. /* Override any gcc2 internal prototype to avoid an error. */
  23761. #ifdef __cplusplus
  23762. extern "C"
  23763. {
  23764. #endif
  23765. /* We use char because int might match the return type of a gcc2
  23766. builtin and then its argument prototype would still apply. */
  23767. char $ac_func ();
  23768. /* The GNU C library defines this for functions which it implements
  23769. to always fail with ENOSYS. Some functions are actually named
  23770. something starting with __ and the normal name is an alias. */
  23771. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  23772. choke me
  23773. #else
  23774. char (*f) () = $ac_func;
  23775. #endif
  23776. #ifdef __cplusplus
  23777. }
  23778. #endif
  23779. int
  23780. main ()
  23781. {
  23782. return f != $ac_func;
  23783. ;
  23784. return 0;
  23785. }
  23786. _ACEOF
  23787. rm -f conftest.$ac_objext conftest$ac_exeext
  23788. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23789. (eval $ac_link) 2>conftest.er1
  23790. ac_status=$?
  23791. grep -v '^ *+' conftest.er1 >conftest.err
  23792. rm -f conftest.er1
  23793. cat conftest.err >&5
  23794. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23795. (exit $ac_status); } &&
  23796. { ac_try='test -z "$ac_c_werror_flag"
  23797. || test ! -s conftest.err'
  23798. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23799. (eval $ac_try) 2>&5
  23800. ac_status=$?
  23801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23802. (exit $ac_status); }; } &&
  23803. { ac_try='test -s conftest$ac_exeext'
  23804. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23805. (eval $ac_try) 2>&5
  23806. ac_status=$?
  23807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23808. (exit $ac_status); }; }; then
  23809. eval "$as_ac_var=yes"
  23810. else
  23811. echo "$as_me: failed program was:" >&5
  23812. sed 's/^/| /' conftest.$ac_ext >&5
  23813. eval "$as_ac_var=no"
  23814. fi
  23815. rm -f conftest.err conftest.$ac_objext \
  23816. conftest$ac_exeext conftest.$ac_ext
  23817. fi
  23818. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  23819. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  23820. if test `eval echo '${'$as_ac_var'}'` = yes; then
  23821. cat >>confdefs.h <<_ACEOF
  23822. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  23823. _ACEOF
  23824. echo "$as_me:$LINENO: checking whether localtime_r is declared" >&5
  23825. echo $ECHO_N "checking whether localtime_r is declared... $ECHO_C" >&6
  23826. cat >conftest.$ac_ext <<_ACEOF
  23827. /* confdefs.h. */
  23828. _ACEOF
  23829. cat confdefs.h >>conftest.$ac_ext
  23830. cat >>conftest.$ac_ext <<_ACEOF
  23831. /* end confdefs.h. */
  23832. #include <time.h>
  23833. _ACEOF
  23834. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  23835. $EGREP "localtime_r" >/dev/null 2>&1; then
  23836. echo "$as_me:$LINENO: result: yes" >&5
  23837. echo "${ECHO_T}yes" >&6
  23838. else
  23839. echo "$as_me:$LINENO: result: no" >&5
  23840. echo "${ECHO_T}no" >&6
  23841. echo "$as_me:$LINENO: checking whether localtime_r with -D_REENTRANT is declared" >&5
  23842. echo $ECHO_N "checking whether localtime_r with -D_REENTRANT is declared... $ECHO_C" >&6
  23843. cat >conftest.$ac_ext <<_ACEOF
  23844. /* confdefs.h. */
  23845. _ACEOF
  23846. cat confdefs.h >>conftest.$ac_ext
  23847. cat >>conftest.$ac_ext <<_ACEOF
  23848. /* end confdefs.h. */
  23849. #define _REENTRANT
  23850. #include <time.h>
  23851. _ACEOF
  23852. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  23853. $EGREP "localtime_r" >/dev/null 2>&1; then
  23854. cat >>confdefs.h <<\_ACEOF
  23855. #define NEED_REENTRANT 1
  23856. _ACEOF
  23857. echo "$as_me:$LINENO: result: yes" >&5
  23858. echo "${ECHO_T}yes" >&6
  23859. else
  23860. echo "$as_me:$LINENO: result: no" >&5
  23861. echo "${ECHO_T}no" >&6
  23862. fi
  23863. rm -f conftest*
  23864. fi
  23865. rm -f conftest*
  23866. fi
  23867. done
  23868. for ac_func in gmtime_r
  23869. do
  23870. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  23871. echo "$as_me:$LINENO: checking for $ac_func" >&5
  23872. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  23873. if eval "test \"\${$as_ac_var+set}\" = set"; then
  23874. echo $ECHO_N "(cached) $ECHO_C" >&6
  23875. else
  23876. cat >conftest.$ac_ext <<_ACEOF
  23877. /* confdefs.h. */
  23878. _ACEOF
  23879. cat confdefs.h >>conftest.$ac_ext
  23880. cat >>conftest.$ac_ext <<_ACEOF
  23881. /* end confdefs.h. */
  23882. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  23883. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  23884. #define $ac_func innocuous_$ac_func
  23885. /* System header to define __stub macros and hopefully few prototypes,
  23886. which can conflict with char $ac_func (); below.
  23887. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23888. <limits.h> exists even on freestanding compilers. */
  23889. #ifdef __STDC__
  23890. # include <limits.h>
  23891. #else
  23892. # include <assert.h>
  23893. #endif
  23894. #undef $ac_func
  23895. /* Override any gcc2 internal prototype to avoid an error. */
  23896. #ifdef __cplusplus
  23897. extern "C"
  23898. {
  23899. #endif
  23900. /* We use char because int might match the return type of a gcc2
  23901. builtin and then its argument prototype would still apply. */
  23902. char $ac_func ();
  23903. /* The GNU C library defines this for functions which it implements
  23904. to always fail with ENOSYS. Some functions are actually named
  23905. something starting with __ and the normal name is an alias. */
  23906. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  23907. choke me
  23908. #else
  23909. char (*f) () = $ac_func;
  23910. #endif
  23911. #ifdef __cplusplus
  23912. }
  23913. #endif
  23914. int
  23915. main ()
  23916. {
  23917. return f != $ac_func;
  23918. ;
  23919. return 0;
  23920. }
  23921. _ACEOF
  23922. rm -f conftest.$ac_objext conftest$ac_exeext
  23923. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23924. (eval $ac_link) 2>conftest.er1
  23925. ac_status=$?
  23926. grep -v '^ *+' conftest.er1 >conftest.err
  23927. rm -f conftest.er1
  23928. cat conftest.err >&5
  23929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23930. (exit $ac_status); } &&
  23931. { ac_try='test -z "$ac_c_werror_flag"
  23932. || test ! -s conftest.err'
  23933. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23934. (eval $ac_try) 2>&5
  23935. ac_status=$?
  23936. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23937. (exit $ac_status); }; } &&
  23938. { ac_try='test -s conftest$ac_exeext'
  23939. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23940. (eval $ac_try) 2>&5
  23941. ac_status=$?
  23942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23943. (exit $ac_status); }; }; then
  23944. eval "$as_ac_var=yes"
  23945. else
  23946. echo "$as_me: failed program was:" >&5
  23947. sed 's/^/| /' conftest.$ac_ext >&5
  23948. eval "$as_ac_var=no"
  23949. fi
  23950. rm -f conftest.err conftest.$ac_objext \
  23951. conftest$ac_exeext conftest.$ac_ext
  23952. fi
  23953. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  23954. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  23955. if test `eval echo '${'$as_ac_var'}'` = yes; then
  23956. cat >>confdefs.h <<_ACEOF
  23957. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  23958. _ACEOF
  23959. fi
  23960. done
  23961. fi
  23962. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  23963. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  23964. if test "${ac_cv_header_stdc+set}" = set; then
  23965. echo $ECHO_N "(cached) $ECHO_C" >&6
  23966. else
  23967. cat >conftest.$ac_ext <<_ACEOF
  23968. /* confdefs.h. */
  23969. _ACEOF
  23970. cat confdefs.h >>conftest.$ac_ext
  23971. cat >>conftest.$ac_ext <<_ACEOF
  23972. /* end confdefs.h. */
  23973. #include <stdlib.h>
  23974. #include <stdarg.h>
  23975. #include <string.h>
  23976. #include <float.h>
  23977. int
  23978. main ()
  23979. {
  23980. ;
  23981. return 0;
  23982. }
  23983. _ACEOF
  23984. rm -f conftest.$ac_objext
  23985. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23986. (eval $ac_compile) 2>conftest.er1
  23987. ac_status=$?
  23988. grep -v '^ *+' conftest.er1 >conftest.err
  23989. rm -f conftest.er1
  23990. cat conftest.err >&5
  23991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23992. (exit $ac_status); } &&
  23993. { ac_try='test -z "$ac_c_werror_flag"
  23994. || test ! -s conftest.err'
  23995. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23996. (eval $ac_try) 2>&5
  23997. ac_status=$?
  23998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23999. (exit $ac_status); }; } &&
  24000. { ac_try='test -s conftest.$ac_objext'
  24001. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24002. (eval $ac_try) 2>&5
  24003. ac_status=$?
  24004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24005. (exit $ac_status); }; }; then
  24006. ac_cv_header_stdc=yes
  24007. else
  24008. echo "$as_me: failed program was:" >&5
  24009. sed 's/^/| /' conftest.$ac_ext >&5
  24010. ac_cv_header_stdc=no
  24011. fi
  24012. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24013. if test $ac_cv_header_stdc = yes; then
  24014. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  24015. cat >conftest.$ac_ext <<_ACEOF
  24016. /* confdefs.h. */
  24017. _ACEOF
  24018. cat confdefs.h >>conftest.$ac_ext
  24019. cat >>conftest.$ac_ext <<_ACEOF
  24020. /* end confdefs.h. */
  24021. #include <string.h>
  24022. _ACEOF
  24023. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24024. $EGREP "memchr" >/dev/null 2>&1; then
  24025. :
  24026. else
  24027. ac_cv_header_stdc=no
  24028. fi
  24029. rm -f conftest*
  24030. fi
  24031. if test $ac_cv_header_stdc = yes; then
  24032. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  24033. cat >conftest.$ac_ext <<_ACEOF
  24034. /* confdefs.h. */
  24035. _ACEOF
  24036. cat confdefs.h >>conftest.$ac_ext
  24037. cat >>conftest.$ac_ext <<_ACEOF
  24038. /* end confdefs.h. */
  24039. #include <stdlib.h>
  24040. _ACEOF
  24041. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24042. $EGREP "free" >/dev/null 2>&1; then
  24043. :
  24044. else
  24045. ac_cv_header_stdc=no
  24046. fi
  24047. rm -f conftest*
  24048. fi
  24049. if test $ac_cv_header_stdc = yes; then
  24050. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  24051. if test "$cross_compiling" = yes; then
  24052. :
  24053. else
  24054. cat >conftest.$ac_ext <<_ACEOF
  24055. /* confdefs.h. */
  24056. _ACEOF
  24057. cat confdefs.h >>conftest.$ac_ext
  24058. cat >>conftest.$ac_ext <<_ACEOF
  24059. /* end confdefs.h. */
  24060. #include <ctype.h>
  24061. #if ((' ' & 0x0FF) == 0x020)
  24062. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  24063. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  24064. #else
  24065. # define ISLOWER(c) \
  24066. (('a' <= (c) && (c) <= 'i') \
  24067. || ('j' <= (c) && (c) <= 'r') \
  24068. || ('s' <= (c) && (c) <= 'z'))
  24069. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  24070. #endif
  24071. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  24072. int
  24073. main ()
  24074. {
  24075. int i;
  24076. for (i = 0; i < 256; i++)
  24077. if (XOR (islower (i), ISLOWER (i))
  24078. || toupper (i) != TOUPPER (i))
  24079. exit(2);
  24080. exit (0);
  24081. }
  24082. _ACEOF
  24083. rm -f conftest$ac_exeext
  24084. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24085. (eval $ac_link) 2>&5
  24086. ac_status=$?
  24087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24088. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  24089. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24090. (eval $ac_try) 2>&5
  24091. ac_status=$?
  24092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24093. (exit $ac_status); }; }; then
  24094. :
  24095. else
  24096. echo "$as_me: program exited with status $ac_status" >&5
  24097. echo "$as_me: failed program was:" >&5
  24098. sed 's/^/| /' conftest.$ac_ext >&5
  24099. ( exit $ac_status )
  24100. ac_cv_header_stdc=no
  24101. fi
  24102. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  24103. fi
  24104. fi
  24105. fi
  24106. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  24107. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  24108. if test $ac_cv_header_stdc = yes; then
  24109. cat >>confdefs.h <<\_ACEOF
  24110. #define STDC_HEADERS 1
  24111. _ACEOF
  24112. fi
  24113. for ac_header in sys/types.h \
  24114. sys/time.h \
  24115. sys/select.h \
  24116. sys/socket.h \
  24117. sys/ioctl.h \
  24118. assert.h \
  24119. unistd.h \
  24120. malloc.h \
  24121. stdlib.h \
  24122. limits.h \
  24123. arpa/inet.h \
  24124. net/if.h \
  24125. netinet/in.h \
  24126. netdb.h \
  24127. sys/sockio.h \
  24128. sys/stat.h \
  24129. sys/param.h \
  24130. termios.h \
  24131. termio.h \
  24132. sgtty.h \
  24133. fcntl.h \
  24134. dlfcn.h \
  24135. alloca.h \
  24136. winsock.h \
  24137. time.h \
  24138. io.h \
  24139. pwd.h \
  24140. utime.h \
  24141. sys/utime.h \
  24142. sys/poll.h \
  24143. setjmp.h
  24144. do
  24145. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24146. echo "$as_me:$LINENO: checking for $ac_header" >&5
  24147. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  24148. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  24149. echo $ECHO_N "(cached) $ECHO_C" >&6
  24150. else
  24151. cat >conftest.$ac_ext <<_ACEOF
  24152. /* confdefs.h. */
  24153. _ACEOF
  24154. cat confdefs.h >>conftest.$ac_ext
  24155. cat >>conftest.$ac_ext <<_ACEOF
  24156. /* end confdefs.h. */
  24157. #ifdef HAVE_SYS_TYPES_H
  24158. #include <sys/types.h>
  24159. #endif
  24160. #ifdef HAVE_SYS_TIME_H
  24161. #include <sys/time.h>
  24162. #endif
  24163. #ifdef HAVE_SYS_SELECT_H
  24164. #include <sys/select.h>
  24165. #endif
  24166. #ifdef HAVE_SYS_SOCKET_H
  24167. #include <sys/socket.h>
  24168. #endif
  24169. #include <$ac_header>
  24170. _ACEOF
  24171. rm -f conftest.$ac_objext
  24172. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24173. (eval $ac_compile) 2>conftest.er1
  24174. ac_status=$?
  24175. grep -v '^ *+' conftest.er1 >conftest.err
  24176. rm -f conftest.er1
  24177. cat conftest.err >&5
  24178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24179. (exit $ac_status); } &&
  24180. { ac_try='test -z "$ac_c_werror_flag"
  24181. || test ! -s conftest.err'
  24182. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24183. (eval $ac_try) 2>&5
  24184. ac_status=$?
  24185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24186. (exit $ac_status); }; } &&
  24187. { ac_try='test -s conftest.$ac_objext'
  24188. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24189. (eval $ac_try) 2>&5
  24190. ac_status=$?
  24191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24192. (exit $ac_status); }; }; then
  24193. eval "$as_ac_Header=yes"
  24194. else
  24195. echo "$as_me: failed program was:" >&5
  24196. sed 's/^/| /' conftest.$ac_ext >&5
  24197. eval "$as_ac_Header=no"
  24198. fi
  24199. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24200. fi
  24201. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  24202. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  24203. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  24204. cat >>confdefs.h <<_ACEOF
  24205. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24206. _ACEOF
  24207. fi
  24208. done
  24209. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  24210. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  24211. if test "${ac_cv_c_const+set}" = set; then
  24212. echo $ECHO_N "(cached) $ECHO_C" >&6
  24213. else
  24214. cat >conftest.$ac_ext <<_ACEOF
  24215. /* confdefs.h. */
  24216. _ACEOF
  24217. cat confdefs.h >>conftest.$ac_ext
  24218. cat >>conftest.$ac_ext <<_ACEOF
  24219. /* end confdefs.h. */
  24220. int
  24221. main ()
  24222. {
  24223. /* FIXME: Include the comments suggested by Paul. */
  24224. #ifndef __cplusplus
  24225. /* Ultrix mips cc rejects this. */
  24226. typedef int charset[2];
  24227. const charset x;
  24228. /* SunOS 4.1.1 cc rejects this. */
  24229. char const *const *ccp;
  24230. char **p;
  24231. /* NEC SVR4.0.2 mips cc rejects this. */
  24232. struct point {int x, y;};
  24233. static struct point const zero = {0,0};
  24234. /* AIX XL C 1.02.0.0 rejects this.
  24235. It does not let you subtract one const X* pointer from another in
  24236. an arm of an if-expression whose if-part is not a constant
  24237. expression */
  24238. const char *g = "string";
  24239. ccp = &g + (g ? g-g : 0);
  24240. /* HPUX 7.0 cc rejects these. */
  24241. ++ccp;
  24242. p = (char**) ccp;
  24243. ccp = (char const *const *) p;
  24244. { /* SCO 3.2v4 cc rejects this. */
  24245. char *t;
  24246. char const *s = 0 ? (char *) 0 : (char const *) 0;
  24247. *t++ = 0;
  24248. }
  24249. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  24250. int x[] = {25, 17};
  24251. const int *foo = &x[0];
  24252. ++foo;
  24253. }
  24254. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  24255. typedef const int *iptr;
  24256. iptr p = 0;
  24257. ++p;
  24258. }
  24259. { /* AIX XL C 1.02.0.0 rejects this saying
  24260. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  24261. struct s { int j; const int *ap[3]; };
  24262. struct s *b; b->j = 5;
  24263. }
  24264. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  24265. const int foo = 10;
  24266. }
  24267. #endif
  24268. ;
  24269. return 0;
  24270. }
  24271. _ACEOF
  24272. rm -f conftest.$ac_objext
  24273. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24274. (eval $ac_compile) 2>conftest.er1
  24275. ac_status=$?
  24276. grep -v '^ *+' conftest.er1 >conftest.err
  24277. rm -f conftest.er1
  24278. cat conftest.err >&5
  24279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24280. (exit $ac_status); } &&
  24281. { ac_try='test -z "$ac_c_werror_flag"
  24282. || test ! -s conftest.err'
  24283. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24284. (eval $ac_try) 2>&5
  24285. ac_status=$?
  24286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24287. (exit $ac_status); }; } &&
  24288. { ac_try='test -s conftest.$ac_objext'
  24289. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24290. (eval $ac_try) 2>&5
  24291. ac_status=$?
  24292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24293. (exit $ac_status); }; }; then
  24294. ac_cv_c_const=yes
  24295. else
  24296. echo "$as_me: failed program was:" >&5
  24297. sed 's/^/| /' conftest.$ac_ext >&5
  24298. ac_cv_c_const=no
  24299. fi
  24300. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24301. fi
  24302. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  24303. echo "${ECHO_T}$ac_cv_c_const" >&6
  24304. if test $ac_cv_c_const = no; then
  24305. cat >>confdefs.h <<\_ACEOF
  24306. #define const
  24307. _ACEOF
  24308. fi
  24309. echo "$as_me:$LINENO: checking for size_t" >&5
  24310. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  24311. if test "${ac_cv_type_size_t+set}" = set; then
  24312. echo $ECHO_N "(cached) $ECHO_C" >&6
  24313. else
  24314. cat >conftest.$ac_ext <<_ACEOF
  24315. /* confdefs.h. */
  24316. _ACEOF
  24317. cat confdefs.h >>conftest.$ac_ext
  24318. cat >>conftest.$ac_ext <<_ACEOF
  24319. /* end confdefs.h. */
  24320. $ac_includes_default
  24321. int
  24322. main ()
  24323. {
  24324. if ((size_t *) 0)
  24325. return 0;
  24326. if (sizeof (size_t))
  24327. return 0;
  24328. ;
  24329. return 0;
  24330. }
  24331. _ACEOF
  24332. rm -f conftest.$ac_objext
  24333. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24334. (eval $ac_compile) 2>conftest.er1
  24335. ac_status=$?
  24336. grep -v '^ *+' conftest.er1 >conftest.err
  24337. rm -f conftest.er1
  24338. cat conftest.err >&5
  24339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24340. (exit $ac_status); } &&
  24341. { ac_try='test -z "$ac_c_werror_flag"
  24342. || test ! -s conftest.err'
  24343. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24344. (eval $ac_try) 2>&5
  24345. ac_status=$?
  24346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24347. (exit $ac_status); }; } &&
  24348. { ac_try='test -s conftest.$ac_objext'
  24349. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24350. (eval $ac_try) 2>&5
  24351. ac_status=$?
  24352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24353. (exit $ac_status); }; }; then
  24354. ac_cv_type_size_t=yes
  24355. else
  24356. echo "$as_me: failed program was:" >&5
  24357. sed 's/^/| /' conftest.$ac_ext >&5
  24358. ac_cv_type_size_t=no
  24359. fi
  24360. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24361. fi
  24362. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  24363. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  24364. if test $ac_cv_type_size_t = yes; then
  24365. :
  24366. else
  24367. cat >>confdefs.h <<_ACEOF
  24368. #define size_t unsigned
  24369. _ACEOF
  24370. fi
  24371. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  24372. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  24373. if test "${ac_cv_header_time+set}" = set; then
  24374. echo $ECHO_N "(cached) $ECHO_C" >&6
  24375. else
  24376. cat >conftest.$ac_ext <<_ACEOF
  24377. /* confdefs.h. */
  24378. _ACEOF
  24379. cat confdefs.h >>conftest.$ac_ext
  24380. cat >>conftest.$ac_ext <<_ACEOF
  24381. /* end confdefs.h. */
  24382. #include <sys/types.h>
  24383. #include <sys/time.h>
  24384. #include <time.h>
  24385. int
  24386. main ()
  24387. {
  24388. if ((struct tm *) 0)
  24389. return 0;
  24390. ;
  24391. return 0;
  24392. }
  24393. _ACEOF
  24394. rm -f conftest.$ac_objext
  24395. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24396. (eval $ac_compile) 2>conftest.er1
  24397. ac_status=$?
  24398. grep -v '^ *+' conftest.er1 >conftest.err
  24399. rm -f conftest.er1
  24400. cat conftest.err >&5
  24401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24402. (exit $ac_status); } &&
  24403. { ac_try='test -z "$ac_c_werror_flag"
  24404. || test ! -s conftest.err'
  24405. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24406. (eval $ac_try) 2>&5
  24407. ac_status=$?
  24408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24409. (exit $ac_status); }; } &&
  24410. { ac_try='test -s conftest.$ac_objext'
  24411. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24412. (eval $ac_try) 2>&5
  24413. ac_status=$?
  24414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24415. (exit $ac_status); }; }; then
  24416. ac_cv_header_time=yes
  24417. else
  24418. echo "$as_me: failed program was:" >&5
  24419. sed 's/^/| /' conftest.$ac_ext >&5
  24420. ac_cv_header_time=no
  24421. fi
  24422. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24423. fi
  24424. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  24425. echo "${ECHO_T}$ac_cv_header_time" >&6
  24426. if test $ac_cv_header_time = yes; then
  24427. cat >>confdefs.h <<\_ACEOF
  24428. #define TIME_WITH_SYS_TIME 1
  24429. _ACEOF
  24430. fi
  24431. echo "$as_me:$LINENO: checking for curl_off_t" >&5
  24432. echo $ECHO_N "checking for curl_off_t... $ECHO_C" >&6
  24433. if test "${ac_cv_type_curl_off_t+set}" = set; then
  24434. echo $ECHO_N "(cached) $ECHO_C" >&6
  24435. else
  24436. cat >conftest.$ac_ext <<_ACEOF
  24437. /* confdefs.h. */
  24438. _ACEOF
  24439. cat confdefs.h >>conftest.$ac_ext
  24440. cat >>conftest.$ac_ext <<_ACEOF
  24441. /* end confdefs.h. */
  24442. #include <stdio.h>
  24443. #include "$srcdir/include/curl/curl.h"
  24444. int
  24445. main ()
  24446. {
  24447. if ((curl_off_t *) 0)
  24448. return 0;
  24449. if (sizeof (curl_off_t))
  24450. return 0;
  24451. ;
  24452. return 0;
  24453. }
  24454. _ACEOF
  24455. rm -f conftest.$ac_objext
  24456. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24457. (eval $ac_compile) 2>conftest.er1
  24458. ac_status=$?
  24459. grep -v '^ *+' conftest.er1 >conftest.err
  24460. rm -f conftest.er1
  24461. cat conftest.err >&5
  24462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24463. (exit $ac_status); } &&
  24464. { ac_try='test -z "$ac_c_werror_flag"
  24465. || test ! -s conftest.err'
  24466. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24467. (eval $ac_try) 2>&5
  24468. ac_status=$?
  24469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24470. (exit $ac_status); }; } &&
  24471. { ac_try='test -s conftest.$ac_objext'
  24472. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24473. (eval $ac_try) 2>&5
  24474. ac_status=$?
  24475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24476. (exit $ac_status); }; }; then
  24477. ac_cv_type_curl_off_t=yes
  24478. else
  24479. echo "$as_me: failed program was:" >&5
  24480. sed 's/^/| /' conftest.$ac_ext >&5
  24481. ac_cv_type_curl_off_t=no
  24482. fi
  24483. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24484. fi
  24485. echo "$as_me:$LINENO: result: $ac_cv_type_curl_off_t" >&5
  24486. echo "${ECHO_T}$ac_cv_type_curl_off_t" >&6
  24487. echo "$as_me:$LINENO: checking size of curl_off_t" >&5
  24488. echo $ECHO_N "checking size of curl_off_t... $ECHO_C" >&6
  24489. if test "${ac_cv_sizeof_curl_off_t+set}" = set; then
  24490. echo $ECHO_N "(cached) $ECHO_C" >&6
  24491. else
  24492. if test "$ac_cv_type_curl_off_t" = yes; then
  24493. # The cast to unsigned long works around a bug in the HP C Compiler
  24494. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  24495. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  24496. # This bug is HP SR number 8606223364.
  24497. if test "$cross_compiling" = yes; then
  24498. # Depending upon the size, compute the lo and hi bounds.
  24499. cat >conftest.$ac_ext <<_ACEOF
  24500. /* confdefs.h. */
  24501. _ACEOF
  24502. cat confdefs.h >>conftest.$ac_ext
  24503. cat >>conftest.$ac_ext <<_ACEOF
  24504. /* end confdefs.h. */
  24505. #include <stdio.h>
  24506. #include "$srcdir/include/curl/curl.h"
  24507. int
  24508. main ()
  24509. {
  24510. static int test_array [1 - 2 * !(((long) (sizeof (curl_off_t))) >= 0)];
  24511. test_array [0] = 0
  24512. ;
  24513. return 0;
  24514. }
  24515. _ACEOF
  24516. rm -f conftest.$ac_objext
  24517. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24518. (eval $ac_compile) 2>conftest.er1
  24519. ac_status=$?
  24520. grep -v '^ *+' conftest.er1 >conftest.err
  24521. rm -f conftest.er1
  24522. cat conftest.err >&5
  24523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24524. (exit $ac_status); } &&
  24525. { ac_try='test -z "$ac_c_werror_flag"
  24526. || test ! -s conftest.err'
  24527. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24528. (eval $ac_try) 2>&5
  24529. ac_status=$?
  24530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24531. (exit $ac_status); }; } &&
  24532. { ac_try='test -s conftest.$ac_objext'
  24533. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24534. (eval $ac_try) 2>&5
  24535. ac_status=$?
  24536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24537. (exit $ac_status); }; }; then
  24538. ac_lo=0 ac_mid=0
  24539. while :; do
  24540. cat >conftest.$ac_ext <<_ACEOF
  24541. /* confdefs.h. */
  24542. _ACEOF
  24543. cat confdefs.h >>conftest.$ac_ext
  24544. cat >>conftest.$ac_ext <<_ACEOF
  24545. /* end confdefs.h. */
  24546. #include <stdio.h>
  24547. #include "$srcdir/include/curl/curl.h"
  24548. int
  24549. main ()
  24550. {
  24551. static int test_array [1 - 2 * !(((long) (sizeof (curl_off_t))) <= $ac_mid)];
  24552. test_array [0] = 0
  24553. ;
  24554. return 0;
  24555. }
  24556. _ACEOF
  24557. rm -f conftest.$ac_objext
  24558. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24559. (eval $ac_compile) 2>conftest.er1
  24560. ac_status=$?
  24561. grep -v '^ *+' conftest.er1 >conftest.err
  24562. rm -f conftest.er1
  24563. cat conftest.err >&5
  24564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24565. (exit $ac_status); } &&
  24566. { ac_try='test -z "$ac_c_werror_flag"
  24567. || test ! -s conftest.err'
  24568. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24569. (eval $ac_try) 2>&5
  24570. ac_status=$?
  24571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24572. (exit $ac_status); }; } &&
  24573. { ac_try='test -s conftest.$ac_objext'
  24574. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24575. (eval $ac_try) 2>&5
  24576. ac_status=$?
  24577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24578. (exit $ac_status); }; }; then
  24579. ac_hi=$ac_mid; break
  24580. else
  24581. echo "$as_me: failed program was:" >&5
  24582. sed 's/^/| /' conftest.$ac_ext >&5
  24583. ac_lo=`expr $ac_mid + 1`
  24584. if test $ac_lo -le $ac_mid; then
  24585. ac_lo= ac_hi=
  24586. break
  24587. fi
  24588. ac_mid=`expr 2 '*' $ac_mid + 1`
  24589. fi
  24590. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24591. done
  24592. else
  24593. echo "$as_me: failed program was:" >&5
  24594. sed 's/^/| /' conftest.$ac_ext >&5
  24595. cat >conftest.$ac_ext <<_ACEOF
  24596. /* confdefs.h. */
  24597. _ACEOF
  24598. cat confdefs.h >>conftest.$ac_ext
  24599. cat >>conftest.$ac_ext <<_ACEOF
  24600. /* end confdefs.h. */
  24601. #include <stdio.h>
  24602. #include "$srcdir/include/curl/curl.h"
  24603. int
  24604. main ()
  24605. {
  24606. static int test_array [1 - 2 * !(((long) (sizeof (curl_off_t))) < 0)];
  24607. test_array [0] = 0
  24608. ;
  24609. return 0;
  24610. }
  24611. _ACEOF
  24612. rm -f conftest.$ac_objext
  24613. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24614. (eval $ac_compile) 2>conftest.er1
  24615. ac_status=$?
  24616. grep -v '^ *+' conftest.er1 >conftest.err
  24617. rm -f conftest.er1
  24618. cat conftest.err >&5
  24619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24620. (exit $ac_status); } &&
  24621. { ac_try='test -z "$ac_c_werror_flag"
  24622. || test ! -s conftest.err'
  24623. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24624. (eval $ac_try) 2>&5
  24625. ac_status=$?
  24626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24627. (exit $ac_status); }; } &&
  24628. { ac_try='test -s conftest.$ac_objext'
  24629. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24630. (eval $ac_try) 2>&5
  24631. ac_status=$?
  24632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24633. (exit $ac_status); }; }; then
  24634. ac_hi=-1 ac_mid=-1
  24635. while :; do
  24636. cat >conftest.$ac_ext <<_ACEOF
  24637. /* confdefs.h. */
  24638. _ACEOF
  24639. cat confdefs.h >>conftest.$ac_ext
  24640. cat >>conftest.$ac_ext <<_ACEOF
  24641. /* end confdefs.h. */
  24642. #include <stdio.h>
  24643. #include "$srcdir/include/curl/curl.h"
  24644. int
  24645. main ()
  24646. {
  24647. static int test_array [1 - 2 * !(((long) (sizeof (curl_off_t))) >= $ac_mid)];
  24648. test_array [0] = 0
  24649. ;
  24650. return 0;
  24651. }
  24652. _ACEOF
  24653. rm -f conftest.$ac_objext
  24654. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24655. (eval $ac_compile) 2>conftest.er1
  24656. ac_status=$?
  24657. grep -v '^ *+' conftest.er1 >conftest.err
  24658. rm -f conftest.er1
  24659. cat conftest.err >&5
  24660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24661. (exit $ac_status); } &&
  24662. { ac_try='test -z "$ac_c_werror_flag"
  24663. || test ! -s conftest.err'
  24664. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24665. (eval $ac_try) 2>&5
  24666. ac_status=$?
  24667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24668. (exit $ac_status); }; } &&
  24669. { ac_try='test -s conftest.$ac_objext'
  24670. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24671. (eval $ac_try) 2>&5
  24672. ac_status=$?
  24673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24674. (exit $ac_status); }; }; then
  24675. ac_lo=$ac_mid; break
  24676. else
  24677. echo "$as_me: failed program was:" >&5
  24678. sed 's/^/| /' conftest.$ac_ext >&5
  24679. ac_hi=`expr '(' $ac_mid ')' - 1`
  24680. if test $ac_mid -le $ac_hi; then
  24681. ac_lo= ac_hi=
  24682. break
  24683. fi
  24684. ac_mid=`expr 2 '*' $ac_mid`
  24685. fi
  24686. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24687. done
  24688. else
  24689. echo "$as_me: failed program was:" >&5
  24690. sed 's/^/| /' conftest.$ac_ext >&5
  24691. ac_lo= ac_hi=
  24692. fi
  24693. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24694. fi
  24695. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24696. # Binary search between lo and hi bounds.
  24697. while test "x$ac_lo" != "x$ac_hi"; do
  24698. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  24699. cat >conftest.$ac_ext <<_ACEOF
  24700. /* confdefs.h. */
  24701. _ACEOF
  24702. cat confdefs.h >>conftest.$ac_ext
  24703. cat >>conftest.$ac_ext <<_ACEOF
  24704. /* end confdefs.h. */
  24705. #include <stdio.h>
  24706. #include "$srcdir/include/curl/curl.h"
  24707. int
  24708. main ()
  24709. {
  24710. static int test_array [1 - 2 * !(((long) (sizeof (curl_off_t))) <= $ac_mid)];
  24711. test_array [0] = 0
  24712. ;
  24713. return 0;
  24714. }
  24715. _ACEOF
  24716. rm -f conftest.$ac_objext
  24717. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24718. (eval $ac_compile) 2>conftest.er1
  24719. ac_status=$?
  24720. grep -v '^ *+' conftest.er1 >conftest.err
  24721. rm -f conftest.er1
  24722. cat conftest.err >&5
  24723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24724. (exit $ac_status); } &&
  24725. { ac_try='test -z "$ac_c_werror_flag"
  24726. || test ! -s conftest.err'
  24727. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24728. (eval $ac_try) 2>&5
  24729. ac_status=$?
  24730. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24731. (exit $ac_status); }; } &&
  24732. { ac_try='test -s conftest.$ac_objext'
  24733. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24734. (eval $ac_try) 2>&5
  24735. ac_status=$?
  24736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24737. (exit $ac_status); }; }; then
  24738. ac_hi=$ac_mid
  24739. else
  24740. echo "$as_me: failed program was:" >&5
  24741. sed 's/^/| /' conftest.$ac_ext >&5
  24742. ac_lo=`expr '(' $ac_mid ')' + 1`
  24743. fi
  24744. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24745. done
  24746. case $ac_lo in
  24747. ?*) ac_cv_sizeof_curl_off_t=$ac_lo;;
  24748. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (curl_off_t), 77
  24749. See \`config.log' for more details." >&5
  24750. echo "$as_me: error: cannot compute sizeof (curl_off_t), 77
  24751. See \`config.log' for more details." >&2;}
  24752. { (exit 1); exit 1; }; } ;;
  24753. esac
  24754. else
  24755. if test "$cross_compiling" = yes; then
  24756. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  24757. See \`config.log' for more details." >&5
  24758. echo "$as_me: error: cannot run test program while cross compiling
  24759. See \`config.log' for more details." >&2;}
  24760. { (exit 1); exit 1; }; }
  24761. else
  24762. cat >conftest.$ac_ext <<_ACEOF
  24763. /* confdefs.h. */
  24764. _ACEOF
  24765. cat confdefs.h >>conftest.$ac_ext
  24766. cat >>conftest.$ac_ext <<_ACEOF
  24767. /* end confdefs.h. */
  24768. #include <stdio.h>
  24769. #include "$srcdir/include/curl/curl.h"
  24770. long longval () { return (long) (sizeof (curl_off_t)); }
  24771. unsigned long ulongval () { return (long) (sizeof (curl_off_t)); }
  24772. #include <stdio.h>
  24773. #include <stdlib.h>
  24774. int
  24775. main ()
  24776. {
  24777. FILE *f = fopen ("conftest.val", "w");
  24778. if (! f)
  24779. exit (1);
  24780. if (((long) (sizeof (curl_off_t))) < 0)
  24781. {
  24782. long i = longval ();
  24783. if (i != ((long) (sizeof (curl_off_t))))
  24784. exit (1);
  24785. fprintf (f, "%ld\n", i);
  24786. }
  24787. else
  24788. {
  24789. unsigned long i = ulongval ();
  24790. if (i != ((long) (sizeof (curl_off_t))))
  24791. exit (1);
  24792. fprintf (f, "%lu\n", i);
  24793. }
  24794. exit (ferror (f) || fclose (f) != 0);
  24795. ;
  24796. return 0;
  24797. }
  24798. _ACEOF
  24799. rm -f conftest$ac_exeext
  24800. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24801. (eval $ac_link) 2>&5
  24802. ac_status=$?
  24803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24804. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  24805. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24806. (eval $ac_try) 2>&5
  24807. ac_status=$?
  24808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24809. (exit $ac_status); }; }; then
  24810. ac_cv_sizeof_curl_off_t=`cat conftest.val`
  24811. else
  24812. echo "$as_me: program exited with status $ac_status" >&5
  24813. echo "$as_me: failed program was:" >&5
  24814. sed 's/^/| /' conftest.$ac_ext >&5
  24815. ( exit $ac_status )
  24816. { { echo "$as_me:$LINENO: error: cannot compute sizeof (curl_off_t), 77
  24817. See \`config.log' for more details." >&5
  24818. echo "$as_me: error: cannot compute sizeof (curl_off_t), 77
  24819. See \`config.log' for more details." >&2;}
  24820. { (exit 1); exit 1; }; }
  24821. fi
  24822. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  24823. fi
  24824. fi
  24825. rm -f conftest.val
  24826. else
  24827. ac_cv_sizeof_curl_off_t=0
  24828. fi
  24829. fi
  24830. echo "$as_me:$LINENO: result: $ac_cv_sizeof_curl_off_t" >&5
  24831. echo "${ECHO_T}$ac_cv_sizeof_curl_off_t" >&6
  24832. cat >>confdefs.h <<_ACEOF
  24833. #define SIZEOF_CURL_OFF_T $ac_cv_sizeof_curl_off_t
  24834. _ACEOF
  24835. echo "$as_me:$LINENO: checking for long long" >&5
  24836. echo $ECHO_N "checking for long long... $ECHO_C" >&6
  24837. if test "${ac_cv_type_long_long+set}" = set; then
  24838. echo $ECHO_N "(cached) $ECHO_C" >&6
  24839. else
  24840. cat >conftest.$ac_ext <<_ACEOF
  24841. /* confdefs.h. */
  24842. _ACEOF
  24843. cat confdefs.h >>conftest.$ac_ext
  24844. cat >>conftest.$ac_ext <<_ACEOF
  24845. /* end confdefs.h. */
  24846. $ac_includes_default
  24847. int
  24848. main ()
  24849. {
  24850. if ((long long *) 0)
  24851. return 0;
  24852. if (sizeof (long long))
  24853. return 0;
  24854. ;
  24855. return 0;
  24856. }
  24857. _ACEOF
  24858. rm -f conftest.$ac_objext
  24859. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24860. (eval $ac_compile) 2>conftest.er1
  24861. ac_status=$?
  24862. grep -v '^ *+' conftest.er1 >conftest.err
  24863. rm -f conftest.er1
  24864. cat conftest.err >&5
  24865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24866. (exit $ac_status); } &&
  24867. { ac_try='test -z "$ac_c_werror_flag"
  24868. || test ! -s conftest.err'
  24869. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24870. (eval $ac_try) 2>&5
  24871. ac_status=$?
  24872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24873. (exit $ac_status); }; } &&
  24874. { ac_try='test -s conftest.$ac_objext'
  24875. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24876. (eval $ac_try) 2>&5
  24877. ac_status=$?
  24878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24879. (exit $ac_status); }; }; then
  24880. ac_cv_type_long_long=yes
  24881. else
  24882. echo "$as_me: failed program was:" >&5
  24883. sed 's/^/| /' conftest.$ac_ext >&5
  24884. ac_cv_type_long_long=no
  24885. fi
  24886. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24887. fi
  24888. echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  24889. echo "${ECHO_T}$ac_cv_type_long_long" >&6
  24890. if test $ac_cv_type_long_long = yes; then
  24891. cat >>confdefs.h <<\_ACEOF
  24892. #define HAVE_LONGLONG 1
  24893. _ACEOF
  24894. fi
  24895. # check for ssize_t
  24896. echo "$as_me:$LINENO: checking for ssize_t" >&5
  24897. echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
  24898. if test "${ac_cv_type_ssize_t+set}" = set; then
  24899. echo $ECHO_N "(cached) $ECHO_C" >&6
  24900. else
  24901. cat >conftest.$ac_ext <<_ACEOF
  24902. /* confdefs.h. */
  24903. _ACEOF
  24904. cat confdefs.h >>conftest.$ac_ext
  24905. cat >>conftest.$ac_ext <<_ACEOF
  24906. /* end confdefs.h. */
  24907. $ac_includes_default
  24908. int
  24909. main ()
  24910. {
  24911. if ((ssize_t *) 0)
  24912. return 0;
  24913. if (sizeof (ssize_t))
  24914. return 0;
  24915. ;
  24916. return 0;
  24917. }
  24918. _ACEOF
  24919. rm -f conftest.$ac_objext
  24920. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24921. (eval $ac_compile) 2>conftest.er1
  24922. ac_status=$?
  24923. grep -v '^ *+' conftest.er1 >conftest.err
  24924. rm -f conftest.er1
  24925. cat conftest.err >&5
  24926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24927. (exit $ac_status); } &&
  24928. { ac_try='test -z "$ac_c_werror_flag"
  24929. || test ! -s conftest.err'
  24930. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24931. (eval $ac_try) 2>&5
  24932. ac_status=$?
  24933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24934. (exit $ac_status); }; } &&
  24935. { ac_try='test -s conftest.$ac_objext'
  24936. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24937. (eval $ac_try) 2>&5
  24938. ac_status=$?
  24939. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24940. (exit $ac_status); }; }; then
  24941. ac_cv_type_ssize_t=yes
  24942. else
  24943. echo "$as_me: failed program was:" >&5
  24944. sed 's/^/| /' conftest.$ac_ext >&5
  24945. ac_cv_type_ssize_t=no
  24946. fi
  24947. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24948. fi
  24949. echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
  24950. echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
  24951. if test $ac_cv_type_ssize_t = yes; then
  24952. :
  24953. else
  24954. cat >>confdefs.h <<\_ACEOF
  24955. #define ssize_t int
  24956. _ACEOF
  24957. fi
  24958. echo "$as_me:$LINENO: checking for socklen_t" >&5
  24959. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  24960. if test "${ac_cv_type_socklen_t+set}" = set; then
  24961. echo $ECHO_N "(cached) $ECHO_C" >&6
  24962. else
  24963. cat >conftest.$ac_ext <<_ACEOF
  24964. /* confdefs.h. */
  24965. _ACEOF
  24966. cat confdefs.h >>conftest.$ac_ext
  24967. cat >>conftest.$ac_ext <<_ACEOF
  24968. /* end confdefs.h. */
  24969. #include <sys/types.h>
  24970. #include <sys/socket.h>
  24971. int
  24972. main ()
  24973. {
  24974. if ((socklen_t *) 0)
  24975. return 0;
  24976. if (sizeof (socklen_t))
  24977. return 0;
  24978. ;
  24979. return 0;
  24980. }
  24981. _ACEOF
  24982. rm -f conftest.$ac_objext
  24983. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24984. (eval $ac_compile) 2>conftest.er1
  24985. ac_status=$?
  24986. grep -v '^ *+' conftest.er1 >conftest.err
  24987. rm -f conftest.er1
  24988. cat conftest.err >&5
  24989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24990. (exit $ac_status); } &&
  24991. { ac_try='test -z "$ac_c_werror_flag"
  24992. || test ! -s conftest.err'
  24993. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24994. (eval $ac_try) 2>&5
  24995. ac_status=$?
  24996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24997. (exit $ac_status); }; } &&
  24998. { ac_try='test -s conftest.$ac_objext'
  24999. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25000. (eval $ac_try) 2>&5
  25001. ac_status=$?
  25002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25003. (exit $ac_status); }; }; then
  25004. ac_cv_type_socklen_t=yes
  25005. else
  25006. echo "$as_me: failed program was:" >&5
  25007. sed 's/^/| /' conftest.$ac_ext >&5
  25008. ac_cv_type_socklen_t=no
  25009. fi
  25010. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25011. fi
  25012. echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
  25013. echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
  25014. if test $ac_cv_type_socklen_t = yes; then
  25015. :
  25016. else
  25017. echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
  25018. echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
  25019. if test "${curl_cv_socklen_t_equiv+set}" = set; then
  25020. echo $ECHO_N "(cached) $ECHO_C" >&6
  25021. else
  25022. # Systems have either "struct sockaddr *" or
  25023. # "void *" as the second argument to getpeername
  25024. curl_cv_socklen_t_equiv=
  25025. for arg2 in "struct sockaddr" void; do
  25026. for t in int size_t unsigned long "unsigned long"; do
  25027. cat >conftest.$ac_ext <<_ACEOF
  25028. /* confdefs.h. */
  25029. _ACEOF
  25030. cat confdefs.h >>conftest.$ac_ext
  25031. cat >>conftest.$ac_ext <<_ACEOF
  25032. /* end confdefs.h. */
  25033. #ifdef HAVE_SYS_TYPES_H
  25034. #include <sys/types.h>
  25035. #endif
  25036. #ifdef HAVE_SYS_SOCKET_H
  25037. #include <sys/socket.h>
  25038. #endif
  25039. int getpeername (int, $arg2 *, $t *);
  25040. int
  25041. main ()
  25042. {
  25043. $t len;
  25044. getpeername(0,0,&len);
  25045. ;
  25046. return 0;
  25047. }
  25048. _ACEOF
  25049. rm -f conftest.$ac_objext
  25050. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25051. (eval $ac_compile) 2>conftest.er1
  25052. ac_status=$?
  25053. grep -v '^ *+' conftest.er1 >conftest.err
  25054. rm -f conftest.er1
  25055. cat conftest.err >&5
  25056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25057. (exit $ac_status); } &&
  25058. { ac_try='test -z "$ac_c_werror_flag"
  25059. || test ! -s conftest.err'
  25060. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25061. (eval $ac_try) 2>&5
  25062. ac_status=$?
  25063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25064. (exit $ac_status); }; } &&
  25065. { ac_try='test -s conftest.$ac_objext'
  25066. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25067. (eval $ac_try) 2>&5
  25068. ac_status=$?
  25069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25070. (exit $ac_status); }; }; then
  25071. curl_cv_socklen_t_equiv="$t"
  25072. break
  25073. else
  25074. echo "$as_me: failed program was:" >&5
  25075. sed 's/^/| /' conftest.$ac_ext >&5
  25076. fi
  25077. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25078. done
  25079. done
  25080. if test "x$curl_cv_socklen_t_equiv" = x; then
  25081. { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
  25082. echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
  25083. { (exit 1); exit 1; }; }
  25084. fi
  25085. fi
  25086. echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
  25087. echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
  25088. cat >>confdefs.h <<_ACEOF
  25089. #define socklen_t $curl_cv_socklen_t_equiv
  25090. _ACEOF
  25091. fi
  25092. echo "$as_me:$LINENO: checking for in_addr_t" >&5
  25093. echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
  25094. if test "${ac_cv_type_in_addr_t+set}" = set; then
  25095. echo $ECHO_N "(cached) $ECHO_C" >&6
  25096. else
  25097. cat >conftest.$ac_ext <<_ACEOF
  25098. /* confdefs.h. */
  25099. _ACEOF
  25100. cat confdefs.h >>conftest.$ac_ext
  25101. cat >>conftest.$ac_ext <<_ACEOF
  25102. /* end confdefs.h. */
  25103. #include <sys/types.h>
  25104. #include <sys/socket.h>
  25105. #include <arpa/inet.h>
  25106. int
  25107. main ()
  25108. {
  25109. if ((in_addr_t *) 0)
  25110. return 0;
  25111. if (sizeof (in_addr_t))
  25112. return 0;
  25113. ;
  25114. return 0;
  25115. }
  25116. _ACEOF
  25117. rm -f conftest.$ac_objext
  25118. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25119. (eval $ac_compile) 2>conftest.er1
  25120. ac_status=$?
  25121. grep -v '^ *+' conftest.er1 >conftest.err
  25122. rm -f conftest.er1
  25123. cat conftest.err >&5
  25124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25125. (exit $ac_status); } &&
  25126. { ac_try='test -z "$ac_c_werror_flag"
  25127. || test ! -s conftest.err'
  25128. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25129. (eval $ac_try) 2>&5
  25130. ac_status=$?
  25131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25132. (exit $ac_status); }; } &&
  25133. { ac_try='test -s conftest.$ac_objext'
  25134. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25135. (eval $ac_try) 2>&5
  25136. ac_status=$?
  25137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25138. (exit $ac_status); }; }; then
  25139. ac_cv_type_in_addr_t=yes
  25140. else
  25141. echo "$as_me: failed program was:" >&5
  25142. sed 's/^/| /' conftest.$ac_ext >&5
  25143. ac_cv_type_in_addr_t=no
  25144. fi
  25145. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25146. fi
  25147. echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
  25148. echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6
  25149. if test $ac_cv_type_in_addr_t = yes; then
  25150. :
  25151. else
  25152. echo "$as_me:$LINENO: checking for in_addr_t equivalent" >&5
  25153. echo $ECHO_N "checking for in_addr_t equivalent... $ECHO_C" >&6
  25154. if test "${curl_cv_in_addr_t_equiv+set}" = set; then
  25155. echo $ECHO_N "(cached) $ECHO_C" >&6
  25156. else
  25157. curl_cv_in_addr_t_equiv=
  25158. for t in "unsigned long" int size_t unsigned long; do
  25159. cat >conftest.$ac_ext <<_ACEOF
  25160. /* confdefs.h. */
  25161. _ACEOF
  25162. cat confdefs.h >>conftest.$ac_ext
  25163. cat >>conftest.$ac_ext <<_ACEOF
  25164. /* end confdefs.h. */
  25165. #ifdef HAVE_SYS_TYPES_H
  25166. #include <sys/types.h>
  25167. #endif
  25168. #ifdef HAVE_SYS_SOCKET_H
  25169. #include <sys/socket.h>
  25170. #endif
  25171. #ifdef HAVE_ARPA_INET_H
  25172. #include <arpa/inet.h>
  25173. #endif
  25174. int
  25175. main ()
  25176. {
  25177. $t data = inet_addr ("1.2.3.4");
  25178. ;
  25179. return 0;
  25180. }
  25181. _ACEOF
  25182. rm -f conftest.$ac_objext
  25183. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25184. (eval $ac_compile) 2>conftest.er1
  25185. ac_status=$?
  25186. grep -v '^ *+' conftest.er1 >conftest.err
  25187. rm -f conftest.er1
  25188. cat conftest.err >&5
  25189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25190. (exit $ac_status); } &&
  25191. { ac_try='test -z "$ac_c_werror_flag"
  25192. || test ! -s conftest.err'
  25193. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25194. (eval $ac_try) 2>&5
  25195. ac_status=$?
  25196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25197. (exit $ac_status); }; } &&
  25198. { ac_try='test -s conftest.$ac_objext'
  25199. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25200. (eval $ac_try) 2>&5
  25201. ac_status=$?
  25202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25203. (exit $ac_status); }; }; then
  25204. curl_cv_in_addr_t_equiv="$t"
  25205. break
  25206. else
  25207. echo "$as_me: failed program was:" >&5
  25208. sed 's/^/| /' conftest.$ac_ext >&5
  25209. fi
  25210. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25211. done
  25212. if test "x$curl_cv_in_addr_t_equiv" = x; then
  25213. { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of in_addr_t" >&5
  25214. echo "$as_me: error: Cannot find a type to use in place of in_addr_t" >&2;}
  25215. { (exit 1); exit 1; }; }
  25216. fi
  25217. fi
  25218. echo "$as_me:$LINENO: result: $curl_cv_in_addr_t_equiv" >&5
  25219. echo "${ECHO_T}$curl_cv_in_addr_t_equiv" >&6
  25220. cat >>confdefs.h <<_ACEOF
  25221. #define in_addr_t $curl_cv_in_addr_t_equiv
  25222. _ACEOF
  25223. fi
  25224. for ac_header in sys/select.h sys/socket.h
  25225. do
  25226. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25227. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  25228. echo "$as_me:$LINENO: checking for $ac_header" >&5
  25229. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  25230. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  25231. echo $ECHO_N "(cached) $ECHO_C" >&6
  25232. fi
  25233. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  25234. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  25235. else
  25236. # Is the header compilable?
  25237. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  25238. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  25239. cat >conftest.$ac_ext <<_ACEOF
  25240. /* confdefs.h. */
  25241. _ACEOF
  25242. cat confdefs.h >>conftest.$ac_ext
  25243. cat >>conftest.$ac_ext <<_ACEOF
  25244. /* end confdefs.h. */
  25245. $ac_includes_default
  25246. #include <$ac_header>
  25247. _ACEOF
  25248. rm -f conftest.$ac_objext
  25249. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25250. (eval $ac_compile) 2>conftest.er1
  25251. ac_status=$?
  25252. grep -v '^ *+' conftest.er1 >conftest.err
  25253. rm -f conftest.er1
  25254. cat conftest.err >&5
  25255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25256. (exit $ac_status); } &&
  25257. { ac_try='test -z "$ac_c_werror_flag"
  25258. || test ! -s conftest.err'
  25259. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25260. (eval $ac_try) 2>&5
  25261. ac_status=$?
  25262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25263. (exit $ac_status); }; } &&
  25264. { ac_try='test -s conftest.$ac_objext'
  25265. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25266. (eval $ac_try) 2>&5
  25267. ac_status=$?
  25268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25269. (exit $ac_status); }; }; then
  25270. ac_header_compiler=yes
  25271. else
  25272. echo "$as_me: failed program was:" >&5
  25273. sed 's/^/| /' conftest.$ac_ext >&5
  25274. ac_header_compiler=no
  25275. fi
  25276. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25277. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25278. echo "${ECHO_T}$ac_header_compiler" >&6
  25279. # Is the header present?
  25280. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  25281. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  25282. cat >conftest.$ac_ext <<_ACEOF
  25283. /* confdefs.h. */
  25284. _ACEOF
  25285. cat confdefs.h >>conftest.$ac_ext
  25286. cat >>conftest.$ac_ext <<_ACEOF
  25287. /* end confdefs.h. */
  25288. #include <$ac_header>
  25289. _ACEOF
  25290. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  25291. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  25292. ac_status=$?
  25293. grep -v '^ *+' conftest.er1 >conftest.err
  25294. rm -f conftest.er1
  25295. cat conftest.err >&5
  25296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25297. (exit $ac_status); } >/dev/null; then
  25298. if test -s conftest.err; then
  25299. ac_cpp_err=$ac_c_preproc_warn_flag
  25300. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  25301. else
  25302. ac_cpp_err=
  25303. fi
  25304. else
  25305. ac_cpp_err=yes
  25306. fi
  25307. if test -z "$ac_cpp_err"; then
  25308. ac_header_preproc=yes
  25309. else
  25310. echo "$as_me: failed program was:" >&5
  25311. sed 's/^/| /' conftest.$ac_ext >&5
  25312. ac_header_preproc=no
  25313. fi
  25314. rm -f conftest.err conftest.$ac_ext
  25315. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25316. echo "${ECHO_T}$ac_header_preproc" >&6
  25317. # So? What about this header?
  25318. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25319. yes:no: )
  25320. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  25321. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25322. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  25323. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  25324. ac_header_preproc=yes
  25325. ;;
  25326. no:yes:* )
  25327. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  25328. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  25329. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  25330. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  25331. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  25332. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  25333. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  25334. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  25335. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  25336. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  25337. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  25338. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  25339. (
  25340. cat <<\_ASBOX
  25341. ## ------------------------------- ##
  25342. ## Report this to curl-bug@haxx.se ##
  25343. ## ------------------------------- ##
  25344. _ASBOX
  25345. ) |
  25346. sed "s/^/$as_me: WARNING: /" >&2
  25347. ;;
  25348. esac
  25349. echo "$as_me:$LINENO: checking for $ac_header" >&5
  25350. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  25351. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  25352. echo $ECHO_N "(cached) $ECHO_C" >&6
  25353. else
  25354. eval "$as_ac_Header=\$ac_header_preproc"
  25355. fi
  25356. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  25357. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  25358. fi
  25359. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  25360. cat >>confdefs.h <<_ACEOF
  25361. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25362. _ACEOF
  25363. fi
  25364. done
  25365. echo "$as_me:$LINENO: checking types of arguments for select" >&5
  25366. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  25367. if test "${ac_cv_func_select_args+set}" = set; then
  25368. echo $ECHO_N "(cached) $ECHO_C" >&6
  25369. else
  25370. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  25371. for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  25372. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  25373. cat >conftest.$ac_ext <<_ACEOF
  25374. /* confdefs.h. */
  25375. _ACEOF
  25376. cat confdefs.h >>conftest.$ac_ext
  25377. cat >>conftest.$ac_ext <<_ACEOF
  25378. /* end confdefs.h. */
  25379. $ac_includes_default
  25380. #if HAVE_SYS_SELECT_H
  25381. # include <sys/select.h>
  25382. #endif
  25383. #if HAVE_SYS_SOCKET_H
  25384. # include <sys/socket.h>
  25385. #endif
  25386. int
  25387. main ()
  25388. {
  25389. extern int select ($ac_arg1,
  25390. $ac_arg234, $ac_arg234, $ac_arg234,
  25391. $ac_arg5);
  25392. ;
  25393. return 0;
  25394. }
  25395. _ACEOF
  25396. rm -f conftest.$ac_objext
  25397. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25398. (eval $ac_compile) 2>conftest.er1
  25399. ac_status=$?
  25400. grep -v '^ *+' conftest.er1 >conftest.err
  25401. rm -f conftest.er1
  25402. cat conftest.err >&5
  25403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25404. (exit $ac_status); } &&
  25405. { ac_try='test -z "$ac_c_werror_flag"
  25406. || test ! -s conftest.err'
  25407. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25408. (eval $ac_try) 2>&5
  25409. ac_status=$?
  25410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25411. (exit $ac_status); }; } &&
  25412. { ac_try='test -s conftest.$ac_objext'
  25413. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25414. (eval $ac_try) 2>&5
  25415. ac_status=$?
  25416. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25417. (exit $ac_status); }; }; then
  25418. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  25419. else
  25420. echo "$as_me: failed program was:" >&5
  25421. sed 's/^/| /' conftest.$ac_ext >&5
  25422. fi
  25423. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25424. done
  25425. done
  25426. done
  25427. # Provide a safe default value.
  25428. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  25429. fi
  25430. echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  25431. echo "${ECHO_T}$ac_cv_func_select_args" >&6
  25432. ac_save_IFS=$IFS; IFS=','
  25433. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  25434. IFS=$ac_save_IFS
  25435. shift
  25436. cat >>confdefs.h <<_ACEOF
  25437. #define SELECT_TYPE_ARG1 $1
  25438. _ACEOF
  25439. cat >>confdefs.h <<_ACEOF
  25440. #define SELECT_TYPE_ARG234 ($2)
  25441. _ACEOF
  25442. cat >>confdefs.h <<_ACEOF
  25443. #define SELECT_TYPE_ARG5 ($3)
  25444. _ACEOF
  25445. rm -f conftest*
  25446. echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  25447. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
  25448. if test "${ac_cv_type_signal+set}" = set; then
  25449. echo $ECHO_N "(cached) $ECHO_C" >&6
  25450. else
  25451. cat >conftest.$ac_ext <<_ACEOF
  25452. /* confdefs.h. */
  25453. _ACEOF
  25454. cat confdefs.h >>conftest.$ac_ext
  25455. cat >>conftest.$ac_ext <<_ACEOF
  25456. /* end confdefs.h. */
  25457. #include <sys/types.h>
  25458. #include <signal.h>
  25459. #ifdef signal
  25460. # undef signal
  25461. #endif
  25462. #ifdef __cplusplus
  25463. extern "C" void (*signal (int, void (*)(int)))(int);
  25464. #else
  25465. void (*signal ()) ();
  25466. #endif
  25467. int
  25468. main ()
  25469. {
  25470. int i;
  25471. ;
  25472. return 0;
  25473. }
  25474. _ACEOF
  25475. rm -f conftest.$ac_objext
  25476. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25477. (eval $ac_compile) 2>conftest.er1
  25478. ac_status=$?
  25479. grep -v '^ *+' conftest.er1 >conftest.err
  25480. rm -f conftest.er1
  25481. cat conftest.err >&5
  25482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25483. (exit $ac_status); } &&
  25484. { ac_try='test -z "$ac_c_werror_flag"
  25485. || test ! -s conftest.err'
  25486. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25487. (eval $ac_try) 2>&5
  25488. ac_status=$?
  25489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25490. (exit $ac_status); }; } &&
  25491. { ac_try='test -s conftest.$ac_objext'
  25492. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25493. (eval $ac_try) 2>&5
  25494. ac_status=$?
  25495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25496. (exit $ac_status); }; }; then
  25497. ac_cv_type_signal=void
  25498. else
  25499. echo "$as_me: failed program was:" >&5
  25500. sed 's/^/| /' conftest.$ac_ext >&5
  25501. ac_cv_type_signal=int
  25502. fi
  25503. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25504. fi
  25505. echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  25506. echo "${ECHO_T}$ac_cv_type_signal" >&6
  25507. cat >>confdefs.h <<_ACEOF
  25508. #define RETSIGTYPE $ac_cv_type_signal
  25509. _ACEOF
  25510. for ac_func in strtoll \
  25511. socket \
  25512. select \
  25513. strdup \
  25514. strstr \
  25515. strtok_r \
  25516. strftime \
  25517. uname \
  25518. strcasecmp \
  25519. stricmp \
  25520. strcmpi \
  25521. gethostbyaddr \
  25522. gettimeofday \
  25523. inet_addr \
  25524. inet_ntoa \
  25525. inet_pton \
  25526. tcsetattr \
  25527. tcgetattr \
  25528. perror \
  25529. closesocket \
  25530. siginterrupt \
  25531. sigaction \
  25532. signal \
  25533. getpass_r \
  25534. strlcat \
  25535. getpwuid \
  25536. geteuid \
  25537. dlopen \
  25538. utime \
  25539. sigsetjmp \
  25540. poll
  25541. do
  25542. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  25543. echo "$as_me:$LINENO: checking for $ac_func" >&5
  25544. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  25545. if eval "test \"\${$as_ac_var+set}\" = set"; then
  25546. echo $ECHO_N "(cached) $ECHO_C" >&6
  25547. else
  25548. cat >conftest.$ac_ext <<_ACEOF
  25549. /* confdefs.h. */
  25550. _ACEOF
  25551. cat confdefs.h >>conftest.$ac_ext
  25552. cat >>conftest.$ac_ext <<_ACEOF
  25553. /* end confdefs.h. */
  25554. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  25555. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  25556. #define $ac_func innocuous_$ac_func
  25557. /* System header to define __stub macros and hopefully few prototypes,
  25558. which can conflict with char $ac_func (); below.
  25559. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  25560. <limits.h> exists even on freestanding compilers. */
  25561. #ifdef __STDC__
  25562. # include <limits.h>
  25563. #else
  25564. # include <assert.h>
  25565. #endif
  25566. #undef $ac_func
  25567. /* Override any gcc2 internal prototype to avoid an error. */
  25568. #ifdef __cplusplus
  25569. extern "C"
  25570. {
  25571. #endif
  25572. /* We use char because int might match the return type of a gcc2
  25573. builtin and then its argument prototype would still apply. */
  25574. char $ac_func ();
  25575. /* The GNU C library defines this for functions which it implements
  25576. to always fail with ENOSYS. Some functions are actually named
  25577. something starting with __ and the normal name is an alias. */
  25578. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  25579. choke me
  25580. #else
  25581. char (*f) () = $ac_func;
  25582. #endif
  25583. #ifdef __cplusplus
  25584. }
  25585. #endif
  25586. int
  25587. main ()
  25588. {
  25589. return f != $ac_func;
  25590. ;
  25591. return 0;
  25592. }
  25593. _ACEOF
  25594. rm -f conftest.$ac_objext conftest$ac_exeext
  25595. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25596. (eval $ac_link) 2>conftest.er1
  25597. ac_status=$?
  25598. grep -v '^ *+' conftest.er1 >conftest.err
  25599. rm -f conftest.er1
  25600. cat conftest.err >&5
  25601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25602. (exit $ac_status); } &&
  25603. { ac_try='test -z "$ac_c_werror_flag"
  25604. || test ! -s conftest.err'
  25605. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25606. (eval $ac_try) 2>&5
  25607. ac_status=$?
  25608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25609. (exit $ac_status); }; } &&
  25610. { ac_try='test -s conftest$ac_exeext'
  25611. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25612. (eval $ac_try) 2>&5
  25613. ac_status=$?
  25614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25615. (exit $ac_status); }; }; then
  25616. eval "$as_ac_var=yes"
  25617. else
  25618. echo "$as_me: failed program was:" >&5
  25619. sed 's/^/| /' conftest.$ac_ext >&5
  25620. eval "$as_ac_var=no"
  25621. fi
  25622. rm -f conftest.err conftest.$ac_objext \
  25623. conftest$ac_exeext conftest.$ac_ext
  25624. fi
  25625. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  25626. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  25627. if test `eval echo '${'$as_ac_var'}'` = yes; then
  25628. cat >>confdefs.h <<_ACEOF
  25629. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  25630. _ACEOF
  25631. else
  25632. func="$ac_func"
  25633. echo "$as_me:$LINENO: checking deeper for $func" >&5
  25634. echo $ECHO_N "checking deeper for $func... $ECHO_C" >&6
  25635. cat >conftest.$ac_ext <<_ACEOF
  25636. /* confdefs.h. */
  25637. _ACEOF
  25638. cat confdefs.h >>conftest.$ac_ext
  25639. cat >>conftest.$ac_ext <<_ACEOF
  25640. /* end confdefs.h. */
  25641. int
  25642. main ()
  25643. {
  25644. $func ();
  25645. ;
  25646. return 0;
  25647. }
  25648. _ACEOF
  25649. rm -f conftest.$ac_objext conftest$ac_exeext
  25650. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25651. (eval $ac_link) 2>conftest.er1
  25652. ac_status=$?
  25653. grep -v '^ *+' conftest.er1 >conftest.err
  25654. rm -f conftest.er1
  25655. cat conftest.err >&5
  25656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25657. (exit $ac_status); } &&
  25658. { ac_try='test -z "$ac_c_werror_flag"
  25659. || test ! -s conftest.err'
  25660. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25661. (eval $ac_try) 2>&5
  25662. ac_status=$?
  25663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25664. (exit $ac_status); }; } &&
  25665. { ac_try='test -s conftest$ac_exeext'
  25666. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25667. (eval $ac_try) 2>&5
  25668. ac_status=$?
  25669. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25670. (exit $ac_status); }; }; then
  25671. echo "$as_me:$LINENO: result: yes!" >&5
  25672. echo "${ECHO_T}yes!" >&6
  25673. eval "ac_cv_func_$func=yes"
  25674. def=`echo "HAVE_$func" | tr 'a-z' 'A-Z'`
  25675. cat >>confdefs.h <<_ACEOF
  25676. #define $def 1
  25677. _ACEOF
  25678. else
  25679. echo "$as_me: failed program was:" >&5
  25680. sed 's/^/| /' conftest.$ac_ext >&5
  25681. echo "$as_me:$LINENO: result: but still no" >&5
  25682. echo "${ECHO_T}but still no" >&6
  25683. fi
  25684. rm -f conftest.err conftest.$ac_objext \
  25685. conftest$ac_exeext conftest.$ac_ext
  25686. fi
  25687. done
  25688. if test "$ac_cv_func_sigsetjmp" != "yes"; then
  25689. echo "$as_me:$LINENO: checking for sigsetjmp defined as macro" >&5
  25690. echo $ECHO_N "checking for sigsetjmp defined as macro... $ECHO_C" >&6
  25691. cat >conftest.$ac_ext <<_ACEOF
  25692. /* confdefs.h. */
  25693. _ACEOF
  25694. cat confdefs.h >>conftest.$ac_ext
  25695. cat >>conftest.$ac_ext <<_ACEOF
  25696. /* end confdefs.h. */
  25697. #include <setjmp.h>
  25698. int
  25699. main ()
  25700. {
  25701. sigjmp_buf jmpenv;
  25702. sigsetjmp(jmpenv, 1);
  25703. ;
  25704. return 0;
  25705. }
  25706. _ACEOF
  25707. rm -f conftest.$ac_objext conftest$ac_exeext
  25708. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25709. (eval $ac_link) 2>conftest.er1
  25710. ac_status=$?
  25711. grep -v '^ *+' conftest.er1 >conftest.err
  25712. rm -f conftest.er1
  25713. cat conftest.err >&5
  25714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25715. (exit $ac_status); } &&
  25716. { ac_try='test -z "$ac_c_werror_flag"
  25717. || test ! -s conftest.err'
  25718. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25719. (eval $ac_try) 2>&5
  25720. ac_status=$?
  25721. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25722. (exit $ac_status); }; } &&
  25723. { ac_try='test -s conftest$ac_exeext'
  25724. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25725. (eval $ac_try) 2>&5
  25726. ac_status=$?
  25727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25728. (exit $ac_status); }; }; then
  25729. echo "$as_me:$LINENO: result: yes" >&5
  25730. echo "${ECHO_T}yes" >&6
  25731. cat >>confdefs.h <<\_ACEOF
  25732. #define HAVE_SIGSETJMP 1
  25733. _ACEOF
  25734. else
  25735. echo "$as_me: failed program was:" >&5
  25736. sed 's/^/| /' conftest.$ac_ext >&5
  25737. echo "$as_me:$LINENO: result: no" >&5
  25738. echo "${ECHO_T}no" >&6
  25739. fi
  25740. rm -f conftest.err conftest.$ac_objext \
  25741. conftest$ac_exeext conftest.$ac_ext
  25742. fi
  25743. # Extract the first word of "perl", so it can be a program name with args.
  25744. set dummy perl; ac_word=$2
  25745. echo "$as_me:$LINENO: checking for $ac_word" >&5
  25746. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  25747. if test "${ac_cv_path_PERL+set}" = set; then
  25748. echo $ECHO_N "(cached) $ECHO_C" >&6
  25749. else
  25750. case $PERL in
  25751. [\\/]* | ?:[\\/]*)
  25752. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  25753. ;;
  25754. *)
  25755. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25756. as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
  25757. for as_dir in $as_dummy
  25758. do
  25759. IFS=$as_save_IFS
  25760. test -z "$as_dir" && as_dir=.
  25761. for ac_exec_ext in '' $ac_executable_extensions; do
  25762. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25763. ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
  25764. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  25765. break 2
  25766. fi
  25767. done
  25768. done
  25769. ;;
  25770. esac
  25771. fi
  25772. PERL=$ac_cv_path_PERL
  25773. if test -n "$PERL"; then
  25774. echo "$as_me:$LINENO: result: $PERL" >&5
  25775. echo "${ECHO_T}$PERL" >&6
  25776. else
  25777. echo "$as_me:$LINENO: result: no" >&5
  25778. echo "${ECHO_T}no" >&6
  25779. fi
  25780. for ac_prog in gnroff nroff
  25781. do
  25782. # Extract the first word of "$ac_prog", so it can be a program name with args.
  25783. set dummy $ac_prog; ac_word=$2
  25784. echo "$as_me:$LINENO: checking for $ac_word" >&5
  25785. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  25786. if test "${ac_cv_path_NROFF+set}" = set; then
  25787. echo $ECHO_N "(cached) $ECHO_C" >&6
  25788. else
  25789. case $NROFF in
  25790. [\\/]* | ?:[\\/]*)
  25791. ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
  25792. ;;
  25793. *)
  25794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25795. as_dummy="$PATH:/usr/bin/:/usr/local/bin "
  25796. for as_dir in $as_dummy
  25797. do
  25798. IFS=$as_save_IFS
  25799. test -z "$as_dir" && as_dir=.
  25800. for ac_exec_ext in '' $ac_executable_extensions; do
  25801. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25802. ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
  25803. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  25804. break 2
  25805. fi
  25806. done
  25807. done
  25808. ;;
  25809. esac
  25810. fi
  25811. NROFF=$ac_cv_path_NROFF
  25812. if test -n "$NROFF"; then
  25813. echo "$as_me:$LINENO: result: $NROFF" >&5
  25814. echo "${ECHO_T}$NROFF" >&6
  25815. else
  25816. echo "$as_me:$LINENO: result: no" >&5
  25817. echo "${ECHO_T}no" >&6
  25818. fi
  25819. test -n "$NROFF" && break
  25820. done
  25821. if test -n "$NROFF"; then
  25822. echo "$as_me:$LINENO: checking how to use *nroff to get plain text from man pages" >&5
  25823. echo $ECHO_N "checking how to use *nroff to get plain text from man pages... $ECHO_C" >&6
  25824. MANOPT="-man"
  25825. mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
  25826. if test -z "$mancheck"; then
  25827. MANOPT="-mandoc"
  25828. mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
  25829. if test -z "$mancheck"; then
  25830. MANOPT=""
  25831. echo "$as_me:$LINENO: result: failed" >&5
  25832. echo "${ECHO_T}failed" >&6
  25833. { echo "$as_me:$LINENO: WARNING: found no *nroff option to get plaintext from man pages" >&5
  25834. echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
  25835. else
  25836. echo "$as_me:$LINENO: result: $MANOPT" >&5
  25837. echo "${ECHO_T}$MANOPT" >&6
  25838. fi
  25839. else
  25840. echo "$as_me:$LINENO: result: $MANOPT" >&5
  25841. echo "${ECHO_T}$MANOPT" >&6
  25842. fi
  25843. fi
  25844. if test -z "$MANOPT"
  25845. then
  25846. { echo "$as_me:$LINENO: WARNING: disabling built-in manual" >&5
  25847. echo "$as_me: WARNING: disabling built-in manual" >&2;}
  25848. USE_MANUAL="no";
  25849. fi
  25850. for ac_prog in 'bison -y' byacc
  25851. do
  25852. # Extract the first word of "$ac_prog", so it can be a program name with args.
  25853. set dummy $ac_prog; ac_word=$2
  25854. echo "$as_me:$LINENO: checking for $ac_word" >&5
  25855. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  25856. if test "${ac_cv_prog_YACC+set}" = set; then
  25857. echo $ECHO_N "(cached) $ECHO_C" >&6
  25858. else
  25859. if test -n "$YACC"; then
  25860. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  25861. else
  25862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25863. for as_dir in $PATH
  25864. do
  25865. IFS=$as_save_IFS
  25866. test -z "$as_dir" && as_dir=.
  25867. for ac_exec_ext in '' $ac_executable_extensions; do
  25868. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25869. ac_cv_prog_YACC="$ac_prog"
  25870. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  25871. break 2
  25872. fi
  25873. done
  25874. done
  25875. fi
  25876. fi
  25877. YACC=$ac_cv_prog_YACC
  25878. if test -n "$YACC"; then
  25879. echo "$as_me:$LINENO: result: $YACC" >&5
  25880. echo "${ECHO_T}$YACC" >&6
  25881. else
  25882. echo "$as_me:$LINENO: result: no" >&5
  25883. echo "${ECHO_T}no" >&6
  25884. fi
  25885. test -n "$YACC" && break
  25886. done
  25887. test -n "$YACC" || YACC="yacc"
  25888. if test -z "$YACC"
  25889. then
  25890. echo "$as_me:$LINENO: checking if OK to build without bison/yacc" >&5
  25891. echo $ECHO_N "checking if OK to build without bison/yacc... $ECHO_C" >&6
  25892. if test -r "$srcdir/lib/getdate.c"
  25893. then
  25894. echo "$as_me:$LINENO: result: yes" >&5
  25895. echo "${ECHO_T}yes" >&6
  25896. else
  25897. echo "$as_me:$LINENO: result: no" >&5
  25898. echo "${ECHO_T}no" >&6
  25899. { { echo "$as_me:$LINENO: error: no yacc or bison found, can't build libcurl!" >&5
  25900. echo "$as_me: error: no yacc or bison found, can't build libcurl!" >&2;}
  25901. { (exit 1); exit 1; }; }
  25902. fi
  25903. fi
  25904. if test "$USE_MANUAL" = "1"; then
  25905. cat >>confdefs.h <<\_ACEOF
  25906. #define USE_MANUAL 1
  25907. _ACEOF
  25908. fi
  25909. if test x"$USE_MANUAL" = x1; then
  25910. USE_MANUAL_TRUE=
  25911. USE_MANUAL_FALSE='#'
  25912. else
  25913. USE_MANUAL_TRUE='#'
  25914. USE_MANUAL_FALSE=
  25915. fi
  25916. echo "$as_me:$LINENO: checking whether to enable debug options" >&5
  25917. echo $ECHO_N "checking whether to enable debug options... $ECHO_C" >&6
  25918. # Check whether --enable-debug or --disable-debug was given.
  25919. if test "${enable_debug+set}" = set; then
  25920. enableval="$enable_debug"
  25921. case "$enableval" in
  25922. no)
  25923. echo "$as_me:$LINENO: result: no" >&5
  25924. echo "${ECHO_T}no" >&6
  25925. ;;
  25926. *) echo "$as_me:$LINENO: result: yes" >&5
  25927. echo "${ECHO_T}yes" >&6
  25928. CPPFLAGS="$CPPFLAGS -DCURLDEBUG"
  25929. CFLAGS="$CFLAGS -g"
  25930. if test "$GCC" = "yes"; then
  25931. echo "$as_me:$LINENO: checking gcc version" >&5
  25932. echo $ECHO_N "checking gcc version... $ECHO_C" >&6
  25933. gccver=`$CC -dumpversion`
  25934. num1=`echo $gccver | cut -d . -f1`
  25935. num2=`echo $gccver | cut -d . -f2`
  25936. gccnum=`(expr $num1 "*" 100 + $num2) 2>/dev/null`
  25937. echo "$as_me:$LINENO: result: $gccver" >&5
  25938. echo "${ECHO_T}$gccver" >&6
  25939. echo "$as_me:$LINENO: checking if this is icc in disguise" >&5
  25940. echo $ECHO_N "checking if this is icc in disguise... $ECHO_C" >&6
  25941. cat >conftest.$ac_ext <<_ACEOF
  25942. /* confdefs.h. */
  25943. _ACEOF
  25944. cat confdefs.h >>conftest.$ac_ext
  25945. cat >>conftest.$ac_ext <<_ACEOF
  25946. /* end confdefs.h. */
  25947. __INTEL_COMPILER
  25948. _ACEOF
  25949. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25950. $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then
  25951. ICC="no"
  25952. echo "$as_me:$LINENO: result: no" >&5
  25953. echo "${ECHO_T}no" >&6
  25954. else
  25955. ICC="yes"
  25956. echo "$as_me:$LINENO: result: yes" >&5
  25957. echo "${ECHO_T}yes" >&6
  25958. fi
  25959. rm -f conftest*
  25960. if test "$ICC" = "yes"; then
  25961. WARN="-wd279,269,1419,981"
  25962. if test "$gccnum" -gt "600"; then
  25963. WARN="-Wall $WARN"
  25964. fi
  25965. else WARN="-W -Wall -Wwrite-strings -pedantic -Wno-long-long -Wpointer-arith -Wnested-externs -Winline -Wmissing-declarations -Wmissing-prototypes -Wsign-compare"
  25966. if test "$gccnum" -gt "295"; then
  25967. WARN="$WARN -Wundef"
  25968. fi
  25969. if test "$gccnum" -ge "296"; then
  25970. WARN="$WARN -Wfloat-equal"
  25971. fi
  25972. if test "$gccnum" -gt "296"; then
  25973. WARN="$WARN -Wno-format-nonliteral"
  25974. fi
  25975. if test "$gccnum" -ge "303"; then
  25976. WARN="$WARN -Wendif-labels -Wstrict-prototypes"
  25977. fi
  25978. for flag in $CPPFLAGS; do
  25979. case "$flag" in
  25980. -I*)
  25981. add=`echo $flag | sed 's/^-I/-isystem /g'`
  25982. WARN="$WARN $add"
  25983. ;;
  25984. esac
  25985. done
  25986. fi
  25987. CFLAGS="$CFLAGS $WARN"
  25988. { echo "$as_me:$LINENO: Added this set of compiler options: $WARN" >&5
  25989. echo "$as_me: Added this set of compiler options: $WARN" >&6;}
  25990. else
  25991. { echo "$as_me:$LINENO: Added no extra compiler options" >&5
  25992. echo "$as_me: Added no extra compiler options" >&6;}
  25993. fi
  25994. NEWFLAGS=""
  25995. for flag in $CFLAGS; do
  25996. case "$flag" in
  25997. -O*)
  25998. ;;
  25999. *)
  26000. NEWFLAGS="$NEWFLAGS $flag"
  26001. ;;
  26002. esac
  26003. done
  26004. CFLAGS=$NEWFLAGS
  26005. ;;
  26006. esac
  26007. else
  26008. echo "$as_me:$LINENO: result: no" >&5
  26009. echo "${ECHO_T}no" >&6
  26010. fi;
  26011. echo "$as_me:$LINENO: checking whether to enable ares" >&5
  26012. echo $ECHO_N "checking whether to enable ares... $ECHO_C" >&6
  26013. # Check whether --enable-ares or --disable-ares was given.
  26014. if test "${enable_ares+set}" = set; then
  26015. enableval="$enable_ares"
  26016. case "$enableval" in
  26017. no)
  26018. echo "$as_me:$LINENO: result: no" >&5
  26019. echo "${ECHO_T}no" >&6
  26020. ;;
  26021. *) echo "$as_me:$LINENO: result: yes" >&5
  26022. echo "${ECHO_T}yes" >&6
  26023. if test "x$IPV6_ENABLED" = "x1"; then
  26024. { { echo "$as_me:$LINENO: error: ares doesn't work with ipv6, disable ipv6 to use ares" >&5
  26025. echo "$as_me: error: ares doesn't work with ipv6, disable ipv6 to use ares" >&2;}
  26026. { (exit 1); exit 1; }; }
  26027. fi
  26028. cat >>confdefs.h <<\_ACEOF
  26029. #define USE_ARES 1
  26030. _ACEOF
  26031. HAVE_ARES="1"
  26032. LIBS="$LIBS -lcares"
  26033. if test "x$enableval" = "xyes" ; then
  26034. if test -d "$srcdir/ares"; then
  26035. subdirs="$subdirs ares"
  26036. aresinc=`cd $srcdir/ares && pwd`
  26037. CPPFLAGS="$CPPFLAGS -I$aresinc"
  26038. pwd=`pwd`
  26039. LDFLAGS="$LDFLAGS -L$pwd/ares"
  26040. fi
  26041. else
  26042. CPPFLAGS="$CPPFLAGS -I$enableval/include"
  26043. LDFLAGS="$LDFLAGS -L$enableval/lib"
  26044. fi
  26045. ;;
  26046. esac
  26047. else
  26048. echo "$as_me:$LINENO: result: no" >&5
  26049. echo "${ECHO_T}no" >&6
  26050. fi;
  26051. ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile tests/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile packages/Makefile packages/Win32/Makefile packages/Win32/cygwin/Makefile packages/Linux/Makefile packages/Linux/RPM/Makefile packages/Linux/RPM/curl.spec packages/Linux/RPM/curl-ssl.spec packages/Solaris/Makefile packages/DOS/Makefile packages/EPM/curl.list packages/EPM/Makefile packages/vms/Makefile curl-config"
  26052. cat >confcache <<\_ACEOF
  26053. # This file is a shell script that caches the results of configure
  26054. # tests run on this system so they can be shared between configure
  26055. # scripts and configure runs, see configure's option --config-cache.
  26056. # It is not useful on other systems. If it contains results you don't
  26057. # want to keep, you may remove or edit it.
  26058. #
  26059. # config.status only pays attention to the cache file if you give it
  26060. # the --recheck option to rerun configure.
  26061. #
  26062. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  26063. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  26064. # following values.
  26065. _ACEOF
  26066. # The following way of writing the cache mishandles newlines in values,
  26067. # but we know of no workaround that is simple, portable, and efficient.
  26068. # So, don't put newlines in cache variables' values.
  26069. # Ultrix sh set writes to stderr and can't be redirected directly,
  26070. # and sets the high bit in the cache file unless we assign to the vars.
  26071. {
  26072. (set) 2>&1 |
  26073. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  26074. *ac_space=\ *)
  26075. # `set' does not quote correctly, so add quotes (double-quote
  26076. # substitution turns \\\\ into \\, and sed turns \\ into \).
  26077. sed -n \
  26078. "s/'/'\\\\''/g;
  26079. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  26080. ;;
  26081. *)
  26082. # `set' quotes correctly as required by POSIX, so do not add quotes.
  26083. sed -n \
  26084. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  26085. ;;
  26086. esac;
  26087. } |
  26088. sed '
  26089. t clear
  26090. : clear
  26091. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  26092. t end
  26093. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  26094. : end' >>confcache
  26095. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  26096. if test -w $cache_file; then
  26097. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  26098. cat confcache >$cache_file
  26099. else
  26100. echo "not updating unwritable cache $cache_file"
  26101. fi
  26102. fi
  26103. rm -f confcache
  26104. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  26105. # Let make expand exec_prefix.
  26106. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  26107. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  26108. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  26109. # trailing colons and then remove the whole line if VPATH becomes empty
  26110. # (actually we leave an empty line to preserve line numbers).
  26111. if test "x$srcdir" = x.; then
  26112. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  26113. s/:*\$(srcdir):*/:/;
  26114. s/:*\${srcdir}:*/:/;
  26115. s/:*@srcdir@:*/:/;
  26116. s/^\([^=]*=[ ]*\):*/\1/;
  26117. s/:*$//;
  26118. s/^[^=]*=[ ]*$//;
  26119. }'
  26120. fi
  26121. DEFS=-DHAVE_CONFIG_H
  26122. ac_libobjs=
  26123. ac_ltlibobjs=
  26124. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  26125. # 1. Remove the extension, and $U if already installed.
  26126. ac_i=`echo "$ac_i" |
  26127. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  26128. # 2. Add them.
  26129. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  26130. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  26131. done
  26132. LIBOBJS=$ac_libobjs
  26133. LTLIBOBJS=$ac_ltlibobjs
  26134. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  26135. { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  26136. Usually this means the macro was only invoked conditionally." >&5
  26137. echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  26138. Usually this means the macro was only invoked conditionally." >&2;}
  26139. { (exit 1); exit 1; }; }
  26140. fi
  26141. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  26142. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  26143. Usually this means the macro was only invoked conditionally." >&5
  26144. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  26145. Usually this means the macro was only invoked conditionally." >&2;}
  26146. { (exit 1); exit 1; }; }
  26147. fi
  26148. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  26149. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  26150. Usually this means the macro was only invoked conditionally." >&5
  26151. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  26152. Usually this means the macro was only invoked conditionally." >&2;}
  26153. { (exit 1); exit 1; }; }
  26154. fi
  26155. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  26156. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  26157. Usually this means the macro was only invoked conditionally." >&5
  26158. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  26159. Usually this means the macro was only invoked conditionally." >&2;}
  26160. { (exit 1); exit 1; }; }
  26161. fi
  26162. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  26163. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  26164. Usually this means the macro was only invoked conditionally." >&5
  26165. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  26166. Usually this means the macro was only invoked conditionally." >&2;}
  26167. { (exit 1); exit 1; }; }
  26168. fi
  26169. if test -z "${NO_UNDEFINED_TRUE}" && test -z "${NO_UNDEFINED_FALSE}"; then
  26170. { { echo "$as_me:$LINENO: error: conditional \"NO_UNDEFINED\" was never defined.
  26171. Usually this means the macro was only invoked conditionally." >&5
  26172. echo "$as_me: error: conditional \"NO_UNDEFINED\" was never defined.
  26173. Usually this means the macro was only invoked conditionally." >&2;}
  26174. { (exit 1); exit 1; }; }
  26175. fi
  26176. if test -z "${MIMPURE_TRUE}" && test -z "${MIMPURE_FALSE}"; then
  26177. { { echo "$as_me:$LINENO: error: conditional \"MIMPURE\" was never defined.
  26178. Usually this means the macro was only invoked conditionally." >&5
  26179. echo "$as_me: error: conditional \"MIMPURE\" was never defined.
  26180. Usually this means the macro was only invoked conditionally." >&2;}
  26181. { (exit 1); exit 1; }; }
  26182. fi
  26183. if test -z "${CABUNDLE_TRUE}" && test -z "${CABUNDLE_FALSE}"; then
  26184. { { echo "$as_me:$LINENO: error: conditional \"CABUNDLE\" was never defined.
  26185. Usually this means the macro was only invoked conditionally." >&5
  26186. echo "$as_me: error: conditional \"CABUNDLE\" was never defined.
  26187. Usually this means the macro was only invoked conditionally." >&2;}
  26188. { (exit 1); exit 1; }; }
  26189. fi
  26190. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  26191. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBZ\" was never defined.
  26192. Usually this means the macro was only invoked conditionally." >&5
  26193. echo "$as_me: error: conditional \"HAVE_LIBZ\" was never defined.
  26194. Usually this means the macro was only invoked conditionally." >&2;}
  26195. { (exit 1); exit 1; }; }
  26196. fi
  26197. if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
  26198. { { echo "$as_me:$LINENO: error: conditional \"USE_MANUAL\" was never defined.
  26199. Usually this means the macro was only invoked conditionally." >&5
  26200. echo "$as_me: error: conditional \"USE_MANUAL\" was never defined.
  26201. Usually this means the macro was only invoked conditionally." >&2;}
  26202. { (exit 1); exit 1; }; }
  26203. fi
  26204. : ${CONFIG_STATUS=./config.status}
  26205. ac_clean_files_save=$ac_clean_files
  26206. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  26207. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  26208. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  26209. cat >$CONFIG_STATUS <<_ACEOF
  26210. #! $SHELL
  26211. # Generated by $as_me.
  26212. # Run this file to recreate the current configuration.
  26213. # Compiler output produced by configure, useful for debugging
  26214. # configure, is in config.log if it exists.
  26215. debug=false
  26216. ac_cs_recheck=false
  26217. ac_cs_silent=false
  26218. SHELL=\${CONFIG_SHELL-$SHELL}
  26219. _ACEOF
  26220. cat >>$CONFIG_STATUS <<\_ACEOF
  26221. ## --------------------- ##
  26222. ## M4sh Initialization. ##
  26223. ## --------------------- ##
  26224. # Be Bourne compatible
  26225. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  26226. emulate sh
  26227. NULLCMD=:
  26228. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  26229. # is contrary to our usage. Disable this feature.
  26230. alias -g '${1+"$@"}'='"$@"'
  26231. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  26232. set -o posix
  26233. fi
  26234. DUALCASE=1; export DUALCASE # for MKS sh
  26235. # Support unset when possible.
  26236. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  26237. as_unset=unset
  26238. else
  26239. as_unset=false
  26240. fi
  26241. # Work around bugs in pre-3.0 UWIN ksh.
  26242. $as_unset ENV MAIL MAILPATH
  26243. PS1='$ '
  26244. PS2='> '
  26245. PS4='+ '
  26246. # NLS nuisances.
  26247. for as_var in \
  26248. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  26249. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  26250. LC_TELEPHONE LC_TIME
  26251. do
  26252. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  26253. eval $as_var=C; export $as_var
  26254. else
  26255. $as_unset $as_var
  26256. fi
  26257. done
  26258. # Required to use basename.
  26259. if expr a : '\(a\)' >/dev/null 2>&1; then
  26260. as_expr=expr
  26261. else
  26262. as_expr=false
  26263. fi
  26264. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  26265. as_basename=basename
  26266. else
  26267. as_basename=false
  26268. fi
  26269. # Name of the executable.
  26270. as_me=`$as_basename "$0" ||
  26271. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  26272. X"$0" : 'X\(//\)$' \| \
  26273. X"$0" : 'X\(/\)$' \| \
  26274. . : '\(.\)' 2>/dev/null ||
  26275. echo X/"$0" |
  26276. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  26277. /^X\/\(\/\/\)$/{ s//\1/; q; }
  26278. /^X\/\(\/\).*/{ s//\1/; q; }
  26279. s/.*/./; q'`
  26280. # PATH needs CR, and LINENO needs CR and PATH.
  26281. # Avoid depending upon Character Ranges.
  26282. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  26283. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  26284. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  26285. as_cr_digits='0123456789'
  26286. as_cr_alnum=$as_cr_Letters$as_cr_digits
  26287. # The user is always right.
  26288. if test "${PATH_SEPARATOR+set}" != set; then
  26289. echo "#! /bin/sh" >conf$$.sh
  26290. echo "exit 0" >>conf$$.sh
  26291. chmod +x conf$$.sh
  26292. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  26293. PATH_SEPARATOR=';'
  26294. else
  26295. PATH_SEPARATOR=:
  26296. fi
  26297. rm -f conf$$.sh
  26298. fi
  26299. as_lineno_1=$LINENO
  26300. as_lineno_2=$LINENO
  26301. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  26302. test "x$as_lineno_1" != "x$as_lineno_2" &&
  26303. test "x$as_lineno_3" = "x$as_lineno_2" || {
  26304. # Find who we are. Look in the path if we contain no path at all
  26305. # relative or not.
  26306. case $0 in
  26307. *[\\/]* ) as_myself=$0 ;;
  26308. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26309. for as_dir in $PATH
  26310. do
  26311. IFS=$as_save_IFS
  26312. test -z "$as_dir" && as_dir=.
  26313. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  26314. done
  26315. ;;
  26316. esac
  26317. # We did not find ourselves, most probably we were run as `sh COMMAND'
  26318. # in which case we are not to be found in the path.
  26319. if test "x$as_myself" = x; then
  26320. as_myself=$0
  26321. fi
  26322. if test ! -f "$as_myself"; then
  26323. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  26324. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  26325. { (exit 1); exit 1; }; }
  26326. fi
  26327. case $CONFIG_SHELL in
  26328. '')
  26329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26330. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  26331. do
  26332. IFS=$as_save_IFS
  26333. test -z "$as_dir" && as_dir=.
  26334. for as_base in sh bash ksh sh5; do
  26335. case $as_dir in
  26336. /*)
  26337. if ("$as_dir/$as_base" -c '
  26338. as_lineno_1=$LINENO
  26339. as_lineno_2=$LINENO
  26340. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  26341. test "x$as_lineno_1" != "x$as_lineno_2" &&
  26342. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  26343. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  26344. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  26345. CONFIG_SHELL=$as_dir/$as_base
  26346. export CONFIG_SHELL
  26347. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  26348. fi;;
  26349. esac
  26350. done
  26351. done
  26352. ;;
  26353. esac
  26354. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  26355. # uniformly replaced by the line number. The first 'sed' inserts a
  26356. # line-number line before each line; the second 'sed' does the real
  26357. # work. The second script uses 'N' to pair each line-number line
  26358. # with the numbered line, and appends trailing '-' during
  26359. # substitution so that $LINENO is not a special case at line end.
  26360. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  26361. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  26362. sed '=' <$as_myself |
  26363. sed '
  26364. N
  26365. s,$,-,
  26366. : loop
  26367. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  26368. t loop
  26369. s,-$,,
  26370. s,^['$as_cr_digits']*\n,,
  26371. ' >$as_me.lineno &&
  26372. chmod +x $as_me.lineno ||
  26373. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  26374. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  26375. { (exit 1); exit 1; }; }
  26376. # Don't try to exec as it changes $[0], causing all sort of problems
  26377. # (the dirname of $[0] is not the place where we might find the
  26378. # original and so on. Autoconf is especially sensible to this).
  26379. . ./$as_me.lineno
  26380. # Exit status is that of the last command.
  26381. exit
  26382. }
  26383. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  26384. *c*,-n*) ECHO_N= ECHO_C='
  26385. ' ECHO_T=' ' ;;
  26386. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  26387. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  26388. esac
  26389. if expr a : '\(a\)' >/dev/null 2>&1; then
  26390. as_expr=expr
  26391. else
  26392. as_expr=false
  26393. fi
  26394. rm -f conf$$ conf$$.exe conf$$.file
  26395. echo >conf$$.file
  26396. if ln -s conf$$.file conf$$ 2>/dev/null; then
  26397. # We could just check for DJGPP; but this test a) works b) is more generic
  26398. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  26399. if test -f conf$$.exe; then
  26400. # Don't use ln at all; we don't have any links
  26401. as_ln_s='cp -p'
  26402. else
  26403. as_ln_s='ln -s'
  26404. fi
  26405. elif ln conf$$.file conf$$ 2>/dev/null; then
  26406. as_ln_s=ln
  26407. else
  26408. as_ln_s='cp -p'
  26409. fi
  26410. rm -f conf$$ conf$$.exe conf$$.file
  26411. if mkdir -p . 2>/dev/null; then
  26412. as_mkdir_p=:
  26413. else
  26414. test -d ./-p && rmdir ./-p
  26415. as_mkdir_p=false
  26416. fi
  26417. as_executable_p="test -f"
  26418. # Sed expression to map a string onto a valid CPP name.
  26419. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  26420. # Sed expression to map a string onto a valid variable name.
  26421. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  26422. # IFS
  26423. # We need space, tab and new line, in precisely that order.
  26424. as_nl='
  26425. '
  26426. IFS=" $as_nl"
  26427. # CDPATH.
  26428. $as_unset CDPATH
  26429. exec 6>&1
  26430. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  26431. # report actual input values of CONFIG_FILES etc. instead of their
  26432. # values after options handling. Logging --version etc. is OK.
  26433. exec 5>>config.log
  26434. {
  26435. echo
  26436. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  26437. ## Running $as_me. ##
  26438. _ASBOX
  26439. } >&5
  26440. cat >&5 <<_CSEOF
  26441. This file was extended by curl $as_me -, which was
  26442. generated by GNU Autoconf 2.59. Invocation command line was
  26443. CONFIG_FILES = $CONFIG_FILES
  26444. CONFIG_HEADERS = $CONFIG_HEADERS
  26445. CONFIG_LINKS = $CONFIG_LINKS
  26446. CONFIG_COMMANDS = $CONFIG_COMMANDS
  26447. $ $0 $@
  26448. _CSEOF
  26449. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  26450. echo >&5
  26451. _ACEOF
  26452. # Files that config.status was made for.
  26453. if test -n "$ac_config_files"; then
  26454. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  26455. fi
  26456. if test -n "$ac_config_headers"; then
  26457. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  26458. fi
  26459. if test -n "$ac_config_links"; then
  26460. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  26461. fi
  26462. if test -n "$ac_config_commands"; then
  26463. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  26464. fi
  26465. cat >>$CONFIG_STATUS <<\_ACEOF
  26466. ac_cs_usage="\
  26467. \`$as_me' instantiates files from templates according to the
  26468. current configuration.
  26469. Usage: $0 [OPTIONS] [FILE]...
  26470. -h, --help print this help, then exit
  26471. -V, --version print version number, then exit
  26472. -q, --quiet do not print progress messages
  26473. -d, --debug don't remove temporary files
  26474. --recheck update $as_me by reconfiguring in the same conditions
  26475. --file=FILE[:TEMPLATE]
  26476. instantiate the configuration file FILE
  26477. --header=FILE[:TEMPLATE]
  26478. instantiate the configuration header FILE
  26479. Configuration files:
  26480. $config_files
  26481. Configuration headers:
  26482. $config_headers
  26483. Configuration commands:
  26484. $config_commands
  26485. Report bugs to <bug-autoconf@gnu.org>."
  26486. _ACEOF
  26487. cat >>$CONFIG_STATUS <<_ACEOF
  26488. ac_cs_version="\\
  26489. curl config.status -
  26490. configured by $0, generated by GNU Autoconf 2.59,
  26491. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  26492. Copyright (C) 2003 Free Software Foundation, Inc.
  26493. This config.status script is free software; the Free Software Foundation
  26494. gives unlimited permission to copy, distribute and modify it."
  26495. srcdir=$srcdir
  26496. INSTALL="$INSTALL"
  26497. _ACEOF
  26498. cat >>$CONFIG_STATUS <<\_ACEOF
  26499. # If no file are specified by the user, then we need to provide default
  26500. # value. By we need to know if files were specified by the user.
  26501. ac_need_defaults=:
  26502. while test $# != 0
  26503. do
  26504. case $1 in
  26505. --*=*)
  26506. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  26507. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  26508. ac_shift=:
  26509. ;;
  26510. -*)
  26511. ac_option=$1
  26512. ac_optarg=$2
  26513. ac_shift=shift
  26514. ;;
  26515. *) # This is not an option, so the user has probably given explicit
  26516. # arguments.
  26517. ac_option=$1
  26518. ac_need_defaults=false;;
  26519. esac
  26520. case $ac_option in
  26521. # Handling of the options.
  26522. _ACEOF
  26523. cat >>$CONFIG_STATUS <<\_ACEOF
  26524. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  26525. ac_cs_recheck=: ;;
  26526. --version | --vers* | -V )
  26527. echo "$ac_cs_version"; exit 0 ;;
  26528. --he | --h)
  26529. # Conflict between --help and --header
  26530. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  26531. Try \`$0 --help' for more information." >&5
  26532. echo "$as_me: error: ambiguous option: $1
  26533. Try \`$0 --help' for more information." >&2;}
  26534. { (exit 1); exit 1; }; };;
  26535. --help | --hel | -h )
  26536. echo "$ac_cs_usage"; exit 0 ;;
  26537. --debug | --d* | -d )
  26538. debug=: ;;
  26539. --file | --fil | --fi | --f )
  26540. $ac_shift
  26541. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  26542. ac_need_defaults=false;;
  26543. --header | --heade | --head | --hea )
  26544. $ac_shift
  26545. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  26546. ac_need_defaults=false;;
  26547. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  26548. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  26549. ac_cs_silent=: ;;
  26550. # This is an error.
  26551. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  26552. Try \`$0 --help' for more information." >&5
  26553. echo "$as_me: error: unrecognized option: $1
  26554. Try \`$0 --help' for more information." >&2;}
  26555. { (exit 1); exit 1; }; } ;;
  26556. *) ac_config_targets="$ac_config_targets $1" ;;
  26557. esac
  26558. shift
  26559. done
  26560. ac_configure_extra_args=
  26561. if $ac_cs_silent; then
  26562. exec 6>/dev/null
  26563. ac_configure_extra_args="$ac_configure_extra_args --silent"
  26564. fi
  26565. _ACEOF
  26566. cat >>$CONFIG_STATUS <<_ACEOF
  26567. if \$ac_cs_recheck; then
  26568. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  26569. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  26570. fi
  26571. _ACEOF
  26572. cat >>$CONFIG_STATUS <<_ACEOF
  26573. #
  26574. # INIT-COMMANDS section.
  26575. #
  26576. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  26577. _ACEOF
  26578. cat >>$CONFIG_STATUS <<\_ACEOF
  26579. for ac_config_target in $ac_config_targets
  26580. do
  26581. case "$ac_config_target" in
  26582. # Handling of arguments.
  26583. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  26584. "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  26585. "docs/examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
  26586. "docs/libcurl/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
  26587. "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  26588. "include/curl/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
  26589. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  26590. "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  26591. "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  26592. "tests/data/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
  26593. "tests/server/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
  26594. "tests/libtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
  26595. "packages/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
  26596. "packages/Win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
  26597. "packages/Win32/cygwin/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
  26598. "packages/Linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
  26599. "packages/Linux/RPM/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
  26600. "packages/Linux/RPM/curl.spec" ) CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
  26601. "packages/Linux/RPM/curl-ssl.spec" ) CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
  26602. "packages/Solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
  26603. "packages/DOS/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/DOS/Makefile" ;;
  26604. "packages/EPM/curl.list" ) CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
  26605. "packages/EPM/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
  26606. "packages/vms/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
  26607. "curl-config" ) CONFIG_FILES="$CONFIG_FILES curl-config" ;;
  26608. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  26609. "lib/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
  26610. "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  26611. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  26612. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  26613. { (exit 1); exit 1; }; };;
  26614. esac
  26615. done
  26616. # If the user did not use the arguments to specify the items to instantiate,
  26617. # then the envvar interface is used. Set only those that are not.
  26618. # We use the long form for the default assignment because of an extremely
  26619. # bizarre bug on SunOS 4.1.3.
  26620. if $ac_need_defaults; then
  26621. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  26622. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  26623. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  26624. fi
  26625. # Have a temporary directory for convenience. Make it in the build tree
  26626. # simply because there is no reason to put it here, and in addition,
  26627. # creating and moving files from /tmp can sometimes cause problems.
  26628. # Create a temporary directory, and hook for its removal unless debugging.
  26629. $debug ||
  26630. {
  26631. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  26632. trap '{ (exit 1); exit 1; }' 1 2 13 15
  26633. }
  26634. # Create a (secure) tmp directory for tmp files.
  26635. {
  26636. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  26637. test -n "$tmp" && test -d "$tmp"
  26638. } ||
  26639. {
  26640. tmp=./confstat$$-$RANDOM
  26641. (umask 077 && mkdir $tmp)
  26642. } ||
  26643. {
  26644. echo "$me: cannot create a temporary directory in ." >&2
  26645. { (exit 1); exit 1; }
  26646. }
  26647. _ACEOF
  26648. cat >>$CONFIG_STATUS <<_ACEOF
  26649. #
  26650. # CONFIG_FILES section.
  26651. #
  26652. # No need to generate the scripts if there are no CONFIG_FILES.
  26653. # This happens for instance when ./config.status config.h
  26654. if test -n "\$CONFIG_FILES"; then
  26655. # Protect against being on the right side of a sed subst in config.status.
  26656. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  26657. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  26658. s,@SHELL@,$SHELL,;t t
  26659. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  26660. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  26661. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  26662. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  26663. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  26664. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  26665. s,@exec_prefix@,$exec_prefix,;t t
  26666. s,@prefix@,$prefix,;t t
  26667. s,@program_transform_name@,$program_transform_name,;t t
  26668. s,@bindir@,$bindir,;t t
  26669. s,@sbindir@,$sbindir,;t t
  26670. s,@libexecdir@,$libexecdir,;t t
  26671. s,@datadir@,$datadir,;t t
  26672. s,@sysconfdir@,$sysconfdir,;t t
  26673. s,@sharedstatedir@,$sharedstatedir,;t t
  26674. s,@localstatedir@,$localstatedir,;t t
  26675. s,@libdir@,$libdir,;t t
  26676. s,@includedir@,$includedir,;t t
  26677. s,@oldincludedir@,$oldincludedir,;t t
  26678. s,@infodir@,$infodir,;t t
  26679. s,@mandir@,$mandir,;t t
  26680. s,@build_alias@,$build_alias,;t t
  26681. s,@host_alias@,$host_alias,;t t
  26682. s,@target_alias@,$target_alias,;t t
  26683. s,@DEFS@,$DEFS,;t t
  26684. s,@ECHO_C@,$ECHO_C,;t t
  26685. s,@ECHO_N@,$ECHO_N,;t t
  26686. s,@ECHO_T@,$ECHO_T,;t t
  26687. s,@LIBS@,$LIBS,;t t
  26688. s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
  26689. s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
  26690. s,@MAINT@,$MAINT,;t t
  26691. s,@SED@,$SED,;t t
  26692. s,@AR@,$AR,;t t
  26693. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  26694. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  26695. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  26696. s,@CYGPATH_W@,$CYGPATH_W,;t t
  26697. s,@PACKAGE@,$PACKAGE,;t t
  26698. s,@VERSION@,$VERSION,;t t
  26699. s,@ACLOCAL@,$ACLOCAL,;t t
  26700. s,@AUTOCONF@,$AUTOCONF,;t t
  26701. s,@AUTOMAKE@,$AUTOMAKE,;t t
  26702. s,@AUTOHEADER@,$AUTOHEADER,;t t
  26703. s,@MAKEINFO@,$MAKEINFO,;t t
  26704. s,@AMTAR@,$AMTAR,;t t
  26705. s,@install_sh@,$install_sh,;t t
  26706. s,@STRIP@,$STRIP,;t t
  26707. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  26708. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  26709. s,@mkdir_p@,$mkdir_p,;t t
  26710. s,@AWK@,$AWK,;t t
  26711. s,@SET_MAKE@,$SET_MAKE,;t t
  26712. s,@am__leading_dot@,$am__leading_dot,;t t
  26713. s,@VERSIONNUM@,$VERSIONNUM,;t t
  26714. s,@PKGADD_PKG@,$PKGADD_PKG,;t t
  26715. s,@PKGADD_NAME@,$PKGADD_NAME,;t t
  26716. s,@PKGADD_VENDOR@,$PKGADD_VENDOR,;t t
  26717. s,@build@,$build,;t t
  26718. s,@build_cpu@,$build_cpu,;t t
  26719. s,@build_vendor@,$build_vendor,;t t
  26720. s,@build_os@,$build_os,;t t
  26721. s,@host@,$host,;t t
  26722. s,@host_cpu@,$host_cpu,;t t
  26723. s,@host_vendor@,$host_vendor,;t t
  26724. s,@host_os@,$host_os,;t t
  26725. s,@CC@,$CC,;t t
  26726. s,@CFLAGS@,$CFLAGS,;t t
  26727. s,@LDFLAGS@,$LDFLAGS,;t t
  26728. s,@CPPFLAGS@,$CPPFLAGS,;t t
  26729. s,@ac_ct_CC@,$ac_ct_CC,;t t
  26730. s,@EXEEXT@,$EXEEXT,;t t
  26731. s,@OBJEXT@,$OBJEXT,;t t
  26732. s,@DEPDIR@,$DEPDIR,;t t
  26733. s,@am__include@,$am__include,;t t
  26734. s,@am__quote@,$am__quote,;t t
  26735. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  26736. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  26737. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  26738. s,@CCDEPMODE@,$CCDEPMODE,;t t
  26739. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  26740. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  26741. s,@CPP@,$CPP,;t t
  26742. s,@EGREP@,$EGREP,;t t
  26743. s,@LN_S@,$LN_S,;t t
  26744. s,@ECHO@,$ECHO,;t t
  26745. s,@ac_ct_AR@,$ac_ct_AR,;t t
  26746. s,@RANLIB@,$RANLIB,;t t
  26747. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  26748. s,@DLLTOOL@,$DLLTOOL,;t t
  26749. s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
  26750. s,@AS@,$AS,;t t
  26751. s,@ac_ct_AS@,$ac_ct_AS,;t t
  26752. s,@OBJDUMP@,$OBJDUMP,;t t
  26753. s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
  26754. s,@CXX@,$CXX,;t t
  26755. s,@CXXFLAGS@,$CXXFLAGS,;t t
  26756. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  26757. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  26758. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  26759. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  26760. s,@CXXCPP@,$CXXCPP,;t t
  26761. s,@F77@,$F77,;t t
  26762. s,@FFLAGS@,$FFLAGS,;t t
  26763. s,@ac_ct_F77@,$ac_ct_F77,;t t
  26764. s,@LIBTOOL@,$LIBTOOL,;t t
  26765. s,@NO_UNDEFINED_TRUE@,$NO_UNDEFINED_TRUE,;t t
  26766. s,@NO_UNDEFINED_FALSE@,$NO_UNDEFINED_FALSE,;t t
  26767. s,@MIMPURE_TRUE@,$MIMPURE_TRUE,;t t
  26768. s,@MIMPURE_FALSE@,$MIMPURE_FALSE,;t t
  26769. s,@CURL_DISABLE_HTTP@,$CURL_DISABLE_HTTP,;t t
  26770. s,@CURL_DISABLE_GOPHER@,$CURL_DISABLE_GOPHER,;t t
  26771. s,@CURL_DISABLE_FTP@,$CURL_DISABLE_FTP,;t t
  26772. s,@CURL_DISABLE_FILE@,$CURL_DISABLE_FILE,;t t
  26773. s,@CURL_DISABLE_LDAP@,$CURL_DISABLE_LDAP,;t t
  26774. s,@CURL_DISABLE_DICT@,$CURL_DISABLE_DICT,;t t
  26775. s,@CURL_DISABLE_TELNET@,$CURL_DISABLE_TELNET,;t t
  26776. s,@IPV6_ENABLED@,$IPV6_ENABLED,;t t
  26777. s,@RANDOM_FILE@,$RANDOM_FILE,;t t
  26778. s,@KRB4_ENABLED@,$KRB4_ENABLED,;t t
  26779. s,@PKGCONFIG@,$PKGCONFIG,;t t
  26780. s,@OPENSSL_ENABLED@,$OPENSSL_ENABLED,;t t
  26781. s,@CURL_CA_BUNDLE@,$CURL_CA_BUNDLE,;t t
  26782. s,@CABUNDLE_TRUE@,$CABUNDLE_TRUE,;t t
  26783. s,@CABUNDLE_FALSE@,$CABUNDLE_FALSE,;t t
  26784. s,@HAVE_LIBZ@,$HAVE_LIBZ,;t t
  26785. s,@HAVE_LIBZ_TRUE@,$HAVE_LIBZ_TRUE,;t t
  26786. s,@HAVE_LIBZ_FALSE@,$HAVE_LIBZ_FALSE,;t t
  26787. s,@PERL@,$PERL,;t t
  26788. s,@NROFF@,$NROFF,;t t
  26789. s,@MANOPT@,$MANOPT,;t t
  26790. s,@YACC@,$YACC,;t t
  26791. s,@USE_MANUAL_TRUE@,$USE_MANUAL_TRUE,;t t
  26792. s,@USE_MANUAL_FALSE@,$USE_MANUAL_FALSE,;t t
  26793. s,@HAVE_ARES@,$HAVE_ARES,;t t
  26794. s,@subdirs@,$subdirs,;t t
  26795. s,@LIBOBJS@,$LIBOBJS,;t t
  26796. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  26797. CEOF
  26798. _ACEOF
  26799. cat >>$CONFIG_STATUS <<\_ACEOF
  26800. # Split the substitutions into bite-sized pieces for seds with
  26801. # small command number limits, like on Digital OSF/1 and HP-UX.
  26802. ac_max_sed_lines=48
  26803. ac_sed_frag=1 # Number of current file.
  26804. ac_beg=1 # First line for current file.
  26805. ac_end=$ac_max_sed_lines # Line after last line for current file.
  26806. ac_more_lines=:
  26807. ac_sed_cmds=
  26808. while $ac_more_lines; do
  26809. if test $ac_beg -gt 1; then
  26810. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  26811. else
  26812. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  26813. fi
  26814. if test ! -s $tmp/subs.frag; then
  26815. ac_more_lines=false
  26816. else
  26817. # The purpose of the label and of the branching condition is to
  26818. # speed up the sed processing (if there are no `@' at all, there
  26819. # is no need to browse any of the substitutions).
  26820. # These are the two extra sed commands mentioned above.
  26821. (echo ':t
  26822. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  26823. if test -z "$ac_sed_cmds"; then
  26824. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  26825. else
  26826. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  26827. fi
  26828. ac_sed_frag=`expr $ac_sed_frag + 1`
  26829. ac_beg=$ac_end
  26830. ac_end=`expr $ac_end + $ac_max_sed_lines`
  26831. fi
  26832. done
  26833. if test -z "$ac_sed_cmds"; then
  26834. ac_sed_cmds=cat
  26835. fi
  26836. fi # test -n "$CONFIG_FILES"
  26837. _ACEOF
  26838. cat >>$CONFIG_STATUS <<\_ACEOF
  26839. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  26840. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  26841. case $ac_file in
  26842. - | *:- | *:-:* ) # input from stdin
  26843. cat >$tmp/stdin
  26844. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  26845. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  26846. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  26847. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  26848. * ) ac_file_in=$ac_file.in ;;
  26849. esac
  26850. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  26851. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  26852. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26853. X"$ac_file" : 'X\(//\)[^/]' \| \
  26854. X"$ac_file" : 'X\(//\)$' \| \
  26855. X"$ac_file" : 'X\(/\)' \| \
  26856. . : '\(.\)' 2>/dev/null ||
  26857. echo X"$ac_file" |
  26858. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  26859. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  26860. /^X\(\/\/\)$/{ s//\1/; q; }
  26861. /^X\(\/\).*/{ s//\1/; q; }
  26862. s/.*/./; q'`
  26863. { if $as_mkdir_p; then
  26864. mkdir -p "$ac_dir"
  26865. else
  26866. as_dir="$ac_dir"
  26867. as_dirs=
  26868. while test ! -d "$as_dir"; do
  26869. as_dirs="$as_dir $as_dirs"
  26870. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  26871. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26872. X"$as_dir" : 'X\(//\)[^/]' \| \
  26873. X"$as_dir" : 'X\(//\)$' \| \
  26874. X"$as_dir" : 'X\(/\)' \| \
  26875. . : '\(.\)' 2>/dev/null ||
  26876. echo X"$as_dir" |
  26877. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  26878. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  26879. /^X\(\/\/\)$/{ s//\1/; q; }
  26880. /^X\(\/\).*/{ s//\1/; q; }
  26881. s/.*/./; q'`
  26882. done
  26883. test ! -n "$as_dirs" || mkdir $as_dirs
  26884. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  26885. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  26886. { (exit 1); exit 1; }; }; }
  26887. ac_builddir=.
  26888. if test "$ac_dir" != .; then
  26889. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  26890. # A "../" for each directory in $ac_dir_suffix.
  26891. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  26892. else
  26893. ac_dir_suffix= ac_top_builddir=
  26894. fi
  26895. case $srcdir in
  26896. .) # No --srcdir option. We are building in place.
  26897. ac_srcdir=.
  26898. if test -z "$ac_top_builddir"; then
  26899. ac_top_srcdir=.
  26900. else
  26901. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  26902. fi ;;
  26903. [\\/]* | ?:[\\/]* ) # Absolute path.
  26904. ac_srcdir=$srcdir$ac_dir_suffix;
  26905. ac_top_srcdir=$srcdir ;;
  26906. *) # Relative path.
  26907. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  26908. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  26909. esac
  26910. # Do not use `cd foo && pwd` to compute absolute paths, because
  26911. # the directories may not exist.
  26912. case `pwd` in
  26913. .) ac_abs_builddir="$ac_dir";;
  26914. *)
  26915. case "$ac_dir" in
  26916. .) ac_abs_builddir=`pwd`;;
  26917. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  26918. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  26919. esac;;
  26920. esac
  26921. case $ac_abs_builddir in
  26922. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  26923. *)
  26924. case ${ac_top_builddir}. in
  26925. .) ac_abs_top_builddir=$ac_abs_builddir;;
  26926. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  26927. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  26928. esac;;
  26929. esac
  26930. case $ac_abs_builddir in
  26931. .) ac_abs_srcdir=$ac_srcdir;;
  26932. *)
  26933. case $ac_srcdir in
  26934. .) ac_abs_srcdir=$ac_abs_builddir;;
  26935. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  26936. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  26937. esac;;
  26938. esac
  26939. case $ac_abs_builddir in
  26940. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  26941. *)
  26942. case $ac_top_srcdir in
  26943. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  26944. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  26945. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  26946. esac;;
  26947. esac
  26948. case $INSTALL in
  26949. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  26950. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  26951. esac
  26952. if test x"$ac_file" != x-; then
  26953. { echo "$as_me:$LINENO: creating $ac_file" >&5
  26954. echo "$as_me: creating $ac_file" >&6;}
  26955. rm -f "$ac_file"
  26956. fi
  26957. # Let's still pretend it is `configure' which instantiates (i.e., don't
  26958. # use $as_me), people would be surprised to read:
  26959. # /* config.h. Generated by config.status. */
  26960. if test x"$ac_file" = x-; then
  26961. configure_input=
  26962. else
  26963. configure_input="$ac_file. "
  26964. fi
  26965. configure_input=$configure_input"Generated from `echo $ac_file_in |
  26966. sed 's,.*/,,'` by configure."
  26967. # First look for the input files in the build tree, otherwise in the
  26968. # src tree.
  26969. ac_file_inputs=`IFS=:
  26970. for f in $ac_file_in; do
  26971. case $f in
  26972. -) echo $tmp/stdin ;;
  26973. [\\/$]*)
  26974. # Absolute (can't be DOS-style, as IFS=:)
  26975. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  26976. echo "$as_me: error: cannot find input file: $f" >&2;}
  26977. { (exit 1); exit 1; }; }
  26978. echo "$f";;
  26979. *) # Relative
  26980. if test -f "$f"; then
  26981. # Build tree
  26982. echo "$f"
  26983. elif test -f "$srcdir/$f"; then
  26984. # Source tree
  26985. echo "$srcdir/$f"
  26986. else
  26987. # /dev/null tree
  26988. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  26989. echo "$as_me: error: cannot find input file: $f" >&2;}
  26990. { (exit 1); exit 1; }; }
  26991. fi;;
  26992. esac
  26993. done` || { (exit 1); exit 1; }
  26994. _ACEOF
  26995. cat >>$CONFIG_STATUS <<_ACEOF
  26996. sed "$ac_vpsub
  26997. $extrasub
  26998. _ACEOF
  26999. cat >>$CONFIG_STATUS <<\_ACEOF
  27000. :t
  27001. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  27002. s,@configure_input@,$configure_input,;t t
  27003. s,@srcdir@,$ac_srcdir,;t t
  27004. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  27005. s,@top_srcdir@,$ac_top_srcdir,;t t
  27006. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  27007. s,@builddir@,$ac_builddir,;t t
  27008. s,@abs_builddir@,$ac_abs_builddir,;t t
  27009. s,@top_builddir@,$ac_top_builddir,;t t
  27010. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  27011. s,@INSTALL@,$ac_INSTALL,;t t
  27012. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  27013. rm -f $tmp/stdin
  27014. if test x"$ac_file" != x-; then
  27015. mv $tmp/out $ac_file
  27016. else
  27017. cat $tmp/out
  27018. rm -f $tmp/out
  27019. fi
  27020. done
  27021. _ACEOF
  27022. cat >>$CONFIG_STATUS <<\_ACEOF
  27023. #
  27024. # CONFIG_HEADER section.
  27025. #
  27026. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  27027. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  27028. #
  27029. # ac_d sets the value in "#define NAME VALUE" lines.
  27030. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  27031. ac_dB='[ ].*$,\1#\2'
  27032. ac_dC=' '
  27033. ac_dD=',;t'
  27034. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  27035. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  27036. ac_uB='$,\1#\2define\3'
  27037. ac_uC=' '
  27038. ac_uD=',;t'
  27039. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  27040. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  27041. case $ac_file in
  27042. - | *:- | *:-:* ) # input from stdin
  27043. cat >$tmp/stdin
  27044. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  27045. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  27046. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  27047. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  27048. * ) ac_file_in=$ac_file.in ;;
  27049. esac
  27050. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  27051. echo "$as_me: creating $ac_file" >&6;}
  27052. # First look for the input files in the build tree, otherwise in the
  27053. # src tree.
  27054. ac_file_inputs=`IFS=:
  27055. for f in $ac_file_in; do
  27056. case $f in
  27057. -) echo $tmp/stdin ;;
  27058. [\\/$]*)
  27059. # Absolute (can't be DOS-style, as IFS=:)
  27060. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  27061. echo "$as_me: error: cannot find input file: $f" >&2;}
  27062. { (exit 1); exit 1; }; }
  27063. # Do quote $f, to prevent DOS paths from being IFS'd.
  27064. echo "$f";;
  27065. *) # Relative
  27066. if test -f "$f"; then
  27067. # Build tree
  27068. echo "$f"
  27069. elif test -f "$srcdir/$f"; then
  27070. # Source tree
  27071. echo "$srcdir/$f"
  27072. else
  27073. # /dev/null tree
  27074. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  27075. echo "$as_me: error: cannot find input file: $f" >&2;}
  27076. { (exit 1); exit 1; }; }
  27077. fi;;
  27078. esac
  27079. done` || { (exit 1); exit 1; }
  27080. # Remove the trailing spaces.
  27081. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  27082. _ACEOF
  27083. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  27084. # `conftest.undefs', that substitutes the proper values into
  27085. # config.h.in to produce config.h. The first handles `#define'
  27086. # templates, and the second `#undef' templates.
  27087. # And first: Protect against being on the right side of a sed subst in
  27088. # config.status. Protect against being in an unquoted here document
  27089. # in config.status.
  27090. rm -f conftest.defines conftest.undefs
  27091. # Using a here document instead of a string reduces the quoting nightmare.
  27092. # Putting comments in sed scripts is not portable.
  27093. #
  27094. # `end' is used to avoid that the second main sed command (meant for
  27095. # 0-ary CPP macros) applies to n-ary macro definitions.
  27096. # See the Autoconf documentation for `clear'.
  27097. cat >confdef2sed.sed <<\_ACEOF
  27098. s/[\\&,]/\\&/g
  27099. s,[\\$`],\\&,g
  27100. t clear
  27101. : clear
  27102. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  27103. t end
  27104. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  27105. : end
  27106. _ACEOF
  27107. # If some macros were called several times there might be several times
  27108. # the same #defines, which is useless. Nevertheless, we may not want to
  27109. # sort them, since we want the *last* AC-DEFINE to be honored.
  27110. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  27111. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  27112. rm -f confdef2sed.sed
  27113. # This sed command replaces #undef with comments. This is necessary, for
  27114. # example, in the case of _POSIX_SOURCE, which is predefined and required
  27115. # on some systems where configure will not decide to define it.
  27116. cat >>conftest.undefs <<\_ACEOF
  27117. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  27118. _ACEOF
  27119. # Break up conftest.defines because some shells have a limit on the size
  27120. # of here documents, and old seds have small limits too (100 cmds).
  27121. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  27122. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  27123. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  27124. echo ' :' >>$CONFIG_STATUS
  27125. rm -f conftest.tail
  27126. while grep . conftest.defines >/dev/null
  27127. do
  27128. # Write a limited-size here document to $tmp/defines.sed.
  27129. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  27130. # Speed up: don't consider the non `#define' lines.
  27131. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  27132. # Work around the forget-to-reset-the-flag bug.
  27133. echo 't clr' >>$CONFIG_STATUS
  27134. echo ': clr' >>$CONFIG_STATUS
  27135. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  27136. echo 'CEOF
  27137. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  27138. rm -f $tmp/in
  27139. mv $tmp/out $tmp/in
  27140. ' >>$CONFIG_STATUS
  27141. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  27142. rm -f conftest.defines
  27143. mv conftest.tail conftest.defines
  27144. done
  27145. rm -f conftest.defines
  27146. echo ' fi # grep' >>$CONFIG_STATUS
  27147. echo >>$CONFIG_STATUS
  27148. # Break up conftest.undefs because some shells have a limit on the size
  27149. # of here documents, and old seds have small limits too (100 cmds).
  27150. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  27151. rm -f conftest.tail
  27152. while grep . conftest.undefs >/dev/null
  27153. do
  27154. # Write a limited-size here document to $tmp/undefs.sed.
  27155. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  27156. # Speed up: don't consider the non `#undef'
  27157. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  27158. # Work around the forget-to-reset-the-flag bug.
  27159. echo 't clr' >>$CONFIG_STATUS
  27160. echo ': clr' >>$CONFIG_STATUS
  27161. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  27162. echo 'CEOF
  27163. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  27164. rm -f $tmp/in
  27165. mv $tmp/out $tmp/in
  27166. ' >>$CONFIG_STATUS
  27167. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  27168. rm -f conftest.undefs
  27169. mv conftest.tail conftest.undefs
  27170. done
  27171. rm -f conftest.undefs
  27172. cat >>$CONFIG_STATUS <<\_ACEOF
  27173. # Let's still pretend it is `configure' which instantiates (i.e., don't
  27174. # use $as_me), people would be surprised to read:
  27175. # /* config.h. Generated by config.status. */
  27176. if test x"$ac_file" = x-; then
  27177. echo "/* Generated by configure. */" >$tmp/config.h
  27178. else
  27179. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  27180. fi
  27181. cat $tmp/in >>$tmp/config.h
  27182. rm -f $tmp/in
  27183. if test x"$ac_file" != x-; then
  27184. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  27185. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  27186. echo "$as_me: $ac_file is unchanged" >&6;}
  27187. else
  27188. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  27189. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27190. X"$ac_file" : 'X\(//\)[^/]' \| \
  27191. X"$ac_file" : 'X\(//\)$' \| \
  27192. X"$ac_file" : 'X\(/\)' \| \
  27193. . : '\(.\)' 2>/dev/null ||
  27194. echo X"$ac_file" |
  27195. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  27196. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  27197. /^X\(\/\/\)$/{ s//\1/; q; }
  27198. /^X\(\/\).*/{ s//\1/; q; }
  27199. s/.*/./; q'`
  27200. { if $as_mkdir_p; then
  27201. mkdir -p "$ac_dir"
  27202. else
  27203. as_dir="$ac_dir"
  27204. as_dirs=
  27205. while test ! -d "$as_dir"; do
  27206. as_dirs="$as_dir $as_dirs"
  27207. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  27208. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27209. X"$as_dir" : 'X\(//\)[^/]' \| \
  27210. X"$as_dir" : 'X\(//\)$' \| \
  27211. X"$as_dir" : 'X\(/\)' \| \
  27212. . : '\(.\)' 2>/dev/null ||
  27213. echo X"$as_dir" |
  27214. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  27215. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  27216. /^X\(\/\/\)$/{ s//\1/; q; }
  27217. /^X\(\/\).*/{ s//\1/; q; }
  27218. s/.*/./; q'`
  27219. done
  27220. test ! -n "$as_dirs" || mkdir $as_dirs
  27221. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  27222. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  27223. { (exit 1); exit 1; }; }; }
  27224. rm -f $ac_file
  27225. mv $tmp/config.h $ac_file
  27226. fi
  27227. else
  27228. cat $tmp/config.h
  27229. rm -f $tmp/config.h
  27230. fi
  27231. # Compute $ac_file's index in $config_headers.
  27232. _am_stamp_count=1
  27233. for _am_header in $config_headers :; do
  27234. case $_am_header in
  27235. $ac_file | $ac_file:* )
  27236. break ;;
  27237. * )
  27238. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  27239. esac
  27240. done
  27241. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  27242. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27243. X$ac_file : 'X\(//\)[^/]' \| \
  27244. X$ac_file : 'X\(//\)$' \| \
  27245. X$ac_file : 'X\(/\)' \| \
  27246. . : '\(.\)' 2>/dev/null ||
  27247. echo X$ac_file |
  27248. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  27249. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  27250. /^X\(\/\/\)$/{ s//\1/; q; }
  27251. /^X\(\/\).*/{ s//\1/; q; }
  27252. s/.*/./; q'`/stamp-h$_am_stamp_count
  27253. done
  27254. _ACEOF
  27255. cat >>$CONFIG_STATUS <<\_ACEOF
  27256. #
  27257. # CONFIG_COMMANDS section.
  27258. #
  27259. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  27260. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  27261. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  27262. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  27263. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27264. X"$ac_dest" : 'X\(//\)[^/]' \| \
  27265. X"$ac_dest" : 'X\(//\)$' \| \
  27266. X"$ac_dest" : 'X\(/\)' \| \
  27267. . : '\(.\)' 2>/dev/null ||
  27268. echo X"$ac_dest" |
  27269. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  27270. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  27271. /^X\(\/\/\)$/{ s//\1/; q; }
  27272. /^X\(\/\).*/{ s//\1/; q; }
  27273. s/.*/./; q'`
  27274. { if $as_mkdir_p; then
  27275. mkdir -p "$ac_dir"
  27276. else
  27277. as_dir="$ac_dir"
  27278. as_dirs=
  27279. while test ! -d "$as_dir"; do
  27280. as_dirs="$as_dir $as_dirs"
  27281. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  27282. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27283. X"$as_dir" : 'X\(//\)[^/]' \| \
  27284. X"$as_dir" : 'X\(//\)$' \| \
  27285. X"$as_dir" : 'X\(/\)' \| \
  27286. . : '\(.\)' 2>/dev/null ||
  27287. echo X"$as_dir" |
  27288. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  27289. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  27290. /^X\(\/\/\)$/{ s//\1/; q; }
  27291. /^X\(\/\).*/{ s//\1/; q; }
  27292. s/.*/./; q'`
  27293. done
  27294. test ! -n "$as_dirs" || mkdir $as_dirs
  27295. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  27296. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  27297. { (exit 1); exit 1; }; }; }
  27298. ac_builddir=.
  27299. if test "$ac_dir" != .; then
  27300. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  27301. # A "../" for each directory in $ac_dir_suffix.
  27302. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  27303. else
  27304. ac_dir_suffix= ac_top_builddir=
  27305. fi
  27306. case $srcdir in
  27307. .) # No --srcdir option. We are building in place.
  27308. ac_srcdir=.
  27309. if test -z "$ac_top_builddir"; then
  27310. ac_top_srcdir=.
  27311. else
  27312. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  27313. fi ;;
  27314. [\\/]* | ?:[\\/]* ) # Absolute path.
  27315. ac_srcdir=$srcdir$ac_dir_suffix;
  27316. ac_top_srcdir=$srcdir ;;
  27317. *) # Relative path.
  27318. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  27319. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  27320. esac
  27321. # Do not use `cd foo && pwd` to compute absolute paths, because
  27322. # the directories may not exist.
  27323. case `pwd` in
  27324. .) ac_abs_builddir="$ac_dir";;
  27325. *)
  27326. case "$ac_dir" in
  27327. .) ac_abs_builddir=`pwd`;;
  27328. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  27329. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  27330. esac;;
  27331. esac
  27332. case $ac_abs_builddir in
  27333. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  27334. *)
  27335. case ${ac_top_builddir}. in
  27336. .) ac_abs_top_builddir=$ac_abs_builddir;;
  27337. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  27338. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  27339. esac;;
  27340. esac
  27341. case $ac_abs_builddir in
  27342. .) ac_abs_srcdir=$ac_srcdir;;
  27343. *)
  27344. case $ac_srcdir in
  27345. .) ac_abs_srcdir=$ac_abs_builddir;;
  27346. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  27347. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  27348. esac;;
  27349. esac
  27350. case $ac_abs_builddir in
  27351. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  27352. *)
  27353. case $ac_top_srcdir in
  27354. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  27355. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  27356. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  27357. esac;;
  27358. esac
  27359. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  27360. echo "$as_me: executing $ac_dest commands" >&6;}
  27361. case $ac_dest in
  27362. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  27363. # Strip MF so we end up with the name of the file.
  27364. mf=`echo "$mf" | sed -e 's/:.*$//'`
  27365. # Check whether this is an Automake generated Makefile or not.
  27366. # We used to match only the files named `Makefile.in', but
  27367. # some people rename them; so instead we look at the file content.
  27368. # Grep'ing the first line is not enough: some people post-process
  27369. # each Makefile.in and add a new line on top of each file to say so.
  27370. # So let's grep whole file.
  27371. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  27372. dirpart=`(dirname "$mf") 2>/dev/null ||
  27373. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27374. X"$mf" : 'X\(//\)[^/]' \| \
  27375. X"$mf" : 'X\(//\)$' \| \
  27376. X"$mf" : 'X\(/\)' \| \
  27377. . : '\(.\)' 2>/dev/null ||
  27378. echo X"$mf" |
  27379. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  27380. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  27381. /^X\(\/\/\)$/{ s//\1/; q; }
  27382. /^X\(\/\).*/{ s//\1/; q; }
  27383. s/.*/./; q'`
  27384. else
  27385. continue
  27386. fi
  27387. grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
  27388. # Extract the definition of DEP_FILES from the Makefile without
  27389. # running `make'.
  27390. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  27391. test -z "$DEPDIR" && continue
  27392. # When using ansi2knr, U may be empty or an underscore; expand it
  27393. U=`sed -n 's/^U = //p' < "$mf"`
  27394. test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
  27395. # We invoke sed twice because it is the simplest approach to
  27396. # changing $(DEPDIR) to its actual value in the expansion.
  27397. for file in `sed -n '
  27398. /^DEP_FILES = .*\\\\$/ {
  27399. s/^DEP_FILES = //
  27400. :loop
  27401. s/\\\\$//
  27402. p
  27403. n
  27404. /\\\\$/ b loop
  27405. p
  27406. }
  27407. /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
  27408. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  27409. # Make sure the directory exists.
  27410. test -f "$dirpart/$file" && continue
  27411. fdir=`(dirname "$file") 2>/dev/null ||
  27412. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27413. X"$file" : 'X\(//\)[^/]' \| \
  27414. X"$file" : 'X\(//\)$' \| \
  27415. X"$file" : 'X\(/\)' \| \
  27416. . : '\(.\)' 2>/dev/null ||
  27417. echo X"$file" |
  27418. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  27419. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  27420. /^X\(\/\/\)$/{ s//\1/; q; }
  27421. /^X\(\/\).*/{ s//\1/; q; }
  27422. s/.*/./; q'`
  27423. { if $as_mkdir_p; then
  27424. mkdir -p $dirpart/$fdir
  27425. else
  27426. as_dir=$dirpart/$fdir
  27427. as_dirs=
  27428. while test ! -d "$as_dir"; do
  27429. as_dirs="$as_dir $as_dirs"
  27430. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  27431. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27432. X"$as_dir" : 'X\(//\)[^/]' \| \
  27433. X"$as_dir" : 'X\(//\)$' \| \
  27434. X"$as_dir" : 'X\(/\)' \| \
  27435. . : '\(.\)' 2>/dev/null ||
  27436. echo X"$as_dir" |
  27437. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  27438. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  27439. /^X\(\/\/\)$/{ s//\1/; q; }
  27440. /^X\(\/\).*/{ s//\1/; q; }
  27441. s/.*/./; q'`
  27442. done
  27443. test ! -n "$as_dirs" || mkdir $as_dirs
  27444. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  27445. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  27446. { (exit 1); exit 1; }; }; }
  27447. # echo "creating $dirpart/$file"
  27448. echo '# dummy' > "$dirpart/$file"
  27449. done
  27450. done
  27451. ;;
  27452. esac
  27453. done
  27454. _ACEOF
  27455. cat >>$CONFIG_STATUS <<\_ACEOF
  27456. { (exit 0); exit 0; }
  27457. _ACEOF
  27458. chmod +x $CONFIG_STATUS
  27459. ac_clean_files=$ac_clean_files_save
  27460. # configure is writing to config.log, and then calls config.status.
  27461. # config.status does its own redirection, appending to config.log.
  27462. # Unfortunately, on DOS this fails, as config.log is still kept open
  27463. # by configure, so config.status won't be able to write to it; its
  27464. # output is simply discarded. So we exec the FD to /dev/null,
  27465. # effectively closing config.log, so it can be properly (re)opened and
  27466. # appended to by config.status. When coming back to configure, we
  27467. # need to make the FD available again.
  27468. if test "$no_create" != yes; then
  27469. ac_cs_success=:
  27470. ac_config_status_args=
  27471. test "$silent" = yes &&
  27472. ac_config_status_args="$ac_config_status_args --quiet"
  27473. exec 5>/dev/null
  27474. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  27475. exec 5>>config.log
  27476. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  27477. # would make configure fail if this is the last instruction.
  27478. $ac_cs_success || { (exit 1); exit 1; }
  27479. fi
  27480. #
  27481. # CONFIG_SUBDIRS section.
  27482. #
  27483. if test "$no_recursion" != yes; then
  27484. # Remove --cache-file and --srcdir arguments so they do not pile up.
  27485. ac_sub_configure_args=
  27486. ac_prev=
  27487. for ac_arg in $ac_configure_args; do
  27488. if test -n "$ac_prev"; then
  27489. ac_prev=
  27490. continue
  27491. fi
  27492. case $ac_arg in
  27493. -cache-file | --cache-file | --cache-fil | --cache-fi \
  27494. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  27495. ac_prev=cache_file ;;
  27496. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  27497. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  27498. | --c=*)
  27499. ;;
  27500. --config-cache | -C)
  27501. ;;
  27502. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  27503. ac_prev=srcdir ;;
  27504. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  27505. ;;
  27506. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  27507. ac_prev=prefix ;;
  27508. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  27509. ;;
  27510. *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
  27511. esac
  27512. done
  27513. # Always prepend --prefix to ensure using the same prefix
  27514. # in subdir configurations.
  27515. ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
  27516. ac_popdir=`pwd`
  27517. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  27518. # Do not complain, so a configure script can configure whichever
  27519. # parts of a large source tree are present.
  27520. test -d $srcdir/$ac_dir || continue
  27521. { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
  27522. echo "$as_me: configuring in $ac_dir" >&6;}
  27523. { if $as_mkdir_p; then
  27524. mkdir -p "$ac_dir"
  27525. else
  27526. as_dir="$ac_dir"
  27527. as_dirs=
  27528. while test ! -d "$as_dir"; do
  27529. as_dirs="$as_dir $as_dirs"
  27530. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  27531. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27532. X"$as_dir" : 'X\(//\)[^/]' \| \
  27533. X"$as_dir" : 'X\(//\)$' \| \
  27534. X"$as_dir" : 'X\(/\)' \| \
  27535. . : '\(.\)' 2>/dev/null ||
  27536. echo X"$as_dir" |
  27537. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  27538. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  27539. /^X\(\/\/\)$/{ s//\1/; q; }
  27540. /^X\(\/\).*/{ s//\1/; q; }
  27541. s/.*/./; q'`
  27542. done
  27543. test ! -n "$as_dirs" || mkdir $as_dirs
  27544. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  27545. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  27546. { (exit 1); exit 1; }; }; }
  27547. ac_builddir=.
  27548. if test "$ac_dir" != .; then
  27549. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  27550. # A "../" for each directory in $ac_dir_suffix.
  27551. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  27552. else
  27553. ac_dir_suffix= ac_top_builddir=
  27554. fi
  27555. case $srcdir in
  27556. .) # No --srcdir option. We are building in place.
  27557. ac_srcdir=.
  27558. if test -z "$ac_top_builddir"; then
  27559. ac_top_srcdir=.
  27560. else
  27561. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  27562. fi ;;
  27563. [\\/]* | ?:[\\/]* ) # Absolute path.
  27564. ac_srcdir=$srcdir$ac_dir_suffix;
  27565. ac_top_srcdir=$srcdir ;;
  27566. *) # Relative path.
  27567. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  27568. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  27569. esac
  27570. # Do not use `cd foo && pwd` to compute absolute paths, because
  27571. # the directories may not exist.
  27572. case `pwd` in
  27573. .) ac_abs_builddir="$ac_dir";;
  27574. *)
  27575. case "$ac_dir" in
  27576. .) ac_abs_builddir=`pwd`;;
  27577. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  27578. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  27579. esac;;
  27580. esac
  27581. case $ac_abs_builddir in
  27582. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  27583. *)
  27584. case ${ac_top_builddir}. in
  27585. .) ac_abs_top_builddir=$ac_abs_builddir;;
  27586. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  27587. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  27588. esac;;
  27589. esac
  27590. case $ac_abs_builddir in
  27591. .) ac_abs_srcdir=$ac_srcdir;;
  27592. *)
  27593. case $ac_srcdir in
  27594. .) ac_abs_srcdir=$ac_abs_builddir;;
  27595. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  27596. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  27597. esac;;
  27598. esac
  27599. case $ac_abs_builddir in
  27600. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  27601. *)
  27602. case $ac_top_srcdir in
  27603. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  27604. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  27605. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  27606. esac;;
  27607. esac
  27608. cd $ac_dir
  27609. # Check for guested configure; otherwise get Cygnus style configure.
  27610. if test -f $ac_srcdir/configure.gnu; then
  27611. ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
  27612. elif test -f $ac_srcdir/configure; then
  27613. ac_sub_configure="$SHELL '$ac_srcdir/configure'"
  27614. elif test -f $ac_srcdir/configure.in; then
  27615. ac_sub_configure=$ac_configure
  27616. else
  27617. { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
  27618. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  27619. ac_sub_configure=
  27620. fi
  27621. # The recursion is here.
  27622. if test -n "$ac_sub_configure"; then
  27623. # Make the cache file name correct relative to the subdirectory.
  27624. case $cache_file in
  27625. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  27626. *) # Relative path.
  27627. ac_sub_cache_file=$ac_top_builddir$cache_file ;;
  27628. esac
  27629. { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
  27630. echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  27631. # The eval makes quoting arguments work.
  27632. eval $ac_sub_configure $ac_sub_configure_args \
  27633. --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
  27634. { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
  27635. echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
  27636. { (exit 1); exit 1; }; }
  27637. fi
  27638. cd $ac_popdir
  27639. done
  27640. fi