configure 1.2 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for curl -.
  4. #
  5. # Report bugs to <a suitable curl mailing list => http://curl.haxx.se/mail/>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. #
  12. # Copyright (c) 1998 - 2008 Daniel Stenberg, <[email protected]>
  13. # This configure script may be copied, distributed and modified under the
  14. # terms of the curl license; see COPYING for more details
  15. ## --------------------- ##
  16. ## M4sh Initialization. ##
  17. ## --------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  21. emulate sh
  22. NULLCMD=:
  23. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in
  29. *posix*) set -o posix ;;
  30. esac
  31. fi
  32. # PATH needs CR
  33. # Avoid depending upon Character Ranges.
  34. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  35. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  36. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  37. as_cr_digits='0123456789'
  38. as_cr_alnum=$as_cr_Letters$as_cr_digits
  39. # The user is always right.
  40. if test "${PATH_SEPARATOR+set}" != set; then
  41. echo "#! /bin/sh" >conf$$.sh
  42. echo "exit 0" >>conf$$.sh
  43. chmod +x conf$$.sh
  44. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  45. PATH_SEPARATOR=';'
  46. else
  47. PATH_SEPARATOR=:
  48. fi
  49. rm -f conf$$.sh
  50. fi
  51. # Support unset when possible.
  52. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  53. as_unset=unset
  54. else
  55. as_unset=false
  56. fi
  57. # IFS
  58. # We need space, tab and new line, in precisely that order. Quoting is
  59. # there to prevent editors from complaining about space-tab.
  60. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  61. # splitting by setting IFS to empty value.)
  62. as_nl='
  63. '
  64. IFS=" "" $as_nl"
  65. # Find who we are. Look in the path if we contain no directory separator.
  66. case $0 in
  67. *[\\/]* ) as_myself=$0 ;;
  68. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  69. for as_dir in $PATH
  70. do
  71. IFS=$as_save_IFS
  72. test -z "$as_dir" && as_dir=.
  73. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  74. done
  75. IFS=$as_save_IFS
  76. ;;
  77. esac
  78. # We did not find ourselves, most probably we were run as `sh COMMAND'
  79. # in which case we are not to be found in the path.
  80. if test "x$as_myself" = x; then
  81. as_myself=$0
  82. fi
  83. if test ! -f "$as_myself"; then
  84. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  85. { (exit 1); exit 1; }
  86. fi
  87. # Work around bugs in pre-3.0 UWIN ksh.
  88. for as_var in ENV MAIL MAILPATH
  89. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  90. done
  91. PS1='$ '
  92. PS2='> '
  93. PS4='+ '
  94. # NLS nuisances.
  95. for as_var in \
  96. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  97. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  98. LC_TELEPHONE LC_TIME
  99. do
  100. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  101. eval $as_var=C; export $as_var
  102. else
  103. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  104. fi
  105. done
  106. # Required to use basename.
  107. if expr a : '\(a\)' >/dev/null 2>&1 &&
  108. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  109. as_expr=expr
  110. else
  111. as_expr=false
  112. fi
  113. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  114. as_basename=basename
  115. else
  116. as_basename=false
  117. fi
  118. # Name of the executable.
  119. as_me=`$as_basename -- "$0" ||
  120. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  121. X"$0" : 'X\(//\)$' \| \
  122. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  123. echo X/"$0" |
  124. sed '/^.*\/\([^/][^/]*\)\/*$/{
  125. s//\1/
  126. q
  127. }
  128. /^X\/\(\/\/\)$/{
  129. s//\1/
  130. q
  131. }
  132. /^X\/\(\/\).*/{
  133. s//\1/
  134. q
  135. }
  136. s/.*/./; q'`
  137. # CDPATH.
  138. $as_unset CDPATH
  139. if test "x$CONFIG_SHELL" = x; then
  140. if (eval ":") 2>/dev/null; then
  141. as_have_required=yes
  142. else
  143. as_have_required=no
  144. fi
  145. if test $as_have_required = yes && (eval ":
  146. (as_func_return () {
  147. (exit \$1)
  148. }
  149. as_func_success () {
  150. as_func_return 0
  151. }
  152. as_func_failure () {
  153. as_func_return 1
  154. }
  155. as_func_ret_success () {
  156. return 0
  157. }
  158. as_func_ret_failure () {
  159. return 1
  160. }
  161. exitcode=0
  162. if as_func_success; then
  163. :
  164. else
  165. exitcode=1
  166. echo as_func_success failed.
  167. fi
  168. if as_func_failure; then
  169. exitcode=1
  170. echo as_func_failure succeeded.
  171. fi
  172. if as_func_ret_success; then
  173. :
  174. else
  175. exitcode=1
  176. echo as_func_ret_success failed.
  177. fi
  178. if as_func_ret_failure; then
  179. exitcode=1
  180. echo as_func_ret_failure succeeded.
  181. fi
  182. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  183. :
  184. else
  185. exitcode=1
  186. echo positional parameters were not saved.
  187. fi
  188. test \$exitcode = 0) || { (exit 1); exit 1; }
  189. (
  190. as_lineno_1=\$LINENO
  191. as_lineno_2=\$LINENO
  192. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  193. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  194. ") 2> /dev/null; then
  195. :
  196. else
  197. as_candidate_shells=
  198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  199. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  200. do
  201. IFS=$as_save_IFS
  202. test -z "$as_dir" && as_dir=.
  203. case $as_dir in
  204. /*)
  205. for as_base in sh bash ksh sh5; do
  206. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  207. done;;
  208. esac
  209. done
  210. IFS=$as_save_IFS
  211. for as_shell in $as_candidate_shells $SHELL; do
  212. # Try only shells that exist, to save several forks.
  213. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  214. { ("$as_shell") 2> /dev/null <<\_ASEOF
  215. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  216. emulate sh
  217. NULLCMD=:
  218. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  219. # is contrary to our usage. Disable this feature.
  220. alias -g '${1+"$@"}'='"$@"'
  221. setopt NO_GLOB_SUBST
  222. else
  223. case `(set -o) 2>/dev/null` in
  224. *posix*) set -o posix ;;
  225. esac
  226. fi
  227. :
  228. _ASEOF
  229. }; then
  230. CONFIG_SHELL=$as_shell
  231. as_have_required=yes
  232. if { "$as_shell" 2> /dev/null <<\_ASEOF
  233. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  234. emulate sh
  235. NULLCMD=:
  236. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  237. # is contrary to our usage. Disable this feature.
  238. alias -g '${1+"$@"}'='"$@"'
  239. setopt NO_GLOB_SUBST
  240. else
  241. case `(set -o) 2>/dev/null` in
  242. *posix*) set -o posix ;;
  243. esac
  244. fi
  245. :
  246. (as_func_return () {
  247. (exit $1)
  248. }
  249. as_func_success () {
  250. as_func_return 0
  251. }
  252. as_func_failure () {
  253. as_func_return 1
  254. }
  255. as_func_ret_success () {
  256. return 0
  257. }
  258. as_func_ret_failure () {
  259. return 1
  260. }
  261. exitcode=0
  262. if as_func_success; then
  263. :
  264. else
  265. exitcode=1
  266. echo as_func_success failed.
  267. fi
  268. if as_func_failure; then
  269. exitcode=1
  270. echo as_func_failure succeeded.
  271. fi
  272. if as_func_ret_success; then
  273. :
  274. else
  275. exitcode=1
  276. echo as_func_ret_success failed.
  277. fi
  278. if as_func_ret_failure; then
  279. exitcode=1
  280. echo as_func_ret_failure succeeded.
  281. fi
  282. if ( set x; as_func_ret_success y && test x = "$1" ); then
  283. :
  284. else
  285. exitcode=1
  286. echo positional parameters were not saved.
  287. fi
  288. test $exitcode = 0) || { (exit 1); exit 1; }
  289. (
  290. as_lineno_1=$LINENO
  291. as_lineno_2=$LINENO
  292. test "x$as_lineno_1" != "x$as_lineno_2" &&
  293. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  294. _ASEOF
  295. }; then
  296. break
  297. fi
  298. fi
  299. done
  300. if test "x$CONFIG_SHELL" != x; then
  301. for as_var in BASH_ENV ENV
  302. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  303. done
  304. export CONFIG_SHELL
  305. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  306. fi
  307. if test $as_have_required = no; then
  308. echo This script requires a shell more modern than all the
  309. echo shells that I found on your system. Please install a
  310. echo modern shell, or manually run the script under such a
  311. echo shell if you do have one.
  312. { (exit 1); exit 1; }
  313. fi
  314. fi
  315. fi
  316. (eval "as_func_return () {
  317. (exit \$1)
  318. }
  319. as_func_success () {
  320. as_func_return 0
  321. }
  322. as_func_failure () {
  323. as_func_return 1
  324. }
  325. as_func_ret_success () {
  326. return 0
  327. }
  328. as_func_ret_failure () {
  329. return 1
  330. }
  331. exitcode=0
  332. if as_func_success; then
  333. :
  334. else
  335. exitcode=1
  336. echo as_func_success failed.
  337. fi
  338. if as_func_failure; then
  339. exitcode=1
  340. echo as_func_failure succeeded.
  341. fi
  342. if as_func_ret_success; then
  343. :
  344. else
  345. exitcode=1
  346. echo as_func_ret_success failed.
  347. fi
  348. if as_func_ret_failure; then
  349. exitcode=1
  350. echo as_func_ret_failure succeeded.
  351. fi
  352. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  353. :
  354. else
  355. exitcode=1
  356. echo positional parameters were not saved.
  357. fi
  358. test \$exitcode = 0") || {
  359. echo No shell found that supports shell functions.
  360. echo Please tell [email protected] about your system,
  361. echo including any error possibly output before this
  362. echo message
  363. }
  364. as_lineno_1=$LINENO
  365. as_lineno_2=$LINENO
  366. test "x$as_lineno_1" != "x$as_lineno_2" &&
  367. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  368. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  369. # uniformly replaced by the line number. The first 'sed' inserts a
  370. # line-number line after each line using $LINENO; the second 'sed'
  371. # does the real work. The second script uses 'N' to pair each
  372. # line-number line with the line containing $LINENO, and appends
  373. # trailing '-' during substitution so that $LINENO is not a special
  374. # case at line end.
  375. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  376. # scripts with optimization help from Paolo Bonzini. Blame Lee
  377. # E. McMahon (1931-1989) for sed's syntax. :-)
  378. sed -n '
  379. p
  380. /[$]LINENO/=
  381. ' <$as_myself |
  382. sed '
  383. s/[$]LINENO.*/&-/
  384. t lineno
  385. b
  386. :lineno
  387. N
  388. :loop
  389. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  390. t loop
  391. s/-\n.*//
  392. ' >$as_me.lineno &&
  393. chmod +x "$as_me.lineno" ||
  394. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  395. { (exit 1); exit 1; }; }
  396. # Don't try to exec as it changes $[0], causing all sort of problems
  397. # (the dirname of $[0] is not the place where we might find the
  398. # original and so on. Autoconf is especially sensitive to this).
  399. . "./$as_me.lineno"
  400. # Exit status is that of the last command.
  401. exit
  402. }
  403. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  404. as_dirname=dirname
  405. else
  406. as_dirname=false
  407. fi
  408. ECHO_C= ECHO_N= ECHO_T=
  409. case `echo -n x` in
  410. -n*)
  411. case `echo 'x\c'` in
  412. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  413. *) ECHO_C='\c';;
  414. esac;;
  415. *)
  416. ECHO_N='-n';;
  417. esac
  418. if expr a : '\(a\)' >/dev/null 2>&1 &&
  419. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  420. as_expr=expr
  421. else
  422. as_expr=false
  423. fi
  424. rm -f conf$$ conf$$.exe conf$$.file
  425. if test -d conf$$.dir; then
  426. rm -f conf$$.dir/conf$$.file
  427. else
  428. rm -f conf$$.dir
  429. mkdir conf$$.dir
  430. fi
  431. echo >conf$$.file
  432. if ln -s conf$$.file conf$$ 2>/dev/null; then
  433. as_ln_s='ln -s'
  434. # ... but there are two gotchas:
  435. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  436. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  437. # In both cases, we have to default to `cp -p'.
  438. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  439. as_ln_s='cp -p'
  440. elif ln conf$$.file conf$$ 2>/dev/null; then
  441. as_ln_s=ln
  442. else
  443. as_ln_s='cp -p'
  444. fi
  445. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  446. rmdir conf$$.dir 2>/dev/null
  447. if mkdir -p . 2>/dev/null; then
  448. as_mkdir_p=:
  449. else
  450. test -d ./-p && rmdir ./-p
  451. as_mkdir_p=false
  452. fi
  453. if test -x / >/dev/null 2>&1; then
  454. as_test_x='test -x'
  455. else
  456. if ls -dL / >/dev/null 2>&1; then
  457. as_ls_L_option=L
  458. else
  459. as_ls_L_option=
  460. fi
  461. as_test_x='
  462. eval sh -c '\''
  463. if test -d "$1"; then
  464. test -d "$1/.";
  465. else
  466. case $1 in
  467. -*)set "./$1";;
  468. esac;
  469. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  470. ???[sx]*):;;*)false;;esac;fi
  471. '\'' sh
  472. '
  473. fi
  474. as_executable_p=$as_test_x
  475. # Sed expression to map a string onto a valid CPP name.
  476. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  477. # Sed expression to map a string onto a valid variable name.
  478. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  479. # Check that we are running under the correct shell.
  480. SHELL=${CONFIG_SHELL-/bin/sh}
  481. case X$ECHO in
  482. X*--fallback-echo)
  483. # Remove one level of quotation (which was required for Make).
  484. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  485. ;;
  486. esac
  487. echo=${ECHO-echo}
  488. if test "X$1" = X--no-reexec; then
  489. # Discard the --no-reexec flag, and continue.
  490. shift
  491. elif test "X$1" = X--fallback-echo; then
  492. # Avoid inline document here, it may be left over
  493. :
  494. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  495. # Yippee, $echo works!
  496. :
  497. else
  498. # Restart under the correct shell.
  499. exec $SHELL "$0" --no-reexec ${1+"$@"}
  500. fi
  501. if test "X$1" = X--fallback-echo; then
  502. # used as fallback echo
  503. shift
  504. cat <<EOF
  505. $*
  506. EOF
  507. exit 0
  508. fi
  509. # The HP-UX ksh and POSIX shell print the target directory to stdout
  510. # if CDPATH is set.
  511. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  512. if test -z "$ECHO"; then
  513. if test "X${echo_test_string+set}" != Xset; then
  514. # find a string as large as possible, as long as the shell can cope with it
  515. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  516. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  517. if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  518. echo_test_string=`eval $cmd` &&
  519. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  520. then
  521. break
  522. fi
  523. done
  524. fi
  525. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  526. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  527. test "X$echo_testing_string" = "X$echo_test_string"; then
  528. :
  529. else
  530. # The Solaris, AIX, and Digital Unix default echo programs unquote
  531. # backslashes. This makes it impossible to quote backslashes using
  532. # echo "$something" | sed 's/\\/\\\\/g'
  533. #
  534. # So, first we look for a working echo in the user's PATH.
  535. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  536. for dir in $PATH /usr/ucb; do
  537. IFS="$lt_save_ifs"
  538. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  539. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  540. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  541. test "X$echo_testing_string" = "X$echo_test_string"; then
  542. echo="$dir/echo"
  543. break
  544. fi
  545. done
  546. IFS="$lt_save_ifs"
  547. if test "X$echo" = Xecho; then
  548. # We didn't find a better echo, so look for alternatives.
  549. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  550. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  551. test "X$echo_testing_string" = "X$echo_test_string"; then
  552. # This shell has a builtin print -r that does the trick.
  553. echo='print -r'
  554. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  555. test "X$CONFIG_SHELL" != X/bin/ksh; then
  556. # If we have ksh, try running configure again with it.
  557. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  558. export ORIGINAL_CONFIG_SHELL
  559. CONFIG_SHELL=/bin/ksh
  560. export CONFIG_SHELL
  561. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  562. else
  563. # Try using printf.
  564. echo='printf %s\n'
  565. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  566. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  567. test "X$echo_testing_string" = "X$echo_test_string"; then
  568. # Cool, printf works
  569. :
  570. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  571. test "X$echo_testing_string" = 'X\t' &&
  572. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  573. test "X$echo_testing_string" = "X$echo_test_string"; then
  574. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  575. export CONFIG_SHELL
  576. SHELL="$CONFIG_SHELL"
  577. export SHELL
  578. echo="$CONFIG_SHELL $0 --fallback-echo"
  579. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  580. test "X$echo_testing_string" = 'X\t' &&
  581. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  582. test "X$echo_testing_string" = "X$echo_test_string"; then
  583. echo="$CONFIG_SHELL $0 --fallback-echo"
  584. else
  585. # maybe with a smaller string...
  586. prev=:
  587. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  588. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  589. then
  590. break
  591. fi
  592. prev="$cmd"
  593. done
  594. if test "$prev" != 'sed 50q "$0"'; then
  595. echo_test_string=`eval $prev`
  596. export echo_test_string
  597. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  598. else
  599. # Oops. We lost completely, so just stick with echo.
  600. echo=echo
  601. fi
  602. fi
  603. fi
  604. fi
  605. fi
  606. fi
  607. # Copy echo and quote the copy suitably for passing to libtool from
  608. # the Makefile, instead of quoting the original, which is used later.
  609. ECHO=$echo
  610. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  611. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  612. fi
  613. exec 7<&0 </dev/null 6>&1
  614. # Name of the host.
  615. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  616. # so uname gets run too.
  617. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  618. #
  619. # Initializations.
  620. #
  621. ac_default_prefix=/usr/local
  622. ac_clean_files=
  623. ac_config_libobj_dir=.
  624. LIBOBJS=
  625. cross_compiling=no
  626. subdirs=
  627. MFLAGS=
  628. MAKEFLAGS=
  629. SHELL=${CONFIG_SHELL-/bin/sh}
  630. # Identity of this package.
  631. PACKAGE_NAME='curl'
  632. PACKAGE_TARNAME='curl'
  633. PACKAGE_VERSION='-'
  634. PACKAGE_STRING='curl -'
  635. PACKAGE_BUGREPORT='a suitable curl mailing list => http://curl.haxx.se/mail/'
  636. ac_unique_file="lib/urldata.h"
  637. # Factoring default headers for most tests.
  638. ac_includes_default="\
  639. #include <stdio.h>
  640. #ifdef HAVE_SYS_TYPES_H
  641. # include <sys/types.h>
  642. #endif
  643. #ifdef HAVE_SYS_STAT_H
  644. # include <sys/stat.h>
  645. #endif
  646. #ifdef STDC_HEADERS
  647. # include <stdlib.h>
  648. # include <stddef.h>
  649. #else
  650. # ifdef HAVE_STDLIB_H
  651. # include <stdlib.h>
  652. # endif
  653. #endif
  654. #ifdef HAVE_STRING_H
  655. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  656. # include <memory.h>
  657. # endif
  658. # include <string.h>
  659. #endif
  660. #ifdef HAVE_STRINGS_H
  661. # include <strings.h>
  662. #endif
  663. #ifdef HAVE_INTTYPES_H
  664. # include <inttypes.h>
  665. #endif
  666. #ifdef HAVE_STDINT_H
  667. # include <stdint.h>
  668. #endif
  669. #ifdef HAVE_UNISTD_H
  670. # include <unistd.h>
  671. #endif"
  672. ac_subst_vars='SHELL
  673. PATH_SEPARATOR
  674. PACKAGE_NAME
  675. PACKAGE_TARNAME
  676. PACKAGE_VERSION
  677. PACKAGE_STRING
  678. PACKAGE_BUGREPORT
  679. exec_prefix
  680. prefix
  681. program_transform_name
  682. bindir
  683. sbindir
  684. libexecdir
  685. datarootdir
  686. datadir
  687. sysconfdir
  688. sharedstatedir
  689. localstatedir
  690. includedir
  691. oldincludedir
  692. docdir
  693. infodir
  694. htmldir
  695. dvidir
  696. pdfdir
  697. psdir
  698. libdir
  699. localedir
  700. mandir
  701. DEFS
  702. ECHO_C
  703. ECHO_N
  704. ECHO_T
  705. LIBS
  706. build_alias
  707. host_alias
  708. target_alias
  709. MAINTAINER_MODE_TRUE
  710. MAINTAINER_MODE_FALSE
  711. MAINT
  712. SED
  713. GREP
  714. EGREP
  715. AR
  716. libext
  717. INSTALL_PROGRAM
  718. INSTALL_SCRIPT
  719. INSTALL_DATA
  720. CYGPATH_W
  721. PACKAGE
  722. VERSION
  723. ACLOCAL
  724. AUTOCONF
  725. AUTOMAKE
  726. AUTOHEADER
  727. MAKEINFO
  728. install_sh
  729. STRIP
  730. INSTALL_STRIP_PROGRAM
  731. mkdir_p
  732. AWK
  733. SET_MAKE
  734. am__leading_dot
  735. AMTAR
  736. am__tar
  737. am__untar
  738. VERSIONNUM
  739. PKGADD_PKG
  740. PKGADD_NAME
  741. PKGADD_VENDOR
  742. build
  743. build_cpu
  744. build_vendor
  745. build_os
  746. host
  747. host_cpu
  748. host_vendor
  749. host_os
  750. CC
  751. CFLAGS
  752. LDFLAGS
  753. CPPFLAGS
  754. ac_ct_CC
  755. EXEEXT
  756. OBJEXT
  757. DEPDIR
  758. am__include
  759. am__quote
  760. AMDEP_TRUE
  761. AMDEP_FALSE
  762. AMDEPBACKSLASH
  763. CCDEPMODE
  764. am__fastdepCC_TRUE
  765. am__fastdepCC_FALSE
  766. CPP
  767. LN_S
  768. ECHO
  769. RANLIB
  770. DSYMUTIL
  771. NMEDIT
  772. DLLTOOL
  773. AS
  774. OBJDUMP
  775. LIBTOOL
  776. NO_UNDEFINED_TRUE
  777. NO_UNDEFINED_FALSE
  778. MIMPURE_TRUE
  779. MIMPURE_FALSE
  780. STATICLIB_TRUE
  781. STATICLIB_FALSE
  782. REQUIRE_LIB_DEPS
  783. CURL_DISABLE_HTTP
  784. CURL_DISABLE_FTP
  785. CURL_DISABLE_FILE
  786. CURL_DISABLE_LDAP
  787. CURL_DISABLE_LDAPS
  788. CURL_DISABLE_DICT
  789. CURL_DISABLE_TELNET
  790. CURL_DISABLE_TFTP
  791. KRB4_ENABLED
  792. PKGCONFIG
  793. USE_SSLEAY
  794. HAVE_LIBZ
  795. HAVE_LIBZ_TRUE
  796. HAVE_LIBZ_FALSE
  797. USE_LIBSSH2
  798. RANDOM_FILE
  799. USE_GNUTLS
  800. HAVE_PK11_CREATEGENERICOBJECT
  801. USE_NSS
  802. SSL_ENABLED
  803. CURL_CA_BUNDLE
  804. IDN_ENABLED
  805. IPV6_ENABLED
  806. PERL
  807. NROFF
  808. MANOPT
  809. USE_MANUAL_TRUE
  810. USE_MANUAL_FALSE
  811. HAVE_ARES
  812. subdirs
  813. USE_WINDOWS_SSPI
  814. SONAME_BUMP_TRUE
  815. SONAME_BUMP_FALSE
  816. LIBCURL_LIBS
  817. CURL_LIBS
  818. TEST_SERVER_LIBS
  819. CROSSCOMPILING_TRUE
  820. CROSSCOMPILING_FALSE
  821. LIBOBJS
  822. LTLIBOBJS'
  823. ac_subst_files=''
  824. ac_precious_vars='build_alias
  825. host_alias
  826. target_alias
  827. CC
  828. CFLAGS
  829. LDFLAGS
  830. LIBS
  831. CPPFLAGS
  832. CPP'
  833. ac_subdirs_all='ares'
  834. # Initialize some variables set by options.
  835. ac_init_help=
  836. ac_init_version=false
  837. # The variables have the same names as the options, with
  838. # dashes changed to underlines.
  839. cache_file=/dev/null
  840. exec_prefix=NONE
  841. no_create=
  842. no_recursion=
  843. prefix=NONE
  844. program_prefix=NONE
  845. program_suffix=NONE
  846. program_transform_name=s,x,x,
  847. silent=
  848. site=
  849. srcdir=
  850. verbose=
  851. x_includes=NONE
  852. x_libraries=NONE
  853. # Installation directory options.
  854. # These are left unexpanded so users can "make install exec_prefix=/foo"
  855. # and all the variables that are supposed to be based on exec_prefix
  856. # by default will actually change.
  857. # Use braces instead of parens because sh, perl, etc. also accept them.
  858. # (The list follows the same order as the GNU Coding Standards.)
  859. bindir='${exec_prefix}/bin'
  860. sbindir='${exec_prefix}/sbin'
  861. libexecdir='${exec_prefix}/libexec'
  862. datarootdir='${prefix}/share'
  863. datadir='${datarootdir}'
  864. sysconfdir='${prefix}/etc'
  865. sharedstatedir='${prefix}/com'
  866. localstatedir='${prefix}/var'
  867. includedir='${prefix}/include'
  868. oldincludedir='/usr/include'
  869. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  870. infodir='${datarootdir}/info'
  871. htmldir='${docdir}'
  872. dvidir='${docdir}'
  873. pdfdir='${docdir}'
  874. psdir='${docdir}'
  875. libdir='${exec_prefix}/lib'
  876. localedir='${datarootdir}/locale'
  877. mandir='${datarootdir}/man'
  878. ac_prev=
  879. ac_dashdash=
  880. for ac_option
  881. do
  882. # If the previous option needs an argument, assign it.
  883. if test -n "$ac_prev"; then
  884. eval $ac_prev=\$ac_option
  885. ac_prev=
  886. continue
  887. fi
  888. case $ac_option in
  889. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  890. *) ac_optarg=yes ;;
  891. esac
  892. # Accept the important Cygnus configure options, so we can diagnose typos.
  893. case $ac_dashdash$ac_option in
  894. --)
  895. ac_dashdash=yes ;;
  896. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  897. ac_prev=bindir ;;
  898. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  899. bindir=$ac_optarg ;;
  900. -build | --build | --buil | --bui | --bu)
  901. ac_prev=build_alias ;;
  902. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  903. build_alias=$ac_optarg ;;
  904. -cache-file | --cache-file | --cache-fil | --cache-fi \
  905. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  906. ac_prev=cache_file ;;
  907. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  908. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  909. cache_file=$ac_optarg ;;
  910. --config-cache | -C)
  911. cache_file=config.cache ;;
  912. -datadir | --datadir | --datadi | --datad)
  913. ac_prev=datadir ;;
  914. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  915. datadir=$ac_optarg ;;
  916. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  917. | --dataroo | --dataro | --datar)
  918. ac_prev=datarootdir ;;
  919. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  920. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  921. datarootdir=$ac_optarg ;;
  922. -disable-* | --disable-*)
  923. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  924. # Reject names that are not valid shell variable names.
  925. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  926. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  927. { (exit 1); exit 1; }; }
  928. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  929. eval enable_$ac_feature=no ;;
  930. -docdir | --docdir | --docdi | --doc | --do)
  931. ac_prev=docdir ;;
  932. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  933. docdir=$ac_optarg ;;
  934. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  935. ac_prev=dvidir ;;
  936. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  937. dvidir=$ac_optarg ;;
  938. -enable-* | --enable-*)
  939. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  940. # Reject names that are not valid shell variable names.
  941. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  942. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  943. { (exit 1); exit 1; }; }
  944. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  945. eval enable_$ac_feature=\$ac_optarg ;;
  946. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  947. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  948. | --exec | --exe | --ex)
  949. ac_prev=exec_prefix ;;
  950. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  951. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  952. | --exec=* | --exe=* | --ex=*)
  953. exec_prefix=$ac_optarg ;;
  954. -gas | --gas | --ga | --g)
  955. # Obsolete; use --with-gas.
  956. with_gas=yes ;;
  957. -help | --help | --hel | --he | -h)
  958. ac_init_help=long ;;
  959. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  960. ac_init_help=recursive ;;
  961. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  962. ac_init_help=short ;;
  963. -host | --host | --hos | --ho)
  964. ac_prev=host_alias ;;
  965. -host=* | --host=* | --hos=* | --ho=*)
  966. host_alias=$ac_optarg ;;
  967. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  968. ac_prev=htmldir ;;
  969. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  970. | --ht=*)
  971. htmldir=$ac_optarg ;;
  972. -includedir | --includedir | --includedi | --included | --include \
  973. | --includ | --inclu | --incl | --inc)
  974. ac_prev=includedir ;;
  975. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  976. | --includ=* | --inclu=* | --incl=* | --inc=*)
  977. includedir=$ac_optarg ;;
  978. -infodir | --infodir | --infodi | --infod | --info | --inf)
  979. ac_prev=infodir ;;
  980. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  981. infodir=$ac_optarg ;;
  982. -libdir | --libdir | --libdi | --libd)
  983. ac_prev=libdir ;;
  984. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  985. libdir=$ac_optarg ;;
  986. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  987. | --libexe | --libex | --libe)
  988. ac_prev=libexecdir ;;
  989. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  990. | --libexe=* | --libex=* | --libe=*)
  991. libexecdir=$ac_optarg ;;
  992. -localedir | --localedir | --localedi | --localed | --locale)
  993. ac_prev=localedir ;;
  994. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  995. localedir=$ac_optarg ;;
  996. -localstatedir | --localstatedir | --localstatedi | --localstated \
  997. | --localstate | --localstat | --localsta | --localst | --locals)
  998. ac_prev=localstatedir ;;
  999. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1000. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1001. localstatedir=$ac_optarg ;;
  1002. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1003. ac_prev=mandir ;;
  1004. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1005. mandir=$ac_optarg ;;
  1006. -nfp | --nfp | --nf)
  1007. # Obsolete; use --without-fp.
  1008. with_fp=no ;;
  1009. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1010. | --no-cr | --no-c | -n)
  1011. no_create=yes ;;
  1012. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1013. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1014. no_recursion=yes ;;
  1015. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1016. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1017. | --oldin | --oldi | --old | --ol | --o)
  1018. ac_prev=oldincludedir ;;
  1019. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1020. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1021. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1022. oldincludedir=$ac_optarg ;;
  1023. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1024. ac_prev=prefix ;;
  1025. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1026. prefix=$ac_optarg ;;
  1027. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1028. | --program-pre | --program-pr | --program-p)
  1029. ac_prev=program_prefix ;;
  1030. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1031. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1032. program_prefix=$ac_optarg ;;
  1033. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1034. | --program-suf | --program-su | --program-s)
  1035. ac_prev=program_suffix ;;
  1036. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1037. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1038. program_suffix=$ac_optarg ;;
  1039. -program-transform-name | --program-transform-name \
  1040. | --program-transform-nam | --program-transform-na \
  1041. | --program-transform-n | --program-transform- \
  1042. | --program-transform | --program-transfor \
  1043. | --program-transfo | --program-transf \
  1044. | --program-trans | --program-tran \
  1045. | --progr-tra | --program-tr | --program-t)
  1046. ac_prev=program_transform_name ;;
  1047. -program-transform-name=* | --program-transform-name=* \
  1048. | --program-transform-nam=* | --program-transform-na=* \
  1049. | --program-transform-n=* | --program-transform-=* \
  1050. | --program-transform=* | --program-transfor=* \
  1051. | --program-transfo=* | --program-transf=* \
  1052. | --program-trans=* | --program-tran=* \
  1053. | --progr-tra=* | --program-tr=* | --program-t=*)
  1054. program_transform_name=$ac_optarg ;;
  1055. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1056. ac_prev=pdfdir ;;
  1057. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1058. pdfdir=$ac_optarg ;;
  1059. -psdir | --psdir | --psdi | --psd | --ps)
  1060. ac_prev=psdir ;;
  1061. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1062. psdir=$ac_optarg ;;
  1063. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1064. | -silent | --silent | --silen | --sile | --sil)
  1065. silent=yes ;;
  1066. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1067. ac_prev=sbindir ;;
  1068. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1069. | --sbi=* | --sb=*)
  1070. sbindir=$ac_optarg ;;
  1071. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1072. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1073. | --sharedst | --shareds | --shared | --share | --shar \
  1074. | --sha | --sh)
  1075. ac_prev=sharedstatedir ;;
  1076. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1077. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1078. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1079. | --sha=* | --sh=*)
  1080. sharedstatedir=$ac_optarg ;;
  1081. -site | --site | --sit)
  1082. ac_prev=site ;;
  1083. -site=* | --site=* | --sit=*)
  1084. site=$ac_optarg ;;
  1085. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1086. ac_prev=srcdir ;;
  1087. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1088. srcdir=$ac_optarg ;;
  1089. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1090. | --syscon | --sysco | --sysc | --sys | --sy)
  1091. ac_prev=sysconfdir ;;
  1092. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1093. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1094. sysconfdir=$ac_optarg ;;
  1095. -target | --target | --targe | --targ | --tar | --ta | --t)
  1096. ac_prev=target_alias ;;
  1097. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1098. target_alias=$ac_optarg ;;
  1099. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1100. verbose=yes ;;
  1101. -version | --version | --versio | --versi | --vers | -V)
  1102. ac_init_version=: ;;
  1103. -with-* | --with-*)
  1104. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1105. # Reject names that are not valid shell variable names.
  1106. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1107. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1108. { (exit 1); exit 1; }; }
  1109. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1110. eval with_$ac_package=\$ac_optarg ;;
  1111. -without-* | --without-*)
  1112. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1113. # Reject names that are not valid shell variable names.
  1114. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1115. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1116. { (exit 1); exit 1; }; }
  1117. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1118. eval with_$ac_package=no ;;
  1119. --x)
  1120. # Obsolete; use --with-x.
  1121. with_x=yes ;;
  1122. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1123. | --x-incl | --x-inc | --x-in | --x-i)
  1124. ac_prev=x_includes ;;
  1125. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1126. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1127. x_includes=$ac_optarg ;;
  1128. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1129. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1130. ac_prev=x_libraries ;;
  1131. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1132. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1133. x_libraries=$ac_optarg ;;
  1134. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1135. Try \`$0 --help' for more information." >&2
  1136. { (exit 1); exit 1; }; }
  1137. ;;
  1138. *=*)
  1139. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1140. # Reject names that are not valid shell variable names.
  1141. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1142. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1143. { (exit 1); exit 1; }; }
  1144. eval $ac_envvar=\$ac_optarg
  1145. export $ac_envvar ;;
  1146. *)
  1147. # FIXME: should be removed in autoconf 3.0.
  1148. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1149. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1150. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1151. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1152. ;;
  1153. esac
  1154. done
  1155. if test -n "$ac_prev"; then
  1156. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1157. { echo "$as_me: error: missing argument to $ac_option" >&2
  1158. { (exit 1); exit 1; }; }
  1159. fi
  1160. # Be sure to have absolute directory names.
  1161. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1162. datadir sysconfdir sharedstatedir localstatedir includedir \
  1163. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1164. libdir localedir mandir
  1165. do
  1166. eval ac_val=\$$ac_var
  1167. case $ac_val in
  1168. [\\/$]* | ?:[\\/]* ) continue;;
  1169. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1170. esac
  1171. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1172. { (exit 1); exit 1; }; }
  1173. done
  1174. # There might be people who depend on the old broken behavior: `$host'
  1175. # used to hold the argument of --host etc.
  1176. # FIXME: To remove some day.
  1177. build=$build_alias
  1178. host=$host_alias
  1179. target=$target_alias
  1180. # FIXME: To remove some day.
  1181. if test "x$host_alias" != x; then
  1182. if test "x$build_alias" = x; then
  1183. cross_compiling=maybe
  1184. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1185. If a cross compiler is detected then cross compile mode will be used." >&2
  1186. elif test "x$build_alias" != "x$host_alias"; then
  1187. cross_compiling=yes
  1188. fi
  1189. fi
  1190. ac_tool_prefix=
  1191. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1192. test "$silent" = yes && exec 6>/dev/null
  1193. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1194. ac_ls_di=`ls -di .` &&
  1195. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1196. { echo "$as_me: error: Working directory cannot be determined" >&2
  1197. { (exit 1); exit 1; }; }
  1198. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1199. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1200. { (exit 1); exit 1; }; }
  1201. # Find the source files, if location was not specified.
  1202. if test -z "$srcdir"; then
  1203. ac_srcdir_defaulted=yes
  1204. # Try the directory containing this script, then the parent directory.
  1205. ac_confdir=`$as_dirname -- "$0" ||
  1206. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1207. X"$0" : 'X\(//\)[^/]' \| \
  1208. X"$0" : 'X\(//\)$' \| \
  1209. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1210. echo X"$0" |
  1211. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1212. s//\1/
  1213. q
  1214. }
  1215. /^X\(\/\/\)[^/].*/{
  1216. s//\1/
  1217. q
  1218. }
  1219. /^X\(\/\/\)$/{
  1220. s//\1/
  1221. q
  1222. }
  1223. /^X\(\/\).*/{
  1224. s//\1/
  1225. q
  1226. }
  1227. s/.*/./; q'`
  1228. srcdir=$ac_confdir
  1229. if test ! -r "$srcdir/$ac_unique_file"; then
  1230. srcdir=..
  1231. fi
  1232. else
  1233. ac_srcdir_defaulted=no
  1234. fi
  1235. if test ! -r "$srcdir/$ac_unique_file"; then
  1236. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1237. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1238. { (exit 1); exit 1; }; }
  1239. fi
  1240. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1241. ac_abs_confdir=`(
  1242. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1243. { (exit 1); exit 1; }; }
  1244. pwd)`
  1245. # When building in place, set srcdir=.
  1246. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1247. srcdir=.
  1248. fi
  1249. # Remove unnecessary trailing slashes from srcdir.
  1250. # Double slashes in file names in object file debugging info
  1251. # mess up M-x gdb in Emacs.
  1252. case $srcdir in
  1253. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1254. esac
  1255. for ac_var in $ac_precious_vars; do
  1256. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1257. eval ac_env_${ac_var}_value=\$${ac_var}
  1258. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1259. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1260. done
  1261. #
  1262. # Report the --help message.
  1263. #
  1264. if test "$ac_init_help" = "long"; then
  1265. # Omit some internal or obsolete options to make the list less imposing.
  1266. # This message is too long to be a string in the A/UX 3.1 sh.
  1267. cat <<_ACEOF
  1268. \`configure' configures curl - to adapt to many kinds of systems.
  1269. Usage: $0 [OPTION]... [VAR=VALUE]...
  1270. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1271. VAR=VALUE. See below for descriptions of some of the useful variables.
  1272. Defaults for the options are specified in brackets.
  1273. Configuration:
  1274. -h, --help display this help and exit
  1275. --help=short display options specific to this package
  1276. --help=recursive display the short help of all the included packages
  1277. -V, --version display version information and exit
  1278. -q, --quiet, --silent do not print \`checking...' messages
  1279. --cache-file=FILE cache test results in FILE [disabled]
  1280. -C, --config-cache alias for \`--cache-file=config.cache'
  1281. -n, --no-create do not create output files
  1282. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1283. Installation directories:
  1284. --prefix=PREFIX install architecture-independent files in PREFIX
  1285. [$ac_default_prefix]
  1286. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1287. [PREFIX]
  1288. By default, \`make install' will install all the files in
  1289. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1290. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1291. for instance \`--prefix=\$HOME'.
  1292. For better control, use the options below.
  1293. Fine tuning of the installation directories:
  1294. --bindir=DIR user executables [EPREFIX/bin]
  1295. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1296. --libexecdir=DIR program executables [EPREFIX/libexec]
  1297. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1298. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1299. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1300. --libdir=DIR object code libraries [EPREFIX/lib]
  1301. --includedir=DIR C header files [PREFIX/include]
  1302. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1303. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1304. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1305. --infodir=DIR info documentation [DATAROOTDIR/info]
  1306. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1307. --mandir=DIR man documentation [DATAROOTDIR/man]
  1308. --docdir=DIR documentation root [DATAROOTDIR/doc/curl]
  1309. --htmldir=DIR html documentation [DOCDIR]
  1310. --dvidir=DIR dvi documentation [DOCDIR]
  1311. --pdfdir=DIR pdf documentation [DOCDIR]
  1312. --psdir=DIR ps documentation [DOCDIR]
  1313. _ACEOF
  1314. cat <<\_ACEOF
  1315. Program names:
  1316. --program-prefix=PREFIX prepend PREFIX to installed program names
  1317. --program-suffix=SUFFIX append SUFFIX to installed program names
  1318. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1319. System types:
  1320. --build=BUILD configure for building on BUILD [guessed]
  1321. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1322. _ACEOF
  1323. fi
  1324. if test -n "$ac_init_help"; then
  1325. case $ac_init_help in
  1326. short | recursive ) echo "Configuration of curl -:";;
  1327. esac
  1328. cat <<\_ACEOF
  1329. Optional Features:
  1330. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1331. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1332. --enable-maintainer-mode enable make rules and dependencies not useful
  1333. (and sometimes confusing) to the casual installer
  1334. --disable-dependency-tracking speeds up one-time build
  1335. --enable-dependency-tracking do not reject slow dependency extractors
  1336. --disable-largefile omit support for large files
  1337. --enable-shared[=PKGS] build shared libraries [default=yes]
  1338. --enable-static[=PKGS] build static libraries [default=yes]
  1339. --enable-fast-install[=PKGS]
  1340. optimize for fast installation [default=yes]
  1341. --disable-libtool-lock avoid locking (might break parallel builds)
  1342. --enable-http Enable HTTP support
  1343. --disable-http Disable HTTP support
  1344. --enable-ftp Enable FTP support
  1345. --disable-ftp Disable FTP support
  1346. --enable-file Enable FILE support
  1347. --disable-file Disable FILE support
  1348. --enable-ldap Enable LDAP support
  1349. --disable-ldap Disable LDAP support
  1350. --enable-ldaps Enable LDAPS support
  1351. --disable-ldaps Disable LDAPS support
  1352. --enable-dict Enable DICT support
  1353. --disable-dict Disable DICT support
  1354. --enable-telnet Enable TELNET support
  1355. --disable-telnet Disable TELNET support
  1356. --enable-tftp Enable TFTP support
  1357. --disable-tftp Disable TFTP support
  1358. --enable-manual Enable built-in manual
  1359. --disable-manual Disable built-in manual
  1360. --enable-libgcc use libgcc when linking
  1361. --enable-ipv6 Enable ipv6 (with ipv4) support
  1362. --disable-ipv6 Disable ipv6 support
  1363. --enable-nonblocking Enable detecting how to do it
  1364. --disable-nonblocking Disable non-blocking socket detection
  1365. --disable-thread don't look for thread-safe functions
  1366. --enable-thread look for thread-safe functions
  1367. --enable-ares=PATH Enable c-ares for name lookups
  1368. --disable-ares Disable c-ares for name lookups
  1369. --enable-verbose Enable verbose strings
  1370. --disable-verbose Disable verbose strings
  1371. --enable-sspi Enable SSPI
  1372. --disable-sspi Disable SSPI
  1373. --enable-debug Enable pedantic debug options
  1374. --disable-debug Disable debug options
  1375. --enable-crypto-auth Enable cryptographic authentication
  1376. --disable-crypto-auth Disable cryptographic authentication
  1377. --enable-cookies Enable cookies support
  1378. --disable-cookies Disable cookies support
  1379. --enable-hidden-symbols Hide internal symbols in library
  1380. --disable-hidden-symbols
  1381. Leave all symbols with default visibility in library
  1382. --enable-soname-bump Enable enforced SONAME bump
  1383. --disable-soname-bump Disable enforced SONAME bump
  1384. Optional Packages:
  1385. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1386. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1387. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1388. --with-pic try to use only PIC/non-PIC objects [default=use
  1389. both]
  1390. --with-tags[=TAGS] include additional configurations [automatic]
  1391. --with-ldap-lib=libname Specify name of ldap lib file
  1392. --with-lber-lib=libname Specify name of lber lib file
  1393. --with-krb4-includes=DIR
  1394. Specify location of kerberos4 headers
  1395. --with-krb4-libs=DIR Specify location of kerberos4 libs
  1396. --with-krb4=DIR where to look for Kerberos4
  1397. --with-spnego=DIR Specify location of SPNEGO library fbopenssl
  1398. --with-gssapi-includes=DIR
  1399. Specify location of GSSAPI header
  1400. --with-gssapi-libs=DIR Specify location of GSSAPI libs
  1401. --with-gssapi=DIR Where to look for GSSAPI
  1402. --with-ssl=PATH Where to look for OpenSSL, PATH points to the SSL
  1403. installation (default: /usr/local/ssl); when
  1404. possible, set the PKG_CONFIG_PATH environment
  1405. variable instead of using this option
  1406. --without-ssl disable OpenSSL
  1407. --with-zlib=PATH search for zlib in PATH
  1408. --without-zlib disable use of zlib
  1409. --with-libssh2=PATH Where to look for libssh2, PATH points to the
  1410. LIBSSH2 installation (default: /usr/local/lib); when
  1411. possible, set the PKG_CONFIG_PATH environment
  1412. variable instead of using this option
  1413. --without-libssh2 disable LIBSSH2
  1414. --with-egd-socket=FILE Entropy Gathering Daemon socket pathname
  1415. --with-random=FILE read randomness from FILE (default=/dev/urandom)
  1416. --with-gnutls=PATH where to look for GnuTLS, PATH points to the
  1417. installation root (default: /usr/local/)
  1418. --without-gnutls disable GnuTLS detection
  1419. --with-nss=PATH where to look for NSS, PATH points to the
  1420. installation root (default: /usr/local/)
  1421. --without-nss disable NSS detection
  1422. --with-ca-bundle=FILE File name to use as CA bundle
  1423. --without-ca-bundle Don't use a default CA bundle
  1424. --with-ca-path=DIRECTORY
  1425. Directory to use as CA path
  1426. --without-ca-path Don't use a default CA path
  1427. --with-libidn=PATH Enable libidn usage
  1428. --without-libidn Disable libidn usage
  1429. Some influential environment variables:
  1430. CC C compiler command
  1431. CFLAGS C compiler flags
  1432. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1433. nonstandard directory <lib dir>
  1434. LIBS libraries to pass to the linker, e.g. -l<library>
  1435. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1436. you have headers in a nonstandard directory <include dir>
  1437. CPP C preprocessor
  1438. Use these variables to override the choices made by `configure' or to help
  1439. it to find libraries and programs with nonstandard names/locations.
  1440. Report bugs to <a suitable curl mailing list => http://curl.haxx.se/mail/>.
  1441. _ACEOF
  1442. ac_status=$?
  1443. fi
  1444. if test "$ac_init_help" = "recursive"; then
  1445. # If there are subdirs, report their specific --help.
  1446. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1447. test -d "$ac_dir" || continue
  1448. ac_builddir=.
  1449. case "$ac_dir" in
  1450. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1451. *)
  1452. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1453. # A ".." for each directory in $ac_dir_suffix.
  1454. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1455. case $ac_top_builddir_sub in
  1456. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1457. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1458. esac ;;
  1459. esac
  1460. ac_abs_top_builddir=$ac_pwd
  1461. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1462. # for backward compatibility:
  1463. ac_top_builddir=$ac_top_build_prefix
  1464. case $srcdir in
  1465. .) # We are building in place.
  1466. ac_srcdir=.
  1467. ac_top_srcdir=$ac_top_builddir_sub
  1468. ac_abs_top_srcdir=$ac_pwd ;;
  1469. [\\/]* | ?:[\\/]* ) # Absolute name.
  1470. ac_srcdir=$srcdir$ac_dir_suffix;
  1471. ac_top_srcdir=$srcdir
  1472. ac_abs_top_srcdir=$srcdir ;;
  1473. *) # Relative name.
  1474. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1475. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1476. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1477. esac
  1478. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1479. cd "$ac_dir" || { ac_status=$?; continue; }
  1480. # Check for guested configure.
  1481. if test -f "$ac_srcdir/configure.gnu"; then
  1482. echo &&
  1483. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1484. elif test -f "$ac_srcdir/configure"; then
  1485. echo &&
  1486. $SHELL "$ac_srcdir/configure" --help=recursive
  1487. else
  1488. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1489. fi || ac_status=$?
  1490. cd "$ac_pwd" || { ac_status=$?; break; }
  1491. done
  1492. fi
  1493. test -n "$ac_init_help" && exit $ac_status
  1494. if $ac_init_version; then
  1495. cat <<\_ACEOF
  1496. curl configure -
  1497. generated by GNU Autoconf 2.61
  1498. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1499. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1500. This configure script is free software; the Free Software Foundation
  1501. gives unlimited permission to copy, distribute and modify it.
  1502. Copyright (c) 1998 - 2008 Daniel Stenberg, <[email protected]>
  1503. This configure script may be copied, distributed and modified under the
  1504. terms of the curl license; see COPYING for more details
  1505. _ACEOF
  1506. exit
  1507. fi
  1508. cat >config.log <<_ACEOF
  1509. This file contains any messages produced by compilers while
  1510. running configure, to aid debugging if configure makes a mistake.
  1511. It was created by curl $as_me -, which was
  1512. generated by GNU Autoconf 2.61. Invocation command line was
  1513. $ $0 $@
  1514. _ACEOF
  1515. exec 5>>config.log
  1516. {
  1517. cat <<_ASUNAME
  1518. ## --------- ##
  1519. ## Platform. ##
  1520. ## --------- ##
  1521. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1522. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1523. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1524. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1525. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1526. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1527. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1528. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1529. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1530. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1531. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1532. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1533. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1534. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1535. _ASUNAME
  1536. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1537. for as_dir in $PATH
  1538. do
  1539. IFS=$as_save_IFS
  1540. test -z "$as_dir" && as_dir=.
  1541. echo "PATH: $as_dir"
  1542. done
  1543. IFS=$as_save_IFS
  1544. } >&5
  1545. cat >&5 <<_ACEOF
  1546. ## ----------- ##
  1547. ## Core tests. ##
  1548. ## ----------- ##
  1549. _ACEOF
  1550. # Keep a trace of the command line.
  1551. # Strip out --no-create and --no-recursion so they do not pile up.
  1552. # Strip out --silent because we don't want to record it for future runs.
  1553. # Also quote any args containing shell meta-characters.
  1554. # Make two passes to allow for proper duplicate-argument suppression.
  1555. ac_configure_args=
  1556. ac_configure_args0=
  1557. ac_configure_args1=
  1558. ac_must_keep_next=false
  1559. for ac_pass in 1 2
  1560. do
  1561. for ac_arg
  1562. do
  1563. case $ac_arg in
  1564. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1565. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1566. | -silent | --silent | --silen | --sile | --sil)
  1567. continue ;;
  1568. *\'*)
  1569. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1570. esac
  1571. case $ac_pass in
  1572. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1573. 2)
  1574. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1575. if test $ac_must_keep_next = true; then
  1576. ac_must_keep_next=false # Got value, back to normal.
  1577. else
  1578. case $ac_arg in
  1579. *=* | --config-cache | -C | -disable-* | --disable-* \
  1580. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1581. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1582. | -with-* | --with-* | -without-* | --without-* | --x)
  1583. case "$ac_configure_args0 " in
  1584. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1585. esac
  1586. ;;
  1587. -* ) ac_must_keep_next=true ;;
  1588. esac
  1589. fi
  1590. ac_configure_args="$ac_configure_args '$ac_arg'"
  1591. ;;
  1592. esac
  1593. done
  1594. done
  1595. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1596. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1597. # When interrupted or exit'd, cleanup temporary files, and complete
  1598. # config.log. We remove comments because anyway the quotes in there
  1599. # would cause problems or look ugly.
  1600. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1601. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1602. trap 'exit_status=$?
  1603. # Save into config.log some information that might help in debugging.
  1604. {
  1605. echo
  1606. cat <<\_ASBOX
  1607. ## ---------------- ##
  1608. ## Cache variables. ##
  1609. ## ---------------- ##
  1610. _ASBOX
  1611. echo
  1612. # The following way of writing the cache mishandles newlines in values,
  1613. (
  1614. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1615. eval ac_val=\$$ac_var
  1616. case $ac_val in #(
  1617. *${as_nl}*)
  1618. case $ac_var in #(
  1619. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1620. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1621. esac
  1622. case $ac_var in #(
  1623. _ | IFS | as_nl) ;; #(
  1624. *) $as_unset $ac_var ;;
  1625. esac ;;
  1626. esac
  1627. done
  1628. (set) 2>&1 |
  1629. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1630. *${as_nl}ac_space=\ *)
  1631. sed -n \
  1632. "s/'\''/'\''\\\\'\'''\''/g;
  1633. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1634. ;; #(
  1635. *)
  1636. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1637. ;;
  1638. esac |
  1639. sort
  1640. )
  1641. echo
  1642. cat <<\_ASBOX
  1643. ## ----------------- ##
  1644. ## Output variables. ##
  1645. ## ----------------- ##
  1646. _ASBOX
  1647. echo
  1648. for ac_var in $ac_subst_vars
  1649. do
  1650. eval ac_val=\$$ac_var
  1651. case $ac_val in
  1652. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1653. esac
  1654. echo "$ac_var='\''$ac_val'\''"
  1655. done | sort
  1656. echo
  1657. if test -n "$ac_subst_files"; then
  1658. cat <<\_ASBOX
  1659. ## ------------------- ##
  1660. ## File substitutions. ##
  1661. ## ------------------- ##
  1662. _ASBOX
  1663. echo
  1664. for ac_var in $ac_subst_files
  1665. do
  1666. eval ac_val=\$$ac_var
  1667. case $ac_val in
  1668. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1669. esac
  1670. echo "$ac_var='\''$ac_val'\''"
  1671. done | sort
  1672. echo
  1673. fi
  1674. if test -s confdefs.h; then
  1675. cat <<\_ASBOX
  1676. ## ----------- ##
  1677. ## confdefs.h. ##
  1678. ## ----------- ##
  1679. _ASBOX
  1680. echo
  1681. cat confdefs.h
  1682. echo
  1683. fi
  1684. test "$ac_signal" != 0 &&
  1685. echo "$as_me: caught signal $ac_signal"
  1686. echo "$as_me: exit $exit_status"
  1687. } >&5
  1688. rm -f core *.core core.conftest.* &&
  1689. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1690. exit $exit_status
  1691. ' 0
  1692. for ac_signal in 1 2 13 15; do
  1693. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1694. done
  1695. ac_signal=0
  1696. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1697. rm -f -r conftest* confdefs.h
  1698. # Predefined preprocessor variables.
  1699. cat >>confdefs.h <<_ACEOF
  1700. #define PACKAGE_NAME "$PACKAGE_NAME"
  1701. _ACEOF
  1702. cat >>confdefs.h <<_ACEOF
  1703. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1704. _ACEOF
  1705. cat >>confdefs.h <<_ACEOF
  1706. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1707. _ACEOF
  1708. cat >>confdefs.h <<_ACEOF
  1709. #define PACKAGE_STRING "$PACKAGE_STRING"
  1710. _ACEOF
  1711. cat >>confdefs.h <<_ACEOF
  1712. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1713. _ACEOF
  1714. # Let the site file select an alternate cache file if it wants to.
  1715. # Prefer explicitly selected file to automatically selected ones.
  1716. if test -n "$CONFIG_SITE"; then
  1717. set x "$CONFIG_SITE"
  1718. elif test "x$prefix" != xNONE; then
  1719. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1720. else
  1721. set x "$ac_default_prefix/share/config.site" \
  1722. "$ac_default_prefix/etc/config.site"
  1723. fi
  1724. shift
  1725. for ac_site_file
  1726. do
  1727. if test -r "$ac_site_file"; then
  1728. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1729. echo "$as_me: loading site script $ac_site_file" >&6;}
  1730. sed 's/^/| /' "$ac_site_file" >&5
  1731. . "$ac_site_file"
  1732. fi
  1733. done
  1734. if test -r "$cache_file"; then
  1735. # Some versions of bash will fail to source /dev/null (special
  1736. # files actually), so we avoid doing that.
  1737. if test -f "$cache_file"; then
  1738. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1739. echo "$as_me: loading cache $cache_file" >&6;}
  1740. case $cache_file in
  1741. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1742. *) . "./$cache_file";;
  1743. esac
  1744. fi
  1745. else
  1746. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1747. echo "$as_me: creating cache $cache_file" >&6;}
  1748. >$cache_file
  1749. fi
  1750. # Check that the precious variables saved in the cache have kept the same
  1751. # value.
  1752. ac_cache_corrupted=false
  1753. for ac_var in $ac_precious_vars; do
  1754. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1755. eval ac_new_set=\$ac_env_${ac_var}_set
  1756. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1757. eval ac_new_val=\$ac_env_${ac_var}_value
  1758. case $ac_old_set,$ac_new_set in
  1759. set,)
  1760. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1761. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1762. ac_cache_corrupted=: ;;
  1763. ,set)
  1764. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1765. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1766. ac_cache_corrupted=: ;;
  1767. ,);;
  1768. *)
  1769. if test "x$ac_old_val" != "x$ac_new_val"; then
  1770. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1771. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1772. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1773. echo "$as_me: former value: $ac_old_val" >&2;}
  1774. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1775. echo "$as_me: current value: $ac_new_val" >&2;}
  1776. ac_cache_corrupted=:
  1777. fi;;
  1778. esac
  1779. # Pass precious variables to config.status.
  1780. if test "$ac_new_set" = set; then
  1781. case $ac_new_val in
  1782. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1783. *) ac_arg=$ac_var=$ac_new_val ;;
  1784. esac
  1785. case " $ac_configure_args " in
  1786. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1787. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1788. esac
  1789. fi
  1790. done
  1791. if $ac_cache_corrupted; then
  1792. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1793. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1794. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1795. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1796. { (exit 1); exit 1; }; }
  1797. fi
  1798. ac_ext=c
  1799. ac_cpp='$CPP $CPPFLAGS'
  1800. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1801. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1802. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1803. ac_config_headers="$ac_config_headers lib/config.h src/config.h include/curl/curlbuild.h"
  1804. { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  1805. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
  1806. # Check whether --enable-maintainer-mode was given.
  1807. if test "${enable_maintainer_mode+set}" = set; then
  1808. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  1809. else
  1810. USE_MAINTAINER_MODE=no
  1811. fi
  1812. { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  1813. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
  1814. if test $USE_MAINTAINER_MODE = yes; then
  1815. MAINTAINER_MODE_TRUE=
  1816. MAINTAINER_MODE_FALSE='#'
  1817. else
  1818. MAINTAINER_MODE_TRUE='#'
  1819. MAINTAINER_MODE_FALSE=
  1820. fi
  1821. MAINT=$MAINTAINER_MODE_TRUE
  1822. # Extract the first word of "sed", so it can be a program name with args.
  1823. set dummy sed; ac_word=$2
  1824. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1825. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1826. if test "${ac_cv_path_SED+set}" = set; then
  1827. echo $ECHO_N "(cached) $ECHO_C" >&6
  1828. else
  1829. case $SED in
  1830. [\\/]* | ?:[\\/]*)
  1831. ac_cv_path_SED="$SED" # Let the user override the test with a path.
  1832. ;;
  1833. *)
  1834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1835. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  1836. for as_dir in $as_dummy
  1837. do
  1838. IFS=$as_save_IFS
  1839. test -z "$as_dir" && as_dir=.
  1840. for ac_exec_ext in '' $ac_executable_extensions; do
  1841. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1842. ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
  1843. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1844. break 2
  1845. fi
  1846. done
  1847. done
  1848. IFS=$as_save_IFS
  1849. test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
  1850. ;;
  1851. esac
  1852. fi
  1853. SED=$ac_cv_path_SED
  1854. if test -n "$SED"; then
  1855. { echo "$as_me:$LINENO: result: $SED" >&5
  1856. echo "${ECHO_T}$SED" >&6; }
  1857. else
  1858. { echo "$as_me:$LINENO: result: no" >&5
  1859. echo "${ECHO_T}no" >&6; }
  1860. fi
  1861. if test -z "$SED" || test "$SED" = "not_found"; then
  1862. { { echo "$as_me:$LINENO: error: sed not found in PATH. Cannot continue without sed." >&5
  1863. echo "$as_me: error: sed not found in PATH. Cannot continue without sed." >&2;}
  1864. { (exit 1); exit 1; }; }
  1865. fi
  1866. # Extract the first word of "grep", so it can be a program name with args.
  1867. set dummy grep; ac_word=$2
  1868. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1869. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1870. if test "${ac_cv_path_GREP+set}" = set; then
  1871. echo $ECHO_N "(cached) $ECHO_C" >&6
  1872. else
  1873. case $GREP in
  1874. [\\/]* | ?:[\\/]*)
  1875. ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
  1876. ;;
  1877. *)
  1878. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1879. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  1880. for as_dir in $as_dummy
  1881. do
  1882. IFS=$as_save_IFS
  1883. test -z "$as_dir" && as_dir=.
  1884. for ac_exec_ext in '' $ac_executable_extensions; do
  1885. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1886. ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
  1887. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1888. break 2
  1889. fi
  1890. done
  1891. done
  1892. IFS=$as_save_IFS
  1893. test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
  1894. ;;
  1895. esac
  1896. fi
  1897. GREP=$ac_cv_path_GREP
  1898. if test -n "$GREP"; then
  1899. { echo "$as_me:$LINENO: result: $GREP" >&5
  1900. echo "${ECHO_T}$GREP" >&6; }
  1901. else
  1902. { echo "$as_me:$LINENO: result: no" >&5
  1903. echo "${ECHO_T}no" >&6; }
  1904. fi
  1905. if test -z "$GREP" || test "$GREP" = "not_found"; then
  1906. { { echo "$as_me:$LINENO: error: grep not found in PATH. Cannot continue without grep." >&5
  1907. echo "$as_me: error: grep not found in PATH. Cannot continue without grep." >&2;}
  1908. { (exit 1); exit 1; }; }
  1909. fi
  1910. if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
  1911. { echo "$as_me:$LINENO: checking for egrep" >&5
  1912. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  1913. EGREP="$GREP -E"
  1914. { echo "$as_me:$LINENO: result: $EGREP" >&5
  1915. echo "${ECHO_T}$EGREP" >&6; }
  1916. else
  1917. # Extract the first word of "egrep", so it can be a program name with args.
  1918. set dummy egrep; ac_word=$2
  1919. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1920. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1921. if test "${ac_cv_path_EGREP+set}" = set; then
  1922. echo $ECHO_N "(cached) $ECHO_C" >&6
  1923. else
  1924. case $EGREP in
  1925. [\\/]* | ?:[\\/]*)
  1926. ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
  1927. ;;
  1928. *)
  1929. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1930. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  1931. for as_dir in $as_dummy
  1932. do
  1933. IFS=$as_save_IFS
  1934. test -z "$as_dir" && as_dir=.
  1935. for ac_exec_ext in '' $ac_executable_extensions; do
  1936. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1937. ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
  1938. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1939. break 2
  1940. fi
  1941. done
  1942. done
  1943. IFS=$as_save_IFS
  1944. test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
  1945. ;;
  1946. esac
  1947. fi
  1948. EGREP=$ac_cv_path_EGREP
  1949. if test -n "$EGREP"; then
  1950. { echo "$as_me:$LINENO: result: $EGREP" >&5
  1951. echo "${ECHO_T}$EGREP" >&6; }
  1952. else
  1953. { echo "$as_me:$LINENO: result: no" >&5
  1954. echo "${ECHO_T}no" >&6; }
  1955. fi
  1956. fi
  1957. if test -z "$EGREP" || test "$EGREP" = "not_found"; then
  1958. { { echo "$as_me:$LINENO: error: egrep not found in PATH. Cannot continue without egrep." >&5
  1959. echo "$as_me: error: egrep not found in PATH. Cannot continue without egrep." >&2;}
  1960. { (exit 1); exit 1; }; }
  1961. fi
  1962. if test -n "$ac_tool_prefix"; then
  1963. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  1964. set dummy ${ac_tool_prefix}ar; ac_word=$2
  1965. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1966. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1967. if test "${ac_cv_path_AR+set}" = set; then
  1968. echo $ECHO_N "(cached) $ECHO_C" >&6
  1969. else
  1970. case $AR in
  1971. [\\/]* | ?:[\\/]*)
  1972. ac_cv_path_AR="$AR" # Let the user override the test with a path.
  1973. ;;
  1974. *)
  1975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1976. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  1977. for as_dir in $as_dummy
  1978. do
  1979. IFS=$as_save_IFS
  1980. test -z "$as_dir" && as_dir=.
  1981. for ac_exec_ext in '' $ac_executable_extensions; do
  1982. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1983. ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
  1984. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1985. break 2
  1986. fi
  1987. done
  1988. done
  1989. IFS=$as_save_IFS
  1990. ;;
  1991. esac
  1992. fi
  1993. AR=$ac_cv_path_AR
  1994. if test -n "$AR"; then
  1995. { echo "$as_me:$LINENO: result: $AR" >&5
  1996. echo "${ECHO_T}$AR" >&6; }
  1997. else
  1998. { echo "$as_me:$LINENO: result: no" >&5
  1999. echo "${ECHO_T}no" >&6; }
  2000. fi
  2001. fi
  2002. if test -z "$ac_cv_path_AR"; then
  2003. ac_pt_AR=$AR
  2004. # Extract the first word of "ar", so it can be a program name with args.
  2005. set dummy ar; ac_word=$2
  2006. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2007. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2008. if test "${ac_cv_path_ac_pt_AR+set}" = set; then
  2009. echo $ECHO_N "(cached) $ECHO_C" >&6
  2010. else
  2011. case $ac_pt_AR in
  2012. [\\/]* | ?:[\\/]*)
  2013. ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
  2014. ;;
  2015. *)
  2016. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2017. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  2018. for as_dir in $as_dummy
  2019. do
  2020. IFS=$as_save_IFS
  2021. test -z "$as_dir" && as_dir=.
  2022. for ac_exec_ext in '' $ac_executable_extensions; do
  2023. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2024. ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
  2025. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2026. break 2
  2027. fi
  2028. done
  2029. done
  2030. IFS=$as_save_IFS
  2031. ;;
  2032. esac
  2033. fi
  2034. ac_pt_AR=$ac_cv_path_ac_pt_AR
  2035. if test -n "$ac_pt_AR"; then
  2036. { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
  2037. echo "${ECHO_T}$ac_pt_AR" >&6; }
  2038. else
  2039. { echo "$as_me:$LINENO: result: no" >&5
  2040. echo "${ECHO_T}no" >&6; }
  2041. fi
  2042. if test "x$ac_pt_AR" = x; then
  2043. AR="not_found"
  2044. else
  2045. case $cross_compiling:$ac_tool_warned in
  2046. yes:)
  2047. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2048. whose name does not start with the host triplet. If you think this
  2049. configuration is useful to you, please write to [email protected]." >&5
  2050. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2051. whose name does not start with the host triplet. If you think this
  2052. configuration is useful to you, please write to [email protected]." >&2;}
  2053. ac_tool_warned=yes ;;
  2054. esac
  2055. AR=$ac_pt_AR
  2056. fi
  2057. else
  2058. AR="$ac_cv_path_AR"
  2059. fi
  2060. if test -z "$AR" || test "$AR" = "not_found"; then
  2061. { { echo "$as_me:$LINENO: error: ar not found in PATH. Cannot continue without ar." >&5
  2062. echo "$as_me: error: ar not found in PATH. Cannot continue without ar." >&2;}
  2063. { (exit 1); exit 1; }; }
  2064. fi
  2065. VERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curlver.h`
  2066. am__api_version="1.9"
  2067. ac_aux_dir=
  2068. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2069. if test -f "$ac_dir/install-sh"; then
  2070. ac_aux_dir=$ac_dir
  2071. ac_install_sh="$ac_aux_dir/install-sh -c"
  2072. break
  2073. elif test -f "$ac_dir/install.sh"; then
  2074. ac_aux_dir=$ac_dir
  2075. ac_install_sh="$ac_aux_dir/install.sh -c"
  2076. break
  2077. elif test -f "$ac_dir/shtool"; then
  2078. ac_aux_dir=$ac_dir
  2079. ac_install_sh="$ac_aux_dir/shtool install -c"
  2080. break
  2081. fi
  2082. done
  2083. if test -z "$ac_aux_dir"; then
  2084. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  2085. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  2086. { (exit 1); exit 1; }; }
  2087. fi
  2088. # These three variables are undocumented and unsupported,
  2089. # and are intended to be withdrawn in a future Autoconf release.
  2090. # They can cause serious problems if a builder's source tree is in a directory
  2091. # whose full name contains unusual characters.
  2092. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2093. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2094. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2095. # Find a good install program. We prefer a C program (faster),
  2096. # so one script is as good as another. But avoid the broken or
  2097. # incompatible versions:
  2098. # SysV /etc/install, /usr/sbin/install
  2099. # SunOS /usr/etc/install
  2100. # IRIX /sbin/install
  2101. # AIX /bin/install
  2102. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2103. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2104. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2105. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2106. # OS/2's system install, which has a completely different semantic
  2107. # ./install, which can be erroneously created by make from ./install.sh.
  2108. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2109. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  2110. if test -z "$INSTALL"; then
  2111. if test "${ac_cv_path_install+set}" = set; then
  2112. echo $ECHO_N "(cached) $ECHO_C" >&6
  2113. else
  2114. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2115. for as_dir in $PATH
  2116. do
  2117. IFS=$as_save_IFS
  2118. test -z "$as_dir" && as_dir=.
  2119. # Account for people who put trailing slashes in PATH elements.
  2120. case $as_dir/ in
  2121. ./ | .// | /cC/* | \
  2122. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2123. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2124. /usr/ucb/* ) ;;
  2125. *)
  2126. # OSF1 and SCO ODT 3.0 have their own names for install.
  2127. # Don't use installbsd from OSF since it installs stuff as root
  2128. # by default.
  2129. for ac_prog in ginstall scoinst install; do
  2130. for ac_exec_ext in '' $ac_executable_extensions; do
  2131. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2132. if test $ac_prog = install &&
  2133. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2134. # AIX install. It has an incompatible calling convention.
  2135. :
  2136. elif test $ac_prog = install &&
  2137. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2138. # program-specific install script used by HP pwplus--don't use.
  2139. :
  2140. else
  2141. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2142. break 3
  2143. fi
  2144. fi
  2145. done
  2146. done
  2147. ;;
  2148. esac
  2149. done
  2150. IFS=$as_save_IFS
  2151. fi
  2152. if test "${ac_cv_path_install+set}" = set; then
  2153. INSTALL=$ac_cv_path_install
  2154. else
  2155. # As a last resort, use the slow shell script. Don't cache a
  2156. # value for INSTALL within a source directory, because that will
  2157. # break other packages using the cache if that directory is
  2158. # removed, or if the value is a relative name.
  2159. INSTALL=$ac_install_sh
  2160. fi
  2161. fi
  2162. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  2163. echo "${ECHO_T}$INSTALL" >&6; }
  2164. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2165. # It thinks the first close brace ends the variable substitution.
  2166. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2167. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2168. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2169. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2170. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  2171. # Just in case
  2172. sleep 1
  2173. echo timestamp > conftest.file
  2174. # Do `set' in a subshell so we don't clobber the current shell's
  2175. # arguments. Must try -L first in case configure is actually a
  2176. # symlink; some systems play weird games with the mod time of symlinks
  2177. # (eg FreeBSD returns the mod time of the symlink's containing
  2178. # directory).
  2179. if (
  2180. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2181. if test "$*" = "X"; then
  2182. # -L didn't work.
  2183. set X `ls -t $srcdir/configure conftest.file`
  2184. fi
  2185. rm -f conftest.file
  2186. if test "$*" != "X $srcdir/configure conftest.file" \
  2187. && test "$*" != "X conftest.file $srcdir/configure"; then
  2188. # If neither matched, then we have a broken ls. This can happen
  2189. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2190. # broken ls alias from the environment. This has actually
  2191. # happened. Such a system could not be considered "sane".
  2192. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  2193. alias in your environment" >&5
  2194. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  2195. alias in your environment" >&2;}
  2196. { (exit 1); exit 1; }; }
  2197. fi
  2198. test "$2" = conftest.file
  2199. )
  2200. then
  2201. # Ok.
  2202. :
  2203. else
  2204. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2205. Check your system clock" >&5
  2206. echo "$as_me: error: newly created file is older than distributed files!
  2207. Check your system clock" >&2;}
  2208. { (exit 1); exit 1; }; }
  2209. fi
  2210. { echo "$as_me:$LINENO: result: yes" >&5
  2211. echo "${ECHO_T}yes" >&6; }
  2212. test "$program_prefix" != NONE &&
  2213. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2214. # Use a double $ so make ignores it.
  2215. test "$program_suffix" != NONE &&
  2216. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2217. # Double any \ or $. echo might interpret backslashes.
  2218. # By default was `s,x,x', remove it if useless.
  2219. cat <<\_ACEOF >conftest.sed
  2220. s/[\\$]/&&/g;s/;s,x,x,$//
  2221. _ACEOF
  2222. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  2223. rm -f conftest.sed
  2224. # expand $ac_aux_dir to an absolute path
  2225. am_aux_dir=`cd $ac_aux_dir && pwd`
  2226. test x"${MISSING+set}" = xset || MISSING="\${SHELL} \"$am_aux_dir/missing\""
  2227. # Use eval to expand $SHELL
  2228. if eval "$MISSING --run true"; then
  2229. am_missing_run="$MISSING --run "
  2230. else
  2231. am_missing_run=
  2232. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2233. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2234. fi
  2235. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  2236. # We used to keeping the `.' as first argument, in order to
  2237. # allow $(mkdir_p) to be used without argument. As in
  2238. # $(mkdir_p) $(somedir)
  2239. # where $(somedir) is conditionally defined. However this is wrong
  2240. # for two reasons:
  2241. # 1. if the package is installed by a user who cannot write `.'
  2242. # make install will fail,
  2243. # 2. the above comment should most certainly read
  2244. # $(mkdir_p) $(DESTDIR)$(somedir)
  2245. # so it does not work when $(somedir) is undefined and
  2246. # $(DESTDIR) is not.
  2247. # To support the latter case, we have to write
  2248. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  2249. # so the `.' trick is pointless.
  2250. mkdir_p='mkdir -p --'
  2251. else
  2252. # On NextStep and OpenStep, the `mkdir' command does not
  2253. # recognize any option. It will interpret all options as
  2254. # directories to create, and then abort because `.' already
  2255. # exists.
  2256. for d in ./-p ./--version;
  2257. do
  2258. test -d $d && rmdir $d
  2259. done
  2260. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  2261. if test -f "$ac_aux_dir/mkinstalldirs"; then
  2262. mkdir_p='$(mkinstalldirs)'
  2263. else
  2264. mkdir_p='$(install_sh) -d'
  2265. fi
  2266. fi
  2267. for ac_prog in gawk mawk nawk awk
  2268. do
  2269. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2270. set dummy $ac_prog; ac_word=$2
  2271. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2272. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2273. if test "${ac_cv_prog_AWK+set}" = set; then
  2274. echo $ECHO_N "(cached) $ECHO_C" >&6
  2275. else
  2276. if test -n "$AWK"; then
  2277. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2278. else
  2279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2280. for as_dir in $PATH
  2281. do
  2282. IFS=$as_save_IFS
  2283. test -z "$as_dir" && as_dir=.
  2284. for ac_exec_ext in '' $ac_executable_extensions; do
  2285. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2286. ac_cv_prog_AWK="$ac_prog"
  2287. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2288. break 2
  2289. fi
  2290. done
  2291. done
  2292. IFS=$as_save_IFS
  2293. fi
  2294. fi
  2295. AWK=$ac_cv_prog_AWK
  2296. if test -n "$AWK"; then
  2297. { echo "$as_me:$LINENO: result: $AWK" >&5
  2298. echo "${ECHO_T}$AWK" >&6; }
  2299. else
  2300. { echo "$as_me:$LINENO: result: no" >&5
  2301. echo "${ECHO_T}no" >&6; }
  2302. fi
  2303. test -n "$AWK" && break
  2304. done
  2305. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2306. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2307. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2308. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2309. echo $ECHO_N "(cached) $ECHO_C" >&6
  2310. else
  2311. cat >conftest.make <<\_ACEOF
  2312. SHELL = /bin/sh
  2313. all:
  2314. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2315. _ACEOF
  2316. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2317. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2318. *@@@%%%=?*=@@@%%%*)
  2319. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2320. *)
  2321. eval ac_cv_prog_make_${ac_make}_set=no;;
  2322. esac
  2323. rm -f conftest.make
  2324. fi
  2325. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2326. { echo "$as_me:$LINENO: result: yes" >&5
  2327. echo "${ECHO_T}yes" >&6; }
  2328. SET_MAKE=
  2329. else
  2330. { echo "$as_me:$LINENO: result: no" >&5
  2331. echo "${ECHO_T}no" >&6; }
  2332. SET_MAKE="MAKE=${MAKE-make}"
  2333. fi
  2334. rm -rf .tst 2>/dev/null
  2335. mkdir .tst 2>/dev/null
  2336. if test -d .tst; then
  2337. am__leading_dot=.
  2338. else
  2339. am__leading_dot=_
  2340. fi
  2341. rmdir .tst 2>/dev/null
  2342. # test to see if srcdir already configured
  2343. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2344. test -f $srcdir/config.status; then
  2345. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2346. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2347. { (exit 1); exit 1; }; }
  2348. fi
  2349. # test whether we have cygpath
  2350. if test -z "$CYGPATH_W"; then
  2351. if (cygpath --version) >/dev/null 2>/dev/null; then
  2352. CYGPATH_W='cygpath -w'
  2353. else
  2354. CYGPATH_W=echo
  2355. fi
  2356. fi
  2357. # Define the identity of the package.
  2358. PACKAGE=curl
  2359. VERSION=$VERSION
  2360. cat >>confdefs.h <<_ACEOF
  2361. #define PACKAGE "$PACKAGE"
  2362. _ACEOF
  2363. cat >>confdefs.h <<_ACEOF
  2364. #define VERSION "$VERSION"
  2365. _ACEOF
  2366. # Some tools Automake needs.
  2367. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2368. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2369. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2370. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2371. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2372. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2373. # Installed binaries are usually stripped using `strip' when the user
  2374. # run `make install-strip'. However `strip' might not be the right
  2375. # tool to use in cross-compilation environments, therefore Automake
  2376. # will honor the `STRIP' environment variable to overrule this program.
  2377. if test "$cross_compiling" != no; then
  2378. if test -n "$ac_tool_prefix"; then
  2379. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2380. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2381. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2382. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2383. if test "${ac_cv_prog_STRIP+set}" = set; then
  2384. echo $ECHO_N "(cached) $ECHO_C" >&6
  2385. else
  2386. if test -n "$STRIP"; then
  2387. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2388. else
  2389. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2390. for as_dir in $PATH
  2391. do
  2392. IFS=$as_save_IFS
  2393. test -z "$as_dir" && as_dir=.
  2394. for ac_exec_ext in '' $ac_executable_extensions; do
  2395. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2396. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2397. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2398. break 2
  2399. fi
  2400. done
  2401. done
  2402. IFS=$as_save_IFS
  2403. fi
  2404. fi
  2405. STRIP=$ac_cv_prog_STRIP
  2406. if test -n "$STRIP"; then
  2407. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2408. echo "${ECHO_T}$STRIP" >&6; }
  2409. else
  2410. { echo "$as_me:$LINENO: result: no" >&5
  2411. echo "${ECHO_T}no" >&6; }
  2412. fi
  2413. fi
  2414. if test -z "$ac_cv_prog_STRIP"; then
  2415. ac_ct_STRIP=$STRIP
  2416. # Extract the first word of "strip", so it can be a program name with args.
  2417. set dummy strip; ac_word=$2
  2418. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2419. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2420. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2421. echo $ECHO_N "(cached) $ECHO_C" >&6
  2422. else
  2423. if test -n "$ac_ct_STRIP"; then
  2424. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2425. else
  2426. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2427. for as_dir in $PATH
  2428. do
  2429. IFS=$as_save_IFS
  2430. test -z "$as_dir" && as_dir=.
  2431. for ac_exec_ext in '' $ac_executable_extensions; do
  2432. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2433. ac_cv_prog_ac_ct_STRIP="strip"
  2434. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2435. break 2
  2436. fi
  2437. done
  2438. done
  2439. IFS=$as_save_IFS
  2440. fi
  2441. fi
  2442. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2443. if test -n "$ac_ct_STRIP"; then
  2444. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2445. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2446. else
  2447. { echo "$as_me:$LINENO: result: no" >&5
  2448. echo "${ECHO_T}no" >&6; }
  2449. fi
  2450. if test "x$ac_ct_STRIP" = x; then
  2451. STRIP=":"
  2452. else
  2453. case $cross_compiling:$ac_tool_warned in
  2454. yes:)
  2455. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2456. whose name does not start with the host triplet. If you think this
  2457. configuration is useful to you, please write to [email protected]." >&5
  2458. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2459. whose name does not start with the host triplet. If you think this
  2460. configuration is useful to you, please write to [email protected]." >&2;}
  2461. ac_tool_warned=yes ;;
  2462. esac
  2463. STRIP=$ac_ct_STRIP
  2464. fi
  2465. else
  2466. STRIP="$ac_cv_prog_STRIP"
  2467. fi
  2468. fi
  2469. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2470. # We need awk for the "check" target. The system "awk" is bad on
  2471. # some platforms.
  2472. # Always define AMTAR for backward compatibility.
  2473. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2474. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2475. { echo "$as_me:$LINENO: checking curl version" >&5
  2476. echo $ECHO_N "checking curl version... $ECHO_C" >&6; }
  2477. { echo "$as_me:$LINENO: result: $VERSION" >&5
  2478. echo "${ECHO_T}$VERSION" >&6; }
  2479. VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\(.*\)/\1/p' ${srcdir}/include/curl/curlver.h`
  2480. PKGADD_PKG="HAXXcurl"
  2481. PKGADD_NAME="cURL - a client that groks URLs"
  2482. PKGADD_VENDOR="curl.haxx.se"
  2483. curl_ssl_msg="no (--with-ssl / --with-gnutls)"
  2484. curl_ssh_msg="no (--with-libssh2)"
  2485. curl_zlib_msg="no (--with-zlib)"
  2486. curl_krb4_msg="no (--with-krb4*)"
  2487. curl_gss_msg="no (--with-gssapi)"
  2488. curl_spnego_msg="no (--with-spnego)"
  2489. curl_ares_msg="no (--enable-ares)"
  2490. curl_ipv6_msg="no (--enable-ipv6)"
  2491. curl_idn_msg="no (--with-libidn)"
  2492. curl_manual_msg="no (--enable-manual)"
  2493. curl_verbose_msg="enabled (--disable-verbose)"
  2494. curl_sspi_msg="no (--enable-sspi)"
  2495. curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
  2496. curl_ldaps_msg="no (--enable-ldaps)"
  2497. ALL_LIBS=$LIBS
  2498. # Make sure we can run config.sub.
  2499. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2500. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  2501. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  2502. { (exit 1); exit 1; }; }
  2503. { echo "$as_me:$LINENO: checking build system type" >&5
  2504. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  2505. if test "${ac_cv_build+set}" = set; then
  2506. echo $ECHO_N "(cached) $ECHO_C" >&6
  2507. else
  2508. ac_build_alias=$build_alias
  2509. test "x$ac_build_alias" = x &&
  2510. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2511. test "x$ac_build_alias" = x &&
  2512. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  2513. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  2514. { (exit 1); exit 1; }; }
  2515. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2516. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  2517. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  2518. { (exit 1); exit 1; }; }
  2519. fi
  2520. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  2521. echo "${ECHO_T}$ac_cv_build" >&6; }
  2522. case $ac_cv_build in
  2523. *-*-*) ;;
  2524. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  2525. echo "$as_me: error: invalid value of canonical build" >&2;}
  2526. { (exit 1); exit 1; }; };;
  2527. esac
  2528. build=$ac_cv_build
  2529. ac_save_IFS=$IFS; IFS='-'
  2530. set x $ac_cv_build
  2531. shift
  2532. build_cpu=$1
  2533. build_vendor=$2
  2534. shift; shift
  2535. # Remember, the first character of IFS is used to create $*,
  2536. # except with old shells:
  2537. build_os=$*
  2538. IFS=$ac_save_IFS
  2539. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2540. { echo "$as_me:$LINENO: checking host system type" >&5
  2541. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  2542. if test "${ac_cv_host+set}" = set; then
  2543. echo $ECHO_N "(cached) $ECHO_C" >&6
  2544. else
  2545. if test "x$host_alias" = x; then
  2546. ac_cv_host=$ac_cv_build
  2547. else
  2548. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2549. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  2550. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  2551. { (exit 1); exit 1; }; }
  2552. fi
  2553. fi
  2554. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  2555. echo "${ECHO_T}$ac_cv_host" >&6; }
  2556. case $ac_cv_host in
  2557. *-*-*) ;;
  2558. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  2559. echo "$as_me: error: invalid value of canonical host" >&2;}
  2560. { (exit 1); exit 1; }; };;
  2561. esac
  2562. host=$ac_cv_host
  2563. ac_save_IFS=$IFS; IFS='-'
  2564. set x $ac_cv_host
  2565. shift
  2566. host_cpu=$1
  2567. host_vendor=$2
  2568. shift; shift
  2569. # Remember, the first character of IFS is used to create $*,
  2570. # except with old shells:
  2571. host_os=$*
  2572. IFS=$ac_save_IFS
  2573. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2574. cat >>confdefs.h <<_ACEOF
  2575. #define OS "${host}"
  2576. _ACEOF
  2577. ac_ext=c
  2578. ac_cpp='$CPP $CPPFLAGS'
  2579. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2580. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2581. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2582. if test -n "$ac_tool_prefix"; then
  2583. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2584. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2585. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2586. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2587. if test "${ac_cv_prog_CC+set}" = set; then
  2588. echo $ECHO_N "(cached) $ECHO_C" >&6
  2589. else
  2590. if test -n "$CC"; then
  2591. ac_cv_prog_CC="$CC" # Let the user override the test.
  2592. else
  2593. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2594. for as_dir in $PATH
  2595. do
  2596. IFS=$as_save_IFS
  2597. test -z "$as_dir" && as_dir=.
  2598. for ac_exec_ext in '' $ac_executable_extensions; do
  2599. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2600. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2601. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2602. break 2
  2603. fi
  2604. done
  2605. done
  2606. IFS=$as_save_IFS
  2607. fi
  2608. fi
  2609. CC=$ac_cv_prog_CC
  2610. if test -n "$CC"; then
  2611. { echo "$as_me:$LINENO: result: $CC" >&5
  2612. echo "${ECHO_T}$CC" >&6; }
  2613. else
  2614. { echo "$as_me:$LINENO: result: no" >&5
  2615. echo "${ECHO_T}no" >&6; }
  2616. fi
  2617. fi
  2618. if test -z "$ac_cv_prog_CC"; then
  2619. ac_ct_CC=$CC
  2620. # Extract the first word of "gcc", so it can be a program name with args.
  2621. set dummy gcc; ac_word=$2
  2622. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2623. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2624. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2625. echo $ECHO_N "(cached) $ECHO_C" >&6
  2626. else
  2627. if test -n "$ac_ct_CC"; then
  2628. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2629. else
  2630. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2631. for as_dir in $PATH
  2632. do
  2633. IFS=$as_save_IFS
  2634. test -z "$as_dir" && as_dir=.
  2635. for ac_exec_ext in '' $ac_executable_extensions; do
  2636. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2637. ac_cv_prog_ac_ct_CC="gcc"
  2638. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2639. break 2
  2640. fi
  2641. done
  2642. done
  2643. IFS=$as_save_IFS
  2644. fi
  2645. fi
  2646. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2647. if test -n "$ac_ct_CC"; then
  2648. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2649. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2650. else
  2651. { echo "$as_me:$LINENO: result: no" >&5
  2652. echo "${ECHO_T}no" >&6; }
  2653. fi
  2654. if test "x$ac_ct_CC" = x; then
  2655. CC=""
  2656. else
  2657. case $cross_compiling:$ac_tool_warned in
  2658. yes:)
  2659. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2660. whose name does not start with the host triplet. If you think this
  2661. configuration is useful to you, please write to [email protected]." >&5
  2662. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2663. whose name does not start with the host triplet. If you think this
  2664. configuration is useful to you, please write to [email protected]." >&2;}
  2665. ac_tool_warned=yes ;;
  2666. esac
  2667. CC=$ac_ct_CC
  2668. fi
  2669. else
  2670. CC="$ac_cv_prog_CC"
  2671. fi
  2672. if test -z "$CC"; then
  2673. if test -n "$ac_tool_prefix"; then
  2674. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2675. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2676. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2677. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2678. if test "${ac_cv_prog_CC+set}" = set; then
  2679. echo $ECHO_N "(cached) $ECHO_C" >&6
  2680. else
  2681. if test -n "$CC"; then
  2682. ac_cv_prog_CC="$CC" # Let the user override the test.
  2683. else
  2684. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2685. for as_dir in $PATH
  2686. do
  2687. IFS=$as_save_IFS
  2688. test -z "$as_dir" && as_dir=.
  2689. for ac_exec_ext in '' $ac_executable_extensions; do
  2690. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2691. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2692. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2693. break 2
  2694. fi
  2695. done
  2696. done
  2697. IFS=$as_save_IFS
  2698. fi
  2699. fi
  2700. CC=$ac_cv_prog_CC
  2701. if test -n "$CC"; then
  2702. { echo "$as_me:$LINENO: result: $CC" >&5
  2703. echo "${ECHO_T}$CC" >&6; }
  2704. else
  2705. { echo "$as_me:$LINENO: result: no" >&5
  2706. echo "${ECHO_T}no" >&6; }
  2707. fi
  2708. fi
  2709. fi
  2710. if test -z "$CC"; then
  2711. # Extract the first word of "cc", so it can be a program name with args.
  2712. set dummy cc; ac_word=$2
  2713. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2714. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2715. if test "${ac_cv_prog_CC+set}" = set; then
  2716. echo $ECHO_N "(cached) $ECHO_C" >&6
  2717. else
  2718. if test -n "$CC"; then
  2719. ac_cv_prog_CC="$CC" # Let the user override the test.
  2720. else
  2721. ac_prog_rejected=no
  2722. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2723. for as_dir in $PATH
  2724. do
  2725. IFS=$as_save_IFS
  2726. test -z "$as_dir" && as_dir=.
  2727. for ac_exec_ext in '' $ac_executable_extensions; do
  2728. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2729. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2730. ac_prog_rejected=yes
  2731. continue
  2732. fi
  2733. ac_cv_prog_CC="cc"
  2734. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2735. break 2
  2736. fi
  2737. done
  2738. done
  2739. IFS=$as_save_IFS
  2740. if test $ac_prog_rejected = yes; then
  2741. # We found a bogon in the path, so make sure we never use it.
  2742. set dummy $ac_cv_prog_CC
  2743. shift
  2744. if test $# != 0; then
  2745. # We chose a different compiler from the bogus one.
  2746. # However, it has the same basename, so the bogon will be chosen
  2747. # first if we set CC to just the basename; use the full file name.
  2748. shift
  2749. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2750. fi
  2751. fi
  2752. fi
  2753. fi
  2754. CC=$ac_cv_prog_CC
  2755. if test -n "$CC"; then
  2756. { echo "$as_me:$LINENO: result: $CC" >&5
  2757. echo "${ECHO_T}$CC" >&6; }
  2758. else
  2759. { echo "$as_me:$LINENO: result: no" >&5
  2760. echo "${ECHO_T}no" >&6; }
  2761. fi
  2762. fi
  2763. if test -z "$CC"; then
  2764. if test -n "$ac_tool_prefix"; then
  2765. for ac_prog in cl.exe
  2766. do
  2767. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2768. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2769. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2770. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2771. if test "${ac_cv_prog_CC+set}" = set; then
  2772. echo $ECHO_N "(cached) $ECHO_C" >&6
  2773. else
  2774. if test -n "$CC"; then
  2775. ac_cv_prog_CC="$CC" # Let the user override the test.
  2776. else
  2777. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2778. for as_dir in $PATH
  2779. do
  2780. IFS=$as_save_IFS
  2781. test -z "$as_dir" && as_dir=.
  2782. for ac_exec_ext in '' $ac_executable_extensions; do
  2783. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2784. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2785. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2786. break 2
  2787. fi
  2788. done
  2789. done
  2790. IFS=$as_save_IFS
  2791. fi
  2792. fi
  2793. CC=$ac_cv_prog_CC
  2794. if test -n "$CC"; then
  2795. { echo "$as_me:$LINENO: result: $CC" >&5
  2796. echo "${ECHO_T}$CC" >&6; }
  2797. else
  2798. { echo "$as_me:$LINENO: result: no" >&5
  2799. echo "${ECHO_T}no" >&6; }
  2800. fi
  2801. test -n "$CC" && break
  2802. done
  2803. fi
  2804. if test -z "$CC"; then
  2805. ac_ct_CC=$CC
  2806. for ac_prog in cl.exe
  2807. do
  2808. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2809. set dummy $ac_prog; ac_word=$2
  2810. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2811. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2812. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2813. echo $ECHO_N "(cached) $ECHO_C" >&6
  2814. else
  2815. if test -n "$ac_ct_CC"; then
  2816. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2817. else
  2818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2819. for as_dir in $PATH
  2820. do
  2821. IFS=$as_save_IFS
  2822. test -z "$as_dir" && as_dir=.
  2823. for ac_exec_ext in '' $ac_executable_extensions; do
  2824. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2825. ac_cv_prog_ac_ct_CC="$ac_prog"
  2826. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2827. break 2
  2828. fi
  2829. done
  2830. done
  2831. IFS=$as_save_IFS
  2832. fi
  2833. fi
  2834. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2835. if test -n "$ac_ct_CC"; then
  2836. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2837. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2838. else
  2839. { echo "$as_me:$LINENO: result: no" >&5
  2840. echo "${ECHO_T}no" >&6; }
  2841. fi
  2842. test -n "$ac_ct_CC" && break
  2843. done
  2844. if test "x$ac_ct_CC" = x; then
  2845. CC=""
  2846. else
  2847. case $cross_compiling:$ac_tool_warned in
  2848. yes:)
  2849. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2850. whose name does not start with the host triplet. If you think this
  2851. configuration is useful to you, please write to [email protected]." >&5
  2852. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2853. whose name does not start with the host triplet. If you think this
  2854. configuration is useful to you, please write to [email protected]." >&2;}
  2855. ac_tool_warned=yes ;;
  2856. esac
  2857. CC=$ac_ct_CC
  2858. fi
  2859. fi
  2860. fi
  2861. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2862. See \`config.log' for more details." >&5
  2863. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2864. See \`config.log' for more details." >&2;}
  2865. { (exit 1); exit 1; }; }
  2866. # Provide some information about the compiler.
  2867. echo "$as_me:$LINENO: checking for C compiler version" >&5
  2868. ac_compiler=`set X $ac_compile; echo $2`
  2869. { (ac_try="$ac_compiler --version >&5"
  2870. case "(($ac_try" in
  2871. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2872. *) ac_try_echo=$ac_try;;
  2873. esac
  2874. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2875. (eval "$ac_compiler --version >&5") 2>&5
  2876. ac_status=$?
  2877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2878. (exit $ac_status); }
  2879. { (ac_try="$ac_compiler -v >&5"
  2880. case "(($ac_try" in
  2881. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2882. *) ac_try_echo=$ac_try;;
  2883. esac
  2884. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2885. (eval "$ac_compiler -v >&5") 2>&5
  2886. ac_status=$?
  2887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2888. (exit $ac_status); }
  2889. { (ac_try="$ac_compiler -V >&5"
  2890. case "(($ac_try" in
  2891. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2892. *) ac_try_echo=$ac_try;;
  2893. esac
  2894. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2895. (eval "$ac_compiler -V >&5") 2>&5
  2896. ac_status=$?
  2897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2898. (exit $ac_status); }
  2899. cat >conftest.$ac_ext <<_ACEOF
  2900. /* confdefs.h. */
  2901. _ACEOF
  2902. cat confdefs.h >>conftest.$ac_ext
  2903. cat >>conftest.$ac_ext <<_ACEOF
  2904. /* end confdefs.h. */
  2905. int
  2906. main ()
  2907. {
  2908. ;
  2909. return 0;
  2910. }
  2911. _ACEOF
  2912. ac_clean_files_save=$ac_clean_files
  2913. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2914. # Try to create an executable without -o first, disregard a.out.
  2915. # It will help us diagnose broken compilers, and finding out an intuition
  2916. # of exeext.
  2917. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2918. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2919. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2920. #
  2921. # List of possible output files, starting from the most likely.
  2922. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2923. # only as a last resort. b.out is created by i960 compilers.
  2924. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2925. #
  2926. # The IRIX 6 linker writes into existing files which may not be
  2927. # executable, retaining their permissions. Remove them first so a
  2928. # subsequent execution test works.
  2929. ac_rmfiles=
  2930. for ac_file in $ac_files
  2931. do
  2932. case $ac_file in
  2933. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2934. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2935. esac
  2936. done
  2937. rm -f $ac_rmfiles
  2938. if { (ac_try="$ac_link_default"
  2939. case "(($ac_try" in
  2940. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2941. *) ac_try_echo=$ac_try;;
  2942. esac
  2943. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2944. (eval "$ac_link_default") 2>&5
  2945. ac_status=$?
  2946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2947. (exit $ac_status); }; then
  2948. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2949. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2950. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2951. # so that the user can short-circuit this test for compilers unknown to
  2952. # Autoconf.
  2953. for ac_file in $ac_files ''
  2954. do
  2955. test -f "$ac_file" || continue
  2956. case $ac_file in
  2957. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2958. ;;
  2959. [ab].out )
  2960. # We found the default executable, but exeext='' is most
  2961. # certainly right.
  2962. break;;
  2963. *.* )
  2964. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2965. then :; else
  2966. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2967. fi
  2968. # We set ac_cv_exeext here because the later test for it is not
  2969. # safe: cross compilers may not add the suffix if given an `-o'
  2970. # argument, so we may need to know it at that point already.
  2971. # Even if this section looks crufty: it has the advantage of
  2972. # actually working.
  2973. break;;
  2974. * )
  2975. break;;
  2976. esac
  2977. done
  2978. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2979. else
  2980. ac_file=''
  2981. fi
  2982. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2983. echo "${ECHO_T}$ac_file" >&6; }
  2984. if test -z "$ac_file"; then
  2985. echo "$as_me: failed program was:" >&5
  2986. sed 's/^/| /' conftest.$ac_ext >&5
  2987. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2988. See \`config.log' for more details." >&5
  2989. echo "$as_me: error: C compiler cannot create executables
  2990. See \`config.log' for more details." >&2;}
  2991. { (exit 77); exit 77; }; }
  2992. fi
  2993. ac_exeext=$ac_cv_exeext
  2994. # Check that the compiler produces executables we can run. If not, either
  2995. # the compiler is broken, or we cross compile.
  2996. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2997. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2998. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2999. # If not cross compiling, check that we can run a simple program.
  3000. if test "$cross_compiling" != yes; then
  3001. if { ac_try='./$ac_file'
  3002. { (case "(($ac_try" in
  3003. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3004. *) ac_try_echo=$ac_try;;
  3005. esac
  3006. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3007. (eval "$ac_try") 2>&5
  3008. ac_status=$?
  3009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3010. (exit $ac_status); }; }; then
  3011. cross_compiling=no
  3012. else
  3013. if test "$cross_compiling" = maybe; then
  3014. cross_compiling=yes
  3015. else
  3016. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  3017. If you meant to cross compile, use \`--host'.
  3018. See \`config.log' for more details." >&5
  3019. echo "$as_me: error: cannot run C compiled programs.
  3020. If you meant to cross compile, use \`--host'.
  3021. See \`config.log' for more details." >&2;}
  3022. { (exit 1); exit 1; }; }
  3023. fi
  3024. fi
  3025. fi
  3026. { echo "$as_me:$LINENO: result: yes" >&5
  3027. echo "${ECHO_T}yes" >&6; }
  3028. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  3029. ac_clean_files=$ac_clean_files_save
  3030. # Check that the compiler produces executables we can run. If not, either
  3031. # the compiler is broken, or we cross compile.
  3032. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  3033. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  3034. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  3035. echo "${ECHO_T}$cross_compiling" >&6; }
  3036. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  3037. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  3038. if { (ac_try="$ac_link"
  3039. case "(($ac_try" in
  3040. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3041. *) ac_try_echo=$ac_try;;
  3042. esac
  3043. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3044. (eval "$ac_link") 2>&5
  3045. ac_status=$?
  3046. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3047. (exit $ac_status); }; then
  3048. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3049. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3050. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3051. # `rm'.
  3052. for ac_file in conftest.exe conftest conftest.*; do
  3053. test -f "$ac_file" || continue
  3054. case $ac_file in
  3055. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  3056. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3057. break;;
  3058. * ) break;;
  3059. esac
  3060. done
  3061. else
  3062. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  3063. See \`config.log' for more details." >&5
  3064. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  3065. See \`config.log' for more details." >&2;}
  3066. { (exit 1); exit 1; }; }
  3067. fi
  3068. rm -f conftest$ac_cv_exeext
  3069. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  3070. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  3071. rm -f conftest.$ac_ext
  3072. EXEEXT=$ac_cv_exeext
  3073. ac_exeext=$EXEEXT
  3074. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  3075. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  3076. if test "${ac_cv_objext+set}" = set; then
  3077. echo $ECHO_N "(cached) $ECHO_C" >&6
  3078. else
  3079. cat >conftest.$ac_ext <<_ACEOF
  3080. /* confdefs.h. */
  3081. _ACEOF
  3082. cat confdefs.h >>conftest.$ac_ext
  3083. cat >>conftest.$ac_ext <<_ACEOF
  3084. /* end confdefs.h. */
  3085. int
  3086. main ()
  3087. {
  3088. ;
  3089. return 0;
  3090. }
  3091. _ACEOF
  3092. rm -f conftest.o conftest.obj
  3093. if { (ac_try="$ac_compile"
  3094. case "(($ac_try" in
  3095. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3096. *) ac_try_echo=$ac_try;;
  3097. esac
  3098. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3099. (eval "$ac_compile") 2>&5
  3100. ac_status=$?
  3101. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3102. (exit $ac_status); }; then
  3103. for ac_file in conftest.o conftest.obj conftest.*; do
  3104. test -f "$ac_file" || continue;
  3105. case $ac_file in
  3106. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  3107. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3108. break;;
  3109. esac
  3110. done
  3111. else
  3112. echo "$as_me: failed program was:" >&5
  3113. sed 's/^/| /' conftest.$ac_ext >&5
  3114. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  3115. See \`config.log' for more details." >&5
  3116. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  3117. See \`config.log' for more details." >&2;}
  3118. { (exit 1); exit 1; }; }
  3119. fi
  3120. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3121. fi
  3122. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  3123. echo "${ECHO_T}$ac_cv_objext" >&6; }
  3124. OBJEXT=$ac_cv_objext
  3125. ac_objext=$OBJEXT
  3126. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3127. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3128. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3129. echo $ECHO_N "(cached) $ECHO_C" >&6
  3130. else
  3131. cat >conftest.$ac_ext <<_ACEOF
  3132. /* confdefs.h. */
  3133. _ACEOF
  3134. cat confdefs.h >>conftest.$ac_ext
  3135. cat >>conftest.$ac_ext <<_ACEOF
  3136. /* end confdefs.h. */
  3137. int
  3138. main ()
  3139. {
  3140. #ifndef __GNUC__
  3141. choke me
  3142. #endif
  3143. ;
  3144. return 0;
  3145. }
  3146. _ACEOF
  3147. rm -f conftest.$ac_objext
  3148. if { (ac_try="$ac_compile"
  3149. case "(($ac_try" in
  3150. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3151. *) ac_try_echo=$ac_try;;
  3152. esac
  3153. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3154. (eval "$ac_compile") 2>conftest.er1
  3155. ac_status=$?
  3156. grep -v '^ *+' conftest.er1 >conftest.err
  3157. rm -f conftest.er1
  3158. cat conftest.err >&5
  3159. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3160. (exit $ac_status); } && {
  3161. test -z "$ac_c_werror_flag" ||
  3162. test ! -s conftest.err
  3163. } && test -s conftest.$ac_objext; then
  3164. ac_compiler_gnu=yes
  3165. else
  3166. echo "$as_me: failed program was:" >&5
  3167. sed 's/^/| /' conftest.$ac_ext >&5
  3168. ac_compiler_gnu=no
  3169. fi
  3170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3171. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3172. fi
  3173. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3174. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3175. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3176. ac_test_CFLAGS=${CFLAGS+set}
  3177. ac_save_CFLAGS=$CFLAGS
  3178. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3179. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3180. if test "${ac_cv_prog_cc_g+set}" = set; then
  3181. echo $ECHO_N "(cached) $ECHO_C" >&6
  3182. else
  3183. ac_save_c_werror_flag=$ac_c_werror_flag
  3184. ac_c_werror_flag=yes
  3185. ac_cv_prog_cc_g=no
  3186. CFLAGS="-g"
  3187. cat >conftest.$ac_ext <<_ACEOF
  3188. /* confdefs.h. */
  3189. _ACEOF
  3190. cat confdefs.h >>conftest.$ac_ext
  3191. cat >>conftest.$ac_ext <<_ACEOF
  3192. /* end confdefs.h. */
  3193. int
  3194. main ()
  3195. {
  3196. ;
  3197. return 0;
  3198. }
  3199. _ACEOF
  3200. rm -f conftest.$ac_objext
  3201. if { (ac_try="$ac_compile"
  3202. case "(($ac_try" in
  3203. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3204. *) ac_try_echo=$ac_try;;
  3205. esac
  3206. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3207. (eval "$ac_compile") 2>conftest.er1
  3208. ac_status=$?
  3209. grep -v '^ *+' conftest.er1 >conftest.err
  3210. rm -f conftest.er1
  3211. cat conftest.err >&5
  3212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3213. (exit $ac_status); } && {
  3214. test -z "$ac_c_werror_flag" ||
  3215. test ! -s conftest.err
  3216. } && test -s conftest.$ac_objext; then
  3217. ac_cv_prog_cc_g=yes
  3218. else
  3219. echo "$as_me: failed program was:" >&5
  3220. sed 's/^/| /' conftest.$ac_ext >&5
  3221. CFLAGS=""
  3222. cat >conftest.$ac_ext <<_ACEOF
  3223. /* confdefs.h. */
  3224. _ACEOF
  3225. cat confdefs.h >>conftest.$ac_ext
  3226. cat >>conftest.$ac_ext <<_ACEOF
  3227. /* end confdefs.h. */
  3228. int
  3229. main ()
  3230. {
  3231. ;
  3232. return 0;
  3233. }
  3234. _ACEOF
  3235. rm -f conftest.$ac_objext
  3236. if { (ac_try="$ac_compile"
  3237. case "(($ac_try" in
  3238. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3239. *) ac_try_echo=$ac_try;;
  3240. esac
  3241. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3242. (eval "$ac_compile") 2>conftest.er1
  3243. ac_status=$?
  3244. grep -v '^ *+' conftest.er1 >conftest.err
  3245. rm -f conftest.er1
  3246. cat conftest.err >&5
  3247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3248. (exit $ac_status); } && {
  3249. test -z "$ac_c_werror_flag" ||
  3250. test ! -s conftest.err
  3251. } && test -s conftest.$ac_objext; then
  3252. :
  3253. else
  3254. echo "$as_me: failed program was:" >&5
  3255. sed 's/^/| /' conftest.$ac_ext >&5
  3256. ac_c_werror_flag=$ac_save_c_werror_flag
  3257. CFLAGS="-g"
  3258. cat >conftest.$ac_ext <<_ACEOF
  3259. /* confdefs.h. */
  3260. _ACEOF
  3261. cat confdefs.h >>conftest.$ac_ext
  3262. cat >>conftest.$ac_ext <<_ACEOF
  3263. /* end confdefs.h. */
  3264. int
  3265. main ()
  3266. {
  3267. ;
  3268. return 0;
  3269. }
  3270. _ACEOF
  3271. rm -f conftest.$ac_objext
  3272. if { (ac_try="$ac_compile"
  3273. case "(($ac_try" in
  3274. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3275. *) ac_try_echo=$ac_try;;
  3276. esac
  3277. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3278. (eval "$ac_compile") 2>conftest.er1
  3279. ac_status=$?
  3280. grep -v '^ *+' conftest.er1 >conftest.err
  3281. rm -f conftest.er1
  3282. cat conftest.err >&5
  3283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3284. (exit $ac_status); } && {
  3285. test -z "$ac_c_werror_flag" ||
  3286. test ! -s conftest.err
  3287. } && test -s conftest.$ac_objext; then
  3288. ac_cv_prog_cc_g=yes
  3289. else
  3290. echo "$as_me: failed program was:" >&5
  3291. sed 's/^/| /' conftest.$ac_ext >&5
  3292. fi
  3293. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3294. fi
  3295. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3296. fi
  3297. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3298. ac_c_werror_flag=$ac_save_c_werror_flag
  3299. fi
  3300. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3301. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3302. if test "$ac_test_CFLAGS" = set; then
  3303. CFLAGS=$ac_save_CFLAGS
  3304. elif test $ac_cv_prog_cc_g = yes; then
  3305. if test "$GCC" = yes; then
  3306. CFLAGS="-g -O2"
  3307. else
  3308. CFLAGS="-g"
  3309. fi
  3310. else
  3311. if test "$GCC" = yes; then
  3312. CFLAGS="-O2"
  3313. else
  3314. CFLAGS=
  3315. fi
  3316. fi
  3317. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3318. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3319. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3320. echo $ECHO_N "(cached) $ECHO_C" >&6
  3321. else
  3322. ac_cv_prog_cc_c89=no
  3323. ac_save_CC=$CC
  3324. cat >conftest.$ac_ext <<_ACEOF
  3325. /* confdefs.h. */
  3326. _ACEOF
  3327. cat confdefs.h >>conftest.$ac_ext
  3328. cat >>conftest.$ac_ext <<_ACEOF
  3329. /* end confdefs.h. */
  3330. #include <stdarg.h>
  3331. #include <stdio.h>
  3332. #include <sys/types.h>
  3333. #include <sys/stat.h>
  3334. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3335. struct buf { int x; };
  3336. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3337. static char *e (p, i)
  3338. char **p;
  3339. int i;
  3340. {
  3341. return p[i];
  3342. }
  3343. static char *f (char * (*g) (char **, int), char **p, ...)
  3344. {
  3345. char *s;
  3346. va_list v;
  3347. va_start (v,p);
  3348. s = g (p, va_arg (v,int));
  3349. va_end (v);
  3350. return s;
  3351. }
  3352. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3353. function prototypes and stuff, but not '\xHH' hex character constants.
  3354. These don't provoke an error unfortunately, instead are silently treated
  3355. as 'x'. The following induces an error, until -std is added to get
  3356. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3357. array size at least. It's necessary to write '\x00'==0 to get something
  3358. that's true only with -std. */
  3359. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3360. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3361. inside strings and character constants. */
  3362. #define FOO(x) 'x'
  3363. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3364. int test (int i, double x);
  3365. struct s1 {int (*f) (int a);};
  3366. struct s2 {int (*f) (double a);};
  3367. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3368. int argc;
  3369. char **argv;
  3370. int
  3371. main ()
  3372. {
  3373. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3374. ;
  3375. return 0;
  3376. }
  3377. _ACEOF
  3378. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3379. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3380. do
  3381. CC="$ac_save_CC $ac_arg"
  3382. rm -f conftest.$ac_objext
  3383. if { (ac_try="$ac_compile"
  3384. case "(($ac_try" in
  3385. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3386. *) ac_try_echo=$ac_try;;
  3387. esac
  3388. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3389. (eval "$ac_compile") 2>conftest.er1
  3390. ac_status=$?
  3391. grep -v '^ *+' conftest.er1 >conftest.err
  3392. rm -f conftest.er1
  3393. cat conftest.err >&5
  3394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3395. (exit $ac_status); } && {
  3396. test -z "$ac_c_werror_flag" ||
  3397. test ! -s conftest.err
  3398. } && test -s conftest.$ac_objext; then
  3399. ac_cv_prog_cc_c89=$ac_arg
  3400. else
  3401. echo "$as_me: failed program was:" >&5
  3402. sed 's/^/| /' conftest.$ac_ext >&5
  3403. fi
  3404. rm -f core conftest.err conftest.$ac_objext
  3405. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3406. done
  3407. rm -f conftest.$ac_ext
  3408. CC=$ac_save_CC
  3409. fi
  3410. # AC_CACHE_VAL
  3411. case "x$ac_cv_prog_cc_c89" in
  3412. x)
  3413. { echo "$as_me:$LINENO: result: none needed" >&5
  3414. echo "${ECHO_T}none needed" >&6; } ;;
  3415. xno)
  3416. { echo "$as_me:$LINENO: result: unsupported" >&5
  3417. echo "${ECHO_T}unsupported" >&6; } ;;
  3418. *)
  3419. CC="$CC $ac_cv_prog_cc_c89"
  3420. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3421. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3422. esac
  3423. ac_ext=c
  3424. ac_cpp='$CPP $CPPFLAGS'
  3425. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3426. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3427. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3428. DEPDIR="${am__leading_dot}deps"
  3429. ac_config_commands="$ac_config_commands depfiles"
  3430. am_make=${MAKE-make}
  3431. cat > confinc << 'END'
  3432. am__doit:
  3433. @echo done
  3434. .PHONY: am__doit
  3435. END
  3436. # If we don't find an include directive, just comment out the code.
  3437. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3438. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  3439. am__include="#"
  3440. am__quote=
  3441. _am_result=none
  3442. # First try GNU make style include.
  3443. echo "include confinc" > confmf
  3444. # We grep out `Entering directory' and `Leaving directory'
  3445. # messages which can occur if `w' ends up in MAKEFLAGS.
  3446. # In particular we don't look at `^make:' because GNU make might
  3447. # be invoked under some other name (usually "gmake"), in which
  3448. # case it prints its new name instead of `make'.
  3449. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3450. am__include=include
  3451. am__quote=
  3452. _am_result=GNU
  3453. fi
  3454. # Now try BSD make style include.
  3455. if test "$am__include" = "#"; then
  3456. echo '.include "confinc"' > confmf
  3457. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3458. am__include=.include
  3459. am__quote="\""
  3460. _am_result=BSD
  3461. fi
  3462. fi
  3463. { echo "$as_me:$LINENO: result: $_am_result" >&5
  3464. echo "${ECHO_T}$_am_result" >&6; }
  3465. rm -f confinc confmf
  3466. # Check whether --enable-dependency-tracking was given.
  3467. if test "${enable_dependency_tracking+set}" = set; then
  3468. enableval=$enable_dependency_tracking;
  3469. fi
  3470. if test "x$enable_dependency_tracking" != xno; then
  3471. am_depcomp="$ac_aux_dir/depcomp"
  3472. AMDEPBACKSLASH='\'
  3473. fi
  3474. if test "x$enable_dependency_tracking" != xno; then
  3475. AMDEP_TRUE=
  3476. AMDEP_FALSE='#'
  3477. else
  3478. AMDEP_TRUE='#'
  3479. AMDEP_FALSE=
  3480. fi
  3481. depcc="$CC" am_compiler_list=
  3482. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3483. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3484. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3485. echo $ECHO_N "(cached) $ECHO_C" >&6
  3486. else
  3487. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3488. # We make a subdir and do the tests there. Otherwise we can end up
  3489. # making bogus files that we don't know about and never remove. For
  3490. # instance it was reported that on HP-UX the gcc test will end up
  3491. # making a dummy file named `D' -- because `-MD' means `put the output
  3492. # in D'.
  3493. mkdir conftest.dir
  3494. # Copy depcomp to subdir because otherwise we won't find it if we're
  3495. # using a relative directory.
  3496. cp "$am_depcomp" conftest.dir
  3497. cd conftest.dir
  3498. # We will build objects and dependencies in a subdirectory because
  3499. # it helps to detect inapplicable dependency modes. For instance
  3500. # both Tru64's cc and ICC support -MD to output dependencies as a
  3501. # side effect of compilation, but ICC will put the dependencies in
  3502. # the current directory while Tru64 will put them in the object
  3503. # directory.
  3504. mkdir sub
  3505. am_cv_CC_dependencies_compiler_type=none
  3506. if test "$am_compiler_list" = ""; then
  3507. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3508. fi
  3509. for depmode in $am_compiler_list; do
  3510. # Setup a source with many dependencies, because some compilers
  3511. # like to wrap large dependency lists on column 80 (with \), and
  3512. # we should not choose a depcomp mode which is confused by this.
  3513. #
  3514. # We need to recreate these files for each test, as the compiler may
  3515. # overwrite some of them when testing with obscure command lines.
  3516. # This happens at least with the AIX C compiler.
  3517. : > sub/conftest.c
  3518. for i in 1 2 3 4 5 6; do
  3519. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3520. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3521. # Solaris 8's {/usr,}/bin/sh.
  3522. touch sub/conftst$i.h
  3523. done
  3524. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3525. case $depmode in
  3526. nosideeffect)
  3527. # after this tag, mechanisms are not by side-effect, so they'll
  3528. # only be used when explicitly requested
  3529. if test "x$enable_dependency_tracking" = xyes; then
  3530. continue
  3531. else
  3532. break
  3533. fi
  3534. ;;
  3535. none) break ;;
  3536. esac
  3537. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3538. # mode. It turns out that the SunPro C++ compiler does not properly
  3539. # handle `-M -o', and we need to detect this.
  3540. if depmode=$depmode \
  3541. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3542. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3543. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3544. >/dev/null 2>conftest.err &&
  3545. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3546. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3547. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3548. # icc doesn't choke on unknown options, it will just issue warnings
  3549. # or remarks (even with -Werror). So we grep stderr for any message
  3550. # that says an option was ignored or not supported.
  3551. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3552. # icc: Command line warning: ignoring option '-M'; no argument required
  3553. # The diagnosis changed in icc 8.0:
  3554. # icc: Command line remark: option '-MP' not supported
  3555. if (grep 'ignoring option' conftest.err ||
  3556. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3557. am_cv_CC_dependencies_compiler_type=$depmode
  3558. break
  3559. fi
  3560. fi
  3561. done
  3562. cd ..
  3563. rm -rf conftest.dir
  3564. else
  3565. am_cv_CC_dependencies_compiler_type=none
  3566. fi
  3567. fi
  3568. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3569. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3570. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3571. if
  3572. test "x$enable_dependency_tracking" != xno \
  3573. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3574. am__fastdepCC_TRUE=
  3575. am__fastdepCC_FALSE='#'
  3576. else
  3577. am__fastdepCC_TRUE='#'
  3578. am__fastdepCC_FALSE=
  3579. fi
  3580. curl_includes_inttypes="\
  3581. /* includes start */
  3582. #ifdef HAVE_SYS_TYPES_H
  3583. # include <sys/types.h>
  3584. #endif
  3585. #ifdef HAVE_STDINT_H
  3586. # include <stdint.h>
  3587. #endif
  3588. #ifdef HAVE_INTTYPES_H
  3589. # include <inttypes.h>
  3590. #endif
  3591. /* includes end */"
  3592. for ac_header in sys/types.h stdint.h inttypes.h
  3593. do
  3594. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3595. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  3596. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  3597. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3598. echo $ECHO_N "(cached) $ECHO_C" >&6
  3599. else
  3600. cat >conftest.$ac_ext <<_ACEOF
  3601. /* confdefs.h. */
  3602. _ACEOF
  3603. cat confdefs.h >>conftest.$ac_ext
  3604. cat >>conftest.$ac_ext <<_ACEOF
  3605. /* end confdefs.h. */
  3606. $curl_includes_inttypes
  3607. #include <$ac_header>
  3608. _ACEOF
  3609. rm -f conftest.$ac_objext
  3610. if { (ac_try="$ac_compile"
  3611. case "(($ac_try" in
  3612. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3613. *) ac_try_echo=$ac_try;;
  3614. esac
  3615. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3616. (eval "$ac_compile") 2>conftest.er1
  3617. ac_status=$?
  3618. grep -v '^ *+' conftest.er1 >conftest.err
  3619. rm -f conftest.er1
  3620. cat conftest.err >&5
  3621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3622. (exit $ac_status); } && {
  3623. test -z "$ac_c_werror_flag" ||
  3624. test ! -s conftest.err
  3625. } && test -s conftest.$ac_objext; then
  3626. eval "$as_ac_Header=yes"
  3627. else
  3628. echo "$as_me: failed program was:" >&5
  3629. sed 's/^/| /' conftest.$ac_ext >&5
  3630. eval "$as_ac_Header=no"
  3631. fi
  3632. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3633. fi
  3634. ac_res=`eval echo '${'$as_ac_Header'}'`
  3635. { echo "$as_me:$LINENO: result: $ac_res" >&5
  3636. echo "${ECHO_T}$ac_res" >&6; }
  3637. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3638. cat >>confdefs.h <<_ACEOF
  3639. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3640. _ACEOF
  3641. fi
  3642. done
  3643. ac_ext=c
  3644. ac_cpp='$CPP $CPPFLAGS'
  3645. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3646. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3647. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3648. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3649. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  3650. # On Suns, sometimes $CPP names a directory.
  3651. if test -n "$CPP" && test -d "$CPP"; then
  3652. CPP=
  3653. fi
  3654. if test -z "$CPP"; then
  3655. if test "${ac_cv_prog_CPP+set}" = set; then
  3656. echo $ECHO_N "(cached) $ECHO_C" >&6
  3657. else
  3658. # Double quotes because CPP needs to be expanded
  3659. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3660. do
  3661. ac_preproc_ok=false
  3662. for ac_c_preproc_warn_flag in '' yes
  3663. do
  3664. # Use a header file that comes with gcc, so configuring glibc
  3665. # with a fresh cross-compiler works.
  3666. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3667. # <limits.h> exists even on freestanding compilers.
  3668. # On the NeXT, cc -E runs the code through the compiler's parser,
  3669. # not just through cpp. "Syntax error" is here to catch this case.
  3670. cat >conftest.$ac_ext <<_ACEOF
  3671. /* confdefs.h. */
  3672. _ACEOF
  3673. cat confdefs.h >>conftest.$ac_ext
  3674. cat >>conftest.$ac_ext <<_ACEOF
  3675. /* end confdefs.h. */
  3676. #ifdef __STDC__
  3677. # include <limits.h>
  3678. #else
  3679. # include <assert.h>
  3680. #endif
  3681. Syntax error
  3682. _ACEOF
  3683. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3684. case "(($ac_try" in
  3685. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3686. *) ac_try_echo=$ac_try;;
  3687. esac
  3688. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3689. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3690. ac_status=$?
  3691. grep -v '^ *+' conftest.er1 >conftest.err
  3692. rm -f conftest.er1
  3693. cat conftest.err >&5
  3694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3695. (exit $ac_status); } >/dev/null && {
  3696. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3697. test ! -s conftest.err
  3698. }; then
  3699. :
  3700. else
  3701. echo "$as_me: failed program was:" >&5
  3702. sed 's/^/| /' conftest.$ac_ext >&5
  3703. # Broken: fails on valid input.
  3704. continue
  3705. fi
  3706. rm -f conftest.err conftest.$ac_ext
  3707. # OK, works on sane cases. Now check whether nonexistent headers
  3708. # can be detected and how.
  3709. cat >conftest.$ac_ext <<_ACEOF
  3710. /* confdefs.h. */
  3711. _ACEOF
  3712. cat confdefs.h >>conftest.$ac_ext
  3713. cat >>conftest.$ac_ext <<_ACEOF
  3714. /* end confdefs.h. */
  3715. #include <ac_nonexistent.h>
  3716. _ACEOF
  3717. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3718. case "(($ac_try" in
  3719. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3720. *) ac_try_echo=$ac_try;;
  3721. esac
  3722. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3723. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3724. ac_status=$?
  3725. grep -v '^ *+' conftest.er1 >conftest.err
  3726. rm -f conftest.er1
  3727. cat conftest.err >&5
  3728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3729. (exit $ac_status); } >/dev/null && {
  3730. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3731. test ! -s conftest.err
  3732. }; then
  3733. # Broken: success on invalid input.
  3734. continue
  3735. else
  3736. echo "$as_me: failed program was:" >&5
  3737. sed 's/^/| /' conftest.$ac_ext >&5
  3738. # Passes both tests.
  3739. ac_preproc_ok=:
  3740. break
  3741. fi
  3742. rm -f conftest.err conftest.$ac_ext
  3743. done
  3744. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3745. rm -f conftest.err conftest.$ac_ext
  3746. if $ac_preproc_ok; then
  3747. break
  3748. fi
  3749. done
  3750. ac_cv_prog_CPP=$CPP
  3751. fi
  3752. CPP=$ac_cv_prog_CPP
  3753. else
  3754. ac_cv_prog_CPP=$CPP
  3755. fi
  3756. { echo "$as_me:$LINENO: result: $CPP" >&5
  3757. echo "${ECHO_T}$CPP" >&6; }
  3758. ac_preproc_ok=false
  3759. for ac_c_preproc_warn_flag in '' yes
  3760. do
  3761. # Use a header file that comes with gcc, so configuring glibc
  3762. # with a fresh cross-compiler works.
  3763. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3764. # <limits.h> exists even on freestanding compilers.
  3765. # On the NeXT, cc -E runs the code through the compiler's parser,
  3766. # not just through cpp. "Syntax error" is here to catch this case.
  3767. cat >conftest.$ac_ext <<_ACEOF
  3768. /* confdefs.h. */
  3769. _ACEOF
  3770. cat confdefs.h >>conftest.$ac_ext
  3771. cat >>conftest.$ac_ext <<_ACEOF
  3772. /* end confdefs.h. */
  3773. #ifdef __STDC__
  3774. # include <limits.h>
  3775. #else
  3776. # include <assert.h>
  3777. #endif
  3778. Syntax error
  3779. _ACEOF
  3780. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3781. case "(($ac_try" in
  3782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3783. *) ac_try_echo=$ac_try;;
  3784. esac
  3785. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3786. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3787. ac_status=$?
  3788. grep -v '^ *+' conftest.er1 >conftest.err
  3789. rm -f conftest.er1
  3790. cat conftest.err >&5
  3791. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3792. (exit $ac_status); } >/dev/null && {
  3793. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3794. test ! -s conftest.err
  3795. }; then
  3796. :
  3797. else
  3798. echo "$as_me: failed program was:" >&5
  3799. sed 's/^/| /' conftest.$ac_ext >&5
  3800. # Broken: fails on valid input.
  3801. continue
  3802. fi
  3803. rm -f conftest.err conftest.$ac_ext
  3804. # OK, works on sane cases. Now check whether nonexistent headers
  3805. # can be detected and how.
  3806. cat >conftest.$ac_ext <<_ACEOF
  3807. /* confdefs.h. */
  3808. _ACEOF
  3809. cat confdefs.h >>conftest.$ac_ext
  3810. cat >>conftest.$ac_ext <<_ACEOF
  3811. /* end confdefs.h. */
  3812. #include <ac_nonexistent.h>
  3813. _ACEOF
  3814. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3815. case "(($ac_try" in
  3816. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3817. *) ac_try_echo=$ac_try;;
  3818. esac
  3819. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3820. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3821. ac_status=$?
  3822. grep -v '^ *+' conftest.er1 >conftest.err
  3823. rm -f conftest.er1
  3824. cat conftest.err >&5
  3825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3826. (exit $ac_status); } >/dev/null && {
  3827. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3828. test ! -s conftest.err
  3829. }; then
  3830. # Broken: success on invalid input.
  3831. continue
  3832. else
  3833. echo "$as_me: failed program was:" >&5
  3834. sed 's/^/| /' conftest.$ac_ext >&5
  3835. # Passes both tests.
  3836. ac_preproc_ok=:
  3837. break
  3838. fi
  3839. rm -f conftest.err conftest.$ac_ext
  3840. done
  3841. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3842. rm -f conftest.err conftest.$ac_ext
  3843. if $ac_preproc_ok; then
  3844. :
  3845. else
  3846. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3847. See \`config.log' for more details." >&5
  3848. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3849. See \`config.log' for more details." >&2;}
  3850. { (exit 1); exit 1; }; }
  3851. fi
  3852. ac_ext=c
  3853. ac_cpp='$CPP $CPPFLAGS'
  3854. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3855. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3856. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3857. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3858. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  3859. if test "${ac_cv_path_GREP+set}" = set; then
  3860. echo $ECHO_N "(cached) $ECHO_C" >&6
  3861. else
  3862. # Extract the first word of "grep ggrep" to use in msg output
  3863. if test -z "$GREP"; then
  3864. set dummy grep ggrep; ac_prog_name=$2
  3865. if test "${ac_cv_path_GREP+set}" = set; then
  3866. echo $ECHO_N "(cached) $ECHO_C" >&6
  3867. else
  3868. ac_path_GREP_found=false
  3869. # Loop through the user's path and test for each of PROGNAME-LIST
  3870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3871. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3872. do
  3873. IFS=$as_save_IFS
  3874. test -z "$as_dir" && as_dir=.
  3875. for ac_prog in grep ggrep; do
  3876. for ac_exec_ext in '' $ac_executable_extensions; do
  3877. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3878. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3879. # Check for GNU ac_path_GREP and select it if it is found.
  3880. # Check for GNU $ac_path_GREP
  3881. case `"$ac_path_GREP" --version 2>&1` in
  3882. *GNU*)
  3883. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3884. *)
  3885. ac_count=0
  3886. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3887. while :
  3888. do
  3889. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3890. mv "conftest.tmp" "conftest.in"
  3891. cp "conftest.in" "conftest.nl"
  3892. echo 'GREP' >> "conftest.nl"
  3893. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3894. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3895. ac_count=`expr $ac_count + 1`
  3896. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3897. # Best one so far, save it but keep looking for a better one
  3898. ac_cv_path_GREP="$ac_path_GREP"
  3899. ac_path_GREP_max=$ac_count
  3900. fi
  3901. # 10*(2^10) chars as input seems more than enough
  3902. test $ac_count -gt 10 && break
  3903. done
  3904. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3905. esac
  3906. $ac_path_GREP_found && break 3
  3907. done
  3908. done
  3909. done
  3910. IFS=$as_save_IFS
  3911. fi
  3912. GREP="$ac_cv_path_GREP"
  3913. if test -z "$GREP"; then
  3914. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3915. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3916. { (exit 1); exit 1; }; }
  3917. fi
  3918. else
  3919. ac_cv_path_GREP=$GREP
  3920. fi
  3921. fi
  3922. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3923. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  3924. GREP="$ac_cv_path_GREP"
  3925. { echo "$as_me:$LINENO: checking for egrep" >&5
  3926. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  3927. if test "${ac_cv_path_EGREP+set}" = set; then
  3928. echo $ECHO_N "(cached) $ECHO_C" >&6
  3929. else
  3930. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3931. then ac_cv_path_EGREP="$GREP -E"
  3932. else
  3933. # Extract the first word of "egrep" to use in msg output
  3934. if test -z "$EGREP"; then
  3935. set dummy egrep; ac_prog_name=$2
  3936. if test "${ac_cv_path_EGREP+set}" = set; then
  3937. echo $ECHO_N "(cached) $ECHO_C" >&6
  3938. else
  3939. ac_path_EGREP_found=false
  3940. # Loop through the user's path and test for each of PROGNAME-LIST
  3941. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3942. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3943. do
  3944. IFS=$as_save_IFS
  3945. test -z "$as_dir" && as_dir=.
  3946. for ac_prog in egrep; do
  3947. for ac_exec_ext in '' $ac_executable_extensions; do
  3948. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3949. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3950. # Check for GNU ac_path_EGREP and select it if it is found.
  3951. # Check for GNU $ac_path_EGREP
  3952. case `"$ac_path_EGREP" --version 2>&1` in
  3953. *GNU*)
  3954. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3955. *)
  3956. ac_count=0
  3957. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3958. while :
  3959. do
  3960. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3961. mv "conftest.tmp" "conftest.in"
  3962. cp "conftest.in" "conftest.nl"
  3963. echo 'EGREP' >> "conftest.nl"
  3964. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3965. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3966. ac_count=`expr $ac_count + 1`
  3967. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3968. # Best one so far, save it but keep looking for a better one
  3969. ac_cv_path_EGREP="$ac_path_EGREP"
  3970. ac_path_EGREP_max=$ac_count
  3971. fi
  3972. # 10*(2^10) chars as input seems more than enough
  3973. test $ac_count -gt 10 && break
  3974. done
  3975. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3976. esac
  3977. $ac_path_EGREP_found && break 3
  3978. done
  3979. done
  3980. done
  3981. IFS=$as_save_IFS
  3982. fi
  3983. EGREP="$ac_cv_path_EGREP"
  3984. if test -z "$EGREP"; then
  3985. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3986. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3987. { (exit 1); exit 1; }; }
  3988. fi
  3989. else
  3990. ac_cv_path_EGREP=$EGREP
  3991. fi
  3992. fi
  3993. fi
  3994. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3995. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  3996. EGREP="$ac_cv_path_EGREP"
  3997. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3998. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  3999. if test "${ac_cv_header_stdc+set}" = set; then
  4000. echo $ECHO_N "(cached) $ECHO_C" >&6
  4001. else
  4002. cat >conftest.$ac_ext <<_ACEOF
  4003. /* confdefs.h. */
  4004. _ACEOF
  4005. cat confdefs.h >>conftest.$ac_ext
  4006. cat >>conftest.$ac_ext <<_ACEOF
  4007. /* end confdefs.h. */
  4008. #include <stdlib.h>
  4009. #include <stdarg.h>
  4010. #include <string.h>
  4011. #include <float.h>
  4012. int
  4013. main ()
  4014. {
  4015. ;
  4016. return 0;
  4017. }
  4018. _ACEOF
  4019. rm -f conftest.$ac_objext
  4020. if { (ac_try="$ac_compile"
  4021. case "(($ac_try" in
  4022. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4023. *) ac_try_echo=$ac_try;;
  4024. esac
  4025. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4026. (eval "$ac_compile") 2>conftest.er1
  4027. ac_status=$?
  4028. grep -v '^ *+' conftest.er1 >conftest.err
  4029. rm -f conftest.er1
  4030. cat conftest.err >&5
  4031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4032. (exit $ac_status); } && {
  4033. test -z "$ac_c_werror_flag" ||
  4034. test ! -s conftest.err
  4035. } && test -s conftest.$ac_objext; then
  4036. ac_cv_header_stdc=yes
  4037. else
  4038. echo "$as_me: failed program was:" >&5
  4039. sed 's/^/| /' conftest.$ac_ext >&5
  4040. ac_cv_header_stdc=no
  4041. fi
  4042. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4043. if test $ac_cv_header_stdc = yes; then
  4044. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4045. cat >conftest.$ac_ext <<_ACEOF
  4046. /* confdefs.h. */
  4047. _ACEOF
  4048. cat confdefs.h >>conftest.$ac_ext
  4049. cat >>conftest.$ac_ext <<_ACEOF
  4050. /* end confdefs.h. */
  4051. #include <string.h>
  4052. _ACEOF
  4053. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4054. $EGREP "memchr" >/dev/null 2>&1; then
  4055. :
  4056. else
  4057. ac_cv_header_stdc=no
  4058. fi
  4059. rm -f conftest*
  4060. fi
  4061. if test $ac_cv_header_stdc = yes; then
  4062. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4063. cat >conftest.$ac_ext <<_ACEOF
  4064. /* confdefs.h. */
  4065. _ACEOF
  4066. cat confdefs.h >>conftest.$ac_ext
  4067. cat >>conftest.$ac_ext <<_ACEOF
  4068. /* end confdefs.h. */
  4069. #include <stdlib.h>
  4070. _ACEOF
  4071. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4072. $EGREP "free" >/dev/null 2>&1; then
  4073. :
  4074. else
  4075. ac_cv_header_stdc=no
  4076. fi
  4077. rm -f conftest*
  4078. fi
  4079. if test $ac_cv_header_stdc = yes; then
  4080. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4081. if test "$cross_compiling" = yes; then
  4082. :
  4083. else
  4084. cat >conftest.$ac_ext <<_ACEOF
  4085. /* confdefs.h. */
  4086. _ACEOF
  4087. cat confdefs.h >>conftest.$ac_ext
  4088. cat >>conftest.$ac_ext <<_ACEOF
  4089. /* end confdefs.h. */
  4090. #include <ctype.h>
  4091. #include <stdlib.h>
  4092. #if ((' ' & 0x0FF) == 0x020)
  4093. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4094. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4095. #else
  4096. # define ISLOWER(c) \
  4097. (('a' <= (c) && (c) <= 'i') \
  4098. || ('j' <= (c) && (c) <= 'r') \
  4099. || ('s' <= (c) && (c) <= 'z'))
  4100. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4101. #endif
  4102. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4103. int
  4104. main ()
  4105. {
  4106. int i;
  4107. for (i = 0; i < 256; i++)
  4108. if (XOR (islower (i), ISLOWER (i))
  4109. || toupper (i) != TOUPPER (i))
  4110. return 2;
  4111. return 0;
  4112. }
  4113. _ACEOF
  4114. rm -f conftest$ac_exeext
  4115. if { (ac_try="$ac_link"
  4116. case "(($ac_try" in
  4117. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4118. *) ac_try_echo=$ac_try;;
  4119. esac
  4120. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4121. (eval "$ac_link") 2>&5
  4122. ac_status=$?
  4123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4124. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4125. { (case "(($ac_try" in
  4126. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4127. *) ac_try_echo=$ac_try;;
  4128. esac
  4129. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4130. (eval "$ac_try") 2>&5
  4131. ac_status=$?
  4132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4133. (exit $ac_status); }; }; then
  4134. :
  4135. else
  4136. echo "$as_me: program exited with status $ac_status" >&5
  4137. echo "$as_me: failed program was:" >&5
  4138. sed 's/^/| /' conftest.$ac_ext >&5
  4139. ( exit $ac_status )
  4140. ac_cv_header_stdc=no
  4141. fi
  4142. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4143. fi
  4144. fi
  4145. fi
  4146. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4147. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4148. if test $ac_cv_header_stdc = yes; then
  4149. cat >>confdefs.h <<\_ACEOF
  4150. #define STDC_HEADERS 1
  4151. _ACEOF
  4152. fi
  4153. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4154. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4155. inttypes.h stdint.h unistd.h
  4156. do
  4157. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4158. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4159. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4160. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4161. echo $ECHO_N "(cached) $ECHO_C" >&6
  4162. else
  4163. cat >conftest.$ac_ext <<_ACEOF
  4164. /* confdefs.h. */
  4165. _ACEOF
  4166. cat confdefs.h >>conftest.$ac_ext
  4167. cat >>conftest.$ac_ext <<_ACEOF
  4168. /* end confdefs.h. */
  4169. $ac_includes_default
  4170. #include <$ac_header>
  4171. _ACEOF
  4172. rm -f conftest.$ac_objext
  4173. if { (ac_try="$ac_compile"
  4174. case "(($ac_try" in
  4175. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4176. *) ac_try_echo=$ac_try;;
  4177. esac
  4178. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4179. (eval "$ac_compile") 2>conftest.er1
  4180. ac_status=$?
  4181. grep -v '^ *+' conftest.er1 >conftest.err
  4182. rm -f conftest.er1
  4183. cat conftest.err >&5
  4184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4185. (exit $ac_status); } && {
  4186. test -z "$ac_c_werror_flag" ||
  4187. test ! -s conftest.err
  4188. } && test -s conftest.$ac_objext; then
  4189. eval "$as_ac_Header=yes"
  4190. else
  4191. echo "$as_me: failed program was:" >&5
  4192. sed 's/^/| /' conftest.$ac_ext >&5
  4193. eval "$as_ac_Header=no"
  4194. fi
  4195. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4196. fi
  4197. ac_res=`eval echo '${'$as_ac_Header'}'`
  4198. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4199. echo "${ECHO_T}$ac_res" >&6; }
  4200. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4201. cat >>confdefs.h <<_ACEOF
  4202. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4203. _ACEOF
  4204. fi
  4205. done
  4206. #
  4207. #
  4208. if test -z "$SED"; then
  4209. { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
  4210. echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
  4211. { (exit 1); exit 1; }; }
  4212. fi
  4213. #
  4214. { echo "$as_me:$LINENO: checking for long" >&5
  4215. echo $ECHO_N "checking for long... $ECHO_C" >&6; }
  4216. if test "${ac_cv_type_long+set}" = set; then
  4217. echo $ECHO_N "(cached) $ECHO_C" >&6
  4218. else
  4219. cat >conftest.$ac_ext <<_ACEOF
  4220. /* confdefs.h. */
  4221. _ACEOF
  4222. cat confdefs.h >>conftest.$ac_ext
  4223. cat >>conftest.$ac_ext <<_ACEOF
  4224. /* end confdefs.h. */
  4225. $ac_includes_default
  4226. typedef long ac__type_new_;
  4227. int
  4228. main ()
  4229. {
  4230. if ((ac__type_new_ *) 0)
  4231. return 0;
  4232. if (sizeof (ac__type_new_))
  4233. return 0;
  4234. ;
  4235. return 0;
  4236. }
  4237. _ACEOF
  4238. rm -f conftest.$ac_objext
  4239. if { (ac_try="$ac_compile"
  4240. case "(($ac_try" in
  4241. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4242. *) ac_try_echo=$ac_try;;
  4243. esac
  4244. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4245. (eval "$ac_compile") 2>conftest.er1
  4246. ac_status=$?
  4247. grep -v '^ *+' conftest.er1 >conftest.err
  4248. rm -f conftest.er1
  4249. cat conftest.err >&5
  4250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4251. (exit $ac_status); } && {
  4252. test -z "$ac_c_werror_flag" ||
  4253. test ! -s conftest.err
  4254. } && test -s conftest.$ac_objext; then
  4255. ac_cv_type_long=yes
  4256. else
  4257. echo "$as_me: failed program was:" >&5
  4258. sed 's/^/| /' conftest.$ac_ext >&5
  4259. ac_cv_type_long=no
  4260. fi
  4261. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4262. fi
  4263. { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  4264. echo "${ECHO_T}$ac_cv_type_long" >&6; }
  4265. # The cast to long int works around a bug in the HP C Compiler
  4266. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4267. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4268. # This bug is HP SR number 8606223364.
  4269. { echo "$as_me:$LINENO: checking size of long" >&5
  4270. echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
  4271. if test "${ac_cv_sizeof_long+set}" = set; then
  4272. echo $ECHO_N "(cached) $ECHO_C" >&6
  4273. else
  4274. if test "$cross_compiling" = yes; then
  4275. # Depending upon the size, compute the lo and hi bounds.
  4276. cat >conftest.$ac_ext <<_ACEOF
  4277. /* confdefs.h. */
  4278. _ACEOF
  4279. cat confdefs.h >>conftest.$ac_ext
  4280. cat >>conftest.$ac_ext <<_ACEOF
  4281. /* end confdefs.h. */
  4282. $ac_includes_default
  4283. typedef long ac__type_sizeof_;
  4284. int
  4285. main ()
  4286. {
  4287. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  4288. test_array [0] = 0
  4289. ;
  4290. return 0;
  4291. }
  4292. _ACEOF
  4293. rm -f conftest.$ac_objext
  4294. if { (ac_try="$ac_compile"
  4295. case "(($ac_try" in
  4296. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4297. *) ac_try_echo=$ac_try;;
  4298. esac
  4299. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4300. (eval "$ac_compile") 2>conftest.er1
  4301. ac_status=$?
  4302. grep -v '^ *+' conftest.er1 >conftest.err
  4303. rm -f conftest.er1
  4304. cat conftest.err >&5
  4305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4306. (exit $ac_status); } && {
  4307. test -z "$ac_c_werror_flag" ||
  4308. test ! -s conftest.err
  4309. } && test -s conftest.$ac_objext; then
  4310. ac_lo=0 ac_mid=0
  4311. while :; do
  4312. cat >conftest.$ac_ext <<_ACEOF
  4313. /* confdefs.h. */
  4314. _ACEOF
  4315. cat confdefs.h >>conftest.$ac_ext
  4316. cat >>conftest.$ac_ext <<_ACEOF
  4317. /* end confdefs.h. */
  4318. $ac_includes_default
  4319. typedef long ac__type_sizeof_;
  4320. int
  4321. main ()
  4322. {
  4323. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  4324. test_array [0] = 0
  4325. ;
  4326. return 0;
  4327. }
  4328. _ACEOF
  4329. rm -f conftest.$ac_objext
  4330. if { (ac_try="$ac_compile"
  4331. case "(($ac_try" in
  4332. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4333. *) ac_try_echo=$ac_try;;
  4334. esac
  4335. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4336. (eval "$ac_compile") 2>conftest.er1
  4337. ac_status=$?
  4338. grep -v '^ *+' conftest.er1 >conftest.err
  4339. rm -f conftest.er1
  4340. cat conftest.err >&5
  4341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4342. (exit $ac_status); } && {
  4343. test -z "$ac_c_werror_flag" ||
  4344. test ! -s conftest.err
  4345. } && test -s conftest.$ac_objext; then
  4346. ac_hi=$ac_mid; break
  4347. else
  4348. echo "$as_me: failed program was:" >&5
  4349. sed 's/^/| /' conftest.$ac_ext >&5
  4350. ac_lo=`expr $ac_mid + 1`
  4351. if test $ac_lo -le $ac_mid; then
  4352. ac_lo= ac_hi=
  4353. break
  4354. fi
  4355. ac_mid=`expr 2 '*' $ac_mid + 1`
  4356. fi
  4357. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4358. done
  4359. else
  4360. echo "$as_me: failed program was:" >&5
  4361. sed 's/^/| /' conftest.$ac_ext >&5
  4362. cat >conftest.$ac_ext <<_ACEOF
  4363. /* confdefs.h. */
  4364. _ACEOF
  4365. cat confdefs.h >>conftest.$ac_ext
  4366. cat >>conftest.$ac_ext <<_ACEOF
  4367. /* end confdefs.h. */
  4368. $ac_includes_default
  4369. typedef long ac__type_sizeof_;
  4370. int
  4371. main ()
  4372. {
  4373. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  4374. test_array [0] = 0
  4375. ;
  4376. return 0;
  4377. }
  4378. _ACEOF
  4379. rm -f conftest.$ac_objext
  4380. if { (ac_try="$ac_compile"
  4381. case "(($ac_try" in
  4382. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4383. *) ac_try_echo=$ac_try;;
  4384. esac
  4385. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4386. (eval "$ac_compile") 2>conftest.er1
  4387. ac_status=$?
  4388. grep -v '^ *+' conftest.er1 >conftest.err
  4389. rm -f conftest.er1
  4390. cat conftest.err >&5
  4391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4392. (exit $ac_status); } && {
  4393. test -z "$ac_c_werror_flag" ||
  4394. test ! -s conftest.err
  4395. } && test -s conftest.$ac_objext; then
  4396. ac_hi=-1 ac_mid=-1
  4397. while :; do
  4398. cat >conftest.$ac_ext <<_ACEOF
  4399. /* confdefs.h. */
  4400. _ACEOF
  4401. cat confdefs.h >>conftest.$ac_ext
  4402. cat >>conftest.$ac_ext <<_ACEOF
  4403. /* end confdefs.h. */
  4404. $ac_includes_default
  4405. typedef long ac__type_sizeof_;
  4406. int
  4407. main ()
  4408. {
  4409. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  4410. test_array [0] = 0
  4411. ;
  4412. return 0;
  4413. }
  4414. _ACEOF
  4415. rm -f conftest.$ac_objext
  4416. if { (ac_try="$ac_compile"
  4417. case "(($ac_try" in
  4418. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4419. *) ac_try_echo=$ac_try;;
  4420. esac
  4421. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4422. (eval "$ac_compile") 2>conftest.er1
  4423. ac_status=$?
  4424. grep -v '^ *+' conftest.er1 >conftest.err
  4425. rm -f conftest.er1
  4426. cat conftest.err >&5
  4427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4428. (exit $ac_status); } && {
  4429. test -z "$ac_c_werror_flag" ||
  4430. test ! -s conftest.err
  4431. } && test -s conftest.$ac_objext; then
  4432. ac_lo=$ac_mid; break
  4433. else
  4434. echo "$as_me: failed program was:" >&5
  4435. sed 's/^/| /' conftest.$ac_ext >&5
  4436. ac_hi=`expr '(' $ac_mid ')' - 1`
  4437. if test $ac_mid -le $ac_hi; then
  4438. ac_lo= ac_hi=
  4439. break
  4440. fi
  4441. ac_mid=`expr 2 '*' $ac_mid`
  4442. fi
  4443. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4444. done
  4445. else
  4446. echo "$as_me: failed program was:" >&5
  4447. sed 's/^/| /' conftest.$ac_ext >&5
  4448. ac_lo= ac_hi=
  4449. fi
  4450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4451. fi
  4452. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4453. # Binary search between lo and hi bounds.
  4454. while test "x$ac_lo" != "x$ac_hi"; do
  4455. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  4456. cat >conftest.$ac_ext <<_ACEOF
  4457. /* confdefs.h. */
  4458. _ACEOF
  4459. cat confdefs.h >>conftest.$ac_ext
  4460. cat >>conftest.$ac_ext <<_ACEOF
  4461. /* end confdefs.h. */
  4462. $ac_includes_default
  4463. typedef long ac__type_sizeof_;
  4464. int
  4465. main ()
  4466. {
  4467. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  4468. test_array [0] = 0
  4469. ;
  4470. return 0;
  4471. }
  4472. _ACEOF
  4473. rm -f conftest.$ac_objext
  4474. if { (ac_try="$ac_compile"
  4475. case "(($ac_try" in
  4476. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4477. *) ac_try_echo=$ac_try;;
  4478. esac
  4479. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4480. (eval "$ac_compile") 2>conftest.er1
  4481. ac_status=$?
  4482. grep -v '^ *+' conftest.er1 >conftest.err
  4483. rm -f conftest.er1
  4484. cat conftest.err >&5
  4485. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4486. (exit $ac_status); } && {
  4487. test -z "$ac_c_werror_flag" ||
  4488. test ! -s conftest.err
  4489. } && test -s conftest.$ac_objext; then
  4490. ac_hi=$ac_mid
  4491. else
  4492. echo "$as_me: failed program was:" >&5
  4493. sed 's/^/| /' conftest.$ac_ext >&5
  4494. ac_lo=`expr '(' $ac_mid ')' + 1`
  4495. fi
  4496. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4497. done
  4498. case $ac_lo in
  4499. ?*) ac_cv_sizeof_long=$ac_lo;;
  4500. '') if test "$ac_cv_type_long" = yes; then
  4501. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  4502. See \`config.log' for more details." >&5
  4503. echo "$as_me: error: cannot compute sizeof (long)
  4504. See \`config.log' for more details." >&2;}
  4505. { (exit 77); exit 77; }; }
  4506. else
  4507. ac_cv_sizeof_long=0
  4508. fi ;;
  4509. esac
  4510. else
  4511. cat >conftest.$ac_ext <<_ACEOF
  4512. /* confdefs.h. */
  4513. _ACEOF
  4514. cat confdefs.h >>conftest.$ac_ext
  4515. cat >>conftest.$ac_ext <<_ACEOF
  4516. /* end confdefs.h. */
  4517. $ac_includes_default
  4518. typedef long ac__type_sizeof_;
  4519. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  4520. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  4521. #include <stdio.h>
  4522. #include <stdlib.h>
  4523. int
  4524. main ()
  4525. {
  4526. FILE *f = fopen ("conftest.val", "w");
  4527. if (! f)
  4528. return 1;
  4529. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  4530. {
  4531. long int i = longval ();
  4532. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  4533. return 1;
  4534. fprintf (f, "%ld\n", i);
  4535. }
  4536. else
  4537. {
  4538. unsigned long int i = ulongval ();
  4539. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  4540. return 1;
  4541. fprintf (f, "%lu\n", i);
  4542. }
  4543. return ferror (f) || fclose (f) != 0;
  4544. ;
  4545. return 0;
  4546. }
  4547. _ACEOF
  4548. rm -f conftest$ac_exeext
  4549. if { (ac_try="$ac_link"
  4550. case "(($ac_try" in
  4551. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4552. *) ac_try_echo=$ac_try;;
  4553. esac
  4554. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4555. (eval "$ac_link") 2>&5
  4556. ac_status=$?
  4557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4558. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4559. { (case "(($ac_try" in
  4560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4561. *) ac_try_echo=$ac_try;;
  4562. esac
  4563. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4564. (eval "$ac_try") 2>&5
  4565. ac_status=$?
  4566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4567. (exit $ac_status); }; }; then
  4568. ac_cv_sizeof_long=`cat conftest.val`
  4569. else
  4570. echo "$as_me: program exited with status $ac_status" >&5
  4571. echo "$as_me: failed program was:" >&5
  4572. sed 's/^/| /' conftest.$ac_ext >&5
  4573. ( exit $ac_status )
  4574. if test "$ac_cv_type_long" = yes; then
  4575. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  4576. See \`config.log' for more details." >&5
  4577. echo "$as_me: error: cannot compute sizeof (long)
  4578. See \`config.log' for more details." >&2;}
  4579. { (exit 77); exit 77; }; }
  4580. else
  4581. ac_cv_sizeof_long=0
  4582. fi
  4583. fi
  4584. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4585. fi
  4586. rm -f conftest.val
  4587. fi
  4588. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  4589. echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
  4590. cat >>confdefs.h <<_ACEOF
  4591. #define SIZEOF_LONG $ac_cv_sizeof_long
  4592. _ACEOF
  4593. { echo "$as_me:$LINENO: checking for void*" >&5
  4594. echo $ECHO_N "checking for void*... $ECHO_C" >&6; }
  4595. if test "${ac_cv_type_voidp+set}" = set; then
  4596. echo $ECHO_N "(cached) $ECHO_C" >&6
  4597. else
  4598. cat >conftest.$ac_ext <<_ACEOF
  4599. /* confdefs.h. */
  4600. _ACEOF
  4601. cat confdefs.h >>conftest.$ac_ext
  4602. cat >>conftest.$ac_ext <<_ACEOF
  4603. /* end confdefs.h. */
  4604. $ac_includes_default
  4605. typedef void* ac__type_new_;
  4606. int
  4607. main ()
  4608. {
  4609. if ((ac__type_new_ *) 0)
  4610. return 0;
  4611. if (sizeof (ac__type_new_))
  4612. return 0;
  4613. ;
  4614. return 0;
  4615. }
  4616. _ACEOF
  4617. rm -f conftest.$ac_objext
  4618. if { (ac_try="$ac_compile"
  4619. case "(($ac_try" in
  4620. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4621. *) ac_try_echo=$ac_try;;
  4622. esac
  4623. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4624. (eval "$ac_compile") 2>conftest.er1
  4625. ac_status=$?
  4626. grep -v '^ *+' conftest.er1 >conftest.err
  4627. rm -f conftest.er1
  4628. cat conftest.err >&5
  4629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4630. (exit $ac_status); } && {
  4631. test -z "$ac_c_werror_flag" ||
  4632. test ! -s conftest.err
  4633. } && test -s conftest.$ac_objext; then
  4634. ac_cv_type_voidp=yes
  4635. else
  4636. echo "$as_me: failed program was:" >&5
  4637. sed 's/^/| /' conftest.$ac_ext >&5
  4638. ac_cv_type_voidp=no
  4639. fi
  4640. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4641. fi
  4642. { echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
  4643. echo "${ECHO_T}$ac_cv_type_voidp" >&6; }
  4644. # The cast to long int works around a bug in the HP C Compiler
  4645. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4646. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4647. # This bug is HP SR number 8606223364.
  4648. { echo "$as_me:$LINENO: checking size of void*" >&5
  4649. echo $ECHO_N "checking size of void*... $ECHO_C" >&6; }
  4650. if test "${ac_cv_sizeof_voidp+set}" = set; then
  4651. echo $ECHO_N "(cached) $ECHO_C" >&6
  4652. else
  4653. if test "$cross_compiling" = yes; then
  4654. # Depending upon the size, compute the lo and hi bounds.
  4655. cat >conftest.$ac_ext <<_ACEOF
  4656. /* confdefs.h. */
  4657. _ACEOF
  4658. cat confdefs.h >>conftest.$ac_ext
  4659. cat >>conftest.$ac_ext <<_ACEOF
  4660. /* end confdefs.h. */
  4661. $ac_includes_default
  4662. typedef void* ac__type_sizeof_;
  4663. int
  4664. main ()
  4665. {
  4666. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  4667. test_array [0] = 0
  4668. ;
  4669. return 0;
  4670. }
  4671. _ACEOF
  4672. rm -f conftest.$ac_objext
  4673. if { (ac_try="$ac_compile"
  4674. case "(($ac_try" in
  4675. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4676. *) ac_try_echo=$ac_try;;
  4677. esac
  4678. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4679. (eval "$ac_compile") 2>conftest.er1
  4680. ac_status=$?
  4681. grep -v '^ *+' conftest.er1 >conftest.err
  4682. rm -f conftest.er1
  4683. cat conftest.err >&5
  4684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4685. (exit $ac_status); } && {
  4686. test -z "$ac_c_werror_flag" ||
  4687. test ! -s conftest.err
  4688. } && test -s conftest.$ac_objext; then
  4689. ac_lo=0 ac_mid=0
  4690. while :; do
  4691. cat >conftest.$ac_ext <<_ACEOF
  4692. /* confdefs.h. */
  4693. _ACEOF
  4694. cat confdefs.h >>conftest.$ac_ext
  4695. cat >>conftest.$ac_ext <<_ACEOF
  4696. /* end confdefs.h. */
  4697. $ac_includes_default
  4698. typedef void* ac__type_sizeof_;
  4699. int
  4700. main ()
  4701. {
  4702. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  4703. test_array [0] = 0
  4704. ;
  4705. return 0;
  4706. }
  4707. _ACEOF
  4708. rm -f conftest.$ac_objext
  4709. if { (ac_try="$ac_compile"
  4710. case "(($ac_try" in
  4711. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4712. *) ac_try_echo=$ac_try;;
  4713. esac
  4714. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4715. (eval "$ac_compile") 2>conftest.er1
  4716. ac_status=$?
  4717. grep -v '^ *+' conftest.er1 >conftest.err
  4718. rm -f conftest.er1
  4719. cat conftest.err >&5
  4720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4721. (exit $ac_status); } && {
  4722. test -z "$ac_c_werror_flag" ||
  4723. test ! -s conftest.err
  4724. } && test -s conftest.$ac_objext; then
  4725. ac_hi=$ac_mid; break
  4726. else
  4727. echo "$as_me: failed program was:" >&5
  4728. sed 's/^/| /' conftest.$ac_ext >&5
  4729. ac_lo=`expr $ac_mid + 1`
  4730. if test $ac_lo -le $ac_mid; then
  4731. ac_lo= ac_hi=
  4732. break
  4733. fi
  4734. ac_mid=`expr 2 '*' $ac_mid + 1`
  4735. fi
  4736. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4737. done
  4738. else
  4739. echo "$as_me: failed program was:" >&5
  4740. sed 's/^/| /' conftest.$ac_ext >&5
  4741. cat >conftest.$ac_ext <<_ACEOF
  4742. /* confdefs.h. */
  4743. _ACEOF
  4744. cat confdefs.h >>conftest.$ac_ext
  4745. cat >>conftest.$ac_ext <<_ACEOF
  4746. /* end confdefs.h. */
  4747. $ac_includes_default
  4748. typedef void* ac__type_sizeof_;
  4749. int
  4750. main ()
  4751. {
  4752. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  4753. test_array [0] = 0
  4754. ;
  4755. return 0;
  4756. }
  4757. _ACEOF
  4758. rm -f conftest.$ac_objext
  4759. if { (ac_try="$ac_compile"
  4760. case "(($ac_try" in
  4761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4762. *) ac_try_echo=$ac_try;;
  4763. esac
  4764. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4765. (eval "$ac_compile") 2>conftest.er1
  4766. ac_status=$?
  4767. grep -v '^ *+' conftest.er1 >conftest.err
  4768. rm -f conftest.er1
  4769. cat conftest.err >&5
  4770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4771. (exit $ac_status); } && {
  4772. test -z "$ac_c_werror_flag" ||
  4773. test ! -s conftest.err
  4774. } && test -s conftest.$ac_objext; then
  4775. ac_hi=-1 ac_mid=-1
  4776. while :; do
  4777. cat >conftest.$ac_ext <<_ACEOF
  4778. /* confdefs.h. */
  4779. _ACEOF
  4780. cat confdefs.h >>conftest.$ac_ext
  4781. cat >>conftest.$ac_ext <<_ACEOF
  4782. /* end confdefs.h. */
  4783. $ac_includes_default
  4784. typedef void* ac__type_sizeof_;
  4785. int
  4786. main ()
  4787. {
  4788. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  4789. test_array [0] = 0
  4790. ;
  4791. return 0;
  4792. }
  4793. _ACEOF
  4794. rm -f conftest.$ac_objext
  4795. if { (ac_try="$ac_compile"
  4796. case "(($ac_try" in
  4797. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4798. *) ac_try_echo=$ac_try;;
  4799. esac
  4800. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4801. (eval "$ac_compile") 2>conftest.er1
  4802. ac_status=$?
  4803. grep -v '^ *+' conftest.er1 >conftest.err
  4804. rm -f conftest.er1
  4805. cat conftest.err >&5
  4806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4807. (exit $ac_status); } && {
  4808. test -z "$ac_c_werror_flag" ||
  4809. test ! -s conftest.err
  4810. } && test -s conftest.$ac_objext; then
  4811. ac_lo=$ac_mid; break
  4812. else
  4813. echo "$as_me: failed program was:" >&5
  4814. sed 's/^/| /' conftest.$ac_ext >&5
  4815. ac_hi=`expr '(' $ac_mid ')' - 1`
  4816. if test $ac_mid -le $ac_hi; then
  4817. ac_lo= ac_hi=
  4818. break
  4819. fi
  4820. ac_mid=`expr 2 '*' $ac_mid`
  4821. fi
  4822. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4823. done
  4824. else
  4825. echo "$as_me: failed program was:" >&5
  4826. sed 's/^/| /' conftest.$ac_ext >&5
  4827. ac_lo= ac_hi=
  4828. fi
  4829. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4830. fi
  4831. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4832. # Binary search between lo and hi bounds.
  4833. while test "x$ac_lo" != "x$ac_hi"; do
  4834. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  4835. cat >conftest.$ac_ext <<_ACEOF
  4836. /* confdefs.h. */
  4837. _ACEOF
  4838. cat confdefs.h >>conftest.$ac_ext
  4839. cat >>conftest.$ac_ext <<_ACEOF
  4840. /* end confdefs.h. */
  4841. $ac_includes_default
  4842. typedef void* ac__type_sizeof_;
  4843. int
  4844. main ()
  4845. {
  4846. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  4847. test_array [0] = 0
  4848. ;
  4849. return 0;
  4850. }
  4851. _ACEOF
  4852. rm -f conftest.$ac_objext
  4853. if { (ac_try="$ac_compile"
  4854. case "(($ac_try" in
  4855. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4856. *) ac_try_echo=$ac_try;;
  4857. esac
  4858. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4859. (eval "$ac_compile") 2>conftest.er1
  4860. ac_status=$?
  4861. grep -v '^ *+' conftest.er1 >conftest.err
  4862. rm -f conftest.er1
  4863. cat conftest.err >&5
  4864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4865. (exit $ac_status); } && {
  4866. test -z "$ac_c_werror_flag" ||
  4867. test ! -s conftest.err
  4868. } && test -s conftest.$ac_objext; then
  4869. ac_hi=$ac_mid
  4870. else
  4871. echo "$as_me: failed program was:" >&5
  4872. sed 's/^/| /' conftest.$ac_ext >&5
  4873. ac_lo=`expr '(' $ac_mid ')' + 1`
  4874. fi
  4875. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4876. done
  4877. case $ac_lo in
  4878. ?*) ac_cv_sizeof_voidp=$ac_lo;;
  4879. '') if test "$ac_cv_type_voidp" = yes; then
  4880. { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
  4881. See \`config.log' for more details." >&5
  4882. echo "$as_me: error: cannot compute sizeof (void*)
  4883. See \`config.log' for more details." >&2;}
  4884. { (exit 77); exit 77; }; }
  4885. else
  4886. ac_cv_sizeof_voidp=0
  4887. fi ;;
  4888. esac
  4889. else
  4890. cat >conftest.$ac_ext <<_ACEOF
  4891. /* confdefs.h. */
  4892. _ACEOF
  4893. cat confdefs.h >>conftest.$ac_ext
  4894. cat >>conftest.$ac_ext <<_ACEOF
  4895. /* end confdefs.h. */
  4896. $ac_includes_default
  4897. typedef void* ac__type_sizeof_;
  4898. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  4899. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  4900. #include <stdio.h>
  4901. #include <stdlib.h>
  4902. int
  4903. main ()
  4904. {
  4905. FILE *f = fopen ("conftest.val", "w");
  4906. if (! f)
  4907. return 1;
  4908. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  4909. {
  4910. long int i = longval ();
  4911. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  4912. return 1;
  4913. fprintf (f, "%ld\n", i);
  4914. }
  4915. else
  4916. {
  4917. unsigned long int i = ulongval ();
  4918. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  4919. return 1;
  4920. fprintf (f, "%lu\n", i);
  4921. }
  4922. return ferror (f) || fclose (f) != 0;
  4923. ;
  4924. return 0;
  4925. }
  4926. _ACEOF
  4927. rm -f conftest$ac_exeext
  4928. if { (ac_try="$ac_link"
  4929. case "(($ac_try" in
  4930. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4931. *) ac_try_echo=$ac_try;;
  4932. esac
  4933. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4934. (eval "$ac_link") 2>&5
  4935. ac_status=$?
  4936. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4937. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4938. { (case "(($ac_try" in
  4939. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4940. *) ac_try_echo=$ac_try;;
  4941. esac
  4942. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4943. (eval "$ac_try") 2>&5
  4944. ac_status=$?
  4945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4946. (exit $ac_status); }; }; then
  4947. ac_cv_sizeof_voidp=`cat conftest.val`
  4948. else
  4949. echo "$as_me: program exited with status $ac_status" >&5
  4950. echo "$as_me: failed program was:" >&5
  4951. sed 's/^/| /' conftest.$ac_ext >&5
  4952. ( exit $ac_status )
  4953. if test "$ac_cv_type_voidp" = yes; then
  4954. { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
  4955. See \`config.log' for more details." >&5
  4956. echo "$as_me: error: cannot compute sizeof (void*)
  4957. See \`config.log' for more details." >&2;}
  4958. { (exit 77); exit 77; }; }
  4959. else
  4960. ac_cv_sizeof_voidp=0
  4961. fi
  4962. fi
  4963. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4964. fi
  4965. rm -f conftest.val
  4966. fi
  4967. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
  4968. echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6; }
  4969. cat >>confdefs.h <<_ACEOF
  4970. #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
  4971. _ACEOF
  4972. #
  4973. if test -z "$ac_cv_sizeof_long" ||
  4974. test "$ac_cv_sizeof_long" -eq "0"; then
  4975. { { echo "$as_me:$LINENO: error: cannot find out size of long." >&5
  4976. echo "$as_me: error: cannot find out size of long." >&2;}
  4977. { (exit 1); exit 1; }; }
  4978. fi
  4979. if test -z "$ac_cv_sizeof_voidp" ||
  4980. test "$ac_cv_sizeof_voidp" -eq "0"; then
  4981. { { echo "$as_me:$LINENO: error: cannot find out size of void*." >&5
  4982. echo "$as_me: error: cannot find out size of void*." >&2;}
  4983. { (exit 1); exit 1; }; }
  4984. fi
  4985. #
  4986. x_LP64_long=""
  4987. x_LP32_long=""
  4988. x_LP16_long=""
  4989. #
  4990. if test "$ac_cv_sizeof_long" -eq "8" &&
  4991. test "$ac_cv_sizeof_voidp" -ge "8"; then
  4992. x_LP64_long="long"
  4993. elif test "$ac_cv_sizeof_long" -eq "4" &&
  4994. test "$ac_cv_sizeof_voidp" -ge "4"; then
  4995. x_LP32_long="long"
  4996. elif test "$ac_cv_sizeof_long" -eq "2" &&
  4997. test "$ac_cv_sizeof_voidp" -ge "2"; then
  4998. x_LP16_long="long"
  4999. fi
  5000. #
  5001. #
  5002. curl_typeof_curl_off_t="unknown"
  5003. curl_sizeof_curl_off_t="unknown"
  5004. curl_format_curl_off_t="unknown"
  5005. curl_format_curl_off_tu="unknown"
  5006. #
  5007. if test "$curl_typeof_curl_off_t" = "unknown"; then
  5008. { echo "$as_me:$LINENO: checking for 64-bit curl_off_t data type" >&5
  5009. echo $ECHO_N "checking for 64-bit curl_off_t data type... $ECHO_C" >&6; }
  5010. for t8 in \
  5011. "$x_LP64_long" \
  5012. 'int64_t' \
  5013. '__int64' \
  5014. 'long long' \
  5015. '__longlong' \
  5016. '__longlong_t' ; do
  5017. if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t8"; then
  5018. tmp_includes=""
  5019. tmp_source=""
  5020. tmp_fmt=""
  5021. case `echo "$t8" | $as_tr_sh` in
  5022. int64_t)
  5023. tmp_includes="$curl_includes_inttypes"
  5024. tmp_source="char f[] = PRId64;"
  5025. tmp_fmt="PRId64"
  5026. ;;
  5027. int32_t)
  5028. tmp_includes="$curl_includes_inttypes"
  5029. tmp_source="char f[] = PRId32;"
  5030. tmp_fmt="PRId32"
  5031. ;;
  5032. int16_t)
  5033. tmp_includes="$curl_includes_inttypes"
  5034. tmp_source="char f[] = PRId16;"
  5035. tmp_fmt="PRId16"
  5036. ;;
  5037. esac
  5038. cat >conftest.$ac_ext <<_ACEOF
  5039. /* confdefs.h. */
  5040. _ACEOF
  5041. cat confdefs.h >>conftest.$ac_ext
  5042. cat >>conftest.$ac_ext <<_ACEOF
  5043. /* end confdefs.h. */
  5044. $tmp_includes
  5045. typedef $t8 curl_off_t;
  5046. typedef char dummy_arr[sizeof(curl_off_t) == 8 ? 1 : -1];
  5047. int
  5048. main ()
  5049. {
  5050. $tmp_source
  5051. curl_off_t dummy;
  5052. ;
  5053. return 0;
  5054. }
  5055. _ACEOF
  5056. rm -f conftest.$ac_objext
  5057. if { (ac_try="$ac_compile"
  5058. case "(($ac_try" in
  5059. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5060. *) ac_try_echo=$ac_try;;
  5061. esac
  5062. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5063. (eval "$ac_compile") 2>conftest.er1
  5064. ac_status=$?
  5065. grep -v '^ *+' conftest.er1 >conftest.err
  5066. rm -f conftest.er1
  5067. cat conftest.err >&5
  5068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5069. (exit $ac_status); } && {
  5070. test -z "$ac_c_werror_flag" ||
  5071. test ! -s conftest.err
  5072. } && test -s conftest.$ac_objext; then
  5073. if test -z "$tmp_fmt"; then
  5074. curl_typeof_curl_off_t="$t8"
  5075. curl_sizeof_curl_off_t="8"
  5076. else
  5077. as_ac_HaveDef=`echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
  5078. as_ac_Def=`echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
  5079. if test -z "$SED"; then
  5080. { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
  5081. echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
  5082. { (exit 1); exit 1; }; }
  5083. fi
  5084. if test -z "$GREP"; then
  5085. { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
  5086. echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
  5087. { (exit 1); exit 1; }; }
  5088. fi
  5089. tmp_exp=""
  5090. cat >conftest.$ac_ext <<_ACEOF
  5091. /* confdefs.h. */
  5092. _ACEOF
  5093. cat confdefs.h >>conftest.$ac_ext
  5094. cat >>conftest.$ac_ext <<_ACEOF
  5095. /* end confdefs.h. */
  5096. $curl_includes_inttypes
  5097. #ifdef $tmp_fmt
  5098. CURL_DEF_TOKEN $tmp_fmt
  5099. #endif
  5100. _ACEOF
  5101. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5102. case "(($ac_try" in
  5103. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5104. *) ac_try_echo=$ac_try;;
  5105. esac
  5106. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5107. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5108. ac_status=$?
  5109. grep -v '^ *+' conftest.er1 >conftest.err
  5110. rm -f conftest.er1
  5111. cat conftest.err >&5
  5112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5113. (exit $ac_status); } >/dev/null && {
  5114. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5115. test ! -s conftest.err
  5116. }; then
  5117. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  5118. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  5119. "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
  5120. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  5121. if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
  5122. tmp_exp=""
  5123. fi
  5124. else
  5125. echo "$as_me: failed program was:" >&5
  5126. sed 's/^/| /' conftest.$ac_ext >&5
  5127. fi
  5128. rm -f conftest.err conftest.$ac_ext
  5129. if test -z "$tmp_exp"; then
  5130. eval "$as_ac_HaveDef=no"
  5131. else
  5132. eval "$as_ac_HaveDef=yes"
  5133. eval "$as_ac_Def=\$tmp_exp"
  5134. fi
  5135. as_tmp_HaveFmtDef=`echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
  5136. as_tmp_FmtDef=`echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
  5137. if test `eval echo '${'$as_tmp_HaveFmtDef'}'` = "yes"; then
  5138. curl_format_curl_off_t=`eval echo '${'$as_tmp_FmtDef'}'`
  5139. curl_typeof_curl_off_t="$t8"
  5140. curl_sizeof_curl_off_t="8"
  5141. fi
  5142. fi
  5143. else
  5144. echo "$as_me: failed program was:" >&5
  5145. sed 's/^/| /' conftest.$ac_ext >&5
  5146. fi
  5147. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5148. fi
  5149. done
  5150. { echo "$as_me:$LINENO: result: $curl_typeof_curl_off_t" >&5
  5151. echo "${ECHO_T}$curl_typeof_curl_off_t" >&6; }
  5152. fi
  5153. if test "$curl_typeof_curl_off_t" = "unknown"; then
  5154. { echo "$as_me:$LINENO: checking for 32-bit curl_off_t data type" >&5
  5155. echo $ECHO_N "checking for 32-bit curl_off_t data type... $ECHO_C" >&6; }
  5156. for t4 in \
  5157. "$x_LP32_long" \
  5158. 'int32_t' \
  5159. '__int32' \
  5160. 'int' ; do
  5161. if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t4"; then
  5162. tmp_includes=""
  5163. tmp_source=""
  5164. tmp_fmt=""
  5165. case `echo "$t4" | $as_tr_sh` in
  5166. int64_t)
  5167. tmp_includes="$curl_includes_inttypes"
  5168. tmp_source="char f[] = PRId64;"
  5169. tmp_fmt="PRId64"
  5170. ;;
  5171. int32_t)
  5172. tmp_includes="$curl_includes_inttypes"
  5173. tmp_source="char f[] = PRId32;"
  5174. tmp_fmt="PRId32"
  5175. ;;
  5176. int16_t)
  5177. tmp_includes="$curl_includes_inttypes"
  5178. tmp_source="char f[] = PRId16;"
  5179. tmp_fmt="PRId16"
  5180. ;;
  5181. esac
  5182. cat >conftest.$ac_ext <<_ACEOF
  5183. /* confdefs.h. */
  5184. _ACEOF
  5185. cat confdefs.h >>conftest.$ac_ext
  5186. cat >>conftest.$ac_ext <<_ACEOF
  5187. /* end confdefs.h. */
  5188. $tmp_includes
  5189. typedef $t4 curl_off_t;
  5190. typedef char dummy_arr[sizeof(curl_off_t) == 4 ? 1 : -1];
  5191. int
  5192. main ()
  5193. {
  5194. $tmp_source
  5195. curl_off_t dummy;
  5196. ;
  5197. return 0;
  5198. }
  5199. _ACEOF
  5200. rm -f conftest.$ac_objext
  5201. if { (ac_try="$ac_compile"
  5202. case "(($ac_try" in
  5203. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5204. *) ac_try_echo=$ac_try;;
  5205. esac
  5206. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5207. (eval "$ac_compile") 2>conftest.er1
  5208. ac_status=$?
  5209. grep -v '^ *+' conftest.er1 >conftest.err
  5210. rm -f conftest.er1
  5211. cat conftest.err >&5
  5212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5213. (exit $ac_status); } && {
  5214. test -z "$ac_c_werror_flag" ||
  5215. test ! -s conftest.err
  5216. } && test -s conftest.$ac_objext; then
  5217. if test -z "$tmp_fmt"; then
  5218. curl_typeof_curl_off_t="$t4"
  5219. curl_sizeof_curl_off_t="4"
  5220. else
  5221. as_ac_HaveDef=`echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
  5222. as_ac_Def=`echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
  5223. if test -z "$SED"; then
  5224. { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
  5225. echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
  5226. { (exit 1); exit 1; }; }
  5227. fi
  5228. if test -z "$GREP"; then
  5229. { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
  5230. echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
  5231. { (exit 1); exit 1; }; }
  5232. fi
  5233. tmp_exp=""
  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. $curl_includes_inttypes
  5241. #ifdef $tmp_fmt
  5242. CURL_DEF_TOKEN $tmp_fmt
  5243. #endif
  5244. _ACEOF
  5245. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5246. case "(($ac_try" in
  5247. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5248. *) ac_try_echo=$ac_try;;
  5249. esac
  5250. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5251. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5252. ac_status=$?
  5253. grep -v '^ *+' conftest.er1 >conftest.err
  5254. rm -f conftest.er1
  5255. cat conftest.err >&5
  5256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5257. (exit $ac_status); } >/dev/null && {
  5258. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5259. test ! -s conftest.err
  5260. }; then
  5261. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  5262. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  5263. "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
  5264. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  5265. if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
  5266. tmp_exp=""
  5267. fi
  5268. else
  5269. echo "$as_me: failed program was:" >&5
  5270. sed 's/^/| /' conftest.$ac_ext >&5
  5271. fi
  5272. rm -f conftest.err conftest.$ac_ext
  5273. if test -z "$tmp_exp"; then
  5274. eval "$as_ac_HaveDef=no"
  5275. else
  5276. eval "$as_ac_HaveDef=yes"
  5277. eval "$as_ac_Def=\$tmp_exp"
  5278. fi
  5279. as_tmp_HaveFmtDef=`echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
  5280. as_tmp_FmtDef=`echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
  5281. if test `eval echo '${'$as_tmp_HaveFmtDef'}'` = "yes"; then
  5282. curl_format_curl_off_t=`eval echo '${'$as_tmp_FmtDef'}'`
  5283. curl_typeof_curl_off_t="$t4"
  5284. curl_sizeof_curl_off_t="4"
  5285. fi
  5286. fi
  5287. else
  5288. echo "$as_me: failed program was:" >&5
  5289. sed 's/^/| /' conftest.$ac_ext >&5
  5290. fi
  5291. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5292. fi
  5293. done
  5294. { echo "$as_me:$LINENO: result: $curl_typeof_curl_off_t" >&5
  5295. echo "${ECHO_T}$curl_typeof_curl_off_t" >&6; }
  5296. fi
  5297. if test "$curl_typeof_curl_off_t" = "unknown"; then
  5298. { echo "$as_me:$LINENO: checking for 16-bit curl_off_t data type" >&5
  5299. echo $ECHO_N "checking for 16-bit curl_off_t data type... $ECHO_C" >&6; }
  5300. for t2 in \
  5301. "$x_LP16_long" \
  5302. 'int16_t' \
  5303. '__int16' \
  5304. 'int' ; do
  5305. if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t2"; then
  5306. tmp_includes=""
  5307. tmp_source=""
  5308. tmp_fmt=""
  5309. case `echo "$t2" | $as_tr_sh` in
  5310. int64_t)
  5311. tmp_includes="$curl_includes_inttypes"
  5312. tmp_source="char f[] = PRId64;"
  5313. tmp_fmt="PRId64"
  5314. ;;
  5315. int32_t)
  5316. tmp_includes="$curl_includes_inttypes"
  5317. tmp_source="char f[] = PRId32;"
  5318. tmp_fmt="PRId32"
  5319. ;;
  5320. int16_t)
  5321. tmp_includes="$curl_includes_inttypes"
  5322. tmp_source="char f[] = PRId16;"
  5323. tmp_fmt="PRId16"
  5324. ;;
  5325. esac
  5326. cat >conftest.$ac_ext <<_ACEOF
  5327. /* confdefs.h. */
  5328. _ACEOF
  5329. cat confdefs.h >>conftest.$ac_ext
  5330. cat >>conftest.$ac_ext <<_ACEOF
  5331. /* end confdefs.h. */
  5332. $tmp_includes
  5333. typedef $t2 curl_off_t;
  5334. typedef char dummy_arr[sizeof(curl_off_t) == 2 ? 1 : -1];
  5335. int
  5336. main ()
  5337. {
  5338. $tmp_source
  5339. curl_off_t dummy;
  5340. ;
  5341. return 0;
  5342. }
  5343. _ACEOF
  5344. rm -f conftest.$ac_objext
  5345. if { (ac_try="$ac_compile"
  5346. case "(($ac_try" in
  5347. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5348. *) ac_try_echo=$ac_try;;
  5349. esac
  5350. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5351. (eval "$ac_compile") 2>conftest.er1
  5352. ac_status=$?
  5353. grep -v '^ *+' conftest.er1 >conftest.err
  5354. rm -f conftest.er1
  5355. cat conftest.err >&5
  5356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5357. (exit $ac_status); } && {
  5358. test -z "$ac_c_werror_flag" ||
  5359. test ! -s conftest.err
  5360. } && test -s conftest.$ac_objext; then
  5361. if test -z "$tmp_fmt"; then
  5362. curl_typeof_curl_off_t="$t2"
  5363. curl_sizeof_curl_off_t="2"
  5364. else
  5365. as_ac_HaveDef=`echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
  5366. as_ac_Def=`echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
  5367. if test -z "$SED"; then
  5368. { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
  5369. echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
  5370. { (exit 1); exit 1; }; }
  5371. fi
  5372. if test -z "$GREP"; then
  5373. { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
  5374. echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
  5375. { (exit 1); exit 1; }; }
  5376. fi
  5377. tmp_exp=""
  5378. cat >conftest.$ac_ext <<_ACEOF
  5379. /* confdefs.h. */
  5380. _ACEOF
  5381. cat confdefs.h >>conftest.$ac_ext
  5382. cat >>conftest.$ac_ext <<_ACEOF
  5383. /* end confdefs.h. */
  5384. $curl_includes_inttypes
  5385. #ifdef $tmp_fmt
  5386. CURL_DEF_TOKEN $tmp_fmt
  5387. #endif
  5388. _ACEOF
  5389. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5390. case "(($ac_try" in
  5391. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5392. *) ac_try_echo=$ac_try;;
  5393. esac
  5394. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5395. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5396. ac_status=$?
  5397. grep -v '^ *+' conftest.er1 >conftest.err
  5398. rm -f conftest.er1
  5399. cat conftest.err >&5
  5400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5401. (exit $ac_status); } >/dev/null && {
  5402. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5403. test ! -s conftest.err
  5404. }; then
  5405. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  5406. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  5407. "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
  5408. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  5409. if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
  5410. tmp_exp=""
  5411. fi
  5412. else
  5413. echo "$as_me: failed program was:" >&5
  5414. sed 's/^/| /' conftest.$ac_ext >&5
  5415. fi
  5416. rm -f conftest.err conftest.$ac_ext
  5417. if test -z "$tmp_exp"; then
  5418. eval "$as_ac_HaveDef=no"
  5419. else
  5420. eval "$as_ac_HaveDef=yes"
  5421. eval "$as_ac_Def=\$tmp_exp"
  5422. fi
  5423. as_tmp_HaveFmtDef=`echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
  5424. as_tmp_FmtDef=`echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
  5425. if test `eval echo '${'$as_tmp_HaveFmtDef'}'` = "yes"; then
  5426. curl_format_curl_off_t=`eval echo '${'$as_tmp_FmtDef'}'`
  5427. curl_typeof_curl_off_t="$t2"
  5428. curl_sizeof_curl_off_t="2"
  5429. fi
  5430. fi
  5431. else
  5432. echo "$as_me: failed program was:" >&5
  5433. sed 's/^/| /' conftest.$ac_ext >&5
  5434. fi
  5435. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5436. fi
  5437. done
  5438. { echo "$as_me:$LINENO: result: $curl_typeof_curl_off_t" >&5
  5439. echo "${ECHO_T}$curl_typeof_curl_off_t" >&6; }
  5440. fi
  5441. if test "$curl_typeof_curl_off_t" = "unknown"; then
  5442. { { echo "$as_me:$LINENO: error: cannot find data type for curl_off_t." >&5
  5443. echo "$as_me: error: cannot find data type for curl_off_t." >&2;}
  5444. { (exit 1); exit 1; }; }
  5445. fi
  5446. #
  5447. { echo "$as_me:$LINENO: checking size of curl_off_t" >&5
  5448. echo $ECHO_N "checking size of curl_off_t... $ECHO_C" >&6; }
  5449. { echo "$as_me:$LINENO: result: $curl_sizeof_curl_off_t" >&5
  5450. echo "${ECHO_T}$curl_sizeof_curl_off_t" >&6; }
  5451. #
  5452. { echo "$as_me:$LINENO: checking formatting string directive for curl_off_t" >&5
  5453. echo $ECHO_N "checking formatting string directive for curl_off_t... $ECHO_C" >&6; }
  5454. if test "$curl_format_curl_off_t" != "unknown"; then
  5455. x_pull_headers="yes"
  5456. curl_format_curl_off_t=`echo "$curl_format_curl_off_t" | "$SED" 's/["]//g'`
  5457. curl_format_curl_off_tu=`echo "$curl_format_curl_off_t" | "$SED" 's/i$/u/'`
  5458. curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/d$/u/'`
  5459. curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/D$/U/'`
  5460. else
  5461. x_pull_headers="no"
  5462. case `echo "$curl_typeof_curl_off_t" | $as_tr_sh` in
  5463. long_long | __longlong | __longlong_t)
  5464. curl_format_curl_off_t="lld"
  5465. curl_format_curl_off_tu="llu"
  5466. ;;
  5467. long)
  5468. curl_format_curl_off_t="ld"
  5469. curl_format_curl_off_tu="lu"
  5470. ;;
  5471. int)
  5472. curl_format_curl_off_t="d"
  5473. curl_format_curl_off_tu="u"
  5474. ;;
  5475. __int64)
  5476. curl_format_curl_off_t="I64d"
  5477. curl_format_curl_off_tu="I64u"
  5478. ;;
  5479. __int32)
  5480. curl_format_curl_off_t="I32d"
  5481. curl_format_curl_off_tu="I32u"
  5482. ;;
  5483. __int16)
  5484. curl_format_curl_off_t="I16d"
  5485. curl_format_curl_off_tu="I16u"
  5486. ;;
  5487. *)
  5488. { { echo "$as_me:$LINENO: error: cannot find print format string for curl_off_t." >&5
  5489. echo "$as_me: error: cannot find print format string for curl_off_t." >&2;}
  5490. { (exit 1); exit 1; }; }
  5491. ;;
  5492. esac
  5493. fi
  5494. { echo "$as_me:$LINENO: result: \"$curl_format_curl_off_t\"" >&5
  5495. echo "${ECHO_T}\"$curl_format_curl_off_t\"" >&6; }
  5496. #
  5497. { echo "$as_me:$LINENO: checking formatting string directive for unsigned curl_off_t" >&5
  5498. echo $ECHO_N "checking formatting string directive for unsigned curl_off_t... $ECHO_C" >&6; }
  5499. { echo "$as_me:$LINENO: result: \"$curl_format_curl_off_tu\"" >&5
  5500. echo "${ECHO_T}\"$curl_format_curl_off_tu\"" >&6; }
  5501. #
  5502. { echo "$as_me:$LINENO: checking constant suffix string for curl_off_t" >&5
  5503. echo $ECHO_N "checking constant suffix string for curl_off_t... $ECHO_C" >&6; }
  5504. #
  5505. curl_suffix_curl_off_t="unknown"
  5506. curl_suffix_curl_off_tu="unknown"
  5507. #
  5508. case `echo "$curl_typeof_curl_off_t" | $as_tr_sh` in
  5509. long_long | __longlong | __longlong_t)
  5510. tst_suffixes="LL::"
  5511. ;;
  5512. long)
  5513. tst_suffixes="L::"
  5514. ;;
  5515. int)
  5516. tst_suffixes="::"
  5517. ;;
  5518. __int64 | int64_t)
  5519. tst_suffixes="LL:i64::"
  5520. ;;
  5521. __int32 | int32_t)
  5522. tst_suffixes="L:i32::"
  5523. ;;
  5524. __int16 | int16_t)
  5525. tst_suffixes="L:i16::"
  5526. ;;
  5527. *)
  5528. { { echo "$as_me:$LINENO: error: unexpected data type $curl_typeof_curl_off_t" >&5
  5529. echo "$as_me: error: unexpected data type $curl_typeof_curl_off_t" >&2;}
  5530. { (exit 1); exit 1; }; }
  5531. ;;
  5532. esac
  5533. #
  5534. old_IFS=$IFS; IFS=':'
  5535. for tmp_ssuf in $tst_suffixes ; do
  5536. IFS=$old_IFS
  5537. if test "x$curl_suffix_curl_off_t" = "xunknown"; then
  5538. case $tmp_ssuf in
  5539. i64 | i32 | i16)
  5540. tmp_usuf="u$tmp_ssuf"
  5541. ;;
  5542. LL | L)
  5543. tmp_usuf="U$tmp_ssuf"
  5544. ;;
  5545. *)
  5546. tmp_usuf=""
  5547. ;;
  5548. esac
  5549. cat >conftest.$ac_ext <<_ACEOF
  5550. /* confdefs.h. */
  5551. _ACEOF
  5552. cat confdefs.h >>conftest.$ac_ext
  5553. cat >>conftest.$ac_ext <<_ACEOF
  5554. /* end confdefs.h. */
  5555. $curl_includes_inttypes
  5556. typedef $curl_typeof_curl_off_t new_t;
  5557. int
  5558. main ()
  5559. {
  5560. new_t s1;
  5561. new_t s2;
  5562. s1 = -10$tmp_ssuf ;
  5563. s2 = 20$tmp_ssuf ;
  5564. if(s1 > s2)
  5565. return 1;
  5566. ;
  5567. return 0;
  5568. }
  5569. _ACEOF
  5570. rm -f conftest.$ac_objext
  5571. if { (ac_try="$ac_compile"
  5572. case "(($ac_try" in
  5573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5574. *) ac_try_echo=$ac_try;;
  5575. esac
  5576. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5577. (eval "$ac_compile") 2>conftest.er1
  5578. ac_status=$?
  5579. grep -v '^ *+' conftest.er1 >conftest.err
  5580. rm -f conftest.er1
  5581. cat conftest.err >&5
  5582. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5583. (exit $ac_status); } && {
  5584. test -z "$ac_c_werror_flag" ||
  5585. test ! -s conftest.err
  5586. } && test -s conftest.$ac_objext; then
  5587. curl_suffix_curl_off_t="$tmp_ssuf"
  5588. curl_suffix_curl_off_tu="$tmp_usuf"
  5589. else
  5590. echo "$as_me: failed program was:" >&5
  5591. sed 's/^/| /' conftest.$ac_ext >&5
  5592. fi
  5593. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5594. fi
  5595. done
  5596. IFS=$old_IFS
  5597. #
  5598. if test "x$curl_suffix_curl_off_t" = "xunknown"; then
  5599. { { echo "$as_me:$LINENO: error: cannot find constant suffix string for curl_off_t." >&5
  5600. echo "$as_me: error: cannot find constant suffix string for curl_off_t." >&2;}
  5601. { (exit 1); exit 1; }; }
  5602. else
  5603. { echo "$as_me:$LINENO: result: $curl_suffix_curl_off_t" >&5
  5604. echo "${ECHO_T}$curl_suffix_curl_off_t" >&6; }
  5605. { echo "$as_me:$LINENO: checking constant suffix string for unsigned curl_off_t" >&5
  5606. echo $ECHO_N "checking constant suffix string for unsigned curl_off_t... $ECHO_C" >&6; }
  5607. { echo "$as_me:$LINENO: result: $curl_suffix_curl_off_tu" >&5
  5608. echo "${ECHO_T}$curl_suffix_curl_off_tu" >&6; }
  5609. fi
  5610. #
  5611. #
  5612. if test "$x_pull_headers" = "yes"; then
  5613. if test "x$ac_cv_header_sys_types_h" = "xyes"; then
  5614. cat >>confdefs.h <<_EOF
  5615. #define CURL_PULL_SYS_TYPES_H 1
  5616. _EOF
  5617. fi
  5618. if test "x$ac_cv_header_stdint_h" = "xyes"; then
  5619. cat >>confdefs.h <<_EOF
  5620. #define CURL_PULL_STDINT_H 1
  5621. _EOF
  5622. fi
  5623. if test "x$ac_cv_header_inttypes_h" = "xyes"; then
  5624. cat >>confdefs.h <<_EOF
  5625. #define CURL_PULL_INTTYPES_H 1
  5626. _EOF
  5627. fi
  5628. fi
  5629. #
  5630. cat >>confdefs.h <<_EOF
  5631. #define CURL_TYPEOF_CURL_OFF_T $curl_typeof_curl_off_t
  5632. _EOF
  5633. cat >>confdefs.h <<_EOF
  5634. #define CURL_FORMAT_CURL_OFF_T "$curl_format_curl_off_t"
  5635. _EOF
  5636. cat >>confdefs.h <<_EOF
  5637. #define CURL_FORMAT_CURL_OFF_TU "$curl_format_curl_off_tu"
  5638. _EOF
  5639. cat >>confdefs.h <<_EOF
  5640. #define CURL_FORMAT_OFF_T "%$curl_format_curl_off_t"
  5641. _EOF
  5642. cat >>confdefs.h <<_EOF
  5643. #define CURL_SIZEOF_CURL_OFF_T $curl_sizeof_curl_off_t
  5644. _EOF
  5645. cat >>confdefs.h <<_EOF
  5646. #define CURL_SUFFIX_CURL_OFF_T $curl_suffix_curl_off_t
  5647. _EOF
  5648. cat >>confdefs.h <<_EOF
  5649. #define CURL_SUFFIX_CURL_OFF_TU $curl_suffix_curl_off_tu
  5650. _EOF
  5651. #
  5652. { echo "$as_me:$LINENO: checking if OS is AIX (to define _ALL_SOURCE)" >&5
  5653. echo $ECHO_N "checking if OS is AIX (to define _ALL_SOURCE)... $ECHO_C" >&6; }
  5654. cat >conftest.$ac_ext <<_ACEOF
  5655. /* confdefs.h. */
  5656. _ACEOF
  5657. cat confdefs.h >>conftest.$ac_ext
  5658. cat >>conftest.$ac_ext <<_ACEOF
  5659. /* end confdefs.h. */
  5660. #ifdef _AIX
  5661. yes_this_is_aix
  5662. #endif
  5663. _ACEOF
  5664. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5665. $EGREP "yes_this_is_aix" >/dev/null 2>&1; then
  5666. { echo "$as_me:$LINENO: result: yes" >&5
  5667. echo "${ECHO_T}yes" >&6; }
  5668. cat >>confdefs.h <<\_ACEOF
  5669. #define _ALL_SOURCE 1
  5670. _ACEOF
  5671. else
  5672. { echo "$as_me:$LINENO: result: no" >&5
  5673. echo "${ECHO_T}no" >&6; }
  5674. fi
  5675. rm -f conftest*
  5676. #
  5677. { echo "$as_me:$LINENO: checking if _REENTRANT is already defined" >&5
  5678. echo $ECHO_N "checking if _REENTRANT is already defined... $ECHO_C" >&6; }
  5679. cat >conftest.$ac_ext <<_ACEOF
  5680. /* confdefs.h. */
  5681. _ACEOF
  5682. cat confdefs.h >>conftest.$ac_ext
  5683. cat >>conftest.$ac_ext <<_ACEOF
  5684. /* end confdefs.h. */
  5685. int
  5686. main ()
  5687. {
  5688. #ifdef _REENTRANT
  5689. int dummy=1;
  5690. #else
  5691. force compilation error
  5692. #endif
  5693. ;
  5694. return 0;
  5695. }
  5696. _ACEOF
  5697. rm -f conftest.$ac_objext
  5698. if { (ac_try="$ac_compile"
  5699. case "(($ac_try" in
  5700. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5701. *) ac_try_echo=$ac_try;;
  5702. esac
  5703. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5704. (eval "$ac_compile") 2>conftest.er1
  5705. ac_status=$?
  5706. grep -v '^ *+' conftest.er1 >conftest.err
  5707. rm -f conftest.er1
  5708. cat conftest.err >&5
  5709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5710. (exit $ac_status); } && {
  5711. test -z "$ac_c_werror_flag" ||
  5712. test ! -s conftest.err
  5713. } && test -s conftest.$ac_objext; then
  5714. { echo "$as_me:$LINENO: result: yes" >&5
  5715. echo "${ECHO_T}yes" >&6; }
  5716. tmp_reentrant_initially_defined="yes"
  5717. else
  5718. echo "$as_me: failed program was:" >&5
  5719. sed 's/^/| /' conftest.$ac_ext >&5
  5720. { echo "$as_me:$LINENO: result: no" >&5
  5721. echo "${ECHO_T}no" >&6; }
  5722. tmp_reentrant_initially_defined="no"
  5723. fi
  5724. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5725. #
  5726. if test "$tmp_reentrant_initially_defined" = "no"; then
  5727. { echo "$as_me:$LINENO: checking if _REENTRANT is actually needed" >&5
  5728. echo $ECHO_N "checking if _REENTRANT is actually needed... $ECHO_C" >&6; }
  5729. #
  5730. tmp_need_reentrant="no"
  5731. #
  5732. if test "$tmp_need_reentrant" = "no"; then
  5733. cat >conftest.$ac_ext <<_ACEOF
  5734. /* confdefs.h. */
  5735. _ACEOF
  5736. cat confdefs.h >>conftest.$ac_ext
  5737. cat >>conftest.$ac_ext <<_ACEOF
  5738. /* end confdefs.h. */
  5739. /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
  5740. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5741. #define gmtime_r innocuous_gmtime_r
  5742. /* System header to define __stub macros and hopefully few prototypes,
  5743. which can conflict with char gmtime_r (); below.
  5744. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5745. <limits.h> exists even on freestanding compilers. */
  5746. #ifdef __STDC__
  5747. # include <limits.h>
  5748. #else
  5749. # include <assert.h>
  5750. #endif
  5751. #undef gmtime_r
  5752. /* Override any GCC internal prototype to avoid an error.
  5753. Use char because int might match the return type of a GCC
  5754. builtin and then its argument prototype would still apply. */
  5755. #ifdef __cplusplus
  5756. extern "C"
  5757. #endif
  5758. char gmtime_r ();
  5759. /* The GNU C library defines this for functions which it implements
  5760. to always fail with ENOSYS. Some functions are actually named
  5761. something starting with __ and the normal name is an alias. */
  5762. #if defined __stub_gmtime_r || defined __stub___gmtime_r
  5763. choke me
  5764. #endif
  5765. int
  5766. main ()
  5767. {
  5768. return gmtime_r ();
  5769. ;
  5770. return 0;
  5771. }
  5772. _ACEOF
  5773. rm -f conftest.$ac_objext conftest$ac_exeext
  5774. if { (ac_try="$ac_link"
  5775. case "(($ac_try" in
  5776. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5777. *) ac_try_echo=$ac_try;;
  5778. esac
  5779. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5780. (eval "$ac_link") 2>conftest.er1
  5781. ac_status=$?
  5782. grep -v '^ *+' conftest.er1 >conftest.err
  5783. rm -f conftest.er1
  5784. cat conftest.err >&5
  5785. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5786. (exit $ac_status); } && {
  5787. test -z "$ac_c_werror_flag" ||
  5788. test ! -s conftest.err
  5789. } && test -s conftest$ac_exeext &&
  5790. $as_test_x conftest$ac_exeext; then
  5791. tmp_gmtime_r="yes"
  5792. else
  5793. echo "$as_me: failed program was:" >&5
  5794. sed 's/^/| /' conftest.$ac_ext >&5
  5795. tmp_gmtime_r="no"
  5796. fi
  5797. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5798. conftest$ac_exeext conftest.$ac_ext
  5799. if test "$tmp_gmtime_r" = "yes"; then
  5800. cat >conftest.$ac_ext <<_ACEOF
  5801. /* confdefs.h. */
  5802. _ACEOF
  5803. cat confdefs.h >>conftest.$ac_ext
  5804. cat >>conftest.$ac_ext <<_ACEOF
  5805. /* end confdefs.h. */
  5806. #include <sys/types.h>
  5807. #include <time.h>
  5808. _ACEOF
  5809. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5810. $EGREP "gmtime_r" >/dev/null 2>&1; then
  5811. tmp_gmtime_r="proto_declared"
  5812. else
  5813. cat >conftest.$ac_ext <<_ACEOF
  5814. /* confdefs.h. */
  5815. _ACEOF
  5816. cat confdefs.h >>conftest.$ac_ext
  5817. cat >>conftest.$ac_ext <<_ACEOF
  5818. /* end confdefs.h. */
  5819. #define _REENTRANT
  5820. #include <sys/types.h>
  5821. #include <time.h>
  5822. _ACEOF
  5823. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5824. $EGREP "gmtime_r" >/dev/null 2>&1; then
  5825. tmp_gmtime_r="proto_needs_reentrant"
  5826. tmp_need_reentrant="yes"
  5827. fi
  5828. rm -f conftest*
  5829. fi
  5830. rm -f conftest*
  5831. fi
  5832. fi
  5833. if test "$tmp_need_reentrant" = "no"; then
  5834. cat >conftest.$ac_ext <<_ACEOF
  5835. /* confdefs.h. */
  5836. _ACEOF
  5837. cat confdefs.h >>conftest.$ac_ext
  5838. cat >>conftest.$ac_ext <<_ACEOF
  5839. /* end confdefs.h. */
  5840. /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
  5841. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5842. #define localtime_r innocuous_localtime_r
  5843. /* System header to define __stub macros and hopefully few prototypes,
  5844. which can conflict with char localtime_r (); below.
  5845. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5846. <limits.h> exists even on freestanding compilers. */
  5847. #ifdef __STDC__
  5848. # include <limits.h>
  5849. #else
  5850. # include <assert.h>
  5851. #endif
  5852. #undef localtime_r
  5853. /* Override any GCC internal prototype to avoid an error.
  5854. Use char because int might match the return type of a GCC
  5855. builtin and then its argument prototype would still apply. */
  5856. #ifdef __cplusplus
  5857. extern "C"
  5858. #endif
  5859. char localtime_r ();
  5860. /* The GNU C library defines this for functions which it implements
  5861. to always fail with ENOSYS. Some functions are actually named
  5862. something starting with __ and the normal name is an alias. */
  5863. #if defined __stub_localtime_r || defined __stub___localtime_r
  5864. choke me
  5865. #endif
  5866. int
  5867. main ()
  5868. {
  5869. return localtime_r ();
  5870. ;
  5871. return 0;
  5872. }
  5873. _ACEOF
  5874. rm -f conftest.$ac_objext conftest$ac_exeext
  5875. if { (ac_try="$ac_link"
  5876. case "(($ac_try" in
  5877. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5878. *) ac_try_echo=$ac_try;;
  5879. esac
  5880. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5881. (eval "$ac_link") 2>conftest.er1
  5882. ac_status=$?
  5883. grep -v '^ *+' conftest.er1 >conftest.err
  5884. rm -f conftest.er1
  5885. cat conftest.err >&5
  5886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5887. (exit $ac_status); } && {
  5888. test -z "$ac_c_werror_flag" ||
  5889. test ! -s conftest.err
  5890. } && test -s conftest$ac_exeext &&
  5891. $as_test_x conftest$ac_exeext; then
  5892. tmp_localtime_r="yes"
  5893. else
  5894. echo "$as_me: failed program was:" >&5
  5895. sed 's/^/| /' conftest.$ac_ext >&5
  5896. tmp_localtime_r="no"
  5897. fi
  5898. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5899. conftest$ac_exeext conftest.$ac_ext
  5900. if test "$tmp_localtime_r" = "yes"; then
  5901. cat >conftest.$ac_ext <<_ACEOF
  5902. /* confdefs.h. */
  5903. _ACEOF
  5904. cat confdefs.h >>conftest.$ac_ext
  5905. cat >>conftest.$ac_ext <<_ACEOF
  5906. /* end confdefs.h. */
  5907. #include <sys/types.h>
  5908. #include <time.h>
  5909. _ACEOF
  5910. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5911. $EGREP "localtime_r" >/dev/null 2>&1; then
  5912. tmp_localtime_r="proto_declared"
  5913. else
  5914. cat >conftest.$ac_ext <<_ACEOF
  5915. /* confdefs.h. */
  5916. _ACEOF
  5917. cat confdefs.h >>conftest.$ac_ext
  5918. cat >>conftest.$ac_ext <<_ACEOF
  5919. /* end confdefs.h. */
  5920. #define _REENTRANT
  5921. #include <sys/types.h>
  5922. #include <time.h>
  5923. _ACEOF
  5924. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5925. $EGREP "localtime_r" >/dev/null 2>&1; then
  5926. tmp_localtime_r="proto_needs_reentrant"
  5927. tmp_need_reentrant="yes"
  5928. fi
  5929. rm -f conftest*
  5930. fi
  5931. rm -f conftest*
  5932. fi
  5933. fi
  5934. if test "$tmp_need_reentrant" = "no"; then
  5935. cat >conftest.$ac_ext <<_ACEOF
  5936. /* confdefs.h. */
  5937. _ACEOF
  5938. cat confdefs.h >>conftest.$ac_ext
  5939. cat >>conftest.$ac_ext <<_ACEOF
  5940. /* end confdefs.h. */
  5941. /* Define strerror_r to an innocuous variant, in case <limits.h> declares strerror_r.
  5942. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5943. #define strerror_r innocuous_strerror_r
  5944. /* System header to define __stub macros and hopefully few prototypes,
  5945. which can conflict with char strerror_r (); below.
  5946. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5947. <limits.h> exists even on freestanding compilers. */
  5948. #ifdef __STDC__
  5949. # include <limits.h>
  5950. #else
  5951. # include <assert.h>
  5952. #endif
  5953. #undef strerror_r
  5954. /* Override any GCC internal prototype to avoid an error.
  5955. Use char because int might match the return type of a GCC
  5956. builtin and then its argument prototype would still apply. */
  5957. #ifdef __cplusplus
  5958. extern "C"
  5959. #endif
  5960. char strerror_r ();
  5961. /* The GNU C library defines this for functions which it implements
  5962. to always fail with ENOSYS. Some functions are actually named
  5963. something starting with __ and the normal name is an alias. */
  5964. #if defined __stub_strerror_r || defined __stub___strerror_r
  5965. choke me
  5966. #endif
  5967. int
  5968. main ()
  5969. {
  5970. return strerror_r ();
  5971. ;
  5972. return 0;
  5973. }
  5974. _ACEOF
  5975. rm -f conftest.$ac_objext conftest$ac_exeext
  5976. if { (ac_try="$ac_link"
  5977. case "(($ac_try" in
  5978. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5979. *) ac_try_echo=$ac_try;;
  5980. esac
  5981. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5982. (eval "$ac_link") 2>conftest.er1
  5983. ac_status=$?
  5984. grep -v '^ *+' conftest.er1 >conftest.err
  5985. rm -f conftest.er1
  5986. cat conftest.err >&5
  5987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5988. (exit $ac_status); } && {
  5989. test -z "$ac_c_werror_flag" ||
  5990. test ! -s conftest.err
  5991. } && test -s conftest$ac_exeext &&
  5992. $as_test_x conftest$ac_exeext; then
  5993. tmp_strerror_r="yes"
  5994. else
  5995. echo "$as_me: failed program was:" >&5
  5996. sed 's/^/| /' conftest.$ac_ext >&5
  5997. tmp_strerror_r="no"
  5998. fi
  5999. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6000. conftest$ac_exeext conftest.$ac_ext
  6001. if test "$tmp_strerror_r" = "yes"; then
  6002. cat >conftest.$ac_ext <<_ACEOF
  6003. /* confdefs.h. */
  6004. _ACEOF
  6005. cat confdefs.h >>conftest.$ac_ext
  6006. cat >>conftest.$ac_ext <<_ACEOF
  6007. /* end confdefs.h. */
  6008. #include <sys/types.h>
  6009. #include <string.h>
  6010. _ACEOF
  6011. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6012. $EGREP "strerror_r" >/dev/null 2>&1; then
  6013. tmp_strerror_r="proto_declared"
  6014. else
  6015. cat >conftest.$ac_ext <<_ACEOF
  6016. /* confdefs.h. */
  6017. _ACEOF
  6018. cat confdefs.h >>conftest.$ac_ext
  6019. cat >>conftest.$ac_ext <<_ACEOF
  6020. /* end confdefs.h. */
  6021. #define _REENTRANT
  6022. #include <sys/types.h>
  6023. #include <string.h>
  6024. _ACEOF
  6025. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6026. $EGREP "strerror_r" >/dev/null 2>&1; then
  6027. tmp_strerror_r="proto_needs_reentrant"
  6028. tmp_need_reentrant="yes"
  6029. fi
  6030. rm -f conftest*
  6031. fi
  6032. rm -f conftest*
  6033. fi
  6034. fi
  6035. if test "$tmp_need_reentrant" = "no"; then
  6036. cat >conftest.$ac_ext <<_ACEOF
  6037. /* confdefs.h. */
  6038. _ACEOF
  6039. cat confdefs.h >>conftest.$ac_ext
  6040. cat >>conftest.$ac_ext <<_ACEOF
  6041. /* end confdefs.h. */
  6042. /* Define strtok_r to an innocuous variant, in case <limits.h> declares strtok_r.
  6043. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6044. #define strtok_r innocuous_strtok_r
  6045. /* System header to define __stub macros and hopefully few prototypes,
  6046. which can conflict with char strtok_r (); below.
  6047. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6048. <limits.h> exists even on freestanding compilers. */
  6049. #ifdef __STDC__
  6050. # include <limits.h>
  6051. #else
  6052. # include <assert.h>
  6053. #endif
  6054. #undef strtok_r
  6055. /* Override any GCC internal prototype to avoid an error.
  6056. Use char because int might match the return type of a GCC
  6057. builtin and then its argument prototype would still apply. */
  6058. #ifdef __cplusplus
  6059. extern "C"
  6060. #endif
  6061. char strtok_r ();
  6062. /* The GNU C library defines this for functions which it implements
  6063. to always fail with ENOSYS. Some functions are actually named
  6064. something starting with __ and the normal name is an alias. */
  6065. #if defined __stub_strtok_r || defined __stub___strtok_r
  6066. choke me
  6067. #endif
  6068. int
  6069. main ()
  6070. {
  6071. return strtok_r ();
  6072. ;
  6073. return 0;
  6074. }
  6075. _ACEOF
  6076. rm -f conftest.$ac_objext conftest$ac_exeext
  6077. if { (ac_try="$ac_link"
  6078. case "(($ac_try" in
  6079. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6080. *) ac_try_echo=$ac_try;;
  6081. esac
  6082. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6083. (eval "$ac_link") 2>conftest.er1
  6084. ac_status=$?
  6085. grep -v '^ *+' conftest.er1 >conftest.err
  6086. rm -f conftest.er1
  6087. cat conftest.err >&5
  6088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6089. (exit $ac_status); } && {
  6090. test -z "$ac_c_werror_flag" ||
  6091. test ! -s conftest.err
  6092. } && test -s conftest$ac_exeext &&
  6093. $as_test_x conftest$ac_exeext; then
  6094. tmp_strtok_r="yes"
  6095. else
  6096. echo "$as_me: failed program was:" >&5
  6097. sed 's/^/| /' conftest.$ac_ext >&5
  6098. tmp_strtok_r="no"
  6099. fi
  6100. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6101. conftest$ac_exeext conftest.$ac_ext
  6102. if test "$tmp_strtok_r" = "yes"; then
  6103. cat >conftest.$ac_ext <<_ACEOF
  6104. /* confdefs.h. */
  6105. _ACEOF
  6106. cat confdefs.h >>conftest.$ac_ext
  6107. cat >>conftest.$ac_ext <<_ACEOF
  6108. /* end confdefs.h. */
  6109. #include <sys/types.h>
  6110. #include <string.h>
  6111. _ACEOF
  6112. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6113. $EGREP "strtok_r" >/dev/null 2>&1; then
  6114. tmp_strtok_r="proto_declared"
  6115. else
  6116. cat >conftest.$ac_ext <<_ACEOF
  6117. /* confdefs.h. */
  6118. _ACEOF
  6119. cat confdefs.h >>conftest.$ac_ext
  6120. cat >>conftest.$ac_ext <<_ACEOF
  6121. /* end confdefs.h. */
  6122. #define _REENTRANT
  6123. #include <sys/types.h>
  6124. #include <string.h>
  6125. _ACEOF
  6126. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6127. $EGREP "strtok_r" >/dev/null 2>&1; then
  6128. tmp_strtok_r="proto_needs_reentrant"
  6129. tmp_need_reentrant="yes"
  6130. fi
  6131. rm -f conftest*
  6132. fi
  6133. rm -f conftest*
  6134. fi
  6135. fi
  6136. if test "$tmp_need_reentrant" = "no"; then
  6137. cat >conftest.$ac_ext <<_ACEOF
  6138. /* confdefs.h. */
  6139. _ACEOF
  6140. cat confdefs.h >>conftest.$ac_ext
  6141. cat >>conftest.$ac_ext <<_ACEOF
  6142. /* end confdefs.h. */
  6143. /* Define inet_ntoa_r to an innocuous variant, in case <limits.h> declares inet_ntoa_r.
  6144. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6145. #define inet_ntoa_r innocuous_inet_ntoa_r
  6146. /* System header to define __stub macros and hopefully few prototypes,
  6147. which can conflict with char inet_ntoa_r (); below.
  6148. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6149. <limits.h> exists even on freestanding compilers. */
  6150. #ifdef __STDC__
  6151. # include <limits.h>
  6152. #else
  6153. # include <assert.h>
  6154. #endif
  6155. #undef inet_ntoa_r
  6156. /* Override any GCC internal prototype to avoid an error.
  6157. Use char because int might match the return type of a GCC
  6158. builtin and then its argument prototype would still apply. */
  6159. #ifdef __cplusplus
  6160. extern "C"
  6161. #endif
  6162. char inet_ntoa_r ();
  6163. /* The GNU C library defines this for functions which it implements
  6164. to always fail with ENOSYS. Some functions are actually named
  6165. something starting with __ and the normal name is an alias. */
  6166. #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
  6167. choke me
  6168. #endif
  6169. int
  6170. main ()
  6171. {
  6172. return inet_ntoa_r ();
  6173. ;
  6174. return 0;
  6175. }
  6176. _ACEOF
  6177. rm -f conftest.$ac_objext conftest$ac_exeext
  6178. if { (ac_try="$ac_link"
  6179. case "(($ac_try" in
  6180. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6181. *) ac_try_echo=$ac_try;;
  6182. esac
  6183. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6184. (eval "$ac_link") 2>conftest.er1
  6185. ac_status=$?
  6186. grep -v '^ *+' conftest.er1 >conftest.err
  6187. rm -f conftest.er1
  6188. cat conftest.err >&5
  6189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6190. (exit $ac_status); } && {
  6191. test -z "$ac_c_werror_flag" ||
  6192. test ! -s conftest.err
  6193. } && test -s conftest$ac_exeext &&
  6194. $as_test_x conftest$ac_exeext; then
  6195. tmp_inet_ntoa_r="yes"
  6196. else
  6197. echo "$as_me: failed program was:" >&5
  6198. sed 's/^/| /' conftest.$ac_ext >&5
  6199. tmp_inet_ntoa_r="no"
  6200. fi
  6201. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6202. conftest$ac_exeext conftest.$ac_ext
  6203. if test "$tmp_inet_ntoa_r" = "yes"; then
  6204. cat >conftest.$ac_ext <<_ACEOF
  6205. /* confdefs.h. */
  6206. _ACEOF
  6207. cat confdefs.h >>conftest.$ac_ext
  6208. cat >>conftest.$ac_ext <<_ACEOF
  6209. /* end confdefs.h. */
  6210. #include <sys/types.h>
  6211. #include <sys/socket.h>
  6212. #include <netinet/in.h>
  6213. #include <arpa/inet.h>
  6214. _ACEOF
  6215. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6216. $EGREP "inet_ntoa_r" >/dev/null 2>&1; then
  6217. tmp_inet_ntoa_r="proto_declared"
  6218. else
  6219. cat >conftest.$ac_ext <<_ACEOF
  6220. /* confdefs.h. */
  6221. _ACEOF
  6222. cat confdefs.h >>conftest.$ac_ext
  6223. cat >>conftest.$ac_ext <<_ACEOF
  6224. /* end confdefs.h. */
  6225. #define _REENTRANT
  6226. #include <sys/types.h>
  6227. #include <sys/socket.h>
  6228. #include <netinet/in.h>
  6229. #include <arpa/inet.h>
  6230. _ACEOF
  6231. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6232. $EGREP "inet_ntoa_r" >/dev/null 2>&1; then
  6233. tmp_inet_ntoa_r="proto_needs_reentrant"
  6234. tmp_need_reentrant="yes"
  6235. fi
  6236. rm -f conftest*
  6237. fi
  6238. rm -f conftest*
  6239. fi
  6240. fi
  6241. if test "$tmp_need_reentrant" = "no"; then
  6242. cat >conftest.$ac_ext <<_ACEOF
  6243. /* confdefs.h. */
  6244. _ACEOF
  6245. cat confdefs.h >>conftest.$ac_ext
  6246. cat >>conftest.$ac_ext <<_ACEOF
  6247. /* end confdefs.h. */
  6248. /* Define gethostbyaddr_r to an innocuous variant, in case <limits.h> declares gethostbyaddr_r.
  6249. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6250. #define gethostbyaddr_r innocuous_gethostbyaddr_r
  6251. /* System header to define __stub macros and hopefully few prototypes,
  6252. which can conflict with char gethostbyaddr_r (); below.
  6253. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6254. <limits.h> exists even on freestanding compilers. */
  6255. #ifdef __STDC__
  6256. # include <limits.h>
  6257. #else
  6258. # include <assert.h>
  6259. #endif
  6260. #undef gethostbyaddr_r
  6261. /* Override any GCC internal prototype to avoid an error.
  6262. Use char because int might match the return type of a GCC
  6263. builtin and then its argument prototype would still apply. */
  6264. #ifdef __cplusplus
  6265. extern "C"
  6266. #endif
  6267. char gethostbyaddr_r ();
  6268. /* The GNU C library defines this for functions which it implements
  6269. to always fail with ENOSYS. Some functions are actually named
  6270. something starting with __ and the normal name is an alias. */
  6271. #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
  6272. choke me
  6273. #endif
  6274. int
  6275. main ()
  6276. {
  6277. return gethostbyaddr_r ();
  6278. ;
  6279. return 0;
  6280. }
  6281. _ACEOF
  6282. rm -f conftest.$ac_objext conftest$ac_exeext
  6283. if { (ac_try="$ac_link"
  6284. case "(($ac_try" in
  6285. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6286. *) ac_try_echo=$ac_try;;
  6287. esac
  6288. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6289. (eval "$ac_link") 2>conftest.er1
  6290. ac_status=$?
  6291. grep -v '^ *+' conftest.er1 >conftest.err
  6292. rm -f conftest.er1
  6293. cat conftest.err >&5
  6294. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6295. (exit $ac_status); } && {
  6296. test -z "$ac_c_werror_flag" ||
  6297. test ! -s conftest.err
  6298. } && test -s conftest$ac_exeext &&
  6299. $as_test_x conftest$ac_exeext; then
  6300. tmp_gethostbyaddr_r="yes"
  6301. else
  6302. echo "$as_me: failed program was:" >&5
  6303. sed 's/^/| /' conftest.$ac_ext >&5
  6304. tmp_gethostbyaddr_r="no"
  6305. fi
  6306. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6307. conftest$ac_exeext conftest.$ac_ext
  6308. if test "$tmp_gethostbyaddr_r" = "yes"; then
  6309. cat >conftest.$ac_ext <<_ACEOF
  6310. /* confdefs.h. */
  6311. _ACEOF
  6312. cat confdefs.h >>conftest.$ac_ext
  6313. cat >>conftest.$ac_ext <<_ACEOF
  6314. /* end confdefs.h. */
  6315. #include <sys/types.h>
  6316. #include <netdb.h>
  6317. _ACEOF
  6318. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6319. $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
  6320. tmp_gethostbyaddr_r="proto_declared"
  6321. else
  6322. cat >conftest.$ac_ext <<_ACEOF
  6323. /* confdefs.h. */
  6324. _ACEOF
  6325. cat confdefs.h >>conftest.$ac_ext
  6326. cat >>conftest.$ac_ext <<_ACEOF
  6327. /* end confdefs.h. */
  6328. #define _REENTRANT
  6329. #include <sys/types.h>
  6330. #include <netdb.h>
  6331. _ACEOF
  6332. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6333. $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
  6334. tmp_gethostbyaddr_r="proto_needs_reentrant"
  6335. tmp_need_reentrant="yes"
  6336. fi
  6337. rm -f conftest*
  6338. fi
  6339. rm -f conftest*
  6340. fi
  6341. fi
  6342. if test "$tmp_need_reentrant" = "no"; then
  6343. cat >conftest.$ac_ext <<_ACEOF
  6344. /* confdefs.h. */
  6345. _ACEOF
  6346. cat confdefs.h >>conftest.$ac_ext
  6347. cat >>conftest.$ac_ext <<_ACEOF
  6348. /* end confdefs.h. */
  6349. /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
  6350. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6351. #define gethostbyname_r innocuous_gethostbyname_r
  6352. /* System header to define __stub macros and hopefully few prototypes,
  6353. which can conflict with char gethostbyname_r (); below.
  6354. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6355. <limits.h> exists even on freestanding compilers. */
  6356. #ifdef __STDC__
  6357. # include <limits.h>
  6358. #else
  6359. # include <assert.h>
  6360. #endif
  6361. #undef gethostbyname_r
  6362. /* Override any GCC internal prototype to avoid an error.
  6363. Use char because int might match the return type of a GCC
  6364. builtin and then its argument prototype would still apply. */
  6365. #ifdef __cplusplus
  6366. extern "C"
  6367. #endif
  6368. char gethostbyname_r ();
  6369. /* The GNU C library defines this for functions which it implements
  6370. to always fail with ENOSYS. Some functions are actually named
  6371. something starting with __ and the normal name is an alias. */
  6372. #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
  6373. choke me
  6374. #endif
  6375. int
  6376. main ()
  6377. {
  6378. return gethostbyname_r ();
  6379. ;
  6380. return 0;
  6381. }
  6382. _ACEOF
  6383. rm -f conftest.$ac_objext conftest$ac_exeext
  6384. if { (ac_try="$ac_link"
  6385. case "(($ac_try" in
  6386. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6387. *) ac_try_echo=$ac_try;;
  6388. esac
  6389. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6390. (eval "$ac_link") 2>conftest.er1
  6391. ac_status=$?
  6392. grep -v '^ *+' conftest.er1 >conftest.err
  6393. rm -f conftest.er1
  6394. cat conftest.err >&5
  6395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6396. (exit $ac_status); } && {
  6397. test -z "$ac_c_werror_flag" ||
  6398. test ! -s conftest.err
  6399. } && test -s conftest$ac_exeext &&
  6400. $as_test_x conftest$ac_exeext; then
  6401. tmp_gethostbyname_r="yes"
  6402. else
  6403. echo "$as_me: failed program was:" >&5
  6404. sed 's/^/| /' conftest.$ac_ext >&5
  6405. tmp_gethostbyname_r="no"
  6406. fi
  6407. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6408. conftest$ac_exeext conftest.$ac_ext
  6409. if test "$tmp_gethostbyname_r" = "yes"; then
  6410. cat >conftest.$ac_ext <<_ACEOF
  6411. /* confdefs.h. */
  6412. _ACEOF
  6413. cat confdefs.h >>conftest.$ac_ext
  6414. cat >>conftest.$ac_ext <<_ACEOF
  6415. /* end confdefs.h. */
  6416. #include <sys/types.h>
  6417. #include <netdb.h>
  6418. _ACEOF
  6419. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6420. $EGREP "gethostbyname_r" >/dev/null 2>&1; then
  6421. tmp_gethostbyname_r="proto_declared"
  6422. else
  6423. cat >conftest.$ac_ext <<_ACEOF
  6424. /* confdefs.h. */
  6425. _ACEOF
  6426. cat confdefs.h >>conftest.$ac_ext
  6427. cat >>conftest.$ac_ext <<_ACEOF
  6428. /* end confdefs.h. */
  6429. #define _REENTRANT
  6430. #include <sys/types.h>
  6431. #include <netdb.h>
  6432. _ACEOF
  6433. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6434. $EGREP "gethostbyname_r" >/dev/null 2>&1; then
  6435. tmp_gethostbyname_r="proto_needs_reentrant"
  6436. tmp_need_reentrant="yes"
  6437. fi
  6438. rm -f conftest*
  6439. fi
  6440. rm -f conftest*
  6441. fi
  6442. fi
  6443. if test "$tmp_need_reentrant" = "no"; then
  6444. cat >conftest.$ac_ext <<_ACEOF
  6445. /* confdefs.h. */
  6446. _ACEOF
  6447. cat confdefs.h >>conftest.$ac_ext
  6448. cat >>conftest.$ac_ext <<_ACEOF
  6449. /* end confdefs.h. */
  6450. /* Define getprotobyname_r to an innocuous variant, in case <limits.h> declares getprotobyname_r.
  6451. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6452. #define getprotobyname_r innocuous_getprotobyname_r
  6453. /* System header to define __stub macros and hopefully few prototypes,
  6454. which can conflict with char getprotobyname_r (); below.
  6455. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6456. <limits.h> exists even on freestanding compilers. */
  6457. #ifdef __STDC__
  6458. # include <limits.h>
  6459. #else
  6460. # include <assert.h>
  6461. #endif
  6462. #undef getprotobyname_r
  6463. /* Override any GCC internal prototype to avoid an error.
  6464. Use char because int might match the return type of a GCC
  6465. builtin and then its argument prototype would still apply. */
  6466. #ifdef __cplusplus
  6467. extern "C"
  6468. #endif
  6469. char getprotobyname_r ();
  6470. /* The GNU C library defines this for functions which it implements
  6471. to always fail with ENOSYS. Some functions are actually named
  6472. something starting with __ and the normal name is an alias. */
  6473. #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
  6474. choke me
  6475. #endif
  6476. int
  6477. main ()
  6478. {
  6479. return getprotobyname_r ();
  6480. ;
  6481. return 0;
  6482. }
  6483. _ACEOF
  6484. rm -f conftest.$ac_objext conftest$ac_exeext
  6485. if { (ac_try="$ac_link"
  6486. case "(($ac_try" in
  6487. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6488. *) ac_try_echo=$ac_try;;
  6489. esac
  6490. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6491. (eval "$ac_link") 2>conftest.er1
  6492. ac_status=$?
  6493. grep -v '^ *+' conftest.er1 >conftest.err
  6494. rm -f conftest.er1
  6495. cat conftest.err >&5
  6496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6497. (exit $ac_status); } && {
  6498. test -z "$ac_c_werror_flag" ||
  6499. test ! -s conftest.err
  6500. } && test -s conftest$ac_exeext &&
  6501. $as_test_x conftest$ac_exeext; then
  6502. tmp_getprotobyname_r="yes"
  6503. else
  6504. echo "$as_me: failed program was:" >&5
  6505. sed 's/^/| /' conftest.$ac_ext >&5
  6506. tmp_getprotobyname_r="no"
  6507. fi
  6508. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6509. conftest$ac_exeext conftest.$ac_ext
  6510. if test "$tmp_getprotobyname_r" = "yes"; then
  6511. cat >conftest.$ac_ext <<_ACEOF
  6512. /* confdefs.h. */
  6513. _ACEOF
  6514. cat confdefs.h >>conftest.$ac_ext
  6515. cat >>conftest.$ac_ext <<_ACEOF
  6516. /* end confdefs.h. */
  6517. #include <sys/types.h>
  6518. #include <netdb.h>
  6519. _ACEOF
  6520. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6521. $EGREP "getprotobyname_r" >/dev/null 2>&1; then
  6522. tmp_getprotobyname_r="proto_declared"
  6523. else
  6524. cat >conftest.$ac_ext <<_ACEOF
  6525. /* confdefs.h. */
  6526. _ACEOF
  6527. cat confdefs.h >>conftest.$ac_ext
  6528. cat >>conftest.$ac_ext <<_ACEOF
  6529. /* end confdefs.h. */
  6530. #define _REENTRANT
  6531. #include <sys/types.h>
  6532. #include <netdb.h>
  6533. _ACEOF
  6534. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6535. $EGREP "getprotobyname_r" >/dev/null 2>&1; then
  6536. tmp_getprotobyname_r="proto_needs_reentrant"
  6537. tmp_need_reentrant="yes"
  6538. fi
  6539. rm -f conftest*
  6540. fi
  6541. rm -f conftest*
  6542. fi
  6543. fi
  6544. if test "$tmp_need_reentrant" = "no"; then
  6545. cat >conftest.$ac_ext <<_ACEOF
  6546. /* confdefs.h. */
  6547. _ACEOF
  6548. cat confdefs.h >>conftest.$ac_ext
  6549. cat >>conftest.$ac_ext <<_ACEOF
  6550. /* end confdefs.h. */
  6551. /* Define getservbyport_r to an innocuous variant, in case <limits.h> declares getservbyport_r.
  6552. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6553. #define getservbyport_r innocuous_getservbyport_r
  6554. /* System header to define __stub macros and hopefully few prototypes,
  6555. which can conflict with char getservbyport_r (); below.
  6556. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6557. <limits.h> exists even on freestanding compilers. */
  6558. #ifdef __STDC__
  6559. # include <limits.h>
  6560. #else
  6561. # include <assert.h>
  6562. #endif
  6563. #undef getservbyport_r
  6564. /* Override any GCC internal prototype to avoid an error.
  6565. Use char because int might match the return type of a GCC
  6566. builtin and then its argument prototype would still apply. */
  6567. #ifdef __cplusplus
  6568. extern "C"
  6569. #endif
  6570. char getservbyport_r ();
  6571. /* The GNU C library defines this for functions which it implements
  6572. to always fail with ENOSYS. Some functions are actually named
  6573. something starting with __ and the normal name is an alias. */
  6574. #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
  6575. choke me
  6576. #endif
  6577. int
  6578. main ()
  6579. {
  6580. return getservbyport_r ();
  6581. ;
  6582. return 0;
  6583. }
  6584. _ACEOF
  6585. rm -f conftest.$ac_objext conftest$ac_exeext
  6586. if { (ac_try="$ac_link"
  6587. case "(($ac_try" in
  6588. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6589. *) ac_try_echo=$ac_try;;
  6590. esac
  6591. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6592. (eval "$ac_link") 2>conftest.er1
  6593. ac_status=$?
  6594. grep -v '^ *+' conftest.er1 >conftest.err
  6595. rm -f conftest.er1
  6596. cat conftest.err >&5
  6597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6598. (exit $ac_status); } && {
  6599. test -z "$ac_c_werror_flag" ||
  6600. test ! -s conftest.err
  6601. } && test -s conftest$ac_exeext &&
  6602. $as_test_x conftest$ac_exeext; then
  6603. tmp_getservbyport_r="yes"
  6604. else
  6605. echo "$as_me: failed program was:" >&5
  6606. sed 's/^/| /' conftest.$ac_ext >&5
  6607. tmp_getservbyport_r="no"
  6608. fi
  6609. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6610. conftest$ac_exeext conftest.$ac_ext
  6611. if test "$tmp_getservbyport_r" = "yes"; then
  6612. cat >conftest.$ac_ext <<_ACEOF
  6613. /* confdefs.h. */
  6614. _ACEOF
  6615. cat confdefs.h >>conftest.$ac_ext
  6616. cat >>conftest.$ac_ext <<_ACEOF
  6617. /* end confdefs.h. */
  6618. #include <sys/types.h>
  6619. #include <netdb.h>
  6620. _ACEOF
  6621. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6622. $EGREP "getservbyport_r" >/dev/null 2>&1; then
  6623. tmp_getservbyport_r="proto_declared"
  6624. else
  6625. cat >conftest.$ac_ext <<_ACEOF
  6626. /* confdefs.h. */
  6627. _ACEOF
  6628. cat confdefs.h >>conftest.$ac_ext
  6629. cat >>conftest.$ac_ext <<_ACEOF
  6630. /* end confdefs.h. */
  6631. #define _REENTRANT
  6632. #include <sys/types.h>
  6633. #include <netdb.h>
  6634. _ACEOF
  6635. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6636. $EGREP "getservbyport_r" >/dev/null 2>&1; then
  6637. tmp_getservbyport_r="proto_needs_reentrant"
  6638. tmp_need_reentrant="yes"
  6639. fi
  6640. rm -f conftest*
  6641. fi
  6642. rm -f conftest*
  6643. fi
  6644. fi
  6645. if test "$tmp_need_reentrant" = "yes"; then
  6646. { echo "$as_me:$LINENO: result: yes" >&5
  6647. echo "${ECHO_T}yes" >&6; }
  6648. else
  6649. { echo "$as_me:$LINENO: result: no" >&5
  6650. echo "${ECHO_T}no" >&6; }
  6651. fi
  6652. fi
  6653. #
  6654. { echo "$as_me:$LINENO: checking if _REENTRANT is onwards defined" >&5
  6655. echo $ECHO_N "checking if _REENTRANT is onwards defined... $ECHO_C" >&6; }
  6656. if test "$tmp_reentrant_initially_defined" = "yes" ||
  6657. test "$tmp_need_reentrant" = "yes"; then
  6658. cat >>confdefs.h <<\_ACEOF
  6659. #define NEED_REENTRANT 1
  6660. _ACEOF
  6661. cat >>confdefs.h <<_EOF
  6662. #ifndef _REENTRANT
  6663. # define _REENTRANT
  6664. #endif
  6665. _EOF
  6666. { echo "$as_me:$LINENO: result: yes" >&5
  6667. echo "${ECHO_T}yes" >&6; }
  6668. else
  6669. { echo "$as_me:$LINENO: result: no" >&5
  6670. echo "${ECHO_T}no" >&6; }
  6671. fi
  6672. #
  6673. # Check whether --enable-largefile was given.
  6674. if test "${enable_largefile+set}" = set; then
  6675. enableval=$enable_largefile;
  6676. fi
  6677. if test "$enable_largefile" != no; then
  6678. { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  6679. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  6680. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  6681. echo $ECHO_N "(cached) $ECHO_C" >&6
  6682. else
  6683. ac_cv_sys_largefile_CC=no
  6684. if test "$GCC" != yes; then
  6685. ac_save_CC=$CC
  6686. while :; do
  6687. # IRIX 6.2 and later do not support large files by default,
  6688. # so use the C compiler's -n32 option if that helps.
  6689. cat >conftest.$ac_ext <<_ACEOF
  6690. /* confdefs.h. */
  6691. _ACEOF
  6692. cat confdefs.h >>conftest.$ac_ext
  6693. cat >>conftest.$ac_ext <<_ACEOF
  6694. /* end confdefs.h. */
  6695. #include <sys/types.h>
  6696. /* Check that off_t can represent 2**63 - 1 correctly.
  6697. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6698. since some C++ compilers masquerading as C compilers
  6699. incorrectly reject 9223372036854775807. */
  6700. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  6701. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6702. && LARGE_OFF_T % 2147483647 == 1)
  6703. ? 1 : -1];
  6704. int
  6705. main ()
  6706. {
  6707. ;
  6708. return 0;
  6709. }
  6710. _ACEOF
  6711. rm -f conftest.$ac_objext
  6712. if { (ac_try="$ac_compile"
  6713. case "(($ac_try" in
  6714. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6715. *) ac_try_echo=$ac_try;;
  6716. esac
  6717. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6718. (eval "$ac_compile") 2>conftest.er1
  6719. ac_status=$?
  6720. grep -v '^ *+' conftest.er1 >conftest.err
  6721. rm -f conftest.er1
  6722. cat conftest.err >&5
  6723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6724. (exit $ac_status); } && {
  6725. test -z "$ac_c_werror_flag" ||
  6726. test ! -s conftest.err
  6727. } && test -s conftest.$ac_objext; then
  6728. break
  6729. else
  6730. echo "$as_me: failed program was:" >&5
  6731. sed 's/^/| /' conftest.$ac_ext >&5
  6732. fi
  6733. rm -f core conftest.err conftest.$ac_objext
  6734. CC="$CC -n32"
  6735. rm -f conftest.$ac_objext
  6736. if { (ac_try="$ac_compile"
  6737. case "(($ac_try" in
  6738. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6739. *) ac_try_echo=$ac_try;;
  6740. esac
  6741. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6742. (eval "$ac_compile") 2>conftest.er1
  6743. ac_status=$?
  6744. grep -v '^ *+' conftest.er1 >conftest.err
  6745. rm -f conftest.er1
  6746. cat conftest.err >&5
  6747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6748. (exit $ac_status); } && {
  6749. test -z "$ac_c_werror_flag" ||
  6750. test ! -s conftest.err
  6751. } && test -s conftest.$ac_objext; then
  6752. ac_cv_sys_largefile_CC=' -n32'; break
  6753. else
  6754. echo "$as_me: failed program was:" >&5
  6755. sed 's/^/| /' conftest.$ac_ext >&5
  6756. fi
  6757. rm -f core conftest.err conftest.$ac_objext
  6758. break
  6759. done
  6760. CC=$ac_save_CC
  6761. rm -f conftest.$ac_ext
  6762. fi
  6763. fi
  6764. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  6765. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  6766. if test "$ac_cv_sys_largefile_CC" != no; then
  6767. CC=$CC$ac_cv_sys_largefile_CC
  6768. fi
  6769. { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  6770. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  6771. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  6772. echo $ECHO_N "(cached) $ECHO_C" >&6
  6773. else
  6774. while :; do
  6775. cat >conftest.$ac_ext <<_ACEOF
  6776. /* confdefs.h. */
  6777. _ACEOF
  6778. cat confdefs.h >>conftest.$ac_ext
  6779. cat >>conftest.$ac_ext <<_ACEOF
  6780. /* end confdefs.h. */
  6781. #include <sys/types.h>
  6782. /* Check that off_t can represent 2**63 - 1 correctly.
  6783. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6784. since some C++ compilers masquerading as C compilers
  6785. incorrectly reject 9223372036854775807. */
  6786. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  6787. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6788. && LARGE_OFF_T % 2147483647 == 1)
  6789. ? 1 : -1];
  6790. int
  6791. main ()
  6792. {
  6793. ;
  6794. return 0;
  6795. }
  6796. _ACEOF
  6797. rm -f conftest.$ac_objext
  6798. if { (ac_try="$ac_compile"
  6799. case "(($ac_try" in
  6800. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6801. *) ac_try_echo=$ac_try;;
  6802. esac
  6803. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6804. (eval "$ac_compile") 2>conftest.er1
  6805. ac_status=$?
  6806. grep -v '^ *+' conftest.er1 >conftest.err
  6807. rm -f conftest.er1
  6808. cat conftest.err >&5
  6809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6810. (exit $ac_status); } && {
  6811. test -z "$ac_c_werror_flag" ||
  6812. test ! -s conftest.err
  6813. } && test -s conftest.$ac_objext; then
  6814. ac_cv_sys_file_offset_bits=no; break
  6815. else
  6816. echo "$as_me: failed program was:" >&5
  6817. sed 's/^/| /' conftest.$ac_ext >&5
  6818. fi
  6819. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6820. cat >conftest.$ac_ext <<_ACEOF
  6821. /* confdefs.h. */
  6822. _ACEOF
  6823. cat confdefs.h >>conftest.$ac_ext
  6824. cat >>conftest.$ac_ext <<_ACEOF
  6825. /* end confdefs.h. */
  6826. #define _FILE_OFFSET_BITS 64
  6827. #include <sys/types.h>
  6828. /* Check that off_t can represent 2**63 - 1 correctly.
  6829. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6830. since some C++ compilers masquerading as C compilers
  6831. incorrectly reject 9223372036854775807. */
  6832. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  6833. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6834. && LARGE_OFF_T % 2147483647 == 1)
  6835. ? 1 : -1];
  6836. int
  6837. main ()
  6838. {
  6839. ;
  6840. return 0;
  6841. }
  6842. _ACEOF
  6843. rm -f conftest.$ac_objext
  6844. if { (ac_try="$ac_compile"
  6845. case "(($ac_try" in
  6846. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6847. *) ac_try_echo=$ac_try;;
  6848. esac
  6849. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6850. (eval "$ac_compile") 2>conftest.er1
  6851. ac_status=$?
  6852. grep -v '^ *+' conftest.er1 >conftest.err
  6853. rm -f conftest.er1
  6854. cat conftest.err >&5
  6855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6856. (exit $ac_status); } && {
  6857. test -z "$ac_c_werror_flag" ||
  6858. test ! -s conftest.err
  6859. } && test -s conftest.$ac_objext; then
  6860. ac_cv_sys_file_offset_bits=64; break
  6861. else
  6862. echo "$as_me: failed program was:" >&5
  6863. sed 's/^/| /' conftest.$ac_ext >&5
  6864. fi
  6865. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6866. ac_cv_sys_file_offset_bits=unknown
  6867. break
  6868. done
  6869. fi
  6870. { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  6871. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  6872. case $ac_cv_sys_file_offset_bits in #(
  6873. no | unknown) ;;
  6874. *)
  6875. cat >>confdefs.h <<_ACEOF
  6876. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  6877. _ACEOF
  6878. ;;
  6879. esac
  6880. rm -f conftest*
  6881. if test $ac_cv_sys_file_offset_bits = unknown; then
  6882. { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  6883. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  6884. if test "${ac_cv_sys_large_files+set}" = set; then
  6885. echo $ECHO_N "(cached) $ECHO_C" >&6
  6886. else
  6887. while :; do
  6888. cat >conftest.$ac_ext <<_ACEOF
  6889. /* confdefs.h. */
  6890. _ACEOF
  6891. cat confdefs.h >>conftest.$ac_ext
  6892. cat >>conftest.$ac_ext <<_ACEOF
  6893. /* end confdefs.h. */
  6894. #include <sys/types.h>
  6895. /* Check that off_t can represent 2**63 - 1 correctly.
  6896. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6897. since some C++ compilers masquerading as C compilers
  6898. incorrectly reject 9223372036854775807. */
  6899. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  6900. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6901. && LARGE_OFF_T % 2147483647 == 1)
  6902. ? 1 : -1];
  6903. int
  6904. main ()
  6905. {
  6906. ;
  6907. return 0;
  6908. }
  6909. _ACEOF
  6910. rm -f conftest.$ac_objext
  6911. if { (ac_try="$ac_compile"
  6912. case "(($ac_try" in
  6913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6914. *) ac_try_echo=$ac_try;;
  6915. esac
  6916. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6917. (eval "$ac_compile") 2>conftest.er1
  6918. ac_status=$?
  6919. grep -v '^ *+' conftest.er1 >conftest.err
  6920. rm -f conftest.er1
  6921. cat conftest.err >&5
  6922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6923. (exit $ac_status); } && {
  6924. test -z "$ac_c_werror_flag" ||
  6925. test ! -s conftest.err
  6926. } && test -s conftest.$ac_objext; then
  6927. ac_cv_sys_large_files=no; break
  6928. else
  6929. echo "$as_me: failed program was:" >&5
  6930. sed 's/^/| /' conftest.$ac_ext >&5
  6931. fi
  6932. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6933. cat >conftest.$ac_ext <<_ACEOF
  6934. /* confdefs.h. */
  6935. _ACEOF
  6936. cat confdefs.h >>conftest.$ac_ext
  6937. cat >>conftest.$ac_ext <<_ACEOF
  6938. /* end confdefs.h. */
  6939. #define _LARGE_FILES 1
  6940. #include <sys/types.h>
  6941. /* Check that off_t can represent 2**63 - 1 correctly.
  6942. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6943. since some C++ compilers masquerading as C compilers
  6944. incorrectly reject 9223372036854775807. */
  6945. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  6946. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6947. && LARGE_OFF_T % 2147483647 == 1)
  6948. ? 1 : -1];
  6949. int
  6950. main ()
  6951. {
  6952. ;
  6953. return 0;
  6954. }
  6955. _ACEOF
  6956. rm -f conftest.$ac_objext
  6957. if { (ac_try="$ac_compile"
  6958. case "(($ac_try" in
  6959. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6960. *) ac_try_echo=$ac_try;;
  6961. esac
  6962. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6963. (eval "$ac_compile") 2>conftest.er1
  6964. ac_status=$?
  6965. grep -v '^ *+' conftest.er1 >conftest.err
  6966. rm -f conftest.er1
  6967. cat conftest.err >&5
  6968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6969. (exit $ac_status); } && {
  6970. test -z "$ac_c_werror_flag" ||
  6971. test ! -s conftest.err
  6972. } && test -s conftest.$ac_objext; then
  6973. ac_cv_sys_large_files=1; break
  6974. else
  6975. echo "$as_me: failed program was:" >&5
  6976. sed 's/^/| /' conftest.$ac_ext >&5
  6977. fi
  6978. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6979. ac_cv_sys_large_files=unknown
  6980. break
  6981. done
  6982. fi
  6983. { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  6984. echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  6985. case $ac_cv_sys_large_files in #(
  6986. no | unknown) ;;
  6987. *)
  6988. cat >>confdefs.h <<_ACEOF
  6989. #define _LARGE_FILES $ac_cv_sys_large_files
  6990. _ACEOF
  6991. ;;
  6992. esac
  6993. rm -f conftest*
  6994. fi
  6995. fi
  6996. { echo "$as_me:$LINENO: checking if arch-OS host is AMD64-linux (to build static libraries with PIC)" >&5
  6997. echo $ECHO_N "checking if arch-OS host is AMD64-linux (to build static libraries with PIC)... $ECHO_C" >&6; }
  6998. case $host in
  6999. x86_64*linux*)
  7000. { echo "$as_me:$LINENO: result: yes" >&5
  7001. echo "${ECHO_T}yes" >&6; }
  7002. with_pic=yes
  7003. ;;
  7004. *)
  7005. { echo "$as_me:$LINENO: result: no" >&5
  7006. echo "${ECHO_T}no" >&6; }
  7007. ;;
  7008. esac
  7009. # Check whether --enable-shared was given.
  7010. if test "${enable_shared+set}" = set; then
  7011. enableval=$enable_shared; p=${PACKAGE-default}
  7012. case $enableval in
  7013. yes) enable_shared=yes ;;
  7014. no) enable_shared=no ;;
  7015. *)
  7016. enable_shared=no
  7017. # Look at the argument we got. We use all the common list separators.
  7018. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7019. for pkg in $enableval; do
  7020. IFS="$lt_save_ifs"
  7021. if test "X$pkg" = "X$p"; then
  7022. enable_shared=yes
  7023. fi
  7024. done
  7025. IFS="$lt_save_ifs"
  7026. ;;
  7027. esac
  7028. else
  7029. enable_shared=yes
  7030. fi
  7031. # Check whether --enable-static was given.
  7032. if test "${enable_static+set}" = set; then
  7033. enableval=$enable_static; p=${PACKAGE-default}
  7034. case $enableval in
  7035. yes) enable_static=yes ;;
  7036. no) enable_static=no ;;
  7037. *)
  7038. enable_static=no
  7039. # Look at the argument we got. We use all the common list separators.
  7040. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7041. for pkg in $enableval; do
  7042. IFS="$lt_save_ifs"
  7043. if test "X$pkg" = "X$p"; then
  7044. enable_static=yes
  7045. fi
  7046. done
  7047. IFS="$lt_save_ifs"
  7048. ;;
  7049. esac
  7050. else
  7051. enable_static=yes
  7052. fi
  7053. # Check whether --enable-fast-install was given.
  7054. if test "${enable_fast_install+set}" = set; then
  7055. enableval=$enable_fast_install; p=${PACKAGE-default}
  7056. case $enableval in
  7057. yes) enable_fast_install=yes ;;
  7058. no) enable_fast_install=no ;;
  7059. *)
  7060. enable_fast_install=no
  7061. # Look at the argument we got. We use all the common list separators.
  7062. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7063. for pkg in $enableval; do
  7064. IFS="$lt_save_ifs"
  7065. if test "X$pkg" = "X$p"; then
  7066. enable_fast_install=yes
  7067. fi
  7068. done
  7069. IFS="$lt_save_ifs"
  7070. ;;
  7071. esac
  7072. else
  7073. enable_fast_install=yes
  7074. fi
  7075. { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  7076. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  7077. if test "${lt_cv_path_SED+set}" = set; then
  7078. echo $ECHO_N "(cached) $ECHO_C" >&6
  7079. else
  7080. # Loop through the user's path and test for sed and gsed.
  7081. # Then use that list of sed's as ones to test for truncation.
  7082. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7083. for as_dir in $PATH
  7084. do
  7085. IFS=$as_save_IFS
  7086. test -z "$as_dir" && as_dir=.
  7087. for lt_ac_prog in sed gsed; do
  7088. for ac_exec_ext in '' $ac_executable_extensions; do
  7089. if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
  7090. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  7091. fi
  7092. done
  7093. done
  7094. done
  7095. IFS=$as_save_IFS
  7096. lt_ac_max=0
  7097. lt_ac_count=0
  7098. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  7099. # along with /bin/sed that truncates output.
  7100. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  7101. test ! -f $lt_ac_sed && continue
  7102. cat /dev/null > conftest.in
  7103. lt_ac_count=0
  7104. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  7105. # Check for GNU sed and select it if it is found.
  7106. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  7107. lt_cv_path_SED=$lt_ac_sed
  7108. break
  7109. fi
  7110. while true; do
  7111. cat conftest.in conftest.in >conftest.tmp
  7112. mv conftest.tmp conftest.in
  7113. cp conftest.in conftest.nl
  7114. echo >>conftest.nl
  7115. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  7116. cmp -s conftest.out conftest.nl || break
  7117. # 10000 chars as input seems more than enough
  7118. test $lt_ac_count -gt 10 && break
  7119. lt_ac_count=`expr $lt_ac_count + 1`
  7120. if test $lt_ac_count -gt $lt_ac_max; then
  7121. lt_ac_max=$lt_ac_count
  7122. lt_cv_path_SED=$lt_ac_sed
  7123. fi
  7124. done
  7125. done
  7126. fi
  7127. SED=$lt_cv_path_SED
  7128. { echo "$as_me:$LINENO: result: $SED" >&5
  7129. echo "${ECHO_T}$SED" >&6; }
  7130. # Check whether --with-gnu-ld was given.
  7131. if test "${with_gnu_ld+set}" = set; then
  7132. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  7133. else
  7134. with_gnu_ld=no
  7135. fi
  7136. ac_prog=ld
  7137. if test "$GCC" = yes; then
  7138. # Check if gcc -print-prog-name=ld gives a path.
  7139. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  7140. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  7141. case $host in
  7142. *-*-mingw*)
  7143. # gcc leaves a trailing carriage return which upsets mingw
  7144. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  7145. *)
  7146. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  7147. esac
  7148. case $ac_prog in
  7149. # Accept absolute paths.
  7150. [\\/]* | ?:[\\/]*)
  7151. re_direlt='/[^/][^/]*/\.\./'
  7152. # Canonicalize the pathname of ld
  7153. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  7154. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  7155. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  7156. done
  7157. test -z "$LD" && LD="$ac_prog"
  7158. ;;
  7159. "")
  7160. # If it fails, then pretend we aren't using GCC.
  7161. ac_prog=ld
  7162. ;;
  7163. *)
  7164. # If it is relative, then search for the first ld in PATH.
  7165. with_gnu_ld=unknown
  7166. ;;
  7167. esac
  7168. elif test "$with_gnu_ld" = yes; then
  7169. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  7170. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  7171. else
  7172. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  7173. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  7174. fi
  7175. if test "${lt_cv_path_LD+set}" = set; then
  7176. echo $ECHO_N "(cached) $ECHO_C" >&6
  7177. else
  7178. if test -z "$LD"; then
  7179. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7180. for ac_dir in $PATH; do
  7181. IFS="$lt_save_ifs"
  7182. test -z "$ac_dir" && ac_dir=.
  7183. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  7184. lt_cv_path_LD="$ac_dir/$ac_prog"
  7185. # Check to see if the program is GNU ld. I'd rather use --version,
  7186. # but apparently some variants of GNU ld only accept -v.
  7187. # Break only if it was the GNU/non-GNU ld that we prefer.
  7188. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  7189. *GNU* | *'with BFD'*)
  7190. test "$with_gnu_ld" != no && break
  7191. ;;
  7192. *)
  7193. test "$with_gnu_ld" != yes && break
  7194. ;;
  7195. esac
  7196. fi
  7197. done
  7198. IFS="$lt_save_ifs"
  7199. else
  7200. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  7201. fi
  7202. fi
  7203. LD="$lt_cv_path_LD"
  7204. if test -n "$LD"; then
  7205. { echo "$as_me:$LINENO: result: $LD" >&5
  7206. echo "${ECHO_T}$LD" >&6; }
  7207. else
  7208. { echo "$as_me:$LINENO: result: no" >&5
  7209. echo "${ECHO_T}no" >&6; }
  7210. fi
  7211. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  7212. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  7213. { (exit 1); exit 1; }; }
  7214. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  7215. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  7216. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  7217. echo $ECHO_N "(cached) $ECHO_C" >&6
  7218. else
  7219. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  7220. case `$LD -v 2>&1 </dev/null` in
  7221. *GNU* | *'with BFD'*)
  7222. lt_cv_prog_gnu_ld=yes
  7223. ;;
  7224. *)
  7225. lt_cv_prog_gnu_ld=no
  7226. ;;
  7227. esac
  7228. fi
  7229. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  7230. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  7231. with_gnu_ld=$lt_cv_prog_gnu_ld
  7232. { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  7233. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  7234. if test "${lt_cv_ld_reload_flag+set}" = set; then
  7235. echo $ECHO_N "(cached) $ECHO_C" >&6
  7236. else
  7237. lt_cv_ld_reload_flag='-r'
  7238. fi
  7239. { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  7240. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  7241. reload_flag=$lt_cv_ld_reload_flag
  7242. case $reload_flag in
  7243. "" | " "*) ;;
  7244. *) reload_flag=" $reload_flag" ;;
  7245. esac
  7246. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7247. case $host_os in
  7248. darwin*)
  7249. if test "$GCC" = yes; then
  7250. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  7251. else
  7252. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7253. fi
  7254. ;;
  7255. esac
  7256. { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  7257. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  7258. if test "${lt_cv_path_NM+set}" = set; then
  7259. echo $ECHO_N "(cached) $ECHO_C" >&6
  7260. else
  7261. if test -n "$NM"; then
  7262. # Let the user override the test.
  7263. lt_cv_path_NM="$NM"
  7264. else
  7265. lt_nm_to_check="${ac_tool_prefix}nm"
  7266. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  7267. lt_nm_to_check="$lt_nm_to_check nm"
  7268. fi
  7269. for lt_tmp_nm in $lt_nm_to_check; do
  7270. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7271. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  7272. IFS="$lt_save_ifs"
  7273. test -z "$ac_dir" && ac_dir=.
  7274. tmp_nm="$ac_dir/$lt_tmp_nm"
  7275. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  7276. # Check to see if the nm accepts a BSD-compat flag.
  7277. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  7278. # nm: unknown option "B" ignored
  7279. # Tru64's nm complains that /dev/null is an invalid object file
  7280. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  7281. */dev/null* | *'Invalid file or object type'*)
  7282. lt_cv_path_NM="$tmp_nm -B"
  7283. break
  7284. ;;
  7285. *)
  7286. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  7287. */dev/null*)
  7288. lt_cv_path_NM="$tmp_nm -p"
  7289. break
  7290. ;;
  7291. *)
  7292. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  7293. continue # so that we can try to find one that supports BSD flags
  7294. ;;
  7295. esac
  7296. ;;
  7297. esac
  7298. fi
  7299. done
  7300. IFS="$lt_save_ifs"
  7301. done
  7302. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  7303. fi
  7304. fi
  7305. { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  7306. echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  7307. NM="$lt_cv_path_NM"
  7308. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  7309. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  7310. LN_S=$as_ln_s
  7311. if test "$LN_S" = "ln -s"; then
  7312. { echo "$as_me:$LINENO: result: yes" >&5
  7313. echo "${ECHO_T}yes" >&6; }
  7314. else
  7315. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  7316. echo "${ECHO_T}no, using $LN_S" >&6; }
  7317. fi
  7318. { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  7319. echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
  7320. if test "${lt_cv_deplibs_check_method+set}" = set; then
  7321. echo $ECHO_N "(cached) $ECHO_C" >&6
  7322. else
  7323. lt_cv_file_magic_cmd='$MAGIC_CMD'
  7324. lt_cv_file_magic_test_file=
  7325. lt_cv_deplibs_check_method='unknown'
  7326. # Need to set the preceding variable on all platforms that support
  7327. # interlibrary dependencies.
  7328. # 'none' -- dependencies not supported.
  7329. # `unknown' -- same as none, but documents that we really don't know.
  7330. # 'pass_all' -- all dependencies passed with no checks.
  7331. # 'test_compile' -- check by making test program.
  7332. # 'file_magic [[regex]]' -- check by looking for files in library path
  7333. # which responds to the $file_magic_cmd with a given extended regex.
  7334. # If you have `file' or equivalent on your system and you're not sure
  7335. # whether `pass_all' will *always* work, you probably want this one.
  7336. case $host_os in
  7337. aix[4-9]*)
  7338. lt_cv_deplibs_check_method=pass_all
  7339. ;;
  7340. beos*)
  7341. lt_cv_deplibs_check_method=pass_all
  7342. ;;
  7343. bsdi[45]*)
  7344. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  7345. lt_cv_file_magic_cmd='/usr/bin/file -L'
  7346. lt_cv_file_magic_test_file=/shlib/libc.so
  7347. ;;
  7348. cygwin*)
  7349. # func_win32_libid is a shell function defined in ltmain.sh
  7350. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7351. lt_cv_file_magic_cmd='func_win32_libid'
  7352. ;;
  7353. mingw* | pw32*)
  7354. # Base MSYS/MinGW do not provide the 'file' command needed by
  7355. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  7356. # unless we find 'file', for example because we are cross-compiling.
  7357. if ( file / ) >/dev/null 2>&1; then
  7358. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7359. lt_cv_file_magic_cmd='func_win32_libid'
  7360. else
  7361. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  7362. lt_cv_file_magic_cmd='$OBJDUMP -f'
  7363. fi
  7364. ;;
  7365. darwin* | rhapsody*)
  7366. lt_cv_deplibs_check_method=pass_all
  7367. ;;
  7368. freebsd* | dragonfly*)
  7369. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  7370. case $host_cpu in
  7371. i*86 )
  7372. # Not sure whether the presence of OpenBSD here was a mistake.
  7373. # Let's accept both of them until this is cleared up.
  7374. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  7375. lt_cv_file_magic_cmd=/usr/bin/file
  7376. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  7377. ;;
  7378. esac
  7379. else
  7380. lt_cv_deplibs_check_method=pass_all
  7381. fi
  7382. ;;
  7383. gnu*)
  7384. lt_cv_deplibs_check_method=pass_all
  7385. ;;
  7386. hpux10.20* | hpux11*)
  7387. lt_cv_file_magic_cmd=/usr/bin/file
  7388. case $host_cpu in
  7389. ia64*)
  7390. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  7391. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  7392. ;;
  7393. hppa*64*)
  7394. 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]'
  7395. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  7396. ;;
  7397. *)
  7398. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  7399. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  7400. ;;
  7401. esac
  7402. ;;
  7403. interix[3-9]*)
  7404. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  7405. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  7406. ;;
  7407. irix5* | irix6* | nonstopux*)
  7408. case $LD in
  7409. *-32|*"-32 ") libmagic=32-bit;;
  7410. *-n32|*"-n32 ") libmagic=N32;;
  7411. *-64|*"-64 ") libmagic=64-bit;;
  7412. *) libmagic=never-match;;
  7413. esac
  7414. lt_cv_deplibs_check_method=pass_all
  7415. ;;
  7416. # This must be Linux ELF.
  7417. linux* | k*bsd*-gnu)
  7418. lt_cv_deplibs_check_method=pass_all
  7419. ;;
  7420. netbsd* | netbsdelf*-gnu)
  7421. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  7422. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  7423. else
  7424. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  7425. fi
  7426. ;;
  7427. newos6*)
  7428. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  7429. lt_cv_file_magic_cmd=/usr/bin/file
  7430. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  7431. ;;
  7432. nto-qnx*)
  7433. lt_cv_deplibs_check_method=unknown
  7434. ;;
  7435. openbsd*)
  7436. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7437. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  7438. else
  7439. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  7440. fi
  7441. ;;
  7442. osf3* | osf4* | osf5*)
  7443. lt_cv_deplibs_check_method=pass_all
  7444. ;;
  7445. rdos*)
  7446. lt_cv_deplibs_check_method=pass_all
  7447. ;;
  7448. solaris*)
  7449. lt_cv_deplibs_check_method=pass_all
  7450. ;;
  7451. sysv4 | sysv4.3*)
  7452. case $host_vendor in
  7453. motorola)
  7454. 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]'
  7455. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  7456. ;;
  7457. ncr)
  7458. lt_cv_deplibs_check_method=pass_all
  7459. ;;
  7460. sequent)
  7461. lt_cv_file_magic_cmd='/bin/file'
  7462. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  7463. ;;
  7464. sni)
  7465. lt_cv_file_magic_cmd='/bin/file'
  7466. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  7467. lt_cv_file_magic_test_file=/lib/libc.so
  7468. ;;
  7469. siemens)
  7470. lt_cv_deplibs_check_method=pass_all
  7471. ;;
  7472. pc)
  7473. lt_cv_deplibs_check_method=pass_all
  7474. ;;
  7475. esac
  7476. ;;
  7477. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  7478. lt_cv_deplibs_check_method=pass_all
  7479. ;;
  7480. esac
  7481. fi
  7482. { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  7483. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  7484. file_magic_cmd=$lt_cv_file_magic_cmd
  7485. deplibs_check_method=$lt_cv_deplibs_check_method
  7486. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  7487. # If no C compiler was specified, use CC.
  7488. LTCC=${LTCC-"$CC"}
  7489. # If no C compiler flags were specified, use CFLAGS.
  7490. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7491. # Allow CC to be a program name with arguments.
  7492. compiler=$CC
  7493. # Check whether --enable-libtool-lock was given.
  7494. if test "${enable_libtool_lock+set}" = set; then
  7495. enableval=$enable_libtool_lock;
  7496. fi
  7497. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  7498. # Some flags need to be propagated to the compiler or linker for good
  7499. # libtool support.
  7500. case $host in
  7501. ia64-*-hpux*)
  7502. # Find out which ABI we are using.
  7503. echo 'int i;' > conftest.$ac_ext
  7504. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7505. (eval $ac_compile) 2>&5
  7506. ac_status=$?
  7507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7508. (exit $ac_status); }; then
  7509. case `/usr/bin/file conftest.$ac_objext` in
  7510. *ELF-32*)
  7511. HPUX_IA64_MODE="32"
  7512. ;;
  7513. *ELF-64*)
  7514. HPUX_IA64_MODE="64"
  7515. ;;
  7516. esac
  7517. fi
  7518. rm -rf conftest*
  7519. ;;
  7520. *-*-irix6*)
  7521. # Find out which ABI we are using.
  7522. echo '#line 8600 "configure"' > conftest.$ac_ext
  7523. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7524. (eval $ac_compile) 2>&5
  7525. ac_status=$?
  7526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7527. (exit $ac_status); }; then
  7528. if test "$lt_cv_prog_gnu_ld" = yes; then
  7529. case `/usr/bin/file conftest.$ac_objext` in
  7530. *32-bit*)
  7531. LD="${LD-ld} -melf32bsmip"
  7532. ;;
  7533. *N32*)
  7534. LD="${LD-ld} -melf32bmipn32"
  7535. ;;
  7536. *64-bit*)
  7537. LD="${LD-ld} -melf64bmip"
  7538. ;;
  7539. esac
  7540. else
  7541. case `/usr/bin/file conftest.$ac_objext` in
  7542. *32-bit*)
  7543. LD="${LD-ld} -32"
  7544. ;;
  7545. *N32*)
  7546. LD="${LD-ld} -n32"
  7547. ;;
  7548. *64-bit*)
  7549. LD="${LD-ld} -64"
  7550. ;;
  7551. esac
  7552. fi
  7553. fi
  7554. rm -rf conftest*
  7555. ;;
  7556. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  7557. s390*-*linux*|sparc*-*linux*)
  7558. # Find out which ABI we are using.
  7559. echo 'int i;' > conftest.$ac_ext
  7560. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7561. (eval $ac_compile) 2>&5
  7562. ac_status=$?
  7563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7564. (exit $ac_status); }; then
  7565. case `/usr/bin/file conftest.o` in
  7566. *32-bit*)
  7567. case $host in
  7568. x86_64-*kfreebsd*-gnu)
  7569. LD="${LD-ld} -m elf_i386_fbsd"
  7570. ;;
  7571. x86_64-*linux*)
  7572. LD="${LD-ld} -m elf_i386"
  7573. ;;
  7574. ppc64-*linux*|powerpc64-*linux*)
  7575. LD="${LD-ld} -m elf32ppclinux"
  7576. ;;
  7577. s390x-*linux*)
  7578. LD="${LD-ld} -m elf_s390"
  7579. ;;
  7580. sparc64-*linux*)
  7581. LD="${LD-ld} -m elf32_sparc"
  7582. ;;
  7583. esac
  7584. ;;
  7585. *64-bit*)
  7586. case $host in
  7587. x86_64-*kfreebsd*-gnu)
  7588. LD="${LD-ld} -m elf_x86_64_fbsd"
  7589. ;;
  7590. x86_64-*linux*)
  7591. LD="${LD-ld} -m elf_x86_64"
  7592. ;;
  7593. ppc*-*linux*|powerpc*-*linux*)
  7594. LD="${LD-ld} -m elf64ppc"
  7595. ;;
  7596. s390*-*linux*)
  7597. LD="${LD-ld} -m elf64_s390"
  7598. ;;
  7599. sparc*-*linux*)
  7600. LD="${LD-ld} -m elf64_sparc"
  7601. ;;
  7602. esac
  7603. ;;
  7604. esac
  7605. fi
  7606. rm -rf conftest*
  7607. ;;
  7608. *-*-sco3.2v5*)
  7609. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7610. SAVE_CFLAGS="$CFLAGS"
  7611. CFLAGS="$CFLAGS -belf"
  7612. { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  7613. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  7614. if test "${lt_cv_cc_needs_belf+set}" = set; then
  7615. echo $ECHO_N "(cached) $ECHO_C" >&6
  7616. else
  7617. ac_ext=c
  7618. ac_cpp='$CPP $CPPFLAGS'
  7619. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7620. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7621. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7622. cat >conftest.$ac_ext <<_ACEOF
  7623. /* confdefs.h. */
  7624. _ACEOF
  7625. cat confdefs.h >>conftest.$ac_ext
  7626. cat >>conftest.$ac_ext <<_ACEOF
  7627. /* end confdefs.h. */
  7628. int
  7629. main ()
  7630. {
  7631. ;
  7632. return 0;
  7633. }
  7634. _ACEOF
  7635. rm -f conftest.$ac_objext conftest$ac_exeext
  7636. if { (ac_try="$ac_link"
  7637. case "(($ac_try" in
  7638. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7639. *) ac_try_echo=$ac_try;;
  7640. esac
  7641. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7642. (eval "$ac_link") 2>conftest.er1
  7643. ac_status=$?
  7644. grep -v '^ *+' conftest.er1 >conftest.err
  7645. rm -f conftest.er1
  7646. cat conftest.err >&5
  7647. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7648. (exit $ac_status); } && {
  7649. test -z "$ac_c_werror_flag" ||
  7650. test ! -s conftest.err
  7651. } && test -s conftest$ac_exeext &&
  7652. $as_test_x conftest$ac_exeext; then
  7653. lt_cv_cc_needs_belf=yes
  7654. else
  7655. echo "$as_me: failed program was:" >&5
  7656. sed 's/^/| /' conftest.$ac_ext >&5
  7657. lt_cv_cc_needs_belf=no
  7658. fi
  7659. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7660. conftest$ac_exeext conftest.$ac_ext
  7661. ac_ext=c
  7662. ac_cpp='$CPP $CPPFLAGS'
  7663. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7664. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7665. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7666. fi
  7667. { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  7668. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  7669. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  7670. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7671. CFLAGS="$SAVE_CFLAGS"
  7672. fi
  7673. ;;
  7674. sparc*-*solaris*)
  7675. # Find out which ABI we are using.
  7676. echo 'int i;' > conftest.$ac_ext
  7677. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7678. (eval $ac_compile) 2>&5
  7679. ac_status=$?
  7680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7681. (exit $ac_status); }; then
  7682. case `/usr/bin/file conftest.o` in
  7683. *64-bit*)
  7684. case $lt_cv_prog_gnu_ld in
  7685. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  7686. *)
  7687. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7688. LD="${LD-ld} -64"
  7689. fi
  7690. ;;
  7691. esac
  7692. ;;
  7693. esac
  7694. fi
  7695. rm -rf conftest*
  7696. ;;
  7697. *-*-cygwin* | *-*-mingw* | *-*-pw32*)
  7698. if test -n "$ac_tool_prefix"; then
  7699. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7700. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7701. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7702. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7703. if test "${ac_cv_prog_DLLTOOL+set}" = set; then
  7704. echo $ECHO_N "(cached) $ECHO_C" >&6
  7705. else
  7706. if test -n "$DLLTOOL"; then
  7707. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7708. else
  7709. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7710. for as_dir in $PATH
  7711. do
  7712. IFS=$as_save_IFS
  7713. test -z "$as_dir" && as_dir=.
  7714. for ac_exec_ext in '' $ac_executable_extensions; do
  7715. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7716. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7717. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7718. break 2
  7719. fi
  7720. done
  7721. done
  7722. IFS=$as_save_IFS
  7723. fi
  7724. fi
  7725. DLLTOOL=$ac_cv_prog_DLLTOOL
  7726. if test -n "$DLLTOOL"; then
  7727. { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
  7728. echo "${ECHO_T}$DLLTOOL" >&6; }
  7729. else
  7730. { echo "$as_me:$LINENO: result: no" >&5
  7731. echo "${ECHO_T}no" >&6; }
  7732. fi
  7733. fi
  7734. if test -z "$ac_cv_prog_DLLTOOL"; then
  7735. ac_ct_DLLTOOL=$DLLTOOL
  7736. # Extract the first word of "dlltool", so it can be a program name with args.
  7737. set dummy dlltool; ac_word=$2
  7738. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7739. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7740. if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
  7741. echo $ECHO_N "(cached) $ECHO_C" >&6
  7742. else
  7743. if test -n "$ac_ct_DLLTOOL"; then
  7744. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7745. else
  7746. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7747. for as_dir in $PATH
  7748. do
  7749. IFS=$as_save_IFS
  7750. test -z "$as_dir" && as_dir=.
  7751. for ac_exec_ext in '' $ac_executable_extensions; do
  7752. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7753. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7754. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7755. break 2
  7756. fi
  7757. done
  7758. done
  7759. IFS=$as_save_IFS
  7760. fi
  7761. fi
  7762. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7763. if test -n "$ac_ct_DLLTOOL"; then
  7764. { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
  7765. echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
  7766. else
  7767. { echo "$as_me:$LINENO: result: no" >&5
  7768. echo "${ECHO_T}no" >&6; }
  7769. fi
  7770. if test "x$ac_ct_DLLTOOL" = x; then
  7771. DLLTOOL="false"
  7772. else
  7773. case $cross_compiling:$ac_tool_warned in
  7774. yes:)
  7775. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  7776. whose name does not start with the host triplet. If you think this
  7777. configuration is useful to you, please write to [email protected]." >&5
  7778. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  7779. whose name does not start with the host triplet. If you think this
  7780. configuration is useful to you, please write to [email protected]." >&2;}
  7781. ac_tool_warned=yes ;;
  7782. esac
  7783. DLLTOOL=$ac_ct_DLLTOOL
  7784. fi
  7785. else
  7786. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7787. fi
  7788. if test -n "$ac_tool_prefix"; then
  7789. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7790. set dummy ${ac_tool_prefix}as; ac_word=$2
  7791. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7792. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7793. if test "${ac_cv_prog_AS+set}" = set; then
  7794. echo $ECHO_N "(cached) $ECHO_C" >&6
  7795. else
  7796. if test -n "$AS"; then
  7797. ac_cv_prog_AS="$AS" # Let the user override the test.
  7798. else
  7799. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7800. for as_dir in $PATH
  7801. do
  7802. IFS=$as_save_IFS
  7803. test -z "$as_dir" && as_dir=.
  7804. for ac_exec_ext in '' $ac_executable_extensions; do
  7805. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7806. ac_cv_prog_AS="${ac_tool_prefix}as"
  7807. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7808. break 2
  7809. fi
  7810. done
  7811. done
  7812. IFS=$as_save_IFS
  7813. fi
  7814. fi
  7815. AS=$ac_cv_prog_AS
  7816. if test -n "$AS"; then
  7817. { echo "$as_me:$LINENO: result: $AS" >&5
  7818. echo "${ECHO_T}$AS" >&6; }
  7819. else
  7820. { echo "$as_me:$LINENO: result: no" >&5
  7821. echo "${ECHO_T}no" >&6; }
  7822. fi
  7823. fi
  7824. if test -z "$ac_cv_prog_AS"; then
  7825. ac_ct_AS=$AS
  7826. # Extract the first word of "as", so it can be a program name with args.
  7827. set dummy as; ac_word=$2
  7828. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7829. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7830. if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
  7831. echo $ECHO_N "(cached) $ECHO_C" >&6
  7832. else
  7833. if test -n "$ac_ct_AS"; then
  7834. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7835. else
  7836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7837. for as_dir in $PATH
  7838. do
  7839. IFS=$as_save_IFS
  7840. test -z "$as_dir" && as_dir=.
  7841. for ac_exec_ext in '' $ac_executable_extensions; do
  7842. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7843. ac_cv_prog_ac_ct_AS="as"
  7844. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7845. break 2
  7846. fi
  7847. done
  7848. done
  7849. IFS=$as_save_IFS
  7850. fi
  7851. fi
  7852. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7853. if test -n "$ac_ct_AS"; then
  7854. { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
  7855. echo "${ECHO_T}$ac_ct_AS" >&6; }
  7856. else
  7857. { echo "$as_me:$LINENO: result: no" >&5
  7858. echo "${ECHO_T}no" >&6; }
  7859. fi
  7860. if test "x$ac_ct_AS" = x; then
  7861. AS="false"
  7862. else
  7863. case $cross_compiling:$ac_tool_warned in
  7864. yes:)
  7865. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  7866. whose name does not start with the host triplet. If you think this
  7867. configuration is useful to you, please write to [email protected]." >&5
  7868. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  7869. whose name does not start with the host triplet. If you think this
  7870. configuration is useful to you, please write to [email protected]." >&2;}
  7871. ac_tool_warned=yes ;;
  7872. esac
  7873. AS=$ac_ct_AS
  7874. fi
  7875. else
  7876. AS="$ac_cv_prog_AS"
  7877. fi
  7878. if test -n "$ac_tool_prefix"; then
  7879. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7880. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7881. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7882. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7883. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  7884. echo $ECHO_N "(cached) $ECHO_C" >&6
  7885. else
  7886. if test -n "$OBJDUMP"; then
  7887. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7888. else
  7889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7890. for as_dir in $PATH
  7891. do
  7892. IFS=$as_save_IFS
  7893. test -z "$as_dir" && as_dir=.
  7894. for ac_exec_ext in '' $ac_executable_extensions; do
  7895. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7896. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7897. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7898. break 2
  7899. fi
  7900. done
  7901. done
  7902. IFS=$as_save_IFS
  7903. fi
  7904. fi
  7905. OBJDUMP=$ac_cv_prog_OBJDUMP
  7906. if test -n "$OBJDUMP"; then
  7907. { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  7908. echo "${ECHO_T}$OBJDUMP" >&6; }
  7909. else
  7910. { echo "$as_me:$LINENO: result: no" >&5
  7911. echo "${ECHO_T}no" >&6; }
  7912. fi
  7913. fi
  7914. if test -z "$ac_cv_prog_OBJDUMP"; then
  7915. ac_ct_OBJDUMP=$OBJDUMP
  7916. # Extract the first word of "objdump", so it can be a program name with args.
  7917. set dummy objdump; ac_word=$2
  7918. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7919. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7920. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  7921. echo $ECHO_N "(cached) $ECHO_C" >&6
  7922. else
  7923. if test -n "$ac_ct_OBJDUMP"; then
  7924. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7925. else
  7926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7927. for as_dir in $PATH
  7928. do
  7929. IFS=$as_save_IFS
  7930. test -z "$as_dir" && as_dir=.
  7931. for ac_exec_ext in '' $ac_executable_extensions; do
  7932. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7933. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7934. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7935. break 2
  7936. fi
  7937. done
  7938. done
  7939. IFS=$as_save_IFS
  7940. fi
  7941. fi
  7942. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7943. if test -n "$ac_ct_OBJDUMP"; then
  7944. { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  7945. echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
  7946. else
  7947. { echo "$as_me:$LINENO: result: no" >&5
  7948. echo "${ECHO_T}no" >&6; }
  7949. fi
  7950. if test "x$ac_ct_OBJDUMP" = x; then
  7951. OBJDUMP="false"
  7952. else
  7953. case $cross_compiling:$ac_tool_warned in
  7954. yes:)
  7955. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  7956. whose name does not start with the host triplet. If you think this
  7957. configuration is useful to you, please write to [email protected]." >&5
  7958. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  7959. whose name does not start with the host triplet. If you think this
  7960. configuration is useful to you, please write to [email protected]." >&2;}
  7961. ac_tool_warned=yes ;;
  7962. esac
  7963. OBJDUMP=$ac_ct_OBJDUMP
  7964. fi
  7965. else
  7966. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7967. fi
  7968. ;;
  7969. esac
  7970. need_locks="$enable_libtool_lock"
  7971. for ac_header in dlfcn.h
  7972. do
  7973. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7974. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7975. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7976. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7977. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7978. echo $ECHO_N "(cached) $ECHO_C" >&6
  7979. fi
  7980. ac_res=`eval echo '${'$as_ac_Header'}'`
  7981. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7982. echo "${ECHO_T}$ac_res" >&6; }
  7983. else
  7984. # Is the header compilable?
  7985. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7986. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7987. cat >conftest.$ac_ext <<_ACEOF
  7988. /* confdefs.h. */
  7989. _ACEOF
  7990. cat confdefs.h >>conftest.$ac_ext
  7991. cat >>conftest.$ac_ext <<_ACEOF
  7992. /* end confdefs.h. */
  7993. $ac_includes_default
  7994. #include <$ac_header>
  7995. _ACEOF
  7996. rm -f conftest.$ac_objext
  7997. if { (ac_try="$ac_compile"
  7998. case "(($ac_try" in
  7999. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8000. *) ac_try_echo=$ac_try;;
  8001. esac
  8002. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8003. (eval "$ac_compile") 2>conftest.er1
  8004. ac_status=$?
  8005. grep -v '^ *+' conftest.er1 >conftest.err
  8006. rm -f conftest.er1
  8007. cat conftest.err >&5
  8008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8009. (exit $ac_status); } && {
  8010. test -z "$ac_c_werror_flag" ||
  8011. test ! -s conftest.err
  8012. } && test -s conftest.$ac_objext; then
  8013. ac_header_compiler=yes
  8014. else
  8015. echo "$as_me: failed program was:" >&5
  8016. sed 's/^/| /' conftest.$ac_ext >&5
  8017. ac_header_compiler=no
  8018. fi
  8019. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8020. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8021. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8022. # Is the header present?
  8023. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8024. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8025. cat >conftest.$ac_ext <<_ACEOF
  8026. /* confdefs.h. */
  8027. _ACEOF
  8028. cat confdefs.h >>conftest.$ac_ext
  8029. cat >>conftest.$ac_ext <<_ACEOF
  8030. /* end confdefs.h. */
  8031. #include <$ac_header>
  8032. _ACEOF
  8033. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8034. case "(($ac_try" in
  8035. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8036. *) ac_try_echo=$ac_try;;
  8037. esac
  8038. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8039. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8040. ac_status=$?
  8041. grep -v '^ *+' conftest.er1 >conftest.err
  8042. rm -f conftest.er1
  8043. cat conftest.err >&5
  8044. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8045. (exit $ac_status); } >/dev/null && {
  8046. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8047. test ! -s conftest.err
  8048. }; then
  8049. ac_header_preproc=yes
  8050. else
  8051. echo "$as_me: failed program was:" >&5
  8052. sed 's/^/| /' conftest.$ac_ext >&5
  8053. ac_header_preproc=no
  8054. fi
  8055. rm -f conftest.err conftest.$ac_ext
  8056. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8057. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8058. # So? What about this header?
  8059. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8060. yes:no: )
  8061. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8062. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8063. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8064. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8065. ac_header_preproc=yes
  8066. ;;
  8067. no:yes:* )
  8068. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8069. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8070. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8071. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8072. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8073. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8074. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8075. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8076. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8077. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8078. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8079. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8080. ( cat <<\_ASBOX
  8081. ## ------------------------------------------------------------------------ ##
  8082. ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
  8083. ## ------------------------------------------------------------------------ ##
  8084. _ASBOX
  8085. ) | sed "s/^/$as_me: WARNING: /" >&2
  8086. ;;
  8087. esac
  8088. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8089. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8090. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8091. echo $ECHO_N "(cached) $ECHO_C" >&6
  8092. else
  8093. eval "$as_ac_Header=\$ac_header_preproc"
  8094. fi
  8095. ac_res=`eval echo '${'$as_ac_Header'}'`
  8096. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8097. echo "${ECHO_T}$ac_res" >&6; }
  8098. fi
  8099. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8100. cat >>confdefs.h <<_ACEOF
  8101. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8102. _ACEOF
  8103. fi
  8104. done
  8105. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  8106. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  8107. (test "X$CXX" != "Xg++"))) ; then
  8108. true
  8109. fi
  8110. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  8111. # find the maximum length of command line arguments
  8112. { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  8113. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  8114. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  8115. echo $ECHO_N "(cached) $ECHO_C" >&6
  8116. else
  8117. i=0
  8118. teststring="ABCD"
  8119. case $build_os in
  8120. msdosdjgpp*)
  8121. # On DJGPP, this test can blow up pretty badly due to problems in libc
  8122. # (any single argument exceeding 2000 bytes causes a buffer overrun
  8123. # during glob expansion). Even if it were fixed, the result of this
  8124. # check would be larger than it should be.
  8125. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  8126. ;;
  8127. gnu*)
  8128. # Under GNU Hurd, this test is not required because there is
  8129. # no limit to the length of command line arguments.
  8130. # Libtool will interpret -1 as no limit whatsoever
  8131. lt_cv_sys_max_cmd_len=-1;
  8132. ;;
  8133. cygwin* | mingw*)
  8134. # On Win9x/ME, this test blows up -- it succeeds, but takes
  8135. # about 5 minutes as the teststring grows exponentially.
  8136. # Worse, since 9x/ME are not pre-emptively multitasking,
  8137. # you end up with a "frozen" computer, even though with patience
  8138. # the test eventually succeeds (with a max line length of 256k).
  8139. # Instead, let's just punt: use the minimum linelength reported by
  8140. # all of the supported platforms: 8192 (on NT/2K/XP).
  8141. lt_cv_sys_max_cmd_len=8192;
  8142. ;;
  8143. amigaos*)
  8144. # On AmigaOS with pdksh, this test takes hours, literally.
  8145. # So we just punt and use a minimum line length of 8192.
  8146. lt_cv_sys_max_cmd_len=8192;
  8147. ;;
  8148. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  8149. # This has been around since 386BSD, at least. Likely further.
  8150. if test -x /sbin/sysctl; then
  8151. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  8152. elif test -x /usr/sbin/sysctl; then
  8153. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  8154. else
  8155. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  8156. fi
  8157. # And add a safety zone
  8158. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  8159. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  8160. ;;
  8161. interix*)
  8162. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  8163. lt_cv_sys_max_cmd_len=196608
  8164. ;;
  8165. osf*)
  8166. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  8167. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  8168. # nice to cause kernel panics so lets avoid the loop below.
  8169. # First set a reasonable default.
  8170. lt_cv_sys_max_cmd_len=16384
  8171. #
  8172. if test -x /sbin/sysconfig; then
  8173. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  8174. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  8175. esac
  8176. fi
  8177. ;;
  8178. sco3.2v5*)
  8179. lt_cv_sys_max_cmd_len=102400
  8180. ;;
  8181. sysv5* | sco5v6* | sysv4.2uw2*)
  8182. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  8183. if test -n "$kargmax"; then
  8184. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  8185. else
  8186. lt_cv_sys_max_cmd_len=32768
  8187. fi
  8188. ;;
  8189. *)
  8190. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  8191. if test -n "$lt_cv_sys_max_cmd_len"; then
  8192. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  8193. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  8194. else
  8195. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  8196. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  8197. = "XX$teststring") >/dev/null 2>&1 &&
  8198. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  8199. lt_cv_sys_max_cmd_len=$new_result &&
  8200. test $i != 17 # 1/2 MB should be enough
  8201. do
  8202. i=`expr $i + 1`
  8203. teststring=$teststring$teststring
  8204. done
  8205. teststring=
  8206. # Add a significant safety factor because C++ compilers can tack on massive
  8207. # amounts of additional arguments before passing them to the linker.
  8208. # It appears as though 1/2 is a usable value.
  8209. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  8210. fi
  8211. ;;
  8212. esac
  8213. fi
  8214. if test -n $lt_cv_sys_max_cmd_len ; then
  8215. { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  8216. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  8217. else
  8218. { echo "$as_me:$LINENO: result: none" >&5
  8219. echo "${ECHO_T}none" >&6; }
  8220. fi
  8221. # Check for command to grab the raw symbol name followed by C symbol from nm.
  8222. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  8223. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  8224. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  8225. echo $ECHO_N "(cached) $ECHO_C" >&6
  8226. else
  8227. # These are sane defaults that work on at least a few old systems.
  8228. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  8229. # Character class describing NM global symbol codes.
  8230. symcode='[BCDEGRST]'
  8231. # Regexp to match symbols that can be accessed directly from C.
  8232. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  8233. # Transform an extracted symbol line into a proper C declaration
  8234. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  8235. # Transform an extracted symbol line into symbol name and symbol address
  8236. 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'"
  8237. # Define system-specific variables.
  8238. case $host_os in
  8239. aix*)
  8240. symcode='[BCDT]'
  8241. ;;
  8242. cygwin* | mingw* | pw32*)
  8243. symcode='[ABCDGISTW]'
  8244. ;;
  8245. hpux*) # Its linker distinguishes data from code symbols
  8246. if test "$host_cpu" = ia64; then
  8247. symcode='[ABCDEGRST]'
  8248. fi
  8249. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  8250. 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'"
  8251. ;;
  8252. linux* | k*bsd*-gnu)
  8253. if test "$host_cpu" = ia64; then
  8254. symcode='[ABCDGIRSTW]'
  8255. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  8256. 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'"
  8257. fi
  8258. ;;
  8259. irix* | nonstopux*)
  8260. symcode='[BCDEGRST]'
  8261. ;;
  8262. osf*)
  8263. symcode='[BCDEGQRST]'
  8264. ;;
  8265. solaris*)
  8266. symcode='[BDRT]'
  8267. ;;
  8268. sco3.2v5*)
  8269. symcode='[DT]'
  8270. ;;
  8271. sysv4.2uw2*)
  8272. symcode='[DT]'
  8273. ;;
  8274. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  8275. symcode='[ABDT]'
  8276. ;;
  8277. sysv4)
  8278. symcode='[DFNSTU]'
  8279. ;;
  8280. esac
  8281. # Handle CRLF in mingw tool chain
  8282. opt_cr=
  8283. case $build_os in
  8284. mingw*)
  8285. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  8286. ;;
  8287. esac
  8288. # If we're using GNU nm, then use its standard symbol codes.
  8289. case `$NM -V 2>&1` in
  8290. *GNU* | *'with BFD'*)
  8291. symcode='[ABCDGIRSTW]' ;;
  8292. esac
  8293. # Try without a prefix undercore, then with it.
  8294. for ac_symprfx in "" "_"; do
  8295. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  8296. symxfrm="\\1 $ac_symprfx\\2 \\2"
  8297. # Write the raw and C identifiers.
  8298. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  8299. # Check to see that the pipe works correctly.
  8300. pipe_works=no
  8301. rm -f conftest*
  8302. cat > conftest.$ac_ext <<EOF
  8303. #ifdef __cplusplus
  8304. extern "C" {
  8305. #endif
  8306. char nm_test_var;
  8307. void nm_test_func(){}
  8308. #ifdef __cplusplus
  8309. }
  8310. #endif
  8311. int main(){nm_test_var='a';nm_test_func();return(0);}
  8312. EOF
  8313. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8314. (eval $ac_compile) 2>&5
  8315. ac_status=$?
  8316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8317. (exit $ac_status); }; then
  8318. # Now try to grab the symbols.
  8319. nlist=conftest.nm
  8320. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  8321. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  8322. ac_status=$?
  8323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8324. (exit $ac_status); } && test -s "$nlist"; then
  8325. # Try sorting and uniquifying the output.
  8326. if sort "$nlist" | uniq > "$nlist"T; then
  8327. mv -f "$nlist"T "$nlist"
  8328. else
  8329. rm -f "$nlist"T
  8330. fi
  8331. # Make sure that we snagged all the symbols we need.
  8332. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  8333. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  8334. cat <<EOF > conftest.$ac_ext
  8335. #ifdef __cplusplus
  8336. extern "C" {
  8337. #endif
  8338. EOF
  8339. # Now generate the symbol file.
  8340. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  8341. cat <<EOF >> conftest.$ac_ext
  8342. #if defined (__STDC__) && __STDC__
  8343. # define lt_ptr_t void *
  8344. #else
  8345. # define lt_ptr_t char *
  8346. # define const
  8347. #endif
  8348. /* The mapping between symbol names and symbols. */
  8349. const struct {
  8350. const char *name;
  8351. lt_ptr_t address;
  8352. }
  8353. lt_preloaded_symbols[] =
  8354. {
  8355. EOF
  8356. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  8357. cat <<\EOF >> conftest.$ac_ext
  8358. {0, (lt_ptr_t) 0}
  8359. };
  8360. #ifdef __cplusplus
  8361. }
  8362. #endif
  8363. EOF
  8364. # Now try linking the two files.
  8365. mv conftest.$ac_objext conftstm.$ac_objext
  8366. lt_save_LIBS="$LIBS"
  8367. lt_save_CFLAGS="$CFLAGS"
  8368. LIBS="conftstm.$ac_objext"
  8369. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  8370. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8371. (eval $ac_link) 2>&5
  8372. ac_status=$?
  8373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8374. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  8375. pipe_works=yes
  8376. fi
  8377. LIBS="$lt_save_LIBS"
  8378. CFLAGS="$lt_save_CFLAGS"
  8379. else
  8380. echo "cannot find nm_test_func in $nlist" >&5
  8381. fi
  8382. else
  8383. echo "cannot find nm_test_var in $nlist" >&5
  8384. fi
  8385. else
  8386. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  8387. fi
  8388. else
  8389. echo "$progname: failed program was:" >&5
  8390. cat conftest.$ac_ext >&5
  8391. fi
  8392. rm -rf conftest* conftst*
  8393. # Do not use the global_symbol_pipe unless it works.
  8394. if test "$pipe_works" = yes; then
  8395. break
  8396. else
  8397. lt_cv_sys_global_symbol_pipe=
  8398. fi
  8399. done
  8400. fi
  8401. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  8402. lt_cv_sys_global_symbol_to_cdecl=
  8403. fi
  8404. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  8405. { echo "$as_me:$LINENO: result: failed" >&5
  8406. echo "${ECHO_T}failed" >&6; }
  8407. else
  8408. { echo "$as_me:$LINENO: result: ok" >&5
  8409. echo "${ECHO_T}ok" >&6; }
  8410. fi
  8411. { echo "$as_me:$LINENO: checking for objdir" >&5
  8412. echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  8413. if test "${lt_cv_objdir+set}" = set; then
  8414. echo $ECHO_N "(cached) $ECHO_C" >&6
  8415. else
  8416. rm -f .libs 2>/dev/null
  8417. mkdir .libs 2>/dev/null
  8418. if test -d .libs; then
  8419. lt_cv_objdir=.libs
  8420. else
  8421. # MS-DOS does not allow filenames that begin with a dot.
  8422. lt_cv_objdir=_libs
  8423. fi
  8424. rmdir .libs 2>/dev/null
  8425. fi
  8426. { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  8427. echo "${ECHO_T}$lt_cv_objdir" >&6; }
  8428. objdir=$lt_cv_objdir
  8429. case $host_os in
  8430. aix3*)
  8431. # AIX sometimes has problems with the GCC collect2 program. For some
  8432. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8433. # vanish in a puff of smoke.
  8434. if test "X${COLLECT_NAMES+set}" != Xset; then
  8435. COLLECT_NAMES=
  8436. export COLLECT_NAMES
  8437. fi
  8438. ;;
  8439. esac
  8440. # Sed substitution that helps us do robust quoting. It backslashifies
  8441. # metacharacters that are still active within double-quoted strings.
  8442. Xsed='sed -e 1s/^X//'
  8443. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  8444. # Same as above, but do not quote variable references.
  8445. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  8446. # Sed substitution to delay expansion of an escaped shell variable in a
  8447. # double_quote_subst'ed string.
  8448. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  8449. # Sed substitution to avoid accidental globbing in evaled expressions
  8450. no_glob_subst='s/\*/\\\*/g'
  8451. # Constants:
  8452. rm="rm -f"
  8453. # Global variables:
  8454. default_ofile=libtool
  8455. can_build_shared=yes
  8456. # All known linkers require a `.a' archive for static linking (except MSVC,
  8457. # which needs '.lib').
  8458. libext=a
  8459. ltmain="$ac_aux_dir/ltmain.sh"
  8460. ofile="$default_ofile"
  8461. with_gnu_ld="$lt_cv_prog_gnu_ld"
  8462. if test -n "$ac_tool_prefix"; then
  8463. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  8464. set dummy ${ac_tool_prefix}ar; ac_word=$2
  8465. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8466. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8467. if test "${ac_cv_prog_AR+set}" = set; then
  8468. echo $ECHO_N "(cached) $ECHO_C" >&6
  8469. else
  8470. if test -n "$AR"; then
  8471. ac_cv_prog_AR="$AR" # Let the user override the test.
  8472. else
  8473. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8474. for as_dir in $PATH
  8475. do
  8476. IFS=$as_save_IFS
  8477. test -z "$as_dir" && as_dir=.
  8478. for ac_exec_ext in '' $ac_executable_extensions; do
  8479. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8480. ac_cv_prog_AR="${ac_tool_prefix}ar"
  8481. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8482. break 2
  8483. fi
  8484. done
  8485. done
  8486. IFS=$as_save_IFS
  8487. fi
  8488. fi
  8489. AR=$ac_cv_prog_AR
  8490. if test -n "$AR"; then
  8491. { echo "$as_me:$LINENO: result: $AR" >&5
  8492. echo "${ECHO_T}$AR" >&6; }
  8493. else
  8494. { echo "$as_me:$LINENO: result: no" >&5
  8495. echo "${ECHO_T}no" >&6; }
  8496. fi
  8497. fi
  8498. if test -z "$ac_cv_prog_AR"; then
  8499. ac_ct_AR=$AR
  8500. # Extract the first word of "ar", so it can be a program name with args.
  8501. set dummy ar; ac_word=$2
  8502. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8503. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8504. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  8505. echo $ECHO_N "(cached) $ECHO_C" >&6
  8506. else
  8507. if test -n "$ac_ct_AR"; then
  8508. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  8509. else
  8510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8511. for as_dir in $PATH
  8512. do
  8513. IFS=$as_save_IFS
  8514. test -z "$as_dir" && as_dir=.
  8515. for ac_exec_ext in '' $ac_executable_extensions; do
  8516. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8517. ac_cv_prog_ac_ct_AR="ar"
  8518. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8519. break 2
  8520. fi
  8521. done
  8522. done
  8523. IFS=$as_save_IFS
  8524. fi
  8525. fi
  8526. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  8527. if test -n "$ac_ct_AR"; then
  8528. { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  8529. echo "${ECHO_T}$ac_ct_AR" >&6; }
  8530. else
  8531. { echo "$as_me:$LINENO: result: no" >&5
  8532. echo "${ECHO_T}no" >&6; }
  8533. fi
  8534. if test "x$ac_ct_AR" = x; then
  8535. AR="false"
  8536. else
  8537. case $cross_compiling:$ac_tool_warned in
  8538. yes:)
  8539. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  8540. whose name does not start with the host triplet. If you think this
  8541. configuration is useful to you, please write to [email protected]." >&5
  8542. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  8543. whose name does not start with the host triplet. If you think this
  8544. configuration is useful to you, please write to [email protected]." >&2;}
  8545. ac_tool_warned=yes ;;
  8546. esac
  8547. AR=$ac_ct_AR
  8548. fi
  8549. else
  8550. AR="$ac_cv_prog_AR"
  8551. fi
  8552. if test -n "$ac_tool_prefix"; then
  8553. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  8554. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  8555. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8556. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8557. if test "${ac_cv_prog_RANLIB+set}" = set; then
  8558. echo $ECHO_N "(cached) $ECHO_C" >&6
  8559. else
  8560. if test -n "$RANLIB"; then
  8561. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  8562. else
  8563. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8564. for as_dir in $PATH
  8565. do
  8566. IFS=$as_save_IFS
  8567. test -z "$as_dir" && as_dir=.
  8568. for ac_exec_ext in '' $ac_executable_extensions; do
  8569. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8570. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  8571. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8572. break 2
  8573. fi
  8574. done
  8575. done
  8576. IFS=$as_save_IFS
  8577. fi
  8578. fi
  8579. RANLIB=$ac_cv_prog_RANLIB
  8580. if test -n "$RANLIB"; then
  8581. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  8582. echo "${ECHO_T}$RANLIB" >&6; }
  8583. else
  8584. { echo "$as_me:$LINENO: result: no" >&5
  8585. echo "${ECHO_T}no" >&6; }
  8586. fi
  8587. fi
  8588. if test -z "$ac_cv_prog_RANLIB"; then
  8589. ac_ct_RANLIB=$RANLIB
  8590. # Extract the first word of "ranlib", so it can be a program name with args.
  8591. set dummy ranlib; ac_word=$2
  8592. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8593. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8594. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  8595. echo $ECHO_N "(cached) $ECHO_C" >&6
  8596. else
  8597. if test -n "$ac_ct_RANLIB"; then
  8598. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  8599. else
  8600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8601. for as_dir in $PATH
  8602. do
  8603. IFS=$as_save_IFS
  8604. test -z "$as_dir" && as_dir=.
  8605. for ac_exec_ext in '' $ac_executable_extensions; do
  8606. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8607. ac_cv_prog_ac_ct_RANLIB="ranlib"
  8608. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8609. break 2
  8610. fi
  8611. done
  8612. done
  8613. IFS=$as_save_IFS
  8614. fi
  8615. fi
  8616. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  8617. if test -n "$ac_ct_RANLIB"; then
  8618. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  8619. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  8620. else
  8621. { echo "$as_me:$LINENO: result: no" >&5
  8622. echo "${ECHO_T}no" >&6; }
  8623. fi
  8624. if test "x$ac_ct_RANLIB" = x; then
  8625. RANLIB=":"
  8626. else
  8627. case $cross_compiling:$ac_tool_warned in
  8628. yes:)
  8629. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  8630. whose name does not start with the host triplet. If you think this
  8631. configuration is useful to you, please write to [email protected]." >&5
  8632. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  8633. whose name does not start with the host triplet. If you think this
  8634. configuration is useful to you, please write to [email protected]." >&2;}
  8635. ac_tool_warned=yes ;;
  8636. esac
  8637. RANLIB=$ac_ct_RANLIB
  8638. fi
  8639. else
  8640. RANLIB="$ac_cv_prog_RANLIB"
  8641. fi
  8642. if test -n "$ac_tool_prefix"; then
  8643. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  8644. set dummy ${ac_tool_prefix}strip; ac_word=$2
  8645. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8646. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8647. if test "${ac_cv_prog_STRIP+set}" = set; then
  8648. echo $ECHO_N "(cached) $ECHO_C" >&6
  8649. else
  8650. if test -n "$STRIP"; then
  8651. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8652. else
  8653. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8654. for as_dir in $PATH
  8655. do
  8656. IFS=$as_save_IFS
  8657. test -z "$as_dir" && as_dir=.
  8658. for ac_exec_ext in '' $ac_executable_extensions; do
  8659. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8660. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  8661. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8662. break 2
  8663. fi
  8664. done
  8665. done
  8666. IFS=$as_save_IFS
  8667. fi
  8668. fi
  8669. STRIP=$ac_cv_prog_STRIP
  8670. if test -n "$STRIP"; then
  8671. { echo "$as_me:$LINENO: result: $STRIP" >&5
  8672. echo "${ECHO_T}$STRIP" >&6; }
  8673. else
  8674. { echo "$as_me:$LINENO: result: no" >&5
  8675. echo "${ECHO_T}no" >&6; }
  8676. fi
  8677. fi
  8678. if test -z "$ac_cv_prog_STRIP"; then
  8679. ac_ct_STRIP=$STRIP
  8680. # Extract the first word of "strip", so it can be a program name with args.
  8681. set dummy strip; ac_word=$2
  8682. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8683. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8684. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  8685. echo $ECHO_N "(cached) $ECHO_C" >&6
  8686. else
  8687. if test -n "$ac_ct_STRIP"; then
  8688. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  8689. else
  8690. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8691. for as_dir in $PATH
  8692. do
  8693. IFS=$as_save_IFS
  8694. test -z "$as_dir" && as_dir=.
  8695. for ac_exec_ext in '' $ac_executable_extensions; do
  8696. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8697. ac_cv_prog_ac_ct_STRIP="strip"
  8698. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8699. break 2
  8700. fi
  8701. done
  8702. done
  8703. IFS=$as_save_IFS
  8704. fi
  8705. fi
  8706. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  8707. if test -n "$ac_ct_STRIP"; then
  8708. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  8709. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  8710. else
  8711. { echo "$as_me:$LINENO: result: no" >&5
  8712. echo "${ECHO_T}no" >&6; }
  8713. fi
  8714. if test "x$ac_ct_STRIP" = x; then
  8715. STRIP=":"
  8716. else
  8717. case $cross_compiling:$ac_tool_warned in
  8718. yes:)
  8719. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  8720. whose name does not start with the host triplet. If you think this
  8721. configuration is useful to you, please write to [email protected]." >&5
  8722. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  8723. whose name does not start with the host triplet. If you think this
  8724. configuration is useful to you, please write to [email protected]." >&2;}
  8725. ac_tool_warned=yes ;;
  8726. esac
  8727. STRIP=$ac_ct_STRIP
  8728. fi
  8729. else
  8730. STRIP="$ac_cv_prog_STRIP"
  8731. fi
  8732. old_CC="$CC"
  8733. old_CFLAGS="$CFLAGS"
  8734. # Set sane defaults for various variables
  8735. test -z "$AR" && AR=ar
  8736. test -z "$AR_FLAGS" && AR_FLAGS=cru
  8737. test -z "$AS" && AS=as
  8738. test -z "$CC" && CC=cc
  8739. test -z "$LTCC" && LTCC=$CC
  8740. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8741. test -z "$DLLTOOL" && DLLTOOL=dlltool
  8742. test -z "$LD" && LD=ld
  8743. test -z "$LN_S" && LN_S="ln -s"
  8744. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8745. test -z "$NM" && NM=nm
  8746. test -z "$SED" && SED=sed
  8747. test -z "$OBJDUMP" && OBJDUMP=objdump
  8748. test -z "$RANLIB" && RANLIB=:
  8749. test -z "$STRIP" && STRIP=:
  8750. test -z "$ac_objext" && ac_objext=o
  8751. # Determine commands to create old-style static archives.
  8752. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  8753. old_postinstall_cmds='chmod 644 $oldlib'
  8754. old_postuninstall_cmds=
  8755. if test -n "$RANLIB"; then
  8756. case $host_os in
  8757. openbsd*)
  8758. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  8759. ;;
  8760. *)
  8761. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  8762. ;;
  8763. esac
  8764. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  8765. fi
  8766. for cc_temp in $compiler""; do
  8767. case $cc_temp in
  8768. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8769. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8770. \-*) ;;
  8771. *) break;;
  8772. esac
  8773. done
  8774. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  8775. # Only perform the check for file, if the check method requires it
  8776. case $deplibs_check_method in
  8777. file_magic*)
  8778. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8779. { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  8780. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  8781. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  8782. echo $ECHO_N "(cached) $ECHO_C" >&6
  8783. else
  8784. case $MAGIC_CMD in
  8785. [\\/*] | ?:[\\/]*)
  8786. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8787. ;;
  8788. *)
  8789. lt_save_MAGIC_CMD="$MAGIC_CMD"
  8790. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8791. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8792. for ac_dir in $ac_dummy; do
  8793. IFS="$lt_save_ifs"
  8794. test -z "$ac_dir" && ac_dir=.
  8795. if test -f $ac_dir/${ac_tool_prefix}file; then
  8796. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  8797. if test -n "$file_magic_test_file"; then
  8798. case $deplibs_check_method in
  8799. "file_magic "*)
  8800. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8801. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8802. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8803. $EGREP "$file_magic_regex" > /dev/null; then
  8804. :
  8805. else
  8806. cat <<EOF 1>&2
  8807. *** Warning: the command libtool uses to detect shared libraries,
  8808. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8809. *** The result is that libtool may fail to recognize shared libraries
  8810. *** as such. This will affect the creation of libtool libraries that
  8811. *** depend on shared libraries, but programs linked with such libtool
  8812. *** libraries will work regardless of this problem. Nevertheless, you
  8813. *** may want to report the problem to your system manager and/or to
  8814. *** [email protected]
  8815. EOF
  8816. fi ;;
  8817. esac
  8818. fi
  8819. break
  8820. fi
  8821. done
  8822. IFS="$lt_save_ifs"
  8823. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8824. ;;
  8825. esac
  8826. fi
  8827. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8828. if test -n "$MAGIC_CMD"; then
  8829. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  8830. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  8831. else
  8832. { echo "$as_me:$LINENO: result: no" >&5
  8833. echo "${ECHO_T}no" >&6; }
  8834. fi
  8835. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8836. if test -n "$ac_tool_prefix"; then
  8837. { echo "$as_me:$LINENO: checking for file" >&5
  8838. echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  8839. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  8840. echo $ECHO_N "(cached) $ECHO_C" >&6
  8841. else
  8842. case $MAGIC_CMD in
  8843. [\\/*] | ?:[\\/]*)
  8844. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8845. ;;
  8846. *)
  8847. lt_save_MAGIC_CMD="$MAGIC_CMD"
  8848. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8849. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8850. for ac_dir in $ac_dummy; do
  8851. IFS="$lt_save_ifs"
  8852. test -z "$ac_dir" && ac_dir=.
  8853. if test -f $ac_dir/file; then
  8854. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  8855. if test -n "$file_magic_test_file"; then
  8856. case $deplibs_check_method in
  8857. "file_magic "*)
  8858. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8859. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8860. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8861. $EGREP "$file_magic_regex" > /dev/null; then
  8862. :
  8863. else
  8864. cat <<EOF 1>&2
  8865. *** Warning: the command libtool uses to detect shared libraries,
  8866. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8867. *** The result is that libtool may fail to recognize shared libraries
  8868. *** as such. This will affect the creation of libtool libraries that
  8869. *** depend on shared libraries, but programs linked with such libtool
  8870. *** libraries will work regardless of this problem. Nevertheless, you
  8871. *** may want to report the problem to your system manager and/or to
  8872. *** [email protected]
  8873. EOF
  8874. fi ;;
  8875. esac
  8876. fi
  8877. break
  8878. fi
  8879. done
  8880. IFS="$lt_save_ifs"
  8881. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8882. ;;
  8883. esac
  8884. fi
  8885. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8886. if test -n "$MAGIC_CMD"; then
  8887. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  8888. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  8889. else
  8890. { echo "$as_me:$LINENO: result: no" >&5
  8891. echo "${ECHO_T}no" >&6; }
  8892. fi
  8893. else
  8894. MAGIC_CMD=:
  8895. fi
  8896. fi
  8897. fi
  8898. ;;
  8899. esac
  8900. case $host_os in
  8901. rhapsody* | darwin*)
  8902. if test -n "$ac_tool_prefix"; then
  8903. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  8904. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  8905. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8906. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8907. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  8908. echo $ECHO_N "(cached) $ECHO_C" >&6
  8909. else
  8910. if test -n "$DSYMUTIL"; then
  8911. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  8912. else
  8913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8914. for as_dir in $PATH
  8915. do
  8916. IFS=$as_save_IFS
  8917. test -z "$as_dir" && as_dir=.
  8918. for ac_exec_ext in '' $ac_executable_extensions; do
  8919. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8920. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  8921. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8922. break 2
  8923. fi
  8924. done
  8925. done
  8926. IFS=$as_save_IFS
  8927. fi
  8928. fi
  8929. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  8930. if test -n "$DSYMUTIL"; then
  8931. { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  8932. echo "${ECHO_T}$DSYMUTIL" >&6; }
  8933. else
  8934. { echo "$as_me:$LINENO: result: no" >&5
  8935. echo "${ECHO_T}no" >&6; }
  8936. fi
  8937. fi
  8938. if test -z "$ac_cv_prog_DSYMUTIL"; then
  8939. ac_ct_DSYMUTIL=$DSYMUTIL
  8940. # Extract the first word of "dsymutil", so it can be a program name with args.
  8941. set dummy dsymutil; ac_word=$2
  8942. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8943. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8944. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  8945. echo $ECHO_N "(cached) $ECHO_C" >&6
  8946. else
  8947. if test -n "$ac_ct_DSYMUTIL"; then
  8948. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  8949. else
  8950. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8951. for as_dir in $PATH
  8952. do
  8953. IFS=$as_save_IFS
  8954. test -z "$as_dir" && as_dir=.
  8955. for ac_exec_ext in '' $ac_executable_extensions; do
  8956. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8957. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  8958. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8959. break 2
  8960. fi
  8961. done
  8962. done
  8963. IFS=$as_save_IFS
  8964. fi
  8965. fi
  8966. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  8967. if test -n "$ac_ct_DSYMUTIL"; then
  8968. { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  8969. echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
  8970. else
  8971. { echo "$as_me:$LINENO: result: no" >&5
  8972. echo "${ECHO_T}no" >&6; }
  8973. fi
  8974. if test "x$ac_ct_DSYMUTIL" = x; then
  8975. DSYMUTIL=":"
  8976. else
  8977. case $cross_compiling:$ac_tool_warned in
  8978. yes:)
  8979. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  8980. whose name does not start with the host triplet. If you think this
  8981. configuration is useful to you, please write to [email protected]." >&5
  8982. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  8983. whose name does not start with the host triplet. If you think this
  8984. configuration is useful to you, please write to [email protected]." >&2;}
  8985. ac_tool_warned=yes ;;
  8986. esac
  8987. DSYMUTIL=$ac_ct_DSYMUTIL
  8988. fi
  8989. else
  8990. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  8991. fi
  8992. if test -n "$ac_tool_prefix"; then
  8993. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  8994. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  8995. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8996. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8997. if test "${ac_cv_prog_NMEDIT+set}" = set; then
  8998. echo $ECHO_N "(cached) $ECHO_C" >&6
  8999. else
  9000. if test -n "$NMEDIT"; then
  9001. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  9002. else
  9003. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9004. for as_dir in $PATH
  9005. do
  9006. IFS=$as_save_IFS
  9007. test -z "$as_dir" && as_dir=.
  9008. for ac_exec_ext in '' $ac_executable_extensions; do
  9009. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9010. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  9011. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9012. break 2
  9013. fi
  9014. done
  9015. done
  9016. IFS=$as_save_IFS
  9017. fi
  9018. fi
  9019. NMEDIT=$ac_cv_prog_NMEDIT
  9020. if test -n "$NMEDIT"; then
  9021. { echo "$as_me:$LINENO: result: $NMEDIT" >&5
  9022. echo "${ECHO_T}$NMEDIT" >&6; }
  9023. else
  9024. { echo "$as_me:$LINENO: result: no" >&5
  9025. echo "${ECHO_T}no" >&6; }
  9026. fi
  9027. fi
  9028. if test -z "$ac_cv_prog_NMEDIT"; then
  9029. ac_ct_NMEDIT=$NMEDIT
  9030. # Extract the first word of "nmedit", so it can be a program name with args.
  9031. set dummy nmedit; ac_word=$2
  9032. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9033. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9034. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  9035. echo $ECHO_N "(cached) $ECHO_C" >&6
  9036. else
  9037. if test -n "$ac_ct_NMEDIT"; then
  9038. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  9039. else
  9040. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9041. for as_dir in $PATH
  9042. do
  9043. IFS=$as_save_IFS
  9044. test -z "$as_dir" && as_dir=.
  9045. for ac_exec_ext in '' $ac_executable_extensions; do
  9046. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9047. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  9048. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9049. break 2
  9050. fi
  9051. done
  9052. done
  9053. IFS=$as_save_IFS
  9054. fi
  9055. fi
  9056. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  9057. if test -n "$ac_ct_NMEDIT"; then
  9058. { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  9059. echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
  9060. else
  9061. { echo "$as_me:$LINENO: result: no" >&5
  9062. echo "${ECHO_T}no" >&6; }
  9063. fi
  9064. if test "x$ac_ct_NMEDIT" = x; then
  9065. NMEDIT=":"
  9066. else
  9067. case $cross_compiling:$ac_tool_warned in
  9068. yes:)
  9069. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  9070. whose name does not start with the host triplet. If you think this
  9071. configuration is useful to you, please write to [email protected]." >&5
  9072. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  9073. whose name does not start with the host triplet. If you think this
  9074. configuration is useful to you, please write to [email protected]." >&2;}
  9075. ac_tool_warned=yes ;;
  9076. esac
  9077. NMEDIT=$ac_ct_NMEDIT
  9078. fi
  9079. else
  9080. NMEDIT="$ac_cv_prog_NMEDIT"
  9081. fi
  9082. { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  9083. echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
  9084. if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  9085. echo $ECHO_N "(cached) $ECHO_C" >&6
  9086. else
  9087. lt_cv_apple_cc_single_mod=no
  9088. if test -z "${LT_MULTI_MODULE}"; then
  9089. # By default we will add the -single_module flag. You can override
  9090. # by either setting the environment variable LT_MULTI_MODULE
  9091. # non-empty at configure time, or by adding -multi_module to the
  9092. # link flags.
  9093. echo "int foo(void){return 1;}" > conftest.c
  9094. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  9095. -dynamiclib ${wl}-single_module conftest.c
  9096. if test -f libconftest.dylib; then
  9097. lt_cv_apple_cc_single_mod=yes
  9098. rm -rf libconftest.dylib*
  9099. fi
  9100. rm conftest.c
  9101. fi
  9102. fi
  9103. { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  9104. echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
  9105. { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  9106. echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
  9107. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  9108. echo $ECHO_N "(cached) $ECHO_C" >&6
  9109. else
  9110. lt_cv_ld_exported_symbols_list=no
  9111. save_LDFLAGS=$LDFLAGS
  9112. echo "_main" > conftest.sym
  9113. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  9114. cat >conftest.$ac_ext <<_ACEOF
  9115. /* confdefs.h. */
  9116. _ACEOF
  9117. cat confdefs.h >>conftest.$ac_ext
  9118. cat >>conftest.$ac_ext <<_ACEOF
  9119. /* end confdefs.h. */
  9120. int
  9121. main ()
  9122. {
  9123. ;
  9124. return 0;
  9125. }
  9126. _ACEOF
  9127. rm -f conftest.$ac_objext conftest$ac_exeext
  9128. if { (ac_try="$ac_link"
  9129. case "(($ac_try" in
  9130. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9131. *) ac_try_echo=$ac_try;;
  9132. esac
  9133. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9134. (eval "$ac_link") 2>conftest.er1
  9135. ac_status=$?
  9136. grep -v '^ *+' conftest.er1 >conftest.err
  9137. rm -f conftest.er1
  9138. cat conftest.err >&5
  9139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9140. (exit $ac_status); } && {
  9141. test -z "$ac_c_werror_flag" ||
  9142. test ! -s conftest.err
  9143. } && test -s conftest$ac_exeext &&
  9144. $as_test_x conftest$ac_exeext; then
  9145. lt_cv_ld_exported_symbols_list=yes
  9146. else
  9147. echo "$as_me: failed program was:" >&5
  9148. sed 's/^/| /' conftest.$ac_ext >&5
  9149. lt_cv_ld_exported_symbols_list=no
  9150. fi
  9151. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9152. conftest$ac_exeext conftest.$ac_ext
  9153. LDFLAGS="$save_LDFLAGS"
  9154. fi
  9155. { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  9156. echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
  9157. case $host_os in
  9158. rhapsody* | darwin1.[0123])
  9159. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  9160. darwin1.*)
  9161. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  9162. darwin*)
  9163. # if running on 10.5 or later, the deployment target defaults
  9164. # to the OS version, if on x86, and 10.4, the deployment
  9165. # target defaults to 10.4. Don't you love it?
  9166. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  9167. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  9168. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  9169. 10.[012]*)
  9170. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  9171. 10.*)
  9172. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  9173. esac
  9174. ;;
  9175. esac
  9176. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  9177. _lt_dar_single_mod='$single_module'
  9178. fi
  9179. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  9180. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  9181. else
  9182. _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
  9183. fi
  9184. if test "$DSYMUTIL" != ":"; then
  9185. _lt_dsymutil="~$DSYMUTIL \$lib || :"
  9186. else
  9187. _lt_dsymutil=
  9188. fi
  9189. ;;
  9190. esac
  9191. enable_dlopen=no
  9192. enable_win32_dll=yes
  9193. # Check whether --enable-libtool-lock was given.
  9194. if test "${enable_libtool_lock+set}" = set; then
  9195. enableval=$enable_libtool_lock;
  9196. fi
  9197. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  9198. # Check whether --with-pic was given.
  9199. if test "${with_pic+set}" = set; then
  9200. withval=$with_pic; pic_mode="$withval"
  9201. else
  9202. pic_mode=default
  9203. fi
  9204. test -z "$pic_mode" && pic_mode=default
  9205. # Use C for the default configuration in the libtool script
  9206. tagname=
  9207. lt_save_CC="$CC"
  9208. ac_ext=c
  9209. ac_cpp='$CPP $CPPFLAGS'
  9210. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9211. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9212. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9213. # Source file extension for C test sources.
  9214. ac_ext=c
  9215. # Object file extension for compiled C test sources.
  9216. objext=o
  9217. objext=$objext
  9218. # Code to be used in simple compile tests
  9219. lt_simple_compile_test_code="int some_variable = 0;"
  9220. # Code to be used in simple link tests
  9221. lt_simple_link_test_code='int main(){return(0);}'
  9222. # If no C compiler was specified, use CC.
  9223. LTCC=${LTCC-"$CC"}
  9224. # If no C compiler flags were specified, use CFLAGS.
  9225. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9226. # Allow CC to be a program name with arguments.
  9227. compiler=$CC
  9228. # save warnings/boilerplate of simple test code
  9229. ac_outfile=conftest.$ac_objext
  9230. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9231. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9232. _lt_compiler_boilerplate=`cat conftest.err`
  9233. $rm conftest*
  9234. ac_outfile=conftest.$ac_objext
  9235. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9236. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9237. _lt_linker_boilerplate=`cat conftest.err`
  9238. $rm -r conftest*
  9239. lt_prog_compiler_no_builtin_flag=
  9240. if test "$GCC" = yes; then
  9241. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  9242. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  9243. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  9244. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  9245. echo $ECHO_N "(cached) $ECHO_C" >&6
  9246. else
  9247. lt_cv_prog_compiler_rtti_exceptions=no
  9248. ac_outfile=conftest.$ac_objext
  9249. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9250. lt_compiler_flag="-fno-rtti -fno-exceptions"
  9251. # Insert the option either (1) after the last *FLAGS variable, or
  9252. # (2) before a word containing "conftest.", or (3) at the end.
  9253. # Note that $ac_compile itself does not contain backslashes and begins
  9254. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9255. # The option is referenced via a variable to avoid confusing sed.
  9256. lt_compile=`echo "$ac_compile" | $SED \
  9257. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9258. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9259. -e 's:$: $lt_compiler_flag:'`
  9260. (eval echo "\"\$as_me:10518: $lt_compile\"" >&5)
  9261. (eval "$lt_compile" 2>conftest.err)
  9262. ac_status=$?
  9263. cat conftest.err >&5
  9264. echo "$as_me:10522: \$? = $ac_status" >&5
  9265. if (exit $ac_status) && test -s "$ac_outfile"; then
  9266. # The compiler can only warn and ignore the option if not recognized
  9267. # So say no if there are warnings other than the usual output.
  9268. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  9269. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9270. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9271. lt_cv_prog_compiler_rtti_exceptions=yes
  9272. fi
  9273. fi
  9274. $rm conftest*
  9275. fi
  9276. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  9277. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  9278. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  9279. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  9280. else
  9281. :
  9282. fi
  9283. fi
  9284. lt_prog_compiler_wl=
  9285. lt_prog_compiler_pic=
  9286. lt_prog_compiler_static=
  9287. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  9288. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  9289. if test "$GCC" = yes; then
  9290. lt_prog_compiler_wl='-Wl,'
  9291. lt_prog_compiler_static='-static'
  9292. case $host_os in
  9293. aix*)
  9294. # All AIX code is PIC.
  9295. if test "$host_cpu" = ia64; then
  9296. # AIX 5 now supports IA64 processor
  9297. lt_prog_compiler_static='-Bstatic'
  9298. fi
  9299. ;;
  9300. amigaos*)
  9301. # FIXME: we need at least 68020 code to build shared libraries, but
  9302. # adding the `-m68020' flag to GCC prevents building anything better,
  9303. # like `-m68040'.
  9304. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  9305. ;;
  9306. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  9307. # PIC is the default for these OSes.
  9308. ;;
  9309. mingw* | cygwin* | pw32* | os2*)
  9310. # This hack is so that the source file can tell whether it is being
  9311. # built for inclusion in a dll (and should export symbols for example).
  9312. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  9313. # (--disable-auto-import) libraries
  9314. lt_prog_compiler_pic='-DDLL_EXPORT'
  9315. ;;
  9316. darwin* | rhapsody*)
  9317. # PIC is the default on this platform
  9318. # Common symbols not allowed in MH_DYLIB files
  9319. lt_prog_compiler_pic='-fno-common'
  9320. ;;
  9321. interix[3-9]*)
  9322. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  9323. # Instead, we relocate shared libraries at runtime.
  9324. ;;
  9325. msdosdjgpp*)
  9326. # Just because we use GCC doesn't mean we suddenly get shared libraries
  9327. # on systems that don't support them.
  9328. lt_prog_compiler_can_build_shared=no
  9329. enable_shared=no
  9330. ;;
  9331. sysv4*MP*)
  9332. if test -d /usr/nec; then
  9333. lt_prog_compiler_pic=-Kconform_pic
  9334. fi
  9335. ;;
  9336. hpux*)
  9337. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9338. # not for PA HP-UX.
  9339. case $host_cpu in
  9340. hppa*64*|ia64*)
  9341. # +Z the default
  9342. ;;
  9343. *)
  9344. lt_prog_compiler_pic='-fPIC'
  9345. ;;
  9346. esac
  9347. ;;
  9348. *)
  9349. lt_prog_compiler_pic='-fPIC'
  9350. ;;
  9351. esac
  9352. else
  9353. # PORTME Check for flag to pass linker flags through the system compiler.
  9354. case $host_os in
  9355. aix*)
  9356. lt_prog_compiler_wl='-Wl,'
  9357. if test "$host_cpu" = ia64; then
  9358. # AIX 5 now supports IA64 processor
  9359. lt_prog_compiler_static='-Bstatic'
  9360. else
  9361. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  9362. fi
  9363. ;;
  9364. darwin*)
  9365. # PIC is the default on this platform
  9366. # Common symbols not allowed in MH_DYLIB files
  9367. case $cc_basename in
  9368. xlc*)
  9369. lt_prog_compiler_pic='-qnocommon'
  9370. lt_prog_compiler_wl='-Wl,'
  9371. ;;
  9372. esac
  9373. ;;
  9374. mingw* | cygwin* | pw32* | os2*)
  9375. # This hack is so that the source file can tell whether it is being
  9376. # built for inclusion in a dll (and should export symbols for example).
  9377. lt_prog_compiler_pic='-DDLL_EXPORT'
  9378. ;;
  9379. hpux9* | hpux10* | hpux11*)
  9380. lt_prog_compiler_wl='-Wl,'
  9381. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9382. # not for PA HP-UX.
  9383. case $host_cpu in
  9384. hppa*64*|ia64*)
  9385. # +Z the default
  9386. ;;
  9387. *)
  9388. lt_prog_compiler_pic='+Z'
  9389. ;;
  9390. esac
  9391. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  9392. lt_prog_compiler_static='${wl}-a ${wl}archive'
  9393. ;;
  9394. irix5* | irix6* | nonstopux*)
  9395. lt_prog_compiler_wl='-Wl,'
  9396. # PIC (with -KPIC) is the default.
  9397. lt_prog_compiler_static='-non_shared'
  9398. ;;
  9399. newsos6)
  9400. lt_prog_compiler_pic='-KPIC'
  9401. lt_prog_compiler_static='-Bstatic'
  9402. ;;
  9403. linux* | k*bsd*-gnu)
  9404. case $cc_basename in
  9405. icc* | ecc*)
  9406. lt_prog_compiler_wl='-Wl,'
  9407. lt_prog_compiler_pic='-KPIC'
  9408. lt_prog_compiler_static='-static'
  9409. ;;
  9410. pgcc* | pgf77* | pgf90* | pgf95*)
  9411. # Portland Group compilers (*not* the Pentium gcc compiler,
  9412. # which looks to be a dead project)
  9413. lt_prog_compiler_wl='-Wl,'
  9414. lt_prog_compiler_pic='-fpic'
  9415. lt_prog_compiler_static='-Bstatic'
  9416. ;;
  9417. ccc*)
  9418. lt_prog_compiler_wl='-Wl,'
  9419. # All Alpha code is PIC.
  9420. lt_prog_compiler_static='-non_shared'
  9421. ;;
  9422. *)
  9423. case `$CC -V 2>&1 | sed 5q` in
  9424. *Sun\ C*)
  9425. # Sun C 5.9
  9426. lt_prog_compiler_pic='-KPIC'
  9427. lt_prog_compiler_static='-Bstatic'
  9428. lt_prog_compiler_wl='-Wl,'
  9429. ;;
  9430. *Sun\ F*)
  9431. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  9432. lt_prog_compiler_pic='-KPIC'
  9433. lt_prog_compiler_static='-Bstatic'
  9434. lt_prog_compiler_wl=''
  9435. ;;
  9436. esac
  9437. ;;
  9438. esac
  9439. ;;
  9440. osf3* | osf4* | osf5*)
  9441. lt_prog_compiler_wl='-Wl,'
  9442. # All OSF/1 code is PIC.
  9443. lt_prog_compiler_static='-non_shared'
  9444. ;;
  9445. rdos*)
  9446. lt_prog_compiler_static='-non_shared'
  9447. ;;
  9448. solaris*)
  9449. lt_prog_compiler_pic='-KPIC'
  9450. lt_prog_compiler_static='-Bstatic'
  9451. case $cc_basename in
  9452. f77* | f90* | f95*)
  9453. lt_prog_compiler_wl='-Qoption ld ';;
  9454. *)
  9455. lt_prog_compiler_wl='-Wl,';;
  9456. esac
  9457. ;;
  9458. sunos4*)
  9459. lt_prog_compiler_wl='-Qoption ld '
  9460. lt_prog_compiler_pic='-PIC'
  9461. lt_prog_compiler_static='-Bstatic'
  9462. ;;
  9463. sysv4 | sysv4.2uw2* | sysv4.3*)
  9464. lt_prog_compiler_wl='-Wl,'
  9465. lt_prog_compiler_pic='-KPIC'
  9466. lt_prog_compiler_static='-Bstatic'
  9467. ;;
  9468. sysv4*MP*)
  9469. if test -d /usr/nec ;then
  9470. lt_prog_compiler_pic='-Kconform_pic'
  9471. lt_prog_compiler_static='-Bstatic'
  9472. fi
  9473. ;;
  9474. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  9475. lt_prog_compiler_wl='-Wl,'
  9476. lt_prog_compiler_pic='-KPIC'
  9477. lt_prog_compiler_static='-Bstatic'
  9478. ;;
  9479. unicos*)
  9480. lt_prog_compiler_wl='-Wl,'
  9481. lt_prog_compiler_can_build_shared=no
  9482. ;;
  9483. uts4*)
  9484. lt_prog_compiler_pic='-pic'
  9485. lt_prog_compiler_static='-Bstatic'
  9486. ;;
  9487. *)
  9488. lt_prog_compiler_can_build_shared=no
  9489. ;;
  9490. esac
  9491. fi
  9492. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  9493. echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  9494. #
  9495. # Check to make sure the PIC flag actually works.
  9496. #
  9497. if test -n "$lt_prog_compiler_pic"; then
  9498. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  9499. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  9500. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  9501. echo $ECHO_N "(cached) $ECHO_C" >&6
  9502. else
  9503. lt_cv_prog_compiler_pic_works=no
  9504. ac_outfile=conftest.$ac_objext
  9505. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9506. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  9507. # Insert the option either (1) after the last *FLAGS variable, or
  9508. # (2) before a word containing "conftest.", or (3) at the end.
  9509. # Note that $ac_compile itself does not contain backslashes and begins
  9510. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9511. # The option is referenced via a variable to avoid confusing sed.
  9512. lt_compile=`echo "$ac_compile" | $SED \
  9513. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9514. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9515. -e 's:$: $lt_compiler_flag:'`
  9516. (eval echo "\"\$as_me:10808: $lt_compile\"" >&5)
  9517. (eval "$lt_compile" 2>conftest.err)
  9518. ac_status=$?
  9519. cat conftest.err >&5
  9520. echo "$as_me:10812: \$? = $ac_status" >&5
  9521. if (exit $ac_status) && test -s "$ac_outfile"; then
  9522. # The compiler can only warn and ignore the option if not recognized
  9523. # So say no if there are warnings other than the usual output.
  9524. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  9525. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9526. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9527. lt_cv_prog_compiler_pic_works=yes
  9528. fi
  9529. fi
  9530. $rm conftest*
  9531. fi
  9532. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  9533. echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
  9534. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  9535. case $lt_prog_compiler_pic in
  9536. "" | " "*) ;;
  9537. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  9538. esac
  9539. else
  9540. lt_prog_compiler_pic=
  9541. lt_prog_compiler_can_build_shared=no
  9542. fi
  9543. fi
  9544. case $host_os in
  9545. # For platforms which do not support PIC, -DPIC is meaningless:
  9546. *djgpp*)
  9547. lt_prog_compiler_pic=
  9548. ;;
  9549. *)
  9550. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  9551. ;;
  9552. esac
  9553. #
  9554. # Check to make sure the static flag actually works.
  9555. #
  9556. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  9557. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  9558. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  9559. if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  9560. echo $ECHO_N "(cached) $ECHO_C" >&6
  9561. else
  9562. lt_cv_prog_compiler_static_works=no
  9563. save_LDFLAGS="$LDFLAGS"
  9564. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  9565. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9566. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9567. # The linker can only warn and ignore the option if not recognized
  9568. # So say no if there are warnings
  9569. if test -s conftest.err; then
  9570. # Append any errors to the config.log.
  9571. cat conftest.err 1>&5
  9572. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  9573. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9574. if diff conftest.exp conftest.er2 >/dev/null; then
  9575. lt_cv_prog_compiler_static_works=yes
  9576. fi
  9577. else
  9578. lt_cv_prog_compiler_static_works=yes
  9579. fi
  9580. fi
  9581. $rm -r conftest*
  9582. LDFLAGS="$save_LDFLAGS"
  9583. fi
  9584. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  9585. echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
  9586. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  9587. :
  9588. else
  9589. lt_prog_compiler_static=
  9590. fi
  9591. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  9592. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  9593. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  9594. echo $ECHO_N "(cached) $ECHO_C" >&6
  9595. else
  9596. lt_cv_prog_compiler_c_o=no
  9597. $rm -r conftest 2>/dev/null
  9598. mkdir conftest
  9599. cd conftest
  9600. mkdir out
  9601. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9602. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9603. # Insert the option either (1) after the last *FLAGS variable, or
  9604. # (2) before a word containing "conftest.", or (3) at the end.
  9605. # Note that $ac_compile itself does not contain backslashes and begins
  9606. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9607. lt_compile=`echo "$ac_compile" | $SED \
  9608. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9609. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9610. -e 's:$: $lt_compiler_flag:'`
  9611. (eval echo "\"\$as_me:10912: $lt_compile\"" >&5)
  9612. (eval "$lt_compile" 2>out/conftest.err)
  9613. ac_status=$?
  9614. cat out/conftest.err >&5
  9615. echo "$as_me:10916: \$? = $ac_status" >&5
  9616. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9617. then
  9618. # The compiler can only warn and ignore the option if not recognized
  9619. # So say no if there are warnings
  9620. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  9621. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9622. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9623. lt_cv_prog_compiler_c_o=yes
  9624. fi
  9625. fi
  9626. chmod u+w . 2>&5
  9627. $rm conftest*
  9628. # SGI C++ compiler will create directory out/ii_files/ for
  9629. # template instantiation
  9630. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  9631. $rm out/* && rmdir out
  9632. cd ..
  9633. rmdir conftest
  9634. $rm conftest*
  9635. fi
  9636. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  9637. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  9638. hard_links="nottested"
  9639. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  9640. # do not overwrite the value of need_locks provided by the user
  9641. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  9642. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  9643. hard_links=yes
  9644. $rm conftest*
  9645. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9646. touch conftest.a
  9647. ln conftest.a conftest.b 2>&5 || hard_links=no
  9648. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9649. { echo "$as_me:$LINENO: result: $hard_links" >&5
  9650. echo "${ECHO_T}$hard_links" >&6; }
  9651. if test "$hard_links" = no; then
  9652. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  9653. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  9654. need_locks=warn
  9655. fi
  9656. else
  9657. need_locks=no
  9658. fi
  9659. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9660. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  9661. runpath_var=
  9662. allow_undefined_flag=
  9663. enable_shared_with_static_runtimes=no
  9664. archive_cmds=
  9665. archive_expsym_cmds=
  9666. old_archive_From_new_cmds=
  9667. old_archive_from_expsyms_cmds=
  9668. export_dynamic_flag_spec=
  9669. whole_archive_flag_spec=
  9670. thread_safe_flag_spec=
  9671. hardcode_libdir_flag_spec=
  9672. hardcode_libdir_flag_spec_ld=
  9673. hardcode_libdir_separator=
  9674. hardcode_direct=no
  9675. hardcode_minus_L=no
  9676. hardcode_shlibpath_var=unsupported
  9677. link_all_deplibs=unknown
  9678. hardcode_automatic=no
  9679. module_cmds=
  9680. module_expsym_cmds=
  9681. always_export_symbols=no
  9682. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9683. # include_expsyms should be a list of space-separated symbols to be *always*
  9684. # included in the symbol list
  9685. include_expsyms=
  9686. # exclude_expsyms can be an extended regexp of symbols to exclude
  9687. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  9688. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  9689. # as well as any symbol that contains `d'.
  9690. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  9691. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9692. # platforms (ab)use it in PIC code, but their linkers get confused if
  9693. # the symbol is explicitly referenced. Since portable code cannot
  9694. # rely on this symbol name, it's probably fine to never include it in
  9695. # preloaded symbol tables.
  9696. # Exclude shared library initialization/finalization symbols.
  9697. extract_expsyms_cmds=
  9698. # Just being paranoid about ensuring that cc_basename is set.
  9699. for cc_temp in $compiler""; do
  9700. case $cc_temp in
  9701. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9702. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9703. \-*) ;;
  9704. *) break;;
  9705. esac
  9706. done
  9707. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9708. case $host_os in
  9709. cygwin* | mingw* | pw32*)
  9710. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  9711. # When not using gcc, we currently assume that we are using
  9712. # Microsoft Visual C++.
  9713. if test "$GCC" != yes; then
  9714. with_gnu_ld=no
  9715. fi
  9716. ;;
  9717. interix*)
  9718. # we just hope/assume this is gcc and not c89 (= MSVC++)
  9719. with_gnu_ld=yes
  9720. ;;
  9721. openbsd*)
  9722. with_gnu_ld=no
  9723. ;;
  9724. esac
  9725. ld_shlibs=yes
  9726. if test "$with_gnu_ld" = yes; then
  9727. # If archive_cmds runs LD, not CC, wlarc should be empty
  9728. wlarc='${wl}'
  9729. # Set some defaults for GNU ld with shared library support. These
  9730. # are reset later if shared libraries are not supported. Putting them
  9731. # here allows them to be overridden if necessary.
  9732. runpath_var=LD_RUN_PATH
  9733. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  9734. export_dynamic_flag_spec='${wl}--export-dynamic'
  9735. # ancient GNU ld didn't support --whole-archive et. al.
  9736. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  9737. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9738. else
  9739. whole_archive_flag_spec=
  9740. fi
  9741. supports_anon_versioning=no
  9742. case `$LD -v 2>/dev/null` in
  9743. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  9744. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9745. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9746. *\ 2.11.*) ;; # other 2.11 versions
  9747. *) supports_anon_versioning=yes ;;
  9748. esac
  9749. # See if GNU ld supports shared libraries.
  9750. case $host_os in
  9751. aix[3-9]*)
  9752. # On AIX/PPC, the GNU linker is very broken
  9753. if test "$host_cpu" != ia64; then
  9754. ld_shlibs=no
  9755. cat <<EOF 1>&2
  9756. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  9757. *** to be unable to reliably create shared libraries on AIX.
  9758. *** Therefore, libtool is disabling shared libraries support. If you
  9759. *** really care for shared libraries, you may want to modify your PATH
  9760. *** so that a non-GNU linker is found, and then restart.
  9761. EOF
  9762. fi
  9763. ;;
  9764. amigaos*)
  9765. 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)'
  9766. hardcode_libdir_flag_spec='-L$libdir'
  9767. hardcode_minus_L=yes
  9768. # Samuel A. Falvo II <[email protected]> reports
  9769. # that the semantics of dynamic libraries on AmigaOS, at least up
  9770. # to version 4, is to share data among multiple programs linked
  9771. # with the same dynamic library. Since this doesn't match the
  9772. # behavior of shared libraries on other platforms, we can't use
  9773. # them.
  9774. ld_shlibs=no
  9775. ;;
  9776. beos*)
  9777. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9778. allow_undefined_flag=unsupported
  9779. # Joseph Beckenbach <[email protected]> says some releases of gcc
  9780. # support --undefined. This deserves some investigation. FIXME
  9781. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9782. else
  9783. ld_shlibs=no
  9784. fi
  9785. ;;
  9786. cygwin* | mingw* | pw32*)
  9787. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9788. # as there is no search path for DLLs.
  9789. hardcode_libdir_flag_spec='-L$libdir'
  9790. allow_undefined_flag=unsupported
  9791. always_export_symbols=no
  9792. enable_shared_with_static_runtimes=yes
  9793. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9794. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  9795. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9796. # If the export-symbols file already is a .def file (1st line
  9797. # is EXPORTS), use it as is; otherwise, prepend...
  9798. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9799. cp $export_symbols $output_objdir/$soname.def;
  9800. else
  9801. echo EXPORTS > $output_objdir/$soname.def;
  9802. cat $export_symbols >> $output_objdir/$soname.def;
  9803. fi~
  9804. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9805. else
  9806. ld_shlibs=no
  9807. fi
  9808. ;;
  9809. interix[3-9]*)
  9810. hardcode_direct=no
  9811. hardcode_shlibpath_var=no
  9812. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9813. export_dynamic_flag_spec='${wl}-E'
  9814. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9815. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9816. # default) and relocated if they conflict, which is a slow very memory
  9817. # consuming and fragmenting process. To avoid this, we pick a random,
  9818. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9819. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9820. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9821. archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9822. ;;
  9823. gnu* | linux* | k*bsd*-gnu)
  9824. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9825. tmp_addflag=
  9826. case $cc_basename,$host_cpu in
  9827. pgcc*) # Portland Group C compiler
  9828. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  9829. tmp_addflag=' $pic_flag'
  9830. ;;
  9831. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  9832. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  9833. tmp_addflag=' $pic_flag -Mnomain' ;;
  9834. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9835. tmp_addflag=' -i_dynamic' ;;
  9836. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9837. tmp_addflag=' -i_dynamic -nofor_main' ;;
  9838. ifc* | ifort*) # Intel Fortran compiler
  9839. tmp_addflag=' -nofor_main' ;;
  9840. esac
  9841. case `$CC -V 2>&1 | sed 5q` in
  9842. *Sun\ C*) # Sun C 5.9
  9843. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  9844. tmp_sharedflag='-G' ;;
  9845. *Sun\ F*) # Sun Fortran 8.3
  9846. tmp_sharedflag='-G' ;;
  9847. *)
  9848. tmp_sharedflag='-shared' ;;
  9849. esac
  9850. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9851. if test $supports_anon_versioning = yes; then
  9852. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  9853. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9854. $echo "local: *; };" >> $output_objdir/$libname.ver~
  9855. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  9856. fi
  9857. link_all_deplibs=no
  9858. else
  9859. ld_shlibs=no
  9860. fi
  9861. ;;
  9862. netbsd* | netbsdelf*-gnu)
  9863. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9864. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9865. wlarc=
  9866. else
  9867. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9868. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9869. fi
  9870. ;;
  9871. solaris*)
  9872. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  9873. ld_shlibs=no
  9874. cat <<EOF 1>&2
  9875. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9876. *** create shared libraries on Solaris systems. Therefore, libtool
  9877. *** is disabling shared libraries support. We urge you to upgrade GNU
  9878. *** binutils to release 2.9.1 or newer. Another option is to modify
  9879. *** your PATH or compiler configuration so that the native linker is
  9880. *** used, and then restart.
  9881. EOF
  9882. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9883. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9884. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9885. else
  9886. ld_shlibs=no
  9887. fi
  9888. ;;
  9889. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9890. case `$LD -v 2>&1` in
  9891. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9892. ld_shlibs=no
  9893. cat <<_LT_EOF 1>&2
  9894. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  9895. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9896. *** is disabling shared libraries support. We urge you to upgrade GNU
  9897. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9898. *** your PATH or compiler configuration so that the native linker is
  9899. *** used, and then restart.
  9900. _LT_EOF
  9901. ;;
  9902. *)
  9903. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9904. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  9905. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  9906. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  9907. else
  9908. ld_shlibs=no
  9909. fi
  9910. ;;
  9911. esac
  9912. ;;
  9913. sunos4*)
  9914. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9915. wlarc=
  9916. hardcode_direct=yes
  9917. hardcode_shlibpath_var=no
  9918. ;;
  9919. *)
  9920. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9921. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9922. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9923. else
  9924. ld_shlibs=no
  9925. fi
  9926. ;;
  9927. esac
  9928. if test "$ld_shlibs" = no; then
  9929. runpath_var=
  9930. hardcode_libdir_flag_spec=
  9931. export_dynamic_flag_spec=
  9932. whole_archive_flag_spec=
  9933. fi
  9934. else
  9935. # PORTME fill in a description of your system's linker (not GNU ld)
  9936. case $host_os in
  9937. aix3*)
  9938. allow_undefined_flag=unsupported
  9939. always_export_symbols=yes
  9940. 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'
  9941. # Note: this linker hardcodes the directories in LIBPATH if there
  9942. # are no directories specified by -L.
  9943. hardcode_minus_L=yes
  9944. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  9945. # Neither direct hardcoding nor static linking is supported with a
  9946. # broken collect2.
  9947. hardcode_direct=unsupported
  9948. fi
  9949. ;;
  9950. aix[4-9]*)
  9951. if test "$host_cpu" = ia64; then
  9952. # On IA64, the linker does run time linking by default, so we don't
  9953. # have to do anything special.
  9954. aix_use_runtimelinking=no
  9955. exp_sym_flag='-Bexport'
  9956. no_entry_flag=""
  9957. else
  9958. # If we're using GNU nm, then we don't want the "-C" option.
  9959. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9960. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  9961. 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'
  9962. else
  9963. 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'
  9964. fi
  9965. aix_use_runtimelinking=no
  9966. # Test if we are trying to use run time linking or normal
  9967. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9968. # need to do runtime linking.
  9969. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9970. for ld_flag in $LDFLAGS; do
  9971. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  9972. aix_use_runtimelinking=yes
  9973. break
  9974. fi
  9975. done
  9976. ;;
  9977. esac
  9978. exp_sym_flag='-bexport'
  9979. no_entry_flag='-bnoentry'
  9980. fi
  9981. # When large executables or shared objects are built, AIX ld can
  9982. # have problems creating the table of contents. If linking a library
  9983. # or program results in "error TOC overflow" add -mminimal-toc to
  9984. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9985. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9986. archive_cmds=''
  9987. hardcode_direct=yes
  9988. hardcode_libdir_separator=':'
  9989. link_all_deplibs=yes
  9990. if test "$GCC" = yes; then
  9991. case $host_os in aix4.[012]|aix4.[012].*)
  9992. # We only want to do this on AIX 4.2 and lower, the check
  9993. # below for broken collect2 doesn't work under 4.3+
  9994. collect2name=`${CC} -print-prog-name=collect2`
  9995. if test -f "$collect2name" && \
  9996. strings "$collect2name" | grep resolve_lib_name >/dev/null
  9997. then
  9998. # We have reworked collect2
  9999. :
  10000. else
  10001. # We have old collect2
  10002. hardcode_direct=unsupported
  10003. # It fails to find uninstalled libraries when the uninstalled
  10004. # path is not listed in the libpath. Setting hardcode_minus_L
  10005. # to unsupported forces relinking
  10006. hardcode_minus_L=yes
  10007. hardcode_libdir_flag_spec='-L$libdir'
  10008. hardcode_libdir_separator=
  10009. fi
  10010. ;;
  10011. esac
  10012. shared_flag='-shared'
  10013. if test "$aix_use_runtimelinking" = yes; then
  10014. shared_flag="$shared_flag "'${wl}-G'
  10015. fi
  10016. else
  10017. # not using gcc
  10018. if test "$host_cpu" = ia64; then
  10019. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10020. # chokes on -Wl,-G. The following line is correct:
  10021. shared_flag='-G'
  10022. else
  10023. if test "$aix_use_runtimelinking" = yes; then
  10024. shared_flag='${wl}-G'
  10025. else
  10026. shared_flag='${wl}-bM:SRE'
  10027. fi
  10028. fi
  10029. fi
  10030. # It seems that -bexpall does not export symbols beginning with
  10031. # underscore (_), so it is better to generate a list of symbols to export.
  10032. always_export_symbols=yes
  10033. if test "$aix_use_runtimelinking" = yes; then
  10034. # Warning - without using the other runtime loading flags (-brtl),
  10035. # -berok will link without error, but may produce a broken library.
  10036. allow_undefined_flag='-berok'
  10037. # Determine the default libpath from the value encoded in an empty executable.
  10038. cat >conftest.$ac_ext <<_ACEOF
  10039. /* confdefs.h. */
  10040. _ACEOF
  10041. cat confdefs.h >>conftest.$ac_ext
  10042. cat >>conftest.$ac_ext <<_ACEOF
  10043. /* end confdefs.h. */
  10044. int
  10045. main ()
  10046. {
  10047. ;
  10048. return 0;
  10049. }
  10050. _ACEOF
  10051. rm -f conftest.$ac_objext conftest$ac_exeext
  10052. if { (ac_try="$ac_link"
  10053. case "(($ac_try" in
  10054. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10055. *) ac_try_echo=$ac_try;;
  10056. esac
  10057. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10058. (eval "$ac_link") 2>conftest.er1
  10059. ac_status=$?
  10060. grep -v '^ *+' conftest.er1 >conftest.err
  10061. rm -f conftest.er1
  10062. cat conftest.err >&5
  10063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10064. (exit $ac_status); } && {
  10065. test -z "$ac_c_werror_flag" ||
  10066. test ! -s conftest.err
  10067. } && test -s conftest$ac_exeext &&
  10068. $as_test_x conftest$ac_exeext; then
  10069. lt_aix_libpath_sed='
  10070. /Import File Strings/,/^$/ {
  10071. /^0/ {
  10072. s/^0 *\(.*\)$/\1/
  10073. p
  10074. }
  10075. }'
  10076. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10077. # Check for a 64-bit object if we didn't find anything.
  10078. if test -z "$aix_libpath"; then
  10079. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10080. fi
  10081. else
  10082. echo "$as_me: failed program was:" >&5
  10083. sed 's/^/| /' conftest.$ac_ext >&5
  10084. fi
  10085. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10086. conftest$ac_exeext conftest.$ac_ext
  10087. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10088. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  10089. archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10090. else
  10091. if test "$host_cpu" = ia64; then
  10092. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  10093. allow_undefined_flag="-z nodefs"
  10094. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  10095. else
  10096. # Determine the default libpath from the value encoded in an empty executable.
  10097. cat >conftest.$ac_ext <<_ACEOF
  10098. /* confdefs.h. */
  10099. _ACEOF
  10100. cat confdefs.h >>conftest.$ac_ext
  10101. cat >>conftest.$ac_ext <<_ACEOF
  10102. /* end confdefs.h. */
  10103. int
  10104. main ()
  10105. {
  10106. ;
  10107. return 0;
  10108. }
  10109. _ACEOF
  10110. rm -f conftest.$ac_objext conftest$ac_exeext
  10111. if { (ac_try="$ac_link"
  10112. case "(($ac_try" in
  10113. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10114. *) ac_try_echo=$ac_try;;
  10115. esac
  10116. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10117. (eval "$ac_link") 2>conftest.er1
  10118. ac_status=$?
  10119. grep -v '^ *+' conftest.er1 >conftest.err
  10120. rm -f conftest.er1
  10121. cat conftest.err >&5
  10122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10123. (exit $ac_status); } && {
  10124. test -z "$ac_c_werror_flag" ||
  10125. test ! -s conftest.err
  10126. } && test -s conftest$ac_exeext &&
  10127. $as_test_x conftest$ac_exeext; then
  10128. lt_aix_libpath_sed='
  10129. /Import File Strings/,/^$/ {
  10130. /^0/ {
  10131. s/^0 *\(.*\)$/\1/
  10132. p
  10133. }
  10134. }'
  10135. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10136. # Check for a 64-bit object if we didn't find anything.
  10137. if test -z "$aix_libpath"; then
  10138. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10139. fi
  10140. else
  10141. echo "$as_me: failed program was:" >&5
  10142. sed 's/^/| /' conftest.$ac_ext >&5
  10143. fi
  10144. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10145. conftest$ac_exeext conftest.$ac_ext
  10146. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10147. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  10148. # Warning - without using the other run time loading flags,
  10149. # -berok will link without error, but may produce a broken library.
  10150. no_undefined_flag=' ${wl}-bernotok'
  10151. allow_undefined_flag=' ${wl}-berok'
  10152. # Exported symbols can be pulled into shared objects from archives
  10153. whole_archive_flag_spec='$convenience'
  10154. archive_cmds_need_lc=yes
  10155. # This is similar to how AIX traditionally builds its shared libraries.
  10156. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  10157. fi
  10158. fi
  10159. ;;
  10160. amigaos*)
  10161. 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)'
  10162. hardcode_libdir_flag_spec='-L$libdir'
  10163. hardcode_minus_L=yes
  10164. # see comment about different semantics on the GNU ld section
  10165. ld_shlibs=no
  10166. ;;
  10167. bsdi[45]*)
  10168. export_dynamic_flag_spec=-rdynamic
  10169. ;;
  10170. cygwin* | mingw* | pw32*)
  10171. # When not using gcc, we currently assume that we are using
  10172. # Microsoft Visual C++.
  10173. # hardcode_libdir_flag_spec is actually meaningless, as there is
  10174. # no search path for DLLs.
  10175. hardcode_libdir_flag_spec=' '
  10176. allow_undefined_flag=unsupported
  10177. # Tell ltmain to make .lib files, not .a files.
  10178. libext=lib
  10179. # Tell ltmain to make .dll files, not .so files.
  10180. shrext_cmds=".dll"
  10181. # FIXME: Setting linknames here is a bad hack.
  10182. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  10183. # The linker will automatically build a .lib file if we build a DLL.
  10184. old_archive_From_new_cmds='true'
  10185. # FIXME: Should let the user specify the lib program.
  10186. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  10187. fix_srcfile_path='`cygpath -w "$srcfile"`'
  10188. enable_shared_with_static_runtimes=yes
  10189. ;;
  10190. darwin* | rhapsody*)
  10191. case $host_os in
  10192. rhapsody* | darwin1.[012])
  10193. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  10194. ;;
  10195. *) # Darwin 1.3 on
  10196. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  10197. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10198. else
  10199. case ${MACOSX_DEPLOYMENT_TARGET} in
  10200. 10.[012])
  10201. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10202. ;;
  10203. 10.*)
  10204. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  10205. ;;
  10206. esac
  10207. fi
  10208. ;;
  10209. esac
  10210. archive_cmds_need_lc=no
  10211. hardcode_direct=no
  10212. hardcode_automatic=yes
  10213. hardcode_shlibpath_var=unsupported
  10214. whole_archive_flag_spec=''
  10215. link_all_deplibs=yes
  10216. if test "$GCC" = yes ; then
  10217. output_verbose_link_cmd='echo'
  10218. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  10219. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10220. archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  10221. module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  10222. else
  10223. case $cc_basename in
  10224. xlc*)
  10225. output_verbose_link_cmd='echo'
  10226. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  10227. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10228. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  10229. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10230. 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}'
  10231. ;;
  10232. *)
  10233. ld_shlibs=no
  10234. ;;
  10235. esac
  10236. fi
  10237. ;;
  10238. dgux*)
  10239. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10240. hardcode_libdir_flag_spec='-L$libdir'
  10241. hardcode_shlibpath_var=no
  10242. ;;
  10243. freebsd1*)
  10244. ld_shlibs=no
  10245. ;;
  10246. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  10247. # support. Future versions do this automatically, but an explicit c++rt0.o
  10248. # does not break anything, and helps significantly (at the cost of a little
  10249. # extra space).
  10250. freebsd2.2*)
  10251. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  10252. hardcode_libdir_flag_spec='-R$libdir'
  10253. hardcode_direct=yes
  10254. hardcode_shlibpath_var=no
  10255. ;;
  10256. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  10257. freebsd2*)
  10258. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10259. hardcode_direct=yes
  10260. hardcode_minus_L=yes
  10261. hardcode_shlibpath_var=no
  10262. ;;
  10263. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  10264. freebsd* | dragonfly*)
  10265. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  10266. hardcode_libdir_flag_spec='-R$libdir'
  10267. hardcode_direct=yes
  10268. hardcode_shlibpath_var=no
  10269. ;;
  10270. hpux9*)
  10271. if test "$GCC" = yes; then
  10272. 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'
  10273. else
  10274. 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'
  10275. fi
  10276. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  10277. hardcode_libdir_separator=:
  10278. hardcode_direct=yes
  10279. # hardcode_minus_L: Not really in the search PATH,
  10280. # but as the default location of the library.
  10281. hardcode_minus_L=yes
  10282. export_dynamic_flag_spec='${wl}-E'
  10283. ;;
  10284. hpux10*)
  10285. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  10286. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10287. else
  10288. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10289. fi
  10290. if test "$with_gnu_ld" = no; then
  10291. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  10292. hardcode_libdir_separator=:
  10293. hardcode_direct=yes
  10294. export_dynamic_flag_spec='${wl}-E'
  10295. # hardcode_minus_L: Not really in the search PATH,
  10296. # but as the default location of the library.
  10297. hardcode_minus_L=yes
  10298. fi
  10299. ;;
  10300. hpux11*)
  10301. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  10302. case $host_cpu in
  10303. hppa*64*)
  10304. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10305. ;;
  10306. ia64*)
  10307. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10308. ;;
  10309. *)
  10310. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10311. ;;
  10312. esac
  10313. else
  10314. case $host_cpu in
  10315. hppa*64*)
  10316. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10317. ;;
  10318. ia64*)
  10319. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10320. ;;
  10321. *)
  10322. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10323. ;;
  10324. esac
  10325. fi
  10326. if test "$with_gnu_ld" = no; then
  10327. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  10328. hardcode_libdir_separator=:
  10329. case $host_cpu in
  10330. hppa*64*|ia64*)
  10331. hardcode_libdir_flag_spec_ld='+b $libdir'
  10332. hardcode_direct=no
  10333. hardcode_shlibpath_var=no
  10334. ;;
  10335. *)
  10336. hardcode_direct=yes
  10337. export_dynamic_flag_spec='${wl}-E'
  10338. # hardcode_minus_L: Not really in the search PATH,
  10339. # but as the default location of the library.
  10340. hardcode_minus_L=yes
  10341. ;;
  10342. esac
  10343. fi
  10344. ;;
  10345. irix5* | irix6* | nonstopux*)
  10346. if test "$GCC" = yes; then
  10347. 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'
  10348. else
  10349. 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'
  10350. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  10351. fi
  10352. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10353. hardcode_libdir_separator=:
  10354. link_all_deplibs=yes
  10355. ;;
  10356. netbsd* | netbsdelf*-gnu)
  10357. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10358. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  10359. else
  10360. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  10361. fi
  10362. hardcode_libdir_flag_spec='-R$libdir'
  10363. hardcode_direct=yes
  10364. hardcode_shlibpath_var=no
  10365. ;;
  10366. newsos6)
  10367. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10368. hardcode_direct=yes
  10369. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10370. hardcode_libdir_separator=:
  10371. hardcode_shlibpath_var=no
  10372. ;;
  10373. openbsd*)
  10374. if test -f /usr/libexec/ld.so; then
  10375. hardcode_direct=yes
  10376. hardcode_shlibpath_var=no
  10377. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10378. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10379. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  10380. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  10381. export_dynamic_flag_spec='${wl}-E'
  10382. else
  10383. case $host_os in
  10384. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  10385. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10386. hardcode_libdir_flag_spec='-R$libdir'
  10387. ;;
  10388. *)
  10389. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10390. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  10391. ;;
  10392. esac
  10393. fi
  10394. else
  10395. ld_shlibs=no
  10396. fi
  10397. ;;
  10398. os2*)
  10399. hardcode_libdir_flag_spec='-L$libdir'
  10400. hardcode_minus_L=yes
  10401. allow_undefined_flag=unsupported
  10402. 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'
  10403. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  10404. ;;
  10405. osf3*)
  10406. if test "$GCC" = yes; then
  10407. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  10408. 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'
  10409. else
  10410. allow_undefined_flag=' -expect_unresolved \*'
  10411. 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'
  10412. fi
  10413. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10414. hardcode_libdir_separator=:
  10415. ;;
  10416. osf4* | osf5*) # as osf3* with the addition of -msym flag
  10417. if test "$GCC" = yes; then
  10418. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  10419. 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'
  10420. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10421. else
  10422. allow_undefined_flag=' -expect_unresolved \*'
  10423. 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'
  10424. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  10425. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  10426. # Both c and cxx compiler support -rpath directly
  10427. hardcode_libdir_flag_spec='-rpath $libdir'
  10428. fi
  10429. hardcode_libdir_separator=:
  10430. ;;
  10431. solaris*)
  10432. no_undefined_flag=' -z text'
  10433. if test "$GCC" = yes; then
  10434. wlarc='${wl}'
  10435. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10436. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10437. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  10438. else
  10439. wlarc=''
  10440. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10441. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10442. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  10443. fi
  10444. hardcode_libdir_flag_spec='-R$libdir'
  10445. hardcode_shlibpath_var=no
  10446. case $host_os in
  10447. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10448. *)
  10449. # The compiler driver will combine and reorder linker options,
  10450. # but understands `-z linker_flag'. GCC discards it without `$wl',
  10451. # but is careful enough not to reorder.
  10452. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10453. if test "$GCC" = yes; then
  10454. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10455. else
  10456. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  10457. fi
  10458. ;;
  10459. esac
  10460. link_all_deplibs=yes
  10461. ;;
  10462. sunos4*)
  10463. if test "x$host_vendor" = xsequent; then
  10464. # Use $CC to link under sequent, because it throws in some extra .o
  10465. # files that make .init and .fini sections work.
  10466. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10467. else
  10468. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10469. fi
  10470. hardcode_libdir_flag_spec='-L$libdir'
  10471. hardcode_direct=yes
  10472. hardcode_minus_L=yes
  10473. hardcode_shlibpath_var=no
  10474. ;;
  10475. sysv4)
  10476. case $host_vendor in
  10477. sni)
  10478. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10479. hardcode_direct=yes # is this really true???
  10480. ;;
  10481. siemens)
  10482. ## LD is ld it makes a PLAMLIB
  10483. ## CC just makes a GrossModule.
  10484. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10485. reload_cmds='$CC -r -o $output$reload_objs'
  10486. hardcode_direct=no
  10487. ;;
  10488. motorola)
  10489. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10490. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  10491. ;;
  10492. esac
  10493. runpath_var='LD_RUN_PATH'
  10494. hardcode_shlibpath_var=no
  10495. ;;
  10496. sysv4.3*)
  10497. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10498. hardcode_shlibpath_var=no
  10499. export_dynamic_flag_spec='-Bexport'
  10500. ;;
  10501. sysv4*MP*)
  10502. if test -d /usr/nec; then
  10503. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10504. hardcode_shlibpath_var=no
  10505. runpath_var=LD_RUN_PATH
  10506. hardcode_runpath_var=yes
  10507. ld_shlibs=yes
  10508. fi
  10509. ;;
  10510. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10511. no_undefined_flag='${wl}-z,text'
  10512. archive_cmds_need_lc=no
  10513. hardcode_shlibpath_var=no
  10514. runpath_var='LD_RUN_PATH'
  10515. if test "$GCC" = yes; then
  10516. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10517. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10518. else
  10519. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10520. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10521. fi
  10522. ;;
  10523. sysv5* | sco3.2v5* | sco5v6*)
  10524. # Note: We can NOT use -z defs as we might desire, because we do not
  10525. # link with -lc, and that would cause any symbols used from libc to
  10526. # always be unresolved, which means just about no library would
  10527. # ever link correctly. If we're not using GNU ld we use -z text
  10528. # though, which does catch some bad symbols but isn't as heavy-handed
  10529. # as -z defs.
  10530. no_undefined_flag='${wl}-z,text'
  10531. allow_undefined_flag='${wl}-z,nodefs'
  10532. archive_cmds_need_lc=no
  10533. hardcode_shlibpath_var=no
  10534. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  10535. hardcode_libdir_separator=':'
  10536. link_all_deplibs=yes
  10537. export_dynamic_flag_spec='${wl}-Bexport'
  10538. runpath_var='LD_RUN_PATH'
  10539. if test "$GCC" = yes; then
  10540. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10541. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10542. else
  10543. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10544. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10545. fi
  10546. ;;
  10547. uts4*)
  10548. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10549. hardcode_libdir_flag_spec='-L$libdir'
  10550. hardcode_shlibpath_var=no
  10551. ;;
  10552. *)
  10553. ld_shlibs=no
  10554. ;;
  10555. esac
  10556. fi
  10557. { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  10558. echo "${ECHO_T}$ld_shlibs" >&6; }
  10559. test "$ld_shlibs" = no && can_build_shared=no
  10560. #
  10561. # Do we need to explicitly link libc?
  10562. #
  10563. case "x$archive_cmds_need_lc" in
  10564. x|xyes)
  10565. # Assume -lc should be added
  10566. archive_cmds_need_lc=yes
  10567. if test "$enable_shared" = yes && test "$GCC" = yes; then
  10568. case $archive_cmds in
  10569. *'~'*)
  10570. # FIXME: we may have to deal with multi-command sequences.
  10571. ;;
  10572. '$CC '*)
  10573. # Test whether the compiler implicitly links with -lc since on some
  10574. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10575. # to ld, don't add -lc before -lgcc.
  10576. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  10577. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  10578. $rm conftest*
  10579. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10580. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10581. (eval $ac_compile) 2>&5
  10582. ac_status=$?
  10583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10584. (exit $ac_status); } 2>conftest.err; then
  10585. soname=conftest
  10586. lib=conftest
  10587. libobjs=conftest.$ac_objext
  10588. deplibs=
  10589. wl=$lt_prog_compiler_wl
  10590. pic_flag=$lt_prog_compiler_pic
  10591. compiler_flags=-v
  10592. linker_flags=-v
  10593. verstring=
  10594. output_objdir=.
  10595. libname=conftest
  10596. lt_save_allow_undefined_flag=$allow_undefined_flag
  10597. allow_undefined_flag=
  10598. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  10599. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10600. ac_status=$?
  10601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10602. (exit $ac_status); }
  10603. then
  10604. archive_cmds_need_lc=no
  10605. else
  10606. archive_cmds_need_lc=yes
  10607. fi
  10608. allow_undefined_flag=$lt_save_allow_undefined_flag
  10609. else
  10610. cat conftest.err 1>&5
  10611. fi
  10612. $rm conftest*
  10613. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  10614. echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  10615. ;;
  10616. esac
  10617. fi
  10618. ;;
  10619. esac
  10620. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  10621. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  10622. library_names_spec=
  10623. libname_spec='lib$name'
  10624. soname_spec=
  10625. shrext_cmds=".so"
  10626. postinstall_cmds=
  10627. postuninstall_cmds=
  10628. finish_cmds=
  10629. finish_eval=
  10630. shlibpath_var=
  10631. shlibpath_overrides_runpath=unknown
  10632. version_type=none
  10633. dynamic_linker="$host_os ld.so"
  10634. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10635. if test "$GCC" = yes; then
  10636. case $host_os in
  10637. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  10638. *) lt_awk_arg="/^libraries:/" ;;
  10639. esac
  10640. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10641. if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  10642. # if the path contains ";" then we assume it to be the separator
  10643. # otherwise default to the standard path separator (i.e. ":") - it is
  10644. # assumed that no part of a normal pathname contains ";" but that should
  10645. # okay in the real world where ";" in dirpaths is itself problematic.
  10646. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  10647. else
  10648. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10649. fi
  10650. # Ok, now we have the path, separated by spaces, we can step through it
  10651. # and add multilib dir if necessary.
  10652. lt_tmp_lt_search_path_spec=
  10653. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  10654. for lt_sys_path in $lt_search_path_spec; do
  10655. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  10656. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  10657. else
  10658. test -d "$lt_sys_path" && \
  10659. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10660. fi
  10661. done
  10662. lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  10663. BEGIN {RS=" "; FS="/|\n";} {
  10664. lt_foo="";
  10665. lt_count=0;
  10666. for (lt_i = NF; lt_i > 0; lt_i--) {
  10667. if ($lt_i != "" && $lt_i != ".") {
  10668. if ($lt_i == "..") {
  10669. lt_count++;
  10670. } else {
  10671. if (lt_count == 0) {
  10672. lt_foo="/" $lt_i lt_foo;
  10673. } else {
  10674. lt_count--;
  10675. }
  10676. }
  10677. }
  10678. }
  10679. if (lt_foo != "") { lt_freq[lt_foo]++; }
  10680. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10681. }'`
  10682. sys_lib_search_path_spec=`echo $lt_search_path_spec`
  10683. else
  10684. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10685. fi
  10686. need_lib_prefix=unknown
  10687. hardcode_into_libs=no
  10688. # when you set need_version to no, make sure it does not cause -set_version
  10689. # flags to be left without arguments
  10690. need_version=unknown
  10691. case $host_os in
  10692. aix3*)
  10693. version_type=linux
  10694. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  10695. shlibpath_var=LIBPATH
  10696. # AIX 3 has no versioning support, so we append a major version to the name.
  10697. soname_spec='${libname}${release}${shared_ext}$major'
  10698. ;;
  10699. aix[4-9]*)
  10700. version_type=linux
  10701. need_lib_prefix=no
  10702. need_version=no
  10703. hardcode_into_libs=yes
  10704. if test "$host_cpu" = ia64; then
  10705. # AIX 5 supports IA64
  10706. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  10707. shlibpath_var=LD_LIBRARY_PATH
  10708. else
  10709. # With GCC up to 2.95.x, collect2 would create an import file
  10710. # for dependence libraries. The import file would start with
  10711. # the line `#! .'. This would cause the generated library to
  10712. # depend on `.', always an invalid library. This was fixed in
  10713. # development snapshots of GCC prior to 3.0.
  10714. case $host_os in
  10715. aix4 | aix4.[01] | aix4.[01].*)
  10716. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10717. echo ' yes '
  10718. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  10719. :
  10720. else
  10721. can_build_shared=no
  10722. fi
  10723. ;;
  10724. esac
  10725. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  10726. # soname into executable. Probably we can add versioning support to
  10727. # collect2, so additional links can be useful in future.
  10728. if test "$aix_use_runtimelinking" = yes; then
  10729. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10730. # instead of lib<name>.a to let people know that these are not
  10731. # typical AIX shared libraries.
  10732. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10733. else
  10734. # We preserve .a as extension for shared libraries through AIX4.2
  10735. # and later when we are not doing run time linking.
  10736. library_names_spec='${libname}${release}.a $libname.a'
  10737. soname_spec='${libname}${release}${shared_ext}$major'
  10738. fi
  10739. shlibpath_var=LIBPATH
  10740. fi
  10741. ;;
  10742. amigaos*)
  10743. library_names_spec='$libname.ixlibrary $libname.a'
  10744. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10745. 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'
  10746. ;;
  10747. beos*)
  10748. library_names_spec='${libname}${shared_ext}'
  10749. dynamic_linker="$host_os ld.so"
  10750. shlibpath_var=LIBRARY_PATH
  10751. ;;
  10752. bsdi[45]*)
  10753. version_type=linux
  10754. need_version=no
  10755. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10756. soname_spec='${libname}${release}${shared_ext}$major'
  10757. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10758. shlibpath_var=LD_LIBRARY_PATH
  10759. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10760. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10761. # the default ld.so.conf also contains /usr/contrib/lib and
  10762. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10763. # libtool to hard-code these into programs
  10764. ;;
  10765. cygwin* | mingw* | pw32*)
  10766. version_type=windows
  10767. shrext_cmds=".dll"
  10768. need_version=no
  10769. need_lib_prefix=no
  10770. case $GCC,$host_os in
  10771. yes,cygwin* | yes,mingw* | yes,pw32*)
  10772. library_names_spec='$libname.dll.a'
  10773. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10774. postinstall_cmds='base_file=`basename \${file}`~
  10775. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  10776. dldir=$destdir/`dirname \$dlpath`~
  10777. test -d \$dldir || mkdir -p \$dldir~
  10778. $install_prog $dir/$dlname \$dldir/$dlname~
  10779. chmod a+x \$dldir/$dlname'
  10780. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10781. dlpath=$dir/\$dldll~
  10782. $rm \$dlpath'
  10783. shlibpath_overrides_runpath=yes
  10784. case $host_os in
  10785. cygwin*)
  10786. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10787. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10788. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  10789. ;;
  10790. mingw*)
  10791. # MinGW DLLs use traditional 'lib' prefix
  10792. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10793. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10794. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  10795. # It is most probably a Windows format PATH printed by
  10796. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  10797. # path with ; separators, and with drive letters. We can handle the
  10798. # drive letters (cygwin fileutils understands them), so leave them,
  10799. # especially as we might pass files found there to a mingw objdump,
  10800. # which wouldn't understand a cygwinified path. Ahh.
  10801. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10802. else
  10803. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10804. fi
  10805. ;;
  10806. pw32*)
  10807. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10808. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10809. ;;
  10810. esac
  10811. ;;
  10812. *)
  10813. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  10814. ;;
  10815. esac
  10816. dynamic_linker='Win32 ld.exe'
  10817. # FIXME: first we should search . and the directory the executable is in
  10818. shlibpath_var=PATH
  10819. ;;
  10820. darwin* | rhapsody*)
  10821. dynamic_linker="$host_os dyld"
  10822. version_type=darwin
  10823. need_lib_prefix=no
  10824. need_version=no
  10825. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  10826. soname_spec='${libname}${release}${major}$shared_ext'
  10827. shlibpath_overrides_runpath=yes
  10828. shlibpath_var=DYLD_LIBRARY_PATH
  10829. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10830. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10831. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10832. ;;
  10833. dgux*)
  10834. version_type=linux
  10835. need_lib_prefix=no
  10836. need_version=no
  10837. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  10838. soname_spec='${libname}${release}${shared_ext}$major'
  10839. shlibpath_var=LD_LIBRARY_PATH
  10840. ;;
  10841. freebsd1*)
  10842. dynamic_linker=no
  10843. ;;
  10844. freebsd* | dragonfly*)
  10845. # DragonFly does not have aout. When/if they implement a new
  10846. # versioning mechanism, adjust this.
  10847. if test -x /usr/bin/objformat; then
  10848. objformat=`/usr/bin/objformat`
  10849. else
  10850. case $host_os in
  10851. freebsd[123]*) objformat=aout ;;
  10852. *) objformat=elf ;;
  10853. esac
  10854. fi
  10855. version_type=freebsd-$objformat
  10856. case $version_type in
  10857. freebsd-elf*)
  10858. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10859. need_version=no
  10860. need_lib_prefix=no
  10861. ;;
  10862. freebsd-*)
  10863. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  10864. need_version=yes
  10865. ;;
  10866. esac
  10867. shlibpath_var=LD_LIBRARY_PATH
  10868. case $host_os in
  10869. freebsd2*)
  10870. shlibpath_overrides_runpath=yes
  10871. ;;
  10872. freebsd3.[01]* | freebsdelf3.[01]*)
  10873. shlibpath_overrides_runpath=yes
  10874. hardcode_into_libs=yes
  10875. ;;
  10876. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10877. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10878. shlibpath_overrides_runpath=no
  10879. hardcode_into_libs=yes
  10880. ;;
  10881. *) # from 4.6 on, and DragonFly
  10882. shlibpath_overrides_runpath=yes
  10883. hardcode_into_libs=yes
  10884. ;;
  10885. esac
  10886. ;;
  10887. gnu*)
  10888. version_type=linux
  10889. need_lib_prefix=no
  10890. need_version=no
  10891. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10892. soname_spec='${libname}${release}${shared_ext}$major'
  10893. shlibpath_var=LD_LIBRARY_PATH
  10894. hardcode_into_libs=yes
  10895. ;;
  10896. hpux9* | hpux10* | hpux11*)
  10897. # Give a soname corresponding to the major version so that dld.sl refuses to
  10898. # link against other versions.
  10899. version_type=sunos
  10900. need_lib_prefix=no
  10901. need_version=no
  10902. case $host_cpu in
  10903. ia64*)
  10904. shrext_cmds='.so'
  10905. hardcode_into_libs=yes
  10906. dynamic_linker="$host_os dld.so"
  10907. shlibpath_var=LD_LIBRARY_PATH
  10908. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10909. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10910. soname_spec='${libname}${release}${shared_ext}$major'
  10911. if test "X$HPUX_IA64_MODE" = X32; then
  10912. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10913. else
  10914. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10915. fi
  10916. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10917. ;;
  10918. hppa*64*)
  10919. shrext_cmds='.sl'
  10920. hardcode_into_libs=yes
  10921. dynamic_linker="$host_os dld.sl"
  10922. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10923. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10924. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10925. soname_spec='${libname}${release}${shared_ext}$major'
  10926. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10927. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10928. ;;
  10929. *)
  10930. shrext_cmds='.sl'
  10931. dynamic_linker="$host_os dld.sl"
  10932. shlibpath_var=SHLIB_PATH
  10933. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10934. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10935. soname_spec='${libname}${release}${shared_ext}$major'
  10936. ;;
  10937. esac
  10938. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  10939. postinstall_cmds='chmod 555 $lib'
  10940. ;;
  10941. interix[3-9]*)
  10942. version_type=linux
  10943. need_lib_prefix=no
  10944. need_version=no
  10945. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10946. soname_spec='${libname}${release}${shared_ext}$major'
  10947. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10948. shlibpath_var=LD_LIBRARY_PATH
  10949. shlibpath_overrides_runpath=no
  10950. hardcode_into_libs=yes
  10951. ;;
  10952. irix5* | irix6* | nonstopux*)
  10953. case $host_os in
  10954. nonstopux*) version_type=nonstopux ;;
  10955. *)
  10956. if test "$lt_cv_prog_gnu_ld" = yes; then
  10957. version_type=linux
  10958. else
  10959. version_type=irix
  10960. fi ;;
  10961. esac
  10962. need_lib_prefix=no
  10963. need_version=no
  10964. soname_spec='${libname}${release}${shared_ext}$major'
  10965. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10966. case $host_os in
  10967. irix5* | nonstopux*)
  10968. libsuff= shlibsuff=
  10969. ;;
  10970. *)
  10971. case $LD in # libtool.m4 will add one of these switches to LD
  10972. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10973. libsuff= shlibsuff= libmagic=32-bit;;
  10974. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10975. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10976. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10977. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10978. *) libsuff= shlibsuff= libmagic=never-match;;
  10979. esac
  10980. ;;
  10981. esac
  10982. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10983. shlibpath_overrides_runpath=no
  10984. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10985. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10986. hardcode_into_libs=yes
  10987. ;;
  10988. # No shared lib support for Linux oldld, aout, or coff.
  10989. linux*oldld* | linux*aout* | linux*coff*)
  10990. dynamic_linker=no
  10991. ;;
  10992. # This must be Linux ELF.
  10993. linux* | k*bsd*-gnu)
  10994. version_type=linux
  10995. need_lib_prefix=no
  10996. need_version=no
  10997. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10998. soname_spec='${libname}${release}${shared_ext}$major'
  10999. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11000. shlibpath_var=LD_LIBRARY_PATH
  11001. shlibpath_overrides_runpath=no
  11002. # This implies no fast_install, which is unacceptable.
  11003. # Some rework will be needed to allow for fast_install
  11004. # before this can be enabled.
  11005. hardcode_into_libs=yes
  11006. # Append ld.so.conf contents to the search path
  11007. if test -f /etc/ld.so.conf; then
  11008. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  11009. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11010. fi
  11011. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11012. # powerpc, because MkLinux only supported shared libraries with the
  11013. # GNU dynamic linker. Since this was broken with cross compilers,
  11014. # most powerpc-linux boxes support dynamic linking these days and
  11015. # people can always --disable-shared, the test was removed, and we
  11016. # assume the GNU/Linux dynamic linker is in use.
  11017. dynamic_linker='GNU/Linux ld.so'
  11018. ;;
  11019. netbsdelf*-gnu)
  11020. version_type=linux
  11021. need_lib_prefix=no
  11022. need_version=no
  11023. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11024. soname_spec='${libname}${release}${shared_ext}$major'
  11025. shlibpath_var=LD_LIBRARY_PATH
  11026. shlibpath_overrides_runpath=no
  11027. hardcode_into_libs=yes
  11028. dynamic_linker='NetBSD ld.elf_so'
  11029. ;;
  11030. netbsd*)
  11031. version_type=sunos
  11032. need_lib_prefix=no
  11033. need_version=no
  11034. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11035. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11036. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11037. dynamic_linker='NetBSD (a.out) ld.so'
  11038. else
  11039. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11040. soname_spec='${libname}${release}${shared_ext}$major'
  11041. dynamic_linker='NetBSD ld.elf_so'
  11042. fi
  11043. shlibpath_var=LD_LIBRARY_PATH
  11044. shlibpath_overrides_runpath=yes
  11045. hardcode_into_libs=yes
  11046. ;;
  11047. newsos6)
  11048. version_type=linux
  11049. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11050. shlibpath_var=LD_LIBRARY_PATH
  11051. shlibpath_overrides_runpath=yes
  11052. ;;
  11053. nto-qnx*)
  11054. version_type=linux
  11055. need_lib_prefix=no
  11056. need_version=no
  11057. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11058. soname_spec='${libname}${release}${shared_ext}$major'
  11059. shlibpath_var=LD_LIBRARY_PATH
  11060. shlibpath_overrides_runpath=yes
  11061. ;;
  11062. openbsd*)
  11063. version_type=sunos
  11064. sys_lib_dlsearch_path_spec="/usr/lib"
  11065. need_lib_prefix=no
  11066. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  11067. case $host_os in
  11068. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  11069. *) need_version=no ;;
  11070. esac
  11071. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11072. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11073. shlibpath_var=LD_LIBRARY_PATH
  11074. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11075. case $host_os in
  11076. openbsd2.[89] | openbsd2.[89].*)
  11077. shlibpath_overrides_runpath=no
  11078. ;;
  11079. *)
  11080. shlibpath_overrides_runpath=yes
  11081. ;;
  11082. esac
  11083. else
  11084. shlibpath_overrides_runpath=yes
  11085. fi
  11086. ;;
  11087. os2*)
  11088. libname_spec='$name'
  11089. shrext_cmds=".dll"
  11090. need_lib_prefix=no
  11091. library_names_spec='$libname${shared_ext} $libname.a'
  11092. dynamic_linker='OS/2 ld.exe'
  11093. shlibpath_var=LIBPATH
  11094. ;;
  11095. osf3* | osf4* | osf5*)
  11096. version_type=osf
  11097. need_lib_prefix=no
  11098. need_version=no
  11099. soname_spec='${libname}${release}${shared_ext}$major'
  11100. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11101. shlibpath_var=LD_LIBRARY_PATH
  11102. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11103. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11104. ;;
  11105. rdos*)
  11106. dynamic_linker=no
  11107. ;;
  11108. solaris*)
  11109. version_type=linux
  11110. need_lib_prefix=no
  11111. need_version=no
  11112. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11113. soname_spec='${libname}${release}${shared_ext}$major'
  11114. shlibpath_var=LD_LIBRARY_PATH
  11115. shlibpath_overrides_runpath=yes
  11116. hardcode_into_libs=yes
  11117. # ldd complains unless libraries are executable
  11118. postinstall_cmds='chmod +x $lib'
  11119. ;;
  11120. sunos4*)
  11121. version_type=sunos
  11122. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11123. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11124. shlibpath_var=LD_LIBRARY_PATH
  11125. shlibpath_overrides_runpath=yes
  11126. if test "$with_gnu_ld" = yes; then
  11127. need_lib_prefix=no
  11128. fi
  11129. need_version=yes
  11130. ;;
  11131. sysv4 | sysv4.3*)
  11132. version_type=linux
  11133. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11134. soname_spec='${libname}${release}${shared_ext}$major'
  11135. shlibpath_var=LD_LIBRARY_PATH
  11136. case $host_vendor in
  11137. sni)
  11138. shlibpath_overrides_runpath=no
  11139. need_lib_prefix=no
  11140. export_dynamic_flag_spec='${wl}-Blargedynsym'
  11141. runpath_var=LD_RUN_PATH
  11142. ;;
  11143. siemens)
  11144. need_lib_prefix=no
  11145. ;;
  11146. motorola)
  11147. need_lib_prefix=no
  11148. need_version=no
  11149. shlibpath_overrides_runpath=no
  11150. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11151. ;;
  11152. esac
  11153. ;;
  11154. sysv4*MP*)
  11155. if test -d /usr/nec ;then
  11156. version_type=linux
  11157. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11158. soname_spec='$libname${shared_ext}.$major'
  11159. shlibpath_var=LD_LIBRARY_PATH
  11160. fi
  11161. ;;
  11162. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11163. version_type=freebsd-elf
  11164. need_lib_prefix=no
  11165. need_version=no
  11166. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11167. soname_spec='${libname}${release}${shared_ext}$major'
  11168. shlibpath_var=LD_LIBRARY_PATH
  11169. hardcode_into_libs=yes
  11170. if test "$with_gnu_ld" = yes; then
  11171. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11172. shlibpath_overrides_runpath=no
  11173. else
  11174. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11175. shlibpath_overrides_runpath=yes
  11176. case $host_os in
  11177. sco3.2v5*)
  11178. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11179. ;;
  11180. esac
  11181. fi
  11182. sys_lib_dlsearch_path_spec='/usr/lib'
  11183. ;;
  11184. uts4*)
  11185. version_type=linux
  11186. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11187. soname_spec='${libname}${release}${shared_ext}$major'
  11188. shlibpath_var=LD_LIBRARY_PATH
  11189. ;;
  11190. *)
  11191. dynamic_linker=no
  11192. ;;
  11193. esac
  11194. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  11195. echo "${ECHO_T}$dynamic_linker" >&6; }
  11196. test "$dynamic_linker" = no && can_build_shared=no
  11197. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  11198. echo $ECHO_N "(cached) $ECHO_C" >&6
  11199. else
  11200. lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  11201. fi
  11202. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  11203. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  11204. echo $ECHO_N "(cached) $ECHO_C" >&6
  11205. else
  11206. lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  11207. fi
  11208. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  11209. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11210. if test "$GCC" = yes; then
  11211. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11212. fi
  11213. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  11214. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  11215. hardcode_action=
  11216. if test -n "$hardcode_libdir_flag_spec" || \
  11217. test -n "$runpath_var" || \
  11218. test "X$hardcode_automatic" = "Xyes" ; then
  11219. # We can hardcode non-existant directories.
  11220. if test "$hardcode_direct" != no &&
  11221. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11222. # have to relink, otherwise we might link with an installed library
  11223. # when we should be linking with a yet-to-be-installed one
  11224. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  11225. test "$hardcode_minus_L" != no; then
  11226. # Linking always hardcodes the temporary library directory.
  11227. hardcode_action=relink
  11228. else
  11229. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11230. hardcode_action=immediate
  11231. fi
  11232. else
  11233. # We cannot hardcode anything, or else we can only hardcode existing
  11234. # directories.
  11235. hardcode_action=unsupported
  11236. fi
  11237. { echo "$as_me:$LINENO: result: $hardcode_action" >&5
  11238. echo "${ECHO_T}$hardcode_action" >&6; }
  11239. if test "$hardcode_action" = relink; then
  11240. # Fast installation is not supported
  11241. enable_fast_install=no
  11242. elif test "$shlibpath_overrides_runpath" = yes ||
  11243. test "$enable_shared" = no; then
  11244. # Fast installation is not necessary
  11245. enable_fast_install=needless
  11246. fi
  11247. striplib=
  11248. old_striplib=
  11249. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  11250. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  11251. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  11252. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11253. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11254. { echo "$as_me:$LINENO: result: yes" >&5
  11255. echo "${ECHO_T}yes" >&6; }
  11256. else
  11257. # FIXME - insert some real tests, host_os isn't really good enough
  11258. case $host_os in
  11259. darwin*)
  11260. if test -n "$STRIP" ; then
  11261. striplib="$STRIP -x"
  11262. old_striplib="$STRIP -S"
  11263. { echo "$as_me:$LINENO: result: yes" >&5
  11264. echo "${ECHO_T}yes" >&6; }
  11265. else
  11266. { echo "$as_me:$LINENO: result: no" >&5
  11267. echo "${ECHO_T}no" >&6; }
  11268. fi
  11269. ;;
  11270. *)
  11271. { echo "$as_me:$LINENO: result: no" >&5
  11272. echo "${ECHO_T}no" >&6; }
  11273. ;;
  11274. esac
  11275. fi
  11276. if test "x$enable_dlopen" != xyes; then
  11277. enable_dlopen=unknown
  11278. enable_dlopen_self=unknown
  11279. enable_dlopen_self_static=unknown
  11280. else
  11281. lt_cv_dlopen=no
  11282. lt_cv_dlopen_libs=
  11283. case $host_os in
  11284. beos*)
  11285. lt_cv_dlopen="load_add_on"
  11286. lt_cv_dlopen_libs=
  11287. lt_cv_dlopen_self=yes
  11288. ;;
  11289. mingw* | pw32*)
  11290. lt_cv_dlopen="LoadLibrary"
  11291. lt_cv_dlopen_libs=
  11292. ;;
  11293. cygwin*)
  11294. lt_cv_dlopen="dlopen"
  11295. lt_cv_dlopen_libs=
  11296. ;;
  11297. darwin*)
  11298. # if libdl is installed we need to link against it
  11299. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  11300. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  11301. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  11302. echo $ECHO_N "(cached) $ECHO_C" >&6
  11303. else
  11304. ac_check_lib_save_LIBS=$LIBS
  11305. LIBS="-ldl $LIBS"
  11306. cat >conftest.$ac_ext <<_ACEOF
  11307. /* confdefs.h. */
  11308. _ACEOF
  11309. cat confdefs.h >>conftest.$ac_ext
  11310. cat >>conftest.$ac_ext <<_ACEOF
  11311. /* end confdefs.h. */
  11312. /* Override any GCC internal prototype to avoid an error.
  11313. Use char because int might match the return type of a GCC
  11314. builtin and then its argument prototype would still apply. */
  11315. #ifdef __cplusplus
  11316. extern "C"
  11317. #endif
  11318. char dlopen ();
  11319. int
  11320. main ()
  11321. {
  11322. return dlopen ();
  11323. ;
  11324. return 0;
  11325. }
  11326. _ACEOF
  11327. rm -f conftest.$ac_objext conftest$ac_exeext
  11328. if { (ac_try="$ac_link"
  11329. case "(($ac_try" in
  11330. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11331. *) ac_try_echo=$ac_try;;
  11332. esac
  11333. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11334. (eval "$ac_link") 2>conftest.er1
  11335. ac_status=$?
  11336. grep -v '^ *+' conftest.er1 >conftest.err
  11337. rm -f conftest.er1
  11338. cat conftest.err >&5
  11339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11340. (exit $ac_status); } && {
  11341. test -z "$ac_c_werror_flag" ||
  11342. test ! -s conftest.err
  11343. } && test -s conftest$ac_exeext &&
  11344. $as_test_x conftest$ac_exeext; then
  11345. ac_cv_lib_dl_dlopen=yes
  11346. else
  11347. echo "$as_me: failed program was:" >&5
  11348. sed 's/^/| /' conftest.$ac_ext >&5
  11349. ac_cv_lib_dl_dlopen=no
  11350. fi
  11351. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11352. conftest$ac_exeext conftest.$ac_ext
  11353. LIBS=$ac_check_lib_save_LIBS
  11354. fi
  11355. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  11356. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  11357. if test $ac_cv_lib_dl_dlopen = yes; then
  11358. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11359. else
  11360. lt_cv_dlopen="dyld"
  11361. lt_cv_dlopen_libs=
  11362. lt_cv_dlopen_self=yes
  11363. fi
  11364. ;;
  11365. *)
  11366. { echo "$as_me:$LINENO: checking for shl_load" >&5
  11367. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  11368. if test "${ac_cv_func_shl_load+set}" = set; then
  11369. echo $ECHO_N "(cached) $ECHO_C" >&6
  11370. else
  11371. cat >conftest.$ac_ext <<_ACEOF
  11372. /* confdefs.h. */
  11373. _ACEOF
  11374. cat confdefs.h >>conftest.$ac_ext
  11375. cat >>conftest.$ac_ext <<_ACEOF
  11376. /* end confdefs.h. */
  11377. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  11378. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11379. #define shl_load innocuous_shl_load
  11380. /* System header to define __stub macros and hopefully few prototypes,
  11381. which can conflict with char shl_load (); below.
  11382. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11383. <limits.h> exists even on freestanding compilers. */
  11384. #ifdef __STDC__
  11385. # include <limits.h>
  11386. #else
  11387. # include <assert.h>
  11388. #endif
  11389. #undef shl_load
  11390. /* Override any GCC internal prototype to avoid an error.
  11391. Use char because int might match the return type of a GCC
  11392. builtin and then its argument prototype would still apply. */
  11393. #ifdef __cplusplus
  11394. extern "C"
  11395. #endif
  11396. char shl_load ();
  11397. /* The GNU C library defines this for functions which it implements
  11398. to always fail with ENOSYS. Some functions are actually named
  11399. something starting with __ and the normal name is an alias. */
  11400. #if defined __stub_shl_load || defined __stub___shl_load
  11401. choke me
  11402. #endif
  11403. int
  11404. main ()
  11405. {
  11406. return shl_load ();
  11407. ;
  11408. return 0;
  11409. }
  11410. _ACEOF
  11411. rm -f conftest.$ac_objext conftest$ac_exeext
  11412. if { (ac_try="$ac_link"
  11413. case "(($ac_try" in
  11414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11415. *) ac_try_echo=$ac_try;;
  11416. esac
  11417. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11418. (eval "$ac_link") 2>conftest.er1
  11419. ac_status=$?
  11420. grep -v '^ *+' conftest.er1 >conftest.err
  11421. rm -f conftest.er1
  11422. cat conftest.err >&5
  11423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11424. (exit $ac_status); } && {
  11425. test -z "$ac_c_werror_flag" ||
  11426. test ! -s conftest.err
  11427. } && test -s conftest$ac_exeext &&
  11428. $as_test_x conftest$ac_exeext; then
  11429. ac_cv_func_shl_load=yes
  11430. else
  11431. echo "$as_me: failed program was:" >&5
  11432. sed 's/^/| /' conftest.$ac_ext >&5
  11433. ac_cv_func_shl_load=no
  11434. fi
  11435. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11436. conftest$ac_exeext conftest.$ac_ext
  11437. fi
  11438. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  11439. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  11440. if test $ac_cv_func_shl_load = yes; then
  11441. lt_cv_dlopen="shl_load"
  11442. else
  11443. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  11444. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  11445. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  11446. echo $ECHO_N "(cached) $ECHO_C" >&6
  11447. else
  11448. ac_check_lib_save_LIBS=$LIBS
  11449. LIBS="-ldld $LIBS"
  11450. cat >conftest.$ac_ext <<_ACEOF
  11451. /* confdefs.h. */
  11452. _ACEOF
  11453. cat confdefs.h >>conftest.$ac_ext
  11454. cat >>conftest.$ac_ext <<_ACEOF
  11455. /* end confdefs.h. */
  11456. /* Override any GCC internal prototype to avoid an error.
  11457. Use char because int might match the return type of a GCC
  11458. builtin and then its argument prototype would still apply. */
  11459. #ifdef __cplusplus
  11460. extern "C"
  11461. #endif
  11462. char shl_load ();
  11463. int
  11464. main ()
  11465. {
  11466. return shl_load ();
  11467. ;
  11468. return 0;
  11469. }
  11470. _ACEOF
  11471. rm -f conftest.$ac_objext conftest$ac_exeext
  11472. if { (ac_try="$ac_link"
  11473. case "(($ac_try" in
  11474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11475. *) ac_try_echo=$ac_try;;
  11476. esac
  11477. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11478. (eval "$ac_link") 2>conftest.er1
  11479. ac_status=$?
  11480. grep -v '^ *+' conftest.er1 >conftest.err
  11481. rm -f conftest.er1
  11482. cat conftest.err >&5
  11483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11484. (exit $ac_status); } && {
  11485. test -z "$ac_c_werror_flag" ||
  11486. test ! -s conftest.err
  11487. } && test -s conftest$ac_exeext &&
  11488. $as_test_x conftest$ac_exeext; then
  11489. ac_cv_lib_dld_shl_load=yes
  11490. else
  11491. echo "$as_me: failed program was:" >&5
  11492. sed 's/^/| /' conftest.$ac_ext >&5
  11493. ac_cv_lib_dld_shl_load=no
  11494. fi
  11495. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11496. conftest$ac_exeext conftest.$ac_ext
  11497. LIBS=$ac_check_lib_save_LIBS
  11498. fi
  11499. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  11500. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  11501. if test $ac_cv_lib_dld_shl_load = yes; then
  11502. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  11503. else
  11504. { echo "$as_me:$LINENO: checking for dlopen" >&5
  11505. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  11506. if test "${ac_cv_func_dlopen+set}" = set; then
  11507. echo $ECHO_N "(cached) $ECHO_C" >&6
  11508. else
  11509. cat >conftest.$ac_ext <<_ACEOF
  11510. /* confdefs.h. */
  11511. _ACEOF
  11512. cat confdefs.h >>conftest.$ac_ext
  11513. cat >>conftest.$ac_ext <<_ACEOF
  11514. /* end confdefs.h. */
  11515. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  11516. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11517. #define dlopen innocuous_dlopen
  11518. /* System header to define __stub macros and hopefully few prototypes,
  11519. which can conflict with char dlopen (); below.
  11520. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11521. <limits.h> exists even on freestanding compilers. */
  11522. #ifdef __STDC__
  11523. # include <limits.h>
  11524. #else
  11525. # include <assert.h>
  11526. #endif
  11527. #undef dlopen
  11528. /* Override any GCC internal prototype to avoid an error.
  11529. Use char because int might match the return type of a GCC
  11530. builtin and then its argument prototype would still apply. */
  11531. #ifdef __cplusplus
  11532. extern "C"
  11533. #endif
  11534. char dlopen ();
  11535. /* The GNU C library defines this for functions which it implements
  11536. to always fail with ENOSYS. Some functions are actually named
  11537. something starting with __ and the normal name is an alias. */
  11538. #if defined __stub_dlopen || defined __stub___dlopen
  11539. choke me
  11540. #endif
  11541. int
  11542. main ()
  11543. {
  11544. return dlopen ();
  11545. ;
  11546. return 0;
  11547. }
  11548. _ACEOF
  11549. rm -f conftest.$ac_objext conftest$ac_exeext
  11550. if { (ac_try="$ac_link"
  11551. case "(($ac_try" in
  11552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11553. *) ac_try_echo=$ac_try;;
  11554. esac
  11555. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11556. (eval "$ac_link") 2>conftest.er1
  11557. ac_status=$?
  11558. grep -v '^ *+' conftest.er1 >conftest.err
  11559. rm -f conftest.er1
  11560. cat conftest.err >&5
  11561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11562. (exit $ac_status); } && {
  11563. test -z "$ac_c_werror_flag" ||
  11564. test ! -s conftest.err
  11565. } && test -s conftest$ac_exeext &&
  11566. $as_test_x conftest$ac_exeext; then
  11567. ac_cv_func_dlopen=yes
  11568. else
  11569. echo "$as_me: failed program was:" >&5
  11570. sed 's/^/| /' conftest.$ac_ext >&5
  11571. ac_cv_func_dlopen=no
  11572. fi
  11573. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11574. conftest$ac_exeext conftest.$ac_ext
  11575. fi
  11576. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  11577. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  11578. if test $ac_cv_func_dlopen = yes; then
  11579. lt_cv_dlopen="dlopen"
  11580. else
  11581. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  11582. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  11583. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  11584. echo $ECHO_N "(cached) $ECHO_C" >&6
  11585. else
  11586. ac_check_lib_save_LIBS=$LIBS
  11587. LIBS="-ldl $LIBS"
  11588. cat >conftest.$ac_ext <<_ACEOF
  11589. /* confdefs.h. */
  11590. _ACEOF
  11591. cat confdefs.h >>conftest.$ac_ext
  11592. cat >>conftest.$ac_ext <<_ACEOF
  11593. /* end confdefs.h. */
  11594. /* Override any GCC internal prototype to avoid an error.
  11595. Use char because int might match the return type of a GCC
  11596. builtin and then its argument prototype would still apply. */
  11597. #ifdef __cplusplus
  11598. extern "C"
  11599. #endif
  11600. char dlopen ();
  11601. int
  11602. main ()
  11603. {
  11604. return dlopen ();
  11605. ;
  11606. return 0;
  11607. }
  11608. _ACEOF
  11609. rm -f conftest.$ac_objext conftest$ac_exeext
  11610. if { (ac_try="$ac_link"
  11611. case "(($ac_try" in
  11612. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11613. *) ac_try_echo=$ac_try;;
  11614. esac
  11615. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11616. (eval "$ac_link") 2>conftest.er1
  11617. ac_status=$?
  11618. grep -v '^ *+' conftest.er1 >conftest.err
  11619. rm -f conftest.er1
  11620. cat conftest.err >&5
  11621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11622. (exit $ac_status); } && {
  11623. test -z "$ac_c_werror_flag" ||
  11624. test ! -s conftest.err
  11625. } && test -s conftest$ac_exeext &&
  11626. $as_test_x conftest$ac_exeext; then
  11627. ac_cv_lib_dl_dlopen=yes
  11628. else
  11629. echo "$as_me: failed program was:" >&5
  11630. sed 's/^/| /' conftest.$ac_ext >&5
  11631. ac_cv_lib_dl_dlopen=no
  11632. fi
  11633. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11634. conftest$ac_exeext conftest.$ac_ext
  11635. LIBS=$ac_check_lib_save_LIBS
  11636. fi
  11637. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  11638. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  11639. if test $ac_cv_lib_dl_dlopen = yes; then
  11640. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11641. else
  11642. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  11643. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  11644. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  11645. echo $ECHO_N "(cached) $ECHO_C" >&6
  11646. else
  11647. ac_check_lib_save_LIBS=$LIBS
  11648. LIBS="-lsvld $LIBS"
  11649. cat >conftest.$ac_ext <<_ACEOF
  11650. /* confdefs.h. */
  11651. _ACEOF
  11652. cat confdefs.h >>conftest.$ac_ext
  11653. cat >>conftest.$ac_ext <<_ACEOF
  11654. /* end confdefs.h. */
  11655. /* Override any GCC internal prototype to avoid an error.
  11656. Use char because int might match the return type of a GCC
  11657. builtin and then its argument prototype would still apply. */
  11658. #ifdef __cplusplus
  11659. extern "C"
  11660. #endif
  11661. char dlopen ();
  11662. int
  11663. main ()
  11664. {
  11665. return dlopen ();
  11666. ;
  11667. return 0;
  11668. }
  11669. _ACEOF
  11670. rm -f conftest.$ac_objext conftest$ac_exeext
  11671. if { (ac_try="$ac_link"
  11672. case "(($ac_try" in
  11673. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11674. *) ac_try_echo=$ac_try;;
  11675. esac
  11676. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11677. (eval "$ac_link") 2>conftest.er1
  11678. ac_status=$?
  11679. grep -v '^ *+' conftest.er1 >conftest.err
  11680. rm -f conftest.er1
  11681. cat conftest.err >&5
  11682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11683. (exit $ac_status); } && {
  11684. test -z "$ac_c_werror_flag" ||
  11685. test ! -s conftest.err
  11686. } && test -s conftest$ac_exeext &&
  11687. $as_test_x conftest$ac_exeext; then
  11688. ac_cv_lib_svld_dlopen=yes
  11689. else
  11690. echo "$as_me: failed program was:" >&5
  11691. sed 's/^/| /' conftest.$ac_ext >&5
  11692. ac_cv_lib_svld_dlopen=no
  11693. fi
  11694. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11695. conftest$ac_exeext conftest.$ac_ext
  11696. LIBS=$ac_check_lib_save_LIBS
  11697. fi
  11698. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  11699. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  11700. if test $ac_cv_lib_svld_dlopen = yes; then
  11701. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  11702. else
  11703. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  11704. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  11705. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  11706. echo $ECHO_N "(cached) $ECHO_C" >&6
  11707. else
  11708. ac_check_lib_save_LIBS=$LIBS
  11709. LIBS="-ldld $LIBS"
  11710. cat >conftest.$ac_ext <<_ACEOF
  11711. /* confdefs.h. */
  11712. _ACEOF
  11713. cat confdefs.h >>conftest.$ac_ext
  11714. cat >>conftest.$ac_ext <<_ACEOF
  11715. /* end confdefs.h. */
  11716. /* Override any GCC internal prototype to avoid an error.
  11717. Use char because int might match the return type of a GCC
  11718. builtin and then its argument prototype would still apply. */
  11719. #ifdef __cplusplus
  11720. extern "C"
  11721. #endif
  11722. char dld_link ();
  11723. int
  11724. main ()
  11725. {
  11726. return dld_link ();
  11727. ;
  11728. return 0;
  11729. }
  11730. _ACEOF
  11731. rm -f conftest.$ac_objext conftest$ac_exeext
  11732. if { (ac_try="$ac_link"
  11733. case "(($ac_try" in
  11734. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11735. *) ac_try_echo=$ac_try;;
  11736. esac
  11737. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11738. (eval "$ac_link") 2>conftest.er1
  11739. ac_status=$?
  11740. grep -v '^ *+' conftest.er1 >conftest.err
  11741. rm -f conftest.er1
  11742. cat conftest.err >&5
  11743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11744. (exit $ac_status); } && {
  11745. test -z "$ac_c_werror_flag" ||
  11746. test ! -s conftest.err
  11747. } && test -s conftest$ac_exeext &&
  11748. $as_test_x conftest$ac_exeext; then
  11749. ac_cv_lib_dld_dld_link=yes
  11750. else
  11751. echo "$as_me: failed program was:" >&5
  11752. sed 's/^/| /' conftest.$ac_ext >&5
  11753. ac_cv_lib_dld_dld_link=no
  11754. fi
  11755. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11756. conftest$ac_exeext conftest.$ac_ext
  11757. LIBS=$ac_check_lib_save_LIBS
  11758. fi
  11759. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  11760. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  11761. if test $ac_cv_lib_dld_dld_link = yes; then
  11762. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  11763. fi
  11764. fi
  11765. fi
  11766. fi
  11767. fi
  11768. fi
  11769. ;;
  11770. esac
  11771. if test "x$lt_cv_dlopen" != xno; then
  11772. enable_dlopen=yes
  11773. else
  11774. enable_dlopen=no
  11775. fi
  11776. case $lt_cv_dlopen in
  11777. dlopen)
  11778. save_CPPFLAGS="$CPPFLAGS"
  11779. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11780. save_LDFLAGS="$LDFLAGS"
  11781. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11782. save_LIBS="$LIBS"
  11783. LIBS="$lt_cv_dlopen_libs $LIBS"
  11784. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  11785. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  11786. if test "${lt_cv_dlopen_self+set}" = set; then
  11787. echo $ECHO_N "(cached) $ECHO_C" >&6
  11788. else
  11789. if test "$cross_compiling" = yes; then :
  11790. lt_cv_dlopen_self=cross
  11791. else
  11792. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11793. lt_status=$lt_dlunknown
  11794. cat > conftest.$ac_ext <<EOF
  11795. #line 13289 "configure"
  11796. #include "confdefs.h"
  11797. #if HAVE_DLFCN_H
  11798. #include <dlfcn.h>
  11799. #endif
  11800. #include <stdio.h>
  11801. #ifdef RTLD_GLOBAL
  11802. # define LT_DLGLOBAL RTLD_GLOBAL
  11803. #else
  11804. # ifdef DL_GLOBAL
  11805. # define LT_DLGLOBAL DL_GLOBAL
  11806. # else
  11807. # define LT_DLGLOBAL 0
  11808. # endif
  11809. #endif
  11810. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11811. find out it does not work in some platform. */
  11812. #ifndef LT_DLLAZY_OR_NOW
  11813. # ifdef RTLD_LAZY
  11814. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11815. # else
  11816. # ifdef DL_LAZY
  11817. # define LT_DLLAZY_OR_NOW DL_LAZY
  11818. # else
  11819. # ifdef RTLD_NOW
  11820. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11821. # else
  11822. # ifdef DL_NOW
  11823. # define LT_DLLAZY_OR_NOW DL_NOW
  11824. # else
  11825. # define LT_DLLAZY_OR_NOW 0
  11826. # endif
  11827. # endif
  11828. # endif
  11829. # endif
  11830. #endif
  11831. #ifdef __cplusplus
  11832. extern "C" void exit (int);
  11833. #endif
  11834. void fnord() { int i=42;}
  11835. int main ()
  11836. {
  11837. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11838. int status = $lt_dlunknown;
  11839. if (self)
  11840. {
  11841. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11842. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11843. /* dlclose (self); */
  11844. }
  11845. else
  11846. puts (dlerror ());
  11847. exit (status);
  11848. }
  11849. EOF
  11850. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11851. (eval $ac_link) 2>&5
  11852. ac_status=$?
  11853. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11854. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  11855. (./conftest; exit; ) >&5 2>/dev/null
  11856. lt_status=$?
  11857. case x$lt_status in
  11858. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11859. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11860. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11861. esac
  11862. else :
  11863. # compilation failed
  11864. lt_cv_dlopen_self=no
  11865. fi
  11866. fi
  11867. rm -fr conftest*
  11868. fi
  11869. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  11870. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  11871. if test "x$lt_cv_dlopen_self" = xyes; then
  11872. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11873. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  11874. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  11875. if test "${lt_cv_dlopen_self_static+set}" = set; then
  11876. echo $ECHO_N "(cached) $ECHO_C" >&6
  11877. else
  11878. if test "$cross_compiling" = yes; then :
  11879. lt_cv_dlopen_self_static=cross
  11880. else
  11881. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11882. lt_status=$lt_dlunknown
  11883. cat > conftest.$ac_ext <<EOF
  11884. #line 13389 "configure"
  11885. #include "confdefs.h"
  11886. #if HAVE_DLFCN_H
  11887. #include <dlfcn.h>
  11888. #endif
  11889. #include <stdio.h>
  11890. #ifdef RTLD_GLOBAL
  11891. # define LT_DLGLOBAL RTLD_GLOBAL
  11892. #else
  11893. # ifdef DL_GLOBAL
  11894. # define LT_DLGLOBAL DL_GLOBAL
  11895. # else
  11896. # define LT_DLGLOBAL 0
  11897. # endif
  11898. #endif
  11899. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11900. find out it does not work in some platform. */
  11901. #ifndef LT_DLLAZY_OR_NOW
  11902. # ifdef RTLD_LAZY
  11903. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11904. # else
  11905. # ifdef DL_LAZY
  11906. # define LT_DLLAZY_OR_NOW DL_LAZY
  11907. # else
  11908. # ifdef RTLD_NOW
  11909. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11910. # else
  11911. # ifdef DL_NOW
  11912. # define LT_DLLAZY_OR_NOW DL_NOW
  11913. # else
  11914. # define LT_DLLAZY_OR_NOW 0
  11915. # endif
  11916. # endif
  11917. # endif
  11918. # endif
  11919. #endif
  11920. #ifdef __cplusplus
  11921. extern "C" void exit (int);
  11922. #endif
  11923. void fnord() { int i=42;}
  11924. int main ()
  11925. {
  11926. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11927. int status = $lt_dlunknown;
  11928. if (self)
  11929. {
  11930. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11931. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11932. /* dlclose (self); */
  11933. }
  11934. else
  11935. puts (dlerror ());
  11936. exit (status);
  11937. }
  11938. EOF
  11939. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11940. (eval $ac_link) 2>&5
  11941. ac_status=$?
  11942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11943. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  11944. (./conftest; exit; ) >&5 2>/dev/null
  11945. lt_status=$?
  11946. case x$lt_status in
  11947. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11948. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11949. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11950. esac
  11951. else :
  11952. # compilation failed
  11953. lt_cv_dlopen_self_static=no
  11954. fi
  11955. fi
  11956. rm -fr conftest*
  11957. fi
  11958. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  11959. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  11960. fi
  11961. CPPFLAGS="$save_CPPFLAGS"
  11962. LDFLAGS="$save_LDFLAGS"
  11963. LIBS="$save_LIBS"
  11964. ;;
  11965. esac
  11966. case $lt_cv_dlopen_self in
  11967. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11968. *) enable_dlopen_self=unknown ;;
  11969. esac
  11970. case $lt_cv_dlopen_self_static in
  11971. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11972. *) enable_dlopen_self_static=unknown ;;
  11973. esac
  11974. fi
  11975. # Report which library types will actually be built
  11976. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  11977. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  11978. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  11979. echo "${ECHO_T}$can_build_shared" >&6; }
  11980. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  11981. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  11982. test "$can_build_shared" = "no" && enable_shared=no
  11983. # On AIX, shared libraries and static libraries use the same namespace, and
  11984. # are all built from PIC.
  11985. case $host_os in
  11986. aix3*)
  11987. test "$enable_shared" = yes && enable_static=no
  11988. if test -n "$RANLIB"; then
  11989. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11990. postinstall_cmds='$RANLIB $lib'
  11991. fi
  11992. ;;
  11993. aix[4-9]*)
  11994. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11995. test "$enable_shared" = yes && enable_static=no
  11996. fi
  11997. ;;
  11998. esac
  11999. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  12000. echo "${ECHO_T}$enable_shared" >&6; }
  12001. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  12002. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  12003. # Make sure either enable_shared or enable_static is yes.
  12004. test "$enable_shared" = yes || enable_static=yes
  12005. { echo "$as_me:$LINENO: result: $enable_static" >&5
  12006. echo "${ECHO_T}$enable_static" >&6; }
  12007. # The else clause should only fire when bootstrapping the
  12008. # libtool distribution, otherwise you forgot to ship ltmain.sh
  12009. # with your package, and you will get complaints that there are
  12010. # no rules to generate ltmain.sh.
  12011. if test -f "$ltmain"; then
  12012. # See if we are running on zsh, and set the options which allow our commands through
  12013. # without removal of \ escapes.
  12014. if test -n "${ZSH_VERSION+set}" ; then
  12015. setopt NO_GLOB_SUBST
  12016. fi
  12017. # Now quote all the things that may contain metacharacters while being
  12018. # careful not to overquote the AC_SUBSTed values. We take copies of the
  12019. # variables and quote the copies for generation of the libtool script.
  12020. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  12021. SED SHELL STRIP \
  12022. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  12023. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  12024. deplibs_check_method reload_flag reload_cmds need_locks \
  12025. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  12026. lt_cv_sys_global_symbol_to_c_name_address \
  12027. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  12028. old_postinstall_cmds old_postuninstall_cmds \
  12029. compiler \
  12030. CC \
  12031. LD \
  12032. lt_prog_compiler_wl \
  12033. lt_prog_compiler_pic \
  12034. lt_prog_compiler_static \
  12035. lt_prog_compiler_no_builtin_flag \
  12036. export_dynamic_flag_spec \
  12037. thread_safe_flag_spec \
  12038. whole_archive_flag_spec \
  12039. enable_shared_with_static_runtimes \
  12040. old_archive_cmds \
  12041. old_archive_from_new_cmds \
  12042. predep_objects \
  12043. postdep_objects \
  12044. predeps \
  12045. postdeps \
  12046. compiler_lib_search_path \
  12047. compiler_lib_search_dirs \
  12048. archive_cmds \
  12049. archive_expsym_cmds \
  12050. postinstall_cmds \
  12051. postuninstall_cmds \
  12052. old_archive_from_expsyms_cmds \
  12053. allow_undefined_flag \
  12054. no_undefined_flag \
  12055. export_symbols_cmds \
  12056. hardcode_libdir_flag_spec \
  12057. hardcode_libdir_flag_spec_ld \
  12058. hardcode_libdir_separator \
  12059. hardcode_automatic \
  12060. module_cmds \
  12061. module_expsym_cmds \
  12062. lt_cv_prog_compiler_c_o \
  12063. fix_srcfile_path \
  12064. exclude_expsyms \
  12065. include_expsyms; do
  12066. case $var in
  12067. old_archive_cmds | \
  12068. old_archive_from_new_cmds | \
  12069. archive_cmds | \
  12070. archive_expsym_cmds | \
  12071. module_cmds | \
  12072. module_expsym_cmds | \
  12073. old_archive_from_expsyms_cmds | \
  12074. export_symbols_cmds | \
  12075. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  12076. postinstall_cmds | postuninstall_cmds | \
  12077. old_postinstall_cmds | old_postuninstall_cmds | \
  12078. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  12079. # Double-quote double-evaled strings.
  12080. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  12081. ;;
  12082. *)
  12083. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  12084. ;;
  12085. esac
  12086. done
  12087. case $lt_echo in
  12088. *'\$0 --fallback-echo"')
  12089. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  12090. ;;
  12091. esac
  12092. cfgfile="${ofile}T"
  12093. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  12094. $rm -f "$cfgfile"
  12095. { echo "$as_me:$LINENO: creating $ofile" >&5
  12096. echo "$as_me: creating $ofile" >&6;}
  12097. cat <<__EOF__ >> "$cfgfile"
  12098. #! $SHELL
  12099. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  12100. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  12101. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  12102. #
  12103. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  12104. # Free Software Foundation, Inc.
  12105. #
  12106. # This file is part of GNU Libtool:
  12107. # Originally by Gordon Matzigkeit <[email protected]>, 1996
  12108. #
  12109. # This program is free software; you can redistribute it and/or modify
  12110. # it under the terms of the GNU General Public License as published by
  12111. # the Free Software Foundation; either version 2 of the License, or
  12112. # (at your option) any later version.
  12113. #
  12114. # This program is distributed in the hope that it will be useful, but
  12115. # WITHOUT ANY WARRANTY; without even the implied warranty of
  12116. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12117. # General Public License for more details.
  12118. #
  12119. # You should have received a copy of the GNU General Public License
  12120. # along with this program; if not, write to the Free Software
  12121. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  12122. #
  12123. # As a special exception to the GNU General Public License, if you
  12124. # distribute this file as part of a program that contains a
  12125. # configuration script generated by Autoconf, you may include it under
  12126. # the same distribution terms that you use for the rest of that program.
  12127. # A sed program that does not truncate output.
  12128. SED=$lt_SED
  12129. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  12130. Xsed="$SED -e 1s/^X//"
  12131. # The HP-UX ksh and POSIX shell print the target directory to stdout
  12132. # if CDPATH is set.
  12133. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12134. # The names of the tagged configurations supported by this script.
  12135. available_tags=
  12136. # ### BEGIN LIBTOOL CONFIG
  12137. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12138. # Shell to use when invoking shell scripts.
  12139. SHELL=$lt_SHELL
  12140. # Whether or not to build shared libraries.
  12141. build_libtool_libs=$enable_shared
  12142. # Whether or not to build static libraries.
  12143. build_old_libs=$enable_static
  12144. # Whether or not to add -lc for building shared libraries.
  12145. build_libtool_need_lc=$archive_cmds_need_lc
  12146. # Whether or not to disallow shared libs when runtime libs are static
  12147. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  12148. # Whether or not to optimize for fast installation.
  12149. fast_install=$enable_fast_install
  12150. # The host system.
  12151. host_alias=$host_alias
  12152. host=$host
  12153. host_os=$host_os
  12154. # The build system.
  12155. build_alias=$build_alias
  12156. build=$build
  12157. build_os=$build_os
  12158. # An echo program that does not interpret backslashes.
  12159. echo=$lt_echo
  12160. # The archiver.
  12161. AR=$lt_AR
  12162. AR_FLAGS=$lt_AR_FLAGS
  12163. # A C compiler.
  12164. LTCC=$lt_LTCC
  12165. # LTCC compiler flags.
  12166. LTCFLAGS=$lt_LTCFLAGS
  12167. # A language-specific compiler.
  12168. CC=$lt_compiler
  12169. # Is the compiler the GNU C compiler?
  12170. with_gcc=$GCC
  12171. # An ERE matcher.
  12172. EGREP=$lt_EGREP
  12173. # The linker used to build libraries.
  12174. LD=$lt_LD
  12175. # Whether we need hard or soft links.
  12176. LN_S=$lt_LN_S
  12177. # A BSD-compatible nm program.
  12178. NM=$lt_NM
  12179. # A symbol stripping program
  12180. STRIP=$lt_STRIP
  12181. # Used to examine libraries when file_magic_cmd begins "file"
  12182. MAGIC_CMD=$MAGIC_CMD
  12183. # Used on cygwin: DLL creation program.
  12184. DLLTOOL="$DLLTOOL"
  12185. # Used on cygwin: object dumper.
  12186. OBJDUMP="$OBJDUMP"
  12187. # Used on cygwin: assembler.
  12188. AS="$AS"
  12189. # The name of the directory that contains temporary libtool files.
  12190. objdir=$objdir
  12191. # How to create reloadable object files.
  12192. reload_flag=$lt_reload_flag
  12193. reload_cmds=$lt_reload_cmds
  12194. # How to pass a linker flag through the compiler.
  12195. wl=$lt_lt_prog_compiler_wl
  12196. # Object file suffix (normally "o").
  12197. objext="$ac_objext"
  12198. # Old archive suffix (normally "a").
  12199. libext="$libext"
  12200. # Shared library suffix (normally ".so").
  12201. shrext_cmds='$shrext_cmds'
  12202. # Executable file suffix (normally "").
  12203. exeext="$exeext"
  12204. # Additional compiler flags for building library objects.
  12205. pic_flag=$lt_lt_prog_compiler_pic
  12206. pic_mode=$pic_mode
  12207. # What is the maximum length of a command?
  12208. max_cmd_len=$lt_cv_sys_max_cmd_len
  12209. # Does compiler simultaneously support -c and -o options?
  12210. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  12211. # Must we lock files when doing compilation?
  12212. need_locks=$lt_need_locks
  12213. # Do we need the lib prefix for modules?
  12214. need_lib_prefix=$need_lib_prefix
  12215. # Do we need a version for libraries?
  12216. need_version=$need_version
  12217. # Whether dlopen is supported.
  12218. dlopen_support=$enable_dlopen
  12219. # Whether dlopen of programs is supported.
  12220. dlopen_self=$enable_dlopen_self
  12221. # Whether dlopen of statically linked programs is supported.
  12222. dlopen_self_static=$enable_dlopen_self_static
  12223. # Compiler flag to prevent dynamic linking.
  12224. link_static_flag=$lt_lt_prog_compiler_static
  12225. # Compiler flag to turn off builtin functions.
  12226. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  12227. # Compiler flag to allow reflexive dlopens.
  12228. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  12229. # Compiler flag to generate shared objects directly from archives.
  12230. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  12231. # Compiler flag to generate thread-safe objects.
  12232. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  12233. # Library versioning type.
  12234. version_type=$version_type
  12235. # Format of library name prefix.
  12236. libname_spec=$lt_libname_spec
  12237. # List of archive names. First name is the real one, the rest are links.
  12238. # The last name is the one that the linker finds with -lNAME.
  12239. library_names_spec=$lt_library_names_spec
  12240. # The coded name of the library, if different from the real name.
  12241. soname_spec=$lt_soname_spec
  12242. # Commands used to build and install an old-style archive.
  12243. RANLIB=$lt_RANLIB
  12244. old_archive_cmds=$lt_old_archive_cmds
  12245. old_postinstall_cmds=$lt_old_postinstall_cmds
  12246. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12247. # Create an old-style archive from a shared archive.
  12248. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  12249. # Create a temporary old-style archive to link instead of a shared archive.
  12250. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  12251. # Commands used to build and install a shared archive.
  12252. archive_cmds=$lt_archive_cmds
  12253. archive_expsym_cmds=$lt_archive_expsym_cmds
  12254. postinstall_cmds=$lt_postinstall_cmds
  12255. postuninstall_cmds=$lt_postuninstall_cmds
  12256. # Commands used to build a loadable module (assumed same as above if empty)
  12257. module_cmds=$lt_module_cmds
  12258. module_expsym_cmds=$lt_module_expsym_cmds
  12259. # Commands to strip libraries.
  12260. old_striplib=$lt_old_striplib
  12261. striplib=$lt_striplib
  12262. # Dependencies to place before the objects being linked to create a
  12263. # shared library.
  12264. predep_objects=$lt_predep_objects
  12265. # Dependencies to place after the objects being linked to create a
  12266. # shared library.
  12267. postdep_objects=$lt_postdep_objects
  12268. # Dependencies to place before the objects being linked to create a
  12269. # shared library.
  12270. predeps=$lt_predeps
  12271. # Dependencies to place after the objects being linked to create a
  12272. # shared library.
  12273. postdeps=$lt_postdeps
  12274. # The directories searched by this compiler when creating a shared
  12275. # library
  12276. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  12277. # The library search path used internally by the compiler when linking
  12278. # a shared library.
  12279. compiler_lib_search_path=$lt_compiler_lib_search_path
  12280. # Method to check whether dependent libraries are shared objects.
  12281. deplibs_check_method=$lt_deplibs_check_method
  12282. # Command to use when deplibs_check_method == file_magic.
  12283. file_magic_cmd=$lt_file_magic_cmd
  12284. # Flag that allows shared libraries with undefined symbols to be built.
  12285. allow_undefined_flag=$lt_allow_undefined_flag
  12286. # Flag that forces no undefined symbols.
  12287. no_undefined_flag=$lt_no_undefined_flag
  12288. # Commands used to finish a libtool library installation in a directory.
  12289. finish_cmds=$lt_finish_cmds
  12290. # Same as above, but a single script fragment to be evaled but not shown.
  12291. finish_eval=$lt_finish_eval
  12292. # Take the output of nm and produce a listing of raw symbols and C names.
  12293. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12294. # Transform the output of nm in a proper C declaration
  12295. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12296. # Transform the output of nm in a C name address pair
  12297. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12298. # This is the shared library runtime path variable.
  12299. runpath_var=$runpath_var
  12300. # This is the shared library path variable.
  12301. shlibpath_var=$shlibpath_var
  12302. # Is shlibpath searched before the hard-coded library search path?
  12303. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12304. # How to hardcode a shared library path into an executable.
  12305. hardcode_action=$hardcode_action
  12306. # Whether we should hardcode library paths into libraries.
  12307. hardcode_into_libs=$hardcode_into_libs
  12308. # Flag to hardcode \$libdir into a binary during linking.
  12309. # This must work even if \$libdir does not exist.
  12310. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  12311. # If ld is used when linking, flag to hardcode \$libdir into
  12312. # a binary during linking. This must work even if \$libdir does
  12313. # not exist.
  12314. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  12315. # Whether we need a single -rpath flag with a separated argument.
  12316. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  12317. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  12318. # resulting binary.
  12319. hardcode_direct=$hardcode_direct
  12320. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  12321. # resulting binary.
  12322. hardcode_minus_L=$hardcode_minus_L
  12323. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  12324. # the resulting binary.
  12325. hardcode_shlibpath_var=$hardcode_shlibpath_var
  12326. # Set to yes if building a shared library automatically hardcodes DIR into the library
  12327. # and all subsequent libraries and executables linked against it.
  12328. hardcode_automatic=$hardcode_automatic
  12329. # Variables whose values should be saved in libtool wrapper scripts and
  12330. # restored at relink time.
  12331. variables_saved_for_relink="$variables_saved_for_relink"
  12332. # Whether libtool must link a program against all its dependency libraries.
  12333. link_all_deplibs=$link_all_deplibs
  12334. # Compile-time system search path for libraries
  12335. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12336. # Run-time system search path for libraries
  12337. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12338. # Fix the shell variable \$srcfile for the compiler.
  12339. fix_srcfile_path=$lt_fix_srcfile_path
  12340. # Set to yes if exported symbols are required.
  12341. always_export_symbols=$always_export_symbols
  12342. # The commands to list exported symbols.
  12343. export_symbols_cmds=$lt_export_symbols_cmds
  12344. # The commands to extract the exported symbol list from a shared archive.
  12345. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12346. # Symbols that should not be listed in the preloaded symbols.
  12347. exclude_expsyms=$lt_exclude_expsyms
  12348. # Symbols that must always be exported.
  12349. include_expsyms=$lt_include_expsyms
  12350. # ### END LIBTOOL CONFIG
  12351. __EOF__
  12352. case $host_os in
  12353. aix3*)
  12354. cat <<\EOF >> "$cfgfile"
  12355. # AIX sometimes has problems with the GCC collect2 program. For some
  12356. # reason, if we set the COLLECT_NAMES environment variable, the problems
  12357. # vanish in a puff of smoke.
  12358. if test "X${COLLECT_NAMES+set}" != Xset; then
  12359. COLLECT_NAMES=
  12360. export COLLECT_NAMES
  12361. fi
  12362. EOF
  12363. ;;
  12364. esac
  12365. # We use sed instead of cat because bash on DJGPP gets confused if
  12366. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  12367. # text mode, it properly converts lines to CR/LF. This bash problem
  12368. # is reportedly fixed, but why not run on old versions too?
  12369. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  12370. mv -f "$cfgfile" "$ofile" || \
  12371. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  12372. chmod +x "$ofile"
  12373. else
  12374. # If there is no Makefile yet, we rely on a make rule to execute
  12375. # `config.status --recheck' to rerun these tests and create the
  12376. # libtool script then.
  12377. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  12378. if test -f "$ltmain_in"; then
  12379. test -f Makefile && make "$ltmain"
  12380. fi
  12381. fi
  12382. ac_ext=c
  12383. ac_cpp='$CPP $CPPFLAGS'
  12384. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12385. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12386. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12387. CC="$lt_save_CC"
  12388. # Check whether --with-tags was given.
  12389. if test "${with_tags+set}" = set; then
  12390. withval=$with_tags; tagnames="$withval"
  12391. fi
  12392. if test -f "$ltmain" && test -n "$tagnames"; then
  12393. if test ! -f "${ofile}"; then
  12394. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  12395. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  12396. fi
  12397. if test -z "$LTCC"; then
  12398. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  12399. if test -z "$LTCC"; then
  12400. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  12401. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  12402. else
  12403. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  12404. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  12405. fi
  12406. fi
  12407. if test -z "$LTCFLAGS"; then
  12408. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  12409. fi
  12410. # Extract list of available tagged configurations in $ofile.
  12411. # Note that this assumes the entire list is on one line.
  12412. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  12413. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12414. for tagname in $tagnames; do
  12415. IFS="$lt_save_ifs"
  12416. # Check whether tagname contains only valid characters
  12417. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  12418. "") ;;
  12419. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  12420. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  12421. { (exit 1); exit 1; }; }
  12422. ;;
  12423. esac
  12424. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  12425. then
  12426. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  12427. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  12428. { (exit 1); exit 1; }; }
  12429. fi
  12430. # Update the list of available tags.
  12431. if test -n "$tagname"; then
  12432. echo appending configuration tag \"$tagname\" to $ofile
  12433. case $tagname in
  12434. CXX)
  12435. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  12436. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  12437. (test "X$CXX" != "Xg++"))) ; then
  12438. ac_ext=cpp
  12439. ac_cpp='$CXXCPP $CPPFLAGS'
  12440. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12441. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12442. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12443. archive_cmds_need_lc_CXX=no
  12444. allow_undefined_flag_CXX=
  12445. always_export_symbols_CXX=no
  12446. archive_expsym_cmds_CXX=
  12447. export_dynamic_flag_spec_CXX=
  12448. hardcode_direct_CXX=no
  12449. hardcode_libdir_flag_spec_CXX=
  12450. hardcode_libdir_flag_spec_ld_CXX=
  12451. hardcode_libdir_separator_CXX=
  12452. hardcode_minus_L_CXX=no
  12453. hardcode_shlibpath_var_CXX=unsupported
  12454. hardcode_automatic_CXX=no
  12455. module_cmds_CXX=
  12456. module_expsym_cmds_CXX=
  12457. link_all_deplibs_CXX=unknown
  12458. old_archive_cmds_CXX=$old_archive_cmds
  12459. no_undefined_flag_CXX=
  12460. whole_archive_flag_spec_CXX=
  12461. enable_shared_with_static_runtimes_CXX=no
  12462. # Dependencies to place before and after the object being linked:
  12463. predep_objects_CXX=
  12464. postdep_objects_CXX=
  12465. predeps_CXX=
  12466. postdeps_CXX=
  12467. compiler_lib_search_path_CXX=
  12468. compiler_lib_search_dirs_CXX=
  12469. # Source file extension for C++ test sources.
  12470. ac_ext=cpp
  12471. # Object file extension for compiled C++ test sources.
  12472. objext=o
  12473. objext_CXX=$objext
  12474. # Code to be used in simple compile tests
  12475. lt_simple_compile_test_code="int some_variable = 0;"
  12476. # Code to be used in simple link tests
  12477. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12478. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12479. # If no C compiler was specified, use CC.
  12480. LTCC=${LTCC-"$CC"}
  12481. # If no C compiler flags were specified, use CFLAGS.
  12482. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12483. # Allow CC to be a program name with arguments.
  12484. compiler=$CC
  12485. # save warnings/boilerplate of simple test code
  12486. ac_outfile=conftest.$ac_objext
  12487. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12488. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12489. _lt_compiler_boilerplate=`cat conftest.err`
  12490. $rm conftest*
  12491. ac_outfile=conftest.$ac_objext
  12492. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12493. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12494. _lt_linker_boilerplate=`cat conftest.err`
  12495. $rm -r conftest*
  12496. # Allow CC to be a program name with arguments.
  12497. lt_save_CC=$CC
  12498. lt_save_LD=$LD
  12499. lt_save_GCC=$GCC
  12500. GCC=$GXX
  12501. lt_save_with_gnu_ld=$with_gnu_ld
  12502. lt_save_path_LD=$lt_cv_path_LD
  12503. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12504. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12505. else
  12506. $as_unset lt_cv_prog_gnu_ld
  12507. fi
  12508. if test -n "${lt_cv_path_LDCXX+set}"; then
  12509. lt_cv_path_LD=$lt_cv_path_LDCXX
  12510. else
  12511. $as_unset lt_cv_path_LD
  12512. fi
  12513. test -z "${LDCXX+set}" || LD=$LDCXX
  12514. CC=${CXX-"c++"}
  12515. compiler=$CC
  12516. compiler_CXX=$CC
  12517. for cc_temp in $compiler""; do
  12518. case $cc_temp in
  12519. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12520. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12521. \-*) ;;
  12522. *) break;;
  12523. esac
  12524. done
  12525. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12526. # We don't want -fno-exception wen compiling C++ code, so set the
  12527. # no_builtin_flag separately
  12528. if test "$GXX" = yes; then
  12529. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12530. else
  12531. lt_prog_compiler_no_builtin_flag_CXX=
  12532. fi
  12533. if test "$GXX" = yes; then
  12534. # Set up default GNU C++ configuration
  12535. # Check whether --with-gnu-ld was given.
  12536. if test "${with_gnu_ld+set}" = set; then
  12537. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  12538. else
  12539. with_gnu_ld=no
  12540. fi
  12541. ac_prog=ld
  12542. if test "$GCC" = yes; then
  12543. # Check if gcc -print-prog-name=ld gives a path.
  12544. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  12545. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  12546. case $host in
  12547. *-*-mingw*)
  12548. # gcc leaves a trailing carriage return which upsets mingw
  12549. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12550. *)
  12551. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12552. esac
  12553. case $ac_prog in
  12554. # Accept absolute paths.
  12555. [\\/]* | ?:[\\/]*)
  12556. re_direlt='/[^/][^/]*/\.\./'
  12557. # Canonicalize the pathname of ld
  12558. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  12559. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  12560. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  12561. done
  12562. test -z "$LD" && LD="$ac_prog"
  12563. ;;
  12564. "")
  12565. # If it fails, then pretend we aren't using GCC.
  12566. ac_prog=ld
  12567. ;;
  12568. *)
  12569. # If it is relative, then search for the first ld in PATH.
  12570. with_gnu_ld=unknown
  12571. ;;
  12572. esac
  12573. elif test "$with_gnu_ld" = yes; then
  12574. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  12575. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  12576. else
  12577. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  12578. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  12579. fi
  12580. if test "${lt_cv_path_LD+set}" = set; then
  12581. echo $ECHO_N "(cached) $ECHO_C" >&6
  12582. else
  12583. if test -z "$LD"; then
  12584. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  12585. for ac_dir in $PATH; do
  12586. IFS="$lt_save_ifs"
  12587. test -z "$ac_dir" && ac_dir=.
  12588. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12589. lt_cv_path_LD="$ac_dir/$ac_prog"
  12590. # Check to see if the program is GNU ld. I'd rather use --version,
  12591. # but apparently some variants of GNU ld only accept -v.
  12592. # Break only if it was the GNU/non-GNU ld that we prefer.
  12593. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12594. *GNU* | *'with BFD'*)
  12595. test "$with_gnu_ld" != no && break
  12596. ;;
  12597. *)
  12598. test "$with_gnu_ld" != yes && break
  12599. ;;
  12600. esac
  12601. fi
  12602. done
  12603. IFS="$lt_save_ifs"
  12604. else
  12605. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  12606. fi
  12607. fi
  12608. LD="$lt_cv_path_LD"
  12609. if test -n "$LD"; then
  12610. { echo "$as_me:$LINENO: result: $LD" >&5
  12611. echo "${ECHO_T}$LD" >&6; }
  12612. else
  12613. { echo "$as_me:$LINENO: result: no" >&5
  12614. echo "${ECHO_T}no" >&6; }
  12615. fi
  12616. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  12617. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  12618. { (exit 1); exit 1; }; }
  12619. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  12620. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  12621. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  12622. echo $ECHO_N "(cached) $ECHO_C" >&6
  12623. else
  12624. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12625. case `$LD -v 2>&1 </dev/null` in
  12626. *GNU* | *'with BFD'*)
  12627. lt_cv_prog_gnu_ld=yes
  12628. ;;
  12629. *)
  12630. lt_cv_prog_gnu_ld=no
  12631. ;;
  12632. esac
  12633. fi
  12634. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  12635. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  12636. with_gnu_ld=$lt_cv_prog_gnu_ld
  12637. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12638. # archiving commands below assume that GNU ld is being used.
  12639. if test "$with_gnu_ld" = yes; then
  12640. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12641. 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'
  12642. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  12643. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12644. # If archive_cmds runs LD, not CC, wlarc should be empty
  12645. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12646. # investigate it a little bit more. (MM)
  12647. wlarc='${wl}'
  12648. # ancient GNU ld didn't support --whole-archive et. al.
  12649. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  12650. grep 'no-whole-archive' > /dev/null; then
  12651. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12652. else
  12653. whole_archive_flag_spec_CXX=
  12654. fi
  12655. else
  12656. with_gnu_ld=no
  12657. wlarc=
  12658. # A generic and very simple default shared library creation
  12659. # command for GNU C++ for the case where it uses the native
  12660. # linker, instead of GNU ld. If possible, this setting should
  12661. # overridden to take advantage of the native linker features on
  12662. # the platform it is being used on.
  12663. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12664. fi
  12665. # Commands to make compiler produce verbose output that lists
  12666. # what "hidden" libraries, object files and flags are used when
  12667. # linking a shared library.
  12668. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  12669. else
  12670. GXX=no
  12671. with_gnu_ld=no
  12672. wlarc=
  12673. fi
  12674. # PORTME: fill in a description of your system's C++ link characteristics
  12675. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12676. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  12677. ld_shlibs_CXX=yes
  12678. case $host_os in
  12679. aix3*)
  12680. # FIXME: insert proper C++ library support
  12681. ld_shlibs_CXX=no
  12682. ;;
  12683. aix[4-9]*)
  12684. if test "$host_cpu" = ia64; then
  12685. # On IA64, the linker does run time linking by default, so we don't
  12686. # have to do anything special.
  12687. aix_use_runtimelinking=no
  12688. exp_sym_flag='-Bexport'
  12689. no_entry_flag=""
  12690. else
  12691. aix_use_runtimelinking=no
  12692. # Test if we are trying to use run time linking or normal
  12693. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12694. # need to do runtime linking.
  12695. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12696. for ld_flag in $LDFLAGS; do
  12697. case $ld_flag in
  12698. *-brtl*)
  12699. aix_use_runtimelinking=yes
  12700. break
  12701. ;;
  12702. esac
  12703. done
  12704. ;;
  12705. esac
  12706. exp_sym_flag='-bexport'
  12707. no_entry_flag='-bnoentry'
  12708. fi
  12709. # When large executables or shared objects are built, AIX ld can
  12710. # have problems creating the table of contents. If linking a library
  12711. # or program results in "error TOC overflow" add -mminimal-toc to
  12712. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12713. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12714. archive_cmds_CXX=''
  12715. hardcode_direct_CXX=yes
  12716. hardcode_libdir_separator_CXX=':'
  12717. link_all_deplibs_CXX=yes
  12718. if test "$GXX" = yes; then
  12719. case $host_os in aix4.[012]|aix4.[012].*)
  12720. # We only want to do this on AIX 4.2 and lower, the check
  12721. # below for broken collect2 doesn't work under 4.3+
  12722. collect2name=`${CC} -print-prog-name=collect2`
  12723. if test -f "$collect2name" && \
  12724. strings "$collect2name" | grep resolve_lib_name >/dev/null
  12725. then
  12726. # We have reworked collect2
  12727. :
  12728. else
  12729. # We have old collect2
  12730. hardcode_direct_CXX=unsupported
  12731. # It fails to find uninstalled libraries when the uninstalled
  12732. # path is not listed in the libpath. Setting hardcode_minus_L
  12733. # to unsupported forces relinking
  12734. hardcode_minus_L_CXX=yes
  12735. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12736. hardcode_libdir_separator_CXX=
  12737. fi
  12738. ;;
  12739. esac
  12740. shared_flag='-shared'
  12741. if test "$aix_use_runtimelinking" = yes; then
  12742. shared_flag="$shared_flag "'${wl}-G'
  12743. fi
  12744. else
  12745. # not using gcc
  12746. if test "$host_cpu" = ia64; then
  12747. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12748. # chokes on -Wl,-G. The following line is correct:
  12749. shared_flag='-G'
  12750. else
  12751. if test "$aix_use_runtimelinking" = yes; then
  12752. shared_flag='${wl}-G'
  12753. else
  12754. shared_flag='${wl}-bM:SRE'
  12755. fi
  12756. fi
  12757. fi
  12758. # It seems that -bexpall does not export symbols beginning with
  12759. # underscore (_), so it is better to generate a list of symbols to export.
  12760. always_export_symbols_CXX=yes
  12761. if test "$aix_use_runtimelinking" = yes; then
  12762. # Warning - without using the other runtime loading flags (-brtl),
  12763. # -berok will link without error, but may produce a broken library.
  12764. allow_undefined_flag_CXX='-berok'
  12765. # Determine the default libpath from the value encoded in an empty executable.
  12766. cat >conftest.$ac_ext <<_ACEOF
  12767. /* confdefs.h. */
  12768. _ACEOF
  12769. cat confdefs.h >>conftest.$ac_ext
  12770. cat >>conftest.$ac_ext <<_ACEOF
  12771. /* end confdefs.h. */
  12772. int
  12773. main ()
  12774. {
  12775. ;
  12776. return 0;
  12777. }
  12778. _ACEOF
  12779. rm -f conftest.$ac_objext conftest$ac_exeext
  12780. if { (ac_try="$ac_link"
  12781. case "(($ac_try" in
  12782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12783. *) ac_try_echo=$ac_try;;
  12784. esac
  12785. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12786. (eval "$ac_link") 2>conftest.er1
  12787. ac_status=$?
  12788. grep -v '^ *+' conftest.er1 >conftest.err
  12789. rm -f conftest.er1
  12790. cat conftest.err >&5
  12791. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12792. (exit $ac_status); } && {
  12793. test -z "$ac_cxx_werror_flag" ||
  12794. test ! -s conftest.err
  12795. } && test -s conftest$ac_exeext &&
  12796. $as_test_x conftest$ac_exeext; then
  12797. lt_aix_libpath_sed='
  12798. /Import File Strings/,/^$/ {
  12799. /^0/ {
  12800. s/^0 *\(.*\)$/\1/
  12801. p
  12802. }
  12803. }'
  12804. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12805. # Check for a 64-bit object if we didn't find anything.
  12806. if test -z "$aix_libpath"; then
  12807. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12808. fi
  12809. else
  12810. echo "$as_me: failed program was:" >&5
  12811. sed 's/^/| /' conftest.$ac_ext >&5
  12812. fi
  12813. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12814. conftest$ac_exeext conftest.$ac_ext
  12815. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12816. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  12817. archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  12818. else
  12819. if test "$host_cpu" = ia64; then
  12820. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  12821. allow_undefined_flag_CXX="-z nodefs"
  12822. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  12823. else
  12824. # Determine the default libpath from the value encoded in an empty executable.
  12825. cat >conftest.$ac_ext <<_ACEOF
  12826. /* confdefs.h. */
  12827. _ACEOF
  12828. cat confdefs.h >>conftest.$ac_ext
  12829. cat >>conftest.$ac_ext <<_ACEOF
  12830. /* end confdefs.h. */
  12831. int
  12832. main ()
  12833. {
  12834. ;
  12835. return 0;
  12836. }
  12837. _ACEOF
  12838. rm -f conftest.$ac_objext conftest$ac_exeext
  12839. if { (ac_try="$ac_link"
  12840. case "(($ac_try" in
  12841. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12842. *) ac_try_echo=$ac_try;;
  12843. esac
  12844. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12845. (eval "$ac_link") 2>conftest.er1
  12846. ac_status=$?
  12847. grep -v '^ *+' conftest.er1 >conftest.err
  12848. rm -f conftest.er1
  12849. cat conftest.err >&5
  12850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12851. (exit $ac_status); } && {
  12852. test -z "$ac_cxx_werror_flag" ||
  12853. test ! -s conftest.err
  12854. } && test -s conftest$ac_exeext &&
  12855. $as_test_x conftest$ac_exeext; then
  12856. lt_aix_libpath_sed='
  12857. /Import File Strings/,/^$/ {
  12858. /^0/ {
  12859. s/^0 *\(.*\)$/\1/
  12860. p
  12861. }
  12862. }'
  12863. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12864. # Check for a 64-bit object if we didn't find anything.
  12865. if test -z "$aix_libpath"; then
  12866. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12867. fi
  12868. else
  12869. echo "$as_me: failed program was:" >&5
  12870. sed 's/^/| /' conftest.$ac_ext >&5
  12871. fi
  12872. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12873. conftest$ac_exeext conftest.$ac_ext
  12874. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12875. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  12876. # Warning - without using the other run time loading flags,
  12877. # -berok will link without error, but may produce a broken library.
  12878. no_undefined_flag_CXX=' ${wl}-bernotok'
  12879. allow_undefined_flag_CXX=' ${wl}-berok'
  12880. # Exported symbols can be pulled into shared objects from archives
  12881. whole_archive_flag_spec_CXX='$convenience'
  12882. archive_cmds_need_lc_CXX=yes
  12883. # This is similar to how AIX traditionally builds its shared libraries.
  12884. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  12885. fi
  12886. fi
  12887. ;;
  12888. beos*)
  12889. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12890. allow_undefined_flag_CXX=unsupported
  12891. # Joseph Beckenbach <[email protected]> says some releases of gcc
  12892. # support --undefined. This deserves some investigation. FIXME
  12893. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12894. else
  12895. ld_shlibs_CXX=no
  12896. fi
  12897. ;;
  12898. chorus*)
  12899. case $cc_basename in
  12900. *)
  12901. # FIXME: insert proper C++ library support
  12902. ld_shlibs_CXX=no
  12903. ;;
  12904. esac
  12905. ;;
  12906. cygwin* | mingw* | pw32*)
  12907. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  12908. # as there is no search path for DLLs.
  12909. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12910. allow_undefined_flag_CXX=unsupported
  12911. always_export_symbols_CXX=no
  12912. enable_shared_with_static_runtimes_CXX=yes
  12913. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  12914. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12915. # If the export-symbols file already is a .def file (1st line
  12916. # is EXPORTS), use it as is; otherwise, prepend...
  12917. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  12918. cp $export_symbols $output_objdir/$soname.def;
  12919. else
  12920. echo EXPORTS > $output_objdir/$soname.def;
  12921. cat $export_symbols >> $output_objdir/$soname.def;
  12922. fi~
  12923. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12924. else
  12925. ld_shlibs_CXX=no
  12926. fi
  12927. ;;
  12928. darwin* | rhapsody*)
  12929. archive_cmds_need_lc_CXX=no
  12930. hardcode_direct_CXX=no
  12931. hardcode_automatic_CXX=yes
  12932. hardcode_shlibpath_var_CXX=unsupported
  12933. whole_archive_flag_spec_CXX=''
  12934. link_all_deplibs_CXX=yes
  12935. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  12936. if test "$GXX" = yes ; then
  12937. output_verbose_link_cmd='echo'
  12938. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  12939. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  12940. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  12941. module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  12942. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  12943. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  12944. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  12945. fi
  12946. else
  12947. case $cc_basename in
  12948. xlc*)
  12949. output_verbose_link_cmd='echo'
  12950. archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  12951. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12952. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12953. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12954. 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}'
  12955. ;;
  12956. *)
  12957. ld_shlibs_CXX=no
  12958. ;;
  12959. esac
  12960. fi
  12961. ;;
  12962. dgux*)
  12963. case $cc_basename in
  12964. ec++*)
  12965. # FIXME: insert proper C++ library support
  12966. ld_shlibs_CXX=no
  12967. ;;
  12968. ghcx*)
  12969. # Green Hills C++ Compiler
  12970. # FIXME: insert proper C++ library support
  12971. ld_shlibs_CXX=no
  12972. ;;
  12973. *)
  12974. # FIXME: insert proper C++ library support
  12975. ld_shlibs_CXX=no
  12976. ;;
  12977. esac
  12978. ;;
  12979. freebsd[12]*)
  12980. # C++ shared libraries reported to be fairly broken before switch to ELF
  12981. ld_shlibs_CXX=no
  12982. ;;
  12983. freebsd-elf*)
  12984. archive_cmds_need_lc_CXX=no
  12985. ;;
  12986. freebsd* | dragonfly*)
  12987. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  12988. # conventions
  12989. ld_shlibs_CXX=yes
  12990. ;;
  12991. gnu*)
  12992. ;;
  12993. hpux9*)
  12994. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  12995. hardcode_libdir_separator_CXX=:
  12996. export_dynamic_flag_spec_CXX='${wl}-E'
  12997. hardcode_direct_CXX=yes
  12998. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12999. # but as the default
  13000. # location of the library.
  13001. case $cc_basename in
  13002. CC*)
  13003. # FIXME: insert proper C++ library support
  13004. ld_shlibs_CXX=no
  13005. ;;
  13006. aCC*)
  13007. 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'
  13008. # Commands to make compiler produce verbose output that lists
  13009. # what "hidden" libraries, object files and flags are used when
  13010. # linking a shared library.
  13011. #
  13012. # There doesn't appear to be a way to prevent this compiler from
  13013. # explicitly linking system object files so we need to strip them
  13014. # from the output so that they don't get included in the library
  13015. # dependencies.
  13016. 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'
  13017. ;;
  13018. *)
  13019. if test "$GXX" = yes; then
  13020. 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'
  13021. else
  13022. # FIXME: insert proper C++ library support
  13023. ld_shlibs_CXX=no
  13024. fi
  13025. ;;
  13026. esac
  13027. ;;
  13028. hpux10*|hpux11*)
  13029. if test $with_gnu_ld = no; then
  13030. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  13031. hardcode_libdir_separator_CXX=:
  13032. case $host_cpu in
  13033. hppa*64*|ia64*) ;;
  13034. *)
  13035. export_dynamic_flag_spec_CXX='${wl}-E'
  13036. ;;
  13037. esac
  13038. fi
  13039. case $host_cpu in
  13040. hppa*64*|ia64*)
  13041. hardcode_direct_CXX=no
  13042. hardcode_shlibpath_var_CXX=no
  13043. ;;
  13044. *)
  13045. hardcode_direct_CXX=yes
  13046. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13047. # but as the default
  13048. # location of the library.
  13049. ;;
  13050. esac
  13051. case $cc_basename in
  13052. CC*)
  13053. # FIXME: insert proper C++ library support
  13054. ld_shlibs_CXX=no
  13055. ;;
  13056. aCC*)
  13057. case $host_cpu in
  13058. hppa*64*)
  13059. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13060. ;;
  13061. ia64*)
  13062. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13063. ;;
  13064. *)
  13065. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13066. ;;
  13067. esac
  13068. # Commands to make compiler produce verbose output that lists
  13069. # what "hidden" libraries, object files and flags are used when
  13070. # linking a shared library.
  13071. #
  13072. # There doesn't appear to be a way to prevent this compiler from
  13073. # explicitly linking system object files so we need to strip them
  13074. # from the output so that they don't get included in the library
  13075. # dependencies.
  13076. 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'
  13077. ;;
  13078. *)
  13079. if test "$GXX" = yes; then
  13080. if test $with_gnu_ld = no; then
  13081. case $host_cpu in
  13082. hppa*64*)
  13083. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13084. ;;
  13085. ia64*)
  13086. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13087. ;;
  13088. *)
  13089. 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'
  13090. ;;
  13091. esac
  13092. fi
  13093. else
  13094. # FIXME: insert proper C++ library support
  13095. ld_shlibs_CXX=no
  13096. fi
  13097. ;;
  13098. esac
  13099. ;;
  13100. interix[3-9]*)
  13101. hardcode_direct_CXX=no
  13102. hardcode_shlibpath_var_CXX=no
  13103. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  13104. export_dynamic_flag_spec_CXX='${wl}-E'
  13105. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13106. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13107. # default) and relocated if they conflict, which is a slow very memory
  13108. # consuming and fragmenting process. To avoid this, we pick a random,
  13109. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13110. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13111. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  13112. archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  13113. ;;
  13114. irix5* | irix6*)
  13115. case $cc_basename in
  13116. CC*)
  13117. # SGI C++
  13118. 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 ${output_objdir}/so_locations -o $lib'
  13119. # Archives containing C++ object files must be created using
  13120. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13121. # necessary to make sure instantiated templates are included
  13122. # in the archive.
  13123. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13124. ;;
  13125. *)
  13126. if test "$GXX" = yes; then
  13127. if test "$with_gnu_ld" = no; then
  13128. 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}${output_objdir}/so_locations -o $lib'
  13129. else
  13130. 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'
  13131. fi
  13132. fi
  13133. link_all_deplibs_CXX=yes
  13134. ;;
  13135. esac
  13136. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  13137. hardcode_libdir_separator_CXX=:
  13138. ;;
  13139. linux* | k*bsd*-gnu)
  13140. case $cc_basename in
  13141. KCC*)
  13142. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13143. # KCC will only create a shared library if the output file
  13144. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13145. # to its proper name (with version) after linking.
  13146. 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'
  13147. 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'
  13148. # Commands to make compiler produce verbose output that lists
  13149. # what "hidden" libraries, object files and flags are used when
  13150. # linking a shared library.
  13151. #
  13152. # There doesn't appear to be a way to prevent this compiler from
  13153. # explicitly linking system object files so we need to strip them
  13154. # from the output so that they don't get included in the library
  13155. # dependencies.
  13156. 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'
  13157. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  13158. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  13159. # Archives containing C++ object files must be created using
  13160. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13161. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13162. ;;
  13163. icpc*)
  13164. # Intel C++
  13165. with_gnu_ld=yes
  13166. # version 8.0 and above of icpc choke on multiply defined symbols
  13167. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13168. # earlier do not add the objects themselves.
  13169. case `$CC -V 2>&1` in
  13170. *"Version 7."*)
  13171. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13172. 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'
  13173. ;;
  13174. *) # Version 8.0 or newer
  13175. tmp_idyn=
  13176. case $host_cpu in
  13177. ia64*) tmp_idyn=' -i_dynamic';;
  13178. esac
  13179. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13180. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13181. ;;
  13182. esac
  13183. archive_cmds_need_lc_CXX=no
  13184. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  13185. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  13186. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  13187. ;;
  13188. pgCC* | pgcpp*)
  13189. # Portland Group C++ compiler
  13190. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  13191. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  13192. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  13193. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  13194. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  13195. ;;
  13196. cxx*)
  13197. # Compaq C++
  13198. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13199. 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'
  13200. runpath_var=LD_RUN_PATH
  13201. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13202. hardcode_libdir_separator_CXX=:
  13203. # Commands to make compiler produce verbose output that lists
  13204. # what "hidden" libraries, object files and flags are used when
  13205. # linking a shared library.
  13206. #
  13207. # There doesn't appear to be a way to prevent this compiler from
  13208. # explicitly linking system object files so we need to strip them
  13209. # from the output so that they don't get included in the library
  13210. # dependencies.
  13211. 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'
  13212. ;;
  13213. *)
  13214. case `$CC -V 2>&1 | sed 5q` in
  13215. *Sun\ C*)
  13216. # Sun C++ 5.9
  13217. no_undefined_flag_CXX=' -zdefs'
  13218. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13219. archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  13220. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13221. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  13222. # Not sure whether something based on
  13223. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13224. # would be better.
  13225. output_verbose_link_cmd='echo'
  13226. # Archives containing C++ object files must be created using
  13227. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13228. # necessary to make sure instantiated templates are included
  13229. # in the archive.
  13230. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13231. ;;
  13232. esac
  13233. ;;
  13234. esac
  13235. ;;
  13236. lynxos*)
  13237. # FIXME: insert proper C++ library support
  13238. ld_shlibs_CXX=no
  13239. ;;
  13240. m88k*)
  13241. # FIXME: insert proper C++ library support
  13242. ld_shlibs_CXX=no
  13243. ;;
  13244. mvs*)
  13245. case $cc_basename in
  13246. cxx*)
  13247. # FIXME: insert proper C++ library support
  13248. ld_shlibs_CXX=no
  13249. ;;
  13250. *)
  13251. # FIXME: insert proper C++ library support
  13252. ld_shlibs_CXX=no
  13253. ;;
  13254. esac
  13255. ;;
  13256. netbsd* | netbsdelf*-gnu)
  13257. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13258. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13259. wlarc=
  13260. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13261. hardcode_direct_CXX=yes
  13262. hardcode_shlibpath_var_CXX=no
  13263. fi
  13264. # Workaround some broken pre-1.5 toolchains
  13265. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13266. ;;
  13267. openbsd2*)
  13268. # C++ shared libraries are fairly broken
  13269. ld_shlibs_CXX=no
  13270. ;;
  13271. openbsd*)
  13272. if test -f /usr/libexec/ld.so; then
  13273. hardcode_direct_CXX=yes
  13274. hardcode_shlibpath_var_CXX=no
  13275. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13276. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  13277. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13278. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  13279. export_dynamic_flag_spec_CXX='${wl}-E'
  13280. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  13281. fi
  13282. output_verbose_link_cmd='echo'
  13283. else
  13284. ld_shlibs_CXX=no
  13285. fi
  13286. ;;
  13287. osf3*)
  13288. case $cc_basename in
  13289. KCC*)
  13290. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13291. # KCC will only create a shared library if the output file
  13292. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13293. # to its proper name (with version) after linking.
  13294. 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'
  13295. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  13296. hardcode_libdir_separator_CXX=:
  13297. # Archives containing C++ object files must be created using
  13298. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13299. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13300. ;;
  13301. RCC*)
  13302. # Rational C++ 2.4.1
  13303. # FIXME: insert proper C++ library support
  13304. ld_shlibs_CXX=no
  13305. ;;
  13306. cxx*)
  13307. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  13308. 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 ${output_objdir}/so_locations -o $lib'
  13309. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  13310. hardcode_libdir_separator_CXX=:
  13311. # Commands to make compiler produce verbose output that lists
  13312. # what "hidden" libraries, object files and flags are used when
  13313. # linking a shared library.
  13314. #
  13315. # There doesn't appear to be a way to prevent this compiler from
  13316. # explicitly linking system object files so we need to strip them
  13317. # from the output so that they don't get included in the library
  13318. # dependencies.
  13319. 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'
  13320. ;;
  13321. *)
  13322. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  13323. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  13324. 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}${output_objdir}/so_locations -o $lib'
  13325. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  13326. hardcode_libdir_separator_CXX=:
  13327. # Commands to make compiler produce verbose output that lists
  13328. # what "hidden" libraries, object files and flags are used when
  13329. # linking a shared library.
  13330. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  13331. else
  13332. # FIXME: insert proper C++ library support
  13333. ld_shlibs_CXX=no
  13334. fi
  13335. ;;
  13336. esac
  13337. ;;
  13338. osf4* | osf5*)
  13339. case $cc_basename in
  13340. KCC*)
  13341. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13342. # KCC will only create a shared library if the output file
  13343. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13344. # to its proper name (with version) after linking.
  13345. 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'
  13346. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  13347. hardcode_libdir_separator_CXX=:
  13348. # Archives containing C++ object files must be created using
  13349. # the KAI C++ compiler.
  13350. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  13351. ;;
  13352. RCC*)
  13353. # Rational C++ 2.4.1
  13354. # FIXME: insert proper C++ library support
  13355. ld_shlibs_CXX=no
  13356. ;;
  13357. cxx*)
  13358. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13359. 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 ${output_objdir}/so_locations -o $lib'
  13360. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13361. echo "-hidden">> $lib.exp~
  13362. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
  13363. $rm $lib.exp'
  13364. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13365. hardcode_libdir_separator_CXX=:
  13366. # Commands to make compiler produce verbose output that lists
  13367. # what "hidden" libraries, object files and flags are used when
  13368. # linking a shared library.
  13369. #
  13370. # There doesn't appear to be a way to prevent this compiler from
  13371. # explicitly linking system object files so we need to strip them
  13372. # from the output so that they don't get included in the library
  13373. # dependencies.
  13374. 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'
  13375. ;;
  13376. *)
  13377. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  13378. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  13379. 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}${output_objdir}/so_locations -o $lib'
  13380. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  13381. hardcode_libdir_separator_CXX=:
  13382. # Commands to make compiler produce verbose output that lists
  13383. # what "hidden" libraries, object files and flags are used when
  13384. # linking a shared library.
  13385. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  13386. else
  13387. # FIXME: insert proper C++ library support
  13388. ld_shlibs_CXX=no
  13389. fi
  13390. ;;
  13391. esac
  13392. ;;
  13393. psos*)
  13394. # FIXME: insert proper C++ library support
  13395. ld_shlibs_CXX=no
  13396. ;;
  13397. sunos4*)
  13398. case $cc_basename in
  13399. CC*)
  13400. # Sun C++ 4.x
  13401. # FIXME: insert proper C++ library support
  13402. ld_shlibs_CXX=no
  13403. ;;
  13404. lcc*)
  13405. # Lucid
  13406. # FIXME: insert proper C++ library support
  13407. ld_shlibs_CXX=no
  13408. ;;
  13409. *)
  13410. # FIXME: insert proper C++ library support
  13411. ld_shlibs_CXX=no
  13412. ;;
  13413. esac
  13414. ;;
  13415. solaris*)
  13416. case $cc_basename in
  13417. CC*)
  13418. # Sun C++ 4.2, 5.x and Centerline C++
  13419. archive_cmds_need_lc_CXX=yes
  13420. no_undefined_flag_CXX=' -zdefs'
  13421. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13422. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13423. $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  13424. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13425. hardcode_shlibpath_var_CXX=no
  13426. case $host_os in
  13427. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13428. *)
  13429. # The compiler driver will combine and reorder linker options,
  13430. # but understands `-z linker_flag'.
  13431. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13432. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13433. ;;
  13434. esac
  13435. link_all_deplibs_CXX=yes
  13436. output_verbose_link_cmd='echo'
  13437. # Archives containing C++ object files must be created using
  13438. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13439. # necessary to make sure instantiated templates are included
  13440. # in the archive.
  13441. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13442. ;;
  13443. gcx*)
  13444. # Green Hills C++ Compiler
  13445. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  13446. # The C++ compiler must be used to create the archive.
  13447. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13448. ;;
  13449. *)
  13450. # GNU C++ compiler with Solaris linker
  13451. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  13452. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  13453. if $CC --version | grep -v '^2\.7' > /dev/null; then
  13454. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  13455. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13456. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  13457. # Commands to make compiler produce verbose output that lists
  13458. # what "hidden" libraries, object files and flags are used when
  13459. # linking a shared library.
  13460. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  13461. else
  13462. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  13463. # platform.
  13464. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  13465. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13466. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  13467. # Commands to make compiler produce verbose output that lists
  13468. # what "hidden" libraries, object files and flags are used when
  13469. # linking a shared library.
  13470. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  13471. fi
  13472. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  13473. case $host_os in
  13474. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13475. *)
  13476. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  13477. ;;
  13478. esac
  13479. fi
  13480. ;;
  13481. esac
  13482. ;;
  13483. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13484. no_undefined_flag_CXX='${wl}-z,text'
  13485. archive_cmds_need_lc_CXX=no
  13486. hardcode_shlibpath_var_CXX=no
  13487. runpath_var='LD_RUN_PATH'
  13488. case $cc_basename in
  13489. CC*)
  13490. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13491. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13492. ;;
  13493. *)
  13494. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13495. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13496. ;;
  13497. esac
  13498. ;;
  13499. sysv5* | sco3.2v5* | sco5v6*)
  13500. # Note: We can NOT use -z defs as we might desire, because we do not
  13501. # link with -lc, and that would cause any symbols used from libc to
  13502. # always be unresolved, which means just about no library would
  13503. # ever link correctly. If we're not using GNU ld we use -z text
  13504. # though, which does catch some bad symbols but isn't as heavy-handed
  13505. # as -z defs.
  13506. # For security reasons, it is highly recommended that you always
  13507. # use absolute paths for naming shared libraries, and exclude the
  13508. # DT_RUNPATH tag from executables and libraries. But doing so
  13509. # requires that you compile everything twice, which is a pain.
  13510. # So that behaviour is only enabled if SCOABSPATH is set to a
  13511. # non-empty value in the environment. Most likely only useful for
  13512. # creating official distributions of packages.
  13513. # This is a hack until libtool officially supports absolute path
  13514. # names for shared libraries.
  13515. no_undefined_flag_CXX='${wl}-z,text'
  13516. allow_undefined_flag_CXX='${wl}-z,nodefs'
  13517. archive_cmds_need_lc_CXX=no
  13518. hardcode_shlibpath_var_CXX=no
  13519. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  13520. hardcode_libdir_separator_CXX=':'
  13521. link_all_deplibs_CXX=yes
  13522. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  13523. runpath_var='LD_RUN_PATH'
  13524. case $cc_basename in
  13525. CC*)
  13526. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13527. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13528. ;;
  13529. *)
  13530. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13531. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13532. ;;
  13533. esac
  13534. ;;
  13535. tandem*)
  13536. case $cc_basename in
  13537. NCC*)
  13538. # NonStop-UX NCC 3.20
  13539. # FIXME: insert proper C++ library support
  13540. ld_shlibs_CXX=no
  13541. ;;
  13542. *)
  13543. # FIXME: insert proper C++ library support
  13544. ld_shlibs_CXX=no
  13545. ;;
  13546. esac
  13547. ;;
  13548. vxworks*)
  13549. # FIXME: insert proper C++ library support
  13550. ld_shlibs_CXX=no
  13551. ;;
  13552. *)
  13553. # FIXME: insert proper C++ library support
  13554. ld_shlibs_CXX=no
  13555. ;;
  13556. esac
  13557. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  13558. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  13559. test "$ld_shlibs_CXX" = no && can_build_shared=no
  13560. GCC_CXX="$GXX"
  13561. LD_CXX="$LD"
  13562. cat > conftest.$ac_ext <<EOF
  13563. class Foo
  13564. {
  13565. public:
  13566. Foo (void) { a = 0; }
  13567. private:
  13568. int a;
  13569. };
  13570. EOF
  13571. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13572. (eval $ac_compile) 2>&5
  13573. ac_status=$?
  13574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13575. (exit $ac_status); }; then
  13576. # Parse the compiler output and extract the necessary
  13577. # objects, libraries and library flags.
  13578. # Sentinel used to keep track of whether or not we are before
  13579. # the conftest object file.
  13580. pre_test_object_deps_done=no
  13581. # The `*' in the case matches for architectures that use `case' in
  13582. # $output_verbose_cmd can trigger glob expansion during the loop
  13583. # eval without this substitution.
  13584. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  13585. for p in `eval $output_verbose_link_cmd`; do
  13586. case $p in
  13587. -L* | -R* | -l*)
  13588. # Some compilers place space between "-{L,R}" and the path.
  13589. # Remove the space.
  13590. if test $p = "-L" \
  13591. || test $p = "-R"; then
  13592. prev=$p
  13593. continue
  13594. else
  13595. prev=
  13596. fi
  13597. if test "$pre_test_object_deps_done" = no; then
  13598. case $p in
  13599. -L* | -R*)
  13600. # Internal compiler library paths should come after those
  13601. # provided the user. The postdeps already come after the
  13602. # user supplied libs so there is no need to process them.
  13603. if test -z "$compiler_lib_search_path_CXX"; then
  13604. compiler_lib_search_path_CXX="${prev}${p}"
  13605. else
  13606. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  13607. fi
  13608. ;;
  13609. # The "-l" case would never come before the object being
  13610. # linked, so don't bother handling this case.
  13611. esac
  13612. else
  13613. if test -z "$postdeps_CXX"; then
  13614. postdeps_CXX="${prev}${p}"
  13615. else
  13616. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  13617. fi
  13618. fi
  13619. ;;
  13620. *.$objext)
  13621. # This assumes that the test object file only shows up
  13622. # once in the compiler output.
  13623. if test "$p" = "conftest.$objext"; then
  13624. pre_test_object_deps_done=yes
  13625. continue
  13626. fi
  13627. if test "$pre_test_object_deps_done" = no; then
  13628. if test -z "$predep_objects_CXX"; then
  13629. predep_objects_CXX="$p"
  13630. else
  13631. predep_objects_CXX="$predep_objects_CXX $p"
  13632. fi
  13633. else
  13634. if test -z "$postdep_objects_CXX"; then
  13635. postdep_objects_CXX="$p"
  13636. else
  13637. postdep_objects_CXX="$postdep_objects_CXX $p"
  13638. fi
  13639. fi
  13640. ;;
  13641. *) ;; # Ignore the rest.
  13642. esac
  13643. done
  13644. # Clean up.
  13645. rm -f a.out a.exe
  13646. else
  13647. echo "libtool.m4: error: problem compiling CXX test program"
  13648. fi
  13649. $rm -f confest.$objext
  13650. compiler_lib_search_dirs_CXX=
  13651. if test -n "$compiler_lib_search_path_CXX"; then
  13652. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  13653. fi
  13654. # PORTME: override above test on systems where it is broken
  13655. case $host_os in
  13656. interix[3-9]*)
  13657. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13658. # hack all around it, let's just trust "g++" to DTRT.
  13659. predep_objects_CXX=
  13660. postdep_objects_CXX=
  13661. postdeps_CXX=
  13662. ;;
  13663. linux*)
  13664. case `$CC -V 2>&1 | sed 5q` in
  13665. *Sun\ C*)
  13666. # Sun C++ 5.9
  13667. #
  13668. # The more standards-conforming stlport4 library is
  13669. # incompatible with the Cstd library. Avoid specifying
  13670. # it if it's in CXXFLAGS. Ignore libCrun as
  13671. # -library=stlport4 depends on it.
  13672. case " $CXX $CXXFLAGS " in
  13673. *" -library=stlport4 "*)
  13674. solaris_use_stlport4=yes
  13675. ;;
  13676. esac
  13677. if test "$solaris_use_stlport4" != yes; then
  13678. postdeps_CXX='-library=Cstd -library=Crun'
  13679. fi
  13680. ;;
  13681. esac
  13682. ;;
  13683. solaris*)
  13684. case $cc_basename in
  13685. CC*)
  13686. # The more standards-conforming stlport4 library is
  13687. # incompatible with the Cstd library. Avoid specifying
  13688. # it if it's in CXXFLAGS. Ignore libCrun as
  13689. # -library=stlport4 depends on it.
  13690. case " $CXX $CXXFLAGS " in
  13691. *" -library=stlport4 "*)
  13692. solaris_use_stlport4=yes
  13693. ;;
  13694. esac
  13695. # Adding this requires a known-good setup of shared libraries for
  13696. # Sun compiler versions before 5.6, else PIC objects from an old
  13697. # archive will be linked into the output, leading to subtle bugs.
  13698. if test "$solaris_use_stlport4" != yes; then
  13699. postdeps_CXX='-library=Cstd -library=Crun'
  13700. fi
  13701. ;;
  13702. esac
  13703. ;;
  13704. esac
  13705. case " $postdeps_CXX " in
  13706. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13707. esac
  13708. lt_prog_compiler_wl_CXX=
  13709. lt_prog_compiler_pic_CXX=
  13710. lt_prog_compiler_static_CXX=
  13711. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  13712. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  13713. # C++ specific cases for pic, static, wl, etc.
  13714. if test "$GXX" = yes; then
  13715. lt_prog_compiler_wl_CXX='-Wl,'
  13716. lt_prog_compiler_static_CXX='-static'
  13717. case $host_os in
  13718. aix*)
  13719. # All AIX code is PIC.
  13720. if test "$host_cpu" = ia64; then
  13721. # AIX 5 now supports IA64 processor
  13722. lt_prog_compiler_static_CXX='-Bstatic'
  13723. fi
  13724. ;;
  13725. amigaos*)
  13726. # FIXME: we need at least 68020 code to build shared libraries, but
  13727. # adding the `-m68020' flag to GCC prevents building anything better,
  13728. # like `-m68040'.
  13729. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13730. ;;
  13731. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13732. # PIC is the default for these OSes.
  13733. ;;
  13734. mingw* | cygwin* | os2* | pw32*)
  13735. # This hack is so that the source file can tell whether it is being
  13736. # built for inclusion in a dll (and should export symbols for example).
  13737. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13738. # (--disable-auto-import) libraries
  13739. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13740. ;;
  13741. darwin* | rhapsody*)
  13742. # PIC is the default on this platform
  13743. # Common symbols not allowed in MH_DYLIB files
  13744. lt_prog_compiler_pic_CXX='-fno-common'
  13745. ;;
  13746. *djgpp*)
  13747. # DJGPP does not support shared libraries at all
  13748. lt_prog_compiler_pic_CXX=
  13749. ;;
  13750. interix[3-9]*)
  13751. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13752. # Instead, we relocate shared libraries at runtime.
  13753. ;;
  13754. sysv4*MP*)
  13755. if test -d /usr/nec; then
  13756. lt_prog_compiler_pic_CXX=-Kconform_pic
  13757. fi
  13758. ;;
  13759. hpux*)
  13760. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13761. # not for PA HP-UX.
  13762. case $host_cpu in
  13763. hppa*64*|ia64*)
  13764. ;;
  13765. *)
  13766. lt_prog_compiler_pic_CXX='-fPIC'
  13767. ;;
  13768. esac
  13769. ;;
  13770. *)
  13771. lt_prog_compiler_pic_CXX='-fPIC'
  13772. ;;
  13773. esac
  13774. else
  13775. case $host_os in
  13776. aix[4-9]*)
  13777. # All AIX code is PIC.
  13778. if test "$host_cpu" = ia64; then
  13779. # AIX 5 now supports IA64 processor
  13780. lt_prog_compiler_static_CXX='-Bstatic'
  13781. else
  13782. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13783. fi
  13784. ;;
  13785. chorus*)
  13786. case $cc_basename in
  13787. cxch68*)
  13788. # Green Hills C++ Compiler
  13789. # _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"
  13790. ;;
  13791. esac
  13792. ;;
  13793. darwin*)
  13794. # PIC is the default on this platform
  13795. # Common symbols not allowed in MH_DYLIB files
  13796. case $cc_basename in
  13797. xlc*)
  13798. lt_prog_compiler_pic_CXX='-qnocommon'
  13799. lt_prog_compiler_wl_CXX='-Wl,'
  13800. ;;
  13801. esac
  13802. ;;
  13803. dgux*)
  13804. case $cc_basename in
  13805. ec++*)
  13806. lt_prog_compiler_pic_CXX='-KPIC'
  13807. ;;
  13808. ghcx*)
  13809. # Green Hills C++ Compiler
  13810. lt_prog_compiler_pic_CXX='-pic'
  13811. ;;
  13812. *)
  13813. ;;
  13814. esac
  13815. ;;
  13816. freebsd* | dragonfly*)
  13817. # FreeBSD uses GNU C++
  13818. ;;
  13819. hpux9* | hpux10* | hpux11*)
  13820. case $cc_basename in
  13821. CC*)
  13822. lt_prog_compiler_wl_CXX='-Wl,'
  13823. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  13824. if test "$host_cpu" != ia64; then
  13825. lt_prog_compiler_pic_CXX='+Z'
  13826. fi
  13827. ;;
  13828. aCC*)
  13829. lt_prog_compiler_wl_CXX='-Wl,'
  13830. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  13831. case $host_cpu in
  13832. hppa*64*|ia64*)
  13833. # +Z the default
  13834. ;;
  13835. *)
  13836. lt_prog_compiler_pic_CXX='+Z'
  13837. ;;
  13838. esac
  13839. ;;
  13840. *)
  13841. ;;
  13842. esac
  13843. ;;
  13844. interix*)
  13845. # This is c89, which is MS Visual C++ (no shared libs)
  13846. # Anyone wants to do a port?
  13847. ;;
  13848. irix5* | irix6* | nonstopux*)
  13849. case $cc_basename in
  13850. CC*)
  13851. lt_prog_compiler_wl_CXX='-Wl,'
  13852. lt_prog_compiler_static_CXX='-non_shared'
  13853. # CC pic flag -KPIC is the default.
  13854. ;;
  13855. *)
  13856. ;;
  13857. esac
  13858. ;;
  13859. linux* | k*bsd*-gnu)
  13860. case $cc_basename in
  13861. KCC*)
  13862. # KAI C++ Compiler
  13863. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13864. lt_prog_compiler_pic_CXX='-fPIC'
  13865. ;;
  13866. icpc* | ecpc*)
  13867. # Intel C++
  13868. lt_prog_compiler_wl_CXX='-Wl,'
  13869. lt_prog_compiler_pic_CXX='-KPIC'
  13870. lt_prog_compiler_static_CXX='-static'
  13871. ;;
  13872. pgCC* | pgcpp*)
  13873. # Portland Group C++ compiler.
  13874. lt_prog_compiler_wl_CXX='-Wl,'
  13875. lt_prog_compiler_pic_CXX='-fpic'
  13876. lt_prog_compiler_static_CXX='-Bstatic'
  13877. ;;
  13878. cxx*)
  13879. # Compaq C++
  13880. # Make sure the PIC flag is empty. It appears that all Alpha
  13881. # Linux and Compaq Tru64 Unix objects are PIC.
  13882. lt_prog_compiler_pic_CXX=
  13883. lt_prog_compiler_static_CXX='-non_shared'
  13884. ;;
  13885. *)
  13886. case `$CC -V 2>&1 | sed 5q` in
  13887. *Sun\ C*)
  13888. # Sun C++ 5.9
  13889. lt_prog_compiler_pic_CXX='-KPIC'
  13890. lt_prog_compiler_static_CXX='-Bstatic'
  13891. lt_prog_compiler_wl_CXX='-Qoption ld '
  13892. ;;
  13893. esac
  13894. ;;
  13895. esac
  13896. ;;
  13897. lynxos*)
  13898. ;;
  13899. m88k*)
  13900. ;;
  13901. mvs*)
  13902. case $cc_basename in
  13903. cxx*)
  13904. lt_prog_compiler_pic_CXX='-W c,exportall'
  13905. ;;
  13906. *)
  13907. ;;
  13908. esac
  13909. ;;
  13910. netbsd* | netbsdelf*-gnu)
  13911. ;;
  13912. osf3* | osf4* | osf5*)
  13913. case $cc_basename in
  13914. KCC*)
  13915. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13916. ;;
  13917. RCC*)
  13918. # Rational C++ 2.4.1
  13919. lt_prog_compiler_pic_CXX='-pic'
  13920. ;;
  13921. cxx*)
  13922. # Digital/Compaq C++
  13923. lt_prog_compiler_wl_CXX='-Wl,'
  13924. # Make sure the PIC flag is empty. It appears that all Alpha
  13925. # Linux and Compaq Tru64 Unix objects are PIC.
  13926. lt_prog_compiler_pic_CXX=
  13927. lt_prog_compiler_static_CXX='-non_shared'
  13928. ;;
  13929. *)
  13930. ;;
  13931. esac
  13932. ;;
  13933. psos*)
  13934. ;;
  13935. solaris*)
  13936. case $cc_basename in
  13937. CC*)
  13938. # Sun C++ 4.2, 5.x and Centerline C++
  13939. lt_prog_compiler_pic_CXX='-KPIC'
  13940. lt_prog_compiler_static_CXX='-Bstatic'
  13941. lt_prog_compiler_wl_CXX='-Qoption ld '
  13942. ;;
  13943. gcx*)
  13944. # Green Hills C++ Compiler
  13945. lt_prog_compiler_pic_CXX='-PIC'
  13946. ;;
  13947. *)
  13948. ;;
  13949. esac
  13950. ;;
  13951. sunos4*)
  13952. case $cc_basename in
  13953. CC*)
  13954. # Sun C++ 4.x
  13955. lt_prog_compiler_pic_CXX='-pic'
  13956. lt_prog_compiler_static_CXX='-Bstatic'
  13957. ;;
  13958. lcc*)
  13959. # Lucid
  13960. lt_prog_compiler_pic_CXX='-pic'
  13961. ;;
  13962. *)
  13963. ;;
  13964. esac
  13965. ;;
  13966. tandem*)
  13967. case $cc_basename in
  13968. NCC*)
  13969. # NonStop-UX NCC 3.20
  13970. lt_prog_compiler_pic_CXX='-KPIC'
  13971. ;;
  13972. *)
  13973. ;;
  13974. esac
  13975. ;;
  13976. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13977. case $cc_basename in
  13978. CC*)
  13979. lt_prog_compiler_wl_CXX='-Wl,'
  13980. lt_prog_compiler_pic_CXX='-KPIC'
  13981. lt_prog_compiler_static_CXX='-Bstatic'
  13982. ;;
  13983. esac
  13984. ;;
  13985. vxworks*)
  13986. ;;
  13987. *)
  13988. lt_prog_compiler_can_build_shared_CXX=no
  13989. ;;
  13990. esac
  13991. fi
  13992. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  13993. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  13994. #
  13995. # Check to make sure the PIC flag actually works.
  13996. #
  13997. if test -n "$lt_prog_compiler_pic_CXX"; then
  13998. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  13999. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  14000. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
  14001. echo $ECHO_N "(cached) $ECHO_C" >&6
  14002. else
  14003. lt_cv_prog_compiler_pic_works_CXX=no
  14004. ac_outfile=conftest.$ac_objext
  14005. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14006. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  14007. # Insert the option either (1) after the last *FLAGS variable, or
  14008. # (2) before a word containing "conftest.", or (3) at the end.
  14009. # Note that $ac_compile itself does not contain backslashes and begins
  14010. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14011. # The option is referenced via a variable to avoid confusing sed.
  14012. lt_compile=`echo "$ac_compile" | $SED \
  14013. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14014. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14015. -e 's:$: $lt_compiler_flag:'`
  14016. (eval echo "\"\$as_me:15790: $lt_compile\"" >&5)
  14017. (eval "$lt_compile" 2>conftest.err)
  14018. ac_status=$?
  14019. cat conftest.err >&5
  14020. echo "$as_me:15794: \$? = $ac_status" >&5
  14021. if (exit $ac_status) && test -s "$ac_outfile"; then
  14022. # The compiler can only warn and ignore the option if not recognized
  14023. # So say no if there are warnings other than the usual output.
  14024. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14025. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14026. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14027. lt_cv_prog_compiler_pic_works_CXX=yes
  14028. fi
  14029. fi
  14030. $rm conftest*
  14031. fi
  14032. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14033. echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14034. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  14035. case $lt_prog_compiler_pic_CXX in
  14036. "" | " "*) ;;
  14037. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14038. esac
  14039. else
  14040. lt_prog_compiler_pic_CXX=
  14041. lt_prog_compiler_can_build_shared_CXX=no
  14042. fi
  14043. fi
  14044. case $host_os in
  14045. # For platforms which do not support PIC, -DPIC is meaningless:
  14046. *djgpp*)
  14047. lt_prog_compiler_pic_CXX=
  14048. ;;
  14049. *)
  14050. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14051. ;;
  14052. esac
  14053. #
  14054. # Check to make sure the static flag actually works.
  14055. #
  14056. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14057. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14058. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  14059. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
  14060. echo $ECHO_N "(cached) $ECHO_C" >&6
  14061. else
  14062. lt_cv_prog_compiler_static_works_CXX=no
  14063. save_LDFLAGS="$LDFLAGS"
  14064. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14065. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14066. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14067. # The linker can only warn and ignore the option if not recognized
  14068. # So say no if there are warnings
  14069. if test -s conftest.err; then
  14070. # Append any errors to the config.log.
  14071. cat conftest.err 1>&5
  14072. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  14073. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14074. if diff conftest.exp conftest.er2 >/dev/null; then
  14075. lt_cv_prog_compiler_static_works_CXX=yes
  14076. fi
  14077. else
  14078. lt_cv_prog_compiler_static_works_CXX=yes
  14079. fi
  14080. fi
  14081. $rm -r conftest*
  14082. LDFLAGS="$save_LDFLAGS"
  14083. fi
  14084. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14085. echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14086. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  14087. :
  14088. else
  14089. lt_prog_compiler_static_CXX=
  14090. fi
  14091. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  14092. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  14093. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  14094. echo $ECHO_N "(cached) $ECHO_C" >&6
  14095. else
  14096. lt_cv_prog_compiler_c_o_CXX=no
  14097. $rm -r conftest 2>/dev/null
  14098. mkdir conftest
  14099. cd conftest
  14100. mkdir out
  14101. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14102. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14103. # Insert the option either (1) after the last *FLAGS variable, or
  14104. # (2) before a word containing "conftest.", or (3) at the end.
  14105. # Note that $ac_compile itself does not contain backslashes and begins
  14106. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14107. lt_compile=`echo "$ac_compile" | $SED \
  14108. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14109. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14110. -e 's:$: $lt_compiler_flag:'`
  14111. (eval echo "\"\$as_me:15894: $lt_compile\"" >&5)
  14112. (eval "$lt_compile" 2>out/conftest.err)
  14113. ac_status=$?
  14114. cat out/conftest.err >&5
  14115. echo "$as_me:15898: \$? = $ac_status" >&5
  14116. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14117. then
  14118. # The compiler can only warn and ignore the option if not recognized
  14119. # So say no if there are warnings
  14120. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  14121. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14122. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14123. lt_cv_prog_compiler_c_o_CXX=yes
  14124. fi
  14125. fi
  14126. chmod u+w . 2>&5
  14127. $rm conftest*
  14128. # SGI C++ compiler will create directory out/ii_files/ for
  14129. # template instantiation
  14130. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  14131. $rm out/* && rmdir out
  14132. cd ..
  14133. rmdir conftest
  14134. $rm conftest*
  14135. fi
  14136. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14137. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14138. hard_links="nottested"
  14139. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  14140. # do not overwrite the value of need_locks provided by the user
  14141. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  14142. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  14143. hard_links=yes
  14144. $rm conftest*
  14145. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14146. touch conftest.a
  14147. ln conftest.a conftest.b 2>&5 || hard_links=no
  14148. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14149. { echo "$as_me:$LINENO: result: $hard_links" >&5
  14150. echo "${ECHO_T}$hard_links" >&6; }
  14151. if test "$hard_links" = no; then
  14152. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  14153. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  14154. need_locks=warn
  14155. fi
  14156. else
  14157. need_locks=no
  14158. fi
  14159. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14160. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  14161. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14162. case $host_os in
  14163. aix[4-9]*)
  14164. # If we're using GNU nm, then we don't want the "-C" option.
  14165. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  14166. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  14167. 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'
  14168. else
  14169. 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'
  14170. fi
  14171. ;;
  14172. pw32*)
  14173. export_symbols_cmds_CXX="$ltdll_cmds"
  14174. ;;
  14175. cygwin* | mingw*)
  14176. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  14177. ;;
  14178. linux* | k*bsd*-gnu)
  14179. link_all_deplibs_CXX=no
  14180. ;;
  14181. *)
  14182. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14183. ;;
  14184. esac
  14185. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14186. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  14187. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  14188. test "$ld_shlibs_CXX" = no && can_build_shared=no
  14189. #
  14190. # Do we need to explicitly link libc?
  14191. #
  14192. case "x$archive_cmds_need_lc_CXX" in
  14193. x|xyes)
  14194. # Assume -lc should be added
  14195. archive_cmds_need_lc_CXX=yes
  14196. if test "$enable_shared" = yes && test "$GCC" = yes; then
  14197. case $archive_cmds_CXX in
  14198. *'~'*)
  14199. # FIXME: we may have to deal with multi-command sequences.
  14200. ;;
  14201. '$CC '*)
  14202. # Test whether the compiler implicitly links with -lc since on some
  14203. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14204. # to ld, don't add -lc before -lgcc.
  14205. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  14206. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  14207. $rm conftest*
  14208. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14209. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14210. (eval $ac_compile) 2>&5
  14211. ac_status=$?
  14212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14213. (exit $ac_status); } 2>conftest.err; then
  14214. soname=conftest
  14215. lib=conftest
  14216. libobjs=conftest.$ac_objext
  14217. deplibs=
  14218. wl=$lt_prog_compiler_wl_CXX
  14219. pic_flag=$lt_prog_compiler_pic_CXX
  14220. compiler_flags=-v
  14221. linker_flags=-v
  14222. verstring=
  14223. output_objdir=.
  14224. libname=conftest
  14225. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14226. allow_undefined_flag_CXX=
  14227. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  14228. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14229. ac_status=$?
  14230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14231. (exit $ac_status); }
  14232. then
  14233. archive_cmds_need_lc_CXX=no
  14234. else
  14235. archive_cmds_need_lc_CXX=yes
  14236. fi
  14237. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14238. else
  14239. cat conftest.err 1>&5
  14240. fi
  14241. $rm conftest*
  14242. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  14243. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  14244. ;;
  14245. esac
  14246. fi
  14247. ;;
  14248. esac
  14249. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  14250. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  14251. library_names_spec=
  14252. libname_spec='lib$name'
  14253. soname_spec=
  14254. shrext_cmds=".so"
  14255. postinstall_cmds=
  14256. postuninstall_cmds=
  14257. finish_cmds=
  14258. finish_eval=
  14259. shlibpath_var=
  14260. shlibpath_overrides_runpath=unknown
  14261. version_type=none
  14262. dynamic_linker="$host_os ld.so"
  14263. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14264. need_lib_prefix=unknown
  14265. hardcode_into_libs=no
  14266. # when you set need_version to no, make sure it does not cause -set_version
  14267. # flags to be left without arguments
  14268. need_version=unknown
  14269. case $host_os in
  14270. aix3*)
  14271. version_type=linux
  14272. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  14273. shlibpath_var=LIBPATH
  14274. # AIX 3 has no versioning support, so we append a major version to the name.
  14275. soname_spec='${libname}${release}${shared_ext}$major'
  14276. ;;
  14277. aix[4-9]*)
  14278. version_type=linux
  14279. need_lib_prefix=no
  14280. need_version=no
  14281. hardcode_into_libs=yes
  14282. if test "$host_cpu" = ia64; then
  14283. # AIX 5 supports IA64
  14284. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  14285. shlibpath_var=LD_LIBRARY_PATH
  14286. else
  14287. # With GCC up to 2.95.x, collect2 would create an import file
  14288. # for dependence libraries. The import file would start with
  14289. # the line `#! .'. This would cause the generated library to
  14290. # depend on `.', always an invalid library. This was fixed in
  14291. # development snapshots of GCC prior to 3.0.
  14292. case $host_os in
  14293. aix4 | aix4.[01] | aix4.[01].*)
  14294. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14295. echo ' yes '
  14296. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  14297. :
  14298. else
  14299. can_build_shared=no
  14300. fi
  14301. ;;
  14302. esac
  14303. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  14304. # soname into executable. Probably we can add versioning support to
  14305. # collect2, so additional links can be useful in future.
  14306. if test "$aix_use_runtimelinking" = yes; then
  14307. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14308. # instead of lib<name>.a to let people know that these are not
  14309. # typical AIX shared libraries.
  14310. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14311. else
  14312. # We preserve .a as extension for shared libraries through AIX4.2
  14313. # and later when we are not doing run time linking.
  14314. library_names_spec='${libname}${release}.a $libname.a'
  14315. soname_spec='${libname}${release}${shared_ext}$major'
  14316. fi
  14317. shlibpath_var=LIBPATH
  14318. fi
  14319. ;;
  14320. amigaos*)
  14321. library_names_spec='$libname.ixlibrary $libname.a'
  14322. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14323. 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'
  14324. ;;
  14325. beos*)
  14326. library_names_spec='${libname}${shared_ext}'
  14327. dynamic_linker="$host_os ld.so"
  14328. shlibpath_var=LIBRARY_PATH
  14329. ;;
  14330. bsdi[45]*)
  14331. version_type=linux
  14332. need_version=no
  14333. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14334. soname_spec='${libname}${release}${shared_ext}$major'
  14335. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14336. shlibpath_var=LD_LIBRARY_PATH
  14337. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14338. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14339. # the default ld.so.conf also contains /usr/contrib/lib and
  14340. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14341. # libtool to hard-code these into programs
  14342. ;;
  14343. cygwin* | mingw* | pw32*)
  14344. version_type=windows
  14345. shrext_cmds=".dll"
  14346. need_version=no
  14347. need_lib_prefix=no
  14348. case $GCC,$host_os in
  14349. yes,cygwin* | yes,mingw* | yes,pw32*)
  14350. library_names_spec='$libname.dll.a'
  14351. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14352. postinstall_cmds='base_file=`basename \${file}`~
  14353. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  14354. dldir=$destdir/`dirname \$dlpath`~
  14355. test -d \$dldir || mkdir -p \$dldir~
  14356. $install_prog $dir/$dlname \$dldir/$dlname~
  14357. chmod a+x \$dldir/$dlname'
  14358. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14359. dlpath=$dir/\$dldll~
  14360. $rm \$dlpath'
  14361. shlibpath_overrides_runpath=yes
  14362. case $host_os in
  14363. cygwin*)
  14364. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14365. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14366. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  14367. ;;
  14368. mingw*)
  14369. # MinGW DLLs use traditional 'lib' prefix
  14370. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14371. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14372. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  14373. # It is most probably a Windows format PATH printed by
  14374. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  14375. # path with ; separators, and with drive letters. We can handle the
  14376. # drive letters (cygwin fileutils understands them), so leave them,
  14377. # especially as we might pass files found there to a mingw objdump,
  14378. # which wouldn't understand a cygwinified path. Ahh.
  14379. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14380. else
  14381. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14382. fi
  14383. ;;
  14384. pw32*)
  14385. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14386. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14387. ;;
  14388. esac
  14389. ;;
  14390. *)
  14391. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  14392. ;;
  14393. esac
  14394. dynamic_linker='Win32 ld.exe'
  14395. # FIXME: first we should search . and the directory the executable is in
  14396. shlibpath_var=PATH
  14397. ;;
  14398. darwin* | rhapsody*)
  14399. dynamic_linker="$host_os dyld"
  14400. version_type=darwin
  14401. need_lib_prefix=no
  14402. need_version=no
  14403. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  14404. soname_spec='${libname}${release}${major}$shared_ext'
  14405. shlibpath_overrides_runpath=yes
  14406. shlibpath_var=DYLD_LIBRARY_PATH
  14407. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14408. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14409. ;;
  14410. dgux*)
  14411. version_type=linux
  14412. need_lib_prefix=no
  14413. need_version=no
  14414. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  14415. soname_spec='${libname}${release}${shared_ext}$major'
  14416. shlibpath_var=LD_LIBRARY_PATH
  14417. ;;
  14418. freebsd1*)
  14419. dynamic_linker=no
  14420. ;;
  14421. freebsd* | dragonfly*)
  14422. # DragonFly does not have aout. When/if they implement a new
  14423. # versioning mechanism, adjust this.
  14424. if test -x /usr/bin/objformat; then
  14425. objformat=`/usr/bin/objformat`
  14426. else
  14427. case $host_os in
  14428. freebsd[123]*) objformat=aout ;;
  14429. *) objformat=elf ;;
  14430. esac
  14431. fi
  14432. version_type=freebsd-$objformat
  14433. case $version_type in
  14434. freebsd-elf*)
  14435. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14436. need_version=no
  14437. need_lib_prefix=no
  14438. ;;
  14439. freebsd-*)
  14440. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  14441. need_version=yes
  14442. ;;
  14443. esac
  14444. shlibpath_var=LD_LIBRARY_PATH
  14445. case $host_os in
  14446. freebsd2*)
  14447. shlibpath_overrides_runpath=yes
  14448. ;;
  14449. freebsd3.[01]* | freebsdelf3.[01]*)
  14450. shlibpath_overrides_runpath=yes
  14451. hardcode_into_libs=yes
  14452. ;;
  14453. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14454. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14455. shlibpath_overrides_runpath=no
  14456. hardcode_into_libs=yes
  14457. ;;
  14458. *) # from 4.6 on, and DragonFly
  14459. shlibpath_overrides_runpath=yes
  14460. hardcode_into_libs=yes
  14461. ;;
  14462. esac
  14463. ;;
  14464. gnu*)
  14465. version_type=linux
  14466. need_lib_prefix=no
  14467. need_version=no
  14468. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  14469. soname_spec='${libname}${release}${shared_ext}$major'
  14470. shlibpath_var=LD_LIBRARY_PATH
  14471. hardcode_into_libs=yes
  14472. ;;
  14473. hpux9* | hpux10* | hpux11*)
  14474. # Give a soname corresponding to the major version so that dld.sl refuses to
  14475. # link against other versions.
  14476. version_type=sunos
  14477. need_lib_prefix=no
  14478. need_version=no
  14479. case $host_cpu in
  14480. ia64*)
  14481. shrext_cmds='.so'
  14482. hardcode_into_libs=yes
  14483. dynamic_linker="$host_os dld.so"
  14484. shlibpath_var=LD_LIBRARY_PATH
  14485. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14486. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14487. soname_spec='${libname}${release}${shared_ext}$major'
  14488. if test "X$HPUX_IA64_MODE" = X32; then
  14489. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14490. else
  14491. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14492. fi
  14493. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14494. ;;
  14495. hppa*64*)
  14496. shrext_cmds='.sl'
  14497. hardcode_into_libs=yes
  14498. dynamic_linker="$host_os dld.sl"
  14499. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14500. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14501. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14502. soname_spec='${libname}${release}${shared_ext}$major'
  14503. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14504. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14505. ;;
  14506. *)
  14507. shrext_cmds='.sl'
  14508. dynamic_linker="$host_os dld.sl"
  14509. shlibpath_var=SHLIB_PATH
  14510. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14511. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14512. soname_spec='${libname}${release}${shared_ext}$major'
  14513. ;;
  14514. esac
  14515. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  14516. postinstall_cmds='chmod 555 $lib'
  14517. ;;
  14518. interix[3-9]*)
  14519. version_type=linux
  14520. need_lib_prefix=no
  14521. need_version=no
  14522. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14523. soname_spec='${libname}${release}${shared_ext}$major'
  14524. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14525. shlibpath_var=LD_LIBRARY_PATH
  14526. shlibpath_overrides_runpath=no
  14527. hardcode_into_libs=yes
  14528. ;;
  14529. irix5* | irix6* | nonstopux*)
  14530. case $host_os in
  14531. nonstopux*) version_type=nonstopux ;;
  14532. *)
  14533. if test "$lt_cv_prog_gnu_ld" = yes; then
  14534. version_type=linux
  14535. else
  14536. version_type=irix
  14537. fi ;;
  14538. esac
  14539. need_lib_prefix=no
  14540. need_version=no
  14541. soname_spec='${libname}${release}${shared_ext}$major'
  14542. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  14543. case $host_os in
  14544. irix5* | nonstopux*)
  14545. libsuff= shlibsuff=
  14546. ;;
  14547. *)
  14548. case $LD in # libtool.m4 will add one of these switches to LD
  14549. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14550. libsuff= shlibsuff= libmagic=32-bit;;
  14551. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14552. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14553. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14554. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14555. *) libsuff= shlibsuff= libmagic=never-match;;
  14556. esac
  14557. ;;
  14558. esac
  14559. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14560. shlibpath_overrides_runpath=no
  14561. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  14562. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  14563. hardcode_into_libs=yes
  14564. ;;
  14565. # No shared lib support for Linux oldld, aout, or coff.
  14566. linux*oldld* | linux*aout* | linux*coff*)
  14567. dynamic_linker=no
  14568. ;;
  14569. # This must be Linux ELF.
  14570. linux* | k*bsd*-gnu)
  14571. version_type=linux
  14572. need_lib_prefix=no
  14573. need_version=no
  14574. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14575. soname_spec='${libname}${release}${shared_ext}$major'
  14576. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14577. shlibpath_var=LD_LIBRARY_PATH
  14578. shlibpath_overrides_runpath=no
  14579. # This implies no fast_install, which is unacceptable.
  14580. # Some rework will be needed to allow for fast_install
  14581. # before this can be enabled.
  14582. hardcode_into_libs=yes
  14583. # Append ld.so.conf contents to the search path
  14584. if test -f /etc/ld.so.conf; then
  14585. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  14586. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14587. fi
  14588. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14589. # powerpc, because MkLinux only supported shared libraries with the
  14590. # GNU dynamic linker. Since this was broken with cross compilers,
  14591. # most powerpc-linux boxes support dynamic linking these days and
  14592. # people can always --disable-shared, the test was removed, and we
  14593. # assume the GNU/Linux dynamic linker is in use.
  14594. dynamic_linker='GNU/Linux ld.so'
  14595. ;;
  14596. netbsdelf*-gnu)
  14597. version_type=linux
  14598. need_lib_prefix=no
  14599. need_version=no
  14600. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14601. soname_spec='${libname}${release}${shared_ext}$major'
  14602. shlibpath_var=LD_LIBRARY_PATH
  14603. shlibpath_overrides_runpath=no
  14604. hardcode_into_libs=yes
  14605. dynamic_linker='NetBSD ld.elf_so'
  14606. ;;
  14607. netbsd*)
  14608. version_type=sunos
  14609. need_lib_prefix=no
  14610. need_version=no
  14611. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14612. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14613. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14614. dynamic_linker='NetBSD (a.out) ld.so'
  14615. else
  14616. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14617. soname_spec='${libname}${release}${shared_ext}$major'
  14618. dynamic_linker='NetBSD ld.elf_so'
  14619. fi
  14620. shlibpath_var=LD_LIBRARY_PATH
  14621. shlibpath_overrides_runpath=yes
  14622. hardcode_into_libs=yes
  14623. ;;
  14624. newsos6)
  14625. version_type=linux
  14626. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14627. shlibpath_var=LD_LIBRARY_PATH
  14628. shlibpath_overrides_runpath=yes
  14629. ;;
  14630. nto-qnx*)
  14631. version_type=linux
  14632. need_lib_prefix=no
  14633. need_version=no
  14634. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14635. soname_spec='${libname}${release}${shared_ext}$major'
  14636. shlibpath_var=LD_LIBRARY_PATH
  14637. shlibpath_overrides_runpath=yes
  14638. ;;
  14639. openbsd*)
  14640. version_type=sunos
  14641. sys_lib_dlsearch_path_spec="/usr/lib"
  14642. need_lib_prefix=no
  14643. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  14644. case $host_os in
  14645. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  14646. *) need_version=no ;;
  14647. esac
  14648. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14649. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14650. shlibpath_var=LD_LIBRARY_PATH
  14651. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14652. case $host_os in
  14653. openbsd2.[89] | openbsd2.[89].*)
  14654. shlibpath_overrides_runpath=no
  14655. ;;
  14656. *)
  14657. shlibpath_overrides_runpath=yes
  14658. ;;
  14659. esac
  14660. else
  14661. shlibpath_overrides_runpath=yes
  14662. fi
  14663. ;;
  14664. os2*)
  14665. libname_spec='$name'
  14666. shrext_cmds=".dll"
  14667. need_lib_prefix=no
  14668. library_names_spec='$libname${shared_ext} $libname.a'
  14669. dynamic_linker='OS/2 ld.exe'
  14670. shlibpath_var=LIBPATH
  14671. ;;
  14672. osf3* | osf4* | osf5*)
  14673. version_type=osf
  14674. need_lib_prefix=no
  14675. need_version=no
  14676. soname_spec='${libname}${release}${shared_ext}$major'
  14677. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14678. shlibpath_var=LD_LIBRARY_PATH
  14679. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14680. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  14681. ;;
  14682. rdos*)
  14683. dynamic_linker=no
  14684. ;;
  14685. solaris*)
  14686. version_type=linux
  14687. need_lib_prefix=no
  14688. need_version=no
  14689. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14690. soname_spec='${libname}${release}${shared_ext}$major'
  14691. shlibpath_var=LD_LIBRARY_PATH
  14692. shlibpath_overrides_runpath=yes
  14693. hardcode_into_libs=yes
  14694. # ldd complains unless libraries are executable
  14695. postinstall_cmds='chmod +x $lib'
  14696. ;;
  14697. sunos4*)
  14698. version_type=sunos
  14699. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14700. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14701. shlibpath_var=LD_LIBRARY_PATH
  14702. shlibpath_overrides_runpath=yes
  14703. if test "$with_gnu_ld" = yes; then
  14704. need_lib_prefix=no
  14705. fi
  14706. need_version=yes
  14707. ;;
  14708. sysv4 | sysv4.3*)
  14709. version_type=linux
  14710. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14711. soname_spec='${libname}${release}${shared_ext}$major'
  14712. shlibpath_var=LD_LIBRARY_PATH
  14713. case $host_vendor in
  14714. sni)
  14715. shlibpath_overrides_runpath=no
  14716. need_lib_prefix=no
  14717. export_dynamic_flag_spec='${wl}-Blargedynsym'
  14718. runpath_var=LD_RUN_PATH
  14719. ;;
  14720. siemens)
  14721. need_lib_prefix=no
  14722. ;;
  14723. motorola)
  14724. need_lib_prefix=no
  14725. need_version=no
  14726. shlibpath_overrides_runpath=no
  14727. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14728. ;;
  14729. esac
  14730. ;;
  14731. sysv4*MP*)
  14732. if test -d /usr/nec ;then
  14733. version_type=linux
  14734. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  14735. soname_spec='$libname${shared_ext}.$major'
  14736. shlibpath_var=LD_LIBRARY_PATH
  14737. fi
  14738. ;;
  14739. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14740. version_type=freebsd-elf
  14741. need_lib_prefix=no
  14742. need_version=no
  14743. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14744. soname_spec='${libname}${release}${shared_ext}$major'
  14745. shlibpath_var=LD_LIBRARY_PATH
  14746. hardcode_into_libs=yes
  14747. if test "$with_gnu_ld" = yes; then
  14748. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14749. shlibpath_overrides_runpath=no
  14750. else
  14751. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14752. shlibpath_overrides_runpath=yes
  14753. case $host_os in
  14754. sco3.2v5*)
  14755. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14756. ;;
  14757. esac
  14758. fi
  14759. sys_lib_dlsearch_path_spec='/usr/lib'
  14760. ;;
  14761. uts4*)
  14762. version_type=linux
  14763. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14764. soname_spec='${libname}${release}${shared_ext}$major'
  14765. shlibpath_var=LD_LIBRARY_PATH
  14766. ;;
  14767. *)
  14768. dynamic_linker=no
  14769. ;;
  14770. esac
  14771. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  14772. echo "${ECHO_T}$dynamic_linker" >&6; }
  14773. test "$dynamic_linker" = no && can_build_shared=no
  14774. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  14775. echo $ECHO_N "(cached) $ECHO_C" >&6
  14776. else
  14777. lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  14778. fi
  14779. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  14780. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  14781. echo $ECHO_N "(cached) $ECHO_C" >&6
  14782. else
  14783. lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  14784. fi
  14785. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  14786. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14787. if test "$GCC" = yes; then
  14788. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14789. fi
  14790. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  14791. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  14792. hardcode_action_CXX=
  14793. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  14794. test -n "$runpath_var_CXX" || \
  14795. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  14796. # We can hardcode non-existant directories.
  14797. if test "$hardcode_direct_CXX" != no &&
  14798. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14799. # have to relink, otherwise we might link with an installed library
  14800. # when we should be linking with a yet-to-be-installed one
  14801. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  14802. test "$hardcode_minus_L_CXX" != no; then
  14803. # Linking always hardcodes the temporary library directory.
  14804. hardcode_action_CXX=relink
  14805. else
  14806. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14807. hardcode_action_CXX=immediate
  14808. fi
  14809. else
  14810. # We cannot hardcode anything, or else we can only hardcode existing
  14811. # directories.
  14812. hardcode_action_CXX=unsupported
  14813. fi
  14814. { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  14815. echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  14816. if test "$hardcode_action_CXX" = relink; then
  14817. # Fast installation is not supported
  14818. enable_fast_install=no
  14819. elif test "$shlibpath_overrides_runpath" = yes ||
  14820. test "$enable_shared" = no; then
  14821. # Fast installation is not necessary
  14822. enable_fast_install=needless
  14823. fi
  14824. # The else clause should only fire when bootstrapping the
  14825. # libtool distribution, otherwise you forgot to ship ltmain.sh
  14826. # with your package, and you will get complaints that there are
  14827. # no rules to generate ltmain.sh.
  14828. if test -f "$ltmain"; then
  14829. # See if we are running on zsh, and set the options which allow our commands through
  14830. # without removal of \ escapes.
  14831. if test -n "${ZSH_VERSION+set}" ; then
  14832. setopt NO_GLOB_SUBST
  14833. fi
  14834. # Now quote all the things that may contain metacharacters while being
  14835. # careful not to overquote the AC_SUBSTed values. We take copies of the
  14836. # variables and quote the copies for generation of the libtool script.
  14837. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  14838. SED SHELL STRIP \
  14839. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  14840. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  14841. deplibs_check_method reload_flag reload_cmds need_locks \
  14842. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  14843. lt_cv_sys_global_symbol_to_c_name_address \
  14844. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  14845. old_postinstall_cmds old_postuninstall_cmds \
  14846. compiler_CXX \
  14847. CC_CXX \
  14848. LD_CXX \
  14849. lt_prog_compiler_wl_CXX \
  14850. lt_prog_compiler_pic_CXX \
  14851. lt_prog_compiler_static_CXX \
  14852. lt_prog_compiler_no_builtin_flag_CXX \
  14853. export_dynamic_flag_spec_CXX \
  14854. thread_safe_flag_spec_CXX \
  14855. whole_archive_flag_spec_CXX \
  14856. enable_shared_with_static_runtimes_CXX \
  14857. old_archive_cmds_CXX \
  14858. old_archive_from_new_cmds_CXX \
  14859. predep_objects_CXX \
  14860. postdep_objects_CXX \
  14861. predeps_CXX \
  14862. postdeps_CXX \
  14863. compiler_lib_search_path_CXX \
  14864. compiler_lib_search_dirs_CXX \
  14865. archive_cmds_CXX \
  14866. archive_expsym_cmds_CXX \
  14867. postinstall_cmds_CXX \
  14868. postuninstall_cmds_CXX \
  14869. old_archive_from_expsyms_cmds_CXX \
  14870. allow_undefined_flag_CXX \
  14871. no_undefined_flag_CXX \
  14872. export_symbols_cmds_CXX \
  14873. hardcode_libdir_flag_spec_CXX \
  14874. hardcode_libdir_flag_spec_ld_CXX \
  14875. hardcode_libdir_separator_CXX \
  14876. hardcode_automatic_CXX \
  14877. module_cmds_CXX \
  14878. module_expsym_cmds_CXX \
  14879. lt_cv_prog_compiler_c_o_CXX \
  14880. fix_srcfile_path_CXX \
  14881. exclude_expsyms_CXX \
  14882. include_expsyms_CXX; do
  14883. case $var in
  14884. old_archive_cmds_CXX | \
  14885. old_archive_from_new_cmds_CXX | \
  14886. archive_cmds_CXX | \
  14887. archive_expsym_cmds_CXX | \
  14888. module_cmds_CXX | \
  14889. module_expsym_cmds_CXX | \
  14890. old_archive_from_expsyms_cmds_CXX | \
  14891. export_symbols_cmds_CXX | \
  14892. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  14893. postinstall_cmds | postuninstall_cmds | \
  14894. old_postinstall_cmds | old_postuninstall_cmds | \
  14895. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  14896. # Double-quote double-evaled strings.
  14897. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  14898. ;;
  14899. *)
  14900. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  14901. ;;
  14902. esac
  14903. done
  14904. case $lt_echo in
  14905. *'\$0 --fallback-echo"')
  14906. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  14907. ;;
  14908. esac
  14909. cfgfile="$ofile"
  14910. cat <<__EOF__ >> "$cfgfile"
  14911. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  14912. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14913. # Shell to use when invoking shell scripts.
  14914. SHELL=$lt_SHELL
  14915. # Whether or not to build shared libraries.
  14916. build_libtool_libs=$enable_shared
  14917. # Whether or not to build static libraries.
  14918. build_old_libs=$enable_static
  14919. # Whether or not to add -lc for building shared libraries.
  14920. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  14921. # Whether or not to disallow shared libs when runtime libs are static
  14922. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  14923. # Whether or not to optimize for fast installation.
  14924. fast_install=$enable_fast_install
  14925. # The host system.
  14926. host_alias=$host_alias
  14927. host=$host
  14928. host_os=$host_os
  14929. # The build system.
  14930. build_alias=$build_alias
  14931. build=$build
  14932. build_os=$build_os
  14933. # An echo program that does not interpret backslashes.
  14934. echo=$lt_echo
  14935. # The archiver.
  14936. AR=$lt_AR
  14937. AR_FLAGS=$lt_AR_FLAGS
  14938. # A C compiler.
  14939. LTCC=$lt_LTCC
  14940. # LTCC compiler flags.
  14941. LTCFLAGS=$lt_LTCFLAGS
  14942. # A language-specific compiler.
  14943. CC=$lt_compiler_CXX
  14944. # Is the compiler the GNU C compiler?
  14945. with_gcc=$GCC_CXX
  14946. # An ERE matcher.
  14947. EGREP=$lt_EGREP
  14948. # The linker used to build libraries.
  14949. LD=$lt_LD_CXX
  14950. # Whether we need hard or soft links.
  14951. LN_S=$lt_LN_S
  14952. # A BSD-compatible nm program.
  14953. NM=$lt_NM
  14954. # A symbol stripping program
  14955. STRIP=$lt_STRIP
  14956. # Used to examine libraries when file_magic_cmd begins "file"
  14957. MAGIC_CMD=$MAGIC_CMD
  14958. # Used on cygwin: DLL creation program.
  14959. DLLTOOL="$DLLTOOL"
  14960. # Used on cygwin: object dumper.
  14961. OBJDUMP="$OBJDUMP"
  14962. # Used on cygwin: assembler.
  14963. AS="$AS"
  14964. # The name of the directory that contains temporary libtool files.
  14965. objdir=$objdir
  14966. # How to create reloadable object files.
  14967. reload_flag=$lt_reload_flag
  14968. reload_cmds=$lt_reload_cmds
  14969. # How to pass a linker flag through the compiler.
  14970. wl=$lt_lt_prog_compiler_wl_CXX
  14971. # Object file suffix (normally "o").
  14972. objext="$ac_objext"
  14973. # Old archive suffix (normally "a").
  14974. libext="$libext"
  14975. # Shared library suffix (normally ".so").
  14976. shrext_cmds='$shrext_cmds'
  14977. # Executable file suffix (normally "").
  14978. exeext="$exeext"
  14979. # Additional compiler flags for building library objects.
  14980. pic_flag=$lt_lt_prog_compiler_pic_CXX
  14981. pic_mode=$pic_mode
  14982. # What is the maximum length of a command?
  14983. max_cmd_len=$lt_cv_sys_max_cmd_len
  14984. # Does compiler simultaneously support -c and -o options?
  14985. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  14986. # Must we lock files when doing compilation?
  14987. need_locks=$lt_need_locks
  14988. # Do we need the lib prefix for modules?
  14989. need_lib_prefix=$need_lib_prefix
  14990. # Do we need a version for libraries?
  14991. need_version=$need_version
  14992. # Whether dlopen is supported.
  14993. dlopen_support=$enable_dlopen
  14994. # Whether dlopen of programs is supported.
  14995. dlopen_self=$enable_dlopen_self
  14996. # Whether dlopen of statically linked programs is supported.
  14997. dlopen_self_static=$enable_dlopen_self_static
  14998. # Compiler flag to prevent dynamic linking.
  14999. link_static_flag=$lt_lt_prog_compiler_static_CXX
  15000. # Compiler flag to turn off builtin functions.
  15001. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  15002. # Compiler flag to allow reflexive dlopens.
  15003. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  15004. # Compiler flag to generate shared objects directly from archives.
  15005. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  15006. # Compiler flag to generate thread-safe objects.
  15007. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  15008. # Library versioning type.
  15009. version_type=$version_type
  15010. # Format of library name prefix.
  15011. libname_spec=$lt_libname_spec
  15012. # List of archive names. First name is the real one, the rest are links.
  15013. # The last name is the one that the linker finds with -lNAME.
  15014. library_names_spec=$lt_library_names_spec
  15015. # The coded name of the library, if different from the real name.
  15016. soname_spec=$lt_soname_spec
  15017. # Commands used to build and install an old-style archive.
  15018. RANLIB=$lt_RANLIB
  15019. old_archive_cmds=$lt_old_archive_cmds_CXX
  15020. old_postinstall_cmds=$lt_old_postinstall_cmds
  15021. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15022. # Create an old-style archive from a shared archive.
  15023. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  15024. # Create a temporary old-style archive to link instead of a shared archive.
  15025. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  15026. # Commands used to build and install a shared archive.
  15027. archive_cmds=$lt_archive_cmds_CXX
  15028. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  15029. postinstall_cmds=$lt_postinstall_cmds
  15030. postuninstall_cmds=$lt_postuninstall_cmds
  15031. # Commands used to build a loadable module (assumed same as above if empty)
  15032. module_cmds=$lt_module_cmds_CXX
  15033. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  15034. # Commands to strip libraries.
  15035. old_striplib=$lt_old_striplib
  15036. striplib=$lt_striplib
  15037. # Dependencies to place before the objects being linked to create a
  15038. # shared library.
  15039. predep_objects=$lt_predep_objects_CXX
  15040. # Dependencies to place after the objects being linked to create a
  15041. # shared library.
  15042. postdep_objects=$lt_postdep_objects_CXX
  15043. # Dependencies to place before the objects being linked to create a
  15044. # shared library.
  15045. predeps=$lt_predeps_CXX
  15046. # Dependencies to place after the objects being linked to create a
  15047. # shared library.
  15048. postdeps=$lt_postdeps_CXX
  15049. # The directories searched by this compiler when creating a shared
  15050. # library
  15051. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  15052. # The library search path used internally by the compiler when linking
  15053. # a shared library.
  15054. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  15055. # Method to check whether dependent libraries are shared objects.
  15056. deplibs_check_method=$lt_deplibs_check_method
  15057. # Command to use when deplibs_check_method == file_magic.
  15058. file_magic_cmd=$lt_file_magic_cmd
  15059. # Flag that allows shared libraries with undefined symbols to be built.
  15060. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  15061. # Flag that forces no undefined symbols.
  15062. no_undefined_flag=$lt_no_undefined_flag_CXX
  15063. # Commands used to finish a libtool library installation in a directory.
  15064. finish_cmds=$lt_finish_cmds
  15065. # Same as above, but a single script fragment to be evaled but not shown.
  15066. finish_eval=$lt_finish_eval
  15067. # Take the output of nm and produce a listing of raw symbols and C names.
  15068. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15069. # Transform the output of nm in a proper C declaration
  15070. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15071. # Transform the output of nm in a C name address pair
  15072. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15073. # This is the shared library runtime path variable.
  15074. runpath_var=$runpath_var
  15075. # This is the shared library path variable.
  15076. shlibpath_var=$shlibpath_var
  15077. # Is shlibpath searched before the hard-coded library search path?
  15078. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15079. # How to hardcode a shared library path into an executable.
  15080. hardcode_action=$hardcode_action_CXX
  15081. # Whether we should hardcode library paths into libraries.
  15082. hardcode_into_libs=$hardcode_into_libs
  15083. # Flag to hardcode \$libdir into a binary during linking.
  15084. # This must work even if \$libdir does not exist.
  15085. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  15086. # If ld is used when linking, flag to hardcode \$libdir into
  15087. # a binary during linking. This must work even if \$libdir does
  15088. # not exist.
  15089. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  15090. # Whether we need a single -rpath flag with a separated argument.
  15091. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  15092. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  15093. # resulting binary.
  15094. hardcode_direct=$hardcode_direct_CXX
  15095. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  15096. # resulting binary.
  15097. hardcode_minus_L=$hardcode_minus_L_CXX
  15098. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  15099. # the resulting binary.
  15100. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  15101. # Set to yes if building a shared library automatically hardcodes DIR into the library
  15102. # and all subsequent libraries and executables linked against it.
  15103. hardcode_automatic=$hardcode_automatic_CXX
  15104. # Variables whose values should be saved in libtool wrapper scripts and
  15105. # restored at relink time.
  15106. variables_saved_for_relink="$variables_saved_for_relink"
  15107. # Whether libtool must link a program against all its dependency libraries.
  15108. link_all_deplibs=$link_all_deplibs_CXX
  15109. # Compile-time system search path for libraries
  15110. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15111. # Run-time system search path for libraries
  15112. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15113. # Fix the shell variable \$srcfile for the compiler.
  15114. fix_srcfile_path=$lt_fix_srcfile_path
  15115. # Set to yes if exported symbols are required.
  15116. always_export_symbols=$always_export_symbols_CXX
  15117. # The commands to list exported symbols.
  15118. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  15119. # The commands to extract the exported symbol list from a shared archive.
  15120. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15121. # Symbols that should not be listed in the preloaded symbols.
  15122. exclude_expsyms=$lt_exclude_expsyms_CXX
  15123. # Symbols that must always be exported.
  15124. include_expsyms=$lt_include_expsyms_CXX
  15125. # ### END LIBTOOL TAG CONFIG: $tagname
  15126. __EOF__
  15127. else
  15128. # If there is no Makefile yet, we rely on a make rule to execute
  15129. # `config.status --recheck' to rerun these tests and create the
  15130. # libtool script then.
  15131. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  15132. if test -f "$ltmain_in"; then
  15133. test -f Makefile && make "$ltmain"
  15134. fi
  15135. fi
  15136. ac_ext=c
  15137. ac_cpp='$CPP $CPPFLAGS'
  15138. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15139. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15140. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15141. CC=$lt_save_CC
  15142. LDCXX=$LD
  15143. LD=$lt_save_LD
  15144. GCC=$lt_save_GCC
  15145. with_gnu_ldcxx=$with_gnu_ld
  15146. with_gnu_ld=$lt_save_with_gnu_ld
  15147. lt_cv_path_LDCXX=$lt_cv_path_LD
  15148. lt_cv_path_LD=$lt_save_path_LD
  15149. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15150. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15151. else
  15152. tagname=""
  15153. fi
  15154. ;;
  15155. F77)
  15156. if test -n "$F77" && test "X$F77" != "Xno"; then
  15157. ac_ext=f
  15158. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  15159. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15160. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  15161. archive_cmds_need_lc_F77=no
  15162. allow_undefined_flag_F77=
  15163. always_export_symbols_F77=no
  15164. archive_expsym_cmds_F77=
  15165. export_dynamic_flag_spec_F77=
  15166. hardcode_direct_F77=no
  15167. hardcode_libdir_flag_spec_F77=
  15168. hardcode_libdir_flag_spec_ld_F77=
  15169. hardcode_libdir_separator_F77=
  15170. hardcode_minus_L_F77=no
  15171. hardcode_automatic_F77=no
  15172. module_cmds_F77=
  15173. module_expsym_cmds_F77=
  15174. link_all_deplibs_F77=unknown
  15175. old_archive_cmds_F77=$old_archive_cmds
  15176. no_undefined_flag_F77=
  15177. whole_archive_flag_spec_F77=
  15178. enable_shared_with_static_runtimes_F77=no
  15179. # Source file extension for f77 test sources.
  15180. ac_ext=f
  15181. # Object file extension for compiled f77 test sources.
  15182. objext=o
  15183. objext_F77=$objext
  15184. # Code to be used in simple compile tests
  15185. lt_simple_compile_test_code="\
  15186. subroutine t
  15187. return
  15188. end
  15189. "
  15190. # Code to be used in simple link tests
  15191. lt_simple_link_test_code="\
  15192. program t
  15193. end
  15194. "
  15195. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  15196. # If no C compiler was specified, use CC.
  15197. LTCC=${LTCC-"$CC"}
  15198. # If no C compiler flags were specified, use CFLAGS.
  15199. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  15200. # Allow CC to be a program name with arguments.
  15201. compiler=$CC
  15202. # save warnings/boilerplate of simple test code
  15203. ac_outfile=conftest.$ac_objext
  15204. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  15205. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  15206. _lt_compiler_boilerplate=`cat conftest.err`
  15207. $rm conftest*
  15208. ac_outfile=conftest.$ac_objext
  15209. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  15210. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  15211. _lt_linker_boilerplate=`cat conftest.err`
  15212. $rm -r conftest*
  15213. # Allow CC to be a program name with arguments.
  15214. lt_save_CC="$CC"
  15215. CC=${F77-"f77"}
  15216. compiler=$CC
  15217. compiler_F77=$CC
  15218. for cc_temp in $compiler""; do
  15219. case $cc_temp in
  15220. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15221. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15222. \-*) ;;
  15223. *) break;;
  15224. esac
  15225. done
  15226. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  15227. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  15228. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  15229. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  15230. echo "${ECHO_T}$can_build_shared" >&6; }
  15231. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  15232. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  15233. test "$can_build_shared" = "no" && enable_shared=no
  15234. # On AIX, shared libraries and static libraries use the same namespace, and
  15235. # are all built from PIC.
  15236. case $host_os in
  15237. aix3*)
  15238. test "$enable_shared" = yes && enable_static=no
  15239. if test -n "$RANLIB"; then
  15240. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  15241. postinstall_cmds='$RANLIB $lib'
  15242. fi
  15243. ;;
  15244. aix[4-9]*)
  15245. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  15246. test "$enable_shared" = yes && enable_static=no
  15247. fi
  15248. ;;
  15249. esac
  15250. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  15251. echo "${ECHO_T}$enable_shared" >&6; }
  15252. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  15253. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  15254. # Make sure either enable_shared or enable_static is yes.
  15255. test "$enable_shared" = yes || enable_static=yes
  15256. { echo "$as_me:$LINENO: result: $enable_static" >&5
  15257. echo "${ECHO_T}$enable_static" >&6; }
  15258. GCC_F77="$G77"
  15259. LD_F77="$LD"
  15260. lt_prog_compiler_wl_F77=
  15261. lt_prog_compiler_pic_F77=
  15262. lt_prog_compiler_static_F77=
  15263. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  15264. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  15265. if test "$GCC" = yes; then
  15266. lt_prog_compiler_wl_F77='-Wl,'
  15267. lt_prog_compiler_static_F77='-static'
  15268. case $host_os in
  15269. aix*)
  15270. # All AIX code is PIC.
  15271. if test "$host_cpu" = ia64; then
  15272. # AIX 5 now supports IA64 processor
  15273. lt_prog_compiler_static_F77='-Bstatic'
  15274. fi
  15275. ;;
  15276. amigaos*)
  15277. # FIXME: we need at least 68020 code to build shared libraries, but
  15278. # adding the `-m68020' flag to GCC prevents building anything better,
  15279. # like `-m68040'.
  15280. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  15281. ;;
  15282. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  15283. # PIC is the default for these OSes.
  15284. ;;
  15285. mingw* | cygwin* | pw32* | os2*)
  15286. # This hack is so that the source file can tell whether it is being
  15287. # built for inclusion in a dll (and should export symbols for example).
  15288. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  15289. # (--disable-auto-import) libraries
  15290. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  15291. ;;
  15292. darwin* | rhapsody*)
  15293. # PIC is the default on this platform
  15294. # Common symbols not allowed in MH_DYLIB files
  15295. lt_prog_compiler_pic_F77='-fno-common'
  15296. ;;
  15297. interix[3-9]*)
  15298. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  15299. # Instead, we relocate shared libraries at runtime.
  15300. ;;
  15301. msdosdjgpp*)
  15302. # Just because we use GCC doesn't mean we suddenly get shared libraries
  15303. # on systems that don't support them.
  15304. lt_prog_compiler_can_build_shared_F77=no
  15305. enable_shared=no
  15306. ;;
  15307. sysv4*MP*)
  15308. if test -d /usr/nec; then
  15309. lt_prog_compiler_pic_F77=-Kconform_pic
  15310. fi
  15311. ;;
  15312. hpux*)
  15313. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  15314. # not for PA HP-UX.
  15315. case $host_cpu in
  15316. hppa*64*|ia64*)
  15317. # +Z the default
  15318. ;;
  15319. *)
  15320. lt_prog_compiler_pic_F77='-fPIC'
  15321. ;;
  15322. esac
  15323. ;;
  15324. *)
  15325. lt_prog_compiler_pic_F77='-fPIC'
  15326. ;;
  15327. esac
  15328. else
  15329. # PORTME Check for flag to pass linker flags through the system compiler.
  15330. case $host_os in
  15331. aix*)
  15332. lt_prog_compiler_wl_F77='-Wl,'
  15333. if test "$host_cpu" = ia64; then
  15334. # AIX 5 now supports IA64 processor
  15335. lt_prog_compiler_static_F77='-Bstatic'
  15336. else
  15337. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  15338. fi
  15339. ;;
  15340. darwin*)
  15341. # PIC is the default on this platform
  15342. # Common symbols not allowed in MH_DYLIB files
  15343. case $cc_basename in
  15344. xlc*)
  15345. lt_prog_compiler_pic_F77='-qnocommon'
  15346. lt_prog_compiler_wl_F77='-Wl,'
  15347. ;;
  15348. esac
  15349. ;;
  15350. mingw* | cygwin* | pw32* | os2*)
  15351. # This hack is so that the source file can tell whether it is being
  15352. # built for inclusion in a dll (and should export symbols for example).
  15353. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  15354. ;;
  15355. hpux9* | hpux10* | hpux11*)
  15356. lt_prog_compiler_wl_F77='-Wl,'
  15357. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  15358. # not for PA HP-UX.
  15359. case $host_cpu in
  15360. hppa*64*|ia64*)
  15361. # +Z the default
  15362. ;;
  15363. *)
  15364. lt_prog_compiler_pic_F77='+Z'
  15365. ;;
  15366. esac
  15367. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  15368. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  15369. ;;
  15370. irix5* | irix6* | nonstopux*)
  15371. lt_prog_compiler_wl_F77='-Wl,'
  15372. # PIC (with -KPIC) is the default.
  15373. lt_prog_compiler_static_F77='-non_shared'
  15374. ;;
  15375. newsos6)
  15376. lt_prog_compiler_pic_F77='-KPIC'
  15377. lt_prog_compiler_static_F77='-Bstatic'
  15378. ;;
  15379. linux* | k*bsd*-gnu)
  15380. case $cc_basename in
  15381. icc* | ecc*)
  15382. lt_prog_compiler_wl_F77='-Wl,'
  15383. lt_prog_compiler_pic_F77='-KPIC'
  15384. lt_prog_compiler_static_F77='-static'
  15385. ;;
  15386. pgcc* | pgf77* | pgf90* | pgf95*)
  15387. # Portland Group compilers (*not* the Pentium gcc compiler,
  15388. # which looks to be a dead project)
  15389. lt_prog_compiler_wl_F77='-Wl,'
  15390. lt_prog_compiler_pic_F77='-fpic'
  15391. lt_prog_compiler_static_F77='-Bstatic'
  15392. ;;
  15393. ccc*)
  15394. lt_prog_compiler_wl_F77='-Wl,'
  15395. # All Alpha code is PIC.
  15396. lt_prog_compiler_static_F77='-non_shared'
  15397. ;;
  15398. *)
  15399. case `$CC -V 2>&1 | sed 5q` in
  15400. *Sun\ C*)
  15401. # Sun C 5.9
  15402. lt_prog_compiler_pic_F77='-KPIC'
  15403. lt_prog_compiler_static_F77='-Bstatic'
  15404. lt_prog_compiler_wl_F77='-Wl,'
  15405. ;;
  15406. *Sun\ F*)
  15407. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  15408. lt_prog_compiler_pic_F77='-KPIC'
  15409. lt_prog_compiler_static_F77='-Bstatic'
  15410. lt_prog_compiler_wl_F77=''
  15411. ;;
  15412. esac
  15413. ;;
  15414. esac
  15415. ;;
  15416. osf3* | osf4* | osf5*)
  15417. lt_prog_compiler_wl_F77='-Wl,'
  15418. # All OSF/1 code is PIC.
  15419. lt_prog_compiler_static_F77='-non_shared'
  15420. ;;
  15421. rdos*)
  15422. lt_prog_compiler_static_F77='-non_shared'
  15423. ;;
  15424. solaris*)
  15425. lt_prog_compiler_pic_F77='-KPIC'
  15426. lt_prog_compiler_static_F77='-Bstatic'
  15427. case $cc_basename in
  15428. f77* | f90* | f95*)
  15429. lt_prog_compiler_wl_F77='-Qoption ld ';;
  15430. *)
  15431. lt_prog_compiler_wl_F77='-Wl,';;
  15432. esac
  15433. ;;
  15434. sunos4*)
  15435. lt_prog_compiler_wl_F77='-Qoption ld '
  15436. lt_prog_compiler_pic_F77='-PIC'
  15437. lt_prog_compiler_static_F77='-Bstatic'
  15438. ;;
  15439. sysv4 | sysv4.2uw2* | sysv4.3*)
  15440. lt_prog_compiler_wl_F77='-Wl,'
  15441. lt_prog_compiler_pic_F77='-KPIC'
  15442. lt_prog_compiler_static_F77='-Bstatic'
  15443. ;;
  15444. sysv4*MP*)
  15445. if test -d /usr/nec ;then
  15446. lt_prog_compiler_pic_F77='-Kconform_pic'
  15447. lt_prog_compiler_static_F77='-Bstatic'
  15448. fi
  15449. ;;
  15450. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  15451. lt_prog_compiler_wl_F77='-Wl,'
  15452. lt_prog_compiler_pic_F77='-KPIC'
  15453. lt_prog_compiler_static_F77='-Bstatic'
  15454. ;;
  15455. unicos*)
  15456. lt_prog_compiler_wl_F77='-Wl,'
  15457. lt_prog_compiler_can_build_shared_F77=no
  15458. ;;
  15459. uts4*)
  15460. lt_prog_compiler_pic_F77='-pic'
  15461. lt_prog_compiler_static_F77='-Bstatic'
  15462. ;;
  15463. *)
  15464. lt_prog_compiler_can_build_shared_F77=no
  15465. ;;
  15466. esac
  15467. fi
  15468. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  15469. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  15470. #
  15471. # Check to make sure the PIC flag actually works.
  15472. #
  15473. if test -n "$lt_prog_compiler_pic_F77"; then
  15474. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  15475. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  15476. if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
  15477. echo $ECHO_N "(cached) $ECHO_C" >&6
  15478. else
  15479. lt_cv_prog_compiler_pic_works_F77=no
  15480. ac_outfile=conftest.$ac_objext
  15481. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15482. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  15483. # Insert the option either (1) after the last *FLAGS variable, or
  15484. # (2) before a word containing "conftest.", or (3) at the end.
  15485. # Note that $ac_compile itself does not contain backslashes and begins
  15486. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15487. # The option is referenced via a variable to avoid confusing sed.
  15488. lt_compile=`echo "$ac_compile" | $SED \
  15489. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15490. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15491. -e 's:$: $lt_compiler_flag:'`
  15492. (eval echo "\"\$as_me:17492: $lt_compile\"" >&5)
  15493. (eval "$lt_compile" 2>conftest.err)
  15494. ac_status=$?
  15495. cat conftest.err >&5
  15496. echo "$as_me:17496: \$? = $ac_status" >&5
  15497. if (exit $ac_status) && test -s "$ac_outfile"; then
  15498. # The compiler can only warn and ignore the option if not recognized
  15499. # So say no if there are warnings other than the usual output.
  15500. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  15501. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15502. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  15503. lt_cv_prog_compiler_pic_works_F77=yes
  15504. fi
  15505. fi
  15506. $rm conftest*
  15507. fi
  15508. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
  15509. echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
  15510. if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
  15511. case $lt_prog_compiler_pic_F77 in
  15512. "" | " "*) ;;
  15513. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  15514. esac
  15515. else
  15516. lt_prog_compiler_pic_F77=
  15517. lt_prog_compiler_can_build_shared_F77=no
  15518. fi
  15519. fi
  15520. case $host_os in
  15521. # For platforms which do not support PIC, -DPIC is meaningless:
  15522. *djgpp*)
  15523. lt_prog_compiler_pic_F77=
  15524. ;;
  15525. *)
  15526. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  15527. ;;
  15528. esac
  15529. #
  15530. # Check to make sure the static flag actually works.
  15531. #
  15532. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  15533. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  15534. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  15535. if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
  15536. echo $ECHO_N "(cached) $ECHO_C" >&6
  15537. else
  15538. lt_cv_prog_compiler_static_works_F77=no
  15539. save_LDFLAGS="$LDFLAGS"
  15540. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  15541. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  15542. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  15543. # The linker can only warn and ignore the option if not recognized
  15544. # So say no if there are warnings
  15545. if test -s conftest.err; then
  15546. # Append any errors to the config.log.
  15547. cat conftest.err 1>&5
  15548. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  15549. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15550. if diff conftest.exp conftest.er2 >/dev/null; then
  15551. lt_cv_prog_compiler_static_works_F77=yes
  15552. fi
  15553. else
  15554. lt_cv_prog_compiler_static_works_F77=yes
  15555. fi
  15556. fi
  15557. $rm -r conftest*
  15558. LDFLAGS="$save_LDFLAGS"
  15559. fi
  15560. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
  15561. echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
  15562. if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
  15563. :
  15564. else
  15565. lt_prog_compiler_static_F77=
  15566. fi
  15567. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  15568. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  15569. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  15570. echo $ECHO_N "(cached) $ECHO_C" >&6
  15571. else
  15572. lt_cv_prog_compiler_c_o_F77=no
  15573. $rm -r conftest 2>/dev/null
  15574. mkdir conftest
  15575. cd conftest
  15576. mkdir out
  15577. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15578. lt_compiler_flag="-o out/conftest2.$ac_objext"
  15579. # Insert the option either (1) after the last *FLAGS variable, or
  15580. # (2) before a word containing "conftest.", or (3) at the end.
  15581. # Note that $ac_compile itself does not contain backslashes and begins
  15582. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15583. lt_compile=`echo "$ac_compile" | $SED \
  15584. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15585. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15586. -e 's:$: $lt_compiler_flag:'`
  15587. (eval echo "\"\$as_me:17596: $lt_compile\"" >&5)
  15588. (eval "$lt_compile" 2>out/conftest.err)
  15589. ac_status=$?
  15590. cat out/conftest.err >&5
  15591. echo "$as_me:17600: \$? = $ac_status" >&5
  15592. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15593. then
  15594. # The compiler can only warn and ignore the option if not recognized
  15595. # So say no if there are warnings
  15596. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  15597. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  15598. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  15599. lt_cv_prog_compiler_c_o_F77=yes
  15600. fi
  15601. fi
  15602. chmod u+w . 2>&5
  15603. $rm conftest*
  15604. # SGI C++ compiler will create directory out/ii_files/ for
  15605. # template instantiation
  15606. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  15607. $rm out/* && rmdir out
  15608. cd ..
  15609. rmdir conftest
  15610. $rm conftest*
  15611. fi
  15612. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  15613. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  15614. hard_links="nottested"
  15615. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  15616. # do not overwrite the value of need_locks provided by the user
  15617. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  15618. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  15619. hard_links=yes
  15620. $rm conftest*
  15621. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15622. touch conftest.a
  15623. ln conftest.a conftest.b 2>&5 || hard_links=no
  15624. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15625. { echo "$as_me:$LINENO: result: $hard_links" >&5
  15626. echo "${ECHO_T}$hard_links" >&6; }
  15627. if test "$hard_links" = no; then
  15628. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  15629. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  15630. need_locks=warn
  15631. fi
  15632. else
  15633. need_locks=no
  15634. fi
  15635. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  15636. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  15637. runpath_var=
  15638. allow_undefined_flag_F77=
  15639. enable_shared_with_static_runtimes_F77=no
  15640. archive_cmds_F77=
  15641. archive_expsym_cmds_F77=
  15642. old_archive_From_new_cmds_F77=
  15643. old_archive_from_expsyms_cmds_F77=
  15644. export_dynamic_flag_spec_F77=
  15645. whole_archive_flag_spec_F77=
  15646. thread_safe_flag_spec_F77=
  15647. hardcode_libdir_flag_spec_F77=
  15648. hardcode_libdir_flag_spec_ld_F77=
  15649. hardcode_libdir_separator_F77=
  15650. hardcode_direct_F77=no
  15651. hardcode_minus_L_F77=no
  15652. hardcode_shlibpath_var_F77=unsupported
  15653. link_all_deplibs_F77=unknown
  15654. hardcode_automatic_F77=no
  15655. module_cmds_F77=
  15656. module_expsym_cmds_F77=
  15657. always_export_symbols_F77=no
  15658. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  15659. # include_expsyms should be a list of space-separated symbols to be *always*
  15660. # included in the symbol list
  15661. include_expsyms_F77=
  15662. # exclude_expsyms can be an extended regexp of symbols to exclude
  15663. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  15664. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  15665. # as well as any symbol that contains `d'.
  15666. exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  15667. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  15668. # platforms (ab)use it in PIC code, but their linkers get confused if
  15669. # the symbol is explicitly referenced. Since portable code cannot
  15670. # rely on this symbol name, it's probably fine to never include it in
  15671. # preloaded symbol tables.
  15672. # Exclude shared library initialization/finalization symbols.
  15673. extract_expsyms_cmds=
  15674. # Just being paranoid about ensuring that cc_basename is set.
  15675. for cc_temp in $compiler""; do
  15676. case $cc_temp in
  15677. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15678. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15679. \-*) ;;
  15680. *) break;;
  15681. esac
  15682. done
  15683. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  15684. case $host_os in
  15685. cygwin* | mingw* | pw32*)
  15686. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  15687. # When not using gcc, we currently assume that we are using
  15688. # Microsoft Visual C++.
  15689. if test "$GCC" != yes; then
  15690. with_gnu_ld=no
  15691. fi
  15692. ;;
  15693. interix*)
  15694. # we just hope/assume this is gcc and not c89 (= MSVC++)
  15695. with_gnu_ld=yes
  15696. ;;
  15697. openbsd*)
  15698. with_gnu_ld=no
  15699. ;;
  15700. esac
  15701. ld_shlibs_F77=yes
  15702. if test "$with_gnu_ld" = yes; then
  15703. # If archive_cmds runs LD, not CC, wlarc should be empty
  15704. wlarc='${wl}'
  15705. # Set some defaults for GNU ld with shared library support. These
  15706. # are reset later if shared libraries are not supported. Putting them
  15707. # here allows them to be overridden if necessary.
  15708. runpath_var=LD_RUN_PATH
  15709. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  15710. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  15711. # ancient GNU ld didn't support --whole-archive et. al.
  15712. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  15713. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  15714. else
  15715. whole_archive_flag_spec_F77=
  15716. fi
  15717. supports_anon_versioning=no
  15718. case `$LD -v 2>/dev/null` in
  15719. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  15720. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  15721. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  15722. *\ 2.11.*) ;; # other 2.11 versions
  15723. *) supports_anon_versioning=yes ;;
  15724. esac
  15725. # See if GNU ld supports shared libraries.
  15726. case $host_os in
  15727. aix[3-9]*)
  15728. # On AIX/PPC, the GNU linker is very broken
  15729. if test "$host_cpu" != ia64; then
  15730. ld_shlibs_F77=no
  15731. cat <<EOF 1>&2
  15732. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  15733. *** to be unable to reliably create shared libraries on AIX.
  15734. *** Therefore, libtool is disabling shared libraries support. If you
  15735. *** really care for shared libraries, you may want to modify your PATH
  15736. *** so that a non-GNU linker is found, and then restart.
  15737. EOF
  15738. fi
  15739. ;;
  15740. amigaos*)
  15741. 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)'
  15742. hardcode_libdir_flag_spec_F77='-L$libdir'
  15743. hardcode_minus_L_F77=yes
  15744. # Samuel A. Falvo II <[email protected]> reports
  15745. # that the semantics of dynamic libraries on AmigaOS, at least up
  15746. # to version 4, is to share data among multiple programs linked
  15747. # with the same dynamic library. Since this doesn't match the
  15748. # behavior of shared libraries on other platforms, we can't use
  15749. # them.
  15750. ld_shlibs_F77=no
  15751. ;;
  15752. beos*)
  15753. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15754. allow_undefined_flag_F77=unsupported
  15755. # Joseph Beckenbach <[email protected]> says some releases of gcc
  15756. # support --undefined. This deserves some investigation. FIXME
  15757. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15758. else
  15759. ld_shlibs_F77=no
  15760. fi
  15761. ;;
  15762. cygwin* | mingw* | pw32*)
  15763. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  15764. # as there is no search path for DLLs.
  15765. hardcode_libdir_flag_spec_F77='-L$libdir'
  15766. allow_undefined_flag_F77=unsupported
  15767. always_export_symbols_F77=no
  15768. enable_shared_with_static_runtimes_F77=yes
  15769. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  15770. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  15771. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15772. # If the export-symbols file already is a .def file (1st line
  15773. # is EXPORTS), use it as is; otherwise, prepend...
  15774. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  15775. cp $export_symbols $output_objdir/$soname.def;
  15776. else
  15777. echo EXPORTS > $output_objdir/$soname.def;
  15778. cat $export_symbols >> $output_objdir/$soname.def;
  15779. fi~
  15780. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15781. else
  15782. ld_shlibs_F77=no
  15783. fi
  15784. ;;
  15785. interix[3-9]*)
  15786. hardcode_direct_F77=no
  15787. hardcode_shlibpath_var_F77=no
  15788. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  15789. export_dynamic_flag_spec_F77='${wl}-E'
  15790. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  15791. # Instead, shared libraries are loaded at an image base (0x10000000 by
  15792. # default) and relocated if they conflict, which is a slow very memory
  15793. # consuming and fragmenting process. To avoid this, we pick a random,
  15794. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  15795. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  15796. archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  15797. archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  15798. ;;
  15799. gnu* | linux* | k*bsd*-gnu)
  15800. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15801. tmp_addflag=
  15802. case $cc_basename,$host_cpu in
  15803. pgcc*) # Portland Group C compiler
  15804. whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  15805. tmp_addflag=' $pic_flag'
  15806. ;;
  15807. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  15808. whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  15809. tmp_addflag=' $pic_flag -Mnomain' ;;
  15810. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  15811. tmp_addflag=' -i_dynamic' ;;
  15812. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  15813. tmp_addflag=' -i_dynamic -nofor_main' ;;
  15814. ifc* | ifort*) # Intel Fortran compiler
  15815. tmp_addflag=' -nofor_main' ;;
  15816. esac
  15817. case `$CC -V 2>&1 | sed 5q` in
  15818. *Sun\ C*) # Sun C 5.9
  15819. whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  15820. tmp_sharedflag='-G' ;;
  15821. *Sun\ F*) # Sun Fortran 8.3
  15822. tmp_sharedflag='-G' ;;
  15823. *)
  15824. tmp_sharedflag='-shared' ;;
  15825. esac
  15826. archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15827. if test $supports_anon_versioning = yes; then
  15828. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  15829. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  15830. $echo "local: *; };" >> $output_objdir/$libname.ver~
  15831. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  15832. fi
  15833. link_all_deplibs_F77=no
  15834. else
  15835. ld_shlibs_F77=no
  15836. fi
  15837. ;;
  15838. netbsd* | netbsdelf*-gnu)
  15839. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15840. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  15841. wlarc=
  15842. else
  15843. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15844. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15845. fi
  15846. ;;
  15847. solaris*)
  15848. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  15849. ld_shlibs_F77=no
  15850. cat <<EOF 1>&2
  15851. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  15852. *** create shared libraries on Solaris systems. Therefore, libtool
  15853. *** is disabling shared libraries support. We urge you to upgrade GNU
  15854. *** binutils to release 2.9.1 or newer. Another option is to modify
  15855. *** your PATH or compiler configuration so that the native linker is
  15856. *** used, and then restart.
  15857. EOF
  15858. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15859. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15860. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15861. else
  15862. ld_shlibs_F77=no
  15863. fi
  15864. ;;
  15865. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  15866. case `$LD -v 2>&1` in
  15867. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  15868. ld_shlibs_F77=no
  15869. cat <<_LT_EOF 1>&2
  15870. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  15871. *** reliably create shared libraries on SCO systems. Therefore, libtool
  15872. *** is disabling shared libraries support. We urge you to upgrade GNU
  15873. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  15874. *** your PATH or compiler configuration so that the native linker is
  15875. *** used, and then restart.
  15876. _LT_EOF
  15877. ;;
  15878. *)
  15879. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15880. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  15881. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  15882. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  15883. else
  15884. ld_shlibs_F77=no
  15885. fi
  15886. ;;
  15887. esac
  15888. ;;
  15889. sunos4*)
  15890. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15891. wlarc=
  15892. hardcode_direct_F77=yes
  15893. hardcode_shlibpath_var_F77=no
  15894. ;;
  15895. *)
  15896. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15897. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15898. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15899. else
  15900. ld_shlibs_F77=no
  15901. fi
  15902. ;;
  15903. esac
  15904. if test "$ld_shlibs_F77" = no; then
  15905. runpath_var=
  15906. hardcode_libdir_flag_spec_F77=
  15907. export_dynamic_flag_spec_F77=
  15908. whole_archive_flag_spec_F77=
  15909. fi
  15910. else
  15911. # PORTME fill in a description of your system's linker (not GNU ld)
  15912. case $host_os in
  15913. aix3*)
  15914. allow_undefined_flag_F77=unsupported
  15915. always_export_symbols_F77=yes
  15916. 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'
  15917. # Note: this linker hardcodes the directories in LIBPATH if there
  15918. # are no directories specified by -L.
  15919. hardcode_minus_L_F77=yes
  15920. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  15921. # Neither direct hardcoding nor static linking is supported with a
  15922. # broken collect2.
  15923. hardcode_direct_F77=unsupported
  15924. fi
  15925. ;;
  15926. aix[4-9]*)
  15927. if test "$host_cpu" = ia64; then
  15928. # On IA64, the linker does run time linking by default, so we don't
  15929. # have to do anything special.
  15930. aix_use_runtimelinking=no
  15931. exp_sym_flag='-Bexport'
  15932. no_entry_flag=""
  15933. else
  15934. # If we're using GNU nm, then we don't want the "-C" option.
  15935. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  15936. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  15937. 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'
  15938. else
  15939. 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'
  15940. fi
  15941. aix_use_runtimelinking=no
  15942. # Test if we are trying to use run time linking or normal
  15943. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  15944. # need to do runtime linking.
  15945. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  15946. for ld_flag in $LDFLAGS; do
  15947. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  15948. aix_use_runtimelinking=yes
  15949. break
  15950. fi
  15951. done
  15952. ;;
  15953. esac
  15954. exp_sym_flag='-bexport'
  15955. no_entry_flag='-bnoentry'
  15956. fi
  15957. # When large executables or shared objects are built, AIX ld can
  15958. # have problems creating the table of contents. If linking a library
  15959. # or program results in "error TOC overflow" add -mminimal-toc to
  15960. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  15961. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  15962. archive_cmds_F77=''
  15963. hardcode_direct_F77=yes
  15964. hardcode_libdir_separator_F77=':'
  15965. link_all_deplibs_F77=yes
  15966. if test "$GCC" = yes; then
  15967. case $host_os in aix4.[012]|aix4.[012].*)
  15968. # We only want to do this on AIX 4.2 and lower, the check
  15969. # below for broken collect2 doesn't work under 4.3+
  15970. collect2name=`${CC} -print-prog-name=collect2`
  15971. if test -f "$collect2name" && \
  15972. strings "$collect2name" | grep resolve_lib_name >/dev/null
  15973. then
  15974. # We have reworked collect2
  15975. :
  15976. else
  15977. # We have old collect2
  15978. hardcode_direct_F77=unsupported
  15979. # It fails to find uninstalled libraries when the uninstalled
  15980. # path is not listed in the libpath. Setting hardcode_minus_L
  15981. # to unsupported forces relinking
  15982. hardcode_minus_L_F77=yes
  15983. hardcode_libdir_flag_spec_F77='-L$libdir'
  15984. hardcode_libdir_separator_F77=
  15985. fi
  15986. ;;
  15987. esac
  15988. shared_flag='-shared'
  15989. if test "$aix_use_runtimelinking" = yes; then
  15990. shared_flag="$shared_flag "'${wl}-G'
  15991. fi
  15992. else
  15993. # not using gcc
  15994. if test "$host_cpu" = ia64; then
  15995. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  15996. # chokes on -Wl,-G. The following line is correct:
  15997. shared_flag='-G'
  15998. else
  15999. if test "$aix_use_runtimelinking" = yes; then
  16000. shared_flag='${wl}-G'
  16001. else
  16002. shared_flag='${wl}-bM:SRE'
  16003. fi
  16004. fi
  16005. fi
  16006. # It seems that -bexpall does not export symbols beginning with
  16007. # underscore (_), so it is better to generate a list of symbols to export.
  16008. always_export_symbols_F77=yes
  16009. if test "$aix_use_runtimelinking" = yes; then
  16010. # Warning - without using the other runtime loading flags (-brtl),
  16011. # -berok will link without error, but may produce a broken library.
  16012. allow_undefined_flag_F77='-berok'
  16013. # Determine the default libpath from the value encoded in an empty executable.
  16014. cat >conftest.$ac_ext <<_ACEOF
  16015. program main
  16016. end
  16017. _ACEOF
  16018. rm -f conftest.$ac_objext conftest$ac_exeext
  16019. if { (ac_try="$ac_link"
  16020. case "(($ac_try" in
  16021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16022. *) ac_try_echo=$ac_try;;
  16023. esac
  16024. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16025. (eval "$ac_link") 2>conftest.er1
  16026. ac_status=$?
  16027. grep -v '^ *+' conftest.er1 >conftest.err
  16028. rm -f conftest.er1
  16029. cat conftest.err >&5
  16030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16031. (exit $ac_status); } && {
  16032. test -z "$ac_f77_werror_flag" ||
  16033. test ! -s conftest.err
  16034. } && test -s conftest$ac_exeext &&
  16035. $as_test_x conftest$ac_exeext; then
  16036. lt_aix_libpath_sed='
  16037. /Import File Strings/,/^$/ {
  16038. /^0/ {
  16039. s/^0 *\(.*\)$/\1/
  16040. p
  16041. }
  16042. }'
  16043. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  16044. # Check for a 64-bit object if we didn't find anything.
  16045. if test -z "$aix_libpath"; then
  16046. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  16047. fi
  16048. else
  16049. echo "$as_me: failed program was:" >&5
  16050. sed 's/^/| /' conftest.$ac_ext >&5
  16051. fi
  16052. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16053. conftest$ac_exeext conftest.$ac_ext
  16054. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  16055. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  16056. archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  16057. else
  16058. if test "$host_cpu" = ia64; then
  16059. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  16060. allow_undefined_flag_F77="-z nodefs"
  16061. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  16062. else
  16063. # Determine the default libpath from the value encoded in an empty executable.
  16064. cat >conftest.$ac_ext <<_ACEOF
  16065. program main
  16066. end
  16067. _ACEOF
  16068. rm -f conftest.$ac_objext conftest$ac_exeext
  16069. if { (ac_try="$ac_link"
  16070. case "(($ac_try" in
  16071. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16072. *) ac_try_echo=$ac_try;;
  16073. esac
  16074. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16075. (eval "$ac_link") 2>conftest.er1
  16076. ac_status=$?
  16077. grep -v '^ *+' conftest.er1 >conftest.err
  16078. rm -f conftest.er1
  16079. cat conftest.err >&5
  16080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16081. (exit $ac_status); } && {
  16082. test -z "$ac_f77_werror_flag" ||
  16083. test ! -s conftest.err
  16084. } && test -s conftest$ac_exeext &&
  16085. $as_test_x conftest$ac_exeext; then
  16086. lt_aix_libpath_sed='
  16087. /Import File Strings/,/^$/ {
  16088. /^0/ {
  16089. s/^0 *\(.*\)$/\1/
  16090. p
  16091. }
  16092. }'
  16093. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  16094. # Check for a 64-bit object if we didn't find anything.
  16095. if test -z "$aix_libpath"; then
  16096. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  16097. fi
  16098. else
  16099. echo "$as_me: failed program was:" >&5
  16100. sed 's/^/| /' conftest.$ac_ext >&5
  16101. fi
  16102. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16103. conftest$ac_exeext conftest.$ac_ext
  16104. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  16105. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  16106. # Warning - without using the other run time loading flags,
  16107. # -berok will link without error, but may produce a broken library.
  16108. no_undefined_flag_F77=' ${wl}-bernotok'
  16109. allow_undefined_flag_F77=' ${wl}-berok'
  16110. # Exported symbols can be pulled into shared objects from archives
  16111. whole_archive_flag_spec_F77='$convenience'
  16112. archive_cmds_need_lc_F77=yes
  16113. # This is similar to how AIX traditionally builds its shared libraries.
  16114. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  16115. fi
  16116. fi
  16117. ;;
  16118. amigaos*)
  16119. 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)'
  16120. hardcode_libdir_flag_spec_F77='-L$libdir'
  16121. hardcode_minus_L_F77=yes
  16122. # see comment about different semantics on the GNU ld section
  16123. ld_shlibs_F77=no
  16124. ;;
  16125. bsdi[45]*)
  16126. export_dynamic_flag_spec_F77=-rdynamic
  16127. ;;
  16128. cygwin* | mingw* | pw32*)
  16129. # When not using gcc, we currently assume that we are using
  16130. # Microsoft Visual C++.
  16131. # hardcode_libdir_flag_spec is actually meaningless, as there is
  16132. # no search path for DLLs.
  16133. hardcode_libdir_flag_spec_F77=' '
  16134. allow_undefined_flag_F77=unsupported
  16135. # Tell ltmain to make .lib files, not .a files.
  16136. libext=lib
  16137. # Tell ltmain to make .dll files, not .so files.
  16138. shrext_cmds=".dll"
  16139. # FIXME: Setting linknames here is a bad hack.
  16140. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  16141. # The linker will automatically build a .lib file if we build a DLL.
  16142. old_archive_From_new_cmds_F77='true'
  16143. # FIXME: Should let the user specify the lib program.
  16144. old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
  16145. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  16146. enable_shared_with_static_runtimes_F77=yes
  16147. ;;
  16148. darwin* | rhapsody*)
  16149. case $host_os in
  16150. rhapsody* | darwin1.[012])
  16151. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  16152. ;;
  16153. *) # Darwin 1.3 on
  16154. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  16155. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  16156. else
  16157. case ${MACOSX_DEPLOYMENT_TARGET} in
  16158. 10.[012])
  16159. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  16160. ;;
  16161. 10.*)
  16162. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  16163. ;;
  16164. esac
  16165. fi
  16166. ;;
  16167. esac
  16168. archive_cmds_need_lc_F77=no
  16169. hardcode_direct_F77=no
  16170. hardcode_automatic_F77=yes
  16171. hardcode_shlibpath_var_F77=unsupported
  16172. whole_archive_flag_spec_F77=''
  16173. link_all_deplibs_F77=yes
  16174. if test "$GCC" = yes ; then
  16175. output_verbose_link_cmd='echo'
  16176. archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  16177. module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  16178. archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  16179. module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  16180. else
  16181. case $cc_basename in
  16182. xlc*)
  16183. output_verbose_link_cmd='echo'
  16184. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  16185. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  16186. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  16187. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  16188. 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}'
  16189. ;;
  16190. *)
  16191. ld_shlibs_F77=no
  16192. ;;
  16193. esac
  16194. fi
  16195. ;;
  16196. dgux*)
  16197. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16198. hardcode_libdir_flag_spec_F77='-L$libdir'
  16199. hardcode_shlibpath_var_F77=no
  16200. ;;
  16201. freebsd1*)
  16202. ld_shlibs_F77=no
  16203. ;;
  16204. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  16205. # support. Future versions do this automatically, but an explicit c++rt0.o
  16206. # does not break anything, and helps significantly (at the cost of a little
  16207. # extra space).
  16208. freebsd2.2*)
  16209. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  16210. hardcode_libdir_flag_spec_F77='-R$libdir'
  16211. hardcode_direct_F77=yes
  16212. hardcode_shlibpath_var_F77=no
  16213. ;;
  16214. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  16215. freebsd2*)
  16216. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  16217. hardcode_direct_F77=yes
  16218. hardcode_minus_L_F77=yes
  16219. hardcode_shlibpath_var_F77=no
  16220. ;;
  16221. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  16222. freebsd* | dragonfly*)
  16223. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  16224. hardcode_libdir_flag_spec_F77='-R$libdir'
  16225. hardcode_direct_F77=yes
  16226. hardcode_shlibpath_var_F77=no
  16227. ;;
  16228. hpux9*)
  16229. if test "$GCC" = yes; then
  16230. 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'
  16231. else
  16232. 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'
  16233. fi
  16234. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  16235. hardcode_libdir_separator_F77=:
  16236. hardcode_direct_F77=yes
  16237. # hardcode_minus_L: Not really in the search PATH,
  16238. # but as the default location of the library.
  16239. hardcode_minus_L_F77=yes
  16240. export_dynamic_flag_spec_F77='${wl}-E'
  16241. ;;
  16242. hpux10*)
  16243. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  16244. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  16245. else
  16246. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  16247. fi
  16248. if test "$with_gnu_ld" = no; then
  16249. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  16250. hardcode_libdir_separator_F77=:
  16251. hardcode_direct_F77=yes
  16252. export_dynamic_flag_spec_F77='${wl}-E'
  16253. # hardcode_minus_L: Not really in the search PATH,
  16254. # but as the default location of the library.
  16255. hardcode_minus_L_F77=yes
  16256. fi
  16257. ;;
  16258. hpux11*)
  16259. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  16260. case $host_cpu in
  16261. hppa*64*)
  16262. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16263. ;;
  16264. ia64*)
  16265. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  16266. ;;
  16267. *)
  16268. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  16269. ;;
  16270. esac
  16271. else
  16272. case $host_cpu in
  16273. hppa*64*)
  16274. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16275. ;;
  16276. ia64*)
  16277. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  16278. ;;
  16279. *)
  16280. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  16281. ;;
  16282. esac
  16283. fi
  16284. if test "$with_gnu_ld" = no; then
  16285. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  16286. hardcode_libdir_separator_F77=:
  16287. case $host_cpu in
  16288. hppa*64*|ia64*)
  16289. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  16290. hardcode_direct_F77=no
  16291. hardcode_shlibpath_var_F77=no
  16292. ;;
  16293. *)
  16294. hardcode_direct_F77=yes
  16295. export_dynamic_flag_spec_F77='${wl}-E'
  16296. # hardcode_minus_L: Not really in the search PATH,
  16297. # but as the default location of the library.
  16298. hardcode_minus_L_F77=yes
  16299. ;;
  16300. esac
  16301. fi
  16302. ;;
  16303. irix5* | irix6* | nonstopux*)
  16304. if test "$GCC" = yes; then
  16305. 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'
  16306. else
  16307. 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'
  16308. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  16309. fi
  16310. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  16311. hardcode_libdir_separator_F77=:
  16312. link_all_deplibs_F77=yes
  16313. ;;
  16314. netbsd* | netbsdelf*-gnu)
  16315. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16316. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  16317. else
  16318. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  16319. fi
  16320. hardcode_libdir_flag_spec_F77='-R$libdir'
  16321. hardcode_direct_F77=yes
  16322. hardcode_shlibpath_var_F77=no
  16323. ;;
  16324. newsos6)
  16325. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16326. hardcode_direct_F77=yes
  16327. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  16328. hardcode_libdir_separator_F77=:
  16329. hardcode_shlibpath_var_F77=no
  16330. ;;
  16331. openbsd*)
  16332. if test -f /usr/libexec/ld.so; then
  16333. hardcode_direct_F77=yes
  16334. hardcode_shlibpath_var_F77=no
  16335. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16336. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  16337. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  16338. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  16339. export_dynamic_flag_spec_F77='${wl}-E'
  16340. else
  16341. case $host_os in
  16342. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  16343. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  16344. hardcode_libdir_flag_spec_F77='-R$libdir'
  16345. ;;
  16346. *)
  16347. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  16348. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  16349. ;;
  16350. esac
  16351. fi
  16352. else
  16353. ld_shlibs_F77=no
  16354. fi
  16355. ;;
  16356. os2*)
  16357. hardcode_libdir_flag_spec_F77='-L$libdir'
  16358. hardcode_minus_L_F77=yes
  16359. allow_undefined_flag_F77=unsupported
  16360. 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'
  16361. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  16362. ;;
  16363. osf3*)
  16364. if test "$GCC" = yes; then
  16365. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  16366. 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'
  16367. else
  16368. allow_undefined_flag_F77=' -expect_unresolved \*'
  16369. 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'
  16370. fi
  16371. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  16372. hardcode_libdir_separator_F77=:
  16373. ;;
  16374. osf4* | osf5*) # as osf3* with the addition of -msym flag
  16375. if test "$GCC" = yes; then
  16376. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  16377. 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'
  16378. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  16379. else
  16380. allow_undefined_flag_F77=' -expect_unresolved \*'
  16381. 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'
  16382. 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~
  16383. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  16384. # Both c and cxx compiler support -rpath directly
  16385. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  16386. fi
  16387. hardcode_libdir_separator_F77=:
  16388. ;;
  16389. solaris*)
  16390. no_undefined_flag_F77=' -z text'
  16391. if test "$GCC" = yes; then
  16392. wlarc='${wl}'
  16393. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16394. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  16395. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  16396. else
  16397. wlarc=''
  16398. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16399. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  16400. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  16401. fi
  16402. hardcode_libdir_flag_spec_F77='-R$libdir'
  16403. hardcode_shlibpath_var_F77=no
  16404. case $host_os in
  16405. solaris2.[0-5] | solaris2.[0-5].*) ;;
  16406. *)
  16407. # The compiler driver will combine and reorder linker options,
  16408. # but understands `-z linker_flag'. GCC discards it without `$wl',
  16409. # but is careful enough not to reorder.
  16410. # Supported since Solaris 2.6 (maybe 2.5.1?)
  16411. if test "$GCC" = yes; then
  16412. whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  16413. else
  16414. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
  16415. fi
  16416. ;;
  16417. esac
  16418. link_all_deplibs_F77=yes
  16419. ;;
  16420. sunos4*)
  16421. if test "x$host_vendor" = xsequent; then
  16422. # Use $CC to link under sequent, because it throws in some extra .o
  16423. # files that make .init and .fini sections work.
  16424. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  16425. else
  16426. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  16427. fi
  16428. hardcode_libdir_flag_spec_F77='-L$libdir'
  16429. hardcode_direct_F77=yes
  16430. hardcode_minus_L_F77=yes
  16431. hardcode_shlibpath_var_F77=no
  16432. ;;
  16433. sysv4)
  16434. case $host_vendor in
  16435. sni)
  16436. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16437. hardcode_direct_F77=yes # is this really true???
  16438. ;;
  16439. siemens)
  16440. ## LD is ld it makes a PLAMLIB
  16441. ## CC just makes a GrossModule.
  16442. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  16443. reload_cmds_F77='$CC -r -o $output$reload_objs'
  16444. hardcode_direct_F77=no
  16445. ;;
  16446. motorola)
  16447. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16448. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  16449. ;;
  16450. esac
  16451. runpath_var='LD_RUN_PATH'
  16452. hardcode_shlibpath_var_F77=no
  16453. ;;
  16454. sysv4.3*)
  16455. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16456. hardcode_shlibpath_var_F77=no
  16457. export_dynamic_flag_spec_F77='-Bexport'
  16458. ;;
  16459. sysv4*MP*)
  16460. if test -d /usr/nec; then
  16461. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16462. hardcode_shlibpath_var_F77=no
  16463. runpath_var=LD_RUN_PATH
  16464. hardcode_runpath_var=yes
  16465. ld_shlibs_F77=yes
  16466. fi
  16467. ;;
  16468. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  16469. no_undefined_flag_F77='${wl}-z,text'
  16470. archive_cmds_need_lc_F77=no
  16471. hardcode_shlibpath_var_F77=no
  16472. runpath_var='LD_RUN_PATH'
  16473. if test "$GCC" = yes; then
  16474. archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16475. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16476. else
  16477. archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16478. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16479. fi
  16480. ;;
  16481. sysv5* | sco3.2v5* | sco5v6*)
  16482. # Note: We can NOT use -z defs as we might desire, because we do not
  16483. # link with -lc, and that would cause any symbols used from libc to
  16484. # always be unresolved, which means just about no library would
  16485. # ever link correctly. If we're not using GNU ld we use -z text
  16486. # though, which does catch some bad symbols but isn't as heavy-handed
  16487. # as -z defs.
  16488. no_undefined_flag_F77='${wl}-z,text'
  16489. allow_undefined_flag_F77='${wl}-z,nodefs'
  16490. archive_cmds_need_lc_F77=no
  16491. hardcode_shlibpath_var_F77=no
  16492. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  16493. hardcode_libdir_separator_F77=':'
  16494. link_all_deplibs_F77=yes
  16495. export_dynamic_flag_spec_F77='${wl}-Bexport'
  16496. runpath_var='LD_RUN_PATH'
  16497. if test "$GCC" = yes; then
  16498. archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16499. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16500. else
  16501. archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16502. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16503. fi
  16504. ;;
  16505. uts4*)
  16506. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16507. hardcode_libdir_flag_spec_F77='-L$libdir'
  16508. hardcode_shlibpath_var_F77=no
  16509. ;;
  16510. *)
  16511. ld_shlibs_F77=no
  16512. ;;
  16513. esac
  16514. fi
  16515. { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  16516. echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  16517. test "$ld_shlibs_F77" = no && can_build_shared=no
  16518. #
  16519. # Do we need to explicitly link libc?
  16520. #
  16521. case "x$archive_cmds_need_lc_F77" in
  16522. x|xyes)
  16523. # Assume -lc should be added
  16524. archive_cmds_need_lc_F77=yes
  16525. if test "$enable_shared" = yes && test "$GCC" = yes; then
  16526. case $archive_cmds_F77 in
  16527. *'~'*)
  16528. # FIXME: we may have to deal with multi-command sequences.
  16529. ;;
  16530. '$CC '*)
  16531. # Test whether the compiler implicitly links with -lc since on some
  16532. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  16533. # to ld, don't add -lc before -lgcc.
  16534. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  16535. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  16536. $rm conftest*
  16537. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  16538. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16539. (eval $ac_compile) 2>&5
  16540. ac_status=$?
  16541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16542. (exit $ac_status); } 2>conftest.err; then
  16543. soname=conftest
  16544. lib=conftest
  16545. libobjs=conftest.$ac_objext
  16546. deplibs=
  16547. wl=$lt_prog_compiler_wl_F77
  16548. pic_flag=$lt_prog_compiler_pic_F77
  16549. compiler_flags=-v
  16550. linker_flags=-v
  16551. verstring=
  16552. output_objdir=.
  16553. libname=conftest
  16554. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  16555. allow_undefined_flag_F77=
  16556. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  16557. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  16558. ac_status=$?
  16559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16560. (exit $ac_status); }
  16561. then
  16562. archive_cmds_need_lc_F77=no
  16563. else
  16564. archive_cmds_need_lc_F77=yes
  16565. fi
  16566. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  16567. else
  16568. cat conftest.err 1>&5
  16569. fi
  16570. $rm conftest*
  16571. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  16572. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  16573. ;;
  16574. esac
  16575. fi
  16576. ;;
  16577. esac
  16578. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  16579. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  16580. library_names_spec=
  16581. libname_spec='lib$name'
  16582. soname_spec=
  16583. shrext_cmds=".so"
  16584. postinstall_cmds=
  16585. postuninstall_cmds=
  16586. finish_cmds=
  16587. finish_eval=
  16588. shlibpath_var=
  16589. shlibpath_overrides_runpath=unknown
  16590. version_type=none
  16591. dynamic_linker="$host_os ld.so"
  16592. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  16593. need_lib_prefix=unknown
  16594. hardcode_into_libs=no
  16595. # when you set need_version to no, make sure it does not cause -set_version
  16596. # flags to be left without arguments
  16597. need_version=unknown
  16598. case $host_os in
  16599. aix3*)
  16600. version_type=linux
  16601. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  16602. shlibpath_var=LIBPATH
  16603. # AIX 3 has no versioning support, so we append a major version to the name.
  16604. soname_spec='${libname}${release}${shared_ext}$major'
  16605. ;;
  16606. aix[4-9]*)
  16607. version_type=linux
  16608. need_lib_prefix=no
  16609. need_version=no
  16610. hardcode_into_libs=yes
  16611. if test "$host_cpu" = ia64; then
  16612. # AIX 5 supports IA64
  16613. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  16614. shlibpath_var=LD_LIBRARY_PATH
  16615. else
  16616. # With GCC up to 2.95.x, collect2 would create an import file
  16617. # for dependence libraries. The import file would start with
  16618. # the line `#! .'. This would cause the generated library to
  16619. # depend on `.', always an invalid library. This was fixed in
  16620. # development snapshots of GCC prior to 3.0.
  16621. case $host_os in
  16622. aix4 | aix4.[01] | aix4.[01].*)
  16623. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  16624. echo ' yes '
  16625. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  16626. :
  16627. else
  16628. can_build_shared=no
  16629. fi
  16630. ;;
  16631. esac
  16632. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  16633. # soname into executable. Probably we can add versioning support to
  16634. # collect2, so additional links can be useful in future.
  16635. if test "$aix_use_runtimelinking" = yes; then
  16636. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  16637. # instead of lib<name>.a to let people know that these are not
  16638. # typical AIX shared libraries.
  16639. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16640. else
  16641. # We preserve .a as extension for shared libraries through AIX4.2
  16642. # and later when we are not doing run time linking.
  16643. library_names_spec='${libname}${release}.a $libname.a'
  16644. soname_spec='${libname}${release}${shared_ext}$major'
  16645. fi
  16646. shlibpath_var=LIBPATH
  16647. fi
  16648. ;;
  16649. amigaos*)
  16650. library_names_spec='$libname.ixlibrary $libname.a'
  16651. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  16652. 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'
  16653. ;;
  16654. beos*)
  16655. library_names_spec='${libname}${shared_ext}'
  16656. dynamic_linker="$host_os ld.so"
  16657. shlibpath_var=LIBRARY_PATH
  16658. ;;
  16659. bsdi[45]*)
  16660. version_type=linux
  16661. need_version=no
  16662. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16663. soname_spec='${libname}${release}${shared_ext}$major'
  16664. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  16665. shlibpath_var=LD_LIBRARY_PATH
  16666. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  16667. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  16668. # the default ld.so.conf also contains /usr/contrib/lib and
  16669. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  16670. # libtool to hard-code these into programs
  16671. ;;
  16672. cygwin* | mingw* | pw32*)
  16673. version_type=windows
  16674. shrext_cmds=".dll"
  16675. need_version=no
  16676. need_lib_prefix=no
  16677. case $GCC,$host_os in
  16678. yes,cygwin* | yes,mingw* | yes,pw32*)
  16679. library_names_spec='$libname.dll.a'
  16680. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  16681. postinstall_cmds='base_file=`basename \${file}`~
  16682. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  16683. dldir=$destdir/`dirname \$dlpath`~
  16684. test -d \$dldir || mkdir -p \$dldir~
  16685. $install_prog $dir/$dlname \$dldir/$dlname~
  16686. chmod a+x \$dldir/$dlname'
  16687. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  16688. dlpath=$dir/\$dldll~
  16689. $rm \$dlpath'
  16690. shlibpath_overrides_runpath=yes
  16691. case $host_os in
  16692. cygwin*)
  16693. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  16694. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16695. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  16696. ;;
  16697. mingw*)
  16698. # MinGW DLLs use traditional 'lib' prefix
  16699. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16700. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16701. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  16702. # It is most probably a Windows format PATH printed by
  16703. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  16704. # path with ; separators, and with drive letters. We can handle the
  16705. # drive letters (cygwin fileutils understands them), so leave them,
  16706. # especially as we might pass files found there to a mingw objdump,
  16707. # which wouldn't understand a cygwinified path. Ahh.
  16708. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16709. else
  16710. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16711. fi
  16712. ;;
  16713. pw32*)
  16714. # pw32 DLLs use 'pw' prefix rather than 'lib'
  16715. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16716. ;;
  16717. esac
  16718. ;;
  16719. *)
  16720. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  16721. ;;
  16722. esac
  16723. dynamic_linker='Win32 ld.exe'
  16724. # FIXME: first we should search . and the directory the executable is in
  16725. shlibpath_var=PATH
  16726. ;;
  16727. darwin* | rhapsody*)
  16728. dynamic_linker="$host_os dyld"
  16729. version_type=darwin
  16730. need_lib_prefix=no
  16731. need_version=no
  16732. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  16733. soname_spec='${libname}${release}${major}$shared_ext'
  16734. shlibpath_overrides_runpath=yes
  16735. shlibpath_var=DYLD_LIBRARY_PATH
  16736. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  16737. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  16738. ;;
  16739. dgux*)
  16740. version_type=linux
  16741. need_lib_prefix=no
  16742. need_version=no
  16743. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  16744. soname_spec='${libname}${release}${shared_ext}$major'
  16745. shlibpath_var=LD_LIBRARY_PATH
  16746. ;;
  16747. freebsd1*)
  16748. dynamic_linker=no
  16749. ;;
  16750. freebsd* | dragonfly*)
  16751. # DragonFly does not have aout. When/if they implement a new
  16752. # versioning mechanism, adjust this.
  16753. if test -x /usr/bin/objformat; then
  16754. objformat=`/usr/bin/objformat`
  16755. else
  16756. case $host_os in
  16757. freebsd[123]*) objformat=aout ;;
  16758. *) objformat=elf ;;
  16759. esac
  16760. fi
  16761. version_type=freebsd-$objformat
  16762. case $version_type in
  16763. freebsd-elf*)
  16764. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16765. need_version=no
  16766. need_lib_prefix=no
  16767. ;;
  16768. freebsd-*)
  16769. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  16770. need_version=yes
  16771. ;;
  16772. esac
  16773. shlibpath_var=LD_LIBRARY_PATH
  16774. case $host_os in
  16775. freebsd2*)
  16776. shlibpath_overrides_runpath=yes
  16777. ;;
  16778. freebsd3.[01]* | freebsdelf3.[01]*)
  16779. shlibpath_overrides_runpath=yes
  16780. hardcode_into_libs=yes
  16781. ;;
  16782. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  16783. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  16784. shlibpath_overrides_runpath=no
  16785. hardcode_into_libs=yes
  16786. ;;
  16787. *) # from 4.6 on, and DragonFly
  16788. shlibpath_overrides_runpath=yes
  16789. hardcode_into_libs=yes
  16790. ;;
  16791. esac
  16792. ;;
  16793. gnu*)
  16794. version_type=linux
  16795. need_lib_prefix=no
  16796. need_version=no
  16797. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  16798. soname_spec='${libname}${release}${shared_ext}$major'
  16799. shlibpath_var=LD_LIBRARY_PATH
  16800. hardcode_into_libs=yes
  16801. ;;
  16802. hpux9* | hpux10* | hpux11*)
  16803. # Give a soname corresponding to the major version so that dld.sl refuses to
  16804. # link against other versions.
  16805. version_type=sunos
  16806. need_lib_prefix=no
  16807. need_version=no
  16808. case $host_cpu in
  16809. ia64*)
  16810. shrext_cmds='.so'
  16811. hardcode_into_libs=yes
  16812. dynamic_linker="$host_os dld.so"
  16813. shlibpath_var=LD_LIBRARY_PATH
  16814. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16815. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16816. soname_spec='${libname}${release}${shared_ext}$major'
  16817. if test "X$HPUX_IA64_MODE" = X32; then
  16818. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  16819. else
  16820. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  16821. fi
  16822. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16823. ;;
  16824. hppa*64*)
  16825. shrext_cmds='.sl'
  16826. hardcode_into_libs=yes
  16827. dynamic_linker="$host_os dld.sl"
  16828. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  16829. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16830. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16831. soname_spec='${libname}${release}${shared_ext}$major'
  16832. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  16833. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16834. ;;
  16835. *)
  16836. shrext_cmds='.sl'
  16837. dynamic_linker="$host_os dld.sl"
  16838. shlibpath_var=SHLIB_PATH
  16839. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  16840. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16841. soname_spec='${libname}${release}${shared_ext}$major'
  16842. ;;
  16843. esac
  16844. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  16845. postinstall_cmds='chmod 555 $lib'
  16846. ;;
  16847. interix[3-9]*)
  16848. version_type=linux
  16849. need_lib_prefix=no
  16850. need_version=no
  16851. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16852. soname_spec='${libname}${release}${shared_ext}$major'
  16853. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  16854. shlibpath_var=LD_LIBRARY_PATH
  16855. shlibpath_overrides_runpath=no
  16856. hardcode_into_libs=yes
  16857. ;;
  16858. irix5* | irix6* | nonstopux*)
  16859. case $host_os in
  16860. nonstopux*) version_type=nonstopux ;;
  16861. *)
  16862. if test "$lt_cv_prog_gnu_ld" = yes; then
  16863. version_type=linux
  16864. else
  16865. version_type=irix
  16866. fi ;;
  16867. esac
  16868. need_lib_prefix=no
  16869. need_version=no
  16870. soname_spec='${libname}${release}${shared_ext}$major'
  16871. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  16872. case $host_os in
  16873. irix5* | nonstopux*)
  16874. libsuff= shlibsuff=
  16875. ;;
  16876. *)
  16877. case $LD in # libtool.m4 will add one of these switches to LD
  16878. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  16879. libsuff= shlibsuff= libmagic=32-bit;;
  16880. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  16881. libsuff=32 shlibsuff=N32 libmagic=N32;;
  16882. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  16883. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  16884. *) libsuff= shlibsuff= libmagic=never-match;;
  16885. esac
  16886. ;;
  16887. esac
  16888. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  16889. shlibpath_overrides_runpath=no
  16890. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  16891. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  16892. hardcode_into_libs=yes
  16893. ;;
  16894. # No shared lib support for Linux oldld, aout, or coff.
  16895. linux*oldld* | linux*aout* | linux*coff*)
  16896. dynamic_linker=no
  16897. ;;
  16898. # This must be Linux ELF.
  16899. linux* | k*bsd*-gnu)
  16900. version_type=linux
  16901. need_lib_prefix=no
  16902. need_version=no
  16903. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16904. soname_spec='${libname}${release}${shared_ext}$major'
  16905. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  16906. shlibpath_var=LD_LIBRARY_PATH
  16907. shlibpath_overrides_runpath=no
  16908. # This implies no fast_install, which is unacceptable.
  16909. # Some rework will be needed to allow for fast_install
  16910. # before this can be enabled.
  16911. hardcode_into_libs=yes
  16912. # Append ld.so.conf contents to the search path
  16913. if test -f /etc/ld.so.conf; then
  16914. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  16915. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  16916. fi
  16917. # We used to test for /lib/ld.so.1 and disable shared libraries on
  16918. # powerpc, because MkLinux only supported shared libraries with the
  16919. # GNU dynamic linker. Since this was broken with cross compilers,
  16920. # most powerpc-linux boxes support dynamic linking these days and
  16921. # people can always --disable-shared, the test was removed, and we
  16922. # assume the GNU/Linux dynamic linker is in use.
  16923. dynamic_linker='GNU/Linux ld.so'
  16924. ;;
  16925. netbsdelf*-gnu)
  16926. version_type=linux
  16927. need_lib_prefix=no
  16928. need_version=no
  16929. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16930. soname_spec='${libname}${release}${shared_ext}$major'
  16931. shlibpath_var=LD_LIBRARY_PATH
  16932. shlibpath_overrides_runpath=no
  16933. hardcode_into_libs=yes
  16934. dynamic_linker='NetBSD ld.elf_so'
  16935. ;;
  16936. netbsd*)
  16937. version_type=sunos
  16938. need_lib_prefix=no
  16939. need_version=no
  16940. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16941. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16942. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16943. dynamic_linker='NetBSD (a.out) ld.so'
  16944. else
  16945. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16946. soname_spec='${libname}${release}${shared_ext}$major'
  16947. dynamic_linker='NetBSD ld.elf_so'
  16948. fi
  16949. shlibpath_var=LD_LIBRARY_PATH
  16950. shlibpath_overrides_runpath=yes
  16951. hardcode_into_libs=yes
  16952. ;;
  16953. newsos6)
  16954. version_type=linux
  16955. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16956. shlibpath_var=LD_LIBRARY_PATH
  16957. shlibpath_overrides_runpath=yes
  16958. ;;
  16959. nto-qnx*)
  16960. version_type=linux
  16961. need_lib_prefix=no
  16962. need_version=no
  16963. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16964. soname_spec='${libname}${release}${shared_ext}$major'
  16965. shlibpath_var=LD_LIBRARY_PATH
  16966. shlibpath_overrides_runpath=yes
  16967. ;;
  16968. openbsd*)
  16969. version_type=sunos
  16970. sys_lib_dlsearch_path_spec="/usr/lib"
  16971. need_lib_prefix=no
  16972. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  16973. case $host_os in
  16974. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  16975. *) need_version=no ;;
  16976. esac
  16977. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16978. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16979. shlibpath_var=LD_LIBRARY_PATH
  16980. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16981. case $host_os in
  16982. openbsd2.[89] | openbsd2.[89].*)
  16983. shlibpath_overrides_runpath=no
  16984. ;;
  16985. *)
  16986. shlibpath_overrides_runpath=yes
  16987. ;;
  16988. esac
  16989. else
  16990. shlibpath_overrides_runpath=yes
  16991. fi
  16992. ;;
  16993. os2*)
  16994. libname_spec='$name'
  16995. shrext_cmds=".dll"
  16996. need_lib_prefix=no
  16997. library_names_spec='$libname${shared_ext} $libname.a'
  16998. dynamic_linker='OS/2 ld.exe'
  16999. shlibpath_var=LIBPATH
  17000. ;;
  17001. osf3* | osf4* | osf5*)
  17002. version_type=osf
  17003. need_lib_prefix=no
  17004. need_version=no
  17005. soname_spec='${libname}${release}${shared_ext}$major'
  17006. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17007. shlibpath_var=LD_LIBRARY_PATH
  17008. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  17009. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  17010. ;;
  17011. rdos*)
  17012. dynamic_linker=no
  17013. ;;
  17014. solaris*)
  17015. version_type=linux
  17016. need_lib_prefix=no
  17017. need_version=no
  17018. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17019. soname_spec='${libname}${release}${shared_ext}$major'
  17020. shlibpath_var=LD_LIBRARY_PATH
  17021. shlibpath_overrides_runpath=yes
  17022. hardcode_into_libs=yes
  17023. # ldd complains unless libraries are executable
  17024. postinstall_cmds='chmod +x $lib'
  17025. ;;
  17026. sunos4*)
  17027. version_type=sunos
  17028. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  17029. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  17030. shlibpath_var=LD_LIBRARY_PATH
  17031. shlibpath_overrides_runpath=yes
  17032. if test "$with_gnu_ld" = yes; then
  17033. need_lib_prefix=no
  17034. fi
  17035. need_version=yes
  17036. ;;
  17037. sysv4 | sysv4.3*)
  17038. version_type=linux
  17039. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17040. soname_spec='${libname}${release}${shared_ext}$major'
  17041. shlibpath_var=LD_LIBRARY_PATH
  17042. case $host_vendor in
  17043. sni)
  17044. shlibpath_overrides_runpath=no
  17045. need_lib_prefix=no
  17046. export_dynamic_flag_spec='${wl}-Blargedynsym'
  17047. runpath_var=LD_RUN_PATH
  17048. ;;
  17049. siemens)
  17050. need_lib_prefix=no
  17051. ;;
  17052. motorola)
  17053. need_lib_prefix=no
  17054. need_version=no
  17055. shlibpath_overrides_runpath=no
  17056. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  17057. ;;
  17058. esac
  17059. ;;
  17060. sysv4*MP*)
  17061. if test -d /usr/nec ;then
  17062. version_type=linux
  17063. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  17064. soname_spec='$libname${shared_ext}.$major'
  17065. shlibpath_var=LD_LIBRARY_PATH
  17066. fi
  17067. ;;
  17068. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  17069. version_type=freebsd-elf
  17070. need_lib_prefix=no
  17071. need_version=no
  17072. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  17073. soname_spec='${libname}${release}${shared_ext}$major'
  17074. shlibpath_var=LD_LIBRARY_PATH
  17075. hardcode_into_libs=yes
  17076. if test "$with_gnu_ld" = yes; then
  17077. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  17078. shlibpath_overrides_runpath=no
  17079. else
  17080. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  17081. shlibpath_overrides_runpath=yes
  17082. case $host_os in
  17083. sco3.2v5*)
  17084. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  17085. ;;
  17086. esac
  17087. fi
  17088. sys_lib_dlsearch_path_spec='/usr/lib'
  17089. ;;
  17090. uts4*)
  17091. version_type=linux
  17092. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17093. soname_spec='${libname}${release}${shared_ext}$major'
  17094. shlibpath_var=LD_LIBRARY_PATH
  17095. ;;
  17096. *)
  17097. dynamic_linker=no
  17098. ;;
  17099. esac
  17100. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  17101. echo "${ECHO_T}$dynamic_linker" >&6; }
  17102. test "$dynamic_linker" = no && can_build_shared=no
  17103. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  17104. echo $ECHO_N "(cached) $ECHO_C" >&6
  17105. else
  17106. lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  17107. fi
  17108. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  17109. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  17110. echo $ECHO_N "(cached) $ECHO_C" >&6
  17111. else
  17112. lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  17113. fi
  17114. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  17115. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  17116. if test "$GCC" = yes; then
  17117. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  17118. fi
  17119. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  17120. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  17121. hardcode_action_F77=
  17122. if test -n "$hardcode_libdir_flag_spec_F77" || \
  17123. test -n "$runpath_var_F77" || \
  17124. test "X$hardcode_automatic_F77" = "Xyes" ; then
  17125. # We can hardcode non-existant directories.
  17126. if test "$hardcode_direct_F77" != no &&
  17127. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  17128. # have to relink, otherwise we might link with an installed library
  17129. # when we should be linking with a yet-to-be-installed one
  17130. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  17131. test "$hardcode_minus_L_F77" != no; then
  17132. # Linking always hardcodes the temporary library directory.
  17133. hardcode_action_F77=relink
  17134. else
  17135. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  17136. hardcode_action_F77=immediate
  17137. fi
  17138. else
  17139. # We cannot hardcode anything, or else we can only hardcode existing
  17140. # directories.
  17141. hardcode_action_F77=unsupported
  17142. fi
  17143. { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  17144. echo "${ECHO_T}$hardcode_action_F77" >&6; }
  17145. if test "$hardcode_action_F77" = relink; then
  17146. # Fast installation is not supported
  17147. enable_fast_install=no
  17148. elif test "$shlibpath_overrides_runpath" = yes ||
  17149. test "$enable_shared" = no; then
  17150. # Fast installation is not necessary
  17151. enable_fast_install=needless
  17152. fi
  17153. # The else clause should only fire when bootstrapping the
  17154. # libtool distribution, otherwise you forgot to ship ltmain.sh
  17155. # with your package, and you will get complaints that there are
  17156. # no rules to generate ltmain.sh.
  17157. if test -f "$ltmain"; then
  17158. # See if we are running on zsh, and set the options which allow our commands through
  17159. # without removal of \ escapes.
  17160. if test -n "${ZSH_VERSION+set}" ; then
  17161. setopt NO_GLOB_SUBST
  17162. fi
  17163. # Now quote all the things that may contain metacharacters while being
  17164. # careful not to overquote the AC_SUBSTed values. We take copies of the
  17165. # variables and quote the copies for generation of the libtool script.
  17166. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  17167. SED SHELL STRIP \
  17168. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  17169. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  17170. deplibs_check_method reload_flag reload_cmds need_locks \
  17171. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  17172. lt_cv_sys_global_symbol_to_c_name_address \
  17173. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  17174. old_postinstall_cmds old_postuninstall_cmds \
  17175. compiler_F77 \
  17176. CC_F77 \
  17177. LD_F77 \
  17178. lt_prog_compiler_wl_F77 \
  17179. lt_prog_compiler_pic_F77 \
  17180. lt_prog_compiler_static_F77 \
  17181. lt_prog_compiler_no_builtin_flag_F77 \
  17182. export_dynamic_flag_spec_F77 \
  17183. thread_safe_flag_spec_F77 \
  17184. whole_archive_flag_spec_F77 \
  17185. enable_shared_with_static_runtimes_F77 \
  17186. old_archive_cmds_F77 \
  17187. old_archive_from_new_cmds_F77 \
  17188. predep_objects_F77 \
  17189. postdep_objects_F77 \
  17190. predeps_F77 \
  17191. postdeps_F77 \
  17192. compiler_lib_search_path_F77 \
  17193. compiler_lib_search_dirs_F77 \
  17194. archive_cmds_F77 \
  17195. archive_expsym_cmds_F77 \
  17196. postinstall_cmds_F77 \
  17197. postuninstall_cmds_F77 \
  17198. old_archive_from_expsyms_cmds_F77 \
  17199. allow_undefined_flag_F77 \
  17200. no_undefined_flag_F77 \
  17201. export_symbols_cmds_F77 \
  17202. hardcode_libdir_flag_spec_F77 \
  17203. hardcode_libdir_flag_spec_ld_F77 \
  17204. hardcode_libdir_separator_F77 \
  17205. hardcode_automatic_F77 \
  17206. module_cmds_F77 \
  17207. module_expsym_cmds_F77 \
  17208. lt_cv_prog_compiler_c_o_F77 \
  17209. fix_srcfile_path_F77 \
  17210. exclude_expsyms_F77 \
  17211. include_expsyms_F77; do
  17212. case $var in
  17213. old_archive_cmds_F77 | \
  17214. old_archive_from_new_cmds_F77 | \
  17215. archive_cmds_F77 | \
  17216. archive_expsym_cmds_F77 | \
  17217. module_cmds_F77 | \
  17218. module_expsym_cmds_F77 | \
  17219. old_archive_from_expsyms_cmds_F77 | \
  17220. export_symbols_cmds_F77 | \
  17221. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  17222. postinstall_cmds | postuninstall_cmds | \
  17223. old_postinstall_cmds | old_postuninstall_cmds | \
  17224. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  17225. # Double-quote double-evaled strings.
  17226. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  17227. ;;
  17228. *)
  17229. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  17230. ;;
  17231. esac
  17232. done
  17233. case $lt_echo in
  17234. *'\$0 --fallback-echo"')
  17235. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  17236. ;;
  17237. esac
  17238. cfgfile="$ofile"
  17239. cat <<__EOF__ >> "$cfgfile"
  17240. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  17241. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17242. # Shell to use when invoking shell scripts.
  17243. SHELL=$lt_SHELL
  17244. # Whether or not to build shared libraries.
  17245. build_libtool_libs=$enable_shared
  17246. # Whether or not to build static libraries.
  17247. build_old_libs=$enable_static
  17248. # Whether or not to add -lc for building shared libraries.
  17249. build_libtool_need_lc=$archive_cmds_need_lc_F77
  17250. # Whether or not to disallow shared libs when runtime libs are static
  17251. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  17252. # Whether or not to optimize for fast installation.
  17253. fast_install=$enable_fast_install
  17254. # The host system.
  17255. host_alias=$host_alias
  17256. host=$host
  17257. host_os=$host_os
  17258. # The build system.
  17259. build_alias=$build_alias
  17260. build=$build
  17261. build_os=$build_os
  17262. # An echo program that does not interpret backslashes.
  17263. echo=$lt_echo
  17264. # The archiver.
  17265. AR=$lt_AR
  17266. AR_FLAGS=$lt_AR_FLAGS
  17267. # A C compiler.
  17268. LTCC=$lt_LTCC
  17269. # LTCC compiler flags.
  17270. LTCFLAGS=$lt_LTCFLAGS
  17271. # A language-specific compiler.
  17272. CC=$lt_compiler_F77
  17273. # Is the compiler the GNU C compiler?
  17274. with_gcc=$GCC_F77
  17275. # An ERE matcher.
  17276. EGREP=$lt_EGREP
  17277. # The linker used to build libraries.
  17278. LD=$lt_LD_F77
  17279. # Whether we need hard or soft links.
  17280. LN_S=$lt_LN_S
  17281. # A BSD-compatible nm program.
  17282. NM=$lt_NM
  17283. # A symbol stripping program
  17284. STRIP=$lt_STRIP
  17285. # Used to examine libraries when file_magic_cmd begins "file"
  17286. MAGIC_CMD=$MAGIC_CMD
  17287. # Used on cygwin: DLL creation program.
  17288. DLLTOOL="$DLLTOOL"
  17289. # Used on cygwin: object dumper.
  17290. OBJDUMP="$OBJDUMP"
  17291. # Used on cygwin: assembler.
  17292. AS="$AS"
  17293. # The name of the directory that contains temporary libtool files.
  17294. objdir=$objdir
  17295. # How to create reloadable object files.
  17296. reload_flag=$lt_reload_flag
  17297. reload_cmds=$lt_reload_cmds
  17298. # How to pass a linker flag through the compiler.
  17299. wl=$lt_lt_prog_compiler_wl_F77
  17300. # Object file suffix (normally "o").
  17301. objext="$ac_objext"
  17302. # Old archive suffix (normally "a").
  17303. libext="$libext"
  17304. # Shared library suffix (normally ".so").
  17305. shrext_cmds='$shrext_cmds'
  17306. # Executable file suffix (normally "").
  17307. exeext="$exeext"
  17308. # Additional compiler flags for building library objects.
  17309. pic_flag=$lt_lt_prog_compiler_pic_F77
  17310. pic_mode=$pic_mode
  17311. # What is the maximum length of a command?
  17312. max_cmd_len=$lt_cv_sys_max_cmd_len
  17313. # Does compiler simultaneously support -c and -o options?
  17314. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  17315. # Must we lock files when doing compilation?
  17316. need_locks=$lt_need_locks
  17317. # Do we need the lib prefix for modules?
  17318. need_lib_prefix=$need_lib_prefix
  17319. # Do we need a version for libraries?
  17320. need_version=$need_version
  17321. # Whether dlopen is supported.
  17322. dlopen_support=$enable_dlopen
  17323. # Whether dlopen of programs is supported.
  17324. dlopen_self=$enable_dlopen_self
  17325. # Whether dlopen of statically linked programs is supported.
  17326. dlopen_self_static=$enable_dlopen_self_static
  17327. # Compiler flag to prevent dynamic linking.
  17328. link_static_flag=$lt_lt_prog_compiler_static_F77
  17329. # Compiler flag to turn off builtin functions.
  17330. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  17331. # Compiler flag to allow reflexive dlopens.
  17332. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  17333. # Compiler flag to generate shared objects directly from archives.
  17334. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  17335. # Compiler flag to generate thread-safe objects.
  17336. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  17337. # Library versioning type.
  17338. version_type=$version_type
  17339. # Format of library name prefix.
  17340. libname_spec=$lt_libname_spec
  17341. # List of archive names. First name is the real one, the rest are links.
  17342. # The last name is the one that the linker finds with -lNAME.
  17343. library_names_spec=$lt_library_names_spec
  17344. # The coded name of the library, if different from the real name.
  17345. soname_spec=$lt_soname_spec
  17346. # Commands used to build and install an old-style archive.
  17347. RANLIB=$lt_RANLIB
  17348. old_archive_cmds=$lt_old_archive_cmds_F77
  17349. old_postinstall_cmds=$lt_old_postinstall_cmds
  17350. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17351. # Create an old-style archive from a shared archive.
  17352. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  17353. # Create a temporary old-style archive to link instead of a shared archive.
  17354. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  17355. # Commands used to build and install a shared archive.
  17356. archive_cmds=$lt_archive_cmds_F77
  17357. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  17358. postinstall_cmds=$lt_postinstall_cmds
  17359. postuninstall_cmds=$lt_postuninstall_cmds
  17360. # Commands used to build a loadable module (assumed same as above if empty)
  17361. module_cmds=$lt_module_cmds_F77
  17362. module_expsym_cmds=$lt_module_expsym_cmds_F77
  17363. # Commands to strip libraries.
  17364. old_striplib=$lt_old_striplib
  17365. striplib=$lt_striplib
  17366. # Dependencies to place before the objects being linked to create a
  17367. # shared library.
  17368. predep_objects=$lt_predep_objects_F77
  17369. # Dependencies to place after the objects being linked to create a
  17370. # shared library.
  17371. postdep_objects=$lt_postdep_objects_F77
  17372. # Dependencies to place before the objects being linked to create a
  17373. # shared library.
  17374. predeps=$lt_predeps_F77
  17375. # Dependencies to place after the objects being linked to create a
  17376. # shared library.
  17377. postdeps=$lt_postdeps_F77
  17378. # The directories searched by this compiler when creating a shared
  17379. # library
  17380. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
  17381. # The library search path used internally by the compiler when linking
  17382. # a shared library.
  17383. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  17384. # Method to check whether dependent libraries are shared objects.
  17385. deplibs_check_method=$lt_deplibs_check_method
  17386. # Command to use when deplibs_check_method == file_magic.
  17387. file_magic_cmd=$lt_file_magic_cmd
  17388. # Flag that allows shared libraries with undefined symbols to be built.
  17389. allow_undefined_flag=$lt_allow_undefined_flag_F77
  17390. # Flag that forces no undefined symbols.
  17391. no_undefined_flag=$lt_no_undefined_flag_F77
  17392. # Commands used to finish a libtool library installation in a directory.
  17393. finish_cmds=$lt_finish_cmds
  17394. # Same as above, but a single script fragment to be evaled but not shown.
  17395. finish_eval=$lt_finish_eval
  17396. # Take the output of nm and produce a listing of raw symbols and C names.
  17397. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17398. # Transform the output of nm in a proper C declaration
  17399. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17400. # Transform the output of nm in a C name address pair
  17401. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17402. # This is the shared library runtime path variable.
  17403. runpath_var=$runpath_var
  17404. # This is the shared library path variable.
  17405. shlibpath_var=$shlibpath_var
  17406. # Is shlibpath searched before the hard-coded library search path?
  17407. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17408. # How to hardcode a shared library path into an executable.
  17409. hardcode_action=$hardcode_action_F77
  17410. # Whether we should hardcode library paths into libraries.
  17411. hardcode_into_libs=$hardcode_into_libs
  17412. # Flag to hardcode \$libdir into a binary during linking.
  17413. # This must work even if \$libdir does not exist.
  17414. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  17415. # If ld is used when linking, flag to hardcode \$libdir into
  17416. # a binary during linking. This must work even if \$libdir does
  17417. # not exist.
  17418. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  17419. # Whether we need a single -rpath flag with a separated argument.
  17420. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  17421. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  17422. # resulting binary.
  17423. hardcode_direct=$hardcode_direct_F77
  17424. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  17425. # resulting binary.
  17426. hardcode_minus_L=$hardcode_minus_L_F77
  17427. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  17428. # the resulting binary.
  17429. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  17430. # Set to yes if building a shared library automatically hardcodes DIR into the library
  17431. # and all subsequent libraries and executables linked against it.
  17432. hardcode_automatic=$hardcode_automatic_F77
  17433. # Variables whose values should be saved in libtool wrapper scripts and
  17434. # restored at relink time.
  17435. variables_saved_for_relink="$variables_saved_for_relink"
  17436. # Whether libtool must link a program against all its dependency libraries.
  17437. link_all_deplibs=$link_all_deplibs_F77
  17438. # Compile-time system search path for libraries
  17439. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17440. # Run-time system search path for libraries
  17441. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17442. # Fix the shell variable \$srcfile for the compiler.
  17443. fix_srcfile_path=$lt_fix_srcfile_path
  17444. # Set to yes if exported symbols are required.
  17445. always_export_symbols=$always_export_symbols_F77
  17446. # The commands to list exported symbols.
  17447. export_symbols_cmds=$lt_export_symbols_cmds_F77
  17448. # The commands to extract the exported symbol list from a shared archive.
  17449. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17450. # Symbols that should not be listed in the preloaded symbols.
  17451. exclude_expsyms=$lt_exclude_expsyms_F77
  17452. # Symbols that must always be exported.
  17453. include_expsyms=$lt_include_expsyms_F77
  17454. # ### END LIBTOOL TAG CONFIG: $tagname
  17455. __EOF__
  17456. else
  17457. # If there is no Makefile yet, we rely on a make rule to execute
  17458. # `config.status --recheck' to rerun these tests and create the
  17459. # libtool script then.
  17460. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  17461. if test -f "$ltmain_in"; then
  17462. test -f Makefile && make "$ltmain"
  17463. fi
  17464. fi
  17465. ac_ext=c
  17466. ac_cpp='$CPP $CPPFLAGS'
  17467. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17468. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17469. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17470. CC="$lt_save_CC"
  17471. else
  17472. tagname=""
  17473. fi
  17474. ;;
  17475. GCJ)
  17476. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  17477. # Source file extension for Java test sources.
  17478. ac_ext=java
  17479. # Object file extension for compiled Java test sources.
  17480. objext=o
  17481. objext_GCJ=$objext
  17482. # Code to be used in simple compile tests
  17483. lt_simple_compile_test_code="class foo {}"
  17484. # Code to be used in simple link tests
  17485. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
  17486. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  17487. # If no C compiler was specified, use CC.
  17488. LTCC=${LTCC-"$CC"}
  17489. # If no C compiler flags were specified, use CFLAGS.
  17490. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  17491. # Allow CC to be a program name with arguments.
  17492. compiler=$CC
  17493. # save warnings/boilerplate of simple test code
  17494. ac_outfile=conftest.$ac_objext
  17495. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  17496. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  17497. _lt_compiler_boilerplate=`cat conftest.err`
  17498. $rm conftest*
  17499. ac_outfile=conftest.$ac_objext
  17500. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  17501. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  17502. _lt_linker_boilerplate=`cat conftest.err`
  17503. $rm -r conftest*
  17504. # Allow CC to be a program name with arguments.
  17505. lt_save_CC="$CC"
  17506. CC=${GCJ-"gcj"}
  17507. compiler=$CC
  17508. compiler_GCJ=$CC
  17509. for cc_temp in $compiler""; do
  17510. case $cc_temp in
  17511. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  17512. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  17513. \-*) ;;
  17514. *) break;;
  17515. esac
  17516. done
  17517. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  17518. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  17519. archive_cmds_need_lc_GCJ=no
  17520. old_archive_cmds_GCJ=$old_archive_cmds
  17521. lt_prog_compiler_no_builtin_flag_GCJ=
  17522. if test "$GCC" = yes; then
  17523. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  17524. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  17525. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  17526. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  17527. echo $ECHO_N "(cached) $ECHO_C" >&6
  17528. else
  17529. lt_cv_prog_compiler_rtti_exceptions=no
  17530. ac_outfile=conftest.$ac_objext
  17531. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  17532. lt_compiler_flag="-fno-rtti -fno-exceptions"
  17533. # Insert the option either (1) after the last *FLAGS variable, or
  17534. # (2) before a word containing "conftest.", or (3) at the end.
  17535. # Note that $ac_compile itself does not contain backslashes and begins
  17536. # with a dollar sign (not a hyphen), so the echo should work correctly.
  17537. # The option is referenced via a variable to avoid confusing sed.
  17538. lt_compile=`echo "$ac_compile" | $SED \
  17539. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  17540. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  17541. -e 's:$: $lt_compiler_flag:'`
  17542. (eval echo "\"\$as_me:19816: $lt_compile\"" >&5)
  17543. (eval "$lt_compile" 2>conftest.err)
  17544. ac_status=$?
  17545. cat conftest.err >&5
  17546. echo "$as_me:19820: \$? = $ac_status" >&5
  17547. if (exit $ac_status) && test -s "$ac_outfile"; then
  17548. # The compiler can only warn and ignore the option if not recognized
  17549. # So say no if there are warnings other than the usual output.
  17550. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  17551. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  17552. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  17553. lt_cv_prog_compiler_rtti_exceptions=yes
  17554. fi
  17555. fi
  17556. $rm conftest*
  17557. fi
  17558. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  17559. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  17560. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  17561. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  17562. else
  17563. :
  17564. fi
  17565. fi
  17566. lt_prog_compiler_wl_GCJ=
  17567. lt_prog_compiler_pic_GCJ=
  17568. lt_prog_compiler_static_GCJ=
  17569. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  17570. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  17571. if test "$GCC" = yes; then
  17572. lt_prog_compiler_wl_GCJ='-Wl,'
  17573. lt_prog_compiler_static_GCJ='-static'
  17574. case $host_os in
  17575. aix*)
  17576. # All AIX code is PIC.
  17577. if test "$host_cpu" = ia64; then
  17578. # AIX 5 now supports IA64 processor
  17579. lt_prog_compiler_static_GCJ='-Bstatic'
  17580. fi
  17581. ;;
  17582. amigaos*)
  17583. # FIXME: we need at least 68020 code to build shared libraries, but
  17584. # adding the `-m68020' flag to GCC prevents building anything better,
  17585. # like `-m68040'.
  17586. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  17587. ;;
  17588. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  17589. # PIC is the default for these OSes.
  17590. ;;
  17591. mingw* | cygwin* | pw32* | os2*)
  17592. # This hack is so that the source file can tell whether it is being
  17593. # built for inclusion in a dll (and should export symbols for example).
  17594. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  17595. # (--disable-auto-import) libraries
  17596. ;;
  17597. darwin* | rhapsody*)
  17598. # PIC is the default on this platform
  17599. # Common symbols not allowed in MH_DYLIB files
  17600. lt_prog_compiler_pic_GCJ='-fno-common'
  17601. ;;
  17602. interix[3-9]*)
  17603. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  17604. # Instead, we relocate shared libraries at runtime.
  17605. ;;
  17606. msdosdjgpp*)
  17607. # Just because we use GCC doesn't mean we suddenly get shared libraries
  17608. # on systems that don't support them.
  17609. lt_prog_compiler_can_build_shared_GCJ=no
  17610. enable_shared=no
  17611. ;;
  17612. sysv4*MP*)
  17613. if test -d /usr/nec; then
  17614. lt_prog_compiler_pic_GCJ=-Kconform_pic
  17615. fi
  17616. ;;
  17617. hpux*)
  17618. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  17619. # not for PA HP-UX.
  17620. case $host_cpu in
  17621. hppa*64*|ia64*)
  17622. # +Z the default
  17623. ;;
  17624. *)
  17625. lt_prog_compiler_pic_GCJ='-fPIC'
  17626. ;;
  17627. esac
  17628. ;;
  17629. *)
  17630. lt_prog_compiler_pic_GCJ='-fPIC'
  17631. ;;
  17632. esac
  17633. else
  17634. # PORTME Check for flag to pass linker flags through the system compiler.
  17635. case $host_os in
  17636. aix*)
  17637. lt_prog_compiler_wl_GCJ='-Wl,'
  17638. if test "$host_cpu" = ia64; then
  17639. # AIX 5 now supports IA64 processor
  17640. lt_prog_compiler_static_GCJ='-Bstatic'
  17641. else
  17642. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  17643. fi
  17644. ;;
  17645. darwin*)
  17646. # PIC is the default on this platform
  17647. # Common symbols not allowed in MH_DYLIB files
  17648. case $cc_basename in
  17649. xlc*)
  17650. lt_prog_compiler_pic_GCJ='-qnocommon'
  17651. lt_prog_compiler_wl_GCJ='-Wl,'
  17652. ;;
  17653. esac
  17654. ;;
  17655. mingw* | cygwin* | pw32* | os2*)
  17656. # This hack is so that the source file can tell whether it is being
  17657. # built for inclusion in a dll (and should export symbols for example).
  17658. ;;
  17659. hpux9* | hpux10* | hpux11*)
  17660. lt_prog_compiler_wl_GCJ='-Wl,'
  17661. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  17662. # not for PA HP-UX.
  17663. case $host_cpu in
  17664. hppa*64*|ia64*)
  17665. # +Z the default
  17666. ;;
  17667. *)
  17668. lt_prog_compiler_pic_GCJ='+Z'
  17669. ;;
  17670. esac
  17671. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  17672. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  17673. ;;
  17674. irix5* | irix6* | nonstopux*)
  17675. lt_prog_compiler_wl_GCJ='-Wl,'
  17676. # PIC (with -KPIC) is the default.
  17677. lt_prog_compiler_static_GCJ='-non_shared'
  17678. ;;
  17679. newsos6)
  17680. lt_prog_compiler_pic_GCJ='-KPIC'
  17681. lt_prog_compiler_static_GCJ='-Bstatic'
  17682. ;;
  17683. linux* | k*bsd*-gnu)
  17684. case $cc_basename in
  17685. icc* | ecc*)
  17686. lt_prog_compiler_wl_GCJ='-Wl,'
  17687. lt_prog_compiler_pic_GCJ='-KPIC'
  17688. lt_prog_compiler_static_GCJ='-static'
  17689. ;;
  17690. pgcc* | pgf77* | pgf90* | pgf95*)
  17691. # Portland Group compilers (*not* the Pentium gcc compiler,
  17692. # which looks to be a dead project)
  17693. lt_prog_compiler_wl_GCJ='-Wl,'
  17694. lt_prog_compiler_pic_GCJ='-fpic'
  17695. lt_prog_compiler_static_GCJ='-Bstatic'
  17696. ;;
  17697. ccc*)
  17698. lt_prog_compiler_wl_GCJ='-Wl,'
  17699. # All Alpha code is PIC.
  17700. lt_prog_compiler_static_GCJ='-non_shared'
  17701. ;;
  17702. *)
  17703. case `$CC -V 2>&1 | sed 5q` in
  17704. *Sun\ C*)
  17705. # Sun C 5.9
  17706. lt_prog_compiler_pic_GCJ='-KPIC'
  17707. lt_prog_compiler_static_GCJ='-Bstatic'
  17708. lt_prog_compiler_wl_GCJ='-Wl,'
  17709. ;;
  17710. *Sun\ F*)
  17711. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  17712. lt_prog_compiler_pic_GCJ='-KPIC'
  17713. lt_prog_compiler_static_GCJ='-Bstatic'
  17714. lt_prog_compiler_wl_GCJ=''
  17715. ;;
  17716. esac
  17717. ;;
  17718. esac
  17719. ;;
  17720. osf3* | osf4* | osf5*)
  17721. lt_prog_compiler_wl_GCJ='-Wl,'
  17722. # All OSF/1 code is PIC.
  17723. lt_prog_compiler_static_GCJ='-non_shared'
  17724. ;;
  17725. rdos*)
  17726. lt_prog_compiler_static_GCJ='-non_shared'
  17727. ;;
  17728. solaris*)
  17729. lt_prog_compiler_pic_GCJ='-KPIC'
  17730. lt_prog_compiler_static_GCJ='-Bstatic'
  17731. case $cc_basename in
  17732. f77* | f90* | f95*)
  17733. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  17734. *)
  17735. lt_prog_compiler_wl_GCJ='-Wl,';;
  17736. esac
  17737. ;;
  17738. sunos4*)
  17739. lt_prog_compiler_wl_GCJ='-Qoption ld '
  17740. lt_prog_compiler_pic_GCJ='-PIC'
  17741. lt_prog_compiler_static_GCJ='-Bstatic'
  17742. ;;
  17743. sysv4 | sysv4.2uw2* | sysv4.3*)
  17744. lt_prog_compiler_wl_GCJ='-Wl,'
  17745. lt_prog_compiler_pic_GCJ='-KPIC'
  17746. lt_prog_compiler_static_GCJ='-Bstatic'
  17747. ;;
  17748. sysv4*MP*)
  17749. if test -d /usr/nec ;then
  17750. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  17751. lt_prog_compiler_static_GCJ='-Bstatic'
  17752. fi
  17753. ;;
  17754. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  17755. lt_prog_compiler_wl_GCJ='-Wl,'
  17756. lt_prog_compiler_pic_GCJ='-KPIC'
  17757. lt_prog_compiler_static_GCJ='-Bstatic'
  17758. ;;
  17759. unicos*)
  17760. lt_prog_compiler_wl_GCJ='-Wl,'
  17761. lt_prog_compiler_can_build_shared_GCJ=no
  17762. ;;
  17763. uts4*)
  17764. lt_prog_compiler_pic_GCJ='-pic'
  17765. lt_prog_compiler_static_GCJ='-Bstatic'
  17766. ;;
  17767. *)
  17768. lt_prog_compiler_can_build_shared_GCJ=no
  17769. ;;
  17770. esac
  17771. fi
  17772. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  17773. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  17774. #
  17775. # Check to make sure the PIC flag actually works.
  17776. #
  17777. if test -n "$lt_prog_compiler_pic_GCJ"; then
  17778. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  17779. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  17780. if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
  17781. echo $ECHO_N "(cached) $ECHO_C" >&6
  17782. else
  17783. lt_cv_prog_compiler_pic_works_GCJ=no
  17784. ac_outfile=conftest.$ac_objext
  17785. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  17786. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  17787. # Insert the option either (1) after the last *FLAGS variable, or
  17788. # (2) before a word containing "conftest.", or (3) at the end.
  17789. # Note that $ac_compile itself does not contain backslashes and begins
  17790. # with a dollar sign (not a hyphen), so the echo should work correctly.
  17791. # The option is referenced via a variable to avoid confusing sed.
  17792. lt_compile=`echo "$ac_compile" | $SED \
  17793. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  17794. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  17795. -e 's:$: $lt_compiler_flag:'`
  17796. (eval echo "\"\$as_me:20106: $lt_compile\"" >&5)
  17797. (eval "$lt_compile" 2>conftest.err)
  17798. ac_status=$?
  17799. cat conftest.err >&5
  17800. echo "$as_me:20110: \$? = $ac_status" >&5
  17801. if (exit $ac_status) && test -s "$ac_outfile"; then
  17802. # The compiler can only warn and ignore the option if not recognized
  17803. # So say no if there are warnings other than the usual output.
  17804. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  17805. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  17806. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  17807. lt_cv_prog_compiler_pic_works_GCJ=yes
  17808. fi
  17809. fi
  17810. $rm conftest*
  17811. fi
  17812. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
  17813. echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
  17814. if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
  17815. case $lt_prog_compiler_pic_GCJ in
  17816. "" | " "*) ;;
  17817. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  17818. esac
  17819. else
  17820. lt_prog_compiler_pic_GCJ=
  17821. lt_prog_compiler_can_build_shared_GCJ=no
  17822. fi
  17823. fi
  17824. case $host_os in
  17825. # For platforms which do not support PIC, -DPIC is meaningless:
  17826. *djgpp*)
  17827. lt_prog_compiler_pic_GCJ=
  17828. ;;
  17829. *)
  17830. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  17831. ;;
  17832. esac
  17833. #
  17834. # Check to make sure the static flag actually works.
  17835. #
  17836. wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  17837. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  17838. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  17839. if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
  17840. echo $ECHO_N "(cached) $ECHO_C" >&6
  17841. else
  17842. lt_cv_prog_compiler_static_works_GCJ=no
  17843. save_LDFLAGS="$LDFLAGS"
  17844. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  17845. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  17846. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  17847. # The linker can only warn and ignore the option if not recognized
  17848. # So say no if there are warnings
  17849. if test -s conftest.err; then
  17850. # Append any errors to the config.log.
  17851. cat conftest.err 1>&5
  17852. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  17853. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  17854. if diff conftest.exp conftest.er2 >/dev/null; then
  17855. lt_cv_prog_compiler_static_works_GCJ=yes
  17856. fi
  17857. else
  17858. lt_cv_prog_compiler_static_works_GCJ=yes
  17859. fi
  17860. fi
  17861. $rm -r conftest*
  17862. LDFLAGS="$save_LDFLAGS"
  17863. fi
  17864. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
  17865. echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
  17866. if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
  17867. :
  17868. else
  17869. lt_prog_compiler_static_GCJ=
  17870. fi
  17871. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  17872. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  17873. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  17874. echo $ECHO_N "(cached) $ECHO_C" >&6
  17875. else
  17876. lt_cv_prog_compiler_c_o_GCJ=no
  17877. $rm -r conftest 2>/dev/null
  17878. mkdir conftest
  17879. cd conftest
  17880. mkdir out
  17881. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  17882. lt_compiler_flag="-o out/conftest2.$ac_objext"
  17883. # Insert the option either (1) after the last *FLAGS variable, or
  17884. # (2) before a word containing "conftest.", or (3) at the end.
  17885. # Note that $ac_compile itself does not contain backslashes and begins
  17886. # with a dollar sign (not a hyphen), so the echo should work correctly.
  17887. lt_compile=`echo "$ac_compile" | $SED \
  17888. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  17889. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  17890. -e 's:$: $lt_compiler_flag:'`
  17891. (eval echo "\"\$as_me:20210: $lt_compile\"" >&5)
  17892. (eval "$lt_compile" 2>out/conftest.err)
  17893. ac_status=$?
  17894. cat out/conftest.err >&5
  17895. echo "$as_me:20214: \$? = $ac_status" >&5
  17896. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  17897. then
  17898. # The compiler can only warn and ignore the option if not recognized
  17899. # So say no if there are warnings
  17900. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  17901. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  17902. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  17903. lt_cv_prog_compiler_c_o_GCJ=yes
  17904. fi
  17905. fi
  17906. chmod u+w . 2>&5
  17907. $rm conftest*
  17908. # SGI C++ compiler will create directory out/ii_files/ for
  17909. # template instantiation
  17910. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  17911. $rm out/* && rmdir out
  17912. cd ..
  17913. rmdir conftest
  17914. $rm conftest*
  17915. fi
  17916. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  17917. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  17918. hard_links="nottested"
  17919. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  17920. # do not overwrite the value of need_locks provided by the user
  17921. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  17922. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  17923. hard_links=yes
  17924. $rm conftest*
  17925. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  17926. touch conftest.a
  17927. ln conftest.a conftest.b 2>&5 || hard_links=no
  17928. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  17929. { echo "$as_me:$LINENO: result: $hard_links" >&5
  17930. echo "${ECHO_T}$hard_links" >&6; }
  17931. if test "$hard_links" = no; then
  17932. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  17933. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  17934. need_locks=warn
  17935. fi
  17936. else
  17937. need_locks=no
  17938. fi
  17939. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  17940. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  17941. runpath_var=
  17942. allow_undefined_flag_GCJ=
  17943. enable_shared_with_static_runtimes_GCJ=no
  17944. archive_cmds_GCJ=
  17945. archive_expsym_cmds_GCJ=
  17946. old_archive_From_new_cmds_GCJ=
  17947. old_archive_from_expsyms_cmds_GCJ=
  17948. export_dynamic_flag_spec_GCJ=
  17949. whole_archive_flag_spec_GCJ=
  17950. thread_safe_flag_spec_GCJ=
  17951. hardcode_libdir_flag_spec_GCJ=
  17952. hardcode_libdir_flag_spec_ld_GCJ=
  17953. hardcode_libdir_separator_GCJ=
  17954. hardcode_direct_GCJ=no
  17955. hardcode_minus_L_GCJ=no
  17956. hardcode_shlibpath_var_GCJ=unsupported
  17957. link_all_deplibs_GCJ=unknown
  17958. hardcode_automatic_GCJ=no
  17959. module_cmds_GCJ=
  17960. module_expsym_cmds_GCJ=
  17961. always_export_symbols_GCJ=no
  17962. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  17963. # include_expsyms should be a list of space-separated symbols to be *always*
  17964. # included in the symbol list
  17965. include_expsyms_GCJ=
  17966. # exclude_expsyms can be an extended regexp of symbols to exclude
  17967. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  17968. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  17969. # as well as any symbol that contains `d'.
  17970. exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  17971. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  17972. # platforms (ab)use it in PIC code, but their linkers get confused if
  17973. # the symbol is explicitly referenced. Since portable code cannot
  17974. # rely on this symbol name, it's probably fine to never include it in
  17975. # preloaded symbol tables.
  17976. # Exclude shared library initialization/finalization symbols.
  17977. extract_expsyms_cmds=
  17978. # Just being paranoid about ensuring that cc_basename is set.
  17979. for cc_temp in $compiler""; do
  17980. case $cc_temp in
  17981. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  17982. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  17983. \-*) ;;
  17984. *) break;;
  17985. esac
  17986. done
  17987. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  17988. case $host_os in
  17989. cygwin* | mingw* | pw32*)
  17990. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  17991. # When not using gcc, we currently assume that we are using
  17992. # Microsoft Visual C++.
  17993. if test "$GCC" != yes; then
  17994. with_gnu_ld=no
  17995. fi
  17996. ;;
  17997. interix*)
  17998. # we just hope/assume this is gcc and not c89 (= MSVC++)
  17999. with_gnu_ld=yes
  18000. ;;
  18001. openbsd*)
  18002. with_gnu_ld=no
  18003. ;;
  18004. esac
  18005. ld_shlibs_GCJ=yes
  18006. if test "$with_gnu_ld" = yes; then
  18007. # If archive_cmds runs LD, not CC, wlarc should be empty
  18008. wlarc='${wl}'
  18009. # Set some defaults for GNU ld with shared library support. These
  18010. # are reset later if shared libraries are not supported. Putting them
  18011. # here allows them to be overridden if necessary.
  18012. runpath_var=LD_RUN_PATH
  18013. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  18014. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  18015. # ancient GNU ld didn't support --whole-archive et. al.
  18016. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  18017. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  18018. else
  18019. whole_archive_flag_spec_GCJ=
  18020. fi
  18021. supports_anon_versioning=no
  18022. case `$LD -v 2>/dev/null` in
  18023. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  18024. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  18025. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  18026. *\ 2.11.*) ;; # other 2.11 versions
  18027. *) supports_anon_versioning=yes ;;
  18028. esac
  18029. # See if GNU ld supports shared libraries.
  18030. case $host_os in
  18031. aix[3-9]*)
  18032. # On AIX/PPC, the GNU linker is very broken
  18033. if test "$host_cpu" != ia64; then
  18034. ld_shlibs_GCJ=no
  18035. cat <<EOF 1>&2
  18036. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  18037. *** to be unable to reliably create shared libraries on AIX.
  18038. *** Therefore, libtool is disabling shared libraries support. If you
  18039. *** really care for shared libraries, you may want to modify your PATH
  18040. *** so that a non-GNU linker is found, and then restart.
  18041. EOF
  18042. fi
  18043. ;;
  18044. amigaos*)
  18045. 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)'
  18046. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  18047. hardcode_minus_L_GCJ=yes
  18048. # Samuel A. Falvo II <[email protected]> reports
  18049. # that the semantics of dynamic libraries on AmigaOS, at least up
  18050. # to version 4, is to share data among multiple programs linked
  18051. # with the same dynamic library. Since this doesn't match the
  18052. # behavior of shared libraries on other platforms, we can't use
  18053. # them.
  18054. ld_shlibs_GCJ=no
  18055. ;;
  18056. beos*)
  18057. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  18058. allow_undefined_flag_GCJ=unsupported
  18059. # Joseph Beckenbach <[email protected]> says some releases of gcc
  18060. # support --undefined. This deserves some investigation. FIXME
  18061. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  18062. else
  18063. ld_shlibs_GCJ=no
  18064. fi
  18065. ;;
  18066. cygwin* | mingw* | pw32*)
  18067. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  18068. # as there is no search path for DLLs.
  18069. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  18070. allow_undefined_flag_GCJ=unsupported
  18071. always_export_symbols_GCJ=no
  18072. enable_shared_with_static_runtimes_GCJ=yes
  18073. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  18074. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  18075. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  18076. # If the export-symbols file already is a .def file (1st line
  18077. # is EXPORTS), use it as is; otherwise, prepend...
  18078. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  18079. cp $export_symbols $output_objdir/$soname.def;
  18080. else
  18081. echo EXPORTS > $output_objdir/$soname.def;
  18082. cat $export_symbols >> $output_objdir/$soname.def;
  18083. fi~
  18084. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  18085. else
  18086. ld_shlibs_GCJ=no
  18087. fi
  18088. ;;
  18089. interix[3-9]*)
  18090. hardcode_direct_GCJ=no
  18091. hardcode_shlibpath_var_GCJ=no
  18092. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  18093. export_dynamic_flag_spec_GCJ='${wl}-E'
  18094. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  18095. # Instead, shared libraries are loaded at an image base (0x10000000 by
  18096. # default) and relocated if they conflict, which is a slow very memory
  18097. # consuming and fragmenting process. To avoid this, we pick a random,
  18098. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  18099. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  18100. archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  18101. archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  18102. ;;
  18103. gnu* | linux* | k*bsd*-gnu)
  18104. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  18105. tmp_addflag=
  18106. case $cc_basename,$host_cpu in
  18107. pgcc*) # Portland Group C compiler
  18108. whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  18109. tmp_addflag=' $pic_flag'
  18110. ;;
  18111. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  18112. whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  18113. tmp_addflag=' $pic_flag -Mnomain' ;;
  18114. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  18115. tmp_addflag=' -i_dynamic' ;;
  18116. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  18117. tmp_addflag=' -i_dynamic -nofor_main' ;;
  18118. ifc* | ifort*) # Intel Fortran compiler
  18119. tmp_addflag=' -nofor_main' ;;
  18120. esac
  18121. case `$CC -V 2>&1 | sed 5q` in
  18122. *Sun\ C*) # Sun C 5.9
  18123. whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  18124. tmp_sharedflag='-G' ;;
  18125. *Sun\ F*) # Sun Fortran 8.3
  18126. tmp_sharedflag='-G' ;;
  18127. *)
  18128. tmp_sharedflag='-shared' ;;
  18129. esac
  18130. archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  18131. if test $supports_anon_versioning = yes; then
  18132. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  18133. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  18134. $echo "local: *; };" >> $output_objdir/$libname.ver~
  18135. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  18136. fi
  18137. link_all_deplibs_GCJ=no
  18138. else
  18139. ld_shlibs_GCJ=no
  18140. fi
  18141. ;;
  18142. netbsd* | netbsdelf*-gnu)
  18143. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  18144. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  18145. wlarc=
  18146. else
  18147. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  18148. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  18149. fi
  18150. ;;
  18151. solaris*)
  18152. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  18153. ld_shlibs_GCJ=no
  18154. cat <<EOF 1>&2
  18155. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  18156. *** create shared libraries on Solaris systems. Therefore, libtool
  18157. *** is disabling shared libraries support. We urge you to upgrade GNU
  18158. *** binutils to release 2.9.1 or newer. Another option is to modify
  18159. *** your PATH or compiler configuration so that the native linker is
  18160. *** used, and then restart.
  18161. EOF
  18162. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  18163. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  18164. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  18165. else
  18166. ld_shlibs_GCJ=no
  18167. fi
  18168. ;;
  18169. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  18170. case `$LD -v 2>&1` in
  18171. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  18172. ld_shlibs_GCJ=no
  18173. cat <<_LT_EOF 1>&2
  18174. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  18175. *** reliably create shared libraries on SCO systems. Therefore, libtool
  18176. *** is disabling shared libraries support. We urge you to upgrade GNU
  18177. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  18178. *** your PATH or compiler configuration so that the native linker is
  18179. *** used, and then restart.
  18180. _LT_EOF
  18181. ;;
  18182. *)
  18183. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  18184. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  18185. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  18186. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  18187. else
  18188. ld_shlibs_GCJ=no
  18189. fi
  18190. ;;
  18191. esac
  18192. ;;
  18193. sunos4*)
  18194. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  18195. wlarc=
  18196. hardcode_direct_GCJ=yes
  18197. hardcode_shlibpath_var_GCJ=no
  18198. ;;
  18199. *)
  18200. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  18201. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  18202. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  18203. else
  18204. ld_shlibs_GCJ=no
  18205. fi
  18206. ;;
  18207. esac
  18208. if test "$ld_shlibs_GCJ" = no; then
  18209. runpath_var=
  18210. hardcode_libdir_flag_spec_GCJ=
  18211. export_dynamic_flag_spec_GCJ=
  18212. whole_archive_flag_spec_GCJ=
  18213. fi
  18214. else
  18215. # PORTME fill in a description of your system's linker (not GNU ld)
  18216. case $host_os in
  18217. aix3*)
  18218. allow_undefined_flag_GCJ=unsupported
  18219. always_export_symbols_GCJ=yes
  18220. 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'
  18221. # Note: this linker hardcodes the directories in LIBPATH if there
  18222. # are no directories specified by -L.
  18223. hardcode_minus_L_GCJ=yes
  18224. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  18225. # Neither direct hardcoding nor static linking is supported with a
  18226. # broken collect2.
  18227. hardcode_direct_GCJ=unsupported
  18228. fi
  18229. ;;
  18230. aix[4-9]*)
  18231. if test "$host_cpu" = ia64; then
  18232. # On IA64, the linker does run time linking by default, so we don't
  18233. # have to do anything special.
  18234. aix_use_runtimelinking=no
  18235. exp_sym_flag='-Bexport'
  18236. no_entry_flag=""
  18237. else
  18238. # If we're using GNU nm, then we don't want the "-C" option.
  18239. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  18240. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  18241. 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'
  18242. else
  18243. 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'
  18244. fi
  18245. aix_use_runtimelinking=no
  18246. # Test if we are trying to use run time linking or normal
  18247. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  18248. # need to do runtime linking.
  18249. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  18250. for ld_flag in $LDFLAGS; do
  18251. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  18252. aix_use_runtimelinking=yes
  18253. break
  18254. fi
  18255. done
  18256. ;;
  18257. esac
  18258. exp_sym_flag='-bexport'
  18259. no_entry_flag='-bnoentry'
  18260. fi
  18261. # When large executables or shared objects are built, AIX ld can
  18262. # have problems creating the table of contents. If linking a library
  18263. # or program results in "error TOC overflow" add -mminimal-toc to
  18264. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  18265. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  18266. archive_cmds_GCJ=''
  18267. hardcode_direct_GCJ=yes
  18268. hardcode_libdir_separator_GCJ=':'
  18269. link_all_deplibs_GCJ=yes
  18270. if test "$GCC" = yes; then
  18271. case $host_os in aix4.[012]|aix4.[012].*)
  18272. # We only want to do this on AIX 4.2 and lower, the check
  18273. # below for broken collect2 doesn't work under 4.3+
  18274. collect2name=`${CC} -print-prog-name=collect2`
  18275. if test -f "$collect2name" && \
  18276. strings "$collect2name" | grep resolve_lib_name >/dev/null
  18277. then
  18278. # We have reworked collect2
  18279. :
  18280. else
  18281. # We have old collect2
  18282. hardcode_direct_GCJ=unsupported
  18283. # It fails to find uninstalled libraries when the uninstalled
  18284. # path is not listed in the libpath. Setting hardcode_minus_L
  18285. # to unsupported forces relinking
  18286. hardcode_minus_L_GCJ=yes
  18287. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  18288. hardcode_libdir_separator_GCJ=
  18289. fi
  18290. ;;
  18291. esac
  18292. shared_flag='-shared'
  18293. if test "$aix_use_runtimelinking" = yes; then
  18294. shared_flag="$shared_flag "'${wl}-G'
  18295. fi
  18296. else
  18297. # not using gcc
  18298. if test "$host_cpu" = ia64; then
  18299. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  18300. # chokes on -Wl,-G. The following line is correct:
  18301. shared_flag='-G'
  18302. else
  18303. if test "$aix_use_runtimelinking" = yes; then
  18304. shared_flag='${wl}-G'
  18305. else
  18306. shared_flag='${wl}-bM:SRE'
  18307. fi
  18308. fi
  18309. fi
  18310. # It seems that -bexpall does not export symbols beginning with
  18311. # underscore (_), so it is better to generate a list of symbols to export.
  18312. always_export_symbols_GCJ=yes
  18313. if test "$aix_use_runtimelinking" = yes; then
  18314. # Warning - without using the other runtime loading flags (-brtl),
  18315. # -berok will link without error, but may produce a broken library.
  18316. allow_undefined_flag_GCJ='-berok'
  18317. # Determine the default libpath from the value encoded in an empty executable.
  18318. cat >conftest.$ac_ext <<_ACEOF
  18319. /* confdefs.h. */
  18320. _ACEOF
  18321. cat confdefs.h >>conftest.$ac_ext
  18322. cat >>conftest.$ac_ext <<_ACEOF
  18323. /* end confdefs.h. */
  18324. int
  18325. main ()
  18326. {
  18327. ;
  18328. return 0;
  18329. }
  18330. _ACEOF
  18331. rm -f conftest.$ac_objext conftest$ac_exeext
  18332. if { (ac_try="$ac_link"
  18333. case "(($ac_try" in
  18334. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18335. *) ac_try_echo=$ac_try;;
  18336. esac
  18337. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18338. (eval "$ac_link") 2>conftest.er1
  18339. ac_status=$?
  18340. grep -v '^ *+' conftest.er1 >conftest.err
  18341. rm -f conftest.er1
  18342. cat conftest.err >&5
  18343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18344. (exit $ac_status); } && {
  18345. test -z "$ac_c_werror_flag" ||
  18346. test ! -s conftest.err
  18347. } && test -s conftest$ac_exeext &&
  18348. $as_test_x conftest$ac_exeext; then
  18349. lt_aix_libpath_sed='
  18350. /Import File Strings/,/^$/ {
  18351. /^0/ {
  18352. s/^0 *\(.*\)$/\1/
  18353. p
  18354. }
  18355. }'
  18356. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  18357. # Check for a 64-bit object if we didn't find anything.
  18358. if test -z "$aix_libpath"; then
  18359. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  18360. fi
  18361. else
  18362. echo "$as_me: failed program was:" >&5
  18363. sed 's/^/| /' conftest.$ac_ext >&5
  18364. fi
  18365. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18366. conftest$ac_exeext conftest.$ac_ext
  18367. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  18368. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  18369. archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  18370. else
  18371. if test "$host_cpu" = ia64; then
  18372. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  18373. allow_undefined_flag_GCJ="-z nodefs"
  18374. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  18375. else
  18376. # Determine the default libpath from the value encoded in an empty executable.
  18377. cat >conftest.$ac_ext <<_ACEOF
  18378. /* confdefs.h. */
  18379. _ACEOF
  18380. cat confdefs.h >>conftest.$ac_ext
  18381. cat >>conftest.$ac_ext <<_ACEOF
  18382. /* end confdefs.h. */
  18383. int
  18384. main ()
  18385. {
  18386. ;
  18387. return 0;
  18388. }
  18389. _ACEOF
  18390. rm -f conftest.$ac_objext conftest$ac_exeext
  18391. if { (ac_try="$ac_link"
  18392. case "(($ac_try" in
  18393. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18394. *) ac_try_echo=$ac_try;;
  18395. esac
  18396. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18397. (eval "$ac_link") 2>conftest.er1
  18398. ac_status=$?
  18399. grep -v '^ *+' conftest.er1 >conftest.err
  18400. rm -f conftest.er1
  18401. cat conftest.err >&5
  18402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18403. (exit $ac_status); } && {
  18404. test -z "$ac_c_werror_flag" ||
  18405. test ! -s conftest.err
  18406. } && test -s conftest$ac_exeext &&
  18407. $as_test_x conftest$ac_exeext; then
  18408. lt_aix_libpath_sed='
  18409. /Import File Strings/,/^$/ {
  18410. /^0/ {
  18411. s/^0 *\(.*\)$/\1/
  18412. p
  18413. }
  18414. }'
  18415. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  18416. # Check for a 64-bit object if we didn't find anything.
  18417. if test -z "$aix_libpath"; then
  18418. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  18419. fi
  18420. else
  18421. echo "$as_me: failed program was:" >&5
  18422. sed 's/^/| /' conftest.$ac_ext >&5
  18423. fi
  18424. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18425. conftest$ac_exeext conftest.$ac_ext
  18426. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  18427. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  18428. # Warning - without using the other run time loading flags,
  18429. # -berok will link without error, but may produce a broken library.
  18430. no_undefined_flag_GCJ=' ${wl}-bernotok'
  18431. allow_undefined_flag_GCJ=' ${wl}-berok'
  18432. # Exported symbols can be pulled into shared objects from archives
  18433. whole_archive_flag_spec_GCJ='$convenience'
  18434. archive_cmds_need_lc_GCJ=yes
  18435. # This is similar to how AIX traditionally builds its shared libraries.
  18436. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  18437. fi
  18438. fi
  18439. ;;
  18440. amigaos*)
  18441. 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)'
  18442. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  18443. hardcode_minus_L_GCJ=yes
  18444. # see comment about different semantics on the GNU ld section
  18445. ld_shlibs_GCJ=no
  18446. ;;
  18447. bsdi[45]*)
  18448. export_dynamic_flag_spec_GCJ=-rdynamic
  18449. ;;
  18450. cygwin* | mingw* | pw32*)
  18451. # When not using gcc, we currently assume that we are using
  18452. # Microsoft Visual C++.
  18453. # hardcode_libdir_flag_spec is actually meaningless, as there is
  18454. # no search path for DLLs.
  18455. hardcode_libdir_flag_spec_GCJ=' '
  18456. allow_undefined_flag_GCJ=unsupported
  18457. # Tell ltmain to make .lib files, not .a files.
  18458. libext=lib
  18459. # Tell ltmain to make .dll files, not .so files.
  18460. shrext_cmds=".dll"
  18461. # FIXME: Setting linknames here is a bad hack.
  18462. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  18463. # The linker will automatically build a .lib file if we build a DLL.
  18464. old_archive_From_new_cmds_GCJ='true'
  18465. # FIXME: Should let the user specify the lib program.
  18466. old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
  18467. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  18468. enable_shared_with_static_runtimes_GCJ=yes
  18469. ;;
  18470. darwin* | rhapsody*)
  18471. case $host_os in
  18472. rhapsody* | darwin1.[012])
  18473. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  18474. ;;
  18475. *) # Darwin 1.3 on
  18476. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  18477. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  18478. else
  18479. case ${MACOSX_DEPLOYMENT_TARGET} in
  18480. 10.[012])
  18481. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  18482. ;;
  18483. 10.*)
  18484. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  18485. ;;
  18486. esac
  18487. fi
  18488. ;;
  18489. esac
  18490. archive_cmds_need_lc_GCJ=no
  18491. hardcode_direct_GCJ=no
  18492. hardcode_automatic_GCJ=yes
  18493. hardcode_shlibpath_var_GCJ=unsupported
  18494. whole_archive_flag_spec_GCJ=''
  18495. link_all_deplibs_GCJ=yes
  18496. if test "$GCC" = yes ; then
  18497. output_verbose_link_cmd='echo'
  18498. archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  18499. module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  18500. archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  18501. module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  18502. else
  18503. case $cc_basename in
  18504. xlc*)
  18505. output_verbose_link_cmd='echo'
  18506. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  18507. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  18508. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  18509. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  18510. 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}'
  18511. ;;
  18512. *)
  18513. ld_shlibs_GCJ=no
  18514. ;;
  18515. esac
  18516. fi
  18517. ;;
  18518. dgux*)
  18519. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  18520. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  18521. hardcode_shlibpath_var_GCJ=no
  18522. ;;
  18523. freebsd1*)
  18524. ld_shlibs_GCJ=no
  18525. ;;
  18526. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  18527. # support. Future versions do this automatically, but an explicit c++rt0.o
  18528. # does not break anything, and helps significantly (at the cost of a little
  18529. # extra space).
  18530. freebsd2.2*)
  18531. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  18532. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  18533. hardcode_direct_GCJ=yes
  18534. hardcode_shlibpath_var_GCJ=no
  18535. ;;
  18536. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  18537. freebsd2*)
  18538. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  18539. hardcode_direct_GCJ=yes
  18540. hardcode_minus_L_GCJ=yes
  18541. hardcode_shlibpath_var_GCJ=no
  18542. ;;
  18543. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  18544. freebsd* | dragonfly*)
  18545. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  18546. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  18547. hardcode_direct_GCJ=yes
  18548. hardcode_shlibpath_var_GCJ=no
  18549. ;;
  18550. hpux9*)
  18551. if test "$GCC" = yes; then
  18552. 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'
  18553. else
  18554. 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'
  18555. fi
  18556. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  18557. hardcode_libdir_separator_GCJ=:
  18558. hardcode_direct_GCJ=yes
  18559. # hardcode_minus_L: Not really in the search PATH,
  18560. # but as the default location of the library.
  18561. hardcode_minus_L_GCJ=yes
  18562. export_dynamic_flag_spec_GCJ='${wl}-E'
  18563. ;;
  18564. hpux10*)
  18565. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  18566. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  18567. else
  18568. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  18569. fi
  18570. if test "$with_gnu_ld" = no; then
  18571. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  18572. hardcode_libdir_separator_GCJ=:
  18573. hardcode_direct_GCJ=yes
  18574. export_dynamic_flag_spec_GCJ='${wl}-E'
  18575. # hardcode_minus_L: Not really in the search PATH,
  18576. # but as the default location of the library.
  18577. hardcode_minus_L_GCJ=yes
  18578. fi
  18579. ;;
  18580. hpux11*)
  18581. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  18582. case $host_cpu in
  18583. hppa*64*)
  18584. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  18585. ;;
  18586. ia64*)
  18587. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  18588. ;;
  18589. *)
  18590. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  18591. ;;
  18592. esac
  18593. else
  18594. case $host_cpu in
  18595. hppa*64*)
  18596. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  18597. ;;
  18598. ia64*)
  18599. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  18600. ;;
  18601. *)
  18602. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  18603. ;;
  18604. esac
  18605. fi
  18606. if test "$with_gnu_ld" = no; then
  18607. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  18608. hardcode_libdir_separator_GCJ=:
  18609. case $host_cpu in
  18610. hppa*64*|ia64*)
  18611. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  18612. hardcode_direct_GCJ=no
  18613. hardcode_shlibpath_var_GCJ=no
  18614. ;;
  18615. *)
  18616. hardcode_direct_GCJ=yes
  18617. export_dynamic_flag_spec_GCJ='${wl}-E'
  18618. # hardcode_minus_L: Not really in the search PATH,
  18619. # but as the default location of the library.
  18620. hardcode_minus_L_GCJ=yes
  18621. ;;
  18622. esac
  18623. fi
  18624. ;;
  18625. irix5* | irix6* | nonstopux*)
  18626. if test "$GCC" = yes; then
  18627. 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'
  18628. else
  18629. 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'
  18630. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  18631. fi
  18632. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  18633. hardcode_libdir_separator_GCJ=:
  18634. link_all_deplibs_GCJ=yes
  18635. ;;
  18636. netbsd* | netbsdelf*-gnu)
  18637. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  18638. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  18639. else
  18640. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  18641. fi
  18642. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  18643. hardcode_direct_GCJ=yes
  18644. hardcode_shlibpath_var_GCJ=no
  18645. ;;
  18646. newsos6)
  18647. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  18648. hardcode_direct_GCJ=yes
  18649. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  18650. hardcode_libdir_separator_GCJ=:
  18651. hardcode_shlibpath_var_GCJ=no
  18652. ;;
  18653. openbsd*)
  18654. if test -f /usr/libexec/ld.so; then
  18655. hardcode_direct_GCJ=yes
  18656. hardcode_shlibpath_var_GCJ=no
  18657. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  18658. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  18659. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  18660. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  18661. export_dynamic_flag_spec_GCJ='${wl}-E'
  18662. else
  18663. case $host_os in
  18664. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  18665. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  18666. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  18667. ;;
  18668. *)
  18669. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  18670. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  18671. ;;
  18672. esac
  18673. fi
  18674. else
  18675. ld_shlibs_GCJ=no
  18676. fi
  18677. ;;
  18678. os2*)
  18679. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  18680. hardcode_minus_L_GCJ=yes
  18681. allow_undefined_flag_GCJ=unsupported
  18682. 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'
  18683. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  18684. ;;
  18685. osf3*)
  18686. if test "$GCC" = yes; then
  18687. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  18688. 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'
  18689. else
  18690. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  18691. 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'
  18692. fi
  18693. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  18694. hardcode_libdir_separator_GCJ=:
  18695. ;;
  18696. osf4* | osf5*) # as osf3* with the addition of -msym flag
  18697. if test "$GCC" = yes; then
  18698. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  18699. 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'
  18700. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  18701. else
  18702. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  18703. 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'
  18704. 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~
  18705. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  18706. # Both c and cxx compiler support -rpath directly
  18707. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  18708. fi
  18709. hardcode_libdir_separator_GCJ=:
  18710. ;;
  18711. solaris*)
  18712. no_undefined_flag_GCJ=' -z text'
  18713. if test "$GCC" = yes; then
  18714. wlarc='${wl}'
  18715. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  18716. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  18717. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  18718. else
  18719. wlarc=''
  18720. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  18721. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  18722. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  18723. fi
  18724. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  18725. hardcode_shlibpath_var_GCJ=no
  18726. case $host_os in
  18727. solaris2.[0-5] | solaris2.[0-5].*) ;;
  18728. *)
  18729. # The compiler driver will combine and reorder linker options,
  18730. # but understands `-z linker_flag'. GCC discards it without `$wl',
  18731. # but is careful enough not to reorder.
  18732. # Supported since Solaris 2.6 (maybe 2.5.1?)
  18733. if test "$GCC" = yes; then
  18734. whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  18735. else
  18736. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
  18737. fi
  18738. ;;
  18739. esac
  18740. link_all_deplibs_GCJ=yes
  18741. ;;
  18742. sunos4*)
  18743. if test "x$host_vendor" = xsequent; then
  18744. # Use $CC to link under sequent, because it throws in some extra .o
  18745. # files that make .init and .fini sections work.
  18746. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  18747. else
  18748. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  18749. fi
  18750. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  18751. hardcode_direct_GCJ=yes
  18752. hardcode_minus_L_GCJ=yes
  18753. hardcode_shlibpath_var_GCJ=no
  18754. ;;
  18755. sysv4)
  18756. case $host_vendor in
  18757. sni)
  18758. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  18759. hardcode_direct_GCJ=yes # is this really true???
  18760. ;;
  18761. siemens)
  18762. ## LD is ld it makes a PLAMLIB
  18763. ## CC just makes a GrossModule.
  18764. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  18765. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  18766. hardcode_direct_GCJ=no
  18767. ;;
  18768. motorola)
  18769. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  18770. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  18771. ;;
  18772. esac
  18773. runpath_var='LD_RUN_PATH'
  18774. hardcode_shlibpath_var_GCJ=no
  18775. ;;
  18776. sysv4.3*)
  18777. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  18778. hardcode_shlibpath_var_GCJ=no
  18779. export_dynamic_flag_spec_GCJ='-Bexport'
  18780. ;;
  18781. sysv4*MP*)
  18782. if test -d /usr/nec; then
  18783. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  18784. hardcode_shlibpath_var_GCJ=no
  18785. runpath_var=LD_RUN_PATH
  18786. hardcode_runpath_var=yes
  18787. ld_shlibs_GCJ=yes
  18788. fi
  18789. ;;
  18790. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  18791. no_undefined_flag_GCJ='${wl}-z,text'
  18792. archive_cmds_need_lc_GCJ=no
  18793. hardcode_shlibpath_var_GCJ=no
  18794. runpath_var='LD_RUN_PATH'
  18795. if test "$GCC" = yes; then
  18796. archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  18797. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  18798. else
  18799. archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  18800. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  18801. fi
  18802. ;;
  18803. sysv5* | sco3.2v5* | sco5v6*)
  18804. # Note: We can NOT use -z defs as we might desire, because we do not
  18805. # link with -lc, and that would cause any symbols used from libc to
  18806. # always be unresolved, which means just about no library would
  18807. # ever link correctly. If we're not using GNU ld we use -z text
  18808. # though, which does catch some bad symbols but isn't as heavy-handed
  18809. # as -z defs.
  18810. no_undefined_flag_GCJ='${wl}-z,text'
  18811. allow_undefined_flag_GCJ='${wl}-z,nodefs'
  18812. archive_cmds_need_lc_GCJ=no
  18813. hardcode_shlibpath_var_GCJ=no
  18814. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  18815. hardcode_libdir_separator_GCJ=':'
  18816. link_all_deplibs_GCJ=yes
  18817. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  18818. runpath_var='LD_RUN_PATH'
  18819. if test "$GCC" = yes; then
  18820. archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  18821. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  18822. else
  18823. archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  18824. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  18825. fi
  18826. ;;
  18827. uts4*)
  18828. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  18829. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  18830. hardcode_shlibpath_var_GCJ=no
  18831. ;;
  18832. *)
  18833. ld_shlibs_GCJ=no
  18834. ;;
  18835. esac
  18836. fi
  18837. { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  18838. echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  18839. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  18840. #
  18841. # Do we need to explicitly link libc?
  18842. #
  18843. case "x$archive_cmds_need_lc_GCJ" in
  18844. x|xyes)
  18845. # Assume -lc should be added
  18846. archive_cmds_need_lc_GCJ=yes
  18847. if test "$enable_shared" = yes && test "$GCC" = yes; then
  18848. case $archive_cmds_GCJ in
  18849. *'~'*)
  18850. # FIXME: we may have to deal with multi-command sequences.
  18851. ;;
  18852. '$CC '*)
  18853. # Test whether the compiler implicitly links with -lc since on some
  18854. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  18855. # to ld, don't add -lc before -lgcc.
  18856. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  18857. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  18858. $rm conftest*
  18859. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  18860. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18861. (eval $ac_compile) 2>&5
  18862. ac_status=$?
  18863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18864. (exit $ac_status); } 2>conftest.err; then
  18865. soname=conftest
  18866. lib=conftest
  18867. libobjs=conftest.$ac_objext
  18868. deplibs=
  18869. wl=$lt_prog_compiler_wl_GCJ
  18870. pic_flag=$lt_prog_compiler_pic_GCJ
  18871. compiler_flags=-v
  18872. linker_flags=-v
  18873. verstring=
  18874. output_objdir=.
  18875. libname=conftest
  18876. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  18877. allow_undefined_flag_GCJ=
  18878. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  18879. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  18880. ac_status=$?
  18881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18882. (exit $ac_status); }
  18883. then
  18884. archive_cmds_need_lc_GCJ=no
  18885. else
  18886. archive_cmds_need_lc_GCJ=yes
  18887. fi
  18888. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  18889. else
  18890. cat conftest.err 1>&5
  18891. fi
  18892. $rm conftest*
  18893. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  18894. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  18895. ;;
  18896. esac
  18897. fi
  18898. ;;
  18899. esac
  18900. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  18901. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  18902. library_names_spec=
  18903. libname_spec='lib$name'
  18904. soname_spec=
  18905. shrext_cmds=".so"
  18906. postinstall_cmds=
  18907. postuninstall_cmds=
  18908. finish_cmds=
  18909. finish_eval=
  18910. shlibpath_var=
  18911. shlibpath_overrides_runpath=unknown
  18912. version_type=none
  18913. dynamic_linker="$host_os ld.so"
  18914. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  18915. need_lib_prefix=unknown
  18916. hardcode_into_libs=no
  18917. # when you set need_version to no, make sure it does not cause -set_version
  18918. # flags to be left without arguments
  18919. need_version=unknown
  18920. case $host_os in
  18921. aix3*)
  18922. version_type=linux
  18923. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  18924. shlibpath_var=LIBPATH
  18925. # AIX 3 has no versioning support, so we append a major version to the name.
  18926. soname_spec='${libname}${release}${shared_ext}$major'
  18927. ;;
  18928. aix[4-9]*)
  18929. version_type=linux
  18930. need_lib_prefix=no
  18931. need_version=no
  18932. hardcode_into_libs=yes
  18933. if test "$host_cpu" = ia64; then
  18934. # AIX 5 supports IA64
  18935. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  18936. shlibpath_var=LD_LIBRARY_PATH
  18937. else
  18938. # With GCC up to 2.95.x, collect2 would create an import file
  18939. # for dependence libraries. The import file would start with
  18940. # the line `#! .'. This would cause the generated library to
  18941. # depend on `.', always an invalid library. This was fixed in
  18942. # development snapshots of GCC prior to 3.0.
  18943. case $host_os in
  18944. aix4 | aix4.[01] | aix4.[01].*)
  18945. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  18946. echo ' yes '
  18947. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  18948. :
  18949. else
  18950. can_build_shared=no
  18951. fi
  18952. ;;
  18953. esac
  18954. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  18955. # soname into executable. Probably we can add versioning support to
  18956. # collect2, so additional links can be useful in future.
  18957. if test "$aix_use_runtimelinking" = yes; then
  18958. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  18959. # instead of lib<name>.a to let people know that these are not
  18960. # typical AIX shared libraries.
  18961. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18962. else
  18963. # We preserve .a as extension for shared libraries through AIX4.2
  18964. # and later when we are not doing run time linking.
  18965. library_names_spec='${libname}${release}.a $libname.a'
  18966. soname_spec='${libname}${release}${shared_ext}$major'
  18967. fi
  18968. shlibpath_var=LIBPATH
  18969. fi
  18970. ;;
  18971. amigaos*)
  18972. library_names_spec='$libname.ixlibrary $libname.a'
  18973. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  18974. 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'
  18975. ;;
  18976. beos*)
  18977. library_names_spec='${libname}${shared_ext}'
  18978. dynamic_linker="$host_os ld.so"
  18979. shlibpath_var=LIBRARY_PATH
  18980. ;;
  18981. bsdi[45]*)
  18982. version_type=linux
  18983. need_version=no
  18984. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18985. soname_spec='${libname}${release}${shared_ext}$major'
  18986. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  18987. shlibpath_var=LD_LIBRARY_PATH
  18988. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  18989. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  18990. # the default ld.so.conf also contains /usr/contrib/lib and
  18991. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  18992. # libtool to hard-code these into programs
  18993. ;;
  18994. cygwin* | mingw* | pw32*)
  18995. version_type=windows
  18996. shrext_cmds=".dll"
  18997. need_version=no
  18998. need_lib_prefix=no
  18999. case $GCC,$host_os in
  19000. yes,cygwin* | yes,mingw* | yes,pw32*)
  19001. library_names_spec='$libname.dll.a'
  19002. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  19003. postinstall_cmds='base_file=`basename \${file}`~
  19004. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  19005. dldir=$destdir/`dirname \$dlpath`~
  19006. test -d \$dldir || mkdir -p \$dldir~
  19007. $install_prog $dir/$dlname \$dldir/$dlname~
  19008. chmod a+x \$dldir/$dlname'
  19009. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  19010. dlpath=$dir/\$dldll~
  19011. $rm \$dlpath'
  19012. shlibpath_overrides_runpath=yes
  19013. case $host_os in
  19014. cygwin*)
  19015. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  19016. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  19017. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  19018. ;;
  19019. mingw*)
  19020. # MinGW DLLs use traditional 'lib' prefix
  19021. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  19022. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  19023. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  19024. # It is most probably a Windows format PATH printed by
  19025. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  19026. # path with ; separators, and with drive letters. We can handle the
  19027. # drive letters (cygwin fileutils understands them), so leave them,
  19028. # especially as we might pass files found there to a mingw objdump,
  19029. # which wouldn't understand a cygwinified path. Ahh.
  19030. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  19031. else
  19032. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  19033. fi
  19034. ;;
  19035. pw32*)
  19036. # pw32 DLLs use 'pw' prefix rather than 'lib'
  19037. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  19038. ;;
  19039. esac
  19040. ;;
  19041. *)
  19042. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  19043. ;;
  19044. esac
  19045. dynamic_linker='Win32 ld.exe'
  19046. # FIXME: first we should search . and the directory the executable is in
  19047. shlibpath_var=PATH
  19048. ;;
  19049. darwin* | rhapsody*)
  19050. dynamic_linker="$host_os dyld"
  19051. version_type=darwin
  19052. need_lib_prefix=no
  19053. need_version=no
  19054. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  19055. soname_spec='${libname}${release}${major}$shared_ext'
  19056. shlibpath_overrides_runpath=yes
  19057. shlibpath_var=DYLD_LIBRARY_PATH
  19058. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  19059. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  19060. ;;
  19061. dgux*)
  19062. version_type=linux
  19063. need_lib_prefix=no
  19064. need_version=no
  19065. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  19066. soname_spec='${libname}${release}${shared_ext}$major'
  19067. shlibpath_var=LD_LIBRARY_PATH
  19068. ;;
  19069. freebsd1*)
  19070. dynamic_linker=no
  19071. ;;
  19072. freebsd* | dragonfly*)
  19073. # DragonFly does not have aout. When/if they implement a new
  19074. # versioning mechanism, adjust this.
  19075. if test -x /usr/bin/objformat; then
  19076. objformat=`/usr/bin/objformat`
  19077. else
  19078. case $host_os in
  19079. freebsd[123]*) objformat=aout ;;
  19080. *) objformat=elf ;;
  19081. esac
  19082. fi
  19083. version_type=freebsd-$objformat
  19084. case $version_type in
  19085. freebsd-elf*)
  19086. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  19087. need_version=no
  19088. need_lib_prefix=no
  19089. ;;
  19090. freebsd-*)
  19091. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  19092. need_version=yes
  19093. ;;
  19094. esac
  19095. shlibpath_var=LD_LIBRARY_PATH
  19096. case $host_os in
  19097. freebsd2*)
  19098. shlibpath_overrides_runpath=yes
  19099. ;;
  19100. freebsd3.[01]* | freebsdelf3.[01]*)
  19101. shlibpath_overrides_runpath=yes
  19102. hardcode_into_libs=yes
  19103. ;;
  19104. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  19105. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  19106. shlibpath_overrides_runpath=no
  19107. hardcode_into_libs=yes
  19108. ;;
  19109. *) # from 4.6 on, and DragonFly
  19110. shlibpath_overrides_runpath=yes
  19111. hardcode_into_libs=yes
  19112. ;;
  19113. esac
  19114. ;;
  19115. gnu*)
  19116. version_type=linux
  19117. need_lib_prefix=no
  19118. need_version=no
  19119. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  19120. soname_spec='${libname}${release}${shared_ext}$major'
  19121. shlibpath_var=LD_LIBRARY_PATH
  19122. hardcode_into_libs=yes
  19123. ;;
  19124. hpux9* | hpux10* | hpux11*)
  19125. # Give a soname corresponding to the major version so that dld.sl refuses to
  19126. # link against other versions.
  19127. version_type=sunos
  19128. need_lib_prefix=no
  19129. need_version=no
  19130. case $host_cpu in
  19131. ia64*)
  19132. shrext_cmds='.so'
  19133. hardcode_into_libs=yes
  19134. dynamic_linker="$host_os dld.so"
  19135. shlibpath_var=LD_LIBRARY_PATH
  19136. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  19137. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19138. soname_spec='${libname}${release}${shared_ext}$major'
  19139. if test "X$HPUX_IA64_MODE" = X32; then
  19140. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  19141. else
  19142. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  19143. fi
  19144. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  19145. ;;
  19146. hppa*64*)
  19147. shrext_cmds='.sl'
  19148. hardcode_into_libs=yes
  19149. dynamic_linker="$host_os dld.sl"
  19150. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  19151. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  19152. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19153. soname_spec='${libname}${release}${shared_ext}$major'
  19154. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  19155. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  19156. ;;
  19157. *)
  19158. shrext_cmds='.sl'
  19159. dynamic_linker="$host_os dld.sl"
  19160. shlibpath_var=SHLIB_PATH
  19161. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  19162. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19163. soname_spec='${libname}${release}${shared_ext}$major'
  19164. ;;
  19165. esac
  19166. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  19167. postinstall_cmds='chmod 555 $lib'
  19168. ;;
  19169. interix[3-9]*)
  19170. version_type=linux
  19171. need_lib_prefix=no
  19172. need_version=no
  19173. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  19174. soname_spec='${libname}${release}${shared_ext}$major'
  19175. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  19176. shlibpath_var=LD_LIBRARY_PATH
  19177. shlibpath_overrides_runpath=no
  19178. hardcode_into_libs=yes
  19179. ;;
  19180. irix5* | irix6* | nonstopux*)
  19181. case $host_os in
  19182. nonstopux*) version_type=nonstopux ;;
  19183. *)
  19184. if test "$lt_cv_prog_gnu_ld" = yes; then
  19185. version_type=linux
  19186. else
  19187. version_type=irix
  19188. fi ;;
  19189. esac
  19190. need_lib_prefix=no
  19191. need_version=no
  19192. soname_spec='${libname}${release}${shared_ext}$major'
  19193. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  19194. case $host_os in
  19195. irix5* | nonstopux*)
  19196. libsuff= shlibsuff=
  19197. ;;
  19198. *)
  19199. case $LD in # libtool.m4 will add one of these switches to LD
  19200. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  19201. libsuff= shlibsuff= libmagic=32-bit;;
  19202. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  19203. libsuff=32 shlibsuff=N32 libmagic=N32;;
  19204. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  19205. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  19206. *) libsuff= shlibsuff= libmagic=never-match;;
  19207. esac
  19208. ;;
  19209. esac
  19210. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  19211. shlibpath_overrides_runpath=no
  19212. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  19213. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  19214. hardcode_into_libs=yes
  19215. ;;
  19216. # No shared lib support for Linux oldld, aout, or coff.
  19217. linux*oldld* | linux*aout* | linux*coff*)
  19218. dynamic_linker=no
  19219. ;;
  19220. # This must be Linux ELF.
  19221. linux* | k*bsd*-gnu)
  19222. version_type=linux
  19223. need_lib_prefix=no
  19224. need_version=no
  19225. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19226. soname_spec='${libname}${release}${shared_ext}$major'
  19227. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  19228. shlibpath_var=LD_LIBRARY_PATH
  19229. shlibpath_overrides_runpath=no
  19230. # This implies no fast_install, which is unacceptable.
  19231. # Some rework will be needed to allow for fast_install
  19232. # before this can be enabled.
  19233. hardcode_into_libs=yes
  19234. # Append ld.so.conf contents to the search path
  19235. if test -f /etc/ld.so.conf; then
  19236. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  19237. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  19238. fi
  19239. # We used to test for /lib/ld.so.1 and disable shared libraries on
  19240. # powerpc, because MkLinux only supported shared libraries with the
  19241. # GNU dynamic linker. Since this was broken with cross compilers,
  19242. # most powerpc-linux boxes support dynamic linking these days and
  19243. # people can always --disable-shared, the test was removed, and we
  19244. # assume the GNU/Linux dynamic linker is in use.
  19245. dynamic_linker='GNU/Linux ld.so'
  19246. ;;
  19247. netbsdelf*-gnu)
  19248. version_type=linux
  19249. need_lib_prefix=no
  19250. need_version=no
  19251. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  19252. soname_spec='${libname}${release}${shared_ext}$major'
  19253. shlibpath_var=LD_LIBRARY_PATH
  19254. shlibpath_overrides_runpath=no
  19255. hardcode_into_libs=yes
  19256. dynamic_linker='NetBSD ld.elf_so'
  19257. ;;
  19258. netbsd*)
  19259. version_type=sunos
  19260. need_lib_prefix=no
  19261. need_version=no
  19262. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  19263. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  19264. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  19265. dynamic_linker='NetBSD (a.out) ld.so'
  19266. else
  19267. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  19268. soname_spec='${libname}${release}${shared_ext}$major'
  19269. dynamic_linker='NetBSD ld.elf_so'
  19270. fi
  19271. shlibpath_var=LD_LIBRARY_PATH
  19272. shlibpath_overrides_runpath=yes
  19273. hardcode_into_libs=yes
  19274. ;;
  19275. newsos6)
  19276. version_type=linux
  19277. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19278. shlibpath_var=LD_LIBRARY_PATH
  19279. shlibpath_overrides_runpath=yes
  19280. ;;
  19281. nto-qnx*)
  19282. version_type=linux
  19283. need_lib_prefix=no
  19284. need_version=no
  19285. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19286. soname_spec='${libname}${release}${shared_ext}$major'
  19287. shlibpath_var=LD_LIBRARY_PATH
  19288. shlibpath_overrides_runpath=yes
  19289. ;;
  19290. openbsd*)
  19291. version_type=sunos
  19292. sys_lib_dlsearch_path_spec="/usr/lib"
  19293. need_lib_prefix=no
  19294. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  19295. case $host_os in
  19296. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  19297. *) need_version=no ;;
  19298. esac
  19299. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  19300. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  19301. shlibpath_var=LD_LIBRARY_PATH
  19302. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  19303. case $host_os in
  19304. openbsd2.[89] | openbsd2.[89].*)
  19305. shlibpath_overrides_runpath=no
  19306. ;;
  19307. *)
  19308. shlibpath_overrides_runpath=yes
  19309. ;;
  19310. esac
  19311. else
  19312. shlibpath_overrides_runpath=yes
  19313. fi
  19314. ;;
  19315. os2*)
  19316. libname_spec='$name'
  19317. shrext_cmds=".dll"
  19318. need_lib_prefix=no
  19319. library_names_spec='$libname${shared_ext} $libname.a'
  19320. dynamic_linker='OS/2 ld.exe'
  19321. shlibpath_var=LIBPATH
  19322. ;;
  19323. osf3* | osf4* | osf5*)
  19324. version_type=osf
  19325. need_lib_prefix=no
  19326. need_version=no
  19327. soname_spec='${libname}${release}${shared_ext}$major'
  19328. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19329. shlibpath_var=LD_LIBRARY_PATH
  19330. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  19331. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  19332. ;;
  19333. rdos*)
  19334. dynamic_linker=no
  19335. ;;
  19336. solaris*)
  19337. version_type=linux
  19338. need_lib_prefix=no
  19339. need_version=no
  19340. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19341. soname_spec='${libname}${release}${shared_ext}$major'
  19342. shlibpath_var=LD_LIBRARY_PATH
  19343. shlibpath_overrides_runpath=yes
  19344. hardcode_into_libs=yes
  19345. # ldd complains unless libraries are executable
  19346. postinstall_cmds='chmod +x $lib'
  19347. ;;
  19348. sunos4*)
  19349. version_type=sunos
  19350. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  19351. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  19352. shlibpath_var=LD_LIBRARY_PATH
  19353. shlibpath_overrides_runpath=yes
  19354. if test "$with_gnu_ld" = yes; then
  19355. need_lib_prefix=no
  19356. fi
  19357. need_version=yes
  19358. ;;
  19359. sysv4 | sysv4.3*)
  19360. version_type=linux
  19361. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19362. soname_spec='${libname}${release}${shared_ext}$major'
  19363. shlibpath_var=LD_LIBRARY_PATH
  19364. case $host_vendor in
  19365. sni)
  19366. shlibpath_overrides_runpath=no
  19367. need_lib_prefix=no
  19368. export_dynamic_flag_spec='${wl}-Blargedynsym'
  19369. runpath_var=LD_RUN_PATH
  19370. ;;
  19371. siemens)
  19372. need_lib_prefix=no
  19373. ;;
  19374. motorola)
  19375. need_lib_prefix=no
  19376. need_version=no
  19377. shlibpath_overrides_runpath=no
  19378. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  19379. ;;
  19380. esac
  19381. ;;
  19382. sysv4*MP*)
  19383. if test -d /usr/nec ;then
  19384. version_type=linux
  19385. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  19386. soname_spec='$libname${shared_ext}.$major'
  19387. shlibpath_var=LD_LIBRARY_PATH
  19388. fi
  19389. ;;
  19390. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  19391. version_type=freebsd-elf
  19392. need_lib_prefix=no
  19393. need_version=no
  19394. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  19395. soname_spec='${libname}${release}${shared_ext}$major'
  19396. shlibpath_var=LD_LIBRARY_PATH
  19397. hardcode_into_libs=yes
  19398. if test "$with_gnu_ld" = yes; then
  19399. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  19400. shlibpath_overrides_runpath=no
  19401. else
  19402. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  19403. shlibpath_overrides_runpath=yes
  19404. case $host_os in
  19405. sco3.2v5*)
  19406. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  19407. ;;
  19408. esac
  19409. fi
  19410. sys_lib_dlsearch_path_spec='/usr/lib'
  19411. ;;
  19412. uts4*)
  19413. version_type=linux
  19414. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19415. soname_spec='${libname}${release}${shared_ext}$major'
  19416. shlibpath_var=LD_LIBRARY_PATH
  19417. ;;
  19418. *)
  19419. dynamic_linker=no
  19420. ;;
  19421. esac
  19422. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  19423. echo "${ECHO_T}$dynamic_linker" >&6; }
  19424. test "$dynamic_linker" = no && can_build_shared=no
  19425. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  19426. echo $ECHO_N "(cached) $ECHO_C" >&6
  19427. else
  19428. lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  19429. fi
  19430. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  19431. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  19432. echo $ECHO_N "(cached) $ECHO_C" >&6
  19433. else
  19434. lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  19435. fi
  19436. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  19437. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  19438. if test "$GCC" = yes; then
  19439. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  19440. fi
  19441. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  19442. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  19443. hardcode_action_GCJ=
  19444. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  19445. test -n "$runpath_var_GCJ" || \
  19446. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  19447. # We can hardcode non-existant directories.
  19448. if test "$hardcode_direct_GCJ" != no &&
  19449. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  19450. # have to relink, otherwise we might link with an installed library
  19451. # when we should be linking with a yet-to-be-installed one
  19452. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  19453. test "$hardcode_minus_L_GCJ" != no; then
  19454. # Linking always hardcodes the temporary library directory.
  19455. hardcode_action_GCJ=relink
  19456. else
  19457. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  19458. hardcode_action_GCJ=immediate
  19459. fi
  19460. else
  19461. # We cannot hardcode anything, or else we can only hardcode existing
  19462. # directories.
  19463. hardcode_action_GCJ=unsupported
  19464. fi
  19465. { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  19466. echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  19467. if test "$hardcode_action_GCJ" = relink; then
  19468. # Fast installation is not supported
  19469. enable_fast_install=no
  19470. elif test "$shlibpath_overrides_runpath" = yes ||
  19471. test "$enable_shared" = no; then
  19472. # Fast installation is not necessary
  19473. enable_fast_install=needless
  19474. fi
  19475. # The else clause should only fire when bootstrapping the
  19476. # libtool distribution, otherwise you forgot to ship ltmain.sh
  19477. # with your package, and you will get complaints that there are
  19478. # no rules to generate ltmain.sh.
  19479. if test -f "$ltmain"; then
  19480. # See if we are running on zsh, and set the options which allow our commands through
  19481. # without removal of \ escapes.
  19482. if test -n "${ZSH_VERSION+set}" ; then
  19483. setopt NO_GLOB_SUBST
  19484. fi
  19485. # Now quote all the things that may contain metacharacters while being
  19486. # careful not to overquote the AC_SUBSTed values. We take copies of the
  19487. # variables and quote the copies for generation of the libtool script.
  19488. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  19489. SED SHELL STRIP \
  19490. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  19491. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  19492. deplibs_check_method reload_flag reload_cmds need_locks \
  19493. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  19494. lt_cv_sys_global_symbol_to_c_name_address \
  19495. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  19496. old_postinstall_cmds old_postuninstall_cmds \
  19497. compiler_GCJ \
  19498. CC_GCJ \
  19499. LD_GCJ \
  19500. lt_prog_compiler_wl_GCJ \
  19501. lt_prog_compiler_pic_GCJ \
  19502. lt_prog_compiler_static_GCJ \
  19503. lt_prog_compiler_no_builtin_flag_GCJ \
  19504. export_dynamic_flag_spec_GCJ \
  19505. thread_safe_flag_spec_GCJ \
  19506. whole_archive_flag_spec_GCJ \
  19507. enable_shared_with_static_runtimes_GCJ \
  19508. old_archive_cmds_GCJ \
  19509. old_archive_from_new_cmds_GCJ \
  19510. predep_objects_GCJ \
  19511. postdep_objects_GCJ \
  19512. predeps_GCJ \
  19513. postdeps_GCJ \
  19514. compiler_lib_search_path_GCJ \
  19515. compiler_lib_search_dirs_GCJ \
  19516. archive_cmds_GCJ \
  19517. archive_expsym_cmds_GCJ \
  19518. postinstall_cmds_GCJ \
  19519. postuninstall_cmds_GCJ \
  19520. old_archive_from_expsyms_cmds_GCJ \
  19521. allow_undefined_flag_GCJ \
  19522. no_undefined_flag_GCJ \
  19523. export_symbols_cmds_GCJ \
  19524. hardcode_libdir_flag_spec_GCJ \
  19525. hardcode_libdir_flag_spec_ld_GCJ \
  19526. hardcode_libdir_separator_GCJ \
  19527. hardcode_automatic_GCJ \
  19528. module_cmds_GCJ \
  19529. module_expsym_cmds_GCJ \
  19530. lt_cv_prog_compiler_c_o_GCJ \
  19531. fix_srcfile_path_GCJ \
  19532. exclude_expsyms_GCJ \
  19533. include_expsyms_GCJ; do
  19534. case $var in
  19535. old_archive_cmds_GCJ | \
  19536. old_archive_from_new_cmds_GCJ | \
  19537. archive_cmds_GCJ | \
  19538. archive_expsym_cmds_GCJ | \
  19539. module_cmds_GCJ | \
  19540. module_expsym_cmds_GCJ | \
  19541. old_archive_from_expsyms_cmds_GCJ | \
  19542. export_symbols_cmds_GCJ | \
  19543. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  19544. postinstall_cmds | postuninstall_cmds | \
  19545. old_postinstall_cmds | old_postuninstall_cmds | \
  19546. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  19547. # Double-quote double-evaled strings.
  19548. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  19549. ;;
  19550. *)
  19551. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  19552. ;;
  19553. esac
  19554. done
  19555. case $lt_echo in
  19556. *'\$0 --fallback-echo"')
  19557. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  19558. ;;
  19559. esac
  19560. cfgfile="$ofile"
  19561. cat <<__EOF__ >> "$cfgfile"
  19562. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  19563. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  19564. # Shell to use when invoking shell scripts.
  19565. SHELL=$lt_SHELL
  19566. # Whether or not to build shared libraries.
  19567. build_libtool_libs=$enable_shared
  19568. # Whether or not to build static libraries.
  19569. build_old_libs=$enable_static
  19570. # Whether or not to add -lc for building shared libraries.
  19571. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  19572. # Whether or not to disallow shared libs when runtime libs are static
  19573. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  19574. # Whether or not to optimize for fast installation.
  19575. fast_install=$enable_fast_install
  19576. # The host system.
  19577. host_alias=$host_alias
  19578. host=$host
  19579. host_os=$host_os
  19580. # The build system.
  19581. build_alias=$build_alias
  19582. build=$build
  19583. build_os=$build_os
  19584. # An echo program that does not interpret backslashes.
  19585. echo=$lt_echo
  19586. # The archiver.
  19587. AR=$lt_AR
  19588. AR_FLAGS=$lt_AR_FLAGS
  19589. # A C compiler.
  19590. LTCC=$lt_LTCC
  19591. # LTCC compiler flags.
  19592. LTCFLAGS=$lt_LTCFLAGS
  19593. # A language-specific compiler.
  19594. CC=$lt_compiler_GCJ
  19595. # Is the compiler the GNU C compiler?
  19596. with_gcc=$GCC_GCJ
  19597. # An ERE matcher.
  19598. EGREP=$lt_EGREP
  19599. # The linker used to build libraries.
  19600. LD=$lt_LD_GCJ
  19601. # Whether we need hard or soft links.
  19602. LN_S=$lt_LN_S
  19603. # A BSD-compatible nm program.
  19604. NM=$lt_NM
  19605. # A symbol stripping program
  19606. STRIP=$lt_STRIP
  19607. # Used to examine libraries when file_magic_cmd begins "file"
  19608. MAGIC_CMD=$MAGIC_CMD
  19609. # Used on cygwin: DLL creation program.
  19610. DLLTOOL="$DLLTOOL"
  19611. # Used on cygwin: object dumper.
  19612. OBJDUMP="$OBJDUMP"
  19613. # Used on cygwin: assembler.
  19614. AS="$AS"
  19615. # The name of the directory that contains temporary libtool files.
  19616. objdir=$objdir
  19617. # How to create reloadable object files.
  19618. reload_flag=$lt_reload_flag
  19619. reload_cmds=$lt_reload_cmds
  19620. # How to pass a linker flag through the compiler.
  19621. wl=$lt_lt_prog_compiler_wl_GCJ
  19622. # Object file suffix (normally "o").
  19623. objext="$ac_objext"
  19624. # Old archive suffix (normally "a").
  19625. libext="$libext"
  19626. # Shared library suffix (normally ".so").
  19627. shrext_cmds='$shrext_cmds'
  19628. # Executable file suffix (normally "").
  19629. exeext="$exeext"
  19630. # Additional compiler flags for building library objects.
  19631. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  19632. pic_mode=$pic_mode
  19633. # What is the maximum length of a command?
  19634. max_cmd_len=$lt_cv_sys_max_cmd_len
  19635. # Does compiler simultaneously support -c and -o options?
  19636. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  19637. # Must we lock files when doing compilation?
  19638. need_locks=$lt_need_locks
  19639. # Do we need the lib prefix for modules?
  19640. need_lib_prefix=$need_lib_prefix
  19641. # Do we need a version for libraries?
  19642. need_version=$need_version
  19643. # Whether dlopen is supported.
  19644. dlopen_support=$enable_dlopen
  19645. # Whether dlopen of programs is supported.
  19646. dlopen_self=$enable_dlopen_self
  19647. # Whether dlopen of statically linked programs is supported.
  19648. dlopen_self_static=$enable_dlopen_self_static
  19649. # Compiler flag to prevent dynamic linking.
  19650. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  19651. # Compiler flag to turn off builtin functions.
  19652. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  19653. # Compiler flag to allow reflexive dlopens.
  19654. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  19655. # Compiler flag to generate shared objects directly from archives.
  19656. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  19657. # Compiler flag to generate thread-safe objects.
  19658. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  19659. # Library versioning type.
  19660. version_type=$version_type
  19661. # Format of library name prefix.
  19662. libname_spec=$lt_libname_spec
  19663. # List of archive names. First name is the real one, the rest are links.
  19664. # The last name is the one that the linker finds with -lNAME.
  19665. library_names_spec=$lt_library_names_spec
  19666. # The coded name of the library, if different from the real name.
  19667. soname_spec=$lt_soname_spec
  19668. # Commands used to build and install an old-style archive.
  19669. RANLIB=$lt_RANLIB
  19670. old_archive_cmds=$lt_old_archive_cmds_GCJ
  19671. old_postinstall_cmds=$lt_old_postinstall_cmds
  19672. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  19673. # Create an old-style archive from a shared archive.
  19674. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  19675. # Create a temporary old-style archive to link instead of a shared archive.
  19676. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  19677. # Commands used to build and install a shared archive.
  19678. archive_cmds=$lt_archive_cmds_GCJ
  19679. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  19680. postinstall_cmds=$lt_postinstall_cmds
  19681. postuninstall_cmds=$lt_postuninstall_cmds
  19682. # Commands used to build a loadable module (assumed same as above if empty)
  19683. module_cmds=$lt_module_cmds_GCJ
  19684. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  19685. # Commands to strip libraries.
  19686. old_striplib=$lt_old_striplib
  19687. striplib=$lt_striplib
  19688. # Dependencies to place before the objects being linked to create a
  19689. # shared library.
  19690. predep_objects=$lt_predep_objects_GCJ
  19691. # Dependencies to place after the objects being linked to create a
  19692. # shared library.
  19693. postdep_objects=$lt_postdep_objects_GCJ
  19694. # Dependencies to place before the objects being linked to create a
  19695. # shared library.
  19696. predeps=$lt_predeps_GCJ
  19697. # Dependencies to place after the objects being linked to create a
  19698. # shared library.
  19699. postdeps=$lt_postdeps_GCJ
  19700. # The directories searched by this compiler when creating a shared
  19701. # library
  19702. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
  19703. # The library search path used internally by the compiler when linking
  19704. # a shared library.
  19705. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  19706. # Method to check whether dependent libraries are shared objects.
  19707. deplibs_check_method=$lt_deplibs_check_method
  19708. # Command to use when deplibs_check_method == file_magic.
  19709. file_magic_cmd=$lt_file_magic_cmd
  19710. # Flag that allows shared libraries with undefined symbols to be built.
  19711. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  19712. # Flag that forces no undefined symbols.
  19713. no_undefined_flag=$lt_no_undefined_flag_GCJ
  19714. # Commands used to finish a libtool library installation in a directory.
  19715. finish_cmds=$lt_finish_cmds
  19716. # Same as above, but a single script fragment to be evaled but not shown.
  19717. finish_eval=$lt_finish_eval
  19718. # Take the output of nm and produce a listing of raw symbols and C names.
  19719. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  19720. # Transform the output of nm in a proper C declaration
  19721. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  19722. # Transform the output of nm in a C name address pair
  19723. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  19724. # This is the shared library runtime path variable.
  19725. runpath_var=$runpath_var
  19726. # This is the shared library path variable.
  19727. shlibpath_var=$shlibpath_var
  19728. # Is shlibpath searched before the hard-coded library search path?
  19729. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  19730. # How to hardcode a shared library path into an executable.
  19731. hardcode_action=$hardcode_action_GCJ
  19732. # Whether we should hardcode library paths into libraries.
  19733. hardcode_into_libs=$hardcode_into_libs
  19734. # Flag to hardcode \$libdir into a binary during linking.
  19735. # This must work even if \$libdir does not exist.
  19736. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  19737. # If ld is used when linking, flag to hardcode \$libdir into
  19738. # a binary during linking. This must work even if \$libdir does
  19739. # not exist.
  19740. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  19741. # Whether we need a single -rpath flag with a separated argument.
  19742. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  19743. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  19744. # resulting binary.
  19745. hardcode_direct=$hardcode_direct_GCJ
  19746. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  19747. # resulting binary.
  19748. hardcode_minus_L=$hardcode_minus_L_GCJ
  19749. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  19750. # the resulting binary.
  19751. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  19752. # Set to yes if building a shared library automatically hardcodes DIR into the library
  19753. # and all subsequent libraries and executables linked against it.
  19754. hardcode_automatic=$hardcode_automatic_GCJ
  19755. # Variables whose values should be saved in libtool wrapper scripts and
  19756. # restored at relink time.
  19757. variables_saved_for_relink="$variables_saved_for_relink"
  19758. # Whether libtool must link a program against all its dependency libraries.
  19759. link_all_deplibs=$link_all_deplibs_GCJ
  19760. # Compile-time system search path for libraries
  19761. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  19762. # Run-time system search path for libraries
  19763. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  19764. # Fix the shell variable \$srcfile for the compiler.
  19765. fix_srcfile_path=$lt_fix_srcfile_path
  19766. # Set to yes if exported symbols are required.
  19767. always_export_symbols=$always_export_symbols_GCJ
  19768. # The commands to list exported symbols.
  19769. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  19770. # The commands to extract the exported symbol list from a shared archive.
  19771. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  19772. # Symbols that should not be listed in the preloaded symbols.
  19773. exclude_expsyms=$lt_exclude_expsyms_GCJ
  19774. # Symbols that must always be exported.
  19775. include_expsyms=$lt_include_expsyms_GCJ
  19776. # ### END LIBTOOL TAG CONFIG: $tagname
  19777. __EOF__
  19778. else
  19779. # If there is no Makefile yet, we rely on a make rule to execute
  19780. # `config.status --recheck' to rerun these tests and create the
  19781. # libtool script then.
  19782. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  19783. if test -f "$ltmain_in"; then
  19784. test -f Makefile && make "$ltmain"
  19785. fi
  19786. fi
  19787. ac_ext=c
  19788. ac_cpp='$CPP $CPPFLAGS'
  19789. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19790. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19791. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19792. CC="$lt_save_CC"
  19793. else
  19794. tagname=""
  19795. fi
  19796. ;;
  19797. RC)
  19798. # Source file extension for RC test sources.
  19799. ac_ext=rc
  19800. # Object file extension for compiled RC test sources.
  19801. objext=o
  19802. objext_RC=$objext
  19803. # Code to be used in simple compile tests
  19804. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  19805. # Code to be used in simple link tests
  19806. lt_simple_link_test_code="$lt_simple_compile_test_code"
  19807. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  19808. # If no C compiler was specified, use CC.
  19809. LTCC=${LTCC-"$CC"}
  19810. # If no C compiler flags were specified, use CFLAGS.
  19811. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  19812. # Allow CC to be a program name with arguments.
  19813. compiler=$CC
  19814. # save warnings/boilerplate of simple test code
  19815. ac_outfile=conftest.$ac_objext
  19816. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  19817. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  19818. _lt_compiler_boilerplate=`cat conftest.err`
  19819. $rm conftest*
  19820. ac_outfile=conftest.$ac_objext
  19821. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  19822. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  19823. _lt_linker_boilerplate=`cat conftest.err`
  19824. $rm -r conftest*
  19825. # Allow CC to be a program name with arguments.
  19826. lt_save_CC="$CC"
  19827. CC=${RC-"windres"}
  19828. compiler=$CC
  19829. compiler_RC=$CC
  19830. for cc_temp in $compiler""; do
  19831. case $cc_temp in
  19832. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  19833. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  19834. \-*) ;;
  19835. *) break;;
  19836. esac
  19837. done
  19838. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  19839. lt_cv_prog_compiler_c_o_RC=yes
  19840. # The else clause should only fire when bootstrapping the
  19841. # libtool distribution, otherwise you forgot to ship ltmain.sh
  19842. # with your package, and you will get complaints that there are
  19843. # no rules to generate ltmain.sh.
  19844. if test -f "$ltmain"; then
  19845. # See if we are running on zsh, and set the options which allow our commands through
  19846. # without removal of \ escapes.
  19847. if test -n "${ZSH_VERSION+set}" ; then
  19848. setopt NO_GLOB_SUBST
  19849. fi
  19850. # Now quote all the things that may contain metacharacters while being
  19851. # careful not to overquote the AC_SUBSTed values. We take copies of the
  19852. # variables and quote the copies for generation of the libtool script.
  19853. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  19854. SED SHELL STRIP \
  19855. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  19856. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  19857. deplibs_check_method reload_flag reload_cmds need_locks \
  19858. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  19859. lt_cv_sys_global_symbol_to_c_name_address \
  19860. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  19861. old_postinstall_cmds old_postuninstall_cmds \
  19862. compiler_RC \
  19863. CC_RC \
  19864. LD_RC \
  19865. lt_prog_compiler_wl_RC \
  19866. lt_prog_compiler_pic_RC \
  19867. lt_prog_compiler_static_RC \
  19868. lt_prog_compiler_no_builtin_flag_RC \
  19869. export_dynamic_flag_spec_RC \
  19870. thread_safe_flag_spec_RC \
  19871. whole_archive_flag_spec_RC \
  19872. enable_shared_with_static_runtimes_RC \
  19873. old_archive_cmds_RC \
  19874. old_archive_from_new_cmds_RC \
  19875. predep_objects_RC \
  19876. postdep_objects_RC \
  19877. predeps_RC \
  19878. postdeps_RC \
  19879. compiler_lib_search_path_RC \
  19880. compiler_lib_search_dirs_RC \
  19881. archive_cmds_RC \
  19882. archive_expsym_cmds_RC \
  19883. postinstall_cmds_RC \
  19884. postuninstall_cmds_RC \
  19885. old_archive_from_expsyms_cmds_RC \
  19886. allow_undefined_flag_RC \
  19887. no_undefined_flag_RC \
  19888. export_symbols_cmds_RC \
  19889. hardcode_libdir_flag_spec_RC \
  19890. hardcode_libdir_flag_spec_ld_RC \
  19891. hardcode_libdir_separator_RC \
  19892. hardcode_automatic_RC \
  19893. module_cmds_RC \
  19894. module_expsym_cmds_RC \
  19895. lt_cv_prog_compiler_c_o_RC \
  19896. fix_srcfile_path_RC \
  19897. exclude_expsyms_RC \
  19898. include_expsyms_RC; do
  19899. case $var in
  19900. old_archive_cmds_RC | \
  19901. old_archive_from_new_cmds_RC | \
  19902. archive_cmds_RC | \
  19903. archive_expsym_cmds_RC | \
  19904. module_cmds_RC | \
  19905. module_expsym_cmds_RC | \
  19906. old_archive_from_expsyms_cmds_RC | \
  19907. export_symbols_cmds_RC | \
  19908. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  19909. postinstall_cmds | postuninstall_cmds | \
  19910. old_postinstall_cmds | old_postuninstall_cmds | \
  19911. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  19912. # Double-quote double-evaled strings.
  19913. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  19914. ;;
  19915. *)
  19916. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  19917. ;;
  19918. esac
  19919. done
  19920. case $lt_echo in
  19921. *'\$0 --fallback-echo"')
  19922. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  19923. ;;
  19924. esac
  19925. cfgfile="$ofile"
  19926. cat <<__EOF__ >> "$cfgfile"
  19927. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  19928. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  19929. # Shell to use when invoking shell scripts.
  19930. SHELL=$lt_SHELL
  19931. # Whether or not to build shared libraries.
  19932. build_libtool_libs=$enable_shared
  19933. # Whether or not to build static libraries.
  19934. build_old_libs=$enable_static
  19935. # Whether or not to add -lc for building shared libraries.
  19936. build_libtool_need_lc=$archive_cmds_need_lc_RC
  19937. # Whether or not to disallow shared libs when runtime libs are static
  19938. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  19939. # Whether or not to optimize for fast installation.
  19940. fast_install=$enable_fast_install
  19941. # The host system.
  19942. host_alias=$host_alias
  19943. host=$host
  19944. host_os=$host_os
  19945. # The build system.
  19946. build_alias=$build_alias
  19947. build=$build
  19948. build_os=$build_os
  19949. # An echo program that does not interpret backslashes.
  19950. echo=$lt_echo
  19951. # The archiver.
  19952. AR=$lt_AR
  19953. AR_FLAGS=$lt_AR_FLAGS
  19954. # A C compiler.
  19955. LTCC=$lt_LTCC
  19956. # LTCC compiler flags.
  19957. LTCFLAGS=$lt_LTCFLAGS
  19958. # A language-specific compiler.
  19959. CC=$lt_compiler_RC
  19960. # Is the compiler the GNU C compiler?
  19961. with_gcc=$GCC_RC
  19962. # An ERE matcher.
  19963. EGREP=$lt_EGREP
  19964. # The linker used to build libraries.
  19965. LD=$lt_LD_RC
  19966. # Whether we need hard or soft links.
  19967. LN_S=$lt_LN_S
  19968. # A BSD-compatible nm program.
  19969. NM=$lt_NM
  19970. # A symbol stripping program
  19971. STRIP=$lt_STRIP
  19972. # Used to examine libraries when file_magic_cmd begins "file"
  19973. MAGIC_CMD=$MAGIC_CMD
  19974. # Used on cygwin: DLL creation program.
  19975. DLLTOOL="$DLLTOOL"
  19976. # Used on cygwin: object dumper.
  19977. OBJDUMP="$OBJDUMP"
  19978. # Used on cygwin: assembler.
  19979. AS="$AS"
  19980. # The name of the directory that contains temporary libtool files.
  19981. objdir=$objdir
  19982. # How to create reloadable object files.
  19983. reload_flag=$lt_reload_flag
  19984. reload_cmds=$lt_reload_cmds
  19985. # How to pass a linker flag through the compiler.
  19986. wl=$lt_lt_prog_compiler_wl_RC
  19987. # Object file suffix (normally "o").
  19988. objext="$ac_objext"
  19989. # Old archive suffix (normally "a").
  19990. libext="$libext"
  19991. # Shared library suffix (normally ".so").
  19992. shrext_cmds='$shrext_cmds'
  19993. # Executable file suffix (normally "").
  19994. exeext="$exeext"
  19995. # Additional compiler flags for building library objects.
  19996. pic_flag=$lt_lt_prog_compiler_pic_RC
  19997. pic_mode=$pic_mode
  19998. # What is the maximum length of a command?
  19999. max_cmd_len=$lt_cv_sys_max_cmd_len
  20000. # Does compiler simultaneously support -c and -o options?
  20001. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  20002. # Must we lock files when doing compilation?
  20003. need_locks=$lt_need_locks
  20004. # Do we need the lib prefix for modules?
  20005. need_lib_prefix=$need_lib_prefix
  20006. # Do we need a version for libraries?
  20007. need_version=$need_version
  20008. # Whether dlopen is supported.
  20009. dlopen_support=$enable_dlopen
  20010. # Whether dlopen of programs is supported.
  20011. dlopen_self=$enable_dlopen_self
  20012. # Whether dlopen of statically linked programs is supported.
  20013. dlopen_self_static=$enable_dlopen_self_static
  20014. # Compiler flag to prevent dynamic linking.
  20015. link_static_flag=$lt_lt_prog_compiler_static_RC
  20016. # Compiler flag to turn off builtin functions.
  20017. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  20018. # Compiler flag to allow reflexive dlopens.
  20019. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  20020. # Compiler flag to generate shared objects directly from archives.
  20021. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  20022. # Compiler flag to generate thread-safe objects.
  20023. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  20024. # Library versioning type.
  20025. version_type=$version_type
  20026. # Format of library name prefix.
  20027. libname_spec=$lt_libname_spec
  20028. # List of archive names. First name is the real one, the rest are links.
  20029. # The last name is the one that the linker finds with -lNAME.
  20030. library_names_spec=$lt_library_names_spec
  20031. # The coded name of the library, if different from the real name.
  20032. soname_spec=$lt_soname_spec
  20033. # Commands used to build and install an old-style archive.
  20034. RANLIB=$lt_RANLIB
  20035. old_archive_cmds=$lt_old_archive_cmds_RC
  20036. old_postinstall_cmds=$lt_old_postinstall_cmds
  20037. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  20038. # Create an old-style archive from a shared archive.
  20039. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  20040. # Create a temporary old-style archive to link instead of a shared archive.
  20041. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  20042. # Commands used to build and install a shared archive.
  20043. archive_cmds=$lt_archive_cmds_RC
  20044. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  20045. postinstall_cmds=$lt_postinstall_cmds
  20046. postuninstall_cmds=$lt_postuninstall_cmds
  20047. # Commands used to build a loadable module (assumed same as above if empty)
  20048. module_cmds=$lt_module_cmds_RC
  20049. module_expsym_cmds=$lt_module_expsym_cmds_RC
  20050. # Commands to strip libraries.
  20051. old_striplib=$lt_old_striplib
  20052. striplib=$lt_striplib
  20053. # Dependencies to place before the objects being linked to create a
  20054. # shared library.
  20055. predep_objects=$lt_predep_objects_RC
  20056. # Dependencies to place after the objects being linked to create a
  20057. # shared library.
  20058. postdep_objects=$lt_postdep_objects_RC
  20059. # Dependencies to place before the objects being linked to create a
  20060. # shared library.
  20061. predeps=$lt_predeps_RC
  20062. # Dependencies to place after the objects being linked to create a
  20063. # shared library.
  20064. postdeps=$lt_postdeps_RC
  20065. # The directories searched by this compiler when creating a shared
  20066. # library
  20067. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  20068. # The library search path used internally by the compiler when linking
  20069. # a shared library.
  20070. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  20071. # Method to check whether dependent libraries are shared objects.
  20072. deplibs_check_method=$lt_deplibs_check_method
  20073. # Command to use when deplibs_check_method == file_magic.
  20074. file_magic_cmd=$lt_file_magic_cmd
  20075. # Flag that allows shared libraries with undefined symbols to be built.
  20076. allow_undefined_flag=$lt_allow_undefined_flag_RC
  20077. # Flag that forces no undefined symbols.
  20078. no_undefined_flag=$lt_no_undefined_flag_RC
  20079. # Commands used to finish a libtool library installation in a directory.
  20080. finish_cmds=$lt_finish_cmds
  20081. # Same as above, but a single script fragment to be evaled but not shown.
  20082. finish_eval=$lt_finish_eval
  20083. # Take the output of nm and produce a listing of raw symbols and C names.
  20084. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  20085. # Transform the output of nm in a proper C declaration
  20086. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  20087. # Transform the output of nm in a C name address pair
  20088. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  20089. # This is the shared library runtime path variable.
  20090. runpath_var=$runpath_var
  20091. # This is the shared library path variable.
  20092. shlibpath_var=$shlibpath_var
  20093. # Is shlibpath searched before the hard-coded library search path?
  20094. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  20095. # How to hardcode a shared library path into an executable.
  20096. hardcode_action=$hardcode_action_RC
  20097. # Whether we should hardcode library paths into libraries.
  20098. hardcode_into_libs=$hardcode_into_libs
  20099. # Flag to hardcode \$libdir into a binary during linking.
  20100. # This must work even if \$libdir does not exist.
  20101. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  20102. # If ld is used when linking, flag to hardcode \$libdir into
  20103. # a binary during linking. This must work even if \$libdir does
  20104. # not exist.
  20105. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  20106. # Whether we need a single -rpath flag with a separated argument.
  20107. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  20108. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  20109. # resulting binary.
  20110. hardcode_direct=$hardcode_direct_RC
  20111. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  20112. # resulting binary.
  20113. hardcode_minus_L=$hardcode_minus_L_RC
  20114. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  20115. # the resulting binary.
  20116. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  20117. # Set to yes if building a shared library automatically hardcodes DIR into the library
  20118. # and all subsequent libraries and executables linked against it.
  20119. hardcode_automatic=$hardcode_automatic_RC
  20120. # Variables whose values should be saved in libtool wrapper scripts and
  20121. # restored at relink time.
  20122. variables_saved_for_relink="$variables_saved_for_relink"
  20123. # Whether libtool must link a program against all its dependency libraries.
  20124. link_all_deplibs=$link_all_deplibs_RC
  20125. # Compile-time system search path for libraries
  20126. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  20127. # Run-time system search path for libraries
  20128. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  20129. # Fix the shell variable \$srcfile for the compiler.
  20130. fix_srcfile_path=$lt_fix_srcfile_path
  20131. # Set to yes if exported symbols are required.
  20132. always_export_symbols=$always_export_symbols_RC
  20133. # The commands to list exported symbols.
  20134. export_symbols_cmds=$lt_export_symbols_cmds_RC
  20135. # The commands to extract the exported symbol list from a shared archive.
  20136. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  20137. # Symbols that should not be listed in the preloaded symbols.
  20138. exclude_expsyms=$lt_exclude_expsyms_RC
  20139. # Symbols that must always be exported.
  20140. include_expsyms=$lt_include_expsyms_RC
  20141. # ### END LIBTOOL TAG CONFIG: $tagname
  20142. __EOF__
  20143. else
  20144. # If there is no Makefile yet, we rely on a make rule to execute
  20145. # `config.status --recheck' to rerun these tests and create the
  20146. # libtool script then.
  20147. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  20148. if test -f "$ltmain_in"; then
  20149. test -f Makefile && make "$ltmain"
  20150. fi
  20151. fi
  20152. ac_ext=c
  20153. ac_cpp='$CPP $CPPFLAGS'
  20154. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20155. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20156. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20157. CC="$lt_save_CC"
  20158. ;;
  20159. *)
  20160. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  20161. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  20162. { (exit 1); exit 1; }; }
  20163. ;;
  20164. esac
  20165. # Append the new tag name to the list of available tags.
  20166. if test -n "$tagname" ; then
  20167. available_tags="$available_tags $tagname"
  20168. fi
  20169. fi
  20170. done
  20171. IFS="$lt_save_ifs"
  20172. # Now substitute the updated list of available tags.
  20173. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  20174. mv "${ofile}T" "$ofile"
  20175. chmod +x "$ofile"
  20176. else
  20177. rm -f "${ofile}T"
  20178. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  20179. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  20180. { (exit 1); exit 1; }; }
  20181. fi
  20182. fi
  20183. # This can be used to rebuild libtool when needed
  20184. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  20185. # Always use our own libtool.
  20186. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  20187. # Prevent multiple expansion
  20188. { echo "$as_me:$LINENO: checking if we need -no-undefined" >&5
  20189. echo $ECHO_N "checking if we need -no-undefined... $ECHO_C" >&6; }
  20190. case $host in
  20191. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  20192. need_no_undefined=yes
  20193. ;;
  20194. *)
  20195. need_no_undefined=no
  20196. ;;
  20197. esac
  20198. { echo "$as_me:$LINENO: result: $need_no_undefined" >&5
  20199. echo "${ECHO_T}$need_no_undefined" >&6; }
  20200. if test x$need_no_undefined = xyes; then
  20201. NO_UNDEFINED_TRUE=
  20202. NO_UNDEFINED_FALSE='#'
  20203. else
  20204. NO_UNDEFINED_TRUE='#'
  20205. NO_UNDEFINED_FALSE=
  20206. fi
  20207. { echo "$as_me:$LINENO: checking if we need -mimpure-text" >&5
  20208. echo $ECHO_N "checking if we need -mimpure-text... $ECHO_C" >&6; }
  20209. mimpure=no
  20210. case $host in
  20211. *-*-solaris2*)
  20212. if test "$GCC" = "yes"; then
  20213. mimpure="yes"
  20214. fi
  20215. ;;
  20216. *)
  20217. ;;
  20218. esac
  20219. { echo "$as_me:$LINENO: result: $mimpure" >&5
  20220. echo "${ECHO_T}$mimpure" >&6; }
  20221. if test x$mimpure = xyes; then
  20222. MIMPURE_TRUE=
  20223. MIMPURE_FALSE='#'
  20224. else
  20225. MIMPURE_TRUE='#'
  20226. MIMPURE_FALSE=
  20227. fi
  20228. if false; then
  20229. STATICLIB_TRUE=
  20230. STATICLIB_FALSE='#'
  20231. else
  20232. STATICLIB_TRUE='#'
  20233. STATICLIB_FALSE=
  20234. fi
  20235. { echo "$as_me:$LINENO: checking if we need BUILDING_LIBCURL" >&5
  20236. echo $ECHO_N "checking if we need BUILDING_LIBCURL... $ECHO_C" >&6; }
  20237. case $host in
  20238. *-*-mingw*)
  20239. cat >>confdefs.h <<\_ACEOF
  20240. #define BUILDING_LIBCURL 1
  20241. _ACEOF
  20242. { echo "$as_me:$LINENO: result: yes" >&5
  20243. echo "${ECHO_T}yes" >&6; }
  20244. { echo "$as_me:$LINENO: checking if we need CURL_STATICLIB" >&5
  20245. echo $ECHO_N "checking if we need CURL_STATICLIB... $ECHO_C" >&6; }
  20246. if test "X$enable_shared" = "Xno"
  20247. then
  20248. cat >>confdefs.h <<\_ACEOF
  20249. #define CURL_STATICLIB 1
  20250. _ACEOF
  20251. { echo "$as_me:$LINENO: result: yes" >&5
  20252. echo "${ECHO_T}yes" >&6; }
  20253. if true; then
  20254. STATICLIB_TRUE=
  20255. STATICLIB_FALSE='#'
  20256. else
  20257. STATICLIB_TRUE='#'
  20258. STATICLIB_FALSE=
  20259. fi
  20260. else
  20261. { echo "$as_me:$LINENO: result: no" >&5
  20262. echo "${ECHO_T}no" >&6; }
  20263. fi
  20264. ;;
  20265. *)
  20266. { echo "$as_me:$LINENO: result: no" >&5
  20267. echo "${ECHO_T}no" >&6; }
  20268. ;;
  20269. esac
  20270. # Determine whether all dependent libraries must be specified when linking
  20271. if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
  20272. then
  20273. REQUIRE_LIB_DEPS=no
  20274. else
  20275. REQUIRE_LIB_DEPS=yes
  20276. fi
  20277. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  20278. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  20279. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  20280. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  20281. echo $ECHO_N "(cached) $ECHO_C" >&6
  20282. else
  20283. cat >conftest.make <<\_ACEOF
  20284. SHELL = /bin/sh
  20285. all:
  20286. @echo '@@@%%%=$(MAKE)=@@@%%%'
  20287. _ACEOF
  20288. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  20289. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  20290. *@@@%%%=?*=@@@%%%*)
  20291. eval ac_cv_prog_make_${ac_make}_set=yes;;
  20292. *)
  20293. eval ac_cv_prog_make_${ac_make}_set=no;;
  20294. esac
  20295. rm -f conftest.make
  20296. fi
  20297. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  20298. { echo "$as_me:$LINENO: result: yes" >&5
  20299. echo "${ECHO_T}yes" >&6; }
  20300. SET_MAKE=
  20301. else
  20302. { echo "$as_me:$LINENO: result: no" >&5
  20303. echo "${ECHO_T}no" >&6; }
  20304. SET_MAKE="MAKE=${MAKE-make}"
  20305. fi
  20306. { echo "$as_me:$LINENO: checking for inline" >&5
  20307. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  20308. if test "${ac_cv_c_inline+set}" = set; then
  20309. echo $ECHO_N "(cached) $ECHO_C" >&6
  20310. else
  20311. ac_cv_c_inline=no
  20312. for ac_kw in inline __inline__ __inline; do
  20313. cat >conftest.$ac_ext <<_ACEOF
  20314. /* confdefs.h. */
  20315. _ACEOF
  20316. cat confdefs.h >>conftest.$ac_ext
  20317. cat >>conftest.$ac_ext <<_ACEOF
  20318. /* end confdefs.h. */
  20319. #ifndef __cplusplus
  20320. typedef int foo_t;
  20321. static $ac_kw foo_t static_foo () {return 0; }
  20322. $ac_kw foo_t foo () {return 0; }
  20323. #endif
  20324. _ACEOF
  20325. rm -f conftest.$ac_objext
  20326. if { (ac_try="$ac_compile"
  20327. case "(($ac_try" in
  20328. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20329. *) ac_try_echo=$ac_try;;
  20330. esac
  20331. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20332. (eval "$ac_compile") 2>conftest.er1
  20333. ac_status=$?
  20334. grep -v '^ *+' conftest.er1 >conftest.err
  20335. rm -f conftest.er1
  20336. cat conftest.err >&5
  20337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20338. (exit $ac_status); } && {
  20339. test -z "$ac_c_werror_flag" ||
  20340. test ! -s conftest.err
  20341. } && test -s conftest.$ac_objext; then
  20342. ac_cv_c_inline=$ac_kw
  20343. else
  20344. echo "$as_me: failed program was:" >&5
  20345. sed 's/^/| /' conftest.$ac_ext >&5
  20346. fi
  20347. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20348. test "$ac_cv_c_inline" != no && break
  20349. done
  20350. fi
  20351. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  20352. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  20353. case $ac_cv_c_inline in
  20354. inline | yes) ;;
  20355. *)
  20356. case $ac_cv_c_inline in
  20357. no) ac_val=;;
  20358. *) ac_val=$ac_cv_c_inline;;
  20359. esac
  20360. cat >>confdefs.h <<_ACEOF
  20361. #ifndef __cplusplus
  20362. #define inline $ac_val
  20363. #endif
  20364. _ACEOF
  20365. ;;
  20366. esac
  20367. case $host in
  20368. #
  20369. x86_64*linux*)
  20370. #
  20371. if test "z$ICC" = "z"; then
  20372. ICC="no"
  20373. { echo "$as_me:$LINENO: checking for icc in use" >&5
  20374. echo $ECHO_N "checking for icc in use... $ECHO_C" >&6; }
  20375. if test "$GCC" = "yes"; then
  20376. cat >conftest.$ac_ext <<_ACEOF
  20377. /* confdefs.h. */
  20378. _ACEOF
  20379. cat confdefs.h >>conftest.$ac_ext
  20380. cat >>conftest.$ac_ext <<_ACEOF
  20381. /* end confdefs.h. */
  20382. __INTEL_COMPILER
  20383. _ACEOF
  20384. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  20385. $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then
  20386. ICC="no"
  20387. else
  20388. ICC="yes"
  20389. { echo "$as_me:$LINENO: result: yes" >&5
  20390. echo "${ECHO_T}yes" >&6; }
  20391. fi
  20392. rm -f conftest*
  20393. fi
  20394. if test "$ICC" = "no"; then
  20395. # this is not ICC
  20396. { echo "$as_me:$LINENO: result: no" >&5
  20397. echo "${ECHO_T}no" >&6; }
  20398. fi
  20399. fi
  20400. #
  20401. if test "$ICC" = "yes"; then
  20402. { echo "$as_me:$LINENO: checking icc version" >&5
  20403. echo $ECHO_N "checking icc version... $ECHO_C" >&6; }
  20404. iccver=`$CC -dumpversion`
  20405. iccnhi=`echo $iccver | cut -d . -f1`
  20406. iccnlo=`echo $iccver | cut -d . -f2`
  20407. iccnum=`(expr $iccnhi "*" 100 + $iccnlo) 2>/dev/null`
  20408. { echo "$as_me:$LINENO: result: $iccver" >&5
  20409. echo "${ECHO_T}$iccver" >&6; }
  20410. #
  20411. if test "$iccnum" -ge "900" && test "$iccnum" -lt "1000"; then
  20412. CFLAGS="$CFLAGS -i-dynamic"
  20413. fi
  20414. #
  20415. if test "$iccnum" -ge "1000"; then
  20416. CFLAGS="$CFLAGS -shared-intel"
  20417. fi
  20418. #
  20419. fi
  20420. ;;
  20421. #
  20422. esac
  20423. { echo "$as_me:$LINENO: checking whether we are using the IBM C compiler" >&5
  20424. echo $ECHO_N "checking whether we are using the IBM C compiler... $ECHO_C" >&6; }
  20425. if test -z "$SED"; then
  20426. { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
  20427. echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
  20428. { (exit 1); exit 1; }; }
  20429. fi
  20430. if test -z "$GREP"; then
  20431. { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
  20432. echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
  20433. { (exit 1); exit 1; }; }
  20434. fi
  20435. tmp_exp=""
  20436. cat >conftest.$ac_ext <<_ACEOF
  20437. /* confdefs.h. */
  20438. _ACEOF
  20439. cat confdefs.h >>conftest.$ac_ext
  20440. cat >>conftest.$ac_ext <<_ACEOF
  20441. /* end confdefs.h. */
  20442. #ifdef __IBMC__
  20443. CURL_DEF_TOKEN __IBMC__
  20444. #endif
  20445. _ACEOF
  20446. if { (ac_try="$ac_cpp conftest.$ac_ext"
  20447. case "(($ac_try" in
  20448. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20449. *) ac_try_echo=$ac_try;;
  20450. esac
  20451. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20452. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  20453. ac_status=$?
  20454. grep -v '^ *+' conftest.er1 >conftest.err
  20455. rm -f conftest.er1
  20456. cat conftest.err >&5
  20457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20458. (exit $ac_status); } >/dev/null && {
  20459. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  20460. test ! -s conftest.err
  20461. }; then
  20462. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  20463. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  20464. "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
  20465. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  20466. if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
  20467. tmp_exp=""
  20468. fi
  20469. else
  20470. echo "$as_me: failed program was:" >&5
  20471. sed 's/^/| /' conftest.$ac_ext >&5
  20472. fi
  20473. rm -f conftest.err conftest.$ac_ext
  20474. if test -z "$tmp_exp"; then
  20475. curl_cv_have_def___IBMC__=no
  20476. else
  20477. curl_cv_have_def___IBMC__=yes
  20478. curl_cv_def___IBMC__=$tmp_exp
  20479. fi
  20480. if test "$curl_cv_have_def___IBMC__" = "yes"; then
  20481. { echo "$as_me:$LINENO: result: yes" >&5
  20482. echo "${ECHO_T}yes" >&6; }
  20483. CFLAGS="$CFLAGS -qthreaded"
  20484. CFLAGS="$CFLAGS -qnoansialias"
  20485. CFLAGS="$CFLAGS -qhalt=e"
  20486. else
  20487. { echo "$as_me:$LINENO: result: no" >&5
  20488. echo "${ECHO_T}no" >&6; }
  20489. fi
  20490. { echo "$as_me:$LINENO: checking whether we are using the DEC/Compaq C compiler" >&5
  20491. echo $ECHO_N "checking whether we are using the DEC/Compaq C compiler... $ECHO_C" >&6; }
  20492. if test -z "$SED"; then
  20493. { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
  20494. echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
  20495. { (exit 1); exit 1; }; }
  20496. fi
  20497. if test -z "$GREP"; then
  20498. { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
  20499. echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
  20500. { (exit 1); exit 1; }; }
  20501. fi
  20502. tmp_exp=""
  20503. cat >conftest.$ac_ext <<_ACEOF
  20504. /* confdefs.h. */
  20505. _ACEOF
  20506. cat confdefs.h >>conftest.$ac_ext
  20507. cat >>conftest.$ac_ext <<_ACEOF
  20508. /* end confdefs.h. */
  20509. #ifdef __DECC
  20510. CURL_DEF_TOKEN __DECC
  20511. #endif
  20512. _ACEOF
  20513. if { (ac_try="$ac_cpp conftest.$ac_ext"
  20514. case "(($ac_try" in
  20515. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20516. *) ac_try_echo=$ac_try;;
  20517. esac
  20518. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20519. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  20520. ac_status=$?
  20521. grep -v '^ *+' conftest.er1 >conftest.err
  20522. rm -f conftest.er1
  20523. cat conftest.err >&5
  20524. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20525. (exit $ac_status); } >/dev/null && {
  20526. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  20527. test ! -s conftest.err
  20528. }; then
  20529. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  20530. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  20531. "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
  20532. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  20533. if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
  20534. tmp_exp=""
  20535. fi
  20536. else
  20537. echo "$as_me: failed program was:" >&5
  20538. sed 's/^/| /' conftest.$ac_ext >&5
  20539. fi
  20540. rm -f conftest.err conftest.$ac_ext
  20541. if test -z "$tmp_exp"; then
  20542. curl_cv_have_def___DECC=no
  20543. else
  20544. curl_cv_have_def___DECC=yes
  20545. curl_cv_def___DECC=$tmp_exp
  20546. fi
  20547. if test -z "$SED"; then
  20548. { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
  20549. echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
  20550. { (exit 1); exit 1; }; }
  20551. fi
  20552. if test -z "$GREP"; then
  20553. { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
  20554. echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
  20555. { (exit 1); exit 1; }; }
  20556. fi
  20557. tmp_exp=""
  20558. cat >conftest.$ac_ext <<_ACEOF
  20559. /* confdefs.h. */
  20560. _ACEOF
  20561. cat confdefs.h >>conftest.$ac_ext
  20562. cat >>conftest.$ac_ext <<_ACEOF
  20563. /* end confdefs.h. */
  20564. #ifdef __DECC_VER
  20565. CURL_DEF_TOKEN __DECC_VER
  20566. #endif
  20567. _ACEOF
  20568. if { (ac_try="$ac_cpp conftest.$ac_ext"
  20569. case "(($ac_try" in
  20570. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20571. *) ac_try_echo=$ac_try;;
  20572. esac
  20573. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20574. (eval "$ac_cpp conftest.$ac_ext") 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); } >/dev/null && {
  20581. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  20582. test ! -s conftest.err
  20583. }; then
  20584. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  20585. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  20586. "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
  20587. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  20588. if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
  20589. tmp_exp=""
  20590. fi
  20591. else
  20592. echo "$as_me: failed program was:" >&5
  20593. sed 's/^/| /' conftest.$ac_ext >&5
  20594. fi
  20595. rm -f conftest.err conftest.$ac_ext
  20596. if test -z "$tmp_exp"; then
  20597. curl_cv_have_def___DECC_VER=no
  20598. else
  20599. curl_cv_have_def___DECC_VER=yes
  20600. curl_cv_def___DECC_VER=$tmp_exp
  20601. fi
  20602. if test "$curl_cv_have_def___DECC" = "yes" &&
  20603. test "$curl_cv_have_def___DECC_VER" = "yes"; then
  20604. { echo "$as_me:$LINENO: result: yes" >&5
  20605. echo "${ECHO_T}yes" >&6; }
  20606. CFLAGS="$CFLAGS -std1"
  20607. CFLAGS="$CFLAGS -noansi_alias"
  20608. CFLAGS="$CFLAGS -msg_enable level3"
  20609. CFLAGS="$CFLAGS -warnprotos"
  20610. CFLAGS="$CFLAGS -msg_fatal toofewargs,toomanyargs"
  20611. else
  20612. { echo "$as_me:$LINENO: result: no" >&5
  20613. echo "${ECHO_T}no" >&6; }
  20614. fi
  20615. { echo "$as_me:$LINENO: checking if compiler halts on compilation errors" >&5
  20616. echo $ECHO_N "checking if compiler halts on compilation errors... $ECHO_C" >&6; }
  20617. cat >conftest.$ac_ext <<_ACEOF
  20618. /* confdefs.h. */
  20619. _ACEOF
  20620. cat confdefs.h >>conftest.$ac_ext
  20621. cat >>conftest.$ac_ext <<_ACEOF
  20622. /* end confdefs.h. */
  20623. int
  20624. main ()
  20625. {
  20626. force compilation error
  20627. ;
  20628. return 0;
  20629. }
  20630. _ACEOF
  20631. rm -f conftest.$ac_objext
  20632. if { (ac_try="$ac_compile"
  20633. case "(($ac_try" in
  20634. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20635. *) ac_try_echo=$ac_try;;
  20636. esac
  20637. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20638. (eval "$ac_compile") 2>conftest.er1
  20639. ac_status=$?
  20640. grep -v '^ *+' conftest.er1 >conftest.err
  20641. rm -f conftest.er1
  20642. cat conftest.err >&5
  20643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20644. (exit $ac_status); } && {
  20645. test -z "$ac_c_werror_flag" ||
  20646. test ! -s conftest.err
  20647. } && test -s conftest.$ac_objext; then
  20648. { echo "$as_me:$LINENO: result: no" >&5
  20649. echo "${ECHO_T}no" >&6; }
  20650. { { echo "$as_me:$LINENO: error: compiler does not halt on compilation errors." >&5
  20651. echo "$as_me: error: compiler does not halt on compilation errors." >&2;}
  20652. { (exit 1); exit 1; }; }
  20653. else
  20654. echo "$as_me: failed program was:" >&5
  20655. sed 's/^/| /' conftest.$ac_ext >&5
  20656. { echo "$as_me:$LINENO: result: yes" >&5
  20657. echo "${ECHO_T}yes" >&6; }
  20658. fi
  20659. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20660. { echo "$as_me:$LINENO: checking if compiler halts on negative sized arrays" >&5
  20661. echo $ECHO_N "checking if compiler halts on negative sized arrays... $ECHO_C" >&6; }
  20662. cat >conftest.$ac_ext <<_ACEOF
  20663. /* confdefs.h. */
  20664. _ACEOF
  20665. cat confdefs.h >>conftest.$ac_ext
  20666. cat >>conftest.$ac_ext <<_ACEOF
  20667. /* end confdefs.h. */
  20668. typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
  20669. int
  20670. main ()
  20671. {
  20672. bad_t dummy;
  20673. ;
  20674. return 0;
  20675. }
  20676. _ACEOF
  20677. rm -f conftest.$ac_objext
  20678. if { (ac_try="$ac_compile"
  20679. case "(($ac_try" in
  20680. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20681. *) ac_try_echo=$ac_try;;
  20682. esac
  20683. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20684. (eval "$ac_compile") 2>conftest.er1
  20685. ac_status=$?
  20686. grep -v '^ *+' conftest.er1 >conftest.err
  20687. rm -f conftest.er1
  20688. cat conftest.err >&5
  20689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20690. (exit $ac_status); } && {
  20691. test -z "$ac_c_werror_flag" ||
  20692. test ! -s conftest.err
  20693. } && test -s conftest.$ac_objext; then
  20694. { echo "$as_me:$LINENO: result: no" >&5
  20695. echo "${ECHO_T}no" >&6; }
  20696. { { echo "$as_me:$LINENO: error: compiler does not halt on negative sized arrays." >&5
  20697. echo "$as_me: error: compiler does not halt on negative sized arrays." >&2;}
  20698. { (exit 1); exit 1; }; }
  20699. else
  20700. echo "$as_me: failed program was:" >&5
  20701. sed 's/^/| /' conftest.$ac_ext >&5
  20702. { echo "$as_me:$LINENO: result: yes" >&5
  20703. echo "${ECHO_T}yes" >&6; }
  20704. fi
  20705. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20706. { echo "$as_me:$LINENO: checking for windows.h" >&5
  20707. echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
  20708. if test "${ac_cv_header_windows_h+set}" = set; then
  20709. echo $ECHO_N "(cached) $ECHO_C" >&6
  20710. else
  20711. cat >conftest.$ac_ext <<_ACEOF
  20712. /* confdefs.h. */
  20713. _ACEOF
  20714. cat confdefs.h >>conftest.$ac_ext
  20715. cat >>conftest.$ac_ext <<_ACEOF
  20716. /* end confdefs.h. */
  20717. #undef inline
  20718. #ifndef WIN32_LEAN_AND_MEAN
  20719. #define WIN32_LEAN_AND_MEAN
  20720. #endif
  20721. #include <windows.h>
  20722. int
  20723. main ()
  20724. {
  20725. #if defined(__CYGWIN__) || defined(__CEGCC__)
  20726. HAVE_WINDOWS_H shall not be defined.
  20727. #else
  20728. int dummy=2*WINVER;
  20729. #endif
  20730. ;
  20731. return 0;
  20732. }
  20733. _ACEOF
  20734. rm -f conftest.$ac_objext
  20735. if { (ac_try="$ac_compile"
  20736. case "(($ac_try" in
  20737. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20738. *) ac_try_echo=$ac_try;;
  20739. esac
  20740. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20741. (eval "$ac_compile") 2>conftest.er1
  20742. ac_status=$?
  20743. grep -v '^ *+' conftest.er1 >conftest.err
  20744. rm -f conftest.er1
  20745. cat conftest.err >&5
  20746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20747. (exit $ac_status); } && {
  20748. test -z "$ac_c_werror_flag" ||
  20749. test ! -s conftest.err
  20750. } && test -s conftest.$ac_objext; then
  20751. ac_cv_header_windows_h="yes"
  20752. else
  20753. echo "$as_me: failed program was:" >&5
  20754. sed 's/^/| /' conftest.$ac_ext >&5
  20755. ac_cv_header_windows_h="no"
  20756. fi
  20757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20758. fi
  20759. { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
  20760. echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
  20761. case "$ac_cv_header_windows_h" in
  20762. yes)
  20763. cat >>confdefs.h <<_ACEOF
  20764. #define HAVE_WINDOWS_H 1
  20765. _ACEOF
  20766. cat >>confdefs.h <<_ACEOF
  20767. #define WIN32_LEAN_AND_MEAN 1
  20768. _ACEOF
  20769. ;;
  20770. esac
  20771. { echo "$as_me:$LINENO: checking whether build target is a native Windows one" >&5
  20772. echo $ECHO_N "checking whether build target is a native Windows one... $ECHO_C" >&6; }
  20773. if test "${ac_cv_native_windows+set}" = set; then
  20774. echo $ECHO_N "(cached) $ECHO_C" >&6
  20775. else
  20776. if test "$ac_cv_header_windows_h" = "no"; then
  20777. ac_cv_native_windows="no"
  20778. else
  20779. cat >conftest.$ac_ext <<_ACEOF
  20780. /* confdefs.h. */
  20781. _ACEOF
  20782. cat confdefs.h >>conftest.$ac_ext
  20783. cat >>conftest.$ac_ext <<_ACEOF
  20784. /* end confdefs.h. */
  20785. int
  20786. main ()
  20787. {
  20788. #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
  20789. (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
  20790. int dummy=1;
  20791. #else
  20792. Not a native Windows build target.
  20793. #endif
  20794. ;
  20795. return 0;
  20796. }
  20797. _ACEOF
  20798. rm -f conftest.$ac_objext
  20799. if { (ac_try="$ac_compile"
  20800. case "(($ac_try" in
  20801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20802. *) ac_try_echo=$ac_try;;
  20803. esac
  20804. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20805. (eval "$ac_compile") 2>conftest.er1
  20806. ac_status=$?
  20807. grep -v '^ *+' conftest.er1 >conftest.err
  20808. rm -f conftest.er1
  20809. cat conftest.err >&5
  20810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20811. (exit $ac_status); } && {
  20812. test -z "$ac_c_werror_flag" ||
  20813. test ! -s conftest.err
  20814. } && test -s conftest.$ac_objext; then
  20815. ac_cv_native_windows="yes"
  20816. else
  20817. echo "$as_me: failed program was:" >&5
  20818. sed 's/^/| /' conftest.$ac_ext >&5
  20819. ac_cv_native_windows="no"
  20820. fi
  20821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20822. fi
  20823. fi
  20824. { echo "$as_me:$LINENO: result: $ac_cv_native_windows" >&5
  20825. echo "${ECHO_T}$ac_cv_native_windows" >&6; }
  20826. case "$ac_cv_native_windows" in
  20827. yes)
  20828. cat >>confdefs.h <<_ACEOF
  20829. #define NATIVE_WINDOWS 1
  20830. _ACEOF
  20831. ;;
  20832. esac
  20833. case X-"$ac_cv_native_windows" in
  20834. X-yes)
  20835. { echo "$as_me:$LINENO: checking for winsock.h" >&5
  20836. echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
  20837. if test "${ac_cv_header_winsock_h+set}" = set; then
  20838. echo $ECHO_N "(cached) $ECHO_C" >&6
  20839. else
  20840. cat >conftest.$ac_ext <<_ACEOF
  20841. /* confdefs.h. */
  20842. _ACEOF
  20843. cat confdefs.h >>conftest.$ac_ext
  20844. cat >>conftest.$ac_ext <<_ACEOF
  20845. /* end confdefs.h. */
  20846. #undef inline
  20847. #ifndef WIN32_LEAN_AND_MEAN
  20848. #define WIN32_LEAN_AND_MEAN
  20849. #endif
  20850. #include <windows.h>
  20851. #include <winsock.h>
  20852. int
  20853. main ()
  20854. {
  20855. #if defined(__CYGWIN__) || defined(__CEGCC__)
  20856. HAVE_WINSOCK_H shall not be defined.
  20857. #else
  20858. int dummy=WSACleanup();
  20859. #endif
  20860. ;
  20861. return 0;
  20862. }
  20863. _ACEOF
  20864. rm -f conftest.$ac_objext
  20865. if { (ac_try="$ac_compile"
  20866. case "(($ac_try" in
  20867. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20868. *) ac_try_echo=$ac_try;;
  20869. esac
  20870. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20871. (eval "$ac_compile") 2>conftest.er1
  20872. ac_status=$?
  20873. grep -v '^ *+' conftest.er1 >conftest.err
  20874. rm -f conftest.er1
  20875. cat conftest.err >&5
  20876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20877. (exit $ac_status); } && {
  20878. test -z "$ac_c_werror_flag" ||
  20879. test ! -s conftest.err
  20880. } && test -s conftest.$ac_objext; then
  20881. ac_cv_header_winsock_h="yes"
  20882. else
  20883. echo "$as_me: failed program was:" >&5
  20884. sed 's/^/| /' conftest.$ac_ext >&5
  20885. ac_cv_header_winsock_h="no"
  20886. fi
  20887. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20888. fi
  20889. { echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
  20890. echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
  20891. case "$ac_cv_header_winsock_h" in
  20892. yes)
  20893. cat >>confdefs.h <<_ACEOF
  20894. #define HAVE_WINSOCK_H 1
  20895. _ACEOF
  20896. ;;
  20897. esac
  20898. { echo "$as_me:$LINENO: checking for winsock2.h" >&5
  20899. echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
  20900. if test "${ac_cv_header_winsock2_h+set}" = set; then
  20901. echo $ECHO_N "(cached) $ECHO_C" >&6
  20902. else
  20903. cat >conftest.$ac_ext <<_ACEOF
  20904. /* confdefs.h. */
  20905. _ACEOF
  20906. cat confdefs.h >>conftest.$ac_ext
  20907. cat >>conftest.$ac_ext <<_ACEOF
  20908. /* end confdefs.h. */
  20909. #undef inline
  20910. #ifndef WIN32_LEAN_AND_MEAN
  20911. #define WIN32_LEAN_AND_MEAN
  20912. #endif
  20913. #include <windows.h>
  20914. #include <winsock2.h>
  20915. int
  20916. main ()
  20917. {
  20918. #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
  20919. HAVE_WINSOCK2_H shall not be defined.
  20920. #else
  20921. int dummy=2*IPPROTO_ESP;
  20922. #endif
  20923. ;
  20924. return 0;
  20925. }
  20926. _ACEOF
  20927. rm -f conftest.$ac_objext
  20928. if { (ac_try="$ac_compile"
  20929. case "(($ac_try" in
  20930. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20931. *) ac_try_echo=$ac_try;;
  20932. esac
  20933. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20934. (eval "$ac_compile") 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. test -z "$ac_c_werror_flag" ||
  20942. test ! -s conftest.err
  20943. } && test -s conftest.$ac_objext; then
  20944. ac_cv_header_winsock2_h="yes"
  20945. else
  20946. echo "$as_me: failed program was:" >&5
  20947. sed 's/^/| /' conftest.$ac_ext >&5
  20948. ac_cv_header_winsock2_h="no"
  20949. fi
  20950. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20951. fi
  20952. { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
  20953. echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
  20954. case "$ac_cv_header_winsock2_h" in
  20955. yes)
  20956. cat >>confdefs.h <<_ACEOF
  20957. #define HAVE_WINSOCK2_H 1
  20958. _ACEOF
  20959. ;;
  20960. esac
  20961. { echo "$as_me:$LINENO: checking for ws2tcpip.h" >&5
  20962. echo $ECHO_N "checking for ws2tcpip.h... $ECHO_C" >&6; }
  20963. if test "${ac_cv_header_ws2tcpip_h+set}" = set; then
  20964. echo $ECHO_N "(cached) $ECHO_C" >&6
  20965. else
  20966. cat >conftest.$ac_ext <<_ACEOF
  20967. /* confdefs.h. */
  20968. _ACEOF
  20969. cat confdefs.h >>conftest.$ac_ext
  20970. cat >>conftest.$ac_ext <<_ACEOF
  20971. /* end confdefs.h. */
  20972. #undef inline
  20973. #ifndef WIN32_LEAN_AND_MEAN
  20974. #define WIN32_LEAN_AND_MEAN
  20975. #endif
  20976. #include <windows.h>
  20977. #include <winsock2.h>
  20978. #include <ws2tcpip.h>
  20979. int
  20980. main ()
  20981. {
  20982. #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
  20983. HAVE_WS2TCPIP_H shall not be defined.
  20984. #else
  20985. int dummy=2*IP_PKTINFO;
  20986. #endif
  20987. ;
  20988. return 0;
  20989. }
  20990. _ACEOF
  20991. rm -f conftest.$ac_objext
  20992. if { (ac_try="$ac_compile"
  20993. case "(($ac_try" in
  20994. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20995. *) ac_try_echo=$ac_try;;
  20996. esac
  20997. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20998. (eval "$ac_compile") 2>conftest.er1
  20999. ac_status=$?
  21000. grep -v '^ *+' conftest.er1 >conftest.err
  21001. rm -f conftest.er1
  21002. cat conftest.err >&5
  21003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21004. (exit $ac_status); } && {
  21005. test -z "$ac_c_werror_flag" ||
  21006. test ! -s conftest.err
  21007. } && test -s conftest.$ac_objext; then
  21008. ac_cv_header_ws2tcpip_h="yes"
  21009. else
  21010. echo "$as_me: failed program was:" >&5
  21011. sed 's/^/| /' conftest.$ac_ext >&5
  21012. ac_cv_header_ws2tcpip_h="no"
  21013. fi
  21014. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21015. fi
  21016. { echo "$as_me:$LINENO: result: $ac_cv_header_ws2tcpip_h" >&5
  21017. echo "${ECHO_T}$ac_cv_header_ws2tcpip_h" >&6; }
  21018. case "$ac_cv_header_ws2tcpip_h" in
  21019. yes)
  21020. cat >>confdefs.h <<_ACEOF
  21021. #define HAVE_WS2TCPIP_H 1
  21022. _ACEOF
  21023. ;;
  21024. esac
  21025. { echo "$as_me:$LINENO: checking for winldap.h" >&5
  21026. echo $ECHO_N "checking for winldap.h... $ECHO_C" >&6; }
  21027. if test "${ac_cv_header_winldap_h+set}" = set; then
  21028. echo $ECHO_N "(cached) $ECHO_C" >&6
  21029. else
  21030. cat >conftest.$ac_ext <<_ACEOF
  21031. /* confdefs.h. */
  21032. _ACEOF
  21033. cat confdefs.h >>conftest.$ac_ext
  21034. cat >>conftest.$ac_ext <<_ACEOF
  21035. /* end confdefs.h. */
  21036. #undef inline
  21037. #ifdef HAVE_WINDOWS_H
  21038. #ifndef WIN32_LEAN_AND_MEAN
  21039. #define WIN32_LEAN_AND_MEAN
  21040. #endif
  21041. #include <windows.h>
  21042. #endif
  21043. #include <winldap.h>
  21044. int
  21045. main ()
  21046. {
  21047. #if defined(__CYGWIN__) || defined(__CEGCC__)
  21048. HAVE_WINLDAP_H shall not be defined.
  21049. #else
  21050. LDAP *ldp = ldap_init("dummy", LDAP_PORT);
  21051. ULONG res = ldap_unbind(ldp);
  21052. #endif
  21053. ;
  21054. return 0;
  21055. }
  21056. _ACEOF
  21057. rm -f conftest.$ac_objext
  21058. if { (ac_try="$ac_compile"
  21059. case "(($ac_try" in
  21060. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21061. *) ac_try_echo=$ac_try;;
  21062. esac
  21063. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21064. (eval "$ac_compile") 2>conftest.er1
  21065. ac_status=$?
  21066. grep -v '^ *+' conftest.er1 >conftest.err
  21067. rm -f conftest.er1
  21068. cat conftest.err >&5
  21069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21070. (exit $ac_status); } && {
  21071. test -z "$ac_c_werror_flag" ||
  21072. test ! -s conftest.err
  21073. } && test -s conftest.$ac_objext; then
  21074. ac_cv_header_winldap_h="yes"
  21075. else
  21076. echo "$as_me: failed program was:" >&5
  21077. sed 's/^/| /' conftest.$ac_ext >&5
  21078. ac_cv_header_winldap_h="no"
  21079. fi
  21080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21081. fi
  21082. { echo "$as_me:$LINENO: result: $ac_cv_header_winldap_h" >&5
  21083. echo "${ECHO_T}$ac_cv_header_winldap_h" >&6; }
  21084. case "$ac_cv_header_winldap_h" in
  21085. yes)
  21086. cat >>confdefs.h <<_ACEOF
  21087. #define HAVE_WINLDAP_H 1
  21088. _ACEOF
  21089. ;;
  21090. esac
  21091. { echo "$as_me:$LINENO: checking for winber.h" >&5
  21092. echo $ECHO_N "checking for winber.h... $ECHO_C" >&6; }
  21093. if test "${ac_cv_header_winber_h+set}" = set; then
  21094. echo $ECHO_N "(cached) $ECHO_C" >&6
  21095. else
  21096. cat >conftest.$ac_ext <<_ACEOF
  21097. /* confdefs.h. */
  21098. _ACEOF
  21099. cat confdefs.h >>conftest.$ac_ext
  21100. cat >>conftest.$ac_ext <<_ACEOF
  21101. /* end confdefs.h. */
  21102. #undef inline
  21103. #ifdef HAVE_WINDOWS_H
  21104. #ifndef WIN32_LEAN_AND_MEAN
  21105. #define WIN32_LEAN_AND_MEAN
  21106. #endif
  21107. #include <windows.h>
  21108. #endif
  21109. #include <winldap.h>
  21110. #include <winber.h>
  21111. int
  21112. main ()
  21113. {
  21114. #if defined(__CYGWIN__) || defined(__CEGCC__)
  21115. HAVE_WINBER_H shall not be defined.
  21116. #else
  21117. BERVAL *bvp = NULL;
  21118. BerElement *bep = ber_init(bvp);
  21119. ber_free(bep, 1);
  21120. #endif
  21121. ;
  21122. return 0;
  21123. }
  21124. _ACEOF
  21125. rm -f conftest.$ac_objext
  21126. if { (ac_try="$ac_compile"
  21127. case "(($ac_try" in
  21128. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21129. *) ac_try_echo=$ac_try;;
  21130. esac
  21131. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21132. (eval "$ac_compile") 2>conftest.er1
  21133. ac_status=$?
  21134. grep -v '^ *+' conftest.er1 >conftest.err
  21135. rm -f conftest.er1
  21136. cat conftest.err >&5
  21137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21138. (exit $ac_status); } && {
  21139. test -z "$ac_c_werror_flag" ||
  21140. test ! -s conftest.err
  21141. } && test -s conftest.$ac_objext; then
  21142. ac_cv_header_winber_h="yes"
  21143. else
  21144. echo "$as_me: failed program was:" >&5
  21145. sed 's/^/| /' conftest.$ac_ext >&5
  21146. ac_cv_header_winber_h="no"
  21147. fi
  21148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21149. fi
  21150. { echo "$as_me:$LINENO: result: $ac_cv_header_winber_h" >&5
  21151. echo "${ECHO_T}$ac_cv_header_winber_h" >&6; }
  21152. case "$ac_cv_header_winber_h" in
  21153. yes)
  21154. cat >>confdefs.h <<_ACEOF
  21155. #define HAVE_WINBER_H 1
  21156. _ACEOF
  21157. ;;
  21158. esac
  21159. ;;
  21160. *)
  21161. ac_cv_header_winsock_h="no"
  21162. ac_cv_header_winsock2_h="no"
  21163. ac_cv_header_ws2tcpip_h="no"
  21164. ac_cv_header_winldap_h="no"
  21165. ac_cv_header_winber_h="no"
  21166. ;;
  21167. esac
  21168. { echo "$as_me:$LINENO: checking whether build target supports WIN32 file API" >&5
  21169. echo $ECHO_N "checking whether build target supports WIN32 file API... $ECHO_C" >&6; }
  21170. curl_win32_file_api="no"
  21171. if test "$ac_cv_header_windows_h" = "yes"; then
  21172. if test x"$enable_largefile" != "xno"; then
  21173. cat >conftest.$ac_ext <<_ACEOF
  21174. /* confdefs.h. */
  21175. _ACEOF
  21176. cat confdefs.h >>conftest.$ac_ext
  21177. cat >>conftest.$ac_ext <<_ACEOF
  21178. /* end confdefs.h. */
  21179. int
  21180. main ()
  21181. {
  21182. #if !defined(_WIN32_WCE) && \
  21183. (defined(__MINGW32__) || \
  21184. (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
  21185. int dummy=1;
  21186. #else
  21187. WIN32 large file API not supported.
  21188. #endif
  21189. ;
  21190. return 0;
  21191. }
  21192. _ACEOF
  21193. rm -f conftest.$ac_objext
  21194. if { (ac_try="$ac_compile"
  21195. case "(($ac_try" in
  21196. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21197. *) ac_try_echo=$ac_try;;
  21198. esac
  21199. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21200. (eval "$ac_compile") 2>conftest.er1
  21201. ac_status=$?
  21202. grep -v '^ *+' conftest.er1 >conftest.err
  21203. rm -f conftest.er1
  21204. cat conftest.err >&5
  21205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21206. (exit $ac_status); } && {
  21207. test -z "$ac_c_werror_flag" ||
  21208. test ! -s conftest.err
  21209. } && test -s conftest.$ac_objext; then
  21210. curl_win32_file_api="win32_large_files"
  21211. else
  21212. echo "$as_me: failed program was:" >&5
  21213. sed 's/^/| /' conftest.$ac_ext >&5
  21214. fi
  21215. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21216. fi
  21217. if test "$curl_win32_file_api" = "no"; then
  21218. cat >conftest.$ac_ext <<_ACEOF
  21219. /* confdefs.h. */
  21220. _ACEOF
  21221. cat confdefs.h >>conftest.$ac_ext
  21222. cat >>conftest.$ac_ext <<_ACEOF
  21223. /* end confdefs.h. */
  21224. int
  21225. main ()
  21226. {
  21227. #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
  21228. int dummy=1;
  21229. #else
  21230. WIN32 small file API not supported.
  21231. #endif
  21232. ;
  21233. return 0;
  21234. }
  21235. _ACEOF
  21236. rm -f conftest.$ac_objext
  21237. if { (ac_try="$ac_compile"
  21238. case "(($ac_try" in
  21239. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21240. *) ac_try_echo=$ac_try;;
  21241. esac
  21242. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21243. (eval "$ac_compile") 2>conftest.er1
  21244. ac_status=$?
  21245. grep -v '^ *+' conftest.er1 >conftest.err
  21246. rm -f conftest.er1
  21247. cat conftest.err >&5
  21248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21249. (exit $ac_status); } && {
  21250. test -z "$ac_c_werror_flag" ||
  21251. test ! -s conftest.err
  21252. } && test -s conftest.$ac_objext; then
  21253. curl_win32_file_api="win32_small_files"
  21254. else
  21255. echo "$as_me: failed program was:" >&5
  21256. sed 's/^/| /' conftest.$ac_ext >&5
  21257. fi
  21258. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21259. fi
  21260. fi
  21261. case "$curl_win32_file_api" in
  21262. win32_large_files)
  21263. { echo "$as_me:$LINENO: result: yes (large file enabled)" >&5
  21264. echo "${ECHO_T}yes (large file enabled)" >&6; }
  21265. cat >>confdefs.h <<_ACEOF
  21266. #define USE_WIN32_LARGE_FILES 1
  21267. _ACEOF
  21268. ;;
  21269. win32_small_files)
  21270. { echo "$as_me:$LINENO: result: yes (large file disabled)" >&5
  21271. echo "${ECHO_T}yes (large file disabled)" >&6; }
  21272. cat >>confdefs.h <<_ACEOF
  21273. #define USE_WIN32_LARGE_FILES 1
  21274. _ACEOF
  21275. ;;
  21276. *)
  21277. { echo "$as_me:$LINENO: result: no" >&5
  21278. echo "${ECHO_T}no" >&6; }
  21279. ;;
  21280. esac
  21281. { echo "$as_me:$LINENO: checking whether to support http" >&5
  21282. echo $ECHO_N "checking whether to support http... $ECHO_C" >&6; }
  21283. # Check whether --enable-http was given.
  21284. if test "${enable_http+set}" = set; then
  21285. enableval=$enable_http; case "$enableval" in
  21286. no)
  21287. { echo "$as_me:$LINENO: result: no" >&5
  21288. echo "${ECHO_T}no" >&6; }
  21289. cat >>confdefs.h <<\_ACEOF
  21290. #define CURL_DISABLE_HTTP 1
  21291. _ACEOF
  21292. { echo "$as_me:$LINENO: WARNING: disable HTTP disables FTP over proxy" >&5
  21293. echo "$as_me: WARNING: disable HTTP disables FTP over proxy" >&2;}
  21294. CURL_DISABLE_HTTP=1
  21295. ;;
  21296. *) { echo "$as_me:$LINENO: result: yes" >&5
  21297. echo "${ECHO_T}yes" >&6; }
  21298. ;;
  21299. esac
  21300. else
  21301. { echo "$as_me:$LINENO: result: yes" >&5
  21302. echo "${ECHO_T}yes" >&6; }
  21303. fi
  21304. { echo "$as_me:$LINENO: checking whether to support ftp" >&5
  21305. echo $ECHO_N "checking whether to support ftp... $ECHO_C" >&6; }
  21306. # Check whether --enable-ftp was given.
  21307. if test "${enable_ftp+set}" = set; then
  21308. enableval=$enable_ftp; case "$enableval" in
  21309. no)
  21310. { echo "$as_me:$LINENO: result: no" >&5
  21311. echo "${ECHO_T}no" >&6; }
  21312. cat >>confdefs.h <<\_ACEOF
  21313. #define CURL_DISABLE_FTP 1
  21314. _ACEOF
  21315. CURL_DISABLE_FTP=1
  21316. ;;
  21317. *) { echo "$as_me:$LINENO: result: yes" >&5
  21318. echo "${ECHO_T}yes" >&6; }
  21319. ;;
  21320. esac
  21321. else
  21322. { echo "$as_me:$LINENO: result: yes" >&5
  21323. echo "${ECHO_T}yes" >&6; }
  21324. fi
  21325. { echo "$as_me:$LINENO: checking whether to support file" >&5
  21326. echo $ECHO_N "checking whether to support file... $ECHO_C" >&6; }
  21327. # Check whether --enable-file was given.
  21328. if test "${enable_file+set}" = set; then
  21329. enableval=$enable_file; case "$enableval" in
  21330. no)
  21331. { echo "$as_me:$LINENO: result: no" >&5
  21332. echo "${ECHO_T}no" >&6; }
  21333. cat >>confdefs.h <<\_ACEOF
  21334. #define CURL_DISABLE_FILE 1
  21335. _ACEOF
  21336. CURL_DISABLE_FILE=1
  21337. ;;
  21338. *) { echo "$as_me:$LINENO: result: yes" >&5
  21339. echo "${ECHO_T}yes" >&6; }
  21340. ;;
  21341. esac
  21342. else
  21343. { echo "$as_me:$LINENO: result: yes" >&5
  21344. echo "${ECHO_T}yes" >&6; }
  21345. fi
  21346. { echo "$as_me:$LINENO: checking whether to support ldap" >&5
  21347. echo $ECHO_N "checking whether to support ldap... $ECHO_C" >&6; }
  21348. # Check whether --enable-ldap was given.
  21349. if test "${enable_ldap+set}" = set; then
  21350. enableval=$enable_ldap; case "$enableval" in
  21351. no)
  21352. { echo "$as_me:$LINENO: result: no" >&5
  21353. echo "${ECHO_T}no" >&6; }
  21354. cat >>confdefs.h <<\_ACEOF
  21355. #define CURL_DISABLE_LDAP 1
  21356. _ACEOF
  21357. CURL_DISABLE_LDAP=1
  21358. ;;
  21359. *)
  21360. case $host in
  21361. *-*-cygwin*)
  21362. # Force no ldap. config/build process is broken for cygwin
  21363. cat >>confdefs.h <<\_ACEOF
  21364. #define CURL_DISABLE_LDAP 1
  21365. _ACEOF
  21366. CURL_DISABLE_LDAP=1
  21367. { echo "$as_me:$LINENO: result: no" >&5
  21368. echo "${ECHO_T}no" >&6; }
  21369. ;;
  21370. *)
  21371. { echo "$as_me:$LINENO: result: yes" >&5
  21372. echo "${ECHO_T}yes" >&6; }
  21373. esac
  21374. ;;
  21375. esac
  21376. else
  21377. case $host in
  21378. *-*-cygwin*)
  21379. # Force no ldap. config/build process is broken for cygwin
  21380. cat >>confdefs.h <<\_ACEOF
  21381. #define CURL_DISABLE_LDAP 1
  21382. _ACEOF
  21383. CURL_DISABLE_LDAP=1
  21384. { echo "$as_me:$LINENO: result: no" >&5
  21385. echo "${ECHO_T}no" >&6; }
  21386. ;;
  21387. *)
  21388. { echo "$as_me:$LINENO: result: yes" >&5
  21389. echo "${ECHO_T}yes" >&6; }
  21390. esac
  21391. fi
  21392. { echo "$as_me:$LINENO: checking whether to support ldaps" >&5
  21393. echo $ECHO_N "checking whether to support ldaps... $ECHO_C" >&6; }
  21394. # Check whether --enable-ldaps was given.
  21395. if test "${enable_ldaps+set}" = set; then
  21396. enableval=$enable_ldaps; case "$enableval" in
  21397. no)
  21398. { echo "$as_me:$LINENO: result: no" >&5
  21399. echo "${ECHO_T}no" >&6; }
  21400. cat >>confdefs.h <<\_ACEOF
  21401. #define CURL_DISABLE_LDAPS 1
  21402. _ACEOF
  21403. CURL_DISABLE_LDAPS=1
  21404. ;;
  21405. *) if test x$CURL_DISABLE_LDAP = x1 ; then
  21406. { echo "$as_me:$LINENO: result: LDAP support needs to be enabled in order to enable LDAPS support!" >&5
  21407. echo "${ECHO_T}LDAP support needs to be enabled in order to enable LDAPS support!" >&6; }
  21408. cat >>confdefs.h <<\_ACEOF
  21409. #define CURL_DISABLE_LDAPS 1
  21410. _ACEOF
  21411. CURL_DISABLE_LDAPS=1
  21412. else
  21413. { echo "$as_me:$LINENO: result: yes" >&5
  21414. echo "${ECHO_T}yes" >&6; }
  21415. cat >>confdefs.h <<\_ACEOF
  21416. #define HAVE_LDAP_SSL 1
  21417. _ACEOF
  21418. curl_ldaps_msg="enabled"
  21419. fi
  21420. ;;
  21421. esac
  21422. else
  21423. { echo "$as_me:$LINENO: result: no" >&5
  21424. echo "${ECHO_T}no" >&6; }
  21425. cat >>confdefs.h <<\_ACEOF
  21426. #define CURL_DISABLE_LDAPS 1
  21427. _ACEOF
  21428. CURL_DISABLE_LDAPS=1
  21429. fi
  21430. { echo "$as_me:$LINENO: checking whether to support dict" >&5
  21431. echo $ECHO_N "checking whether to support dict... $ECHO_C" >&6; }
  21432. # Check whether --enable-dict was given.
  21433. if test "${enable_dict+set}" = set; then
  21434. enableval=$enable_dict; case "$enableval" in
  21435. no)
  21436. { echo "$as_me:$LINENO: result: no" >&5
  21437. echo "${ECHO_T}no" >&6; }
  21438. cat >>confdefs.h <<\_ACEOF
  21439. #define CURL_DISABLE_DICT 1
  21440. _ACEOF
  21441. CURL_DISABLE_DICT=1
  21442. ;;
  21443. *) { echo "$as_me:$LINENO: result: yes" >&5
  21444. echo "${ECHO_T}yes" >&6; }
  21445. ;;
  21446. esac
  21447. else
  21448. { echo "$as_me:$LINENO: result: yes" >&5
  21449. echo "${ECHO_T}yes" >&6; }
  21450. fi
  21451. { echo "$as_me:$LINENO: checking whether to support telnet" >&5
  21452. echo $ECHO_N "checking whether to support telnet... $ECHO_C" >&6; }
  21453. # Check whether --enable-telnet was given.
  21454. if test "${enable_telnet+set}" = set; then
  21455. enableval=$enable_telnet; case "$enableval" in
  21456. no)
  21457. { echo "$as_me:$LINENO: result: no" >&5
  21458. echo "${ECHO_T}no" >&6; }
  21459. cat >>confdefs.h <<\_ACEOF
  21460. #define CURL_DISABLE_TELNET 1
  21461. _ACEOF
  21462. CURL_DISABLE_TELNET=1
  21463. ;;
  21464. *) { echo "$as_me:$LINENO: result: yes" >&5
  21465. echo "${ECHO_T}yes" >&6; }
  21466. ;;
  21467. esac
  21468. else
  21469. { echo "$as_me:$LINENO: result: yes" >&5
  21470. echo "${ECHO_T}yes" >&6; }
  21471. fi
  21472. { echo "$as_me:$LINENO: checking whether to support tftp" >&5
  21473. echo $ECHO_N "checking whether to support tftp... $ECHO_C" >&6; }
  21474. # Check whether --enable-tftp was given.
  21475. if test "${enable_tftp+set}" = set; then
  21476. enableval=$enable_tftp; case "$enableval" in
  21477. no)
  21478. { echo "$as_me:$LINENO: result: no" >&5
  21479. echo "${ECHO_T}no" >&6; }
  21480. cat >>confdefs.h <<\_ACEOF
  21481. #define CURL_DISABLE_TFTP 1
  21482. _ACEOF
  21483. CURL_DISABLE_TFTP=1
  21484. ;;
  21485. *) { echo "$as_me:$LINENO: result: yes" >&5
  21486. echo "${ECHO_T}yes" >&6; }
  21487. ;;
  21488. esac
  21489. else
  21490. { echo "$as_me:$LINENO: result: yes" >&5
  21491. echo "${ECHO_T}yes" >&6; }
  21492. fi
  21493. { echo "$as_me:$LINENO: checking whether to provide built-in manual" >&5
  21494. echo $ECHO_N "checking whether to provide built-in manual... $ECHO_C" >&6; }
  21495. # Check whether --enable-manual was given.
  21496. if test "${enable_manual+set}" = set; then
  21497. enableval=$enable_manual; case "$enableval" in
  21498. no)
  21499. { echo "$as_me:$LINENO: result: no" >&5
  21500. echo "${ECHO_T}no" >&6; }
  21501. ;;
  21502. *) { echo "$as_me:$LINENO: result: yes" >&5
  21503. echo "${ECHO_T}yes" >&6; }
  21504. USE_MANUAL="1"
  21505. ;;
  21506. esac
  21507. else
  21508. { echo "$as_me:$LINENO: result: yes" >&5
  21509. echo "${ECHO_T}yes" >&6; }
  21510. USE_MANUAL="1"
  21511. fi
  21512. ICC="no"
  21513. { echo "$as_me:$LINENO: checking for icc in use" >&5
  21514. echo $ECHO_N "checking for icc in use... $ECHO_C" >&6; }
  21515. if test "$GCC" = "yes"; then
  21516. cat >conftest.$ac_ext <<_ACEOF
  21517. /* confdefs.h. */
  21518. _ACEOF
  21519. cat confdefs.h >>conftest.$ac_ext
  21520. cat >>conftest.$ac_ext <<_ACEOF
  21521. /* end confdefs.h. */
  21522. __INTEL_COMPILER
  21523. _ACEOF
  21524. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  21525. $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then
  21526. ICC="no"
  21527. else
  21528. ICC="yes"
  21529. { echo "$as_me:$LINENO: result: yes" >&5
  21530. echo "${ECHO_T}yes" >&6; }
  21531. CFLAGS="$CFLAGS -we 147"
  21532. fi
  21533. rm -f conftest*
  21534. fi
  21535. if test "$ICC" = "no"; then
  21536. # this is not ICC
  21537. { echo "$as_me:$LINENO: result: no" >&5
  21538. echo "${ECHO_T}no" >&6; }
  21539. fi
  21540. { echo "$as_me:$LINENO: checking for gethostbyname" >&5
  21541. echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
  21542. if test "${ac_cv_func_gethostbyname+set}" = set; then
  21543. echo $ECHO_N "(cached) $ECHO_C" >&6
  21544. else
  21545. cat >conftest.$ac_ext <<_ACEOF
  21546. /* confdefs.h. */
  21547. _ACEOF
  21548. cat confdefs.h >>conftest.$ac_ext
  21549. cat >>conftest.$ac_ext <<_ACEOF
  21550. /* end confdefs.h. */
  21551. /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
  21552. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21553. #define gethostbyname innocuous_gethostbyname
  21554. /* System header to define __stub macros and hopefully few prototypes,
  21555. which can conflict with char gethostbyname (); below.
  21556. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21557. <limits.h> exists even on freestanding compilers. */
  21558. #ifdef __STDC__
  21559. # include <limits.h>
  21560. #else
  21561. # include <assert.h>
  21562. #endif
  21563. #undef gethostbyname
  21564. /* Override any GCC internal prototype to avoid an error.
  21565. Use char because int might match the return type of a GCC
  21566. builtin and then its argument prototype would still apply. */
  21567. #ifdef __cplusplus
  21568. extern "C"
  21569. #endif
  21570. char gethostbyname ();
  21571. /* The GNU C library defines this for functions which it implements
  21572. to always fail with ENOSYS. Some functions are actually named
  21573. something starting with __ and the normal name is an alias. */
  21574. #if defined __stub_gethostbyname || defined __stub___gethostbyname
  21575. choke me
  21576. #endif
  21577. int
  21578. main ()
  21579. {
  21580. return gethostbyname ();
  21581. ;
  21582. return 0;
  21583. }
  21584. _ACEOF
  21585. rm -f conftest.$ac_objext conftest$ac_exeext
  21586. if { (ac_try="$ac_link"
  21587. case "(($ac_try" in
  21588. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21589. *) ac_try_echo=$ac_try;;
  21590. esac
  21591. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21592. (eval "$ac_link") 2>conftest.er1
  21593. ac_status=$?
  21594. grep -v '^ *+' conftest.er1 >conftest.err
  21595. rm -f conftest.er1
  21596. cat conftest.err >&5
  21597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21598. (exit $ac_status); } && {
  21599. test -z "$ac_c_werror_flag" ||
  21600. test ! -s conftest.err
  21601. } && test -s conftest$ac_exeext &&
  21602. $as_test_x conftest$ac_exeext; then
  21603. ac_cv_func_gethostbyname=yes
  21604. else
  21605. echo "$as_me: failed program was:" >&5
  21606. sed 's/^/| /' conftest.$ac_ext >&5
  21607. ac_cv_func_gethostbyname=no
  21608. fi
  21609. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21610. conftest$ac_exeext conftest.$ac_ext
  21611. fi
  21612. { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
  21613. echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
  21614. if test $ac_cv_func_gethostbyname = yes; then
  21615. HAVE_GETHOSTBYNAME="1"
  21616. else
  21617. { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  21618. echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
  21619. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  21620. echo $ECHO_N "(cached) $ECHO_C" >&6
  21621. else
  21622. ac_check_lib_save_LIBS=$LIBS
  21623. LIBS="-lnsl $LIBS"
  21624. cat >conftest.$ac_ext <<_ACEOF
  21625. /* confdefs.h. */
  21626. _ACEOF
  21627. cat confdefs.h >>conftest.$ac_ext
  21628. cat >>conftest.$ac_ext <<_ACEOF
  21629. /* end confdefs.h. */
  21630. /* Override any GCC internal prototype to avoid an error.
  21631. Use char because int might match the return type of a GCC
  21632. builtin and then its argument prototype would still apply. */
  21633. #ifdef __cplusplus
  21634. extern "C"
  21635. #endif
  21636. char gethostbyname ();
  21637. int
  21638. main ()
  21639. {
  21640. return gethostbyname ();
  21641. ;
  21642. return 0;
  21643. }
  21644. _ACEOF
  21645. rm -f conftest.$ac_objext conftest$ac_exeext
  21646. if { (ac_try="$ac_link"
  21647. case "(($ac_try" in
  21648. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21649. *) ac_try_echo=$ac_try;;
  21650. esac
  21651. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21652. (eval "$ac_link") 2>conftest.er1
  21653. ac_status=$?
  21654. grep -v '^ *+' conftest.er1 >conftest.err
  21655. rm -f conftest.er1
  21656. cat conftest.err >&5
  21657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21658. (exit $ac_status); } && {
  21659. test -z "$ac_c_werror_flag" ||
  21660. test ! -s conftest.err
  21661. } && test -s conftest$ac_exeext &&
  21662. $as_test_x conftest$ac_exeext; then
  21663. ac_cv_lib_nsl_gethostbyname=yes
  21664. else
  21665. echo "$as_me: failed program was:" >&5
  21666. sed 's/^/| /' conftest.$ac_ext >&5
  21667. ac_cv_lib_nsl_gethostbyname=no
  21668. fi
  21669. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21670. conftest$ac_exeext conftest.$ac_ext
  21671. LIBS=$ac_check_lib_save_LIBS
  21672. fi
  21673. { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  21674. echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
  21675. if test $ac_cv_lib_nsl_gethostbyname = yes; then
  21676. HAVE_GETHOSTBYNAME="1"
  21677. LIBS="$LIBS -lnsl"
  21678. fi
  21679. fi
  21680. if test "$HAVE_GETHOSTBYNAME" != "1"
  21681. then
  21682. { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
  21683. echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
  21684. if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
  21685. echo $ECHO_N "(cached) $ECHO_C" >&6
  21686. else
  21687. ac_check_lib_save_LIBS=$LIBS
  21688. LIBS="-lsocket $LIBS"
  21689. cat >conftest.$ac_ext <<_ACEOF
  21690. /* confdefs.h. */
  21691. _ACEOF
  21692. cat confdefs.h >>conftest.$ac_ext
  21693. cat >>conftest.$ac_ext <<_ACEOF
  21694. /* end confdefs.h. */
  21695. /* Override any GCC internal prototype to avoid an error.
  21696. Use char because int might match the return type of a GCC
  21697. builtin and then its argument prototype would still apply. */
  21698. #ifdef __cplusplus
  21699. extern "C"
  21700. #endif
  21701. char gethostbyname ();
  21702. int
  21703. main ()
  21704. {
  21705. return gethostbyname ();
  21706. ;
  21707. return 0;
  21708. }
  21709. _ACEOF
  21710. rm -f conftest.$ac_objext conftest$ac_exeext
  21711. if { (ac_try="$ac_link"
  21712. case "(($ac_try" in
  21713. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21714. *) ac_try_echo=$ac_try;;
  21715. esac
  21716. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21717. (eval "$ac_link") 2>conftest.er1
  21718. ac_status=$?
  21719. grep -v '^ *+' conftest.er1 >conftest.err
  21720. rm -f conftest.er1
  21721. cat conftest.err >&5
  21722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21723. (exit $ac_status); } && {
  21724. test -z "$ac_c_werror_flag" ||
  21725. test ! -s conftest.err
  21726. } && test -s conftest$ac_exeext &&
  21727. $as_test_x conftest$ac_exeext; then
  21728. ac_cv_lib_socket_gethostbyname=yes
  21729. else
  21730. echo "$as_me: failed program was:" >&5
  21731. sed 's/^/| /' conftest.$ac_ext >&5
  21732. ac_cv_lib_socket_gethostbyname=no
  21733. fi
  21734. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21735. conftest$ac_exeext conftest.$ac_ext
  21736. LIBS=$ac_check_lib_save_LIBS
  21737. fi
  21738. { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
  21739. echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
  21740. if test $ac_cv_lib_socket_gethostbyname = yes; then
  21741. HAVE_GETHOSTBYNAME="1"
  21742. LIBS="$LIBS -lsocket"
  21743. fi
  21744. fi
  21745. if test "$HAVE_GETHOSTBYNAME" != "1"
  21746. then
  21747. { echo "$as_me:$LINENO: checking for gethostbyname with both nsl and socket libs" >&5
  21748. echo $ECHO_N "checking for gethostbyname with both nsl and socket libs... $ECHO_C" >&6; }
  21749. my_ac_save_LIBS=$LIBS
  21750. LIBS="-lnsl -lsocket $LIBS"
  21751. cat >conftest.$ac_ext <<_ACEOF
  21752. /* confdefs.h. */
  21753. _ACEOF
  21754. cat confdefs.h >>conftest.$ac_ext
  21755. cat >>conftest.$ac_ext <<_ACEOF
  21756. /* end confdefs.h. */
  21757. int
  21758. main ()
  21759. {
  21760. gethostbyname();
  21761. ;
  21762. return 0;
  21763. }
  21764. _ACEOF
  21765. rm -f conftest.$ac_objext conftest$ac_exeext
  21766. if { (ac_try="$ac_link"
  21767. case "(($ac_try" in
  21768. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21769. *) ac_try_echo=$ac_try;;
  21770. esac
  21771. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21772. (eval "$ac_link") 2>conftest.er1
  21773. ac_status=$?
  21774. grep -v '^ *+' conftest.er1 >conftest.err
  21775. rm -f conftest.er1
  21776. cat conftest.err >&5
  21777. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21778. (exit $ac_status); } && {
  21779. test -z "$ac_c_werror_flag" ||
  21780. test ! -s conftest.err
  21781. } && test -s conftest$ac_exeext &&
  21782. $as_test_x conftest$ac_exeext; then
  21783. { echo "$as_me:$LINENO: result: yes" >&5
  21784. echo "${ECHO_T}yes" >&6; }
  21785. HAVE_GETHOSTBYNAME="1"
  21786. else
  21787. echo "$as_me: failed program was:" >&5
  21788. sed 's/^/| /' conftest.$ac_ext >&5
  21789. { echo "$as_me:$LINENO: result: no" >&5
  21790. echo "${ECHO_T}no" >&6; }
  21791. LIBS=$my_ac_save_LIBS
  21792. fi
  21793. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21794. conftest$ac_exeext conftest.$ac_ext
  21795. fi
  21796. if test "$HAVE_GETHOSTBYNAME" != "1"
  21797. then
  21798. if test "$ac_cv_header_windows_h" = "yes"; then
  21799. if test "$ac_cv_header_winsock_h" = "yes"; then
  21800. case $host in
  21801. *-*-mingw32ce*)
  21802. winsock_LIB="-lwinsock"
  21803. ;;
  21804. *)
  21805. winsock_LIB="-lwsock32"
  21806. ;;
  21807. esac
  21808. fi
  21809. if test "$ac_cv_header_winsock2_h" = "yes"; then
  21810. winsock_LIB="-lws2_32"
  21811. fi
  21812. if test ! -z "$winsock_LIB"; then
  21813. my_ac_save_LIBS=$LIBS
  21814. LIBS="$winsock_LIB $LIBS"
  21815. { echo "$as_me:$LINENO: checking for gethostbyname in $winsock_LIB" >&5
  21816. echo $ECHO_N "checking for gethostbyname in $winsock_LIB... $ECHO_C" >&6; }
  21817. cat >conftest.$ac_ext <<_ACEOF
  21818. /* confdefs.h. */
  21819. _ACEOF
  21820. cat confdefs.h >>conftest.$ac_ext
  21821. cat >>conftest.$ac_ext <<_ACEOF
  21822. /* end confdefs.h. */
  21823. #ifdef HAVE_WINDOWS_H
  21824. #ifndef WIN32_LEAN_AND_MEAN
  21825. #define WIN32_LEAN_AND_MEAN
  21826. #endif
  21827. #include <windows.h>
  21828. #ifdef HAVE_WINSOCK2_H
  21829. #include <winsock2.h>
  21830. #else
  21831. #ifdef HAVE_WINSOCK_H
  21832. #include <winsock.h>
  21833. #endif
  21834. #endif
  21835. #endif
  21836. int
  21837. main ()
  21838. {
  21839. gethostbyname("www.dummysite.com");
  21840. ;
  21841. return 0;
  21842. }
  21843. _ACEOF
  21844. rm -f conftest.$ac_objext conftest$ac_exeext
  21845. if { (ac_try="$ac_link"
  21846. case "(($ac_try" in
  21847. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21848. *) ac_try_echo=$ac_try;;
  21849. esac
  21850. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21851. (eval "$ac_link") 2>conftest.er1
  21852. ac_status=$?
  21853. grep -v '^ *+' conftest.er1 >conftest.err
  21854. rm -f conftest.er1
  21855. cat conftest.err >&5
  21856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21857. (exit $ac_status); } && {
  21858. test -z "$ac_c_werror_flag" ||
  21859. test ! -s conftest.err
  21860. } && test -s conftest$ac_exeext &&
  21861. $as_test_x conftest$ac_exeext; then
  21862. { echo "$as_me:$LINENO: result: yes" >&5
  21863. echo "${ECHO_T}yes" >&6; }
  21864. HAVE_GETHOSTBYNAME="1"
  21865. else
  21866. echo "$as_me: failed program was:" >&5
  21867. sed 's/^/| /' conftest.$ac_ext >&5
  21868. { echo "$as_me:$LINENO: result: no" >&5
  21869. echo "${ECHO_T}no" >&6; }
  21870. winsock_LIB=""
  21871. LIBS=$my_ac_save_LIBS
  21872. fi
  21873. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21874. conftest$ac_exeext conftest.$ac_ext
  21875. fi
  21876. fi
  21877. fi
  21878. if test "$HAVE_GETHOSTBYNAME" != "1"
  21879. then
  21880. { echo "$as_me:$LINENO: checking for gethostbyname for Minix 3" >&5
  21881. echo $ECHO_N "checking for gethostbyname for Minix 3... $ECHO_C" >&6; }
  21882. cat >conftest.$ac_ext <<_ACEOF
  21883. /* confdefs.h. */
  21884. _ACEOF
  21885. cat confdefs.h >>conftest.$ac_ext
  21886. cat >>conftest.$ac_ext <<_ACEOF
  21887. /* end confdefs.h. */
  21888. /* Older Minix versions may need <net/gen/netdb.h> here instead */
  21889. #include <netdb.h>
  21890. int
  21891. main ()
  21892. {
  21893. gethostbyname("www.dummysite.com");
  21894. ;
  21895. return 0;
  21896. }
  21897. _ACEOF
  21898. rm -f conftest.$ac_objext conftest$ac_exeext
  21899. if { (ac_try="$ac_link"
  21900. case "(($ac_try" in
  21901. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21902. *) ac_try_echo=$ac_try;;
  21903. esac
  21904. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21905. (eval "$ac_link") 2>conftest.er1
  21906. ac_status=$?
  21907. grep -v '^ *+' conftest.er1 >conftest.err
  21908. rm -f conftest.er1
  21909. cat conftest.err >&5
  21910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21911. (exit $ac_status); } && {
  21912. test -z "$ac_c_werror_flag" ||
  21913. test ! -s conftest.err
  21914. } && test -s conftest$ac_exeext &&
  21915. $as_test_x conftest$ac_exeext; then
  21916. { echo "$as_me:$LINENO: result: yes" >&5
  21917. echo "${ECHO_T}yes" >&6; }
  21918. HAVE_GETHOSTBYNAME="1"
  21919. else
  21920. echo "$as_me: failed program was:" >&5
  21921. sed 's/^/| /' conftest.$ac_ext >&5
  21922. { echo "$as_me:$LINENO: result: no" >&5
  21923. echo "${ECHO_T}no" >&6; }
  21924. fi
  21925. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21926. conftest$ac_exeext conftest.$ac_ext
  21927. fi
  21928. if test "$HAVE_GETHOSTBYNAME" != "1"
  21929. then
  21930. { echo "$as_me:$LINENO: checking for gethostbyname for eCos" >&5
  21931. echo $ECHO_N "checking for gethostbyname for eCos... $ECHO_C" >&6; }
  21932. cat >conftest.$ac_ext <<_ACEOF
  21933. /* confdefs.h. */
  21934. _ACEOF
  21935. cat confdefs.h >>conftest.$ac_ext
  21936. cat >>conftest.$ac_ext <<_ACEOF
  21937. /* end confdefs.h. */
  21938. #include <stdio.h>
  21939. #include <netdb.h>
  21940. int
  21941. main ()
  21942. {
  21943. gethostbyname("www.dummysite.com");
  21944. ;
  21945. return 0;
  21946. }
  21947. _ACEOF
  21948. rm -f conftest.$ac_objext conftest$ac_exeext
  21949. if { (ac_try="$ac_link"
  21950. case "(($ac_try" in
  21951. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21952. *) ac_try_echo=$ac_try;;
  21953. esac
  21954. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21955. (eval "$ac_link") 2>conftest.er1
  21956. ac_status=$?
  21957. grep -v '^ *+' conftest.er1 >conftest.err
  21958. rm -f conftest.er1
  21959. cat conftest.err >&5
  21960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21961. (exit $ac_status); } && {
  21962. test -z "$ac_c_werror_flag" ||
  21963. test ! -s conftest.err
  21964. } && test -s conftest$ac_exeext &&
  21965. $as_test_x conftest$ac_exeext; then
  21966. { echo "$as_me:$LINENO: result: yes" >&5
  21967. echo "${ECHO_T}yes" >&6; }
  21968. HAVE_GETHOSTBYNAME="1"
  21969. else
  21970. echo "$as_me: failed program was:" >&5
  21971. sed 's/^/| /' conftest.$ac_ext >&5
  21972. { echo "$as_me:$LINENO: result: no" >&5
  21973. echo "${ECHO_T}no" >&6; }
  21974. fi
  21975. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21976. conftest$ac_exeext conftest.$ac_ext
  21977. fi
  21978. if test "$HAVE_GETHOSTBYNAME" != "1"
  21979. then
  21980. { echo "$as_me:$LINENO: checking for gethostbyname in -lnetwork" >&5
  21981. echo $ECHO_N "checking for gethostbyname in -lnetwork... $ECHO_C" >&6; }
  21982. if test "${ac_cv_lib_network_gethostbyname+set}" = set; then
  21983. echo $ECHO_N "(cached) $ECHO_C" >&6
  21984. else
  21985. ac_check_lib_save_LIBS=$LIBS
  21986. LIBS="-lnetwork $LIBS"
  21987. cat >conftest.$ac_ext <<_ACEOF
  21988. /* confdefs.h. */
  21989. _ACEOF
  21990. cat confdefs.h >>conftest.$ac_ext
  21991. cat >>conftest.$ac_ext <<_ACEOF
  21992. /* end confdefs.h. */
  21993. /* Override any GCC internal prototype to avoid an error.
  21994. Use char because int might match the return type of a GCC
  21995. builtin and then its argument prototype would still apply. */
  21996. #ifdef __cplusplus
  21997. extern "C"
  21998. #endif
  21999. char gethostbyname ();
  22000. int
  22001. main ()
  22002. {
  22003. return gethostbyname ();
  22004. ;
  22005. return 0;
  22006. }
  22007. _ACEOF
  22008. rm -f conftest.$ac_objext conftest$ac_exeext
  22009. if { (ac_try="$ac_link"
  22010. case "(($ac_try" in
  22011. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22012. *) ac_try_echo=$ac_try;;
  22013. esac
  22014. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22015. (eval "$ac_link") 2>conftest.er1
  22016. ac_status=$?
  22017. grep -v '^ *+' conftest.er1 >conftest.err
  22018. rm -f conftest.er1
  22019. cat conftest.err >&5
  22020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22021. (exit $ac_status); } && {
  22022. test -z "$ac_c_werror_flag" ||
  22023. test ! -s conftest.err
  22024. } && test -s conftest$ac_exeext &&
  22025. $as_test_x conftest$ac_exeext; then
  22026. ac_cv_lib_network_gethostbyname=yes
  22027. else
  22028. echo "$as_me: failed program was:" >&5
  22029. sed 's/^/| /' conftest.$ac_ext >&5
  22030. ac_cv_lib_network_gethostbyname=no
  22031. fi
  22032. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22033. conftest$ac_exeext conftest.$ac_ext
  22034. LIBS=$ac_check_lib_save_LIBS
  22035. fi
  22036. { echo "$as_me:$LINENO: result: $ac_cv_lib_network_gethostbyname" >&5
  22037. echo "${ECHO_T}$ac_cv_lib_network_gethostbyname" >&6; }
  22038. if test $ac_cv_lib_network_gethostbyname = yes; then
  22039. HAVE_GETHOSTBYNAME="1"
  22040. LIBS="$LIBS -lnetwork"
  22041. fi
  22042. fi
  22043. if test "$HAVE_GETHOSTBYNAME" != "1"
  22044. then
  22045. { echo "$as_me:$LINENO: checking for gethostbyname in -lnet" >&5
  22046. echo $ECHO_N "checking for gethostbyname in -lnet... $ECHO_C" >&6; }
  22047. if test "${ac_cv_lib_net_gethostbyname+set}" = set; then
  22048. echo $ECHO_N "(cached) $ECHO_C" >&6
  22049. else
  22050. ac_check_lib_save_LIBS=$LIBS
  22051. LIBS="-lnet $LIBS"
  22052. cat >conftest.$ac_ext <<_ACEOF
  22053. /* confdefs.h. */
  22054. _ACEOF
  22055. cat confdefs.h >>conftest.$ac_ext
  22056. cat >>conftest.$ac_ext <<_ACEOF
  22057. /* end confdefs.h. */
  22058. /* Override any GCC internal prototype to avoid an error.
  22059. Use char because int might match the return type of a GCC
  22060. builtin and then its argument prototype would still apply. */
  22061. #ifdef __cplusplus
  22062. extern "C"
  22063. #endif
  22064. char gethostbyname ();
  22065. int
  22066. main ()
  22067. {
  22068. return gethostbyname ();
  22069. ;
  22070. return 0;
  22071. }
  22072. _ACEOF
  22073. rm -f conftest.$ac_objext conftest$ac_exeext
  22074. if { (ac_try="$ac_link"
  22075. case "(($ac_try" in
  22076. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22077. *) ac_try_echo=$ac_try;;
  22078. esac
  22079. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22080. (eval "$ac_link") 2>conftest.er1
  22081. ac_status=$?
  22082. grep -v '^ *+' conftest.er1 >conftest.err
  22083. rm -f conftest.er1
  22084. cat conftest.err >&5
  22085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22086. (exit $ac_status); } && {
  22087. test -z "$ac_c_werror_flag" ||
  22088. test ! -s conftest.err
  22089. } && test -s conftest$ac_exeext &&
  22090. $as_test_x conftest$ac_exeext; then
  22091. ac_cv_lib_net_gethostbyname=yes
  22092. else
  22093. echo "$as_me: failed program was:" >&5
  22094. sed 's/^/| /' conftest.$ac_ext >&5
  22095. ac_cv_lib_net_gethostbyname=no
  22096. fi
  22097. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22098. conftest$ac_exeext conftest.$ac_ext
  22099. LIBS=$ac_check_lib_save_LIBS
  22100. fi
  22101. { echo "$as_me:$LINENO: result: $ac_cv_lib_net_gethostbyname" >&5
  22102. echo "${ECHO_T}$ac_cv_lib_net_gethostbyname" >&6; }
  22103. if test $ac_cv_lib_net_gethostbyname = yes; then
  22104. HAVE_GETHOSTBYNAME="1"
  22105. LIBS="$LIBS -lnet"
  22106. fi
  22107. fi
  22108. if test "$HAVE_GETHOSTBYNAME" = "1"; then
  22109. cat >>confdefs.h <<\_ACEOF
  22110. #define HAVE_GETHOSTBYNAME 1
  22111. _ACEOF
  22112. else
  22113. { { echo "$as_me:$LINENO: error: couldn't find libraries for gethostbyname()" >&5
  22114. echo "$as_me: error: couldn't find libraries for gethostbyname()" >&2;}
  22115. { (exit 1); exit 1; }; }
  22116. fi
  22117. { echo "$as_me:$LINENO: checking for strcasecmp" >&5
  22118. echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; }
  22119. if test "${ac_cv_func_strcasecmp+set}" = set; then
  22120. echo $ECHO_N "(cached) $ECHO_C" >&6
  22121. else
  22122. cat >conftest.$ac_ext <<_ACEOF
  22123. /* confdefs.h. */
  22124. _ACEOF
  22125. cat confdefs.h >>conftest.$ac_ext
  22126. cat >>conftest.$ac_ext <<_ACEOF
  22127. /* end confdefs.h. */
  22128. /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
  22129. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22130. #define strcasecmp innocuous_strcasecmp
  22131. /* System header to define __stub macros and hopefully few prototypes,
  22132. which can conflict with char strcasecmp (); below.
  22133. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22134. <limits.h> exists even on freestanding compilers. */
  22135. #ifdef __STDC__
  22136. # include <limits.h>
  22137. #else
  22138. # include <assert.h>
  22139. #endif
  22140. #undef strcasecmp
  22141. /* Override any GCC internal prototype to avoid an error.
  22142. Use char because int might match the return type of a GCC
  22143. builtin and then its argument prototype would still apply. */
  22144. #ifdef __cplusplus
  22145. extern "C"
  22146. #endif
  22147. char strcasecmp ();
  22148. /* The GNU C library defines this for functions which it implements
  22149. to always fail with ENOSYS. Some functions are actually named
  22150. something starting with __ and the normal name is an alias. */
  22151. #if defined __stub_strcasecmp || defined __stub___strcasecmp
  22152. choke me
  22153. #endif
  22154. int
  22155. main ()
  22156. {
  22157. return strcasecmp ();
  22158. ;
  22159. return 0;
  22160. }
  22161. _ACEOF
  22162. rm -f conftest.$ac_objext conftest$ac_exeext
  22163. if { (ac_try="$ac_link"
  22164. case "(($ac_try" in
  22165. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22166. *) ac_try_echo=$ac_try;;
  22167. esac
  22168. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22169. (eval "$ac_link") 2>conftest.er1
  22170. ac_status=$?
  22171. grep -v '^ *+' conftest.er1 >conftest.err
  22172. rm -f conftest.er1
  22173. cat conftest.err >&5
  22174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22175. (exit $ac_status); } && {
  22176. test -z "$ac_c_werror_flag" ||
  22177. test ! -s conftest.err
  22178. } && test -s conftest$ac_exeext &&
  22179. $as_test_x conftest$ac_exeext; then
  22180. ac_cv_func_strcasecmp=yes
  22181. else
  22182. echo "$as_me: failed program was:" >&5
  22183. sed 's/^/| /' conftest.$ac_ext >&5
  22184. ac_cv_func_strcasecmp=no
  22185. fi
  22186. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22187. conftest$ac_exeext conftest.$ac_ext
  22188. fi
  22189. { echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
  22190. echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; }
  22191. if test $ac_cv_func_strcasecmp = yes; then
  22192. :
  22193. else
  22194. { echo "$as_me:$LINENO: checking for strcasecmp in -lresolve" >&5
  22195. echo $ECHO_N "checking for strcasecmp in -lresolve... $ECHO_C" >&6; }
  22196. if test "${ac_cv_lib_resolve_strcasecmp+set}" = set; then
  22197. echo $ECHO_N "(cached) $ECHO_C" >&6
  22198. else
  22199. ac_check_lib_save_LIBS=$LIBS
  22200. LIBS="-lresolve $LIBS"
  22201. cat >conftest.$ac_ext <<_ACEOF
  22202. /* confdefs.h. */
  22203. _ACEOF
  22204. cat confdefs.h >>conftest.$ac_ext
  22205. cat >>conftest.$ac_ext <<_ACEOF
  22206. /* end confdefs.h. */
  22207. /* Override any GCC internal prototype to avoid an error.
  22208. Use char because int might match the return type of a GCC
  22209. builtin and then its argument prototype would still apply. */
  22210. #ifdef __cplusplus
  22211. extern "C"
  22212. #endif
  22213. char strcasecmp ();
  22214. int
  22215. main ()
  22216. {
  22217. return strcasecmp ();
  22218. ;
  22219. return 0;
  22220. }
  22221. _ACEOF
  22222. rm -f conftest.$ac_objext conftest$ac_exeext
  22223. if { (ac_try="$ac_link"
  22224. case "(($ac_try" in
  22225. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22226. *) ac_try_echo=$ac_try;;
  22227. esac
  22228. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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. test -z "$ac_c_werror_flag" ||
  22237. test ! -s conftest.err
  22238. } && test -s conftest$ac_exeext &&
  22239. $as_test_x conftest$ac_exeext; then
  22240. ac_cv_lib_resolve_strcasecmp=yes
  22241. else
  22242. echo "$as_me: failed program was:" >&5
  22243. sed 's/^/| /' conftest.$ac_ext >&5
  22244. ac_cv_lib_resolve_strcasecmp=no
  22245. fi
  22246. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22247. conftest$ac_exeext conftest.$ac_ext
  22248. LIBS=$ac_check_lib_save_LIBS
  22249. fi
  22250. { echo "$as_me:$LINENO: result: $ac_cv_lib_resolve_strcasecmp" >&5
  22251. echo "${ECHO_T}$ac_cv_lib_resolve_strcasecmp" >&6; }
  22252. if test $ac_cv_lib_resolve_strcasecmp = yes; then
  22253. cat >>confdefs.h <<_ACEOF
  22254. #define HAVE_LIBRESOLVE 1
  22255. _ACEOF
  22256. LIBS="-lresolve $LIBS"
  22257. fi
  22258. fi
  22259. if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
  22260. { echo "$as_me:$LINENO: checking for strcasecmp in -lresolve" >&5
  22261. echo $ECHO_N "checking for strcasecmp in -lresolve... $ECHO_C" >&6; }
  22262. if test "${ac_cv_lib_resolve_strcasecmp+set}" = set; then
  22263. echo $ECHO_N "(cached) $ECHO_C" >&6
  22264. else
  22265. ac_check_lib_save_LIBS=$LIBS
  22266. LIBS="-lresolve -lnsl $LIBS"
  22267. cat >conftest.$ac_ext <<_ACEOF
  22268. /* confdefs.h. */
  22269. _ACEOF
  22270. cat confdefs.h >>conftest.$ac_ext
  22271. cat >>conftest.$ac_ext <<_ACEOF
  22272. /* end confdefs.h. */
  22273. /* Override any GCC internal prototype to avoid an error.
  22274. Use char because int might match the return type of a GCC
  22275. builtin and then its argument prototype would still apply. */
  22276. #ifdef __cplusplus
  22277. extern "C"
  22278. #endif
  22279. char strcasecmp ();
  22280. int
  22281. main ()
  22282. {
  22283. return strcasecmp ();
  22284. ;
  22285. return 0;
  22286. }
  22287. _ACEOF
  22288. rm -f conftest.$ac_objext conftest$ac_exeext
  22289. if { (ac_try="$ac_link"
  22290. case "(($ac_try" in
  22291. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22292. *) ac_try_echo=$ac_try;;
  22293. esac
  22294. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22295. (eval "$ac_link") 2>conftest.er1
  22296. ac_status=$?
  22297. grep -v '^ *+' conftest.er1 >conftest.err
  22298. rm -f conftest.er1
  22299. cat conftest.err >&5
  22300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22301. (exit $ac_status); } && {
  22302. test -z "$ac_c_werror_flag" ||
  22303. test ! -s conftest.err
  22304. } && test -s conftest$ac_exeext &&
  22305. $as_test_x conftest$ac_exeext; then
  22306. ac_cv_lib_resolve_strcasecmp=yes
  22307. else
  22308. echo "$as_me: failed program was:" >&5
  22309. sed 's/^/| /' conftest.$ac_ext >&5
  22310. ac_cv_lib_resolve_strcasecmp=no
  22311. fi
  22312. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22313. conftest$ac_exeext conftest.$ac_ext
  22314. LIBS=$ac_check_lib_save_LIBS
  22315. fi
  22316. { echo "$as_me:$LINENO: result: $ac_cv_lib_resolve_strcasecmp" >&5
  22317. echo "${ECHO_T}$ac_cv_lib_resolve_strcasecmp" >&6; }
  22318. if test $ac_cv_lib_resolve_strcasecmp = yes; then
  22319. LIBS="-lresolve $LIBS"
  22320. fi
  22321. fi
  22322. { echo "$as_me:$LINENO: checking for connect" >&5
  22323. echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
  22324. if test "${ac_cv_func_connect+set}" = set; then
  22325. echo $ECHO_N "(cached) $ECHO_C" >&6
  22326. else
  22327. cat >conftest.$ac_ext <<_ACEOF
  22328. /* confdefs.h. */
  22329. _ACEOF
  22330. cat confdefs.h >>conftest.$ac_ext
  22331. cat >>conftest.$ac_ext <<_ACEOF
  22332. /* end confdefs.h. */
  22333. /* Define connect to an innocuous variant, in case <limits.h> declares connect.
  22334. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22335. #define connect innocuous_connect
  22336. /* System header to define __stub macros and hopefully few prototypes,
  22337. which can conflict with char connect (); below.
  22338. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22339. <limits.h> exists even on freestanding compilers. */
  22340. #ifdef __STDC__
  22341. # include <limits.h>
  22342. #else
  22343. # include <assert.h>
  22344. #endif
  22345. #undef connect
  22346. /* Override any GCC internal prototype to avoid an error.
  22347. Use char because int might match the return type of a GCC
  22348. builtin and then its argument prototype would still apply. */
  22349. #ifdef __cplusplus
  22350. extern "C"
  22351. #endif
  22352. char connect ();
  22353. /* The GNU C library defines this for functions which it implements
  22354. to always fail with ENOSYS. Some functions are actually named
  22355. something starting with __ and the normal name is an alias. */
  22356. #if defined __stub_connect || defined __stub___connect
  22357. choke me
  22358. #endif
  22359. int
  22360. main ()
  22361. {
  22362. return connect ();
  22363. ;
  22364. return 0;
  22365. }
  22366. _ACEOF
  22367. rm -f conftest.$ac_objext conftest$ac_exeext
  22368. if { (ac_try="$ac_link"
  22369. case "(($ac_try" in
  22370. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22371. *) ac_try_echo=$ac_try;;
  22372. esac
  22373. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22374. (eval "$ac_link") 2>conftest.er1
  22375. ac_status=$?
  22376. grep -v '^ *+' conftest.er1 >conftest.err
  22377. rm -f conftest.er1
  22378. cat conftest.err >&5
  22379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22380. (exit $ac_status); } && {
  22381. test -z "$ac_c_werror_flag" ||
  22382. test ! -s conftest.err
  22383. } && test -s conftest$ac_exeext &&
  22384. $as_test_x conftest$ac_exeext; then
  22385. ac_cv_func_connect=yes
  22386. else
  22387. echo "$as_me: failed program was:" >&5
  22388. sed 's/^/| /' conftest.$ac_ext >&5
  22389. ac_cv_func_connect=no
  22390. fi
  22391. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22392. conftest$ac_exeext conftest.$ac_ext
  22393. fi
  22394. { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
  22395. echo "${ECHO_T}$ac_cv_func_connect" >&6; }
  22396. if test $ac_cv_func_connect = yes; then
  22397. :
  22398. else
  22399. { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
  22400. echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
  22401. if test "${ac_cv_lib_socket_connect+set}" = set; then
  22402. echo $ECHO_N "(cached) $ECHO_C" >&6
  22403. else
  22404. ac_check_lib_save_LIBS=$LIBS
  22405. LIBS="-lsocket $LIBS"
  22406. cat >conftest.$ac_ext <<_ACEOF
  22407. /* confdefs.h. */
  22408. _ACEOF
  22409. cat confdefs.h >>conftest.$ac_ext
  22410. cat >>conftest.$ac_ext <<_ACEOF
  22411. /* end confdefs.h. */
  22412. /* Override any GCC internal prototype to avoid an error.
  22413. Use char because int might match the return type of a GCC
  22414. builtin and then its argument prototype would still apply. */
  22415. #ifdef __cplusplus
  22416. extern "C"
  22417. #endif
  22418. char connect ();
  22419. int
  22420. main ()
  22421. {
  22422. return connect ();
  22423. ;
  22424. return 0;
  22425. }
  22426. _ACEOF
  22427. rm -f conftest.$ac_objext conftest$ac_exeext
  22428. if { (ac_try="$ac_link"
  22429. case "(($ac_try" in
  22430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22431. *) ac_try_echo=$ac_try;;
  22432. esac
  22433. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22434. (eval "$ac_link") 2>conftest.er1
  22435. ac_status=$?
  22436. grep -v '^ *+' conftest.er1 >conftest.err
  22437. rm -f conftest.er1
  22438. cat conftest.err >&5
  22439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22440. (exit $ac_status); } && {
  22441. test -z "$ac_c_werror_flag" ||
  22442. test ! -s conftest.err
  22443. } && test -s conftest$ac_exeext &&
  22444. $as_test_x conftest$ac_exeext; then
  22445. ac_cv_lib_socket_connect=yes
  22446. else
  22447. echo "$as_me: failed program was:" >&5
  22448. sed 's/^/| /' conftest.$ac_ext >&5
  22449. ac_cv_lib_socket_connect=no
  22450. fi
  22451. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22452. conftest$ac_exeext conftest.$ac_ext
  22453. LIBS=$ac_check_lib_save_LIBS
  22454. fi
  22455. { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
  22456. echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
  22457. if test $ac_cv_lib_socket_connect = yes; then
  22458. cat >>confdefs.h <<_ACEOF
  22459. #define HAVE_LIBSOCKET 1
  22460. _ACEOF
  22461. LIBS="-lsocket $LIBS"
  22462. fi
  22463. fi
  22464. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  22465. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  22466. if test "${ac_cv_header_time+set}" = set; then
  22467. echo $ECHO_N "(cached) $ECHO_C" >&6
  22468. else
  22469. cat >conftest.$ac_ext <<_ACEOF
  22470. /* confdefs.h. */
  22471. _ACEOF
  22472. cat confdefs.h >>conftest.$ac_ext
  22473. cat >>conftest.$ac_ext <<_ACEOF
  22474. /* end confdefs.h. */
  22475. #include <sys/types.h>
  22476. #include <sys/time.h>
  22477. #include <time.h>
  22478. int
  22479. main ()
  22480. {
  22481. if ((struct tm *) 0)
  22482. return 0;
  22483. ;
  22484. return 0;
  22485. }
  22486. _ACEOF
  22487. rm -f conftest.$ac_objext
  22488. if { (ac_try="$ac_compile"
  22489. case "(($ac_try" in
  22490. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22491. *) ac_try_echo=$ac_try;;
  22492. esac
  22493. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22494. (eval "$ac_compile") 2>conftest.er1
  22495. ac_status=$?
  22496. grep -v '^ *+' conftest.er1 >conftest.err
  22497. rm -f conftest.er1
  22498. cat conftest.err >&5
  22499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22500. (exit $ac_status); } && {
  22501. test -z "$ac_c_werror_flag" ||
  22502. test ! -s conftest.err
  22503. } && test -s conftest.$ac_objext; then
  22504. ac_cv_header_time=yes
  22505. else
  22506. echo "$as_me: failed program was:" >&5
  22507. sed 's/^/| /' conftest.$ac_ext >&5
  22508. ac_cv_header_time=no
  22509. fi
  22510. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22511. fi
  22512. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  22513. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  22514. if test $ac_cv_header_time = yes; then
  22515. cat >>confdefs.h <<\_ACEOF
  22516. #define TIME_WITH_SYS_TIME 1
  22517. _ACEOF
  22518. fi
  22519. for ac_header in sys/types.h sys/time.h time.h
  22520. do
  22521. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  22522. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  22523. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  22524. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  22525. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  22526. echo $ECHO_N "(cached) $ECHO_C" >&6
  22527. fi
  22528. ac_res=`eval echo '${'$as_ac_Header'}'`
  22529. { echo "$as_me:$LINENO: result: $ac_res" >&5
  22530. echo "${ECHO_T}$ac_res" >&6; }
  22531. else
  22532. # Is the header compilable?
  22533. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  22534. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  22535. cat >conftest.$ac_ext <<_ACEOF
  22536. /* confdefs.h. */
  22537. _ACEOF
  22538. cat confdefs.h >>conftest.$ac_ext
  22539. cat >>conftest.$ac_ext <<_ACEOF
  22540. /* end confdefs.h. */
  22541. $ac_includes_default
  22542. #include <$ac_header>
  22543. _ACEOF
  22544. rm -f conftest.$ac_objext
  22545. if { (ac_try="$ac_compile"
  22546. case "(($ac_try" in
  22547. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22548. *) ac_try_echo=$ac_try;;
  22549. esac
  22550. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22551. (eval "$ac_compile") 2>conftest.er1
  22552. ac_status=$?
  22553. grep -v '^ *+' conftest.er1 >conftest.err
  22554. rm -f conftest.er1
  22555. cat conftest.err >&5
  22556. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22557. (exit $ac_status); } && {
  22558. test -z "$ac_c_werror_flag" ||
  22559. test ! -s conftest.err
  22560. } && test -s conftest.$ac_objext; then
  22561. ac_header_compiler=yes
  22562. else
  22563. echo "$as_me: failed program was:" >&5
  22564. sed 's/^/| /' conftest.$ac_ext >&5
  22565. ac_header_compiler=no
  22566. fi
  22567. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22568. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  22569. echo "${ECHO_T}$ac_header_compiler" >&6; }
  22570. # Is the header present?
  22571. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  22572. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  22573. cat >conftest.$ac_ext <<_ACEOF
  22574. /* confdefs.h. */
  22575. _ACEOF
  22576. cat confdefs.h >>conftest.$ac_ext
  22577. cat >>conftest.$ac_ext <<_ACEOF
  22578. /* end confdefs.h. */
  22579. #include <$ac_header>
  22580. _ACEOF
  22581. if { (ac_try="$ac_cpp conftest.$ac_ext"
  22582. case "(($ac_try" in
  22583. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22584. *) ac_try_echo=$ac_try;;
  22585. esac
  22586. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22587. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  22588. ac_status=$?
  22589. grep -v '^ *+' conftest.er1 >conftest.err
  22590. rm -f conftest.er1
  22591. cat conftest.err >&5
  22592. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22593. (exit $ac_status); } >/dev/null && {
  22594. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  22595. test ! -s conftest.err
  22596. }; then
  22597. ac_header_preproc=yes
  22598. else
  22599. echo "$as_me: failed program was:" >&5
  22600. sed 's/^/| /' conftest.$ac_ext >&5
  22601. ac_header_preproc=no
  22602. fi
  22603. rm -f conftest.err conftest.$ac_ext
  22604. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  22605. echo "${ECHO_T}$ac_header_preproc" >&6; }
  22606. # So? What about this header?
  22607. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  22608. yes:no: )
  22609. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  22610. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  22611. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  22612. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  22613. ac_header_preproc=yes
  22614. ;;
  22615. no:yes:* )
  22616. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  22617. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  22618. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  22619. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  22620. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  22621. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  22622. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  22623. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  22624. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  22625. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  22626. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  22627. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  22628. ( cat <<\_ASBOX
  22629. ## ------------------------------------------------------------------------ ##
  22630. ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
  22631. ## ------------------------------------------------------------------------ ##
  22632. _ASBOX
  22633. ) | sed "s/^/$as_me: WARNING: /" >&2
  22634. ;;
  22635. esac
  22636. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  22637. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  22638. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  22639. echo $ECHO_N "(cached) $ECHO_C" >&6
  22640. else
  22641. eval "$as_ac_Header=\$ac_header_preproc"
  22642. fi
  22643. ac_res=`eval echo '${'$as_ac_Header'}'`
  22644. { echo "$as_me:$LINENO: result: $ac_res" >&5
  22645. echo "${ECHO_T}$ac_res" >&6; }
  22646. fi
  22647. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  22648. cat >>confdefs.h <<_ACEOF
  22649. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  22650. _ACEOF
  22651. fi
  22652. done
  22653. { echo "$as_me:$LINENO: checking for monotonic clock_gettime" >&5
  22654. echo $ECHO_N "checking for monotonic clock_gettime... $ECHO_C" >&6; }
  22655. cat >conftest.$ac_ext <<_ACEOF
  22656. /* confdefs.h. */
  22657. _ACEOF
  22658. cat confdefs.h >>conftest.$ac_ext
  22659. cat >>conftest.$ac_ext <<_ACEOF
  22660. /* end confdefs.h. */
  22661. #ifdef HAVE_SYS_TYPES_H
  22662. #include <sys/types.h>
  22663. #endif
  22664. #ifdef HAVE_SYS_TIME_H
  22665. #include <sys/time.h>
  22666. #ifdef TIME_WITH_SYS_TIME
  22667. #include <time.h>
  22668. #endif
  22669. #else
  22670. #ifdef HAVE_TIME_H
  22671. #include <time.h>
  22672. #endif
  22673. #endif
  22674. int
  22675. main ()
  22676. {
  22677. struct timespec ts;
  22678. (void)clock_gettime(CLOCK_MONOTONIC, &ts);
  22679. ;
  22680. return 0;
  22681. }
  22682. _ACEOF
  22683. rm -f conftest.$ac_objext
  22684. if { (ac_try="$ac_compile"
  22685. case "(($ac_try" in
  22686. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22687. *) ac_try_echo=$ac_try;;
  22688. esac
  22689. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22690. (eval "$ac_compile") 2>conftest.er1
  22691. ac_status=$?
  22692. grep -v '^ *+' conftest.er1 >conftest.err
  22693. rm -f conftest.er1
  22694. cat conftest.err >&5
  22695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22696. (exit $ac_status); } && {
  22697. test -z "$ac_c_werror_flag" ||
  22698. test ! -s conftest.err
  22699. } && test -s conftest.$ac_objext; then
  22700. { echo "$as_me:$LINENO: result: yes" >&5
  22701. echo "${ECHO_T}yes" >&6; }
  22702. ac_cv_func_clock_gettime="yes"
  22703. else
  22704. echo "$as_me: failed program was:" >&5
  22705. sed 's/^/| /' conftest.$ac_ext >&5
  22706. { echo "$as_me:$LINENO: result: no" >&5
  22707. echo "${ECHO_T}no" >&6; }
  22708. ac_cv_func_clock_gettime="no"
  22709. fi
  22710. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22711. #
  22712. if test "$ac_cv_func_clock_gettime" = "yes"; then
  22713. #
  22714. { echo "$as_me:$LINENO: checking for clock_gettime in libraries" >&5
  22715. echo $ECHO_N "checking for clock_gettime in libraries... $ECHO_C" >&6; }
  22716. #
  22717. curl_cv_save_LIBS="$LIBS"
  22718. curl_cv_gclk_LIBS="unknown"
  22719. #
  22720. for x_xlibs in '' '-lrt' '-lposix4' ; do
  22721. if test "$curl_cv_gclk_LIBS" = "unknown"; then
  22722. if test -z "$x_xlibs"; then
  22723. LIBS="$curl_cv_save_LIBS"
  22724. else
  22725. LIBS="$x_xlibs $curl_cv_save_LIBS"
  22726. fi
  22727. cat >conftest.$ac_ext <<_ACEOF
  22728. /* confdefs.h. */
  22729. _ACEOF
  22730. cat confdefs.h >>conftest.$ac_ext
  22731. cat >>conftest.$ac_ext <<_ACEOF
  22732. /* end confdefs.h. */
  22733. #ifdef HAVE_SYS_TYPES_H
  22734. #include <sys/types.h>
  22735. #endif
  22736. #ifdef HAVE_SYS_TIME_H
  22737. #include <sys/time.h>
  22738. #ifdef TIME_WITH_SYS_TIME
  22739. #include <time.h>
  22740. #endif
  22741. #else
  22742. #ifdef HAVE_TIME_H
  22743. #include <time.h>
  22744. #endif
  22745. #endif
  22746. int
  22747. main ()
  22748. {
  22749. struct timespec ts;
  22750. (void)clock_gettime(CLOCK_MONOTONIC, &ts);
  22751. ;
  22752. return 0;
  22753. }
  22754. _ACEOF
  22755. rm -f conftest.$ac_objext conftest$ac_exeext
  22756. if { (ac_try="$ac_link"
  22757. case "(($ac_try" in
  22758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22759. *) ac_try_echo=$ac_try;;
  22760. esac
  22761. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22762. (eval "$ac_link") 2>conftest.er1
  22763. ac_status=$?
  22764. grep -v '^ *+' conftest.er1 >conftest.err
  22765. rm -f conftest.er1
  22766. cat conftest.err >&5
  22767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22768. (exit $ac_status); } && {
  22769. test -z "$ac_c_werror_flag" ||
  22770. test ! -s conftest.err
  22771. } && test -s conftest$ac_exeext &&
  22772. $as_test_x conftest$ac_exeext; then
  22773. curl_cv_gclk_LIBS="$x_xlibs"
  22774. else
  22775. echo "$as_me: failed program was:" >&5
  22776. sed 's/^/| /' conftest.$ac_ext >&5
  22777. fi
  22778. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22779. conftest$ac_exeext conftest.$ac_ext
  22780. fi
  22781. done
  22782. #
  22783. LIBS="$curl_cv_save_LIBS"
  22784. #
  22785. case X-"$curl_cv_gclk_LIBS" in
  22786. X-unknown)
  22787. { echo "$as_me:$LINENO: result: cannot find clock_gettime" >&5
  22788. echo "${ECHO_T}cannot find clock_gettime" >&6; }
  22789. { echo "$as_me:$LINENO: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
  22790. echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
  22791. ac_cv_func_clock_gettime="no"
  22792. ;;
  22793. X-)
  22794. { echo "$as_me:$LINENO: result: no additional lib required" >&5
  22795. echo "${ECHO_T}no additional lib required" >&6; }
  22796. ac_cv_func_clock_gettime="yes"
  22797. ;;
  22798. *)
  22799. if test -z "$curl_cv_save_LIBS"; then
  22800. LIBS="$curl_cv_gclk_LIBS"
  22801. else
  22802. LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
  22803. fi
  22804. { echo "$as_me:$LINENO: result: $curl_cv_gclk_LIBS" >&5
  22805. echo "${ECHO_T}$curl_cv_gclk_LIBS" >&6; }
  22806. ac_cv_func_clock_gettime="yes"
  22807. ;;
  22808. esac
  22809. #
  22810. if test "x$cross_compiling" != "xyes" &&
  22811. test "$ac_cv_func_clock_gettime" = "yes"; then
  22812. { echo "$as_me:$LINENO: checking if monotonic clock_gettime works" >&5
  22813. echo $ECHO_N "checking if monotonic clock_gettime works... $ECHO_C" >&6; }
  22814. if test "$cross_compiling" = yes; then
  22815. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  22816. See \`config.log' for more details." >&5
  22817. echo "$as_me: error: cannot run test program while cross compiling
  22818. See \`config.log' for more details." >&2;}
  22819. { (exit 1); exit 1; }; }
  22820. else
  22821. cat >conftest.$ac_ext <<_ACEOF
  22822. /* confdefs.h. */
  22823. _ACEOF
  22824. cat confdefs.h >>conftest.$ac_ext
  22825. cat >>conftest.$ac_ext <<_ACEOF
  22826. /* end confdefs.h. */
  22827. #ifdef HAVE_SYS_TYPES_H
  22828. #include <sys/types.h>
  22829. #endif
  22830. #ifdef HAVE_SYS_TIME_H
  22831. #include <sys/time.h>
  22832. #ifdef TIME_WITH_SYS_TIME
  22833. #include <time.h>
  22834. #endif
  22835. #else
  22836. #ifdef HAVE_TIME_H
  22837. #include <time.h>
  22838. #endif
  22839. #endif
  22840. int
  22841. main ()
  22842. {
  22843. struct timespec ts;
  22844. if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
  22845. exit(0);
  22846. else
  22847. exit(1);
  22848. ;
  22849. return 0;
  22850. }
  22851. _ACEOF
  22852. rm -f conftest$ac_exeext
  22853. if { (ac_try="$ac_link"
  22854. case "(($ac_try" in
  22855. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22856. *) ac_try_echo=$ac_try;;
  22857. esac
  22858. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22859. (eval "$ac_link") 2>&5
  22860. ac_status=$?
  22861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22862. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22863. { (case "(($ac_try" in
  22864. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22865. *) ac_try_echo=$ac_try;;
  22866. esac
  22867. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22868. (eval "$ac_try") 2>&5
  22869. ac_status=$?
  22870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22871. (exit $ac_status); }; }; then
  22872. { echo "$as_me:$LINENO: result: yes" >&5
  22873. echo "${ECHO_T}yes" >&6; }
  22874. else
  22875. echo "$as_me: program exited with status $ac_status" >&5
  22876. echo "$as_me: failed program was:" >&5
  22877. sed 's/^/| /' conftest.$ac_ext >&5
  22878. ( exit $ac_status )
  22879. { echo "$as_me:$LINENO: result: no" >&5
  22880. echo "${ECHO_T}no" >&6; }
  22881. { echo "$as_me:$LINENO: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
  22882. echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
  22883. ac_cv_func_clock_gettime="no"
  22884. LIBS="$curl_cv_save_LIBS"
  22885. fi
  22886. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22887. fi
  22888. fi
  22889. #
  22890. case "$ac_cv_func_clock_gettime" in
  22891. yes)
  22892. cat >>confdefs.h <<_ACEOF
  22893. #define HAVE_CLOCK_GETTIME_MONOTONIC 1
  22894. _ACEOF
  22895. ;;
  22896. esac
  22897. #
  22898. fi
  22899. #
  22900. TEST_SERVER_LIBS=$LIBS
  22901. { echo "$as_me:$LINENO: checking whether to use libgcc" >&5
  22902. echo $ECHO_N "checking whether to use libgcc... $ECHO_C" >&6; }
  22903. # Check whether --enable-libgcc was given.
  22904. if test "${enable_libgcc+set}" = set; then
  22905. enableval=$enable_libgcc; case "$enableval" in
  22906. yes)
  22907. ALL_LIBS="$ALL_LIBS -lgcc"
  22908. { echo "$as_me:$LINENO: result: yes" >&5
  22909. echo "${ECHO_T}yes" >&6; }
  22910. ;;
  22911. *) { echo "$as_me:$LINENO: result: no" >&5
  22912. echo "${ECHO_T}no" >&6; }
  22913. ;;
  22914. esac
  22915. else
  22916. { echo "$as_me:$LINENO: result: no" >&5
  22917. echo "${ECHO_T}no" >&6; }
  22918. fi
  22919. LDAPLIBNAME=""
  22920. # Check whether --with-ldap-lib was given.
  22921. if test "${with_ldap_lib+set}" = set; then
  22922. withval=$with_ldap_lib; LDAPLIBNAME="$withval"
  22923. fi
  22924. LBERLIBNAME=""
  22925. # Check whether --with-lber-lib was given.
  22926. if test "${with_lber_lib+set}" = set; then
  22927. withval=$with_lber_lib; LBERLIBNAME="$withval"
  22928. fi
  22929. if test x$CURL_DISABLE_LDAP != x1 ; then
  22930. { echo "$as_me:$LINENO: checking for lber.h" >&5
  22931. echo $ECHO_N "checking for lber.h... $ECHO_C" >&6; }
  22932. if test "${ac_cv_header_lber_h+set}" = set; then
  22933. echo $ECHO_N "(cached) $ECHO_C" >&6
  22934. else
  22935. cat >conftest.$ac_ext <<_ACEOF
  22936. /* confdefs.h. */
  22937. _ACEOF
  22938. cat confdefs.h >>conftest.$ac_ext
  22939. cat >>conftest.$ac_ext <<_ACEOF
  22940. /* end confdefs.h. */
  22941. #undef inline
  22942. #ifdef HAVE_WINDOWS_H
  22943. #ifndef WIN32_LEAN_AND_MEAN
  22944. #define WIN32_LEAN_AND_MEAN
  22945. #endif
  22946. #include <windows.h>
  22947. #else
  22948. #ifdef HAVE_SYS_TYPES_H
  22949. #include <sys/types.h>
  22950. #endif
  22951. #endif
  22952. #ifndef NULL
  22953. #define NULL (void *)0
  22954. #endif
  22955. #include <lber.h>
  22956. int
  22957. main ()
  22958. {
  22959. BerValue *bvp = NULL;
  22960. BerElement *bep = ber_init(bvp);
  22961. ber_free(bep, 1);
  22962. ;
  22963. return 0;
  22964. }
  22965. _ACEOF
  22966. rm -f conftest.$ac_objext
  22967. if { (ac_try="$ac_compile"
  22968. case "(($ac_try" in
  22969. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22970. *) ac_try_echo=$ac_try;;
  22971. esac
  22972. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22973. (eval "$ac_compile") 2>conftest.er1
  22974. ac_status=$?
  22975. grep -v '^ *+' conftest.er1 >conftest.err
  22976. rm -f conftest.er1
  22977. cat conftest.err >&5
  22978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22979. (exit $ac_status); } && {
  22980. test -z "$ac_c_werror_flag" ||
  22981. test ! -s conftest.err
  22982. } && test -s conftest.$ac_objext; then
  22983. ac_cv_header_lber_h="yes"
  22984. else
  22985. echo "$as_me: failed program was:" >&5
  22986. sed 's/^/| /' conftest.$ac_ext >&5
  22987. ac_cv_header_lber_h="no"
  22988. fi
  22989. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22990. fi
  22991. { echo "$as_me:$LINENO: result: $ac_cv_header_lber_h" >&5
  22992. echo "${ECHO_T}$ac_cv_header_lber_h" >&6; }
  22993. if test "$ac_cv_header_lber_h" = "yes"; then
  22994. cat >>confdefs.h <<_ACEOF
  22995. #define HAVE_LBER_H 1
  22996. _ACEOF
  22997. #
  22998. cat >conftest.$ac_ext <<_ACEOF
  22999. /* confdefs.h. */
  23000. _ACEOF
  23001. cat confdefs.h >>conftest.$ac_ext
  23002. cat >>conftest.$ac_ext <<_ACEOF
  23003. /* end confdefs.h. */
  23004. #undef inline
  23005. #ifdef HAVE_WINDOWS_H
  23006. #ifndef WIN32_LEAN_AND_MEAN
  23007. #define WIN32_LEAN_AND_MEAN
  23008. #endif
  23009. #include <windows.h>
  23010. #else
  23011. #ifdef HAVE_SYS_TYPES_H
  23012. #include <sys/types.h>
  23013. #endif
  23014. #endif
  23015. #ifndef NULL
  23016. #define NULL (void *)0
  23017. #endif
  23018. #ifndef LDAP_DEPRECATED
  23019. #define LDAP_DEPRECATED 1
  23020. #endif
  23021. #include <ldap.h>
  23022. int
  23023. main ()
  23024. {
  23025. BerValue *bvp = NULL;
  23026. BerElement *bep = ber_init(bvp);
  23027. ber_free(bep, 1);
  23028. ;
  23029. return 0;
  23030. }
  23031. _ACEOF
  23032. rm -f conftest.$ac_objext
  23033. if { (ac_try="$ac_compile"
  23034. case "(($ac_try" in
  23035. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23036. *) ac_try_echo=$ac_try;;
  23037. esac
  23038. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23039. (eval "$ac_compile") 2>conftest.er1
  23040. ac_status=$?
  23041. grep -v '^ *+' conftest.er1 >conftest.err
  23042. rm -f conftest.er1
  23043. cat conftest.err >&5
  23044. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23045. (exit $ac_status); } && {
  23046. test -z "$ac_c_werror_flag" ||
  23047. test ! -s conftest.err
  23048. } && test -s conftest.$ac_objext; then
  23049. curl_cv_need_header_lber_h="no"
  23050. else
  23051. echo "$as_me: failed program was:" >&5
  23052. sed 's/^/| /' conftest.$ac_ext >&5
  23053. curl_cv_need_header_lber_h="yes"
  23054. fi
  23055. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23056. #
  23057. case "$curl_cv_need_header_lber_h" in
  23058. yes)
  23059. cat >>confdefs.h <<_ACEOF
  23060. #define NEED_LBER_H 1
  23061. _ACEOF
  23062. ;;
  23063. esac
  23064. fi
  23065. { echo "$as_me:$LINENO: checking for ldap.h" >&5
  23066. echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6; }
  23067. if test "${ac_cv_header_ldap_h+set}" = set; then
  23068. echo $ECHO_N "(cached) $ECHO_C" >&6
  23069. else
  23070. cat >conftest.$ac_ext <<_ACEOF
  23071. /* confdefs.h. */
  23072. _ACEOF
  23073. cat confdefs.h >>conftest.$ac_ext
  23074. cat >>conftest.$ac_ext <<_ACEOF
  23075. /* end confdefs.h. */
  23076. #undef inline
  23077. #ifdef HAVE_WINDOWS_H
  23078. #ifndef WIN32_LEAN_AND_MEAN
  23079. #define WIN32_LEAN_AND_MEAN
  23080. #endif
  23081. #include <windows.h>
  23082. #else
  23083. #ifdef HAVE_SYS_TYPES_H
  23084. #include <sys/types.h>
  23085. #endif
  23086. #endif
  23087. #ifndef LDAP_DEPRECATED
  23088. #define LDAP_DEPRECATED 1
  23089. #endif
  23090. #ifdef NEED_LBER_H
  23091. #include <lber.h>
  23092. #endif
  23093. #include <ldap.h>
  23094. int
  23095. main ()
  23096. {
  23097. LDAP *ldp = ldap_init("dummy", LDAP_PORT);
  23098. int res = ldap_unbind(ldp);
  23099. ;
  23100. return 0;
  23101. }
  23102. _ACEOF
  23103. rm -f conftest.$ac_objext
  23104. if { (ac_try="$ac_compile"
  23105. case "(($ac_try" in
  23106. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23107. *) ac_try_echo=$ac_try;;
  23108. esac
  23109. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23110. (eval "$ac_compile") 2>conftest.er1
  23111. ac_status=$?
  23112. grep -v '^ *+' conftest.er1 >conftest.err
  23113. rm -f conftest.er1
  23114. cat conftest.err >&5
  23115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23116. (exit $ac_status); } && {
  23117. test -z "$ac_c_werror_flag" ||
  23118. test ! -s conftest.err
  23119. } && test -s conftest.$ac_objext; then
  23120. ac_cv_header_ldap_h="yes"
  23121. else
  23122. echo "$as_me: failed program was:" >&5
  23123. sed 's/^/| /' conftest.$ac_ext >&5
  23124. ac_cv_header_ldap_h="no"
  23125. fi
  23126. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23127. fi
  23128. { echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
  23129. echo "${ECHO_T}$ac_cv_header_ldap_h" >&6; }
  23130. case "$ac_cv_header_ldap_h" in
  23131. yes)
  23132. cat >>confdefs.h <<_ACEOF
  23133. #define HAVE_LDAP_H 1
  23134. _ACEOF
  23135. ;;
  23136. esac
  23137. { echo "$as_me:$LINENO: checking for ldapssl.h" >&5
  23138. echo $ECHO_N "checking for ldapssl.h... $ECHO_C" >&6; }
  23139. if test "${ac_cv_header_ldapssl_h+set}" = set; then
  23140. echo $ECHO_N "(cached) $ECHO_C" >&6
  23141. else
  23142. cat >conftest.$ac_ext <<_ACEOF
  23143. /* confdefs.h. */
  23144. _ACEOF
  23145. cat confdefs.h >>conftest.$ac_ext
  23146. cat >>conftest.$ac_ext <<_ACEOF
  23147. /* end confdefs.h. */
  23148. #undef inline
  23149. #ifdef HAVE_WINDOWS_H
  23150. #ifndef WIN32_LEAN_AND_MEAN
  23151. #define WIN32_LEAN_AND_MEAN
  23152. #endif
  23153. #include <windows.h>
  23154. #else
  23155. #ifdef HAVE_SYS_TYPES_H
  23156. #include <sys/types.h>
  23157. #endif
  23158. #endif
  23159. #ifndef NULL
  23160. #define NULL (void *)0
  23161. #endif
  23162. #ifndef LDAP_DEPRECATED
  23163. #define LDAP_DEPRECATED 1
  23164. #endif
  23165. #ifdef NEED_LBER_H
  23166. #include <lber.h>
  23167. #endif
  23168. #ifdef HAVE_LDAP_H
  23169. #include <ldap.h>
  23170. #endif
  23171. #include <ldapssl.h>
  23172. int
  23173. main ()
  23174. {
  23175. char *cert_label = NULL;
  23176. LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
  23177. ;
  23178. return 0;
  23179. }
  23180. _ACEOF
  23181. rm -f conftest.$ac_objext
  23182. if { (ac_try="$ac_compile"
  23183. case "(($ac_try" in
  23184. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23185. *) ac_try_echo=$ac_try;;
  23186. esac
  23187. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23188. (eval "$ac_compile") 2>conftest.er1
  23189. ac_status=$?
  23190. grep -v '^ *+' conftest.er1 >conftest.err
  23191. rm -f conftest.er1
  23192. cat conftest.err >&5
  23193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23194. (exit $ac_status); } && {
  23195. test -z "$ac_c_werror_flag" ||
  23196. test ! -s conftest.err
  23197. } && test -s conftest.$ac_objext; then
  23198. ac_cv_header_ldapssl_h="yes"
  23199. else
  23200. echo "$as_me: failed program was:" >&5
  23201. sed 's/^/| /' conftest.$ac_ext >&5
  23202. ac_cv_header_ldapssl_h="no"
  23203. fi
  23204. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23205. fi
  23206. { echo "$as_me:$LINENO: result: $ac_cv_header_ldapssl_h" >&5
  23207. echo "${ECHO_T}$ac_cv_header_ldapssl_h" >&6; }
  23208. case "$ac_cv_header_ldapssl_h" in
  23209. yes)
  23210. cat >>confdefs.h <<_ACEOF
  23211. #define HAVE_LDAPSSL_H 1
  23212. _ACEOF
  23213. ;;
  23214. esac
  23215. { echo "$as_me:$LINENO: checking for ldap_ssl.h" >&5
  23216. echo $ECHO_N "checking for ldap_ssl.h... $ECHO_C" >&6; }
  23217. if test "${ac_cv_header_ldap_ssl_h+set}" = set; then
  23218. echo $ECHO_N "(cached) $ECHO_C" >&6
  23219. else
  23220. cat >conftest.$ac_ext <<_ACEOF
  23221. /* confdefs.h. */
  23222. _ACEOF
  23223. cat confdefs.h >>conftest.$ac_ext
  23224. cat >>conftest.$ac_ext <<_ACEOF
  23225. /* end confdefs.h. */
  23226. #undef inline
  23227. #ifdef HAVE_WINDOWS_H
  23228. #ifndef WIN32_LEAN_AND_MEAN
  23229. #define WIN32_LEAN_AND_MEAN
  23230. #endif
  23231. #include <windows.h>
  23232. #else
  23233. #ifdef HAVE_SYS_TYPES_H
  23234. #include <sys/types.h>
  23235. #endif
  23236. #endif
  23237. #ifndef LDAP_DEPRECATED
  23238. #define LDAP_DEPRECATED 1
  23239. #endif
  23240. #ifdef NEED_LBER_H
  23241. #include <lber.h>
  23242. #endif
  23243. #ifdef HAVE_LDAP_H
  23244. #include <ldap.h>
  23245. #endif
  23246. #include <ldap_ssl.h>
  23247. int
  23248. main ()
  23249. {
  23250. LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
  23251. ;
  23252. return 0;
  23253. }
  23254. _ACEOF
  23255. rm -f conftest.$ac_objext
  23256. if { (ac_try="$ac_compile"
  23257. case "(($ac_try" in
  23258. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23259. *) ac_try_echo=$ac_try;;
  23260. esac
  23261. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23262. (eval "$ac_compile") 2>conftest.er1
  23263. ac_status=$?
  23264. grep -v '^ *+' conftest.er1 >conftest.err
  23265. rm -f conftest.er1
  23266. cat conftest.err >&5
  23267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23268. (exit $ac_status); } && {
  23269. test -z "$ac_c_werror_flag" ||
  23270. test ! -s conftest.err
  23271. } && test -s conftest.$ac_objext; then
  23272. ac_cv_header_ldap_ssl_h="yes"
  23273. else
  23274. echo "$as_me: failed program was:" >&5
  23275. sed 's/^/| /' conftest.$ac_ext >&5
  23276. ac_cv_header_ldap_ssl_h="no"
  23277. fi
  23278. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23279. fi
  23280. { echo "$as_me:$LINENO: result: $ac_cv_header_ldap_ssl_h" >&5
  23281. echo "${ECHO_T}$ac_cv_header_ldap_ssl_h" >&6; }
  23282. case "$ac_cv_header_ldap_ssl_h" in
  23283. yes)
  23284. cat >>confdefs.h <<_ACEOF
  23285. #define HAVE_LDAP_SSL_H 1
  23286. _ACEOF
  23287. ;;
  23288. esac
  23289. if test -z "$LDAPLIBNAME" ; then
  23290. case $host in
  23291. *-*-cygwin* | *-*-mingw* | *-*-pw32*)
  23292. LDAPLIBNAME="wldap32"
  23293. LBERLIBNAME="no"
  23294. ;;
  23295. esac
  23296. fi
  23297. if test "$LDAPLIBNAME" ; then
  23298. as_ac_Lib=`echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
  23299. { echo "$as_me:$LINENO: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
  23300. echo $ECHO_N "checking for ldap_init in -l\"$LDAPLIBNAME\"... $ECHO_C" >&6; }
  23301. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  23302. echo $ECHO_N "(cached) $ECHO_C" >&6
  23303. else
  23304. ac_check_lib_save_LIBS=$LIBS
  23305. LIBS="-l"$LDAPLIBNAME" $LIBS"
  23306. cat >conftest.$ac_ext <<_ACEOF
  23307. /* confdefs.h. */
  23308. _ACEOF
  23309. cat confdefs.h >>conftest.$ac_ext
  23310. cat >>conftest.$ac_ext <<_ACEOF
  23311. /* end confdefs.h. */
  23312. /* Override any GCC internal prototype to avoid an error.
  23313. Use char because int might match the return type of a GCC
  23314. builtin and then its argument prototype would still apply. */
  23315. #ifdef __cplusplus
  23316. extern "C"
  23317. #endif
  23318. char ldap_init ();
  23319. int
  23320. main ()
  23321. {
  23322. return ldap_init ();
  23323. ;
  23324. return 0;
  23325. }
  23326. _ACEOF
  23327. rm -f conftest.$ac_objext conftest$ac_exeext
  23328. if { (ac_try="$ac_link"
  23329. case "(($ac_try" in
  23330. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23331. *) ac_try_echo=$ac_try;;
  23332. esac
  23333. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23334. (eval "$ac_link") 2>conftest.er1
  23335. ac_status=$?
  23336. grep -v '^ *+' conftest.er1 >conftest.err
  23337. rm -f conftest.er1
  23338. cat conftest.err >&5
  23339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23340. (exit $ac_status); } && {
  23341. test -z "$ac_c_werror_flag" ||
  23342. test ! -s conftest.err
  23343. } && test -s conftest$ac_exeext &&
  23344. $as_test_x conftest$ac_exeext; then
  23345. eval "$as_ac_Lib=yes"
  23346. else
  23347. echo "$as_me: failed program was:" >&5
  23348. sed 's/^/| /' conftest.$ac_ext >&5
  23349. eval "$as_ac_Lib=no"
  23350. fi
  23351. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23352. conftest$ac_exeext conftest.$ac_ext
  23353. LIBS=$ac_check_lib_save_LIBS
  23354. fi
  23355. ac_res=`eval echo '${'$as_ac_Lib'}'`
  23356. { echo "$as_me:$LINENO: result: $ac_res" >&5
  23357. echo "${ECHO_T}$ac_res" >&6; }
  23358. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  23359. cat >>confdefs.h <<_ACEOF
  23360. #define `echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
  23361. _ACEOF
  23362. LIBS="-l"$LDAPLIBNAME" $LIBS"
  23363. else
  23364. { echo "$as_me:$LINENO: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
  23365. echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
  23366. cat >>confdefs.h <<\_ACEOF
  23367. #define CURL_DISABLE_LDAP 1
  23368. _ACEOF
  23369. CURL_DISABLE_LDAP=1
  23370. fi
  23371. cat >>confdefs.h <<\_ACEOF
  23372. #define CURL_DISABLE_LDAPS 1
  23373. _ACEOF
  23374. CURL_DISABLE_LDAPS=1
  23375. else
  23376. #
  23377. { echo "$as_me:$LINENO: checking for LDAP libraries" >&5
  23378. echo $ECHO_N "checking for LDAP libraries... $ECHO_C" >&6; }
  23379. #
  23380. u_libs=""
  23381. #
  23382. #
  23383. curl_cv_save_LIBS="$LIBS"
  23384. curl_cv_ldap_LIBS="unknown"
  23385. #
  23386. for x_nlibs in '' "$u_libs" \
  23387. '-lldap' \
  23388. '-llber -lldap' \
  23389. '-lldap -llber' \
  23390. '-lldapssl -lldapx -lldapsdk' \
  23391. '-lldapsdk -lldapx -lldapssl' ; do
  23392. if test "$curl_cv_ldap_LIBS" = "unknown"; then
  23393. if test -z "$x_nlibs"; then
  23394. LIBS="$curl_cv_save_LIBS"
  23395. else
  23396. LIBS="$x_nlibs $curl_cv_save_LIBS"
  23397. fi
  23398. cat >conftest.$ac_ext <<_ACEOF
  23399. /* confdefs.h. */
  23400. _ACEOF
  23401. cat confdefs.h >>conftest.$ac_ext
  23402. cat >>conftest.$ac_ext <<_ACEOF
  23403. /* end confdefs.h. */
  23404. #undef inline
  23405. #ifdef HAVE_WINDOWS_H
  23406. #ifndef WIN32_LEAN_AND_MEAN
  23407. #define WIN32_LEAN_AND_MEAN
  23408. #endif
  23409. #include <windows.h>
  23410. #else
  23411. #ifdef HAVE_SYS_TYPES_H
  23412. #include <sys/types.h>
  23413. #endif
  23414. #endif
  23415. #ifndef NULL
  23416. #define NULL (void *)0
  23417. #endif
  23418. #ifndef LDAP_DEPRECATED
  23419. #define LDAP_DEPRECATED 1
  23420. #endif
  23421. #ifdef NEED_LBER_H
  23422. #include <lber.h>
  23423. #endif
  23424. #ifdef HAVE_LDAP_H
  23425. #include <ldap.h>
  23426. #endif
  23427. int
  23428. main ()
  23429. {
  23430. BerValue *bvp = NULL;
  23431. BerElement *bep = ber_init(bvp);
  23432. LDAP *ldp = ldap_init("dummy", LDAP_PORT);
  23433. int res = ldap_unbind(ldp);
  23434. ber_free(bep, 1);
  23435. ;
  23436. return 0;
  23437. }
  23438. _ACEOF
  23439. rm -f conftest.$ac_objext conftest$ac_exeext
  23440. if { (ac_try="$ac_link"
  23441. case "(($ac_try" in
  23442. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23443. *) ac_try_echo=$ac_try;;
  23444. esac
  23445. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23446. (eval "$ac_link") 2>conftest.er1
  23447. ac_status=$?
  23448. grep -v '^ *+' conftest.er1 >conftest.err
  23449. rm -f conftest.er1
  23450. cat conftest.err >&5
  23451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23452. (exit $ac_status); } && {
  23453. test -z "$ac_c_werror_flag" ||
  23454. test ! -s conftest.err
  23455. } && test -s conftest$ac_exeext &&
  23456. $as_test_x conftest$ac_exeext; then
  23457. curl_cv_ldap_LIBS="$x_nlibs"
  23458. else
  23459. echo "$as_me: failed program was:" >&5
  23460. sed 's/^/| /' conftest.$ac_ext >&5
  23461. fi
  23462. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23463. conftest$ac_exeext conftest.$ac_ext
  23464. fi
  23465. done
  23466. #
  23467. LIBS="$curl_cv_save_LIBS"
  23468. #
  23469. case X-"$curl_cv_ldap_LIBS" in
  23470. X-unknown)
  23471. { echo "$as_me:$LINENO: result: cannot find LDAP libraries" >&5
  23472. echo "${ECHO_T}cannot find LDAP libraries" >&6; }
  23473. ;;
  23474. X-)
  23475. { echo "$as_me:$LINENO: result: no additional lib required" >&5
  23476. echo "${ECHO_T}no additional lib required" >&6; }
  23477. ;;
  23478. *)
  23479. if test -z "$curl_cv_save_LIBS"; then
  23480. LIBS="$curl_cv_ldap_LIBS"
  23481. else
  23482. LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
  23483. fi
  23484. { echo "$as_me:$LINENO: result: $curl_cv_ldap_LIBS" >&5
  23485. echo "${ECHO_T}$curl_cv_ldap_LIBS" >&6; }
  23486. ;;
  23487. esac
  23488. #
  23489. case X-"$curl_cv_ldap_LIBS" in
  23490. X-unknown)
  23491. { echo "$as_me:$LINENO: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
  23492. echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
  23493. cat >>confdefs.h <<\_ACEOF
  23494. #define CURL_DISABLE_LDAP 1
  23495. _ACEOF
  23496. CURL_DISABLE_LDAP=1
  23497. cat >>confdefs.h <<\_ACEOF
  23498. #define CURL_DISABLE_LDAPS 1
  23499. _ACEOF
  23500. CURL_DISABLE_LDAPS=1
  23501. ;;
  23502. esac
  23503. fi
  23504. fi
  23505. if test x$CURL_DISABLE_LDAP != x1 ; then
  23506. if test "$LBERLIBNAME" ; then
  23507. if test "$LBERLIBNAME" != "no" ; then
  23508. as_ac_Lib=`echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
  23509. { echo "$as_me:$LINENO: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
  23510. echo $ECHO_N "checking for ber_free in -l\"$LBERLIBNAME\"... $ECHO_C" >&6; }
  23511. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  23512. echo $ECHO_N "(cached) $ECHO_C" >&6
  23513. else
  23514. ac_check_lib_save_LIBS=$LIBS
  23515. LIBS="-l"$LBERLIBNAME" $LIBS"
  23516. cat >conftest.$ac_ext <<_ACEOF
  23517. /* confdefs.h. */
  23518. _ACEOF
  23519. cat confdefs.h >>conftest.$ac_ext
  23520. cat >>conftest.$ac_ext <<_ACEOF
  23521. /* end confdefs.h. */
  23522. /* Override any GCC internal prototype to avoid an error.
  23523. Use char because int might match the return type of a GCC
  23524. builtin and then its argument prototype would still apply. */
  23525. #ifdef __cplusplus
  23526. extern "C"
  23527. #endif
  23528. char ber_free ();
  23529. int
  23530. main ()
  23531. {
  23532. return ber_free ();
  23533. ;
  23534. return 0;
  23535. }
  23536. _ACEOF
  23537. rm -f conftest.$ac_objext conftest$ac_exeext
  23538. if { (ac_try="$ac_link"
  23539. case "(($ac_try" in
  23540. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23541. *) ac_try_echo=$ac_try;;
  23542. esac
  23543. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23544. (eval "$ac_link") 2>conftest.er1
  23545. ac_status=$?
  23546. grep -v '^ *+' conftest.er1 >conftest.err
  23547. rm -f conftest.er1
  23548. cat conftest.err >&5
  23549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23550. (exit $ac_status); } && {
  23551. test -z "$ac_c_werror_flag" ||
  23552. test ! -s conftest.err
  23553. } && test -s conftest$ac_exeext &&
  23554. $as_test_x conftest$ac_exeext; then
  23555. eval "$as_ac_Lib=yes"
  23556. else
  23557. echo "$as_me: failed program was:" >&5
  23558. sed 's/^/| /' conftest.$ac_ext >&5
  23559. eval "$as_ac_Lib=no"
  23560. fi
  23561. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23562. conftest$ac_exeext conftest.$ac_ext
  23563. LIBS=$ac_check_lib_save_LIBS
  23564. fi
  23565. ac_res=`eval echo '${'$as_ac_Lib'}'`
  23566. { echo "$as_me:$LINENO: result: $ac_res" >&5
  23567. echo "${ECHO_T}$ac_res" >&6; }
  23568. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  23569. cat >>confdefs.h <<_ACEOF
  23570. #define `echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
  23571. _ACEOF
  23572. LIBS="-l"$LBERLIBNAME" $LIBS"
  23573. else
  23574. { echo "$as_me:$LINENO: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
  23575. echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
  23576. cat >>confdefs.h <<\_ACEOF
  23577. #define CURL_DISABLE_LDAP 1
  23578. _ACEOF
  23579. CURL_DISABLE_LDAP=1
  23580. fi
  23581. cat >>confdefs.h <<\_ACEOF
  23582. #define CURL_DISABLE_LDAPS 1
  23583. _ACEOF
  23584. CURL_DISABLE_LDAPS=1
  23585. fi
  23586. fi
  23587. fi
  23588. if test x$CURL_DISABLE_LDAP != x1 ; then
  23589. for ac_func in ldap_url_parse
  23590. do
  23591. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  23592. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  23593. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  23594. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  23595. echo $ECHO_N "(cached) $ECHO_C" >&6
  23596. else
  23597. cat >conftest.$ac_ext <<_ACEOF
  23598. /* confdefs.h. */
  23599. _ACEOF
  23600. cat confdefs.h >>conftest.$ac_ext
  23601. cat >>conftest.$ac_ext <<_ACEOF
  23602. /* end confdefs.h. */
  23603. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  23604. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  23605. #define $ac_func innocuous_$ac_func
  23606. /* System header to define __stub macros and hopefully few prototypes,
  23607. which can conflict with char $ac_func (); below.
  23608. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23609. <limits.h> exists even on freestanding compilers. */
  23610. #ifdef __STDC__
  23611. # include <limits.h>
  23612. #else
  23613. # include <assert.h>
  23614. #endif
  23615. #undef $ac_func
  23616. /* Override any GCC internal prototype to avoid an error.
  23617. Use char because int might match the return type of a GCC
  23618. builtin and then its argument prototype would still apply. */
  23619. #ifdef __cplusplus
  23620. extern "C"
  23621. #endif
  23622. char $ac_func ();
  23623. /* The GNU C library defines this for functions which it implements
  23624. to always fail with ENOSYS. Some functions are actually named
  23625. something starting with __ and the normal name is an alias. */
  23626. #if defined __stub_$ac_func || defined __stub___$ac_func
  23627. choke me
  23628. #endif
  23629. int
  23630. main ()
  23631. {
  23632. return $ac_func ();
  23633. ;
  23634. return 0;
  23635. }
  23636. _ACEOF
  23637. rm -f conftest.$ac_objext conftest$ac_exeext
  23638. if { (ac_try="$ac_link"
  23639. case "(($ac_try" in
  23640. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23641. *) ac_try_echo=$ac_try;;
  23642. esac
  23643. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23644. (eval "$ac_link") 2>conftest.er1
  23645. ac_status=$?
  23646. grep -v '^ *+' conftest.er1 >conftest.err
  23647. rm -f conftest.er1
  23648. cat conftest.err >&5
  23649. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23650. (exit $ac_status); } && {
  23651. test -z "$ac_c_werror_flag" ||
  23652. test ! -s conftest.err
  23653. } && test -s conftest$ac_exeext &&
  23654. $as_test_x conftest$ac_exeext; then
  23655. eval "$as_ac_var=yes"
  23656. else
  23657. echo "$as_me: failed program was:" >&5
  23658. sed 's/^/| /' conftest.$ac_ext >&5
  23659. eval "$as_ac_var=no"
  23660. fi
  23661. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23662. conftest$ac_exeext conftest.$ac_ext
  23663. fi
  23664. ac_res=`eval echo '${'$as_ac_var'}'`
  23665. { echo "$as_me:$LINENO: result: $ac_res" >&5
  23666. echo "${ECHO_T}$ac_res" >&6; }
  23667. if test `eval echo '${'$as_ac_var'}'` = yes; then
  23668. cat >>confdefs.h <<_ACEOF
  23669. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  23670. _ACEOF
  23671. fi
  23672. done
  23673. if test "$LDAPLIBNAME" = "wldap32"; then
  23674. curl_ldap_msg="enabled (winldap)"
  23675. cat >>confdefs.h <<\_ACEOF
  23676. #define CURL_LDAP_WIN 1
  23677. _ACEOF
  23678. case $host in
  23679. *-*-cygwin* | *-*-pw32*)
  23680. cat >>confdefs.h <<\_ACEOF
  23681. #define CURL_LDAP_HYBRID 1
  23682. _ACEOF
  23683. ;;
  23684. esac
  23685. else
  23686. curl_ldap_msg="enabled (OpenLDAP)"
  23687. fi
  23688. fi
  23689. { echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
  23690. echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
  23691. # Check whether --enable-ipv6 was given.
  23692. if test "${enable_ipv6+set}" = set; then
  23693. enableval=$enable_ipv6; case "$enableval" in
  23694. no)
  23695. { echo "$as_me:$LINENO: result: no" >&5
  23696. echo "${ECHO_T}no" >&6; }
  23697. ipv6=no
  23698. ;;
  23699. *) { echo "$as_me:$LINENO: result: yes" >&5
  23700. echo "${ECHO_T}yes" >&6; }
  23701. ipv6=yes
  23702. ;;
  23703. esac
  23704. else
  23705. if test "$cross_compiling" = yes; then
  23706. { echo "$as_me:$LINENO: result: no" >&5
  23707. echo "${ECHO_T}no" >&6; }
  23708. ipv6=no
  23709. else
  23710. cat >conftest.$ac_ext <<_ACEOF
  23711. /* confdefs.h. */
  23712. _ACEOF
  23713. cat confdefs.h >>conftest.$ac_ext
  23714. cat >>conftest.$ac_ext <<_ACEOF
  23715. /* end confdefs.h. */
  23716. /* is AF_INET6 available? */
  23717. #include <sys/types.h>
  23718. #include <sys/socket.h>
  23719. main()
  23720. {
  23721. if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
  23722. exit(1);
  23723. else
  23724. exit(0);
  23725. }
  23726. _ACEOF
  23727. rm -f conftest$ac_exeext
  23728. if { (ac_try="$ac_link"
  23729. case "(($ac_try" in
  23730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23731. *) ac_try_echo=$ac_try;;
  23732. esac
  23733. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23734. (eval "$ac_link") 2>&5
  23735. ac_status=$?
  23736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23737. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23738. { (case "(($ac_try" in
  23739. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23740. *) ac_try_echo=$ac_try;;
  23741. esac
  23742. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23743. (eval "$ac_try") 2>&5
  23744. ac_status=$?
  23745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23746. (exit $ac_status); }; }; then
  23747. { echo "$as_me:$LINENO: result: yes" >&5
  23748. echo "${ECHO_T}yes" >&6; }
  23749. ipv6=yes
  23750. else
  23751. echo "$as_me: program exited with status $ac_status" >&5
  23752. echo "$as_me: failed program was:" >&5
  23753. sed 's/^/| /' conftest.$ac_ext >&5
  23754. ( exit $ac_status )
  23755. { echo "$as_me:$LINENO: result: no" >&5
  23756. echo "${ECHO_T}no" >&6; }
  23757. ipv6=no
  23758. fi
  23759. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23760. fi
  23761. fi
  23762. if test "$ipv6" = "yes"; then
  23763. curl_ipv6_msg="enabled"
  23764. fi
  23765. # Check whether --enable-nonblocking was given.
  23766. if test "${enable_nonblocking+set}" = set; then
  23767. enableval=$enable_nonblocking;
  23768. if test "$enableval" = "no" ; then
  23769. { echo "$as_me:$LINENO: WARNING: non-blocking sockets disabled" >&5
  23770. echo "$as_me: WARNING: non-blocking sockets disabled" >&2;}
  23771. cat >>confdefs.h <<\_ACEOF
  23772. #define HAVE_DISABLED_NONBLOCKING 1
  23773. _ACEOF
  23774. else
  23775. { echo "$as_me:$LINENO: checking non-blocking sockets style" >&5
  23776. echo $ECHO_N "checking non-blocking sockets style... $ECHO_C" >&6; }
  23777. nonblock="unknown"
  23778. #
  23779. cat >conftest.$ac_ext <<_ACEOF
  23780. /* confdefs.h. */
  23781. _ACEOF
  23782. cat confdefs.h >>conftest.$ac_ext
  23783. cat >>conftest.$ac_ext <<_ACEOF
  23784. /* end confdefs.h. */
  23785. /* headers for O_NONBLOCK test */
  23786. #include <sys/types.h>
  23787. #include <unistd.h>
  23788. #include <fcntl.h>
  23789. /* */
  23790. #if defined(sun) || defined(__sun__) || \
  23791. defined(__SUNPRO_C) || defined(__SUNPRO_CC)
  23792. # if defined(__SVR4) || defined(__srv4__)
  23793. # define PLATFORM_SOLARIS
  23794. # else
  23795. # define PLATFORM_SUNOS4
  23796. # endif
  23797. #endif
  23798. #if (defined(_AIX) || defined(__xlC__)) && !defined(_AIX41)
  23799. # define PLATFORM_AIX_V3
  23800. #endif
  23801. /* */
  23802. #if defined(PLATFORM_SUNOS4) || defined(PLATFORM_AIX_V3) || defined(__BEOS__)
  23803. #error "O_NONBLOCK does not work on this platform"
  23804. #endif
  23805. int
  23806. main ()
  23807. {
  23808. /* O_NONBLOCK source test */
  23809. int socket;
  23810. int flags = fcntl(socket, F_SETFL, flags | O_NONBLOCK);
  23811. ;
  23812. return 0;
  23813. }
  23814. _ACEOF
  23815. rm -f conftest.$ac_objext
  23816. if { (ac_try="$ac_compile"
  23817. case "(($ac_try" in
  23818. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23819. *) ac_try_echo=$ac_try;;
  23820. esac
  23821. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23822. (eval "$ac_compile") 2>conftest.er1
  23823. ac_status=$?
  23824. grep -v '^ *+' conftest.er1 >conftest.err
  23825. rm -f conftest.er1
  23826. cat conftest.err >&5
  23827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23828. (exit $ac_status); } && {
  23829. test -z "$ac_c_werror_flag" ||
  23830. test ! -s conftest.err
  23831. } && test -s conftest.$ac_objext; then
  23832. nonblock="O_NONBLOCK"
  23833. cat >>confdefs.h <<\_ACEOF
  23834. #define HAVE_O_NONBLOCK 1
  23835. _ACEOF
  23836. else
  23837. echo "$as_me: failed program was:" >&5
  23838. sed 's/^/| /' conftest.$ac_ext >&5
  23839. fi
  23840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23841. #
  23842. if test "$nonblock" = "unknown"; then
  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. /* headers for FIONBIO test */
  23850. #include <unistd.h>
  23851. #include <stropts.h>
  23852. int
  23853. main ()
  23854. {
  23855. /* FIONBIO source test (old-style unix) */
  23856. int socket;
  23857. int flags = ioctl(socket, FIONBIO, &flags);
  23858. ;
  23859. return 0;
  23860. }
  23861. _ACEOF
  23862. rm -f conftest.$ac_objext
  23863. if { (ac_try="$ac_compile"
  23864. case "(($ac_try" in
  23865. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23866. *) ac_try_echo=$ac_try;;
  23867. esac
  23868. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23869. (eval "$ac_compile") 2>conftest.er1
  23870. ac_status=$?
  23871. grep -v '^ *+' conftest.er1 >conftest.err
  23872. rm -f conftest.er1
  23873. cat conftest.err >&5
  23874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23875. (exit $ac_status); } && {
  23876. test -z "$ac_c_werror_flag" ||
  23877. test ! -s conftest.err
  23878. } && test -s conftest.$ac_objext; then
  23879. nonblock="FIONBIO"
  23880. cat >>confdefs.h <<\_ACEOF
  23881. #define HAVE_FIONBIO 1
  23882. _ACEOF
  23883. else
  23884. echo "$as_me: failed program was:" >&5
  23885. sed 's/^/| /' conftest.$ac_ext >&5
  23886. fi
  23887. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23888. fi
  23889. #
  23890. if test "$nonblock" = "unknown"; then
  23891. cat >conftest.$ac_ext <<_ACEOF
  23892. /* confdefs.h. */
  23893. _ACEOF
  23894. cat confdefs.h >>conftest.$ac_ext
  23895. cat >>conftest.$ac_ext <<_ACEOF
  23896. /* end confdefs.h. */
  23897. /* headers for ioctlsocket test (Windows) */
  23898. #undef inline
  23899. #ifdef HAVE_WINDOWS_H
  23900. #ifndef WIN32_LEAN_AND_MEAN
  23901. #define WIN32_LEAN_AND_MEAN
  23902. #endif
  23903. #include <windows.h>
  23904. #ifdef HAVE_WINSOCK2_H
  23905. #include <winsock2.h>
  23906. #else
  23907. #ifdef HAVE_WINSOCK_H
  23908. #include <winsock.h>
  23909. #endif
  23910. #endif
  23911. #endif
  23912. int
  23913. main ()
  23914. {
  23915. /* ioctlsocket source code (Windows) */
  23916. SOCKET sd;
  23917. unsigned long flags = 0;
  23918. sd = socket(0, 0, 0);
  23919. ioctlsocket(sd, FIONBIO, &flags);
  23920. ;
  23921. return 0;
  23922. }
  23923. _ACEOF
  23924. rm -f conftest.$ac_objext
  23925. if { (ac_try="$ac_compile"
  23926. case "(($ac_try" in
  23927. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23928. *) ac_try_echo=$ac_try;;
  23929. esac
  23930. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23931. (eval "$ac_compile") 2>conftest.er1
  23932. ac_status=$?
  23933. grep -v '^ *+' conftest.er1 >conftest.err
  23934. rm -f conftest.er1
  23935. cat conftest.err >&5
  23936. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23937. (exit $ac_status); } && {
  23938. test -z "$ac_c_werror_flag" ||
  23939. test ! -s conftest.err
  23940. } && test -s conftest.$ac_objext; then
  23941. nonblock="ioctlsocket"
  23942. cat >>confdefs.h <<\_ACEOF
  23943. #define HAVE_IOCTLSOCKET 1
  23944. _ACEOF
  23945. else
  23946. echo "$as_me: failed program was:" >&5
  23947. sed 's/^/| /' conftest.$ac_ext >&5
  23948. fi
  23949. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23950. fi
  23951. #
  23952. if test "$nonblock" = "unknown"; then
  23953. cat >conftest.$ac_ext <<_ACEOF
  23954. /* confdefs.h. */
  23955. _ACEOF
  23956. cat confdefs.h >>conftest.$ac_ext
  23957. cat >>conftest.$ac_ext <<_ACEOF
  23958. /* end confdefs.h. */
  23959. /* headers for IoctlSocket test (Amiga?) */
  23960. #include <sys/ioctl.h>
  23961. int
  23962. main ()
  23963. {
  23964. /* IoctlSocket source code (Amiga?) */
  23965. int socket;
  23966. int flags = IoctlSocket(socket, FIONBIO, (long)1);
  23967. ;
  23968. return 0;
  23969. }
  23970. _ACEOF
  23971. rm -f conftest.$ac_objext conftest$ac_exeext
  23972. if { (ac_try="$ac_link"
  23973. case "(($ac_try" in
  23974. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23975. *) ac_try_echo=$ac_try;;
  23976. esac
  23977. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23978. (eval "$ac_link") 2>conftest.er1
  23979. ac_status=$?
  23980. grep -v '^ *+' conftest.er1 >conftest.err
  23981. rm -f conftest.er1
  23982. cat conftest.err >&5
  23983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23984. (exit $ac_status); } && {
  23985. test -z "$ac_c_werror_flag" ||
  23986. test ! -s conftest.err
  23987. } && test -s conftest$ac_exeext &&
  23988. $as_test_x conftest$ac_exeext; then
  23989. nonblock="IoctlSocket"
  23990. cat >>confdefs.h <<\_ACEOF
  23991. #define HAVE_IOCTLSOCKET_CASE 1
  23992. _ACEOF
  23993. else
  23994. echo "$as_me: failed program was:" >&5
  23995. sed 's/^/| /' conftest.$ac_ext >&5
  23996. fi
  23997. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23998. conftest$ac_exeext conftest.$ac_ext
  23999. fi
  24000. #
  24001. if test "$nonblock" = "unknown"; then
  24002. cat >conftest.$ac_ext <<_ACEOF
  24003. /* confdefs.h. */
  24004. _ACEOF
  24005. cat confdefs.h >>conftest.$ac_ext
  24006. cat >>conftest.$ac_ext <<_ACEOF
  24007. /* end confdefs.h. */
  24008. /* headers for SO_NONBLOCK test (BeOS) */
  24009. #include <socket.h>
  24010. int
  24011. main ()
  24012. {
  24013. /* SO_NONBLOCK source code (BeOS) */
  24014. long b = 1;
  24015. int socket;
  24016. int flags = setsockopt(socket, SOL_SOCKET, SO_NONBLOCK, &b, sizeof(b));
  24017. ;
  24018. return 0;
  24019. }
  24020. _ACEOF
  24021. rm -f conftest.$ac_objext
  24022. if { (ac_try="$ac_compile"
  24023. case "(($ac_try" in
  24024. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24025. *) ac_try_echo=$ac_try;;
  24026. esac
  24027. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24028. (eval "$ac_compile") 2>conftest.er1
  24029. ac_status=$?
  24030. grep -v '^ *+' conftest.er1 >conftest.err
  24031. rm -f conftest.er1
  24032. cat conftest.err >&5
  24033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24034. (exit $ac_status); } && {
  24035. test -z "$ac_c_werror_flag" ||
  24036. test ! -s conftest.err
  24037. } && test -s conftest.$ac_objext; then
  24038. nonblock="SO_NONBLOCK"
  24039. cat >>confdefs.h <<\_ACEOF
  24040. #define HAVE_SO_NONBLOCK 1
  24041. _ACEOF
  24042. else
  24043. echo "$as_me: failed program was:" >&5
  24044. sed 's/^/| /' conftest.$ac_ext >&5
  24045. fi
  24046. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24047. fi
  24048. #
  24049. { echo "$as_me:$LINENO: result: $nonblock" >&5
  24050. echo "${ECHO_T}$nonblock" >&6; }
  24051. #
  24052. if test "$nonblock" = "unknown"; then
  24053. cat >>confdefs.h <<\_ACEOF
  24054. #define HAVE_DISABLED_NONBLOCKING 1
  24055. _ACEOF
  24056. { echo "$as_me:$LINENO: WARNING: non-block sockets disabled" >&5
  24057. echo "$as_me: WARNING: non-block sockets disabled" >&2;}
  24058. fi
  24059. fi
  24060. else
  24061. { echo "$as_me:$LINENO: checking non-blocking sockets style" >&5
  24062. echo $ECHO_N "checking non-blocking sockets style... $ECHO_C" >&6; }
  24063. nonblock="unknown"
  24064. #
  24065. cat >conftest.$ac_ext <<_ACEOF
  24066. /* confdefs.h. */
  24067. _ACEOF
  24068. cat confdefs.h >>conftest.$ac_ext
  24069. cat >>conftest.$ac_ext <<_ACEOF
  24070. /* end confdefs.h. */
  24071. /* headers for O_NONBLOCK test */
  24072. #include <sys/types.h>
  24073. #include <unistd.h>
  24074. #include <fcntl.h>
  24075. /* */
  24076. #if defined(sun) || defined(__sun__) || \
  24077. defined(__SUNPRO_C) || defined(__SUNPRO_CC)
  24078. # if defined(__SVR4) || defined(__srv4__)
  24079. # define PLATFORM_SOLARIS
  24080. # else
  24081. # define PLATFORM_SUNOS4
  24082. # endif
  24083. #endif
  24084. #if (defined(_AIX) || defined(__xlC__)) && !defined(_AIX41)
  24085. # define PLATFORM_AIX_V3
  24086. #endif
  24087. /* */
  24088. #if defined(PLATFORM_SUNOS4) || defined(PLATFORM_AIX_V3) || defined(__BEOS__)
  24089. #error "O_NONBLOCK does not work on this platform"
  24090. #endif
  24091. int
  24092. main ()
  24093. {
  24094. /* O_NONBLOCK source test */
  24095. int socket;
  24096. int flags = fcntl(socket, F_SETFL, flags | O_NONBLOCK);
  24097. ;
  24098. return 0;
  24099. }
  24100. _ACEOF
  24101. rm -f conftest.$ac_objext
  24102. if { (ac_try="$ac_compile"
  24103. case "(($ac_try" in
  24104. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24105. *) ac_try_echo=$ac_try;;
  24106. esac
  24107. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24108. (eval "$ac_compile") 2>conftest.er1
  24109. ac_status=$?
  24110. grep -v '^ *+' conftest.er1 >conftest.err
  24111. rm -f conftest.er1
  24112. cat conftest.err >&5
  24113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24114. (exit $ac_status); } && {
  24115. test -z "$ac_c_werror_flag" ||
  24116. test ! -s conftest.err
  24117. } && test -s conftest.$ac_objext; then
  24118. nonblock="O_NONBLOCK"
  24119. cat >>confdefs.h <<\_ACEOF
  24120. #define HAVE_O_NONBLOCK 1
  24121. _ACEOF
  24122. else
  24123. echo "$as_me: failed program was:" >&5
  24124. sed 's/^/| /' conftest.$ac_ext >&5
  24125. fi
  24126. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24127. #
  24128. if test "$nonblock" = "unknown"; then
  24129. cat >conftest.$ac_ext <<_ACEOF
  24130. /* confdefs.h. */
  24131. _ACEOF
  24132. cat confdefs.h >>conftest.$ac_ext
  24133. cat >>conftest.$ac_ext <<_ACEOF
  24134. /* end confdefs.h. */
  24135. /* headers for FIONBIO test */
  24136. #include <unistd.h>
  24137. #include <stropts.h>
  24138. int
  24139. main ()
  24140. {
  24141. /* FIONBIO source test (old-style unix) */
  24142. int socket;
  24143. int flags = ioctl(socket, FIONBIO, &flags);
  24144. ;
  24145. return 0;
  24146. }
  24147. _ACEOF
  24148. rm -f conftest.$ac_objext
  24149. if { (ac_try="$ac_compile"
  24150. case "(($ac_try" in
  24151. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24152. *) ac_try_echo=$ac_try;;
  24153. esac
  24154. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24155. (eval "$ac_compile") 2>conftest.er1
  24156. ac_status=$?
  24157. grep -v '^ *+' conftest.er1 >conftest.err
  24158. rm -f conftest.er1
  24159. cat conftest.err >&5
  24160. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24161. (exit $ac_status); } && {
  24162. test -z "$ac_c_werror_flag" ||
  24163. test ! -s conftest.err
  24164. } && test -s conftest.$ac_objext; then
  24165. nonblock="FIONBIO"
  24166. cat >>confdefs.h <<\_ACEOF
  24167. #define HAVE_FIONBIO 1
  24168. _ACEOF
  24169. else
  24170. echo "$as_me: failed program was:" >&5
  24171. sed 's/^/| /' conftest.$ac_ext >&5
  24172. fi
  24173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24174. fi
  24175. #
  24176. if test "$nonblock" = "unknown"; then
  24177. cat >conftest.$ac_ext <<_ACEOF
  24178. /* confdefs.h. */
  24179. _ACEOF
  24180. cat confdefs.h >>conftest.$ac_ext
  24181. cat >>conftest.$ac_ext <<_ACEOF
  24182. /* end confdefs.h. */
  24183. /* headers for ioctlsocket test (Windows) */
  24184. #undef inline
  24185. #ifdef HAVE_WINDOWS_H
  24186. #ifndef WIN32_LEAN_AND_MEAN
  24187. #define WIN32_LEAN_AND_MEAN
  24188. #endif
  24189. #include <windows.h>
  24190. #ifdef HAVE_WINSOCK2_H
  24191. #include <winsock2.h>
  24192. #else
  24193. #ifdef HAVE_WINSOCK_H
  24194. #include <winsock.h>
  24195. #endif
  24196. #endif
  24197. #endif
  24198. int
  24199. main ()
  24200. {
  24201. /* ioctlsocket source code (Windows) */
  24202. SOCKET sd;
  24203. unsigned long flags = 0;
  24204. sd = socket(0, 0, 0);
  24205. ioctlsocket(sd, FIONBIO, &flags);
  24206. ;
  24207. return 0;
  24208. }
  24209. _ACEOF
  24210. rm -f conftest.$ac_objext
  24211. if { (ac_try="$ac_compile"
  24212. case "(($ac_try" in
  24213. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24214. *) ac_try_echo=$ac_try;;
  24215. esac
  24216. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24217. (eval "$ac_compile") 2>conftest.er1
  24218. ac_status=$?
  24219. grep -v '^ *+' conftest.er1 >conftest.err
  24220. rm -f conftest.er1
  24221. cat conftest.err >&5
  24222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24223. (exit $ac_status); } && {
  24224. test -z "$ac_c_werror_flag" ||
  24225. test ! -s conftest.err
  24226. } && test -s conftest.$ac_objext; then
  24227. nonblock="ioctlsocket"
  24228. cat >>confdefs.h <<\_ACEOF
  24229. #define HAVE_IOCTLSOCKET 1
  24230. _ACEOF
  24231. else
  24232. echo "$as_me: failed program was:" >&5
  24233. sed 's/^/| /' conftest.$ac_ext >&5
  24234. fi
  24235. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24236. fi
  24237. #
  24238. if test "$nonblock" = "unknown"; then
  24239. cat >conftest.$ac_ext <<_ACEOF
  24240. /* confdefs.h. */
  24241. _ACEOF
  24242. cat confdefs.h >>conftest.$ac_ext
  24243. cat >>conftest.$ac_ext <<_ACEOF
  24244. /* end confdefs.h. */
  24245. /* headers for IoctlSocket test (Amiga?) */
  24246. #include <sys/ioctl.h>
  24247. int
  24248. main ()
  24249. {
  24250. /* IoctlSocket source code (Amiga?) */
  24251. int socket;
  24252. int flags = IoctlSocket(socket, FIONBIO, (long)1);
  24253. ;
  24254. return 0;
  24255. }
  24256. _ACEOF
  24257. rm -f conftest.$ac_objext conftest$ac_exeext
  24258. if { (ac_try="$ac_link"
  24259. case "(($ac_try" in
  24260. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24261. *) ac_try_echo=$ac_try;;
  24262. esac
  24263. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24264. (eval "$ac_link") 2>conftest.er1
  24265. ac_status=$?
  24266. grep -v '^ *+' conftest.er1 >conftest.err
  24267. rm -f conftest.er1
  24268. cat conftest.err >&5
  24269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24270. (exit $ac_status); } && {
  24271. test -z "$ac_c_werror_flag" ||
  24272. test ! -s conftest.err
  24273. } && test -s conftest$ac_exeext &&
  24274. $as_test_x conftest$ac_exeext; then
  24275. nonblock="IoctlSocket"
  24276. cat >>confdefs.h <<\_ACEOF
  24277. #define HAVE_IOCTLSOCKET_CASE 1
  24278. _ACEOF
  24279. else
  24280. echo "$as_me: failed program was:" >&5
  24281. sed 's/^/| /' conftest.$ac_ext >&5
  24282. fi
  24283. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24284. conftest$ac_exeext conftest.$ac_ext
  24285. fi
  24286. #
  24287. if test "$nonblock" = "unknown"; then
  24288. cat >conftest.$ac_ext <<_ACEOF
  24289. /* confdefs.h. */
  24290. _ACEOF
  24291. cat confdefs.h >>conftest.$ac_ext
  24292. cat >>conftest.$ac_ext <<_ACEOF
  24293. /* end confdefs.h. */
  24294. /* headers for SO_NONBLOCK test (BeOS) */
  24295. #include <socket.h>
  24296. int
  24297. main ()
  24298. {
  24299. /* SO_NONBLOCK source code (BeOS) */
  24300. long b = 1;
  24301. int socket;
  24302. int flags = setsockopt(socket, SOL_SOCKET, SO_NONBLOCK, &b, sizeof(b));
  24303. ;
  24304. return 0;
  24305. }
  24306. _ACEOF
  24307. rm -f conftest.$ac_objext
  24308. if { (ac_try="$ac_compile"
  24309. case "(($ac_try" in
  24310. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24311. *) ac_try_echo=$ac_try;;
  24312. esac
  24313. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24314. (eval "$ac_compile") 2>conftest.er1
  24315. ac_status=$?
  24316. grep -v '^ *+' conftest.er1 >conftest.err
  24317. rm -f conftest.er1
  24318. cat conftest.err >&5
  24319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24320. (exit $ac_status); } && {
  24321. test -z "$ac_c_werror_flag" ||
  24322. test ! -s conftest.err
  24323. } && test -s conftest.$ac_objext; then
  24324. nonblock="SO_NONBLOCK"
  24325. cat >>confdefs.h <<\_ACEOF
  24326. #define HAVE_SO_NONBLOCK 1
  24327. _ACEOF
  24328. else
  24329. echo "$as_me: failed program was:" >&5
  24330. sed 's/^/| /' conftest.$ac_ext >&5
  24331. fi
  24332. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24333. fi
  24334. #
  24335. { echo "$as_me:$LINENO: result: $nonblock" >&5
  24336. echo "${ECHO_T}$nonblock" >&6; }
  24337. #
  24338. if test "$nonblock" = "unknown"; then
  24339. cat >>confdefs.h <<\_ACEOF
  24340. #define HAVE_DISABLED_NONBLOCKING 1
  24341. _ACEOF
  24342. { echo "$as_me:$LINENO: WARNING: non-block sockets disabled" >&5
  24343. echo "$as_me: WARNING: non-block sockets disabled" >&2;}
  24344. fi
  24345. fi
  24346. { echo "$as_me:$LINENO: checking if argv can be written to" >&5
  24347. echo $ECHO_N "checking if argv can be written to... $ECHO_C" >&6; }
  24348. if test "${curl_cv_writable_argv+set}" = set; then
  24349. echo $ECHO_N "(cached) $ECHO_C" >&6
  24350. else
  24351. if test "$cross_compiling" = yes; then
  24352. curl_cv_writable_argv=cross
  24353. else
  24354. cat >conftest.$ac_ext <<_ACEOF
  24355. int main(int argc, char ** argv) {
  24356. argv[0][0] = ' ';
  24357. return (argv[0][0] == ' ')?0:1;
  24358. }
  24359. _ACEOF
  24360. rm -f conftest$ac_exeext
  24361. if { (ac_try="$ac_link"
  24362. case "(($ac_try" in
  24363. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24364. *) ac_try_echo=$ac_try;;
  24365. esac
  24366. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24367. (eval "$ac_link") 2>&5
  24368. ac_status=$?
  24369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24370. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  24371. { (case "(($ac_try" in
  24372. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24373. *) ac_try_echo=$ac_try;;
  24374. esac
  24375. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24376. (eval "$ac_try") 2>&5
  24377. ac_status=$?
  24378. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24379. (exit $ac_status); }; }; then
  24380. curl_cv_writable_argv=yes
  24381. else
  24382. echo "$as_me: program exited with status $ac_status" >&5
  24383. echo "$as_me: failed program was:" >&5
  24384. sed 's/^/| /' conftest.$ac_ext >&5
  24385. ( exit $ac_status )
  24386. curl_cv_writable_argv=no
  24387. fi
  24388. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  24389. fi
  24390. fi
  24391. case $curl_cv_writable_argv in
  24392. yes)
  24393. cat >>confdefs.h <<\_ACEOF
  24394. #define HAVE_WRITABLE_ARGV 1
  24395. _ACEOF
  24396. { echo "$as_me:$LINENO: result: yes" >&5
  24397. echo "${ECHO_T}yes" >&6; }
  24398. ;;
  24399. no)
  24400. { echo "$as_me:$LINENO: result: no" >&5
  24401. echo "${ECHO_T}no" >&6; }
  24402. ;;
  24403. *)
  24404. { echo "$as_me:$LINENO: result: no" >&5
  24405. echo "${ECHO_T}no" >&6; }
  24406. { echo "$as_me:$LINENO: WARNING: the previous check could not be made default was used" >&5
  24407. echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
  24408. ;;
  24409. esac
  24410. # Check whether --with-krb4-includes was given.
  24411. if test "${with_krb4_includes+set}" = set; then
  24412. withval=$with_krb4_includes;
  24413. CPPFLAGS="$CPPFLAGS -I$withval"
  24414. KRB4INC="$withval"
  24415. want_krb4=yes
  24416. fi
  24417. # Check whether --with-krb4-libs was given.
  24418. if test "${with_krb4_libs+set}" = set; then
  24419. withval=$with_krb4_libs;
  24420. LDFLAGS="$LDFLAGS -L$withval"
  24421. KRB4LIB="$withval"
  24422. want_krb4=yes
  24423. fi
  24424. OPT_KRB4=off
  24425. # Check whether --with-krb4 was given.
  24426. if test "${with_krb4+set}" = set; then
  24427. withval=$with_krb4;
  24428. OPT_KRB4="$withval"
  24429. if test X"$OPT_KRB4" != Xno; then
  24430. want_krb4="yes"
  24431. if test X"$OPT_KRB4" != Xyes; then
  24432. LDFLAGS="$LDFLAGS -L$OPT_KRB4/lib$libsuff"
  24433. KRB4LIB="$OPT_KRB4/lib$libsuff"
  24434. CPPFLAGS="$CPPFLAGS -I$OPT_KRB4/include"
  24435. KRB4INC="$OPT_KRB4/include"
  24436. fi
  24437. fi
  24438. fi
  24439. { echo "$as_me:$LINENO: checking if Kerberos4 support is requested" >&5
  24440. echo $ECHO_N "checking if Kerberos4 support is requested... $ECHO_C" >&6; }
  24441. if test "$want_krb4" = yes
  24442. then
  24443. if test "$ipv6" = "yes"; then
  24444. echo krb4 is not compatible with IPv6
  24445. exit 1
  24446. fi
  24447. { echo "$as_me:$LINENO: result: yes" >&5
  24448. echo "${ECHO_T}yes" >&6; }
  24449. { echo "$as_me:$LINENO: checking where to look for Kerberos4" >&5
  24450. echo $ECHO_N "checking where to look for Kerberos4... $ECHO_C" >&6; }
  24451. if test X"$OPT_KRB4" = Xyes
  24452. then
  24453. { echo "$as_me:$LINENO: result: defaults" >&5
  24454. echo "${ECHO_T}defaults" >&6; }
  24455. else
  24456. { echo "$as_me:$LINENO: result: libs in $KRB4LIB, headers in $KRB4INC" >&5
  24457. echo "${ECHO_T}libs in $KRB4LIB, headers in $KRB4INC" >&6; }
  24458. fi
  24459. { echo "$as_me:$LINENO: checking for des_pcbc_encrypt in -ldes" >&5
  24460. echo $ECHO_N "checking for des_pcbc_encrypt in -ldes... $ECHO_C" >&6; }
  24461. if test "${ac_cv_lib_des_des_pcbc_encrypt+set}" = set; then
  24462. echo $ECHO_N "(cached) $ECHO_C" >&6
  24463. else
  24464. ac_check_lib_save_LIBS=$LIBS
  24465. LIBS="-ldes $LIBS"
  24466. cat >conftest.$ac_ext <<_ACEOF
  24467. /* confdefs.h. */
  24468. _ACEOF
  24469. cat confdefs.h >>conftest.$ac_ext
  24470. cat >>conftest.$ac_ext <<_ACEOF
  24471. /* end confdefs.h. */
  24472. /* Override any GCC internal prototype to avoid an error.
  24473. Use char because int might match the return type of a GCC
  24474. builtin and then its argument prototype would still apply. */
  24475. #ifdef __cplusplus
  24476. extern "C"
  24477. #endif
  24478. char des_pcbc_encrypt ();
  24479. int
  24480. main ()
  24481. {
  24482. return des_pcbc_encrypt ();
  24483. ;
  24484. return 0;
  24485. }
  24486. _ACEOF
  24487. rm -f conftest.$ac_objext conftest$ac_exeext
  24488. if { (ac_try="$ac_link"
  24489. case "(($ac_try" in
  24490. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24491. *) ac_try_echo=$ac_try;;
  24492. esac
  24493. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24494. (eval "$ac_link") 2>conftest.er1
  24495. ac_status=$?
  24496. grep -v '^ *+' conftest.er1 >conftest.err
  24497. rm -f conftest.er1
  24498. cat conftest.err >&5
  24499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24500. (exit $ac_status); } && {
  24501. test -z "$ac_c_werror_flag" ||
  24502. test ! -s conftest.err
  24503. } && test -s conftest$ac_exeext &&
  24504. $as_test_x conftest$ac_exeext; then
  24505. ac_cv_lib_des_des_pcbc_encrypt=yes
  24506. else
  24507. echo "$as_me: failed program was:" >&5
  24508. sed 's/^/| /' conftest.$ac_ext >&5
  24509. ac_cv_lib_des_des_pcbc_encrypt=no
  24510. fi
  24511. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24512. conftest$ac_exeext conftest.$ac_ext
  24513. LIBS=$ac_check_lib_save_LIBS
  24514. fi
  24515. { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_pcbc_encrypt" >&5
  24516. echo "${ECHO_T}$ac_cv_lib_des_des_pcbc_encrypt" >&6; }
  24517. if test $ac_cv_lib_des_des_pcbc_encrypt = yes; then
  24518. for ac_header in des.h
  24519. do
  24520. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24521. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24522. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  24523. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  24524. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24525. echo $ECHO_N "(cached) $ECHO_C" >&6
  24526. fi
  24527. ac_res=`eval echo '${'$as_ac_Header'}'`
  24528. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24529. echo "${ECHO_T}$ac_res" >&6; }
  24530. else
  24531. # Is the header compilable?
  24532. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  24533. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  24534. cat >conftest.$ac_ext <<_ACEOF
  24535. /* confdefs.h. */
  24536. _ACEOF
  24537. cat confdefs.h >>conftest.$ac_ext
  24538. cat >>conftest.$ac_ext <<_ACEOF
  24539. /* end confdefs.h. */
  24540. $ac_includes_default
  24541. #include <$ac_header>
  24542. _ACEOF
  24543. rm -f conftest.$ac_objext
  24544. if { (ac_try="$ac_compile"
  24545. case "(($ac_try" in
  24546. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24547. *) ac_try_echo=$ac_try;;
  24548. esac
  24549. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24550. (eval "$ac_compile") 2>conftest.er1
  24551. ac_status=$?
  24552. grep -v '^ *+' conftest.er1 >conftest.err
  24553. rm -f conftest.er1
  24554. cat conftest.err >&5
  24555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24556. (exit $ac_status); } && {
  24557. test -z "$ac_c_werror_flag" ||
  24558. test ! -s conftest.err
  24559. } && test -s conftest.$ac_objext; then
  24560. ac_header_compiler=yes
  24561. else
  24562. echo "$as_me: failed program was:" >&5
  24563. sed 's/^/| /' conftest.$ac_ext >&5
  24564. ac_header_compiler=no
  24565. fi
  24566. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24567. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24568. echo "${ECHO_T}$ac_header_compiler" >&6; }
  24569. # Is the header present?
  24570. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  24571. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  24572. cat >conftest.$ac_ext <<_ACEOF
  24573. /* confdefs.h. */
  24574. _ACEOF
  24575. cat confdefs.h >>conftest.$ac_ext
  24576. cat >>conftest.$ac_ext <<_ACEOF
  24577. /* end confdefs.h. */
  24578. #include <$ac_header>
  24579. _ACEOF
  24580. if { (ac_try="$ac_cpp conftest.$ac_ext"
  24581. case "(($ac_try" in
  24582. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24583. *) ac_try_echo=$ac_try;;
  24584. esac
  24585. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24586. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  24587. ac_status=$?
  24588. grep -v '^ *+' conftest.er1 >conftest.err
  24589. rm -f conftest.er1
  24590. cat conftest.err >&5
  24591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24592. (exit $ac_status); } >/dev/null && {
  24593. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  24594. test ! -s conftest.err
  24595. }; then
  24596. ac_header_preproc=yes
  24597. else
  24598. echo "$as_me: failed program was:" >&5
  24599. sed 's/^/| /' conftest.$ac_ext >&5
  24600. ac_header_preproc=no
  24601. fi
  24602. rm -f conftest.err conftest.$ac_ext
  24603. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24604. echo "${ECHO_T}$ac_header_preproc" >&6; }
  24605. # So? What about this header?
  24606. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  24607. yes:no: )
  24608. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  24609. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24610. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  24611. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  24612. ac_header_preproc=yes
  24613. ;;
  24614. no:yes:* )
  24615. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  24616. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  24617. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  24618. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  24619. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  24620. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  24621. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  24622. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  24623. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  24624. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  24625. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  24626. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  24627. ( cat <<\_ASBOX
  24628. ## ------------------------------------------------------------------------ ##
  24629. ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
  24630. ## ------------------------------------------------------------------------ ##
  24631. _ASBOX
  24632. ) | sed "s/^/$as_me: WARNING: /" >&2
  24633. ;;
  24634. esac
  24635. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  24636. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  24637. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24638. echo $ECHO_N "(cached) $ECHO_C" >&6
  24639. else
  24640. eval "$as_ac_Header=\$ac_header_preproc"
  24641. fi
  24642. ac_res=`eval echo '${'$as_ac_Header'}'`
  24643. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24644. echo "${ECHO_T}$ac_res" >&6; }
  24645. fi
  24646. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  24647. cat >>confdefs.h <<_ACEOF
  24648. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24649. _ACEOF
  24650. fi
  24651. done
  24652. { echo "$as_me:$LINENO: checking for res_search" >&5
  24653. echo $ECHO_N "checking for res_search... $ECHO_C" >&6; }
  24654. if test "${ac_cv_func_res_search+set}" = set; then
  24655. echo $ECHO_N "(cached) $ECHO_C" >&6
  24656. else
  24657. cat >conftest.$ac_ext <<_ACEOF
  24658. /* confdefs.h. */
  24659. _ACEOF
  24660. cat confdefs.h >>conftest.$ac_ext
  24661. cat >>conftest.$ac_ext <<_ACEOF
  24662. /* end confdefs.h. */
  24663. /* Define res_search to an innocuous variant, in case <limits.h> declares res_search.
  24664. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  24665. #define res_search innocuous_res_search
  24666. /* System header to define __stub macros and hopefully few prototypes,
  24667. which can conflict with char res_search (); below.
  24668. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  24669. <limits.h> exists even on freestanding compilers. */
  24670. #ifdef __STDC__
  24671. # include <limits.h>
  24672. #else
  24673. # include <assert.h>
  24674. #endif
  24675. #undef res_search
  24676. /* Override any GCC internal prototype to avoid an error.
  24677. Use char because int might match the return type of a GCC
  24678. builtin and then its argument prototype would still apply. */
  24679. #ifdef __cplusplus
  24680. extern "C"
  24681. #endif
  24682. char res_search ();
  24683. /* The GNU C library defines this for functions which it implements
  24684. to always fail with ENOSYS. Some functions are actually named
  24685. something starting with __ and the normal name is an alias. */
  24686. #if defined __stub_res_search || defined __stub___res_search
  24687. choke me
  24688. #endif
  24689. int
  24690. main ()
  24691. {
  24692. return res_search ();
  24693. ;
  24694. return 0;
  24695. }
  24696. _ACEOF
  24697. rm -f conftest.$ac_objext conftest$ac_exeext
  24698. if { (ac_try="$ac_link"
  24699. case "(($ac_try" in
  24700. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24701. *) ac_try_echo=$ac_try;;
  24702. esac
  24703. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24704. (eval "$ac_link") 2>conftest.er1
  24705. ac_status=$?
  24706. grep -v '^ *+' conftest.er1 >conftest.err
  24707. rm -f conftest.er1
  24708. cat conftest.err >&5
  24709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24710. (exit $ac_status); } && {
  24711. test -z "$ac_c_werror_flag" ||
  24712. test ! -s conftest.err
  24713. } && test -s conftest$ac_exeext &&
  24714. $as_test_x conftest$ac_exeext; then
  24715. ac_cv_func_res_search=yes
  24716. else
  24717. echo "$as_me: failed program was:" >&5
  24718. sed 's/^/| /' conftest.$ac_ext >&5
  24719. ac_cv_func_res_search=no
  24720. fi
  24721. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24722. conftest$ac_exeext conftest.$ac_ext
  24723. fi
  24724. { echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
  24725. echo "${ECHO_T}$ac_cv_func_res_search" >&6; }
  24726. if test $ac_cv_func_res_search = yes; then
  24727. :
  24728. else
  24729. { echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
  24730. echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6; }
  24731. if test "${ac_cv_lib_resolv_res_search+set}" = set; then
  24732. echo $ECHO_N "(cached) $ECHO_C" >&6
  24733. else
  24734. ac_check_lib_save_LIBS=$LIBS
  24735. LIBS="-lresolv $LIBS"
  24736. cat >conftest.$ac_ext <<_ACEOF
  24737. /* confdefs.h. */
  24738. _ACEOF
  24739. cat confdefs.h >>conftest.$ac_ext
  24740. cat >>conftest.$ac_ext <<_ACEOF
  24741. /* end confdefs.h. */
  24742. /* Override any GCC internal prototype to avoid an error.
  24743. Use char because int might match the return type of a GCC
  24744. builtin and then its argument prototype would still apply. */
  24745. #ifdef __cplusplus
  24746. extern "C"
  24747. #endif
  24748. char res_search ();
  24749. int
  24750. main ()
  24751. {
  24752. return res_search ();
  24753. ;
  24754. return 0;
  24755. }
  24756. _ACEOF
  24757. rm -f conftest.$ac_objext conftest$ac_exeext
  24758. if { (ac_try="$ac_link"
  24759. case "(($ac_try" in
  24760. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24761. *) ac_try_echo=$ac_try;;
  24762. esac
  24763. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24764. (eval "$ac_link") 2>conftest.er1
  24765. ac_status=$?
  24766. grep -v '^ *+' conftest.er1 >conftest.err
  24767. rm -f conftest.er1
  24768. cat conftest.err >&5
  24769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24770. (exit $ac_status); } && {
  24771. test -z "$ac_c_werror_flag" ||
  24772. test ! -s conftest.err
  24773. } && test -s conftest$ac_exeext &&
  24774. $as_test_x conftest$ac_exeext; then
  24775. ac_cv_lib_resolv_res_search=yes
  24776. else
  24777. echo "$as_me: failed program was:" >&5
  24778. sed 's/^/| /' conftest.$ac_ext >&5
  24779. ac_cv_lib_resolv_res_search=no
  24780. fi
  24781. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24782. conftest$ac_exeext conftest.$ac_ext
  24783. LIBS=$ac_check_lib_save_LIBS
  24784. fi
  24785. { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
  24786. echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6; }
  24787. if test $ac_cv_lib_resolv_res_search = yes; then
  24788. cat >>confdefs.h <<_ACEOF
  24789. #define HAVE_LIBRESOLV 1
  24790. _ACEOF
  24791. LIBS="-lresolv $LIBS"
  24792. fi
  24793. fi
  24794. { echo "$as_me:$LINENO: checking for krb_net_read in -lkrb" >&5
  24795. echo $ECHO_N "checking for krb_net_read in -lkrb... $ECHO_C" >&6; }
  24796. if test "${ac_cv_lib_krb_krb_net_read+set}" = set; then
  24797. echo $ECHO_N "(cached) $ECHO_C" >&6
  24798. else
  24799. ac_check_lib_save_LIBS=$LIBS
  24800. LIBS="-lkrb $LIBS"
  24801. cat >conftest.$ac_ext <<_ACEOF
  24802. /* confdefs.h. */
  24803. _ACEOF
  24804. cat confdefs.h >>conftest.$ac_ext
  24805. cat >>conftest.$ac_ext <<_ACEOF
  24806. /* end confdefs.h. */
  24807. /* Override any GCC internal prototype to avoid an error.
  24808. Use char because int might match the return type of a GCC
  24809. builtin and then its argument prototype would still apply. */
  24810. #ifdef __cplusplus
  24811. extern "C"
  24812. #endif
  24813. char krb_net_read ();
  24814. int
  24815. main ()
  24816. {
  24817. return krb_net_read ();
  24818. ;
  24819. return 0;
  24820. }
  24821. _ACEOF
  24822. rm -f conftest.$ac_objext conftest$ac_exeext
  24823. if { (ac_try="$ac_link"
  24824. case "(($ac_try" in
  24825. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24826. *) ac_try_echo=$ac_try;;
  24827. esac
  24828. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24829. (eval "$ac_link") 2>conftest.er1
  24830. ac_status=$?
  24831. grep -v '^ *+' conftest.er1 >conftest.err
  24832. rm -f conftest.er1
  24833. cat conftest.err >&5
  24834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24835. (exit $ac_status); } && {
  24836. test -z "$ac_c_werror_flag" ||
  24837. test ! -s conftest.err
  24838. } && test -s conftest$ac_exeext &&
  24839. $as_test_x conftest$ac_exeext; then
  24840. ac_cv_lib_krb_krb_net_read=yes
  24841. else
  24842. echo "$as_me: failed program was:" >&5
  24843. sed 's/^/| /' conftest.$ac_ext >&5
  24844. ac_cv_lib_krb_krb_net_read=no
  24845. fi
  24846. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24847. conftest$ac_exeext conftest.$ac_ext
  24848. LIBS=$ac_check_lib_save_LIBS
  24849. fi
  24850. { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_net_read" >&5
  24851. echo "${ECHO_T}$ac_cv_lib_krb_krb_net_read" >&6; }
  24852. if test $ac_cv_lib_krb_krb_net_read = yes; then
  24853. for ac_header in krb.h
  24854. do
  24855. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24856. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24857. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  24858. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  24859. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24860. echo $ECHO_N "(cached) $ECHO_C" >&6
  24861. fi
  24862. ac_res=`eval echo '${'$as_ac_Header'}'`
  24863. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24864. echo "${ECHO_T}$ac_res" >&6; }
  24865. else
  24866. # Is the header compilable?
  24867. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  24868. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  24869. cat >conftest.$ac_ext <<_ACEOF
  24870. /* confdefs.h. */
  24871. _ACEOF
  24872. cat confdefs.h >>conftest.$ac_ext
  24873. cat >>conftest.$ac_ext <<_ACEOF
  24874. /* end confdefs.h. */
  24875. $ac_includes_default
  24876. #include <$ac_header>
  24877. _ACEOF
  24878. rm -f conftest.$ac_objext
  24879. if { (ac_try="$ac_compile"
  24880. case "(($ac_try" in
  24881. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24882. *) ac_try_echo=$ac_try;;
  24883. esac
  24884. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24885. (eval "$ac_compile") 2>conftest.er1
  24886. ac_status=$?
  24887. grep -v '^ *+' conftest.er1 >conftest.err
  24888. rm -f conftest.er1
  24889. cat conftest.err >&5
  24890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24891. (exit $ac_status); } && {
  24892. test -z "$ac_c_werror_flag" ||
  24893. test ! -s conftest.err
  24894. } && test -s conftest.$ac_objext; then
  24895. ac_header_compiler=yes
  24896. else
  24897. echo "$as_me: failed program was:" >&5
  24898. sed 's/^/| /' conftest.$ac_ext >&5
  24899. ac_header_compiler=no
  24900. fi
  24901. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24902. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24903. echo "${ECHO_T}$ac_header_compiler" >&6; }
  24904. # Is the header present?
  24905. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  24906. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  24907. cat >conftest.$ac_ext <<_ACEOF
  24908. /* confdefs.h. */
  24909. _ACEOF
  24910. cat confdefs.h >>conftest.$ac_ext
  24911. cat >>conftest.$ac_ext <<_ACEOF
  24912. /* end confdefs.h. */
  24913. #include <$ac_header>
  24914. _ACEOF
  24915. if { (ac_try="$ac_cpp conftest.$ac_ext"
  24916. case "(($ac_try" in
  24917. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24918. *) ac_try_echo=$ac_try;;
  24919. esac
  24920. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24921. (eval "$ac_cpp conftest.$ac_ext") 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); } >/dev/null && {
  24928. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  24929. test ! -s conftest.err
  24930. }; then
  24931. ac_header_preproc=yes
  24932. else
  24933. echo "$as_me: failed program was:" >&5
  24934. sed 's/^/| /' conftest.$ac_ext >&5
  24935. ac_header_preproc=no
  24936. fi
  24937. rm -f conftest.err conftest.$ac_ext
  24938. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24939. echo "${ECHO_T}$ac_header_preproc" >&6; }
  24940. # So? What about this header?
  24941. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  24942. yes:no: )
  24943. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  24944. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24945. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  24946. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  24947. ac_header_preproc=yes
  24948. ;;
  24949. no:yes:* )
  24950. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  24951. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  24952. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  24953. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  24954. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  24955. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  24956. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  24957. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  24958. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  24959. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  24960. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  24961. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  24962. ( cat <<\_ASBOX
  24963. ## ------------------------------------------------------------------------ ##
  24964. ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
  24965. ## ------------------------------------------------------------------------ ##
  24966. _ASBOX
  24967. ) | sed "s/^/$as_me: WARNING: /" >&2
  24968. ;;
  24969. esac
  24970. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  24971. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  24972. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24973. echo $ECHO_N "(cached) $ECHO_C" >&6
  24974. else
  24975. eval "$as_ac_Header=\$ac_header_preproc"
  24976. fi
  24977. ac_res=`eval echo '${'$as_ac_Header'}'`
  24978. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24979. echo "${ECHO_T}$ac_res" >&6; }
  24980. fi
  24981. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  24982. cat >>confdefs.h <<_ACEOF
  24983. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24984. _ACEOF
  24985. fi
  24986. done
  24987. LIBS="-lkrb -lcom_err -ldes $LIBS"
  24988. for ac_func in krb_get_our_ip_for_realm
  24989. do
  24990. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  24991. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  24992. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  24993. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  24994. echo $ECHO_N "(cached) $ECHO_C" >&6
  24995. else
  24996. cat >conftest.$ac_ext <<_ACEOF
  24997. /* confdefs.h. */
  24998. _ACEOF
  24999. cat confdefs.h >>conftest.$ac_ext
  25000. cat >>conftest.$ac_ext <<_ACEOF
  25001. /* end confdefs.h. */
  25002. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  25003. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  25004. #define $ac_func innocuous_$ac_func
  25005. /* System header to define __stub macros and hopefully few prototypes,
  25006. which can conflict with char $ac_func (); below.
  25007. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  25008. <limits.h> exists even on freestanding compilers. */
  25009. #ifdef __STDC__
  25010. # include <limits.h>
  25011. #else
  25012. # include <assert.h>
  25013. #endif
  25014. #undef $ac_func
  25015. /* Override any GCC internal prototype to avoid an error.
  25016. Use char because int might match the return type of a GCC
  25017. builtin and then its argument prototype would still apply. */
  25018. #ifdef __cplusplus
  25019. extern "C"
  25020. #endif
  25021. char $ac_func ();
  25022. /* The GNU C library defines this for functions which it implements
  25023. to always fail with ENOSYS. Some functions are actually named
  25024. something starting with __ and the normal name is an alias. */
  25025. #if defined __stub_$ac_func || defined __stub___$ac_func
  25026. choke me
  25027. #endif
  25028. int
  25029. main ()
  25030. {
  25031. return $ac_func ();
  25032. ;
  25033. return 0;
  25034. }
  25035. _ACEOF
  25036. rm -f conftest.$ac_objext conftest$ac_exeext
  25037. if { (ac_try="$ac_link"
  25038. case "(($ac_try" in
  25039. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25040. *) ac_try_echo=$ac_try;;
  25041. esac
  25042. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25043. (eval "$ac_link") 2>conftest.er1
  25044. ac_status=$?
  25045. grep -v '^ *+' conftest.er1 >conftest.err
  25046. rm -f conftest.er1
  25047. cat conftest.err >&5
  25048. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25049. (exit $ac_status); } && {
  25050. test -z "$ac_c_werror_flag" ||
  25051. test ! -s conftest.err
  25052. } && test -s conftest$ac_exeext &&
  25053. $as_test_x conftest$ac_exeext; then
  25054. eval "$as_ac_var=yes"
  25055. else
  25056. echo "$as_me: failed program was:" >&5
  25057. sed 's/^/| /' conftest.$ac_ext >&5
  25058. eval "$as_ac_var=no"
  25059. fi
  25060. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  25061. conftest$ac_exeext conftest.$ac_ext
  25062. fi
  25063. ac_res=`eval echo '${'$as_ac_var'}'`
  25064. { echo "$as_me:$LINENO: result: $ac_res" >&5
  25065. echo "${ECHO_T}$ac_res" >&6; }
  25066. if test `eval echo '${'$as_ac_var'}'` = yes; then
  25067. cat >>confdefs.h <<_ACEOF
  25068. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  25069. _ACEOF
  25070. fi
  25071. done
  25072. cat >>confdefs.h <<\_ACEOF
  25073. #define HAVE_KRB4 1
  25074. _ACEOF
  25075. KRB4_ENABLED=1
  25076. curl_krb4_msg="enabled"
  25077. for ac_func in strlcpy
  25078. do
  25079. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  25080. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  25081. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  25082. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  25083. echo $ECHO_N "(cached) $ECHO_C" >&6
  25084. else
  25085. cat >conftest.$ac_ext <<_ACEOF
  25086. /* confdefs.h. */
  25087. _ACEOF
  25088. cat confdefs.h >>conftest.$ac_ext
  25089. cat >>conftest.$ac_ext <<_ACEOF
  25090. /* end confdefs.h. */
  25091. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  25092. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  25093. #define $ac_func innocuous_$ac_func
  25094. /* System header to define __stub macros and hopefully few prototypes,
  25095. which can conflict with char $ac_func (); below.
  25096. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  25097. <limits.h> exists even on freestanding compilers. */
  25098. #ifdef __STDC__
  25099. # include <limits.h>
  25100. #else
  25101. # include <assert.h>
  25102. #endif
  25103. #undef $ac_func
  25104. /* Override any GCC internal prototype to avoid an error.
  25105. Use char because int might match the return type of a GCC
  25106. builtin and then its argument prototype would still apply. */
  25107. #ifdef __cplusplus
  25108. extern "C"
  25109. #endif
  25110. char $ac_func ();
  25111. /* The GNU C library defines this for functions which it implements
  25112. to always fail with ENOSYS. Some functions are actually named
  25113. something starting with __ and the normal name is an alias. */
  25114. #if defined __stub_$ac_func || defined __stub___$ac_func
  25115. choke me
  25116. #endif
  25117. int
  25118. main ()
  25119. {
  25120. return $ac_func ();
  25121. ;
  25122. return 0;
  25123. }
  25124. _ACEOF
  25125. rm -f conftest.$ac_objext conftest$ac_exeext
  25126. if { (ac_try="$ac_link"
  25127. case "(($ac_try" in
  25128. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25129. *) ac_try_echo=$ac_try;;
  25130. esac
  25131. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25132. (eval "$ac_link") 2>conftest.er1
  25133. ac_status=$?
  25134. grep -v '^ *+' conftest.er1 >conftest.err
  25135. rm -f conftest.er1
  25136. cat conftest.err >&5
  25137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25138. (exit $ac_status); } && {
  25139. test -z "$ac_c_werror_flag" ||
  25140. test ! -s conftest.err
  25141. } && test -s conftest$ac_exeext &&
  25142. $as_test_x conftest$ac_exeext; then
  25143. eval "$as_ac_var=yes"
  25144. else
  25145. echo "$as_me: failed program was:" >&5
  25146. sed 's/^/| /' conftest.$ac_ext >&5
  25147. eval "$as_ac_var=no"
  25148. fi
  25149. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  25150. conftest$ac_exeext conftest.$ac_ext
  25151. fi
  25152. ac_res=`eval echo '${'$as_ac_var'}'`
  25153. { echo "$as_me:$LINENO: result: $ac_res" >&5
  25154. echo "${ECHO_T}$ac_res" >&6; }
  25155. if test `eval echo '${'$as_ac_var'}'` = yes; then
  25156. cat >>confdefs.h <<_ACEOF
  25157. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  25158. _ACEOF
  25159. fi
  25160. done
  25161. fi
  25162. fi
  25163. else
  25164. { echo "$as_me:$LINENO: result: no" >&5
  25165. echo "${ECHO_T}no" >&6; }
  25166. fi
  25167. # Check whether --with-spnego was given.
  25168. if test "${with_spnego+set}" = set; then
  25169. withval=$with_spnego;
  25170. SPNEGO_ROOT="$withval"
  25171. if test x"$SPNEGO_ROOT" != xno; then
  25172. want_spnego="yes"
  25173. fi
  25174. fi
  25175. { echo "$as_me:$LINENO: checking if SPNEGO support is requested" >&5
  25176. echo $ECHO_N "checking if SPNEGO support is requested... $ECHO_C" >&6; }
  25177. if test x"$want_spnego" = xyes; then
  25178. if test X"$SPNEGO_ROOT" = Xyes; then
  25179. { { echo "$as_me:$LINENO: error: FBOpenSSL libs and/or directories were not found where specified!" >&5
  25180. echo "$as_me: error: FBOpenSSL libs and/or directories were not found where specified!" >&2;}
  25181. { (exit 1); exit 1; }; }
  25182. { echo "$as_me:$LINENO: result: no" >&5
  25183. echo "${ECHO_T}no" >&6; }
  25184. else
  25185. if test -z "$SPNEGO_LIB_DIR"; then
  25186. LDFLAGS="$LDFLAGS -L$SPNEGO_ROOT -lfbopenssl"
  25187. else
  25188. LDFLAGS="$LDFLAGS $SPNEGO_LIB_DIR"
  25189. fi
  25190. { echo "$as_me:$LINENO: result: yes" >&5
  25191. echo "${ECHO_T}yes" >&6; }
  25192. cat >>confdefs.h <<\_ACEOF
  25193. #define HAVE_SPNEGO 1
  25194. _ACEOF
  25195. curl_spnego_msg="enabled"
  25196. fi
  25197. else
  25198. { echo "$as_me:$LINENO: result: no" >&5
  25199. echo "${ECHO_T}no" >&6; }
  25200. fi
  25201. GSSAPI_ROOT="/usr"
  25202. # Check whether --with-gssapi-includes was given.
  25203. if test "${with_gssapi_includes+set}" = set; then
  25204. withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
  25205. want_gss="yes"
  25206. fi
  25207. # Check whether --with-gssapi-libs was given.
  25208. if test "${with_gssapi_libs+set}" = set; then
  25209. withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
  25210. want_gss="yes"
  25211. fi
  25212. # Check whether --with-gssapi was given.
  25213. if test "${with_gssapi+set}" = set; then
  25214. withval=$with_gssapi;
  25215. GSSAPI_ROOT="$withval"
  25216. if test x"$GSSAPI_ROOT" != xno; then
  25217. want_gss="yes"
  25218. if test x"$GSSAPI_ROOT" = xyes; then
  25219. GSSAPI_ROOT="/usr"
  25220. fi
  25221. fi
  25222. fi
  25223. save_CPPFLAGS="$CPPFLAGS"
  25224. { echo "$as_me:$LINENO: checking if GSSAPI support is requested" >&5
  25225. echo $ECHO_N "checking if GSSAPI support is requested... $ECHO_C" >&6; }
  25226. if test x"$want_gss" = xyes; then
  25227. { echo "$as_me:$LINENO: result: yes" >&5
  25228. echo "${ECHO_T}yes" >&6; }
  25229. if test -z "$GSSAPI_INCS"; then
  25230. if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
  25231. GSSAPI_INCS=`$GSSAPI_ROOT/bin/krb5-config --cflags gssapi`
  25232. GSSAPI_LIBS=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi`
  25233. elif test "$GSSAPI_ROOT" != "yes"; then
  25234. GSSAPI_INCS="-I$GSSAPI_ROOT/include"
  25235. GSSAPI_LIBS="-lgssapi"
  25236. fi
  25237. fi
  25238. CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
  25239. LIBS="$LIBS $GSSAPI_LIBS"
  25240. if test "${ac_cv_header_gss_h+set}" = set; then
  25241. { echo "$as_me:$LINENO: checking for gss.h" >&5
  25242. echo $ECHO_N "checking for gss.h... $ECHO_C" >&6; }
  25243. if test "${ac_cv_header_gss_h+set}" = set; then
  25244. echo $ECHO_N "(cached) $ECHO_C" >&6
  25245. fi
  25246. { echo "$as_me:$LINENO: result: $ac_cv_header_gss_h" >&5
  25247. echo "${ECHO_T}$ac_cv_header_gss_h" >&6; }
  25248. else
  25249. # Is the header compilable?
  25250. { echo "$as_me:$LINENO: checking gss.h usability" >&5
  25251. echo $ECHO_N "checking gss.h usability... $ECHO_C" >&6; }
  25252. cat >conftest.$ac_ext <<_ACEOF
  25253. /* confdefs.h. */
  25254. _ACEOF
  25255. cat confdefs.h >>conftest.$ac_ext
  25256. cat >>conftest.$ac_ext <<_ACEOF
  25257. /* end confdefs.h. */
  25258. $ac_includes_default
  25259. #include <gss.h>
  25260. _ACEOF
  25261. rm -f conftest.$ac_objext
  25262. if { (ac_try="$ac_compile"
  25263. case "(($ac_try" in
  25264. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25265. *) ac_try_echo=$ac_try;;
  25266. esac
  25267. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25268. (eval "$ac_compile") 2>conftest.er1
  25269. ac_status=$?
  25270. grep -v '^ *+' conftest.er1 >conftest.err
  25271. rm -f conftest.er1
  25272. cat conftest.err >&5
  25273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25274. (exit $ac_status); } && {
  25275. test -z "$ac_c_werror_flag" ||
  25276. test ! -s conftest.err
  25277. } && test -s conftest.$ac_objext; then
  25278. ac_header_compiler=yes
  25279. else
  25280. echo "$as_me: failed program was:" >&5
  25281. sed 's/^/| /' conftest.$ac_ext >&5
  25282. ac_header_compiler=no
  25283. fi
  25284. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25285. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25286. echo "${ECHO_T}$ac_header_compiler" >&6; }
  25287. # Is the header present?
  25288. { echo "$as_me:$LINENO: checking gss.h presence" >&5
  25289. echo $ECHO_N "checking gss.h presence... $ECHO_C" >&6; }
  25290. cat >conftest.$ac_ext <<_ACEOF
  25291. /* confdefs.h. */
  25292. _ACEOF
  25293. cat confdefs.h >>conftest.$ac_ext
  25294. cat >>conftest.$ac_ext <<_ACEOF
  25295. /* end confdefs.h. */
  25296. #include <gss.h>
  25297. _ACEOF
  25298. if { (ac_try="$ac_cpp conftest.$ac_ext"
  25299. case "(($ac_try" in
  25300. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25301. *) ac_try_echo=$ac_try;;
  25302. esac
  25303. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25304. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25305. ac_status=$?
  25306. grep -v '^ *+' conftest.er1 >conftest.err
  25307. rm -f conftest.er1
  25308. cat conftest.err >&5
  25309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25310. (exit $ac_status); } >/dev/null && {
  25311. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  25312. test ! -s conftest.err
  25313. }; then
  25314. ac_header_preproc=yes
  25315. else
  25316. echo "$as_me: failed program was:" >&5
  25317. sed 's/^/| /' conftest.$ac_ext >&5
  25318. ac_header_preproc=no
  25319. fi
  25320. rm -f conftest.err conftest.$ac_ext
  25321. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25322. echo "${ECHO_T}$ac_header_preproc" >&6; }
  25323. # So? What about this header?
  25324. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25325. yes:no: )
  25326. { echo "$as_me:$LINENO: WARNING: gss.h: accepted by the compiler, rejected by the preprocessor!" >&5
  25327. echo "$as_me: WARNING: gss.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25328. { echo "$as_me:$LINENO: WARNING: gss.h: proceeding with the compiler's result" >&5
  25329. echo "$as_me: WARNING: gss.h: proceeding with the compiler's result" >&2;}
  25330. ac_header_preproc=yes
  25331. ;;
  25332. no:yes:* )
  25333. { echo "$as_me:$LINENO: WARNING: gss.h: present but cannot be compiled" >&5
  25334. echo "$as_me: WARNING: gss.h: present but cannot be compiled" >&2;}
  25335. { echo "$as_me:$LINENO: WARNING: gss.h: check for missing prerequisite headers?" >&5
  25336. echo "$as_me: WARNING: gss.h: check for missing prerequisite headers?" >&2;}
  25337. { echo "$as_me:$LINENO: WARNING: gss.h: see the Autoconf documentation" >&5
  25338. echo "$as_me: WARNING: gss.h: see the Autoconf documentation" >&2;}
  25339. { echo "$as_me:$LINENO: WARNING: gss.h: section \"Present But Cannot Be Compiled\"" >&5
  25340. echo "$as_me: WARNING: gss.h: section \"Present But Cannot Be Compiled\"" >&2;}
  25341. { echo "$as_me:$LINENO: WARNING: gss.h: proceeding with the preprocessor's result" >&5
  25342. echo "$as_me: WARNING: gss.h: proceeding with the preprocessor's result" >&2;}
  25343. { echo "$as_me:$LINENO: WARNING: gss.h: in the future, the compiler will take precedence" >&5
  25344. echo "$as_me: WARNING: gss.h: in the future, the compiler will take precedence" >&2;}
  25345. ( cat <<\_ASBOX
  25346. ## ------------------------------------------------------------------------ ##
  25347. ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
  25348. ## ------------------------------------------------------------------------ ##
  25349. _ASBOX
  25350. ) | sed "s/^/$as_me: WARNING: /" >&2
  25351. ;;
  25352. esac
  25353. { echo "$as_me:$LINENO: checking for gss.h" >&5
  25354. echo $ECHO_N "checking for gss.h... $ECHO_C" >&6; }
  25355. if test "${ac_cv_header_gss_h+set}" = set; then
  25356. echo $ECHO_N "(cached) $ECHO_C" >&6
  25357. else
  25358. ac_cv_header_gss_h=$ac_header_preproc
  25359. fi
  25360. { echo "$as_me:$LINENO: result: $ac_cv_header_gss_h" >&5
  25361. echo "${ECHO_T}$ac_cv_header_gss_h" >&6; }
  25362. fi
  25363. if test $ac_cv_header_gss_h = yes; then
  25364. cat >>confdefs.h <<\_ACEOF
  25365. #define HAVE_GSSGNU 1
  25366. _ACEOF
  25367. gnu_gss=yes
  25368. else
  25369. for ac_header in gssapi/gssapi.h gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
  25370. do
  25371. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25372. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25373. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  25374. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  25375. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25376. echo $ECHO_N "(cached) $ECHO_C" >&6
  25377. fi
  25378. ac_res=`eval echo '${'$as_ac_Header'}'`
  25379. { echo "$as_me:$LINENO: result: $ac_res" >&5
  25380. echo "${ECHO_T}$ac_res" >&6; }
  25381. else
  25382. # Is the header compilable?
  25383. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  25384. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  25385. cat >conftest.$ac_ext <<_ACEOF
  25386. /* confdefs.h. */
  25387. _ACEOF
  25388. cat confdefs.h >>conftest.$ac_ext
  25389. cat >>conftest.$ac_ext <<_ACEOF
  25390. /* end confdefs.h. */
  25391. $ac_includes_default
  25392. #include <$ac_header>
  25393. _ACEOF
  25394. rm -f conftest.$ac_objext
  25395. if { (ac_try="$ac_compile"
  25396. case "(($ac_try" in
  25397. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25398. *) ac_try_echo=$ac_try;;
  25399. esac
  25400. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25401. (eval "$ac_compile") 2>conftest.er1
  25402. ac_status=$?
  25403. grep -v '^ *+' conftest.er1 >conftest.err
  25404. rm -f conftest.er1
  25405. cat conftest.err >&5
  25406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25407. (exit $ac_status); } && {
  25408. test -z "$ac_c_werror_flag" ||
  25409. test ! -s conftest.err
  25410. } && test -s conftest.$ac_objext; then
  25411. ac_header_compiler=yes
  25412. else
  25413. echo "$as_me: failed program was:" >&5
  25414. sed 's/^/| /' conftest.$ac_ext >&5
  25415. ac_header_compiler=no
  25416. fi
  25417. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25418. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25419. echo "${ECHO_T}$ac_header_compiler" >&6; }
  25420. # Is the header present?
  25421. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  25422. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  25423. cat >conftest.$ac_ext <<_ACEOF
  25424. /* confdefs.h. */
  25425. _ACEOF
  25426. cat confdefs.h >>conftest.$ac_ext
  25427. cat >>conftest.$ac_ext <<_ACEOF
  25428. /* end confdefs.h. */
  25429. #include <$ac_header>
  25430. _ACEOF
  25431. if { (ac_try="$ac_cpp conftest.$ac_ext"
  25432. case "(($ac_try" in
  25433. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25434. *) ac_try_echo=$ac_try;;
  25435. esac
  25436. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25437. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25438. ac_status=$?
  25439. grep -v '^ *+' conftest.er1 >conftest.err
  25440. rm -f conftest.er1
  25441. cat conftest.err >&5
  25442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25443. (exit $ac_status); } >/dev/null && {
  25444. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  25445. test ! -s conftest.err
  25446. }; then
  25447. ac_header_preproc=yes
  25448. else
  25449. echo "$as_me: failed program was:" >&5
  25450. sed 's/^/| /' conftest.$ac_ext >&5
  25451. ac_header_preproc=no
  25452. fi
  25453. rm -f conftest.err conftest.$ac_ext
  25454. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25455. echo "${ECHO_T}$ac_header_preproc" >&6; }
  25456. # So? What about this header?
  25457. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25458. yes:no: )
  25459. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  25460. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25461. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  25462. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  25463. ac_header_preproc=yes
  25464. ;;
  25465. no:yes:* )
  25466. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  25467. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  25468. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  25469. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  25470. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  25471. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  25472. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  25473. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  25474. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  25475. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  25476. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  25477. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  25478. ( cat <<\_ASBOX
  25479. ## ------------------------------------------------------------------------ ##
  25480. ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
  25481. ## ------------------------------------------------------------------------ ##
  25482. _ASBOX
  25483. ) | sed "s/^/$as_me: WARNING: /" >&2
  25484. ;;
  25485. esac
  25486. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  25487. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  25488. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25489. echo $ECHO_N "(cached) $ECHO_C" >&6
  25490. else
  25491. eval "$as_ac_Header=\$ac_header_preproc"
  25492. fi
  25493. ac_res=`eval echo '${'$as_ac_Header'}'`
  25494. { echo "$as_me:$LINENO: result: $ac_res" >&5
  25495. echo "${ECHO_T}$ac_res" >&6; }
  25496. fi
  25497. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  25498. cat >>confdefs.h <<_ACEOF
  25499. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25500. _ACEOF
  25501. else
  25502. not_mit=1
  25503. fi
  25504. done
  25505. if test "x$not_mit" = "x1"; then
  25506. if test "${ac_cv_header_gssapi_h+set}" = set; then
  25507. { echo "$as_me:$LINENO: checking for gssapi.h" >&5
  25508. echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
  25509. if test "${ac_cv_header_gssapi_h+set}" = set; then
  25510. echo $ECHO_N "(cached) $ECHO_C" >&6
  25511. fi
  25512. { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
  25513. echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
  25514. else
  25515. # Is the header compilable?
  25516. { echo "$as_me:$LINENO: checking gssapi.h usability" >&5
  25517. echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; }
  25518. cat >conftest.$ac_ext <<_ACEOF
  25519. /* confdefs.h. */
  25520. _ACEOF
  25521. cat confdefs.h >>conftest.$ac_ext
  25522. cat >>conftest.$ac_ext <<_ACEOF
  25523. /* end confdefs.h. */
  25524. $ac_includes_default
  25525. #include <gssapi.h>
  25526. _ACEOF
  25527. rm -f conftest.$ac_objext
  25528. if { (ac_try="$ac_compile"
  25529. case "(($ac_try" in
  25530. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25531. *) ac_try_echo=$ac_try;;
  25532. esac
  25533. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25534. (eval "$ac_compile") 2>conftest.er1
  25535. ac_status=$?
  25536. grep -v '^ *+' conftest.er1 >conftest.err
  25537. rm -f conftest.er1
  25538. cat conftest.err >&5
  25539. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25540. (exit $ac_status); } && {
  25541. test -z "$ac_c_werror_flag" ||
  25542. test ! -s conftest.err
  25543. } && test -s conftest.$ac_objext; then
  25544. ac_header_compiler=yes
  25545. else
  25546. echo "$as_me: failed program was:" >&5
  25547. sed 's/^/| /' conftest.$ac_ext >&5
  25548. ac_header_compiler=no
  25549. fi
  25550. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25551. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25552. echo "${ECHO_T}$ac_header_compiler" >&6; }
  25553. # Is the header present?
  25554. { echo "$as_me:$LINENO: checking gssapi.h presence" >&5
  25555. echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; }
  25556. cat >conftest.$ac_ext <<_ACEOF
  25557. /* confdefs.h. */
  25558. _ACEOF
  25559. cat confdefs.h >>conftest.$ac_ext
  25560. cat >>conftest.$ac_ext <<_ACEOF
  25561. /* end confdefs.h. */
  25562. #include <gssapi.h>
  25563. _ACEOF
  25564. if { (ac_try="$ac_cpp conftest.$ac_ext"
  25565. case "(($ac_try" in
  25566. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25567. *) ac_try_echo=$ac_try;;
  25568. esac
  25569. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25570. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25571. ac_status=$?
  25572. grep -v '^ *+' conftest.er1 >conftest.err
  25573. rm -f conftest.er1
  25574. cat conftest.err >&5
  25575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25576. (exit $ac_status); } >/dev/null && {
  25577. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  25578. test ! -s conftest.err
  25579. }; then
  25580. ac_header_preproc=yes
  25581. else
  25582. echo "$as_me: failed program was:" >&5
  25583. sed 's/^/| /' conftest.$ac_ext >&5
  25584. ac_header_preproc=no
  25585. fi
  25586. rm -f conftest.err conftest.$ac_ext
  25587. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25588. echo "${ECHO_T}$ac_header_preproc" >&6; }
  25589. # So? What about this header?
  25590. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25591. yes:no: )
  25592. { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
  25593. echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25594. { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5
  25595. echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;}
  25596. ac_header_preproc=yes
  25597. ;;
  25598. no:yes:* )
  25599. { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
  25600. echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
  25601. { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5
  25602. echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;}
  25603. { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5
  25604. echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;}
  25605. { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5
  25606. echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
  25607. { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
  25608. echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
  25609. { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5
  25610. echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
  25611. ( cat <<\_ASBOX
  25612. ## ------------------------------------------------------------------------ ##
  25613. ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
  25614. ## ------------------------------------------------------------------------ ##
  25615. _ASBOX
  25616. ) | sed "s/^/$as_me: WARNING: /" >&2
  25617. ;;
  25618. esac
  25619. { echo "$as_me:$LINENO: checking for gssapi.h" >&5
  25620. echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
  25621. if test "${ac_cv_header_gssapi_h+set}" = set; then
  25622. echo $ECHO_N "(cached) $ECHO_C" >&6
  25623. else
  25624. ac_cv_header_gssapi_h=$ac_header_preproc
  25625. fi
  25626. { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
  25627. echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
  25628. fi
  25629. if test $ac_cv_header_gssapi_h = yes; then
  25630. cat >>confdefs.h <<\_ACEOF
  25631. #define HAVE_GSSHEIMDAL 1
  25632. _ACEOF
  25633. else
  25634. want_gss=no
  25635. { echo "$as_me:$LINENO: WARNING: disabling GSSAPI since no header files was found" >&5
  25636. echo "$as_me: WARNING: disabling GSSAPI since no header files was found" >&2;}
  25637. fi
  25638. else
  25639. cat >>confdefs.h <<\_ACEOF
  25640. #define HAVE_GSSMIT 1
  25641. _ACEOF
  25642. { echo "$as_me:$LINENO: checking if gssapi headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
  25643. echo $ECHO_N "checking if gssapi headers declare GSS_C_NT_HOSTBASED_SERVICE... $ECHO_C" >&6; }
  25644. cat >conftest.$ac_ext <<_ACEOF
  25645. /* confdefs.h. */
  25646. _ACEOF
  25647. cat confdefs.h >>conftest.$ac_ext
  25648. cat >>conftest.$ac_ext <<_ACEOF
  25649. /* end confdefs.h. */
  25650. #include <gssapi/gssapi.h>
  25651. #include <gssapi/gssapi_generic.h>
  25652. #include <gssapi/gssapi_krb5.h>
  25653. int
  25654. main ()
  25655. {
  25656. gss_import_name(
  25657. (OM_uint32 *)0,
  25658. (gss_buffer_t)0,
  25659. GSS_C_NT_HOSTBASED_SERVICE,
  25660. (gss_name_t *)0);
  25661. ;
  25662. return 0;
  25663. }
  25664. _ACEOF
  25665. rm -f conftest.$ac_objext
  25666. if { (ac_try="$ac_compile"
  25667. case "(($ac_try" in
  25668. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25669. *) ac_try_echo=$ac_try;;
  25670. esac
  25671. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25672. (eval "$ac_compile") 2>conftest.er1
  25673. ac_status=$?
  25674. grep -v '^ *+' conftest.er1 >conftest.err
  25675. rm -f conftest.er1
  25676. cat conftest.err >&5
  25677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25678. (exit $ac_status); } && {
  25679. test -z "$ac_c_werror_flag" ||
  25680. test ! -s conftest.err
  25681. } && test -s conftest.$ac_objext; then
  25682. { echo "$as_me:$LINENO: result: yes" >&5
  25683. echo "${ECHO_T}yes" >&6; }
  25684. else
  25685. echo "$as_me: failed program was:" >&5
  25686. sed 's/^/| /' conftest.$ac_ext >&5
  25687. { echo "$as_me:$LINENO: result: no" >&5
  25688. echo "${ECHO_T}no" >&6; }
  25689. cat >>confdefs.h <<\_ACEOF
  25690. #define HAVE_OLD_GSSMIT 1
  25691. _ACEOF
  25692. fi
  25693. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25694. fi
  25695. fi
  25696. else
  25697. { echo "$as_me:$LINENO: result: no" >&5
  25698. echo "${ECHO_T}no" >&6; }
  25699. fi
  25700. if test x"$want_gss" = xyes; then
  25701. cat >>confdefs.h <<\_ACEOF
  25702. #define HAVE_GSSAPI 1
  25703. _ACEOF
  25704. curl_gss_msg="enabled (MIT/Heimdal)"
  25705. if test -n "$gnu_gss"; then
  25706. curl_gss_msg="enabled (GNU GSS)"
  25707. LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
  25708. LIBS="$LIBS -lgss"
  25709. elif test -z "$GSSAPI_LIB_DIR"; then
  25710. if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
  25711. gss_libs=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi`
  25712. LIBS="$LIBS $gss_libs"
  25713. elif test "$GSSAPI_ROOT" != "yes"; then
  25714. LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
  25715. LIBS="$LIBS -lgssapi"
  25716. else
  25717. LIBS="$LIBS -lgssapi"
  25718. fi
  25719. else
  25720. LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
  25721. LIBS="$LIBS -lgssapi"
  25722. fi
  25723. else
  25724. CPPFLAGS="$save_CPPFLAGS"
  25725. fi
  25726. OPT_SSL=off
  25727. ca="no"
  25728. # Check whether --with-ssl was given.
  25729. if test "${with_ssl+set}" = set; then
  25730. withval=$with_ssl; OPT_SSL=$withval
  25731. fi
  25732. if test X"$OPT_SSL" != Xno; then
  25733. CLEANLDFLAGS="$LDFLAGS"
  25734. CLEANCPPFLAGS="$CPPFLAGS"
  25735. CLEANLIBS="$LIBS"
  25736. case "$OPT_SSL" in
  25737. yes)
  25738. if test x$cross_compiling != xyes; then
  25739. PKGTEST="yes"
  25740. fi
  25741. PREFIX_OPENSSL=/usr/local/ssl
  25742. LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
  25743. ;;
  25744. off)
  25745. if test x$cross_compiling != xyes; then
  25746. PKGTEST="yes"
  25747. fi
  25748. PREFIX_OPENSSL=
  25749. ;;
  25750. *)
  25751. PKGTEST="no"
  25752. PREFIX_OPENSSL=$OPT_SSL
  25753. LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
  25754. LDFLAGS="$LDFLAGS -L$LIB_OPENSSL"
  25755. CPPFLAGS="$CPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
  25756. ;;
  25757. esac
  25758. if test "$PKGTEST" = "yes"; then
  25759. # Extract the first word of "pkg-config", so it can be a program name with args.
  25760. set dummy pkg-config; ac_word=$2
  25761. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  25762. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  25763. if test "${ac_cv_path_PKGCONFIG+set}" = set; then
  25764. echo $ECHO_N "(cached) $ECHO_C" >&6
  25765. else
  25766. case $PKGCONFIG in
  25767. [\\/]* | ?:[\\/]*)
  25768. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  25769. ;;
  25770. *)
  25771. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25772. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  25773. for as_dir in $as_dummy
  25774. do
  25775. IFS=$as_save_IFS
  25776. test -z "$as_dir" && as_dir=.
  25777. for ac_exec_ext in '' $ac_executable_extensions; do
  25778. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  25779. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  25780. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  25781. break 2
  25782. fi
  25783. done
  25784. done
  25785. IFS=$as_save_IFS
  25786. test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
  25787. ;;
  25788. esac
  25789. fi
  25790. PKGCONFIG=$ac_cv_path_PKGCONFIG
  25791. if test -n "$PKGCONFIG"; then
  25792. { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
  25793. echo "${ECHO_T}$PKGCONFIG" >&6; }
  25794. else
  25795. { echo "$as_me:$LINENO: result: no" >&5
  25796. echo "${ECHO_T}no" >&6; }
  25797. fi
  25798. if test "$PKGCONFIG" != "no" ; then
  25799. { echo "$as_me:$LINENO: checking OpenSSL options with pkg-config" >&5
  25800. echo $ECHO_N "checking OpenSSL options with pkg-config... $ECHO_C" >&6; }
  25801. $PKGCONFIG --exists openssl
  25802. SSL_EXISTS=$?
  25803. if test "$SSL_EXISTS" -eq "0"; then
  25804. SSL_LIBS=`$PKGCONFIG --libs-only-l openssl 2>/dev/null`
  25805. SSL_LDFLAGS=`$PKGCONFIG --libs-only-L openssl 2>/dev/null`
  25806. SSL_CPPFLAGS=`$PKGCONFIG --cflags-only-I openssl 2>/dev/null`
  25807. LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
  25808. LIBS="$LIBS $SSL_LIBS"
  25809. CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
  25810. LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
  25811. { echo "$as_me:$LINENO: result: found" >&5
  25812. echo "${ECHO_T}found" >&6; }
  25813. else
  25814. { echo "$as_me:$LINENO: result: no" >&5
  25815. echo "${ECHO_T}no" >&6; }
  25816. fi
  25817. fi
  25818. fi
  25819. { echo "$as_me:$LINENO: checking for CRYPTO_lock in -lcrypto" >&5
  25820. echo $ECHO_N "checking for CRYPTO_lock in -lcrypto... $ECHO_C" >&6; }
  25821. if test "${ac_cv_lib_crypto_CRYPTO_lock+set}" = set; then
  25822. echo $ECHO_N "(cached) $ECHO_C" >&6
  25823. else
  25824. ac_check_lib_save_LIBS=$LIBS
  25825. LIBS="-lcrypto $LIBS"
  25826. cat >conftest.$ac_ext <<_ACEOF
  25827. /* confdefs.h. */
  25828. _ACEOF
  25829. cat confdefs.h >>conftest.$ac_ext
  25830. cat >>conftest.$ac_ext <<_ACEOF
  25831. /* end confdefs.h. */
  25832. /* Override any GCC internal prototype to avoid an error.
  25833. Use char because int might match the return type of a GCC
  25834. builtin and then its argument prototype would still apply. */
  25835. #ifdef __cplusplus
  25836. extern "C"
  25837. #endif
  25838. char CRYPTO_lock ();
  25839. int
  25840. main ()
  25841. {
  25842. return CRYPTO_lock ();
  25843. ;
  25844. return 0;
  25845. }
  25846. _ACEOF
  25847. rm -f conftest.$ac_objext conftest$ac_exeext
  25848. if { (ac_try="$ac_link"
  25849. case "(($ac_try" in
  25850. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25851. *) ac_try_echo=$ac_try;;
  25852. esac
  25853. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25854. (eval "$ac_link") 2>conftest.er1
  25855. ac_status=$?
  25856. grep -v '^ *+' conftest.er1 >conftest.err
  25857. rm -f conftest.er1
  25858. cat conftest.err >&5
  25859. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25860. (exit $ac_status); } && {
  25861. test -z "$ac_c_werror_flag" ||
  25862. test ! -s conftest.err
  25863. } && test -s conftest$ac_exeext &&
  25864. $as_test_x conftest$ac_exeext; then
  25865. ac_cv_lib_crypto_CRYPTO_lock=yes
  25866. else
  25867. echo "$as_me: failed program was:" >&5
  25868. sed 's/^/| /' conftest.$ac_ext >&5
  25869. ac_cv_lib_crypto_CRYPTO_lock=no
  25870. fi
  25871. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  25872. conftest$ac_exeext conftest.$ac_ext
  25873. LIBS=$ac_check_lib_save_LIBS
  25874. fi
  25875. { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_lock" >&5
  25876. echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_lock" >&6; }
  25877. if test $ac_cv_lib_crypto_CRYPTO_lock = yes; then
  25878. HAVECRYPTO="yes"
  25879. LIBS="-lcrypto $LIBS"
  25880. else
  25881. LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
  25882. CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
  25883. { echo "$as_me:$LINENO: checking for CRYPTO_add_lock in -lcrypto" >&5
  25884. echo $ECHO_N "checking for CRYPTO_add_lock in -lcrypto... $ECHO_C" >&6; }
  25885. if test "${ac_cv_lib_crypto_CRYPTO_add_lock+set}" = set; then
  25886. echo $ECHO_N "(cached) $ECHO_C" >&6
  25887. else
  25888. ac_check_lib_save_LIBS=$LIBS
  25889. LIBS="-lcrypto $LIBS"
  25890. cat >conftest.$ac_ext <<_ACEOF
  25891. /* confdefs.h. */
  25892. _ACEOF
  25893. cat confdefs.h >>conftest.$ac_ext
  25894. cat >>conftest.$ac_ext <<_ACEOF
  25895. /* end confdefs.h. */
  25896. /* Override any GCC internal prototype to avoid an error.
  25897. Use char because int might match the return type of a GCC
  25898. builtin and then its argument prototype would still apply. */
  25899. #ifdef __cplusplus
  25900. extern "C"
  25901. #endif
  25902. char CRYPTO_add_lock ();
  25903. int
  25904. main ()
  25905. {
  25906. return CRYPTO_add_lock ();
  25907. ;
  25908. return 0;
  25909. }
  25910. _ACEOF
  25911. rm -f conftest.$ac_objext conftest$ac_exeext
  25912. if { (ac_try="$ac_link"
  25913. case "(($ac_try" in
  25914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25915. *) ac_try_echo=$ac_try;;
  25916. esac
  25917. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25918. (eval "$ac_link") 2>conftest.er1
  25919. ac_status=$?
  25920. grep -v '^ *+' conftest.er1 >conftest.err
  25921. rm -f conftest.er1
  25922. cat conftest.err >&5
  25923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25924. (exit $ac_status); } && {
  25925. test -z "$ac_c_werror_flag" ||
  25926. test ! -s conftest.err
  25927. } && test -s conftest$ac_exeext &&
  25928. $as_test_x conftest$ac_exeext; then
  25929. ac_cv_lib_crypto_CRYPTO_add_lock=yes
  25930. else
  25931. echo "$as_me: failed program was:" >&5
  25932. sed 's/^/| /' conftest.$ac_ext >&5
  25933. ac_cv_lib_crypto_CRYPTO_add_lock=no
  25934. fi
  25935. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  25936. conftest$ac_exeext conftest.$ac_ext
  25937. LIBS=$ac_check_lib_save_LIBS
  25938. fi
  25939. { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_add_lock" >&5
  25940. echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_add_lock" >&6; }
  25941. if test $ac_cv_lib_crypto_CRYPTO_add_lock = yes; then
  25942. HAVECRYPTO="yes"
  25943. LIBS="-lcrypto $LIBS"
  25944. else
  25945. LDFLAGS="$CLEANLDFLAGS"
  25946. CPPFLAGS="$CLEANCPPFLAGS"
  25947. LIBS="$CLEANLIBS"
  25948. fi
  25949. fi
  25950. if test X"$HAVECRYPTO" = X"yes"; then
  25951. { echo "$as_me:$LINENO: checking for SSL_connect in -lssl" >&5
  25952. echo $ECHO_N "checking for SSL_connect in -lssl... $ECHO_C" >&6; }
  25953. if test "${ac_cv_lib_ssl_SSL_connect+set}" = set; then
  25954. echo $ECHO_N "(cached) $ECHO_C" >&6
  25955. else
  25956. ac_check_lib_save_LIBS=$LIBS
  25957. LIBS="-lssl $LIBS"
  25958. cat >conftest.$ac_ext <<_ACEOF
  25959. /* confdefs.h. */
  25960. _ACEOF
  25961. cat confdefs.h >>conftest.$ac_ext
  25962. cat >>conftest.$ac_ext <<_ACEOF
  25963. /* end confdefs.h. */
  25964. /* Override any GCC internal prototype to avoid an error.
  25965. Use char because int might match the return type of a GCC
  25966. builtin and then its argument prototype would still apply. */
  25967. #ifdef __cplusplus
  25968. extern "C"
  25969. #endif
  25970. char SSL_connect ();
  25971. int
  25972. main ()
  25973. {
  25974. return SSL_connect ();
  25975. ;
  25976. return 0;
  25977. }
  25978. _ACEOF
  25979. rm -f conftest.$ac_objext conftest$ac_exeext
  25980. if { (ac_try="$ac_link"
  25981. case "(($ac_try" in
  25982. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25983. *) ac_try_echo=$ac_try;;
  25984. esac
  25985. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25986. (eval "$ac_link") 2>conftest.er1
  25987. ac_status=$?
  25988. grep -v '^ *+' conftest.er1 >conftest.err
  25989. rm -f conftest.er1
  25990. cat conftest.err >&5
  25991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25992. (exit $ac_status); } && {
  25993. test -z "$ac_c_werror_flag" ||
  25994. test ! -s conftest.err
  25995. } && test -s conftest$ac_exeext &&
  25996. $as_test_x conftest$ac_exeext; then
  25997. ac_cv_lib_ssl_SSL_connect=yes
  25998. else
  25999. echo "$as_me: failed program was:" >&5
  26000. sed 's/^/| /' conftest.$ac_ext >&5
  26001. ac_cv_lib_ssl_SSL_connect=no
  26002. fi
  26003. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26004. conftest$ac_exeext conftest.$ac_ext
  26005. LIBS=$ac_check_lib_save_LIBS
  26006. fi
  26007. { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_connect" >&5
  26008. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_connect" >&6; }
  26009. if test $ac_cv_lib_ssl_SSL_connect = yes; then
  26010. cat >>confdefs.h <<_ACEOF
  26011. #define HAVE_LIBSSL 1
  26012. _ACEOF
  26013. LIBS="-lssl $LIBS"
  26014. fi
  26015. if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
  26016. { echo "$as_me:$LINENO: checking for ssl with RSAglue/rsaref libs in use" >&5
  26017. echo $ECHO_N "checking for ssl with RSAglue/rsaref libs in use... $ECHO_C" >&6; };
  26018. OLIBS=$LIBS
  26019. LIBS="$LIBS -lRSAglue -lrsaref"
  26020. { echo "$as_me:$LINENO: checking for SSL_connect in -lssl" >&5
  26021. echo $ECHO_N "checking for SSL_connect in -lssl... $ECHO_C" >&6; }
  26022. if test "${ac_cv_lib_ssl_SSL_connect+set}" = set; then
  26023. echo $ECHO_N "(cached) $ECHO_C" >&6
  26024. else
  26025. ac_check_lib_save_LIBS=$LIBS
  26026. LIBS="-lssl $LIBS"
  26027. cat >conftest.$ac_ext <<_ACEOF
  26028. /* confdefs.h. */
  26029. _ACEOF
  26030. cat confdefs.h >>conftest.$ac_ext
  26031. cat >>conftest.$ac_ext <<_ACEOF
  26032. /* end confdefs.h. */
  26033. /* Override any GCC internal prototype to avoid an error.
  26034. Use char because int might match the return type of a GCC
  26035. builtin and then its argument prototype would still apply. */
  26036. #ifdef __cplusplus
  26037. extern "C"
  26038. #endif
  26039. char SSL_connect ();
  26040. int
  26041. main ()
  26042. {
  26043. return SSL_connect ();
  26044. ;
  26045. return 0;
  26046. }
  26047. _ACEOF
  26048. rm -f conftest.$ac_objext conftest$ac_exeext
  26049. if { (ac_try="$ac_link"
  26050. case "(($ac_try" in
  26051. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26052. *) ac_try_echo=$ac_try;;
  26053. esac
  26054. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26055. (eval "$ac_link") 2>conftest.er1
  26056. ac_status=$?
  26057. grep -v '^ *+' conftest.er1 >conftest.err
  26058. rm -f conftest.er1
  26059. cat conftest.err >&5
  26060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26061. (exit $ac_status); } && {
  26062. test -z "$ac_c_werror_flag" ||
  26063. test ! -s conftest.err
  26064. } && test -s conftest$ac_exeext &&
  26065. $as_test_x conftest$ac_exeext; then
  26066. ac_cv_lib_ssl_SSL_connect=yes
  26067. else
  26068. echo "$as_me: failed program was:" >&5
  26069. sed 's/^/| /' conftest.$ac_ext >&5
  26070. ac_cv_lib_ssl_SSL_connect=no
  26071. fi
  26072. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26073. conftest$ac_exeext conftest.$ac_ext
  26074. LIBS=$ac_check_lib_save_LIBS
  26075. fi
  26076. { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_connect" >&5
  26077. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_connect" >&6; }
  26078. if test $ac_cv_lib_ssl_SSL_connect = yes; then
  26079. cat >>confdefs.h <<_ACEOF
  26080. #define HAVE_LIBSSL 1
  26081. _ACEOF
  26082. LIBS="-lssl $LIBS"
  26083. fi
  26084. if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
  26085. { echo "$as_me:$LINENO: result: no" >&5
  26086. echo "${ECHO_T}no" >&6; }
  26087. LIBS=$OLIBS
  26088. else
  26089. { echo "$as_me:$LINENO: result: yes" >&5
  26090. echo "${ECHO_T}yes" >&6; }
  26091. fi
  26092. else
  26093. for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
  26094. openssl/pem.h openssl/ssl.h openssl/err.h
  26095. do
  26096. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  26097. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  26098. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  26099. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  26100. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  26101. echo $ECHO_N "(cached) $ECHO_C" >&6
  26102. fi
  26103. ac_res=`eval echo '${'$as_ac_Header'}'`
  26104. { echo "$as_me:$LINENO: result: $ac_res" >&5
  26105. echo "${ECHO_T}$ac_res" >&6; }
  26106. else
  26107. # Is the header compilable?
  26108. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  26109. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  26110. cat >conftest.$ac_ext <<_ACEOF
  26111. /* confdefs.h. */
  26112. _ACEOF
  26113. cat confdefs.h >>conftest.$ac_ext
  26114. cat >>conftest.$ac_ext <<_ACEOF
  26115. /* end confdefs.h. */
  26116. $ac_includes_default
  26117. #include <$ac_header>
  26118. _ACEOF
  26119. rm -f conftest.$ac_objext
  26120. if { (ac_try="$ac_compile"
  26121. case "(($ac_try" in
  26122. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26123. *) ac_try_echo=$ac_try;;
  26124. esac
  26125. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26126. (eval "$ac_compile") 2>conftest.er1
  26127. ac_status=$?
  26128. grep -v '^ *+' conftest.er1 >conftest.err
  26129. rm -f conftest.er1
  26130. cat conftest.err >&5
  26131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26132. (exit $ac_status); } && {
  26133. test -z "$ac_c_werror_flag" ||
  26134. test ! -s conftest.err
  26135. } && test -s conftest.$ac_objext; then
  26136. ac_header_compiler=yes
  26137. else
  26138. echo "$as_me: failed program was:" >&5
  26139. sed 's/^/| /' conftest.$ac_ext >&5
  26140. ac_header_compiler=no
  26141. fi
  26142. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26143. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  26144. echo "${ECHO_T}$ac_header_compiler" >&6; }
  26145. # Is the header present?
  26146. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  26147. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  26148. cat >conftest.$ac_ext <<_ACEOF
  26149. /* confdefs.h. */
  26150. _ACEOF
  26151. cat confdefs.h >>conftest.$ac_ext
  26152. cat >>conftest.$ac_ext <<_ACEOF
  26153. /* end confdefs.h. */
  26154. #include <$ac_header>
  26155. _ACEOF
  26156. if { (ac_try="$ac_cpp conftest.$ac_ext"
  26157. case "(($ac_try" in
  26158. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26159. *) ac_try_echo=$ac_try;;
  26160. esac
  26161. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26162. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  26163. ac_status=$?
  26164. grep -v '^ *+' conftest.er1 >conftest.err
  26165. rm -f conftest.er1
  26166. cat conftest.err >&5
  26167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26168. (exit $ac_status); } >/dev/null && {
  26169. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  26170. test ! -s conftest.err
  26171. }; then
  26172. ac_header_preproc=yes
  26173. else
  26174. echo "$as_me: failed program was:" >&5
  26175. sed 's/^/| /' conftest.$ac_ext >&5
  26176. ac_header_preproc=no
  26177. fi
  26178. rm -f conftest.err conftest.$ac_ext
  26179. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  26180. echo "${ECHO_T}$ac_header_preproc" >&6; }
  26181. # So? What about this header?
  26182. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  26183. yes:no: )
  26184. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  26185. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  26186. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  26187. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  26188. ac_header_preproc=yes
  26189. ;;
  26190. no:yes:* )
  26191. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  26192. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  26193. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  26194. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  26195. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  26196. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  26197. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  26198. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  26199. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  26200. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  26201. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  26202. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  26203. ( cat <<\_ASBOX
  26204. ## ------------------------------------------------------------------------ ##
  26205. ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
  26206. ## ------------------------------------------------------------------------ ##
  26207. _ASBOX
  26208. ) | sed "s/^/$as_me: WARNING: /" >&2
  26209. ;;
  26210. esac
  26211. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  26212. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  26213. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  26214. echo $ECHO_N "(cached) $ECHO_C" >&6
  26215. else
  26216. eval "$as_ac_Header=\$ac_header_preproc"
  26217. fi
  26218. ac_res=`eval echo '${'$as_ac_Header'}'`
  26219. { echo "$as_me:$LINENO: result: $ac_res" >&5
  26220. echo "${ECHO_T}$ac_res" >&6; }
  26221. fi
  26222. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  26223. cat >>confdefs.h <<_ACEOF
  26224. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  26225. _ACEOF
  26226. curl_ssl_msg="enabled (OpenSSL)"
  26227. OPENSSL_ENABLED=1
  26228. cat >>confdefs.h <<\_ACEOF
  26229. #define USE_OPENSSL 1
  26230. _ACEOF
  26231. fi
  26232. done
  26233. if test $ac_cv_header_openssl_x509_h = no; then
  26234. for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
  26235. do
  26236. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  26237. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  26238. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  26239. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  26240. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  26241. echo $ECHO_N "(cached) $ECHO_C" >&6
  26242. fi
  26243. ac_res=`eval echo '${'$as_ac_Header'}'`
  26244. { echo "$as_me:$LINENO: result: $ac_res" >&5
  26245. echo "${ECHO_T}$ac_res" >&6; }
  26246. else
  26247. # Is the header compilable?
  26248. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  26249. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  26250. cat >conftest.$ac_ext <<_ACEOF
  26251. /* confdefs.h. */
  26252. _ACEOF
  26253. cat confdefs.h >>conftest.$ac_ext
  26254. cat >>conftest.$ac_ext <<_ACEOF
  26255. /* end confdefs.h. */
  26256. $ac_includes_default
  26257. #include <$ac_header>
  26258. _ACEOF
  26259. rm -f conftest.$ac_objext
  26260. if { (ac_try="$ac_compile"
  26261. case "(($ac_try" in
  26262. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26263. *) ac_try_echo=$ac_try;;
  26264. esac
  26265. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26266. (eval "$ac_compile") 2>conftest.er1
  26267. ac_status=$?
  26268. grep -v '^ *+' conftest.er1 >conftest.err
  26269. rm -f conftest.er1
  26270. cat conftest.err >&5
  26271. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26272. (exit $ac_status); } && {
  26273. test -z "$ac_c_werror_flag" ||
  26274. test ! -s conftest.err
  26275. } && test -s conftest.$ac_objext; then
  26276. ac_header_compiler=yes
  26277. else
  26278. echo "$as_me: failed program was:" >&5
  26279. sed 's/^/| /' conftest.$ac_ext >&5
  26280. ac_header_compiler=no
  26281. fi
  26282. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26283. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  26284. echo "${ECHO_T}$ac_header_compiler" >&6; }
  26285. # Is the header present?
  26286. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  26287. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  26288. cat >conftest.$ac_ext <<_ACEOF
  26289. /* confdefs.h. */
  26290. _ACEOF
  26291. cat confdefs.h >>conftest.$ac_ext
  26292. cat >>conftest.$ac_ext <<_ACEOF
  26293. /* end confdefs.h. */
  26294. #include <$ac_header>
  26295. _ACEOF
  26296. if { (ac_try="$ac_cpp conftest.$ac_ext"
  26297. case "(($ac_try" in
  26298. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26299. *) ac_try_echo=$ac_try;;
  26300. esac
  26301. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26302. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  26303. ac_status=$?
  26304. grep -v '^ *+' conftest.er1 >conftest.err
  26305. rm -f conftest.er1
  26306. cat conftest.err >&5
  26307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26308. (exit $ac_status); } >/dev/null && {
  26309. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  26310. test ! -s conftest.err
  26311. }; then
  26312. ac_header_preproc=yes
  26313. else
  26314. echo "$as_me: failed program was:" >&5
  26315. sed 's/^/| /' conftest.$ac_ext >&5
  26316. ac_header_preproc=no
  26317. fi
  26318. rm -f conftest.err conftest.$ac_ext
  26319. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  26320. echo "${ECHO_T}$ac_header_preproc" >&6; }
  26321. # So? What about this header?
  26322. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  26323. yes:no: )
  26324. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  26325. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  26326. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  26327. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  26328. ac_header_preproc=yes
  26329. ;;
  26330. no:yes:* )
  26331. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  26332. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  26333. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  26334. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  26335. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  26336. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  26337. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  26338. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  26339. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  26340. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  26341. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  26342. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  26343. ( cat <<\_ASBOX
  26344. ## ------------------------------------------------------------------------ ##
  26345. ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
  26346. ## ------------------------------------------------------------------------ ##
  26347. _ASBOX
  26348. ) | sed "s/^/$as_me: WARNING: /" >&2
  26349. ;;
  26350. esac
  26351. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  26352. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  26353. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  26354. echo $ECHO_N "(cached) $ECHO_C" >&6
  26355. else
  26356. eval "$as_ac_Header=\$ac_header_preproc"
  26357. fi
  26358. ac_res=`eval echo '${'$as_ac_Header'}'`
  26359. { echo "$as_me:$LINENO: result: $ac_res" >&5
  26360. echo "${ECHO_T}$ac_res" >&6; }
  26361. fi
  26362. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  26363. cat >>confdefs.h <<_ACEOF
  26364. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  26365. _ACEOF
  26366. fi
  26367. done
  26368. if test $ac_cv_header_x509_h = yes &&
  26369. test $ac_cv_header_crypto_h = yes &&
  26370. test $ac_cv_header_ssl_h = yes; then
  26371. curl_ssl_msg="enabled (OpenSSL)"
  26372. OPENSSL_ENABLED=1
  26373. fi
  26374. fi
  26375. fi
  26376. if test X"$OPENSSL_ENABLED" = X"1"; then
  26377. cat >>confdefs.h <<\_ACEOF
  26378. #define USE_SSLEAY 1
  26379. _ACEOF
  26380. for ac_header in openssl/pkcs12.h
  26381. do
  26382. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  26383. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  26384. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  26385. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  26386. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  26387. echo $ECHO_N "(cached) $ECHO_C" >&6
  26388. fi
  26389. ac_res=`eval echo '${'$as_ac_Header'}'`
  26390. { echo "$as_me:$LINENO: result: $ac_res" >&5
  26391. echo "${ECHO_T}$ac_res" >&6; }
  26392. else
  26393. # Is the header compilable?
  26394. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  26395. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  26396. cat >conftest.$ac_ext <<_ACEOF
  26397. /* confdefs.h. */
  26398. _ACEOF
  26399. cat confdefs.h >>conftest.$ac_ext
  26400. cat >>conftest.$ac_ext <<_ACEOF
  26401. /* end confdefs.h. */
  26402. $ac_includes_default
  26403. #include <$ac_header>
  26404. _ACEOF
  26405. rm -f conftest.$ac_objext
  26406. if { (ac_try="$ac_compile"
  26407. case "(($ac_try" in
  26408. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26409. *) ac_try_echo=$ac_try;;
  26410. esac
  26411. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26412. (eval "$ac_compile") 2>conftest.er1
  26413. ac_status=$?
  26414. grep -v '^ *+' conftest.er1 >conftest.err
  26415. rm -f conftest.er1
  26416. cat conftest.err >&5
  26417. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26418. (exit $ac_status); } && {
  26419. test -z "$ac_c_werror_flag" ||
  26420. test ! -s conftest.err
  26421. } && test -s conftest.$ac_objext; then
  26422. ac_header_compiler=yes
  26423. else
  26424. echo "$as_me: failed program was:" >&5
  26425. sed 's/^/| /' conftest.$ac_ext >&5
  26426. ac_header_compiler=no
  26427. fi
  26428. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26429. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  26430. echo "${ECHO_T}$ac_header_compiler" >&6; }
  26431. # Is the header present?
  26432. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  26433. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  26434. cat >conftest.$ac_ext <<_ACEOF
  26435. /* confdefs.h. */
  26436. _ACEOF
  26437. cat confdefs.h >>conftest.$ac_ext
  26438. cat >>conftest.$ac_ext <<_ACEOF
  26439. /* end confdefs.h. */
  26440. #include <$ac_header>
  26441. _ACEOF
  26442. if { (ac_try="$ac_cpp conftest.$ac_ext"
  26443. case "(($ac_try" in
  26444. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26445. *) ac_try_echo=$ac_try;;
  26446. esac
  26447. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26448. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  26449. ac_status=$?
  26450. grep -v '^ *+' conftest.er1 >conftest.err
  26451. rm -f conftest.er1
  26452. cat conftest.err >&5
  26453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26454. (exit $ac_status); } >/dev/null && {
  26455. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  26456. test ! -s conftest.err
  26457. }; then
  26458. ac_header_preproc=yes
  26459. else
  26460. echo "$as_me: failed program was:" >&5
  26461. sed 's/^/| /' conftest.$ac_ext >&5
  26462. ac_header_preproc=no
  26463. fi
  26464. rm -f conftest.err conftest.$ac_ext
  26465. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  26466. echo "${ECHO_T}$ac_header_preproc" >&6; }
  26467. # So? What about this header?
  26468. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  26469. yes:no: )
  26470. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  26471. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  26472. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  26473. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  26474. ac_header_preproc=yes
  26475. ;;
  26476. no:yes:* )
  26477. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  26478. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  26479. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  26480. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  26481. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  26482. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  26483. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  26484. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  26485. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  26486. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  26487. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  26488. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  26489. ( cat <<\_ASBOX
  26490. ## ------------------------------------------------------------------------ ##
  26491. ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
  26492. ## ------------------------------------------------------------------------ ##
  26493. _ASBOX
  26494. ) | sed "s/^/$as_me: WARNING: /" >&2
  26495. ;;
  26496. esac
  26497. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  26498. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  26499. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  26500. echo $ECHO_N "(cached) $ECHO_C" >&6
  26501. else
  26502. eval "$as_ac_Header=\$ac_header_preproc"
  26503. fi
  26504. ac_res=`eval echo '${'$as_ac_Header'}'`
  26505. { echo "$as_me:$LINENO: result: $ac_res" >&5
  26506. echo "${ECHO_T}$ac_res" >&6; }
  26507. fi
  26508. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  26509. cat >>confdefs.h <<_ACEOF
  26510. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  26511. _ACEOF
  26512. fi
  26513. done
  26514. else
  26515. LIBS="$CLEANLIBS"
  26516. fi
  26517. USE_SSLEAY="$OPENSSL_ENABLED"
  26518. if test X"$OPT_SSL" != Xoff &&
  26519. test "$OPENSSL_ENABLED" != "1"; then
  26520. { { echo "$as_me:$LINENO: error: OpenSSL libs and/or directories were not found where specified!" >&5
  26521. echo "$as_me: error: OpenSSL libs and/or directories were not found where specified!" >&2;}
  26522. { (exit 1); exit 1; }; }
  26523. fi
  26524. fi
  26525. if test X"$OPENSSL_ENABLED" = X"1"; then
  26526. { echo "$as_me:$LINENO: checking for ENGINE_init" >&5
  26527. echo $ECHO_N "checking for ENGINE_init... $ECHO_C" >&6; }
  26528. if test "${ac_cv_func_ENGINE_init+set}" = set; then
  26529. echo $ECHO_N "(cached) $ECHO_C" >&6
  26530. else
  26531. cat >conftest.$ac_ext <<_ACEOF
  26532. /* confdefs.h. */
  26533. _ACEOF
  26534. cat confdefs.h >>conftest.$ac_ext
  26535. cat >>conftest.$ac_ext <<_ACEOF
  26536. /* end confdefs.h. */
  26537. /* Define ENGINE_init to an innocuous variant, in case <limits.h> declares ENGINE_init.
  26538. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  26539. #define ENGINE_init innocuous_ENGINE_init
  26540. /* System header to define __stub macros and hopefully few prototypes,
  26541. which can conflict with char ENGINE_init (); below.
  26542. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  26543. <limits.h> exists even on freestanding compilers. */
  26544. #ifdef __STDC__
  26545. # include <limits.h>
  26546. #else
  26547. # include <assert.h>
  26548. #endif
  26549. #undef ENGINE_init
  26550. /* Override any GCC internal prototype to avoid an error.
  26551. Use char because int might match the return type of a GCC
  26552. builtin and then its argument prototype would still apply. */
  26553. #ifdef __cplusplus
  26554. extern "C"
  26555. #endif
  26556. char ENGINE_init ();
  26557. /* The GNU C library defines this for functions which it implements
  26558. to always fail with ENOSYS. Some functions are actually named
  26559. something starting with __ and the normal name is an alias. */
  26560. #if defined __stub_ENGINE_init || defined __stub___ENGINE_init
  26561. choke me
  26562. #endif
  26563. int
  26564. main ()
  26565. {
  26566. return ENGINE_init ();
  26567. ;
  26568. return 0;
  26569. }
  26570. _ACEOF
  26571. rm -f conftest.$ac_objext conftest$ac_exeext
  26572. if { (ac_try="$ac_link"
  26573. case "(($ac_try" in
  26574. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26575. *) ac_try_echo=$ac_try;;
  26576. esac
  26577. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26578. (eval "$ac_link") 2>conftest.er1
  26579. ac_status=$?
  26580. grep -v '^ *+' conftest.er1 >conftest.err
  26581. rm -f conftest.er1
  26582. cat conftest.err >&5
  26583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26584. (exit $ac_status); } && {
  26585. test -z "$ac_c_werror_flag" ||
  26586. test ! -s conftest.err
  26587. } && test -s conftest$ac_exeext &&
  26588. $as_test_x conftest$ac_exeext; then
  26589. ac_cv_func_ENGINE_init=yes
  26590. else
  26591. echo "$as_me: failed program was:" >&5
  26592. sed 's/^/| /' conftest.$ac_ext >&5
  26593. ac_cv_func_ENGINE_init=no
  26594. fi
  26595. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26596. conftest$ac_exeext conftest.$ac_ext
  26597. fi
  26598. { echo "$as_me:$LINENO: result: $ac_cv_func_ENGINE_init" >&5
  26599. echo "${ECHO_T}$ac_cv_func_ENGINE_init" >&6; }
  26600. if test $ac_cv_func_ENGINE_init = yes; then
  26601. for ac_header in openssl/engine.h
  26602. do
  26603. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  26604. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  26605. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  26606. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  26607. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  26608. echo $ECHO_N "(cached) $ECHO_C" >&6
  26609. fi
  26610. ac_res=`eval echo '${'$as_ac_Header'}'`
  26611. { echo "$as_me:$LINENO: result: $ac_res" >&5
  26612. echo "${ECHO_T}$ac_res" >&6; }
  26613. else
  26614. # Is the header compilable?
  26615. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  26616. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  26617. cat >conftest.$ac_ext <<_ACEOF
  26618. /* confdefs.h. */
  26619. _ACEOF
  26620. cat confdefs.h >>conftest.$ac_ext
  26621. cat >>conftest.$ac_ext <<_ACEOF
  26622. /* end confdefs.h. */
  26623. $ac_includes_default
  26624. #include <$ac_header>
  26625. _ACEOF
  26626. rm -f conftest.$ac_objext
  26627. if { (ac_try="$ac_compile"
  26628. case "(($ac_try" in
  26629. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26630. *) ac_try_echo=$ac_try;;
  26631. esac
  26632. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26633. (eval "$ac_compile") 2>conftest.er1
  26634. ac_status=$?
  26635. grep -v '^ *+' conftest.er1 >conftest.err
  26636. rm -f conftest.er1
  26637. cat conftest.err >&5
  26638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26639. (exit $ac_status); } && {
  26640. test -z "$ac_c_werror_flag" ||
  26641. test ! -s conftest.err
  26642. } && test -s conftest.$ac_objext; then
  26643. ac_header_compiler=yes
  26644. else
  26645. echo "$as_me: failed program was:" >&5
  26646. sed 's/^/| /' conftest.$ac_ext >&5
  26647. ac_header_compiler=no
  26648. fi
  26649. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26650. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  26651. echo "${ECHO_T}$ac_header_compiler" >&6; }
  26652. # Is the header present?
  26653. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  26654. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  26655. cat >conftest.$ac_ext <<_ACEOF
  26656. /* confdefs.h. */
  26657. _ACEOF
  26658. cat confdefs.h >>conftest.$ac_ext
  26659. cat >>conftest.$ac_ext <<_ACEOF
  26660. /* end confdefs.h. */
  26661. #include <$ac_header>
  26662. _ACEOF
  26663. if { (ac_try="$ac_cpp conftest.$ac_ext"
  26664. case "(($ac_try" in
  26665. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26666. *) ac_try_echo=$ac_try;;
  26667. esac
  26668. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26669. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  26670. ac_status=$?
  26671. grep -v '^ *+' conftest.er1 >conftest.err
  26672. rm -f conftest.er1
  26673. cat conftest.err >&5
  26674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26675. (exit $ac_status); } >/dev/null && {
  26676. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  26677. test ! -s conftest.err
  26678. }; then
  26679. ac_header_preproc=yes
  26680. else
  26681. echo "$as_me: failed program was:" >&5
  26682. sed 's/^/| /' conftest.$ac_ext >&5
  26683. ac_header_preproc=no
  26684. fi
  26685. rm -f conftest.err conftest.$ac_ext
  26686. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  26687. echo "${ECHO_T}$ac_header_preproc" >&6; }
  26688. # So? What about this header?
  26689. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  26690. yes:no: )
  26691. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  26692. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  26693. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  26694. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  26695. ac_header_preproc=yes
  26696. ;;
  26697. no:yes:* )
  26698. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  26699. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  26700. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  26701. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  26702. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  26703. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  26704. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  26705. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  26706. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  26707. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  26708. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  26709. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  26710. ( cat <<\_ASBOX
  26711. ## ------------------------------------------------------------------------ ##
  26712. ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
  26713. ## ------------------------------------------------------------------------ ##
  26714. _ASBOX
  26715. ) | sed "s/^/$as_me: WARNING: /" >&2
  26716. ;;
  26717. esac
  26718. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  26719. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  26720. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  26721. echo $ECHO_N "(cached) $ECHO_C" >&6
  26722. else
  26723. eval "$as_ac_Header=\$ac_header_preproc"
  26724. fi
  26725. ac_res=`eval echo '${'$as_ac_Header'}'`
  26726. { echo "$as_me:$LINENO: result: $ac_res" >&5
  26727. echo "${ECHO_T}$ac_res" >&6; }
  26728. fi
  26729. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  26730. cat >>confdefs.h <<_ACEOF
  26731. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  26732. _ACEOF
  26733. fi
  26734. done
  26735. for ac_func in ENGINE_load_builtin_engines
  26736. do
  26737. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  26738. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  26739. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  26740. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  26741. echo $ECHO_N "(cached) $ECHO_C" >&6
  26742. else
  26743. cat >conftest.$ac_ext <<_ACEOF
  26744. /* confdefs.h. */
  26745. _ACEOF
  26746. cat confdefs.h >>conftest.$ac_ext
  26747. cat >>conftest.$ac_ext <<_ACEOF
  26748. /* end confdefs.h. */
  26749. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  26750. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  26751. #define $ac_func innocuous_$ac_func
  26752. /* System header to define __stub macros and hopefully few prototypes,
  26753. which can conflict with char $ac_func (); below.
  26754. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  26755. <limits.h> exists even on freestanding compilers. */
  26756. #ifdef __STDC__
  26757. # include <limits.h>
  26758. #else
  26759. # include <assert.h>
  26760. #endif
  26761. #undef $ac_func
  26762. /* Override any GCC internal prototype to avoid an error.
  26763. Use char because int might match the return type of a GCC
  26764. builtin and then its argument prototype would still apply. */
  26765. #ifdef __cplusplus
  26766. extern "C"
  26767. #endif
  26768. char $ac_func ();
  26769. /* The GNU C library defines this for functions which it implements
  26770. to always fail with ENOSYS. Some functions are actually named
  26771. something starting with __ and the normal name is an alias. */
  26772. #if defined __stub_$ac_func || defined __stub___$ac_func
  26773. choke me
  26774. #endif
  26775. int
  26776. main ()
  26777. {
  26778. return $ac_func ();
  26779. ;
  26780. return 0;
  26781. }
  26782. _ACEOF
  26783. rm -f conftest.$ac_objext conftest$ac_exeext
  26784. if { (ac_try="$ac_link"
  26785. case "(($ac_try" in
  26786. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26787. *) ac_try_echo=$ac_try;;
  26788. esac
  26789. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26790. (eval "$ac_link") 2>conftest.er1
  26791. ac_status=$?
  26792. grep -v '^ *+' conftest.er1 >conftest.err
  26793. rm -f conftest.er1
  26794. cat conftest.err >&5
  26795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26796. (exit $ac_status); } && {
  26797. test -z "$ac_c_werror_flag" ||
  26798. test ! -s conftest.err
  26799. } && test -s conftest$ac_exeext &&
  26800. $as_test_x conftest$ac_exeext; then
  26801. eval "$as_ac_var=yes"
  26802. else
  26803. echo "$as_me: failed program was:" >&5
  26804. sed 's/^/| /' conftest.$ac_ext >&5
  26805. eval "$as_ac_var=no"
  26806. fi
  26807. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26808. conftest$ac_exeext conftest.$ac_ext
  26809. fi
  26810. ac_res=`eval echo '${'$as_ac_var'}'`
  26811. { echo "$as_me:$LINENO: result: $ac_res" >&5
  26812. echo "${ECHO_T}$ac_res" >&6; }
  26813. if test `eval echo '${'$as_ac_var'}'` = yes; then
  26814. cat >>confdefs.h <<_ACEOF
  26815. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  26816. _ACEOF
  26817. fi
  26818. done
  26819. fi
  26820. for ac_func in RAND_status \
  26821. RAND_screen \
  26822. RAND_egd \
  26823. CRYPTO_cleanup_all_ex_data \
  26824. SSL_get_shutdown
  26825. do
  26826. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  26827. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  26828. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  26829. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  26830. echo $ECHO_N "(cached) $ECHO_C" >&6
  26831. else
  26832. cat >conftest.$ac_ext <<_ACEOF
  26833. /* confdefs.h. */
  26834. _ACEOF
  26835. cat confdefs.h >>conftest.$ac_ext
  26836. cat >>conftest.$ac_ext <<_ACEOF
  26837. /* end confdefs.h. */
  26838. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  26839. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  26840. #define $ac_func innocuous_$ac_func
  26841. /* System header to define __stub macros and hopefully few prototypes,
  26842. which can conflict with char $ac_func (); below.
  26843. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  26844. <limits.h> exists even on freestanding compilers. */
  26845. #ifdef __STDC__
  26846. # include <limits.h>
  26847. #else
  26848. # include <assert.h>
  26849. #endif
  26850. #undef $ac_func
  26851. /* Override any GCC internal prototype to avoid an error.
  26852. Use char because int might match the return type of a GCC
  26853. builtin and then its argument prototype would still apply. */
  26854. #ifdef __cplusplus
  26855. extern "C"
  26856. #endif
  26857. char $ac_func ();
  26858. /* The GNU C library defines this for functions which it implements
  26859. to always fail with ENOSYS. Some functions are actually named
  26860. something starting with __ and the normal name is an alias. */
  26861. #if defined __stub_$ac_func || defined __stub___$ac_func
  26862. choke me
  26863. #endif
  26864. int
  26865. main ()
  26866. {
  26867. return $ac_func ();
  26868. ;
  26869. return 0;
  26870. }
  26871. _ACEOF
  26872. rm -f conftest.$ac_objext conftest$ac_exeext
  26873. if { (ac_try="$ac_link"
  26874. case "(($ac_try" in
  26875. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26876. *) ac_try_echo=$ac_try;;
  26877. esac
  26878. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26879. (eval "$ac_link") 2>conftest.er1
  26880. ac_status=$?
  26881. grep -v '^ *+' conftest.er1 >conftest.err
  26882. rm -f conftest.er1
  26883. cat conftest.err >&5
  26884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26885. (exit $ac_status); } && {
  26886. test -z "$ac_c_werror_flag" ||
  26887. test ! -s conftest.err
  26888. } && test -s conftest$ac_exeext &&
  26889. $as_test_x conftest$ac_exeext; then
  26890. eval "$as_ac_var=yes"
  26891. else
  26892. echo "$as_me: failed program was:" >&5
  26893. sed 's/^/| /' conftest.$ac_ext >&5
  26894. eval "$as_ac_var=no"
  26895. fi
  26896. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26897. conftest$ac_exeext conftest.$ac_ext
  26898. fi
  26899. ac_res=`eval echo '${'$as_ac_var'}'`
  26900. { echo "$as_me:$LINENO: result: $ac_res" >&5
  26901. echo "${ECHO_T}$ac_res" >&6; }
  26902. if test `eval echo '${'$as_ac_var'}'` = yes; then
  26903. cat >>confdefs.h <<_ACEOF
  26904. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  26905. _ACEOF
  26906. fi
  26907. done
  26908. { echo "$as_me:$LINENO: checking for yaSSL using OpenSSL compatibility mode" >&5
  26909. echo $ECHO_N "checking for yaSSL using OpenSSL compatibility mode... $ECHO_C" >&6; }
  26910. cat >conftest.$ac_ext <<_ACEOF
  26911. /* confdefs.h. */
  26912. _ACEOF
  26913. cat confdefs.h >>conftest.$ac_ext
  26914. cat >>conftest.$ac_ext <<_ACEOF
  26915. /* end confdefs.h. */
  26916. #include <openssl/ssl.h>
  26917. int
  26918. main ()
  26919. {
  26920. #if defined(YASSL_VERSION) && defined(OPENSSL_VERSION_NUMBER)
  26921. int dummy = SSL_ERROR_NONE;
  26922. #else
  26923. Not the yaSSL OpenSSL compatibility header.
  26924. #endif
  26925. ;
  26926. return 0;
  26927. }
  26928. _ACEOF
  26929. rm -f conftest.$ac_objext
  26930. if { (ac_try="$ac_compile"
  26931. case "(($ac_try" in
  26932. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26933. *) ac_try_echo=$ac_try;;
  26934. esac
  26935. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26936. (eval "$ac_compile") 2>conftest.er1
  26937. ac_status=$?
  26938. grep -v '^ *+' conftest.er1 >conftest.err
  26939. rm -f conftest.er1
  26940. cat conftest.err >&5
  26941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26942. (exit $ac_status); } && {
  26943. test -z "$ac_c_werror_flag" ||
  26944. test ! -s conftest.err
  26945. } && test -s conftest.$ac_objext; then
  26946. { echo "$as_me:$LINENO: result: yes" >&5
  26947. echo "${ECHO_T}yes" >&6; }
  26948. cat >>confdefs.h <<_ACEOF
  26949. #define USE_YASSLEMUL 1
  26950. _ACEOF
  26951. curl_ssl_msg="enabled (OpenSSL emulation by yaSSL)"
  26952. else
  26953. echo "$as_me: failed program was:" >&5
  26954. sed 's/^/| /' conftest.$ac_ext >&5
  26955. { echo "$as_me:$LINENO: result: no" >&5
  26956. echo "${ECHO_T}no" >&6; }
  26957. fi
  26958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26959. fi
  26960. if test "$OPENSSL_ENABLED" = "1"; then
  26961. if test -n "$LIB_OPENSSL"; then
  26962. LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL"
  26963. export LD_LIBRARY_PATH
  26964. { echo "$as_me:$LINENO: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&5
  26965. echo "$as_me: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&6;}
  26966. fi
  26967. fi
  26968. fi
  26969. _cppflags=$CPPFLAGS
  26970. _ldflags=$LDFLAGS
  26971. # Check whether --with-zlib was given.
  26972. if test "${with_zlib+set}" = set; then
  26973. withval=$with_zlib; OPT_ZLIB="$withval"
  26974. fi
  26975. if test "$OPT_ZLIB" = "no" ; then
  26976. { echo "$as_me:$LINENO: WARNING: zlib disabled" >&5
  26977. echo "$as_me: WARNING: zlib disabled" >&2;}
  26978. else
  26979. if test "$OPT_ZLIB" = "yes" ; then
  26980. OPT_ZLIB=""
  26981. fi
  26982. if test -z "$OPT_ZLIB" ; then
  26983. { echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
  26984. echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6; }
  26985. if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
  26986. echo $ECHO_N "(cached) $ECHO_C" >&6
  26987. else
  26988. ac_check_lib_save_LIBS=$LIBS
  26989. LIBS="-lz $LIBS"
  26990. cat >conftest.$ac_ext <<_ACEOF
  26991. /* confdefs.h. */
  26992. _ACEOF
  26993. cat confdefs.h >>conftest.$ac_ext
  26994. cat >>conftest.$ac_ext <<_ACEOF
  26995. /* end confdefs.h. */
  26996. /* Override any GCC internal prototype to avoid an error.
  26997. Use char because int might match the return type of a GCC
  26998. builtin and then its argument prototype would still apply. */
  26999. #ifdef __cplusplus
  27000. extern "C"
  27001. #endif
  27002. char inflateEnd ();
  27003. int
  27004. main ()
  27005. {
  27006. return inflateEnd ();
  27007. ;
  27008. return 0;
  27009. }
  27010. _ACEOF
  27011. rm -f conftest.$ac_objext conftest$ac_exeext
  27012. if { (ac_try="$ac_link"
  27013. case "(($ac_try" in
  27014. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27015. *) ac_try_echo=$ac_try;;
  27016. esac
  27017. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27018. (eval "$ac_link") 2>conftest.er1
  27019. ac_status=$?
  27020. grep -v '^ *+' conftest.er1 >conftest.err
  27021. rm -f conftest.er1
  27022. cat conftest.err >&5
  27023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27024. (exit $ac_status); } && {
  27025. test -z "$ac_c_werror_flag" ||
  27026. test ! -s conftest.err
  27027. } && test -s conftest$ac_exeext &&
  27028. $as_test_x conftest$ac_exeext; then
  27029. ac_cv_lib_z_inflateEnd=yes
  27030. else
  27031. echo "$as_me: failed program was:" >&5
  27032. sed 's/^/| /' conftest.$ac_ext >&5
  27033. ac_cv_lib_z_inflateEnd=no
  27034. fi
  27035. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27036. conftest$ac_exeext conftest.$ac_ext
  27037. LIBS=$ac_check_lib_save_LIBS
  27038. fi
  27039. { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
  27040. echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6; }
  27041. if test $ac_cv_lib_z_inflateEnd = yes; then
  27042. HAVE_LIBZ="1"
  27043. else
  27044. OPT_ZLIB="/usr/local"
  27045. fi
  27046. fi
  27047. if test -n "$OPT_ZLIB"; then
  27048. CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
  27049. LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
  27050. fi
  27051. if test "${ac_cv_header_zlib_h+set}" = set; then
  27052. { echo "$as_me:$LINENO: checking for zlib.h" >&5
  27053. echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
  27054. if test "${ac_cv_header_zlib_h+set}" = set; then
  27055. echo $ECHO_N "(cached) $ECHO_C" >&6
  27056. fi
  27057. { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
  27058. echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
  27059. else
  27060. # Is the header compilable?
  27061. { echo "$as_me:$LINENO: checking zlib.h usability" >&5
  27062. echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
  27063. cat >conftest.$ac_ext <<_ACEOF
  27064. /* confdefs.h. */
  27065. _ACEOF
  27066. cat confdefs.h >>conftest.$ac_ext
  27067. cat >>conftest.$ac_ext <<_ACEOF
  27068. /* end confdefs.h. */
  27069. $ac_includes_default
  27070. #include <zlib.h>
  27071. _ACEOF
  27072. rm -f conftest.$ac_objext
  27073. if { (ac_try="$ac_compile"
  27074. case "(($ac_try" in
  27075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27076. *) ac_try_echo=$ac_try;;
  27077. esac
  27078. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27079. (eval "$ac_compile") 2>conftest.er1
  27080. ac_status=$?
  27081. grep -v '^ *+' conftest.er1 >conftest.err
  27082. rm -f conftest.er1
  27083. cat conftest.err >&5
  27084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27085. (exit $ac_status); } && {
  27086. test -z "$ac_c_werror_flag" ||
  27087. test ! -s conftest.err
  27088. } && test -s conftest.$ac_objext; then
  27089. ac_header_compiler=yes
  27090. else
  27091. echo "$as_me: failed program was:" >&5
  27092. sed 's/^/| /' conftest.$ac_ext >&5
  27093. ac_header_compiler=no
  27094. fi
  27095. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27096. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  27097. echo "${ECHO_T}$ac_header_compiler" >&6; }
  27098. # Is the header present?
  27099. { echo "$as_me:$LINENO: checking zlib.h presence" >&5
  27100. echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
  27101. cat >conftest.$ac_ext <<_ACEOF
  27102. /* confdefs.h. */
  27103. _ACEOF
  27104. cat confdefs.h >>conftest.$ac_ext
  27105. cat >>conftest.$ac_ext <<_ACEOF
  27106. /* end confdefs.h. */
  27107. #include <zlib.h>
  27108. _ACEOF
  27109. if { (ac_try="$ac_cpp conftest.$ac_ext"
  27110. case "(($ac_try" in
  27111. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27112. *) ac_try_echo=$ac_try;;
  27113. esac
  27114. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27115. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  27116. ac_status=$?
  27117. grep -v '^ *+' conftest.er1 >conftest.err
  27118. rm -f conftest.er1
  27119. cat conftest.err >&5
  27120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27121. (exit $ac_status); } >/dev/null && {
  27122. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  27123. test ! -s conftest.err
  27124. }; then
  27125. ac_header_preproc=yes
  27126. else
  27127. echo "$as_me: failed program was:" >&5
  27128. sed 's/^/| /' conftest.$ac_ext >&5
  27129. ac_header_preproc=no
  27130. fi
  27131. rm -f conftest.err conftest.$ac_ext
  27132. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  27133. echo "${ECHO_T}$ac_header_preproc" >&6; }
  27134. # So? What about this header?
  27135. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  27136. yes:no: )
  27137. { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  27138. echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  27139. { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
  27140. echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
  27141. ac_header_preproc=yes
  27142. ;;
  27143. no:yes:* )
  27144. { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
  27145. echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
  27146. { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
  27147. echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
  27148. { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
  27149. echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
  27150. { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
  27151. echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
  27152. { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
  27153. echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
  27154. { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
  27155. echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
  27156. ( cat <<\_ASBOX
  27157. ## ------------------------------------------------------------------------ ##
  27158. ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
  27159. ## ------------------------------------------------------------------------ ##
  27160. _ASBOX
  27161. ) | sed "s/^/$as_me: WARNING: /" >&2
  27162. ;;
  27163. esac
  27164. { echo "$as_me:$LINENO: checking for zlib.h" >&5
  27165. echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
  27166. if test "${ac_cv_header_zlib_h+set}" = set; then
  27167. echo $ECHO_N "(cached) $ECHO_C" >&6
  27168. else
  27169. ac_cv_header_zlib_h=$ac_header_preproc
  27170. fi
  27171. { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
  27172. echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
  27173. fi
  27174. if test $ac_cv_header_zlib_h = yes; then
  27175. HAVE_ZLIB_H="1"
  27176. if test "$HAVE_LIBZ" != "1"; then
  27177. { echo "$as_me:$LINENO: checking for gzread in -lz" >&5
  27178. echo $ECHO_N "checking for gzread in -lz... $ECHO_C" >&6; }
  27179. if test "${ac_cv_lib_z_gzread+set}" = set; then
  27180. echo $ECHO_N "(cached) $ECHO_C" >&6
  27181. else
  27182. ac_check_lib_save_LIBS=$LIBS
  27183. LIBS="-lz $LIBS"
  27184. cat >conftest.$ac_ext <<_ACEOF
  27185. /* confdefs.h. */
  27186. _ACEOF
  27187. cat confdefs.h >>conftest.$ac_ext
  27188. cat >>conftest.$ac_ext <<_ACEOF
  27189. /* end confdefs.h. */
  27190. /* Override any GCC internal prototype to avoid an error.
  27191. Use char because int might match the return type of a GCC
  27192. builtin and then its argument prototype would still apply. */
  27193. #ifdef __cplusplus
  27194. extern "C"
  27195. #endif
  27196. char gzread ();
  27197. int
  27198. main ()
  27199. {
  27200. return gzread ();
  27201. ;
  27202. return 0;
  27203. }
  27204. _ACEOF
  27205. rm -f conftest.$ac_objext conftest$ac_exeext
  27206. if { (ac_try="$ac_link"
  27207. case "(($ac_try" in
  27208. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27209. *) ac_try_echo=$ac_try;;
  27210. esac
  27211. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27212. (eval "$ac_link") 2>conftest.er1
  27213. ac_status=$?
  27214. grep -v '^ *+' conftest.er1 >conftest.err
  27215. rm -f conftest.er1
  27216. cat conftest.err >&5
  27217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27218. (exit $ac_status); } && {
  27219. test -z "$ac_c_werror_flag" ||
  27220. test ! -s conftest.err
  27221. } && test -s conftest$ac_exeext &&
  27222. $as_test_x conftest$ac_exeext; then
  27223. ac_cv_lib_z_gzread=yes
  27224. else
  27225. echo "$as_me: failed program was:" >&5
  27226. sed 's/^/| /' conftest.$ac_ext >&5
  27227. ac_cv_lib_z_gzread=no
  27228. fi
  27229. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27230. conftest$ac_exeext conftest.$ac_ext
  27231. LIBS=$ac_check_lib_save_LIBS
  27232. fi
  27233. { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzread" >&5
  27234. echo "${ECHO_T}$ac_cv_lib_z_gzread" >&6; }
  27235. if test $ac_cv_lib_z_gzread = yes; then
  27236. HAVE_LIBZ="1"
  27237. else
  27238. CPPFLAGS=$_cppflags
  27239. LDFLAGS=$_ldflags
  27240. fi
  27241. fi
  27242. else
  27243. CPPFLAGS=$_cppflags
  27244. LDFLAGS=$_ldflags
  27245. fi
  27246. if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
  27247. then
  27248. { echo "$as_me:$LINENO: WARNING: configure found only the libz lib, not the header file!" >&5
  27249. echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
  27250. HAVE_LIBZ=""
  27251. elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
  27252. then
  27253. { echo "$as_me:$LINENO: WARNING: configure found only the libz header file, not the lib!" >&5
  27254. echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
  27255. elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
  27256. then
  27257. cat >>confdefs.h <<\_ACEOF
  27258. #define HAVE_ZLIB_H 1
  27259. _ACEOF
  27260. cat >>confdefs.h <<\_ACEOF
  27261. #define HAVE_LIBZ 1
  27262. _ACEOF
  27263. CURL_LIBS="$CURL_LIBS -lz"
  27264. LIBS="$LIBS -lz"
  27265. AMFIXLIB="1"
  27266. { echo "$as_me:$LINENO: found both libz and libz.h header" >&5
  27267. echo "$as_me: found both libz and libz.h header" >&6;}
  27268. curl_zlib_msg="enabled"
  27269. fi
  27270. fi
  27271. if test x"$AMFIXLIB" = x1; then
  27272. HAVE_LIBZ_TRUE=
  27273. HAVE_LIBZ_FALSE='#'
  27274. else
  27275. HAVE_LIBZ_TRUE='#'
  27276. HAVE_LIBZ_FALSE=
  27277. fi
  27278. OPT_LIBSSH2=off
  27279. # Check whether --with-libssh2 was given.
  27280. if test "${with_libssh2+set}" = set; then
  27281. withval=$with_libssh2; OPT_LIBSSH2=$withval
  27282. fi
  27283. if test X"$OPT_LIBSSH2" != Xno; then
  27284. CLEANLDFLAGS="$LDFLAGS"
  27285. CLEANCPPFLAGS="$CPPFLAGS"
  27286. CLEANLIBS="$LIBS"
  27287. case "$OPT_LIBSSH2" in
  27288. yes)
  27289. PREFIX_LIBSSH2=/usr/local/lib
  27290. LIB_LIBSSH2="$PREFIX_LIBSSH2$libsuff"
  27291. ;;
  27292. off)
  27293. PREFIX_LIBSSH2=
  27294. ;;
  27295. *)
  27296. PREFIX_LIBSSH2=$OPT_LIBSSH2
  27297. LIB_LIBSSH2="$PREFIX_LIBSSH2/lib$libsuff"
  27298. LDFLAGS="$LDFLAGS -L$LIB_LIBSSH2"
  27299. CPPFLAGS="$CPPFLAGS -I$PREFIX_LIBSSH2/include"
  27300. ;;
  27301. esac
  27302. { echo "$as_me:$LINENO: checking for libssh2_channel_open_ex in -lssh2" >&5
  27303. echo $ECHO_N "checking for libssh2_channel_open_ex in -lssh2... $ECHO_C" >&6; }
  27304. if test "${ac_cv_lib_ssh2_libssh2_channel_open_ex+set}" = set; then
  27305. echo $ECHO_N "(cached) $ECHO_C" >&6
  27306. else
  27307. ac_check_lib_save_LIBS=$LIBS
  27308. LIBS="-lssh2 $LIBS"
  27309. cat >conftest.$ac_ext <<_ACEOF
  27310. /* confdefs.h. */
  27311. _ACEOF
  27312. cat confdefs.h >>conftest.$ac_ext
  27313. cat >>conftest.$ac_ext <<_ACEOF
  27314. /* end confdefs.h. */
  27315. /* Override any GCC internal prototype to avoid an error.
  27316. Use char because int might match the return type of a GCC
  27317. builtin and then its argument prototype would still apply. */
  27318. #ifdef __cplusplus
  27319. extern "C"
  27320. #endif
  27321. char libssh2_channel_open_ex ();
  27322. int
  27323. main ()
  27324. {
  27325. return libssh2_channel_open_ex ();
  27326. ;
  27327. return 0;
  27328. }
  27329. _ACEOF
  27330. rm -f conftest.$ac_objext conftest$ac_exeext
  27331. if { (ac_try="$ac_link"
  27332. case "(($ac_try" in
  27333. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27334. *) ac_try_echo=$ac_try;;
  27335. esac
  27336. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27337. (eval "$ac_link") 2>conftest.er1
  27338. ac_status=$?
  27339. grep -v '^ *+' conftest.er1 >conftest.err
  27340. rm -f conftest.er1
  27341. cat conftest.err >&5
  27342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27343. (exit $ac_status); } && {
  27344. test -z "$ac_c_werror_flag" ||
  27345. test ! -s conftest.err
  27346. } && test -s conftest$ac_exeext &&
  27347. $as_test_x conftest$ac_exeext; then
  27348. ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
  27349. else
  27350. echo "$as_me: failed program was:" >&5
  27351. sed 's/^/| /' conftest.$ac_ext >&5
  27352. ac_cv_lib_ssh2_libssh2_channel_open_ex=no
  27353. fi
  27354. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27355. conftest$ac_exeext conftest.$ac_ext
  27356. LIBS=$ac_check_lib_save_LIBS
  27357. fi
  27358. { echo "$as_me:$LINENO: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
  27359. echo "${ECHO_T}$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
  27360. if test $ac_cv_lib_ssh2_libssh2_channel_open_ex = yes; then
  27361. cat >>confdefs.h <<_ACEOF
  27362. #define HAVE_LIBSSH2 1
  27363. _ACEOF
  27364. LIBS="-lssh2 $LIBS"
  27365. fi
  27366. for ac_header in libssh2.h
  27367. do
  27368. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  27369. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  27370. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  27371. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  27372. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  27373. echo $ECHO_N "(cached) $ECHO_C" >&6
  27374. fi
  27375. ac_res=`eval echo '${'$as_ac_Header'}'`
  27376. { echo "$as_me:$LINENO: result: $ac_res" >&5
  27377. echo "${ECHO_T}$ac_res" >&6; }
  27378. else
  27379. # Is the header compilable?
  27380. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  27381. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  27382. cat >conftest.$ac_ext <<_ACEOF
  27383. /* confdefs.h. */
  27384. _ACEOF
  27385. cat confdefs.h >>conftest.$ac_ext
  27386. cat >>conftest.$ac_ext <<_ACEOF
  27387. /* end confdefs.h. */
  27388. $ac_includes_default
  27389. #include <$ac_header>
  27390. _ACEOF
  27391. rm -f conftest.$ac_objext
  27392. if { (ac_try="$ac_compile"
  27393. case "(($ac_try" in
  27394. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27395. *) ac_try_echo=$ac_try;;
  27396. esac
  27397. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27398. (eval "$ac_compile") 2>conftest.er1
  27399. ac_status=$?
  27400. grep -v '^ *+' conftest.er1 >conftest.err
  27401. rm -f conftest.er1
  27402. cat conftest.err >&5
  27403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27404. (exit $ac_status); } && {
  27405. test -z "$ac_c_werror_flag" ||
  27406. test ! -s conftest.err
  27407. } && test -s conftest.$ac_objext; then
  27408. ac_header_compiler=yes
  27409. else
  27410. echo "$as_me: failed program was:" >&5
  27411. sed 's/^/| /' conftest.$ac_ext >&5
  27412. ac_header_compiler=no
  27413. fi
  27414. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27415. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  27416. echo "${ECHO_T}$ac_header_compiler" >&6; }
  27417. # Is the header present?
  27418. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  27419. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  27420. cat >conftest.$ac_ext <<_ACEOF
  27421. /* confdefs.h. */
  27422. _ACEOF
  27423. cat confdefs.h >>conftest.$ac_ext
  27424. cat >>conftest.$ac_ext <<_ACEOF
  27425. /* end confdefs.h. */
  27426. #include <$ac_header>
  27427. _ACEOF
  27428. if { (ac_try="$ac_cpp conftest.$ac_ext"
  27429. case "(($ac_try" in
  27430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27431. *) ac_try_echo=$ac_try;;
  27432. esac
  27433. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27434. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  27435. ac_status=$?
  27436. grep -v '^ *+' conftest.er1 >conftest.err
  27437. rm -f conftest.er1
  27438. cat conftest.err >&5
  27439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27440. (exit $ac_status); } >/dev/null && {
  27441. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  27442. test ! -s conftest.err
  27443. }; then
  27444. ac_header_preproc=yes
  27445. else
  27446. echo "$as_me: failed program was:" >&5
  27447. sed 's/^/| /' conftest.$ac_ext >&5
  27448. ac_header_preproc=no
  27449. fi
  27450. rm -f conftest.err conftest.$ac_ext
  27451. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  27452. echo "${ECHO_T}$ac_header_preproc" >&6; }
  27453. # So? What about this header?
  27454. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  27455. yes:no: )
  27456. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  27457. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  27458. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  27459. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  27460. ac_header_preproc=yes
  27461. ;;
  27462. no:yes:* )
  27463. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  27464. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  27465. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  27466. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  27467. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  27468. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  27469. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  27470. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  27471. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  27472. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  27473. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  27474. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  27475. ( cat <<\_ASBOX
  27476. ## ------------------------------------------------------------------------ ##
  27477. ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
  27478. ## ------------------------------------------------------------------------ ##
  27479. _ASBOX
  27480. ) | sed "s/^/$as_me: WARNING: /" >&2
  27481. ;;
  27482. esac
  27483. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  27484. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  27485. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  27486. echo $ECHO_N "(cached) $ECHO_C" >&6
  27487. else
  27488. eval "$as_ac_Header=\$ac_header_preproc"
  27489. fi
  27490. ac_res=`eval echo '${'$as_ac_Header'}'`
  27491. { echo "$as_me:$LINENO: result: $ac_res" >&5
  27492. echo "${ECHO_T}$ac_res" >&6; }
  27493. fi
  27494. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  27495. cat >>confdefs.h <<_ACEOF
  27496. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  27497. _ACEOF
  27498. curl_ssh_msg="enabled (libSSH2)"
  27499. LIBSSH2_ENABLED=1
  27500. cat >>confdefs.h <<\_ACEOF
  27501. #define USE_LIBSSH2 1
  27502. _ACEOF
  27503. USE_LIBSSH2=1
  27504. fi
  27505. done
  27506. if test X"$OPT_LIBSSH2" != Xoff &&
  27507. test "$LIBSSH2_ENABLED" != "1"; then
  27508. { { echo "$as_me:$LINENO: error: libSSH2 libs and/or directories were not found where specified!" >&5
  27509. echo "$as_me: error: libSSH2 libs and/or directories were not found where specified!" >&2;}
  27510. { (exit 1); exit 1; }; }
  27511. fi
  27512. if test "$LIBSSH2_ENABLED" = "1"; then
  27513. if test -n "$LIB_LIBSSH2"; then
  27514. LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_LIBSSH2"
  27515. export LD_LIBRARY_PATH
  27516. { echo "$as_me:$LINENO: Added $LIB_LIBSSH2 to LD_LIBRARY_PATH" >&5
  27517. echo "$as_me: Added $LIB_LIBSSH2 to LD_LIBRARY_PATH" >&6;}
  27518. fi
  27519. fi
  27520. fi
  27521. if test X"$OPENSSL_ENABLED" = X"1"; then
  27522. # Check whether --with-egd-socket was given.
  27523. if test "${with_egd_socket+set}" = set; then
  27524. withval=$with_egd_socket; EGD_SOCKET="$withval"
  27525. fi
  27526. if test -n "$EGD_SOCKET" ; then
  27527. cat >>confdefs.h <<_ACEOF
  27528. #define EGD_SOCKET "$EGD_SOCKET"
  27529. _ACEOF
  27530. fi
  27531. # Check whether --with-random was given.
  27532. if test "${with_random+set}" = set; then
  27533. withval=$with_random; RANDOM_FILE="$withval"
  27534. else
  27535. { echo "$as_me:$LINENO: checking for \"/dev/urandom\"" >&5
  27536. echo $ECHO_N "checking for \"/dev/urandom\"... $ECHO_C" >&6; }
  27537. if test "${ac_cv_file___dev_urandom_+set}" = set; then
  27538. echo $ECHO_N "(cached) $ECHO_C" >&6
  27539. else
  27540. test "$cross_compiling" = yes &&
  27541. { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  27542. echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  27543. { (exit 1); exit 1; }; }
  27544. if test -r ""/dev/urandom""; then
  27545. ac_cv_file___dev_urandom_=yes
  27546. else
  27547. ac_cv_file___dev_urandom_=no
  27548. fi
  27549. fi
  27550. { echo "$as_me:$LINENO: result: $ac_cv_file___dev_urandom_" >&5
  27551. echo "${ECHO_T}$ac_cv_file___dev_urandom_" >&6; }
  27552. if test $ac_cv_file___dev_urandom_ = yes; then
  27553. RANDOM_FILE="/dev/urandom"
  27554. fi
  27555. fi
  27556. if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
  27557. cat >>confdefs.h <<_ACEOF
  27558. #define RANDOM_FILE "$RANDOM_FILE"
  27559. _ACEOF
  27560. fi
  27561. fi
  27562. OPT_GNUTLS=no
  27563. # Check whether --with-gnutls was given.
  27564. if test "${with_gnutls+set}" = set; then
  27565. withval=$with_gnutls; OPT_GNUTLS=$withval
  27566. fi
  27567. if test "$OPENSSL_ENABLED" != "1"; then
  27568. if test X"$OPT_GNUTLS" != Xno; then
  27569. if test "x$OPT_GNUTLS" = "xyes"; then
  27570. check=`libgnutls-config --version 2>/dev/null`
  27571. if test -n "$check"; then
  27572. addlib=`libgnutls-config --libs`
  27573. addcflags=`libgnutls-config --cflags`
  27574. version=`libgnutls-config --version`
  27575. gtlsprefix=`libgnutls-config --prefix`
  27576. fi
  27577. else
  27578. addlib=`$OPT_GNUTLS/bin/libgnutls-config --libs`
  27579. addcflags=`$OPT_GNUTLS/bin/libgnutls-config --cflags`
  27580. version=`$OPT_GNUTLS/bin/libgnutls-config --version 2>/dev/null`
  27581. gtlsprefix=$OPT_GNUTLS
  27582. if test -z "$version"; then
  27583. version="unknown"
  27584. fi
  27585. fi
  27586. if test -n "$addlib"; then
  27587. CLEANLIBS="$LIBS"
  27588. CLEANCPPFLAGS="$CPPFLAGS"
  27589. LIBS="$LIBS $addlib"
  27590. if test "$addcflags" != "-I/usr/include"; then
  27591. CPPFLAGS="$CPPFLAGS $addcflags"
  27592. fi
  27593. { echo "$as_me:$LINENO: checking for gnutls_check_version in -lgnutls" >&5
  27594. echo $ECHO_N "checking for gnutls_check_version in -lgnutls... $ECHO_C" >&6; }
  27595. if test "${ac_cv_lib_gnutls_gnutls_check_version+set}" = set; then
  27596. echo $ECHO_N "(cached) $ECHO_C" >&6
  27597. else
  27598. ac_check_lib_save_LIBS=$LIBS
  27599. LIBS="-lgnutls $LIBS"
  27600. cat >conftest.$ac_ext <<_ACEOF
  27601. /* confdefs.h. */
  27602. _ACEOF
  27603. cat confdefs.h >>conftest.$ac_ext
  27604. cat >>conftest.$ac_ext <<_ACEOF
  27605. /* end confdefs.h. */
  27606. /* Override any GCC internal prototype to avoid an error.
  27607. Use char because int might match the return type of a GCC
  27608. builtin and then its argument prototype would still apply. */
  27609. #ifdef __cplusplus
  27610. extern "C"
  27611. #endif
  27612. char gnutls_check_version ();
  27613. int
  27614. main ()
  27615. {
  27616. return gnutls_check_version ();
  27617. ;
  27618. return 0;
  27619. }
  27620. _ACEOF
  27621. rm -f conftest.$ac_objext conftest$ac_exeext
  27622. if { (ac_try="$ac_link"
  27623. case "(($ac_try" in
  27624. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27625. *) ac_try_echo=$ac_try;;
  27626. esac
  27627. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27628. (eval "$ac_link") 2>conftest.er1
  27629. ac_status=$?
  27630. grep -v '^ *+' conftest.er1 >conftest.err
  27631. rm -f conftest.er1
  27632. cat conftest.err >&5
  27633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27634. (exit $ac_status); } && {
  27635. test -z "$ac_c_werror_flag" ||
  27636. test ! -s conftest.err
  27637. } && test -s conftest$ac_exeext &&
  27638. $as_test_x conftest$ac_exeext; then
  27639. ac_cv_lib_gnutls_gnutls_check_version=yes
  27640. else
  27641. echo "$as_me: failed program was:" >&5
  27642. sed 's/^/| /' conftest.$ac_ext >&5
  27643. ac_cv_lib_gnutls_gnutls_check_version=no
  27644. fi
  27645. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27646. conftest$ac_exeext conftest.$ac_ext
  27647. LIBS=$ac_check_lib_save_LIBS
  27648. fi
  27649. { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
  27650. echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
  27651. if test $ac_cv_lib_gnutls_gnutls_check_version = yes; then
  27652. cat >>confdefs.h <<\_ACEOF
  27653. #define USE_GNUTLS 1
  27654. _ACEOF
  27655. USE_GNUTLS=1
  27656. GNUTLS_ENABLED=1
  27657. USE_GNUTLS="yes"
  27658. curl_ssl_msg="enabled (GnuTLS)"
  27659. else
  27660. LIBS="$CLEANLIBS"
  27661. CPPFLAGS="$CLEANCPPFLAGS"
  27662. fi
  27663. if test "x$USE_GNUTLS" = "xyes"; then
  27664. { echo "$as_me:$LINENO: detected GnuTLS version $version" >&5
  27665. echo "$as_me: detected GnuTLS version $version" >&6;}
  27666. LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gtlsprefix/lib$libsuff"
  27667. export LD_LIBRARY_PATH
  27668. { echo "$as_me:$LINENO: Added $gtlsprefix/lib$libsuff to LD_LIBRARY_PATH" >&5
  27669. echo "$as_me: Added $gtlsprefix/lib$libsuff to LD_LIBRARY_PATH" >&6;}
  27670. fi
  27671. fi
  27672. fi
  27673. fi
  27674. OPT_NSS=no
  27675. # Check whether --with-nss was given.
  27676. if test "${with_nss+set}" = set; then
  27677. withval=$with_nss; OPT_NSS=$withval
  27678. fi
  27679. if test "$OPENSSL_ENABLED" != "1" -a "$GNUTLS_ENABLED" != "1"; then
  27680. if test X"$OPT_NSS" != Xno; then
  27681. if test "x$OPT_NSS" = "xyes"; then
  27682. check=`pkg-config --version 2>/dev/null`
  27683. if test -n "$check"; then
  27684. addlib=`pkg-config --libs nss`
  27685. addcflags=`pkg-config --cflags nss`
  27686. version=`pkg-config --modversion nss`
  27687. nssprefix=`pkg-config --variable=prefix nss`
  27688. fi
  27689. else
  27690. # Without pkg-config, we'll kludge in some defaults
  27691. addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl"
  27692. addcflags="-I$OPT_NSS/include"
  27693. version="unknown"
  27694. gtlsprefix=$OPT_GNUTLS
  27695. fi
  27696. { echo "$as_me:$LINENO: checking for PK11_CreateGenericObject in -lnss3" >&5
  27697. echo $ECHO_N "checking for PK11_CreateGenericObject in -lnss3... $ECHO_C" >&6; }
  27698. if test "${ac_cv_lib_nss3_PK11_CreateGenericObject+set}" = set; then
  27699. echo $ECHO_N "(cached) $ECHO_C" >&6
  27700. else
  27701. ac_check_lib_save_LIBS=$LIBS
  27702. LIBS="-lnss3 $LIBS"
  27703. cat >conftest.$ac_ext <<_ACEOF
  27704. /* confdefs.h. */
  27705. _ACEOF
  27706. cat confdefs.h >>conftest.$ac_ext
  27707. cat >>conftest.$ac_ext <<_ACEOF
  27708. /* end confdefs.h. */
  27709. /* Override any GCC internal prototype to avoid an error.
  27710. Use char because int might match the return type of a GCC
  27711. builtin and then its argument prototype would still apply. */
  27712. #ifdef __cplusplus
  27713. extern "C"
  27714. #endif
  27715. char PK11_CreateGenericObject ();
  27716. int
  27717. main ()
  27718. {
  27719. return PK11_CreateGenericObject ();
  27720. ;
  27721. return 0;
  27722. }
  27723. _ACEOF
  27724. rm -f conftest.$ac_objext conftest$ac_exeext
  27725. if { (ac_try="$ac_link"
  27726. case "(($ac_try" in
  27727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27728. *) ac_try_echo=$ac_try;;
  27729. esac
  27730. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27731. (eval "$ac_link") 2>conftest.er1
  27732. ac_status=$?
  27733. grep -v '^ *+' conftest.er1 >conftest.err
  27734. rm -f conftest.er1
  27735. cat conftest.err >&5
  27736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27737. (exit $ac_status); } && {
  27738. test -z "$ac_c_werror_flag" ||
  27739. test ! -s conftest.err
  27740. } && test -s conftest$ac_exeext &&
  27741. $as_test_x conftest$ac_exeext; then
  27742. ac_cv_lib_nss3_PK11_CreateGenericObject=yes
  27743. else
  27744. echo "$as_me: failed program was:" >&5
  27745. sed 's/^/| /' conftest.$ac_ext >&5
  27746. ac_cv_lib_nss3_PK11_CreateGenericObject=no
  27747. fi
  27748. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27749. conftest$ac_exeext conftest.$ac_ext
  27750. LIBS=$ac_check_lib_save_LIBS
  27751. fi
  27752. { echo "$as_me:$LINENO: result: $ac_cv_lib_nss3_PK11_CreateGenericObject" >&5
  27753. echo "${ECHO_T}$ac_cv_lib_nss3_PK11_CreateGenericObject" >&6; }
  27754. if test $ac_cv_lib_nss3_PK11_CreateGenericObject = yes; then
  27755. cat >>confdefs.h <<\_ACEOF
  27756. #define HAVE_PK11_CREATEGENERICOBJECT 1
  27757. _ACEOF
  27758. HAVE_PK11_CREATEGENERICOBJECT=1
  27759. fi
  27760. if test -n "$addlib"; then
  27761. CLEANLIBS="$LIBS"
  27762. CLEANCPPFLAGS="$CPPFLAGS"
  27763. LIBS="$LIBS $addlib"
  27764. if test "$addcflags" != "-I/usr/include"; then
  27765. CPPFLAGS="$CPPFLAGS $addcflags"
  27766. fi
  27767. { echo "$as_me:$LINENO: checking for NSS_Initialize in -lnss3" >&5
  27768. echo $ECHO_N "checking for NSS_Initialize in -lnss3... $ECHO_C" >&6; }
  27769. if test "${ac_cv_lib_nss3_NSS_Initialize+set}" = set; then
  27770. echo $ECHO_N "(cached) $ECHO_C" >&6
  27771. else
  27772. ac_check_lib_save_LIBS=$LIBS
  27773. LIBS="-lnss3 $LIBS"
  27774. cat >conftest.$ac_ext <<_ACEOF
  27775. /* confdefs.h. */
  27776. _ACEOF
  27777. cat confdefs.h >>conftest.$ac_ext
  27778. cat >>conftest.$ac_ext <<_ACEOF
  27779. /* end confdefs.h. */
  27780. /* Override any GCC internal prototype to avoid an error.
  27781. Use char because int might match the return type of a GCC
  27782. builtin and then its argument prototype would still apply. */
  27783. #ifdef __cplusplus
  27784. extern "C"
  27785. #endif
  27786. char NSS_Initialize ();
  27787. int
  27788. main ()
  27789. {
  27790. return NSS_Initialize ();
  27791. ;
  27792. return 0;
  27793. }
  27794. _ACEOF
  27795. rm -f conftest.$ac_objext conftest$ac_exeext
  27796. if { (ac_try="$ac_link"
  27797. case "(($ac_try" in
  27798. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27799. *) ac_try_echo=$ac_try;;
  27800. esac
  27801. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27802. (eval "$ac_link") 2>conftest.er1
  27803. ac_status=$?
  27804. grep -v '^ *+' conftest.er1 >conftest.err
  27805. rm -f conftest.er1
  27806. cat conftest.err >&5
  27807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27808. (exit $ac_status); } && {
  27809. test -z "$ac_c_werror_flag" ||
  27810. test ! -s conftest.err
  27811. } && test -s conftest$ac_exeext &&
  27812. $as_test_x conftest$ac_exeext; then
  27813. ac_cv_lib_nss3_NSS_Initialize=yes
  27814. else
  27815. echo "$as_me: failed program was:" >&5
  27816. sed 's/^/| /' conftest.$ac_ext >&5
  27817. ac_cv_lib_nss3_NSS_Initialize=no
  27818. fi
  27819. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27820. conftest$ac_exeext conftest.$ac_ext
  27821. LIBS=$ac_check_lib_save_LIBS
  27822. fi
  27823. { echo "$as_me:$LINENO: result: $ac_cv_lib_nss3_NSS_Initialize" >&5
  27824. echo "${ECHO_T}$ac_cv_lib_nss3_NSS_Initialize" >&6; }
  27825. if test $ac_cv_lib_nss3_NSS_Initialize = yes; then
  27826. cat >>confdefs.h <<\_ACEOF
  27827. #define USE_NSS 1
  27828. _ACEOF
  27829. USE_NSS=1
  27830. USE_NSS="yes"
  27831. NSS_ENABLED=1
  27832. curl_ssl_msg="enabled (NSS)"
  27833. else
  27834. LIBS="$CLEANLIBS"
  27835. CPPFLAGS="$CLEANCPPFLAGS"
  27836. fi
  27837. if test "x$USE_NSS" = "xyes"; then
  27838. { echo "$as_me:$LINENO: detected NSS version $version" >&5
  27839. echo "$as_me: detected NSS version $version" >&6;}
  27840. LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$nssprefix/lib$libsuff"
  27841. export LD_LIBRARY_PATH
  27842. { echo "$as_me:$LINENO: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&5
  27843. echo "$as_me: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&6;}
  27844. fi
  27845. fi
  27846. fi
  27847. fi
  27848. if test "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED" = "x"; then
  27849. { echo "$as_me:$LINENO: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
  27850. echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
  27851. { echo "$as_me:$LINENO: WARNING: Use --with-ssl, --with-gnutls or --with-nss to address this." >&5
  27852. echo "$as_me: WARNING: Use --with-ssl, --with-gnutls or --with-nss to address this." >&2;}
  27853. else
  27854. # SSL is enabled, genericly
  27855. SSL_ENABLED="1"
  27856. fi
  27857. { echo "$as_me:$LINENO: checking default CA cert bundle/path" >&5
  27858. echo $ECHO_N "checking default CA cert bundle/path... $ECHO_C" >&6; }
  27859. # Check whether --with-ca-bundle was given.
  27860. if test "${with_ca_bundle+set}" = set; then
  27861. withval=$with_ca_bundle;
  27862. want_ca="$withval"
  27863. if test "x$want_ca" = "xyes"; then
  27864. { { echo "$as_me:$LINENO: error: --with-ca-bundle=FILE requires a path to the CA bundle" >&5
  27865. echo "$as_me: error: --with-ca-bundle=FILE requires a path to the CA bundle" >&2;}
  27866. { (exit 1); exit 1; }; }
  27867. fi
  27868. else
  27869. want_ca="unset"
  27870. fi
  27871. # Check whether --with-ca-path was given.
  27872. if test "${with_ca_path+set}" = set; then
  27873. withval=$with_ca_path;
  27874. want_capath="$withval"
  27875. if test "x$want_capath" = "xyes"; then
  27876. { { echo "$as_me:$LINENO: error: --with-ca-path=DIRECTORY requires a path to the CA path directory" >&5
  27877. echo "$as_me: error: --with-ca-path=DIRECTORY requires a path to the CA path directory" >&2;}
  27878. { (exit 1); exit 1; }; }
  27879. fi
  27880. else
  27881. want_capath="unset"
  27882. fi
  27883. if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
  27884. "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
  27885. { { echo "$as_me:$LINENO: error: Can't specify both --with-ca-bundle and --with-ca-path." >&5
  27886. echo "$as_me: error: Can't specify both --with-ca-bundle and --with-ca-path." >&2;}
  27887. { (exit 1); exit 1; }; }
  27888. elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
  27889. ca="$want_ca"
  27890. capath="no"
  27891. elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
  27892. if test "x$OPENSSL_ENABLED" != "x1"; then
  27893. { { echo "$as_me:$LINENO: error: --with-ca-path only works with openSSL" >&5
  27894. echo "$as_me: error: --with-ca-path only works with openSSL" >&2;}
  27895. { (exit 1); exit 1; }; }
  27896. fi
  27897. capath="$want_capath"
  27898. ca="no"
  27899. else
  27900. ca="no"
  27901. capath="no"
  27902. if test "x$want_ca" = "xunset"; then
  27903. if test "x$prefix" != xNONE; then
  27904. cac="${prefix}/share/curl/curl-ca-bundle.crt"
  27905. else
  27906. cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
  27907. fi
  27908. for a in /etc/ssl/certs/ca-certificates.crt \
  27909. /etc/pki/tls/certs/ca-bundle.crt \
  27910. /usr/share/ssl/certs/ca-bundle.crt \
  27911. "$cac"; do
  27912. if test -f "$a"; then
  27913. ca="$a"
  27914. break
  27915. fi
  27916. done
  27917. fi
  27918. if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
  27919. "x$OPENSSL_ENABLED" = "x1"; then
  27920. for a in /etc/ssl/certs/; do
  27921. if test -d "$a" && ls "$a"/[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f].0 >/dev/null 2>/dev/null; then
  27922. capath="$a"
  27923. break
  27924. fi
  27925. done
  27926. fi
  27927. fi
  27928. if test "x$ca" != "xno"; then
  27929. CURL_CA_BUNDLE='"'$ca'"'
  27930. cat >>confdefs.h <<_ACEOF
  27931. #define CURL_CA_BUNDLE "$ca"
  27932. _ACEOF
  27933. { echo "$as_me:$LINENO: result: $ca" >&5
  27934. echo "${ECHO_T}$ca" >&6; }
  27935. elif test "x$capath" != "xno"; then
  27936. CURL_CA_PATH="\"$capath\""
  27937. cat >>confdefs.h <<_ACEOF
  27938. #define CURL_CA_PATH "$capath"
  27939. _ACEOF
  27940. { echo "$as_me:$LINENO: result: $capath (capath)" >&5
  27941. echo "${ECHO_T}$capath (capath)" >&6; }
  27942. else
  27943. { echo "$as_me:$LINENO: result: no" >&5
  27944. echo "${ECHO_T}no" >&6; }
  27945. fi
  27946. { echo "$as_me:$LINENO: checking whether to build with libidn" >&5
  27947. echo $ECHO_N "checking whether to build with libidn... $ECHO_C" >&6; }
  27948. # Check whether --with-libidn was given.
  27949. if test "${with_libidn+set}" = set; then
  27950. withval=$with_libidn; LIBIDN="$withval"
  27951. fi
  27952. case "$LIBIDN" in
  27953. no)
  27954. { echo "$as_me:$LINENO: result: no" >&5
  27955. echo "${ECHO_T}no" >&6; }
  27956. ;;
  27957. *) { echo "$as_me:$LINENO: result: yes" >&5
  27958. echo "${ECHO_T}yes" >&6; }
  27959. idn=""
  27960. if test -n "$LIBIDN"; then
  27961. if test "x$LIBIDN" != "xyes"; then
  27962. oldLDFLAGS=$LDFLAGS
  27963. oldCPPFLAGS=$CPPFLAGS
  27964. LDFLAGS="$LDFLAGS -L$LIBIDN/lib"
  27965. CPPFLAGS="$CPPFLAGS -I$LIBIDN/include"
  27966. idn="yes"
  27967. { echo "$as_me:$LINENO: checking for idna_to_ascii_4i in -lidn" >&5
  27968. echo $ECHO_N "checking for idna_to_ascii_4i in -lidn... $ECHO_C" >&6; }
  27969. if test "${ac_cv_lib_idn_idna_to_ascii_4i+set}" = set; then
  27970. echo $ECHO_N "(cached) $ECHO_C" >&6
  27971. else
  27972. ac_check_lib_save_LIBS=$LIBS
  27973. LIBS="-lidn $LIBS"
  27974. cat >conftest.$ac_ext <<_ACEOF
  27975. /* confdefs.h. */
  27976. _ACEOF
  27977. cat confdefs.h >>conftest.$ac_ext
  27978. cat >>conftest.$ac_ext <<_ACEOF
  27979. /* end confdefs.h. */
  27980. /* Override any GCC internal prototype to avoid an error.
  27981. Use char because int might match the return type of a GCC
  27982. builtin and then its argument prototype would still apply. */
  27983. #ifdef __cplusplus
  27984. extern "C"
  27985. #endif
  27986. char idna_to_ascii_4i ();
  27987. int
  27988. main ()
  27989. {
  27990. return idna_to_ascii_4i ();
  27991. ;
  27992. return 0;
  27993. }
  27994. _ACEOF
  27995. rm -f conftest.$ac_objext conftest$ac_exeext
  27996. if { (ac_try="$ac_link"
  27997. case "(($ac_try" in
  27998. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27999. *) ac_try_echo=$ac_try;;
  28000. esac
  28001. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28002. (eval "$ac_link") 2>conftest.er1
  28003. ac_status=$?
  28004. grep -v '^ *+' conftest.er1 >conftest.err
  28005. rm -f conftest.er1
  28006. cat conftest.err >&5
  28007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28008. (exit $ac_status); } && {
  28009. test -z "$ac_c_werror_flag" ||
  28010. test ! -s conftest.err
  28011. } && test -s conftest$ac_exeext &&
  28012. $as_test_x conftest$ac_exeext; then
  28013. ac_cv_lib_idn_idna_to_ascii_4i=yes
  28014. else
  28015. echo "$as_me: failed program was:" >&5
  28016. sed 's/^/| /' conftest.$ac_ext >&5
  28017. ac_cv_lib_idn_idna_to_ascii_4i=no
  28018. fi
  28019. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28020. conftest$ac_exeext conftest.$ac_ext
  28021. LIBS=$ac_check_lib_save_LIBS
  28022. fi
  28023. { echo "$as_me:$LINENO: result: $ac_cv_lib_idn_idna_to_ascii_4i" >&5
  28024. echo "${ECHO_T}$ac_cv_lib_idn_idna_to_ascii_4i" >&6; }
  28025. if test $ac_cv_lib_idn_idna_to_ascii_4i = yes; then
  28026. cat >>confdefs.h <<_ACEOF
  28027. #define HAVE_LIBIDN 1
  28028. _ACEOF
  28029. LIBS="-lidn $LIBS"
  28030. else
  28031. idn=""
  28032. LDFLAGS=$oldLDFLAGS
  28033. CPPFLAGS=$oldCPPFLAGS
  28034. fi
  28035. fi
  28036. fi
  28037. if test "x$idn" != "xyes"; then
  28038. idn="yes"
  28039. { echo "$as_me:$LINENO: checking for idna_to_ascii_lz in -lidn" >&5
  28040. echo $ECHO_N "checking for idna_to_ascii_lz in -lidn... $ECHO_C" >&6; }
  28041. if test "${ac_cv_lib_idn_idna_to_ascii_lz+set}" = set; then
  28042. echo $ECHO_N "(cached) $ECHO_C" >&6
  28043. else
  28044. ac_check_lib_save_LIBS=$LIBS
  28045. LIBS="-lidn $LIBS"
  28046. cat >conftest.$ac_ext <<_ACEOF
  28047. /* confdefs.h. */
  28048. _ACEOF
  28049. cat confdefs.h >>conftest.$ac_ext
  28050. cat >>conftest.$ac_ext <<_ACEOF
  28051. /* end confdefs.h. */
  28052. /* Override any GCC internal prototype to avoid an error.
  28053. Use char because int might match the return type of a GCC
  28054. builtin and then its argument prototype would still apply. */
  28055. #ifdef __cplusplus
  28056. extern "C"
  28057. #endif
  28058. char idna_to_ascii_lz ();
  28059. int
  28060. main ()
  28061. {
  28062. return idna_to_ascii_lz ();
  28063. ;
  28064. return 0;
  28065. }
  28066. _ACEOF
  28067. rm -f conftest.$ac_objext conftest$ac_exeext
  28068. if { (ac_try="$ac_link"
  28069. case "(($ac_try" in
  28070. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28071. *) ac_try_echo=$ac_try;;
  28072. esac
  28073. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28074. (eval "$ac_link") 2>conftest.er1
  28075. ac_status=$?
  28076. grep -v '^ *+' conftest.er1 >conftest.err
  28077. rm -f conftest.er1
  28078. cat conftest.err >&5
  28079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28080. (exit $ac_status); } && {
  28081. test -z "$ac_c_werror_flag" ||
  28082. test ! -s conftest.err
  28083. } && test -s conftest$ac_exeext &&
  28084. $as_test_x conftest$ac_exeext; then
  28085. ac_cv_lib_idn_idna_to_ascii_lz=yes
  28086. else
  28087. echo "$as_me: failed program was:" >&5
  28088. sed 's/^/| /' conftest.$ac_ext >&5
  28089. ac_cv_lib_idn_idna_to_ascii_lz=no
  28090. fi
  28091. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28092. conftest$ac_exeext conftest.$ac_ext
  28093. LIBS=$ac_check_lib_save_LIBS
  28094. fi
  28095. { echo "$as_me:$LINENO: result: $ac_cv_lib_idn_idna_to_ascii_lz" >&5
  28096. echo "${ECHO_T}$ac_cv_lib_idn_idna_to_ascii_lz" >&6; }
  28097. if test $ac_cv_lib_idn_idna_to_ascii_lz = yes; then
  28098. cat >>confdefs.h <<_ACEOF
  28099. #define HAVE_LIBIDN 1
  28100. _ACEOF
  28101. LIBS="-lidn $LIBS"
  28102. else
  28103. idn=""
  28104. fi
  28105. fi
  28106. if test "x$idn" = "xyes"; then
  28107. curl_idn_msg="enabled"
  28108. IDN_ENABLED=1
  28109. for ac_func in idn_free idna_strerror tld_strerror
  28110. do
  28111. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  28112. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  28113. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  28114. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  28115. echo $ECHO_N "(cached) $ECHO_C" >&6
  28116. else
  28117. cat >conftest.$ac_ext <<_ACEOF
  28118. /* confdefs.h. */
  28119. _ACEOF
  28120. cat confdefs.h >>conftest.$ac_ext
  28121. cat >>conftest.$ac_ext <<_ACEOF
  28122. /* end confdefs.h. */
  28123. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  28124. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  28125. #define $ac_func innocuous_$ac_func
  28126. /* System header to define __stub macros and hopefully few prototypes,
  28127. which can conflict with char $ac_func (); below.
  28128. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  28129. <limits.h> exists even on freestanding compilers. */
  28130. #ifdef __STDC__
  28131. # include <limits.h>
  28132. #else
  28133. # include <assert.h>
  28134. #endif
  28135. #undef $ac_func
  28136. /* Override any GCC internal prototype to avoid an error.
  28137. Use char because int might match the return type of a GCC
  28138. builtin and then its argument prototype would still apply. */
  28139. #ifdef __cplusplus
  28140. extern "C"
  28141. #endif
  28142. char $ac_func ();
  28143. /* The GNU C library defines this for functions which it implements
  28144. to always fail with ENOSYS. Some functions are actually named
  28145. something starting with __ and the normal name is an alias. */
  28146. #if defined __stub_$ac_func || defined __stub___$ac_func
  28147. choke me
  28148. #endif
  28149. int
  28150. main ()
  28151. {
  28152. return $ac_func ();
  28153. ;
  28154. return 0;
  28155. }
  28156. _ACEOF
  28157. rm -f conftest.$ac_objext conftest$ac_exeext
  28158. if { (ac_try="$ac_link"
  28159. case "(($ac_try" in
  28160. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28161. *) ac_try_echo=$ac_try;;
  28162. esac
  28163. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28164. (eval "$ac_link") 2>conftest.er1
  28165. ac_status=$?
  28166. grep -v '^ *+' conftest.er1 >conftest.err
  28167. rm -f conftest.er1
  28168. cat conftest.err >&5
  28169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28170. (exit $ac_status); } && {
  28171. test -z "$ac_c_werror_flag" ||
  28172. test ! -s conftest.err
  28173. } && test -s conftest$ac_exeext &&
  28174. $as_test_x conftest$ac_exeext; then
  28175. eval "$as_ac_var=yes"
  28176. else
  28177. echo "$as_me: failed program was:" >&5
  28178. sed 's/^/| /' conftest.$ac_ext >&5
  28179. eval "$as_ac_var=no"
  28180. fi
  28181. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28182. conftest$ac_exeext conftest.$ac_ext
  28183. fi
  28184. ac_res=`eval echo '${'$as_ac_var'}'`
  28185. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28186. echo "${ECHO_T}$ac_res" >&6; }
  28187. if test `eval echo '${'$as_ac_var'}'` = yes; then
  28188. cat >>confdefs.h <<_ACEOF
  28189. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  28190. _ACEOF
  28191. fi
  28192. done
  28193. for ac_header in idn-free.h tld.h
  28194. do
  28195. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  28196. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28197. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28198. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28199. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28200. echo $ECHO_N "(cached) $ECHO_C" >&6
  28201. fi
  28202. ac_res=`eval echo '${'$as_ac_Header'}'`
  28203. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28204. echo "${ECHO_T}$ac_res" >&6; }
  28205. else
  28206. # Is the header compilable?
  28207. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  28208. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  28209. cat >conftest.$ac_ext <<_ACEOF
  28210. /* confdefs.h. */
  28211. _ACEOF
  28212. cat confdefs.h >>conftest.$ac_ext
  28213. cat >>conftest.$ac_ext <<_ACEOF
  28214. /* end confdefs.h. */
  28215. $ac_includes_default
  28216. #include <$ac_header>
  28217. _ACEOF
  28218. rm -f conftest.$ac_objext
  28219. if { (ac_try="$ac_compile"
  28220. case "(($ac_try" in
  28221. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28222. *) ac_try_echo=$ac_try;;
  28223. esac
  28224. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28225. (eval "$ac_compile") 2>conftest.er1
  28226. ac_status=$?
  28227. grep -v '^ *+' conftest.er1 >conftest.err
  28228. rm -f conftest.er1
  28229. cat conftest.err >&5
  28230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28231. (exit $ac_status); } && {
  28232. test -z "$ac_c_werror_flag" ||
  28233. test ! -s conftest.err
  28234. } && test -s conftest.$ac_objext; then
  28235. ac_header_compiler=yes
  28236. else
  28237. echo "$as_me: failed program was:" >&5
  28238. sed 's/^/| /' conftest.$ac_ext >&5
  28239. ac_header_compiler=no
  28240. fi
  28241. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28242. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  28243. echo "${ECHO_T}$ac_header_compiler" >&6; }
  28244. # Is the header present?
  28245. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  28246. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  28247. cat >conftest.$ac_ext <<_ACEOF
  28248. /* confdefs.h. */
  28249. _ACEOF
  28250. cat confdefs.h >>conftest.$ac_ext
  28251. cat >>conftest.$ac_ext <<_ACEOF
  28252. /* end confdefs.h. */
  28253. #include <$ac_header>
  28254. _ACEOF
  28255. if { (ac_try="$ac_cpp conftest.$ac_ext"
  28256. case "(($ac_try" in
  28257. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28258. *) ac_try_echo=$ac_try;;
  28259. esac
  28260. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28261. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  28262. ac_status=$?
  28263. grep -v '^ *+' conftest.er1 >conftest.err
  28264. rm -f conftest.er1
  28265. cat conftest.err >&5
  28266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28267. (exit $ac_status); } >/dev/null && {
  28268. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  28269. test ! -s conftest.err
  28270. }; then
  28271. ac_header_preproc=yes
  28272. else
  28273. echo "$as_me: failed program was:" >&5
  28274. sed 's/^/| /' conftest.$ac_ext >&5
  28275. ac_header_preproc=no
  28276. fi
  28277. rm -f conftest.err conftest.$ac_ext
  28278. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  28279. echo "${ECHO_T}$ac_header_preproc" >&6; }
  28280. # So? What about this header?
  28281. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  28282. yes:no: )
  28283. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  28284. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  28285. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  28286. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  28287. ac_header_preproc=yes
  28288. ;;
  28289. no:yes:* )
  28290. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  28291. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  28292. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  28293. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  28294. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  28295. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  28296. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  28297. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  28298. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  28299. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  28300. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  28301. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  28302. ( cat <<\_ASBOX
  28303. ## ------------------------------------------------------------------------ ##
  28304. ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
  28305. ## ------------------------------------------------------------------------ ##
  28306. _ASBOX
  28307. ) | sed "s/^/$as_me: WARNING: /" >&2
  28308. ;;
  28309. esac
  28310. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28311. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28312. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28313. echo $ECHO_N "(cached) $ECHO_C" >&6
  28314. else
  28315. eval "$as_ac_Header=\$ac_header_preproc"
  28316. fi
  28317. ac_res=`eval echo '${'$as_ac_Header'}'`
  28318. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28319. echo "${ECHO_T}$ac_res" >&6; }
  28320. fi
  28321. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  28322. cat >>confdefs.h <<_ACEOF
  28323. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  28324. _ACEOF
  28325. fi
  28326. done
  28327. fi
  28328. ;;
  28329. esac
  28330. OPT_THREAD=on
  28331. { echo "$as_me:$LINENO: checking AIX 4.3 or later" >&5
  28332. echo $ECHO_N "checking AIX 4.3 or later... $ECHO_C" >&6; }
  28333. cat >conftest.$ac_ext <<_ACEOF
  28334. #if defined(_AIX) && defined(_AIX43)
  28335. printf("just fine");
  28336. #else
  28337. #error "this is not AIX 4.3 or later"
  28338. #endif
  28339. _ACEOF
  28340. if { (ac_try="$ac_cpp conftest.$ac_ext"
  28341. case "(($ac_try" in
  28342. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28343. *) ac_try_echo=$ac_try;;
  28344. esac
  28345. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28346. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  28347. ac_status=$?
  28348. grep -v '^ *+' conftest.er1 >conftest.err
  28349. rm -f conftest.er1
  28350. cat conftest.err >&5
  28351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28352. (exit $ac_status); } >/dev/null && {
  28353. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  28354. test ! -s conftest.err
  28355. }; then
  28356. { echo "$as_me:$LINENO: result: yes" >&5
  28357. echo "${ECHO_T}yes" >&6; }
  28358. RECENTAIX=yes
  28359. OPT_THREAD=off
  28360. else
  28361. echo "$as_me: failed program was:" >&5
  28362. sed 's/^/| /' conftest.$ac_ext >&5
  28363. { echo "$as_me:$LINENO: result: no" >&5
  28364. echo "${ECHO_T}no" >&6; }
  28365. fi
  28366. rm -f conftest.err conftest.$ac_ext
  28367. # Check whether --enable-thread was given.
  28368. if test "${enable_thread+set}" = set; then
  28369. enableval=$enable_thread; case "$enableval" in
  28370. no)
  28371. OPT_THREAD=off
  28372. { echo "$as_me:$LINENO: WARNING: libcurl will not get built using thread-safe functions" >&5
  28373. echo "$as_me: WARNING: libcurl will not get built using thread-safe functions" >&2;}
  28374. ;;
  28375. *)
  28376. ;;
  28377. esac
  28378. fi
  28379. if test X"$OPT_THREAD" = Xoff
  28380. then
  28381. cat >>confdefs.h <<\_ACEOF
  28382. #define DISABLED_THREADSAFE 1
  28383. _ACEOF
  28384. else
  28385. if test "$ipv6" != "yes"; then
  28386. #
  28387. { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
  28388. echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
  28389. cat >conftest.$ac_ext <<_ACEOF
  28390. /* confdefs.h. */
  28391. _ACEOF
  28392. cat confdefs.h >>conftest.$ac_ext
  28393. cat >>conftest.$ac_ext <<_ACEOF
  28394. /* end confdefs.h. */
  28395. /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
  28396. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  28397. #define gethostbyname_r innocuous_gethostbyname_r
  28398. /* System header to define __stub macros and hopefully few prototypes,
  28399. which can conflict with char gethostbyname_r (); below.
  28400. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  28401. <limits.h> exists even on freestanding compilers. */
  28402. #ifdef __STDC__
  28403. # include <limits.h>
  28404. #else
  28405. # include <assert.h>
  28406. #endif
  28407. #undef gethostbyname_r
  28408. /* Override any GCC internal prototype to avoid an error.
  28409. Use char because int might match the return type of a GCC
  28410. builtin and then its argument prototype would still apply. */
  28411. #ifdef __cplusplus
  28412. extern "C"
  28413. #endif
  28414. char gethostbyname_r ();
  28415. /* The GNU C library defines this for functions which it implements
  28416. to always fail with ENOSYS. Some functions are actually named
  28417. something starting with __ and the normal name is an alias. */
  28418. #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
  28419. choke me
  28420. #endif
  28421. int
  28422. main ()
  28423. {
  28424. return gethostbyname_r ();
  28425. ;
  28426. return 0;
  28427. }
  28428. _ACEOF
  28429. rm -f conftest.$ac_objext conftest$ac_exeext
  28430. if { (ac_try="$ac_link"
  28431. case "(($ac_try" in
  28432. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28433. *) ac_try_echo=$ac_try;;
  28434. esac
  28435. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28436. (eval "$ac_link") 2>conftest.er1
  28437. ac_status=$?
  28438. grep -v '^ *+' conftest.er1 >conftest.err
  28439. rm -f conftest.er1
  28440. cat conftest.err >&5
  28441. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28442. (exit $ac_status); } && {
  28443. test -z "$ac_c_werror_flag" ||
  28444. test ! -s conftest.err
  28445. } && test -s conftest$ac_exeext &&
  28446. $as_test_x conftest$ac_exeext; then
  28447. { echo "$as_me:$LINENO: result: yes" >&5
  28448. echo "${ECHO_T}yes" >&6; }
  28449. tmp_cv_gethostbyname_r="yes"
  28450. else
  28451. echo "$as_me: failed program was:" >&5
  28452. sed 's/^/| /' conftest.$ac_ext >&5
  28453. { echo "$as_me:$LINENO: result: no" >&5
  28454. echo "${ECHO_T}no" >&6; }
  28455. tmp_cv_gethostbyname_r="no"
  28456. fi
  28457. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28458. conftest$ac_exeext conftest.$ac_ext
  28459. #
  28460. if test "$tmp_cv_gethostbyname_r" != "yes"; then
  28461. { echo "$as_me:$LINENO: checking deeper for gethostbyname_r" >&5
  28462. echo $ECHO_N "checking deeper for gethostbyname_r... $ECHO_C" >&6; }
  28463. cat >conftest.$ac_ext <<_ACEOF
  28464. /* confdefs.h. */
  28465. _ACEOF
  28466. cat confdefs.h >>conftest.$ac_ext
  28467. cat >>conftest.$ac_ext <<_ACEOF
  28468. /* end confdefs.h. */
  28469. int
  28470. main ()
  28471. {
  28472. gethostbyname_r();
  28473. ;
  28474. return 0;
  28475. }
  28476. _ACEOF
  28477. rm -f conftest.$ac_objext conftest$ac_exeext
  28478. if { (ac_try="$ac_link"
  28479. case "(($ac_try" in
  28480. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28481. *) ac_try_echo=$ac_try;;
  28482. esac
  28483. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28484. (eval "$ac_link") 2>conftest.er1
  28485. ac_status=$?
  28486. grep -v '^ *+' conftest.er1 >conftest.err
  28487. rm -f conftest.er1
  28488. cat conftest.err >&5
  28489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28490. (exit $ac_status); } && {
  28491. test -z "$ac_c_werror_flag" ||
  28492. test ! -s conftest.err
  28493. } && test -s conftest$ac_exeext &&
  28494. $as_test_x conftest$ac_exeext; then
  28495. { echo "$as_me:$LINENO: result: yes" >&5
  28496. echo "${ECHO_T}yes" >&6; }
  28497. tmp_cv_gethostbyname_r="yes"
  28498. else
  28499. echo "$as_me: failed program was:" >&5
  28500. sed 's/^/| /' conftest.$ac_ext >&5
  28501. { echo "$as_me:$LINENO: result: but still no" >&5
  28502. echo "${ECHO_T}but still no" >&6; }
  28503. tmp_cv_gethostbyname_r="no"
  28504. fi
  28505. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28506. conftest$ac_exeext conftest.$ac_ext
  28507. fi
  28508. #
  28509. if test "$tmp_cv_gethostbyname_r" = "yes"; then
  28510. ac_cv_gethostbyname_r_args="unknown"
  28511. { echo "$as_me:$LINENO: checking if gethostbyname_r takes 3 arguments" >&5
  28512. echo $ECHO_N "checking if gethostbyname_r takes 3 arguments... $ECHO_C" >&6; }
  28513. cat >conftest.$ac_ext <<_ACEOF
  28514. /* confdefs.h. */
  28515. _ACEOF
  28516. cat confdefs.h >>conftest.$ac_ext
  28517. cat >>conftest.$ac_ext <<_ACEOF
  28518. /* end confdefs.h. */
  28519. #undef _REENTRANT
  28520. #include <string.h>
  28521. #include <sys/types.h>
  28522. #include <netdb.h>
  28523. #undef NULL
  28524. #define NULL (void *)0
  28525. int
  28526. gethostbyname_r(const char *, struct hostent *,
  28527. struct hostent_data *);
  28528. int
  28529. main ()
  28530. {
  28531. struct hostent_data data;
  28532. gethostbyname_r(NULL, NULL, NULL);
  28533. ;
  28534. return 0;
  28535. }
  28536. _ACEOF
  28537. rm -f conftest.$ac_objext
  28538. if { (ac_try="$ac_compile"
  28539. case "(($ac_try" in
  28540. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28541. *) ac_try_echo=$ac_try;;
  28542. esac
  28543. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28544. (eval "$ac_compile") 2>conftest.er1
  28545. ac_status=$?
  28546. grep -v '^ *+' conftest.er1 >conftest.err
  28547. rm -f conftest.er1
  28548. cat conftest.err >&5
  28549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28550. (exit $ac_status); } && {
  28551. test -z "$ac_c_werror_flag" ||
  28552. test ! -s conftest.err
  28553. } && test -s conftest.$ac_objext; then
  28554. { echo "$as_me:$LINENO: result: yes" >&5
  28555. echo "${ECHO_T}yes" >&6; }
  28556. cat >>confdefs.h <<\_ACEOF
  28557. #define HAVE_GETHOSTBYNAME_R_3 1
  28558. _ACEOF
  28559. ac_cv_gethostbyname_r_args="3"
  28560. else
  28561. echo "$as_me: failed program was:" >&5
  28562. sed 's/^/| /' conftest.$ac_ext >&5
  28563. { echo "$as_me:$LINENO: result: no" >&5
  28564. echo "${ECHO_T}no" >&6; }
  28565. fi
  28566. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28567. if test "$ac_cv_gethostbyname_r_args" = "unknown"; then
  28568. { echo "$as_me:$LINENO: checking if gethostbyname_r with -D_REENTRANT takes 3 arguments" >&5
  28569. echo $ECHO_N "checking if gethostbyname_r with -D_REENTRANT takes 3 arguments... $ECHO_C" >&6; }
  28570. cat >conftest.$ac_ext <<_ACEOF
  28571. /* confdefs.h. */
  28572. _ACEOF
  28573. cat confdefs.h >>conftest.$ac_ext
  28574. cat >>conftest.$ac_ext <<_ACEOF
  28575. /* end confdefs.h. */
  28576. #undef _REENTRANT
  28577. #define _REENTRANT
  28578. #include <string.h>
  28579. #include <sys/types.h>
  28580. #include <netdb.h>
  28581. #undef NULL
  28582. #define NULL (void *)0
  28583. int
  28584. gethostbyname_r(const char *, struct hostent *,
  28585. struct hostent_data *);
  28586. int
  28587. main ()
  28588. {
  28589. struct hostent_data data;
  28590. gethostbyname_r(NULL, NULL, NULL);
  28591. ;
  28592. return 0;
  28593. }
  28594. _ACEOF
  28595. rm -f conftest.$ac_objext
  28596. if { (ac_try="$ac_compile"
  28597. case "(($ac_try" in
  28598. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28599. *) ac_try_echo=$ac_try;;
  28600. esac
  28601. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28602. (eval "$ac_compile") 2>conftest.er1
  28603. ac_status=$?
  28604. grep -v '^ *+' conftest.er1 >conftest.err
  28605. rm -f conftest.er1
  28606. cat conftest.err >&5
  28607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28608. (exit $ac_status); } && {
  28609. test -z "$ac_c_werror_flag" ||
  28610. test ! -s conftest.err
  28611. } && test -s conftest.$ac_objext; then
  28612. { echo "$as_me:$LINENO: result: yes" >&5
  28613. echo "${ECHO_T}yes" >&6; }
  28614. cat >>confdefs.h <<\_ACEOF
  28615. #define HAVE_GETHOSTBYNAME_R_3 1
  28616. _ACEOF
  28617. ac_cv_gethostbyname_r_args="3"
  28618. else
  28619. echo "$as_me: failed program was:" >&5
  28620. sed 's/^/| /' conftest.$ac_ext >&5
  28621. { echo "$as_me:$LINENO: result: no" >&5
  28622. echo "${ECHO_T}no" >&6; }
  28623. fi
  28624. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28625. fi
  28626. if test "$ac_cv_gethostbyname_r_args" = "unknown"; then
  28627. { echo "$as_me:$LINENO: checking if gethostbyname_r takes 5 arguments" >&5
  28628. echo $ECHO_N "checking if gethostbyname_r takes 5 arguments... $ECHO_C" >&6; }
  28629. cat >conftest.$ac_ext <<_ACEOF
  28630. /* confdefs.h. */
  28631. _ACEOF
  28632. cat confdefs.h >>conftest.$ac_ext
  28633. cat >>conftest.$ac_ext <<_ACEOF
  28634. /* end confdefs.h. */
  28635. #undef _REENTRANT
  28636. #include <sys/types.h>
  28637. #include <netdb.h>
  28638. #undef NULL
  28639. #define NULL (void *)0
  28640. struct hostent *
  28641. gethostbyname_r(const char *, struct hostent *,
  28642. char *, int, int *);
  28643. int
  28644. main ()
  28645. {
  28646. gethostbyname_r(NULL, NULL, NULL, 0, NULL);
  28647. ;
  28648. return 0;
  28649. }
  28650. _ACEOF
  28651. rm -f conftest.$ac_objext
  28652. if { (ac_try="$ac_compile"
  28653. case "(($ac_try" in
  28654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28655. *) ac_try_echo=$ac_try;;
  28656. esac
  28657. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28658. (eval "$ac_compile") 2>conftest.er1
  28659. ac_status=$?
  28660. grep -v '^ *+' conftest.er1 >conftest.err
  28661. rm -f conftest.er1
  28662. cat conftest.err >&5
  28663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28664. (exit $ac_status); } && {
  28665. test -z "$ac_c_werror_flag" ||
  28666. test ! -s conftest.err
  28667. } && test -s conftest.$ac_objext; then
  28668. { echo "$as_me:$LINENO: result: yes" >&5
  28669. echo "${ECHO_T}yes" >&6; }
  28670. cat >>confdefs.h <<\_ACEOF
  28671. #define HAVE_GETHOSTBYNAME_R_5 1
  28672. _ACEOF
  28673. ac_cv_gethostbyname_r_args="5"
  28674. else
  28675. echo "$as_me: failed program was:" >&5
  28676. sed 's/^/| /' conftest.$ac_ext >&5
  28677. { echo "$as_me:$LINENO: result: no" >&5
  28678. echo "${ECHO_T}no" >&6; }
  28679. fi
  28680. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28681. fi
  28682. if test "$ac_cv_gethostbyname_r_args" = "unknown"; then
  28683. { echo "$as_me:$LINENO: checking if gethostbyname_r with -D_REENTRANT takes 5 arguments" >&5
  28684. echo $ECHO_N "checking if gethostbyname_r with -D_REENTRANT takes 5 arguments... $ECHO_C" >&6; }
  28685. cat >conftest.$ac_ext <<_ACEOF
  28686. /* confdefs.h. */
  28687. _ACEOF
  28688. cat confdefs.h >>conftest.$ac_ext
  28689. cat >>conftest.$ac_ext <<_ACEOF
  28690. /* end confdefs.h. */
  28691. #undef _REENTRANT
  28692. #define _REENTRANT
  28693. #include <sys/types.h>
  28694. #include <netdb.h>
  28695. #undef NULL
  28696. #define NULL (void *)0
  28697. struct hostent *
  28698. gethostbyname_r(const char *, struct hostent *,
  28699. char *, int, int *);
  28700. int
  28701. main ()
  28702. {
  28703. gethostbyname_r(NULL, NULL, NULL, 0, NULL);
  28704. ;
  28705. return 0;
  28706. }
  28707. _ACEOF
  28708. rm -f conftest.$ac_objext
  28709. if { (ac_try="$ac_compile"
  28710. case "(($ac_try" in
  28711. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28712. *) ac_try_echo=$ac_try;;
  28713. esac
  28714. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28715. (eval "$ac_compile") 2>conftest.er1
  28716. ac_status=$?
  28717. grep -v '^ *+' conftest.er1 >conftest.err
  28718. rm -f conftest.er1
  28719. cat conftest.err >&5
  28720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28721. (exit $ac_status); } && {
  28722. test -z "$ac_c_werror_flag" ||
  28723. test ! -s conftest.err
  28724. } && test -s conftest.$ac_objext; then
  28725. { echo "$as_me:$LINENO: result: yes" >&5
  28726. echo "${ECHO_T}yes" >&6; }
  28727. cat >>confdefs.h <<\_ACEOF
  28728. #define HAVE_GETHOSTBYNAME_R_5 1
  28729. _ACEOF
  28730. ac_cv_gethostbyname_r_args="5"
  28731. else
  28732. echo "$as_me: failed program was:" >&5
  28733. sed 's/^/| /' conftest.$ac_ext >&5
  28734. { echo "$as_me:$LINENO: result: no" >&5
  28735. echo "${ECHO_T}no" >&6; }
  28736. fi
  28737. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28738. fi
  28739. if test "$ac_cv_gethostbyname_r_args" = "unknown"; then
  28740. { echo "$as_me:$LINENO: checking if gethostbyname_r takes 6 arguments" >&5
  28741. echo $ECHO_N "checking if gethostbyname_r takes 6 arguments... $ECHO_C" >&6; }
  28742. cat >conftest.$ac_ext <<_ACEOF
  28743. /* confdefs.h. */
  28744. _ACEOF
  28745. cat confdefs.h >>conftest.$ac_ext
  28746. cat >>conftest.$ac_ext <<_ACEOF
  28747. /* end confdefs.h. */
  28748. #undef _REENTRANT
  28749. #include <sys/types.h>
  28750. #include <netdb.h>
  28751. #undef NULL
  28752. #define NULL (void *)0
  28753. int
  28754. gethostbyname_r(const char *, struct hostent *,
  28755. char *, size_t, struct hostent **, int *);
  28756. int
  28757. main ()
  28758. {
  28759. gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL);
  28760. ;
  28761. return 0;
  28762. }
  28763. _ACEOF
  28764. rm -f conftest.$ac_objext
  28765. if { (ac_try="$ac_compile"
  28766. case "(($ac_try" in
  28767. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28768. *) ac_try_echo=$ac_try;;
  28769. esac
  28770. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28771. (eval "$ac_compile") 2>conftest.er1
  28772. ac_status=$?
  28773. grep -v '^ *+' conftest.er1 >conftest.err
  28774. rm -f conftest.er1
  28775. cat conftest.err >&5
  28776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28777. (exit $ac_status); } && {
  28778. test -z "$ac_c_werror_flag" ||
  28779. test ! -s conftest.err
  28780. } && test -s conftest.$ac_objext; then
  28781. { echo "$as_me:$LINENO: result: yes" >&5
  28782. echo "${ECHO_T}yes" >&6; }
  28783. cat >>confdefs.h <<\_ACEOF
  28784. #define HAVE_GETHOSTBYNAME_R_6 1
  28785. _ACEOF
  28786. ac_cv_gethostbyname_r_args="6"
  28787. else
  28788. echo "$as_me: failed program was:" >&5
  28789. sed 's/^/| /' conftest.$ac_ext >&5
  28790. { echo "$as_me:$LINENO: result: no" >&5
  28791. echo "${ECHO_T}no" >&6; }
  28792. fi
  28793. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28794. fi
  28795. if test "$ac_cv_gethostbyname_r_args" = "unknown"; then
  28796. { echo "$as_me:$LINENO: checking if gethostbyname_r with -D_REENTRANT takes 6 arguments" >&5
  28797. echo $ECHO_N "checking if gethostbyname_r with -D_REENTRANT takes 6 arguments... $ECHO_C" >&6; }
  28798. cat >conftest.$ac_ext <<_ACEOF
  28799. /* confdefs.h. */
  28800. _ACEOF
  28801. cat confdefs.h >>conftest.$ac_ext
  28802. cat >>conftest.$ac_ext <<_ACEOF
  28803. /* end confdefs.h. */
  28804. #undef _REENTRANT
  28805. #define _REENTRANT
  28806. #include <sys/types.h>
  28807. #include <netdb.h>
  28808. #undef NULL
  28809. #define NULL (void *)0
  28810. int
  28811. gethostbyname_r(const char *, struct hostent *,
  28812. char *, size_t, struct hostent **, int *);
  28813. int
  28814. main ()
  28815. {
  28816. gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL);
  28817. ;
  28818. return 0;
  28819. }
  28820. _ACEOF
  28821. rm -f conftest.$ac_objext
  28822. if { (ac_try="$ac_compile"
  28823. case "(($ac_try" in
  28824. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28825. *) ac_try_echo=$ac_try;;
  28826. esac
  28827. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28828. (eval "$ac_compile") 2>conftest.er1
  28829. ac_status=$?
  28830. grep -v '^ *+' conftest.er1 >conftest.err
  28831. rm -f conftest.er1
  28832. cat conftest.err >&5
  28833. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28834. (exit $ac_status); } && {
  28835. test -z "$ac_c_werror_flag" ||
  28836. test ! -s conftest.err
  28837. } && test -s conftest.$ac_objext; then
  28838. { echo "$as_me:$LINENO: result: yes" >&5
  28839. echo "${ECHO_T}yes" >&6; }
  28840. cat >>confdefs.h <<\_ACEOF
  28841. #define HAVE_GETHOSTBYNAME_R_6 1
  28842. _ACEOF
  28843. ac_cv_gethostbyname_r_args="6"
  28844. else
  28845. echo "$as_me: failed program was:" >&5
  28846. sed 's/^/| /' conftest.$ac_ext >&5
  28847. { echo "$as_me:$LINENO: result: no" >&5
  28848. echo "${ECHO_T}no" >&6; }
  28849. fi
  28850. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28851. fi
  28852. if test "$ac_cv_gethostbyname_r_args" = "unknown"; then
  28853. { echo "$as_me:$LINENO: WARNING: Cannot find out how to use gethostbyname_r" >&5
  28854. echo "$as_me: WARNING: Cannot find out how to use gethostbyname_r" >&2;}
  28855. { echo "$as_me:$LINENO: WARNING: HAVE_GETHOSTBYNAME_R will not be defined" >&5
  28856. echo "$as_me: WARNING: HAVE_GETHOSTBYNAME_R will not be defined" >&2;}
  28857. ac_cv_func_gethostbyname_r="no"
  28858. else
  28859. cat >>confdefs.h <<_ACEOF
  28860. #define HAVE_GETHOSTBYNAME_R 1
  28861. _ACEOF
  28862. ac_cv_func_gethostbyname_r="yes"
  28863. fi
  28864. else
  28865. ac_cv_func_gethostbyname_r="no"
  28866. fi
  28867. fi
  28868. for ac_func in inet_ntoa_r
  28869. do
  28870. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  28871. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  28872. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  28873. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  28874. echo $ECHO_N "(cached) $ECHO_C" >&6
  28875. else
  28876. cat >conftest.$ac_ext <<_ACEOF
  28877. /* confdefs.h. */
  28878. _ACEOF
  28879. cat confdefs.h >>conftest.$ac_ext
  28880. cat >>conftest.$ac_ext <<_ACEOF
  28881. /* end confdefs.h. */
  28882. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  28883. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  28884. #define $ac_func innocuous_$ac_func
  28885. /* System header to define __stub macros and hopefully few prototypes,
  28886. which can conflict with char $ac_func (); below.
  28887. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  28888. <limits.h> exists even on freestanding compilers. */
  28889. #ifdef __STDC__
  28890. # include <limits.h>
  28891. #else
  28892. # include <assert.h>
  28893. #endif
  28894. #undef $ac_func
  28895. /* Override any GCC internal prototype to avoid an error.
  28896. Use char because int might match the return type of a GCC
  28897. builtin and then its argument prototype would still apply. */
  28898. #ifdef __cplusplus
  28899. extern "C"
  28900. #endif
  28901. char $ac_func ();
  28902. /* The GNU C library defines this for functions which it implements
  28903. to always fail with ENOSYS. Some functions are actually named
  28904. something starting with __ and the normal name is an alias. */
  28905. #if defined __stub_$ac_func || defined __stub___$ac_func
  28906. choke me
  28907. #endif
  28908. int
  28909. main ()
  28910. {
  28911. return $ac_func ();
  28912. ;
  28913. return 0;
  28914. }
  28915. _ACEOF
  28916. rm -f conftest.$ac_objext conftest$ac_exeext
  28917. if { (ac_try="$ac_link"
  28918. case "(($ac_try" in
  28919. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28920. *) ac_try_echo=$ac_try;;
  28921. esac
  28922. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28923. (eval "$ac_link") 2>conftest.er1
  28924. ac_status=$?
  28925. grep -v '^ *+' conftest.er1 >conftest.err
  28926. rm -f conftest.er1
  28927. cat conftest.err >&5
  28928. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28929. (exit $ac_status); } && {
  28930. test -z "$ac_c_werror_flag" ||
  28931. test ! -s conftest.err
  28932. } && test -s conftest$ac_exeext &&
  28933. $as_test_x conftest$ac_exeext; then
  28934. eval "$as_ac_var=yes"
  28935. else
  28936. echo "$as_me: failed program was:" >&5
  28937. sed 's/^/| /' conftest.$ac_ext >&5
  28938. eval "$as_ac_var=no"
  28939. fi
  28940. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28941. conftest$ac_exeext conftest.$ac_ext
  28942. fi
  28943. ac_res=`eval echo '${'$as_ac_var'}'`
  28944. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28945. echo "${ECHO_T}$ac_res" >&6; }
  28946. if test `eval echo '${'$as_ac_var'}'` = yes; then
  28947. cat >>confdefs.h <<_ACEOF
  28948. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  28949. _ACEOF
  28950. { echo "$as_me:$LINENO: checking whether inet_ntoa_r is declared" >&5
  28951. echo $ECHO_N "checking whether inet_ntoa_r is declared... $ECHO_C" >&6; }
  28952. cat >conftest.$ac_ext <<_ACEOF
  28953. /* confdefs.h. */
  28954. _ACEOF
  28955. cat confdefs.h >>conftest.$ac_ext
  28956. cat >>conftest.$ac_ext <<_ACEOF
  28957. /* end confdefs.h. */
  28958. #undef _REENTRANT
  28959. #include <arpa/inet.h>
  28960. _ACEOF
  28961. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  28962. $EGREP "inet_ntoa_r" >/dev/null 2>&1; then
  28963. cat >>confdefs.h <<\_ACEOF
  28964. #define HAVE_INET_NTOA_R_DECL 1
  28965. _ACEOF
  28966. { echo "$as_me:$LINENO: result: yes" >&5
  28967. echo "${ECHO_T}yes" >&6; }
  28968. else
  28969. { echo "$as_me:$LINENO: result: no" >&5
  28970. echo "${ECHO_T}no" >&6; }
  28971. { echo "$as_me:$LINENO: checking whether inet_ntoa_r with -D_REENTRANT is declared" >&5
  28972. echo $ECHO_N "checking whether inet_ntoa_r with -D_REENTRANT is declared... $ECHO_C" >&6; }
  28973. cat >conftest.$ac_ext <<_ACEOF
  28974. /* confdefs.h. */
  28975. _ACEOF
  28976. cat confdefs.h >>conftest.$ac_ext
  28977. cat >>conftest.$ac_ext <<_ACEOF
  28978. /* end confdefs.h. */
  28979. #undef _REENTRANT
  28980. #define _REENTRANT
  28981. #include <arpa/inet.h>
  28982. _ACEOF
  28983. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  28984. $EGREP "inet_ntoa_r" >/dev/null 2>&1; then
  28985. cat >>confdefs.h <<\_ACEOF
  28986. #define HAVE_INET_NTOA_R_DECL 1
  28987. _ACEOF
  28988. { echo "$as_me:$LINENO: result: yes" >&5
  28989. echo "${ECHO_T}yes" >&6; }
  28990. else
  28991. { echo "$as_me:$LINENO: result: no" >&5
  28992. echo "${ECHO_T}no" >&6; }
  28993. fi
  28994. rm -f conftest*
  28995. fi
  28996. rm -f conftest*
  28997. fi
  28998. done
  28999. for ac_func in localtime_r
  29000. do
  29001. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  29002. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  29003. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  29004. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  29005. echo $ECHO_N "(cached) $ECHO_C" >&6
  29006. else
  29007. cat >conftest.$ac_ext <<_ACEOF
  29008. /* confdefs.h. */
  29009. _ACEOF
  29010. cat confdefs.h >>conftest.$ac_ext
  29011. cat >>conftest.$ac_ext <<_ACEOF
  29012. /* end confdefs.h. */
  29013. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  29014. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  29015. #define $ac_func innocuous_$ac_func
  29016. /* System header to define __stub macros and hopefully few prototypes,
  29017. which can conflict with char $ac_func (); below.
  29018. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  29019. <limits.h> exists even on freestanding compilers. */
  29020. #ifdef __STDC__
  29021. # include <limits.h>
  29022. #else
  29023. # include <assert.h>
  29024. #endif
  29025. #undef $ac_func
  29026. /* Override any GCC internal prototype to avoid an error.
  29027. Use char because int might match the return type of a GCC
  29028. builtin and then its argument prototype would still apply. */
  29029. #ifdef __cplusplus
  29030. extern "C"
  29031. #endif
  29032. char $ac_func ();
  29033. /* The GNU C library defines this for functions which it implements
  29034. to always fail with ENOSYS. Some functions are actually named
  29035. something starting with __ and the normal name is an alias. */
  29036. #if defined __stub_$ac_func || defined __stub___$ac_func
  29037. choke me
  29038. #endif
  29039. int
  29040. main ()
  29041. {
  29042. return $ac_func ();
  29043. ;
  29044. return 0;
  29045. }
  29046. _ACEOF
  29047. rm -f conftest.$ac_objext conftest$ac_exeext
  29048. if { (ac_try="$ac_link"
  29049. case "(($ac_try" in
  29050. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29051. *) ac_try_echo=$ac_try;;
  29052. esac
  29053. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29054. (eval "$ac_link") 2>conftest.er1
  29055. ac_status=$?
  29056. grep -v '^ *+' conftest.er1 >conftest.err
  29057. rm -f conftest.er1
  29058. cat conftest.err >&5
  29059. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29060. (exit $ac_status); } && {
  29061. test -z "$ac_c_werror_flag" ||
  29062. test ! -s conftest.err
  29063. } && test -s conftest$ac_exeext &&
  29064. $as_test_x conftest$ac_exeext; then
  29065. eval "$as_ac_var=yes"
  29066. else
  29067. echo "$as_me: failed program was:" >&5
  29068. sed 's/^/| /' conftest.$ac_ext >&5
  29069. eval "$as_ac_var=no"
  29070. fi
  29071. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  29072. conftest$ac_exeext conftest.$ac_ext
  29073. fi
  29074. ac_res=`eval echo '${'$as_ac_var'}'`
  29075. { echo "$as_me:$LINENO: result: $ac_res" >&5
  29076. echo "${ECHO_T}$ac_res" >&6; }
  29077. if test `eval echo '${'$as_ac_var'}'` = yes; then
  29078. cat >>confdefs.h <<_ACEOF
  29079. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  29080. _ACEOF
  29081. { echo "$as_me:$LINENO: checking whether localtime_r is declared" >&5
  29082. echo $ECHO_N "checking whether localtime_r is declared... $ECHO_C" >&6; }
  29083. cat >conftest.$ac_ext <<_ACEOF
  29084. /* confdefs.h. */
  29085. _ACEOF
  29086. cat confdefs.h >>conftest.$ac_ext
  29087. cat >>conftest.$ac_ext <<_ACEOF
  29088. /* end confdefs.h. */
  29089. #undef _REENTRANT
  29090. #include <time.h>
  29091. _ACEOF
  29092. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29093. $EGREP "localtime_r" >/dev/null 2>&1; then
  29094. { echo "$as_me:$LINENO: result: yes" >&5
  29095. echo "${ECHO_T}yes" >&6; }
  29096. else
  29097. { echo "$as_me:$LINENO: result: no" >&5
  29098. echo "${ECHO_T}no" >&6; }
  29099. { echo "$as_me:$LINENO: checking whether localtime_r with -D_REENTRANT is declared" >&5
  29100. echo $ECHO_N "checking whether localtime_r with -D_REENTRANT is declared... $ECHO_C" >&6; }
  29101. cat >conftest.$ac_ext <<_ACEOF
  29102. /* confdefs.h. */
  29103. _ACEOF
  29104. cat confdefs.h >>conftest.$ac_ext
  29105. cat >>conftest.$ac_ext <<_ACEOF
  29106. /* end confdefs.h. */
  29107. #undef _REENTRANT
  29108. #define _REENTRANT
  29109. #include <time.h>
  29110. _ACEOF
  29111. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29112. $EGREP "localtime_r" >/dev/null 2>&1; then
  29113. { echo "$as_me:$LINENO: result: yes" >&5
  29114. echo "${ECHO_T}yes" >&6; }
  29115. else
  29116. { echo "$as_me:$LINENO: result: no" >&5
  29117. echo "${ECHO_T}no" >&6; }
  29118. fi
  29119. rm -f conftest*
  29120. fi
  29121. rm -f conftest*
  29122. fi
  29123. done
  29124. for ac_func in strerror_r
  29125. do
  29126. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  29127. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  29128. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  29129. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  29130. echo $ECHO_N "(cached) $ECHO_C" >&6
  29131. else
  29132. cat >conftest.$ac_ext <<_ACEOF
  29133. /* confdefs.h. */
  29134. _ACEOF
  29135. cat confdefs.h >>conftest.$ac_ext
  29136. cat >>conftest.$ac_ext <<_ACEOF
  29137. /* end confdefs.h. */
  29138. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  29139. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  29140. #define $ac_func innocuous_$ac_func
  29141. /* System header to define __stub macros and hopefully few prototypes,
  29142. which can conflict with char $ac_func (); below.
  29143. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  29144. <limits.h> exists even on freestanding compilers. */
  29145. #ifdef __STDC__
  29146. # include <limits.h>
  29147. #else
  29148. # include <assert.h>
  29149. #endif
  29150. #undef $ac_func
  29151. /* Override any GCC internal prototype to avoid an error.
  29152. Use char because int might match the return type of a GCC
  29153. builtin and then its argument prototype would still apply. */
  29154. #ifdef __cplusplus
  29155. extern "C"
  29156. #endif
  29157. char $ac_func ();
  29158. /* The GNU C library defines this for functions which it implements
  29159. to always fail with ENOSYS. Some functions are actually named
  29160. something starting with __ and the normal name is an alias. */
  29161. #if defined __stub_$ac_func || defined __stub___$ac_func
  29162. choke me
  29163. #endif
  29164. int
  29165. main ()
  29166. {
  29167. return $ac_func ();
  29168. ;
  29169. return 0;
  29170. }
  29171. _ACEOF
  29172. rm -f conftest.$ac_objext conftest$ac_exeext
  29173. if { (ac_try="$ac_link"
  29174. case "(($ac_try" in
  29175. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29176. *) ac_try_echo=$ac_try;;
  29177. esac
  29178. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29179. (eval "$ac_link") 2>conftest.er1
  29180. ac_status=$?
  29181. grep -v '^ *+' conftest.er1 >conftest.err
  29182. rm -f conftest.er1
  29183. cat conftest.err >&5
  29184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29185. (exit $ac_status); } && {
  29186. test -z "$ac_c_werror_flag" ||
  29187. test ! -s conftest.err
  29188. } && test -s conftest$ac_exeext &&
  29189. $as_test_x conftest$ac_exeext; then
  29190. eval "$as_ac_var=yes"
  29191. else
  29192. echo "$as_me: failed program was:" >&5
  29193. sed 's/^/| /' conftest.$ac_ext >&5
  29194. eval "$as_ac_var=no"
  29195. fi
  29196. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  29197. conftest$ac_exeext conftest.$ac_ext
  29198. fi
  29199. ac_res=`eval echo '${'$as_ac_var'}'`
  29200. { echo "$as_me:$LINENO: result: $ac_res" >&5
  29201. echo "${ECHO_T}$ac_res" >&6; }
  29202. if test `eval echo '${'$as_ac_var'}'` = yes; then
  29203. cat >>confdefs.h <<_ACEOF
  29204. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  29205. _ACEOF
  29206. fi
  29207. done
  29208. if test "x$ac_cv_func_strerror_r" = "xyes"; then
  29209. { echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
  29210. echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
  29211. cat >conftest.$ac_ext <<_ACEOF
  29212. /* confdefs.h. */
  29213. _ACEOF
  29214. cat confdefs.h >>conftest.$ac_ext
  29215. cat >>conftest.$ac_ext <<_ACEOF
  29216. /* end confdefs.h. */
  29217. #undef _REENTRANT
  29218. #include <string.h>
  29219. _ACEOF
  29220. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29221. $EGREP "strerror_r" >/dev/null 2>&1; then
  29222. { echo "$as_me:$LINENO: result: yes" >&5
  29223. echo "${ECHO_T}yes" >&6; }
  29224. else
  29225. { echo "$as_me:$LINENO: result: no" >&5
  29226. echo "${ECHO_T}no" >&6; }
  29227. { echo "$as_me:$LINENO: checking whether strerror_r with -D_REENTRANT is declared" >&5
  29228. echo $ECHO_N "checking whether strerror_r with -D_REENTRANT is declared... $ECHO_C" >&6; }
  29229. cat >conftest.$ac_ext <<_ACEOF
  29230. /* confdefs.h. */
  29231. _ACEOF
  29232. cat confdefs.h >>conftest.$ac_ext
  29233. cat >>conftest.$ac_ext <<_ACEOF
  29234. /* end confdefs.h. */
  29235. #undef _REENTRANT
  29236. #define _REENTRANT
  29237. #include <string.h>
  29238. _ACEOF
  29239. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29240. $EGREP "strerror_r" >/dev/null 2>&1; then
  29241. { echo "$as_me:$LINENO: result: yes" >&5
  29242. echo "${ECHO_T}yes" >&6; }
  29243. else
  29244. { echo "$as_me:$LINENO: result: no" >&5
  29245. echo "${ECHO_T}no" >&6; }
  29246. cat >>confdefs.h <<\_ACEOF
  29247. #define HAVE_NO_STRERROR_R_DECL 1
  29248. _ACEOF
  29249. fi
  29250. rm -f conftest*
  29251. fi
  29252. rm -f conftest*
  29253. { echo "$as_me:$LINENO: checking for a glibc strerror_r API" >&5
  29254. echo $ECHO_N "checking for a glibc strerror_r API... $ECHO_C" >&6; }
  29255. if test "$cross_compiling" = yes; then
  29256. cat >conftest.$ac_ext <<_ACEOF
  29257. /* confdefs.h. */
  29258. _ACEOF
  29259. cat confdefs.h >>conftest.$ac_ext
  29260. cat >>conftest.$ac_ext <<_ACEOF
  29261. /* end confdefs.h. */
  29262. #include <features.h>
  29263. #ifdef __GLIBC__
  29264. yes
  29265. #endif
  29266. _ACEOF
  29267. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29268. $EGREP "yes" >/dev/null 2>&1; then
  29269. GLIBC_STRERROR_R="1"
  29270. cat >>confdefs.h <<\_ACEOF
  29271. #define HAVE_GLIBC_STRERROR_R 1
  29272. _ACEOF
  29273. { echo "$as_me:$LINENO: result: yes" >&5
  29274. echo "${ECHO_T}yes" >&6; }
  29275. else
  29276. { echo "$as_me:$LINENO: cannot determine strerror_r() style: edit lib/config.h manually!" >&5
  29277. echo "$as_me: cannot determine strerror_r() style: edit lib/config.h manually!" >&6;}
  29278. fi
  29279. rm -f conftest*
  29280. else
  29281. cat >conftest.$ac_ext <<_ACEOF
  29282. /* confdefs.h. */
  29283. _ACEOF
  29284. cat confdefs.h >>conftest.$ac_ext
  29285. cat >>conftest.$ac_ext <<_ACEOF
  29286. /* end confdefs.h. */
  29287. #include <string.h>
  29288. #include <errno.h>
  29289. int
  29290. main () {
  29291. char buffer[1024]; /* big enough to play with */
  29292. char *string =
  29293. strerror_r(EACCES, buffer, sizeof(buffer));
  29294. /* this should've returned a string */
  29295. if(!string || !string[0])
  29296. return 99;
  29297. return 0;
  29298. }
  29299. _ACEOF
  29300. rm -f conftest$ac_exeext
  29301. if { (ac_try="$ac_link"
  29302. case "(($ac_try" in
  29303. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29304. *) ac_try_echo=$ac_try;;
  29305. esac
  29306. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29307. (eval "$ac_link") 2>&5
  29308. ac_status=$?
  29309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29310. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  29311. { (case "(($ac_try" in
  29312. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29313. *) ac_try_echo=$ac_try;;
  29314. esac
  29315. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29316. (eval "$ac_try") 2>&5
  29317. ac_status=$?
  29318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29319. (exit $ac_status); }; }; then
  29320. GLIBC_STRERROR_R="1"
  29321. cat >>confdefs.h <<\_ACEOF
  29322. #define HAVE_GLIBC_STRERROR_R 1
  29323. _ACEOF
  29324. { echo "$as_me:$LINENO: result: yes" >&5
  29325. echo "${ECHO_T}yes" >&6; }
  29326. else
  29327. echo "$as_me: program exited with status $ac_status" >&5
  29328. echo "$as_me: failed program was:" >&5
  29329. sed 's/^/| /' conftest.$ac_ext >&5
  29330. ( exit $ac_status )
  29331. { echo "$as_me:$LINENO: result: no" >&5
  29332. echo "${ECHO_T}no" >&6; }
  29333. fi
  29334. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  29335. fi
  29336. if test -z "$GLIBC_STRERROR_R"; then
  29337. { echo "$as_me:$LINENO: checking for a POSIX strerror_r API" >&5
  29338. echo $ECHO_N "checking for a POSIX strerror_r API... $ECHO_C" >&6; }
  29339. if test "$cross_compiling" = yes; then
  29340. { echo "$as_me:$LINENO: cannot determine strerror_r() style: edit lib/config.h manually!" >&5
  29341. echo "$as_me: cannot determine strerror_r() style: edit lib/config.h manually!" >&6;}
  29342. else
  29343. cat >conftest.$ac_ext <<_ACEOF
  29344. /* confdefs.h. */
  29345. _ACEOF
  29346. cat confdefs.h >>conftest.$ac_ext
  29347. cat >>conftest.$ac_ext <<_ACEOF
  29348. /* end confdefs.h. */
  29349. #include <string.h>
  29350. #include <errno.h>
  29351. int
  29352. main () {
  29353. char buffer[1024]; /* big enough to play with */
  29354. int error =
  29355. strerror_r(EACCES, buffer, sizeof(buffer));
  29356. /* This should've returned zero, and written an error string in the
  29357. buffer.*/
  29358. if(!buffer[0] || error)
  29359. return 99;
  29360. return 0;
  29361. }
  29362. _ACEOF
  29363. rm -f conftest$ac_exeext
  29364. if { (ac_try="$ac_link"
  29365. case "(($ac_try" in
  29366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29367. *) ac_try_echo=$ac_try;;
  29368. esac
  29369. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29370. (eval "$ac_link") 2>&5
  29371. ac_status=$?
  29372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29373. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  29374. { (case "(($ac_try" in
  29375. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29376. *) ac_try_echo=$ac_try;;
  29377. esac
  29378. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29379. (eval "$ac_try") 2>&5
  29380. ac_status=$?
  29381. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29382. (exit $ac_status); }; }; then
  29383. cat >>confdefs.h <<\_ACEOF
  29384. #define HAVE_POSIX_STRERROR_R 1
  29385. _ACEOF
  29386. { echo "$as_me:$LINENO: result: yes" >&5
  29387. echo "${ECHO_T}yes" >&6; }
  29388. else
  29389. echo "$as_me: program exited with status $ac_status" >&5
  29390. echo "$as_me: failed program was:" >&5
  29391. sed 's/^/| /' conftest.$ac_ext >&5
  29392. ( exit $ac_status )
  29393. { echo "$as_me:$LINENO: result: no" >&5
  29394. echo "${ECHO_T}no" >&6; }
  29395. fi
  29396. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  29397. fi
  29398. fi
  29399. fi
  29400. checkfor_gmtime_r="yes"
  29401. fi
  29402. if test "x$RECENTAIX" = "xyes"; then
  29403. cat >>confdefs.h <<\_ACEOF
  29404. #define _THREAD_SAFE 1
  29405. _ACEOF
  29406. for ac_func in localtime_r
  29407. do
  29408. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  29409. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  29410. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  29411. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  29412. echo $ECHO_N "(cached) $ECHO_C" >&6
  29413. else
  29414. cat >conftest.$ac_ext <<_ACEOF
  29415. /* confdefs.h. */
  29416. _ACEOF
  29417. cat confdefs.h >>conftest.$ac_ext
  29418. cat >>conftest.$ac_ext <<_ACEOF
  29419. /* end confdefs.h. */
  29420. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  29421. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  29422. #define $ac_func innocuous_$ac_func
  29423. /* System header to define __stub macros and hopefully few prototypes,
  29424. which can conflict with char $ac_func (); below.
  29425. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  29426. <limits.h> exists even on freestanding compilers. */
  29427. #ifdef __STDC__
  29428. # include <limits.h>
  29429. #else
  29430. # include <assert.h>
  29431. #endif
  29432. #undef $ac_func
  29433. /* Override any GCC internal prototype to avoid an error.
  29434. Use char because int might match the return type of a GCC
  29435. builtin and then its argument prototype would still apply. */
  29436. #ifdef __cplusplus
  29437. extern "C"
  29438. #endif
  29439. char $ac_func ();
  29440. /* The GNU C library defines this for functions which it implements
  29441. to always fail with ENOSYS. Some functions are actually named
  29442. something starting with __ and the normal name is an alias. */
  29443. #if defined __stub_$ac_func || defined __stub___$ac_func
  29444. choke me
  29445. #endif
  29446. int
  29447. main ()
  29448. {
  29449. return $ac_func ();
  29450. ;
  29451. return 0;
  29452. }
  29453. _ACEOF
  29454. rm -f conftest.$ac_objext conftest$ac_exeext
  29455. if { (ac_try="$ac_link"
  29456. case "(($ac_try" in
  29457. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29458. *) ac_try_echo=$ac_try;;
  29459. esac
  29460. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29461. (eval "$ac_link") 2>conftest.er1
  29462. ac_status=$?
  29463. grep -v '^ *+' conftest.er1 >conftest.err
  29464. rm -f conftest.er1
  29465. cat conftest.err >&5
  29466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29467. (exit $ac_status); } && {
  29468. test -z "$ac_c_werror_flag" ||
  29469. test ! -s conftest.err
  29470. } && test -s conftest$ac_exeext &&
  29471. $as_test_x conftest$ac_exeext; then
  29472. eval "$as_ac_var=yes"
  29473. else
  29474. echo "$as_me: failed program was:" >&5
  29475. sed 's/^/| /' conftest.$ac_ext >&5
  29476. eval "$as_ac_var=no"
  29477. fi
  29478. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  29479. conftest$ac_exeext conftest.$ac_ext
  29480. fi
  29481. ac_res=`eval echo '${'$as_ac_var'}'`
  29482. { echo "$as_me:$LINENO: result: $ac_res" >&5
  29483. echo "${ECHO_T}$ac_res" >&6; }
  29484. if test `eval echo '${'$as_ac_var'}'` = yes; then
  29485. cat >>confdefs.h <<_ACEOF
  29486. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  29487. _ACEOF
  29488. { echo "$as_me:$LINENO: checking whether localtime_r is declared" >&5
  29489. echo $ECHO_N "checking whether localtime_r is declared... $ECHO_C" >&6; }
  29490. cat >conftest.$ac_ext <<_ACEOF
  29491. /* confdefs.h. */
  29492. _ACEOF
  29493. cat confdefs.h >>conftest.$ac_ext
  29494. cat >>conftest.$ac_ext <<_ACEOF
  29495. /* end confdefs.h. */
  29496. #undef _REENTRANT
  29497. #include <time.h>
  29498. _ACEOF
  29499. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29500. $EGREP "localtime_r" >/dev/null 2>&1; then
  29501. { echo "$as_me:$LINENO: result: yes" >&5
  29502. echo "${ECHO_T}yes" >&6; }
  29503. else
  29504. { echo "$as_me:$LINENO: result: no" >&5
  29505. echo "${ECHO_T}no" >&6; }
  29506. { echo "$as_me:$LINENO: checking whether localtime_r with -D_REENTRANT is declared" >&5
  29507. echo $ECHO_N "checking whether localtime_r with -D_REENTRANT is declared... $ECHO_C" >&6; }
  29508. cat >conftest.$ac_ext <<_ACEOF
  29509. /* confdefs.h. */
  29510. _ACEOF
  29511. cat confdefs.h >>conftest.$ac_ext
  29512. cat >>conftest.$ac_ext <<_ACEOF
  29513. /* end confdefs.h. */
  29514. #undef _REENTRANT
  29515. #define _REENTRANT
  29516. #include <time.h>
  29517. _ACEOF
  29518. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29519. $EGREP "localtime_r" >/dev/null 2>&1; then
  29520. { echo "$as_me:$LINENO: result: yes" >&5
  29521. echo "${ECHO_T}yes" >&6; }
  29522. else
  29523. { echo "$as_me:$LINENO: result: no" >&5
  29524. echo "${ECHO_T}no" >&6; }
  29525. fi
  29526. rm -f conftest*
  29527. fi
  29528. rm -f conftest*
  29529. fi
  29530. done
  29531. for ac_func in strerror_r
  29532. do
  29533. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  29534. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  29535. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  29536. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  29537. echo $ECHO_N "(cached) $ECHO_C" >&6
  29538. else
  29539. cat >conftest.$ac_ext <<_ACEOF
  29540. /* confdefs.h. */
  29541. _ACEOF
  29542. cat confdefs.h >>conftest.$ac_ext
  29543. cat >>conftest.$ac_ext <<_ACEOF
  29544. /* end confdefs.h. */
  29545. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  29546. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  29547. #define $ac_func innocuous_$ac_func
  29548. /* System header to define __stub macros and hopefully few prototypes,
  29549. which can conflict with char $ac_func (); below.
  29550. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  29551. <limits.h> exists even on freestanding compilers. */
  29552. #ifdef __STDC__
  29553. # include <limits.h>
  29554. #else
  29555. # include <assert.h>
  29556. #endif
  29557. #undef $ac_func
  29558. /* Override any GCC internal prototype to avoid an error.
  29559. Use char because int might match the return type of a GCC
  29560. builtin and then its argument prototype would still apply. */
  29561. #ifdef __cplusplus
  29562. extern "C"
  29563. #endif
  29564. char $ac_func ();
  29565. /* The GNU C library defines this for functions which it implements
  29566. to always fail with ENOSYS. Some functions are actually named
  29567. something starting with __ and the normal name is an alias. */
  29568. #if defined __stub_$ac_func || defined __stub___$ac_func
  29569. choke me
  29570. #endif
  29571. int
  29572. main ()
  29573. {
  29574. return $ac_func ();
  29575. ;
  29576. return 0;
  29577. }
  29578. _ACEOF
  29579. rm -f conftest.$ac_objext conftest$ac_exeext
  29580. if { (ac_try="$ac_link"
  29581. case "(($ac_try" in
  29582. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29583. *) ac_try_echo=$ac_try;;
  29584. esac
  29585. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29586. (eval "$ac_link") 2>conftest.er1
  29587. ac_status=$?
  29588. grep -v '^ *+' conftest.er1 >conftest.err
  29589. rm -f conftest.er1
  29590. cat conftest.err >&5
  29591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29592. (exit $ac_status); } && {
  29593. test -z "$ac_c_werror_flag" ||
  29594. test ! -s conftest.err
  29595. } && test -s conftest$ac_exeext &&
  29596. $as_test_x conftest$ac_exeext; then
  29597. eval "$as_ac_var=yes"
  29598. else
  29599. echo "$as_me: failed program was:" >&5
  29600. sed 's/^/| /' conftest.$ac_ext >&5
  29601. eval "$as_ac_var=no"
  29602. fi
  29603. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  29604. conftest$ac_exeext conftest.$ac_ext
  29605. fi
  29606. ac_res=`eval echo '${'$as_ac_var'}'`
  29607. { echo "$as_me:$LINENO: result: $ac_res" >&5
  29608. echo "${ECHO_T}$ac_res" >&6; }
  29609. if test `eval echo '${'$as_ac_var'}'` = yes; then
  29610. cat >>confdefs.h <<_ACEOF
  29611. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  29612. _ACEOF
  29613. fi
  29614. done
  29615. if test "x$ac_cv_func_strerror_r" = "xyes"; then
  29616. { echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
  29617. echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
  29618. cat >conftest.$ac_ext <<_ACEOF
  29619. /* confdefs.h. */
  29620. _ACEOF
  29621. cat confdefs.h >>conftest.$ac_ext
  29622. cat >>conftest.$ac_ext <<_ACEOF
  29623. /* end confdefs.h. */
  29624. #undef _REENTRANT
  29625. #include <string.h>
  29626. _ACEOF
  29627. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29628. $EGREP "strerror_r" >/dev/null 2>&1; then
  29629. { echo "$as_me:$LINENO: result: yes" >&5
  29630. echo "${ECHO_T}yes" >&6; }
  29631. else
  29632. { echo "$as_me:$LINENO: result: no" >&5
  29633. echo "${ECHO_T}no" >&6; }
  29634. { echo "$as_me:$LINENO: checking whether strerror_r with -D_REENTRANT is declared" >&5
  29635. echo $ECHO_N "checking whether strerror_r with -D_REENTRANT is declared... $ECHO_C" >&6; }
  29636. cat >conftest.$ac_ext <<_ACEOF
  29637. /* confdefs.h. */
  29638. _ACEOF
  29639. cat confdefs.h >>conftest.$ac_ext
  29640. cat >>conftest.$ac_ext <<_ACEOF
  29641. /* end confdefs.h. */
  29642. #undef _REENTRANT
  29643. #define _REENTRANT
  29644. #include <string.h>
  29645. _ACEOF
  29646. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29647. $EGREP "strerror_r" >/dev/null 2>&1; then
  29648. { echo "$as_me:$LINENO: result: yes" >&5
  29649. echo "${ECHO_T}yes" >&6; }
  29650. else
  29651. { echo "$as_me:$LINENO: result: no" >&5
  29652. echo "${ECHO_T}no" >&6; }
  29653. cat >>confdefs.h <<\_ACEOF
  29654. #define HAVE_NO_STRERROR_R_DECL 1
  29655. _ACEOF
  29656. fi
  29657. rm -f conftest*
  29658. fi
  29659. rm -f conftest*
  29660. { echo "$as_me:$LINENO: checking for a glibc strerror_r API" >&5
  29661. echo $ECHO_N "checking for a glibc strerror_r API... $ECHO_C" >&6; }
  29662. if test "$cross_compiling" = yes; then
  29663. cat >conftest.$ac_ext <<_ACEOF
  29664. /* confdefs.h. */
  29665. _ACEOF
  29666. cat confdefs.h >>conftest.$ac_ext
  29667. cat >>conftest.$ac_ext <<_ACEOF
  29668. /* end confdefs.h. */
  29669. #include <features.h>
  29670. #ifdef __GLIBC__
  29671. yes
  29672. #endif
  29673. _ACEOF
  29674. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29675. $EGREP "yes" >/dev/null 2>&1; then
  29676. GLIBC_STRERROR_R="1"
  29677. cat >>confdefs.h <<\_ACEOF
  29678. #define HAVE_GLIBC_STRERROR_R 1
  29679. _ACEOF
  29680. { echo "$as_me:$LINENO: result: yes" >&5
  29681. echo "${ECHO_T}yes" >&6; }
  29682. else
  29683. { echo "$as_me:$LINENO: cannot determine strerror_r() style: edit lib/config.h manually!" >&5
  29684. echo "$as_me: cannot determine strerror_r() style: edit lib/config.h manually!" >&6;}
  29685. fi
  29686. rm -f conftest*
  29687. else
  29688. cat >conftest.$ac_ext <<_ACEOF
  29689. /* confdefs.h. */
  29690. _ACEOF
  29691. cat confdefs.h >>conftest.$ac_ext
  29692. cat >>conftest.$ac_ext <<_ACEOF
  29693. /* end confdefs.h. */
  29694. #include <string.h>
  29695. #include <errno.h>
  29696. int
  29697. main () {
  29698. char buffer[1024]; /* big enough to play with */
  29699. char *string =
  29700. strerror_r(EACCES, buffer, sizeof(buffer));
  29701. /* this should've returned a string */
  29702. if(!string || !string[0])
  29703. return 99;
  29704. return 0;
  29705. }
  29706. _ACEOF
  29707. rm -f conftest$ac_exeext
  29708. if { (ac_try="$ac_link"
  29709. case "(($ac_try" in
  29710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29711. *) ac_try_echo=$ac_try;;
  29712. esac
  29713. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29714. (eval "$ac_link") 2>&5
  29715. ac_status=$?
  29716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29717. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  29718. { (case "(($ac_try" in
  29719. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29720. *) ac_try_echo=$ac_try;;
  29721. esac
  29722. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29723. (eval "$ac_try") 2>&5
  29724. ac_status=$?
  29725. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29726. (exit $ac_status); }; }; then
  29727. GLIBC_STRERROR_R="1"
  29728. cat >>confdefs.h <<\_ACEOF
  29729. #define HAVE_GLIBC_STRERROR_R 1
  29730. _ACEOF
  29731. { echo "$as_me:$LINENO: result: yes" >&5
  29732. echo "${ECHO_T}yes" >&6; }
  29733. else
  29734. echo "$as_me: program exited with status $ac_status" >&5
  29735. echo "$as_me: failed program was:" >&5
  29736. sed 's/^/| /' conftest.$ac_ext >&5
  29737. ( exit $ac_status )
  29738. { echo "$as_me:$LINENO: result: no" >&5
  29739. echo "${ECHO_T}no" >&6; }
  29740. fi
  29741. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  29742. fi
  29743. if test -z "$GLIBC_STRERROR_R"; then
  29744. { echo "$as_me:$LINENO: checking for a POSIX strerror_r API" >&5
  29745. echo $ECHO_N "checking for a POSIX strerror_r API... $ECHO_C" >&6; }
  29746. if test "$cross_compiling" = yes; then
  29747. { echo "$as_me:$LINENO: cannot determine strerror_r() style: edit lib/config.h manually!" >&5
  29748. echo "$as_me: cannot determine strerror_r() style: edit lib/config.h manually!" >&6;}
  29749. else
  29750. cat >conftest.$ac_ext <<_ACEOF
  29751. /* confdefs.h. */
  29752. _ACEOF
  29753. cat confdefs.h >>conftest.$ac_ext
  29754. cat >>conftest.$ac_ext <<_ACEOF
  29755. /* end confdefs.h. */
  29756. #include <string.h>
  29757. #include <errno.h>
  29758. int
  29759. main () {
  29760. char buffer[1024]; /* big enough to play with */
  29761. int error =
  29762. strerror_r(EACCES, buffer, sizeof(buffer));
  29763. /* This should've returned zero, and written an error string in the
  29764. buffer.*/
  29765. if(!buffer[0] || error)
  29766. return 99;
  29767. return 0;
  29768. }
  29769. _ACEOF
  29770. rm -f conftest$ac_exeext
  29771. if { (ac_try="$ac_link"
  29772. case "(($ac_try" in
  29773. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29774. *) ac_try_echo=$ac_try;;
  29775. esac
  29776. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29777. (eval "$ac_link") 2>&5
  29778. ac_status=$?
  29779. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29780. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  29781. { (case "(($ac_try" in
  29782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29783. *) ac_try_echo=$ac_try;;
  29784. esac
  29785. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29786. (eval "$ac_try") 2>&5
  29787. ac_status=$?
  29788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29789. (exit $ac_status); }; }; then
  29790. cat >>confdefs.h <<\_ACEOF
  29791. #define HAVE_POSIX_STRERROR_R 1
  29792. _ACEOF
  29793. { echo "$as_me:$LINENO: result: yes" >&5
  29794. echo "${ECHO_T}yes" >&6; }
  29795. else
  29796. echo "$as_me: program exited with status $ac_status" >&5
  29797. echo "$as_me: failed program was:" >&5
  29798. sed 's/^/| /' conftest.$ac_ext >&5
  29799. ( exit $ac_status )
  29800. { echo "$as_me:$LINENO: result: no" >&5
  29801. echo "${ECHO_T}no" >&6; }
  29802. fi
  29803. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  29804. fi
  29805. fi
  29806. fi
  29807. checkfor_gmtime_r="yes"
  29808. fi
  29809. if test x$cross_compiling != xyes; then
  29810. if test x$checkfor_gmtime_r = xyes; then
  29811. { echo "$as_me:$LINENO: checking if gmtime_r exists and works" >&5
  29812. echo $ECHO_N "checking if gmtime_r exists and works... $ECHO_C" >&6; }
  29813. if test "$cross_compiling" = yes; then
  29814. echo "hej"
  29815. else
  29816. cat >conftest.$ac_ext <<_ACEOF
  29817. #include <time.h>
  29818. int main(void)
  29819. {
  29820. time_t local = 1170352587;
  29821. struct tm *gmt;
  29822. struct tm keeper;
  29823. putenv("TZ=CST6CDT");
  29824. tzset();
  29825. gmt = gmtime_r(&local, &keeper);
  29826. if(gmt) {
  29827. return 0;
  29828. }
  29829. return 1; /* failure */
  29830. }
  29831. _ACEOF
  29832. rm -f conftest$ac_exeext
  29833. if { (ac_try="$ac_link"
  29834. case "(($ac_try" in
  29835. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29836. *) ac_try_echo=$ac_try;;
  29837. esac
  29838. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29839. (eval "$ac_link") 2>&5
  29840. ac_status=$?
  29841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29842. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  29843. { (case "(($ac_try" in
  29844. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29845. *) ac_try_echo=$ac_try;;
  29846. esac
  29847. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29848. (eval "$ac_try") 2>&5
  29849. ac_status=$?
  29850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29851. (exit $ac_status); }; }; then
  29852. { echo "$as_me:$LINENO: result: yes" >&5
  29853. echo "${ECHO_T}yes" >&6; }
  29854. cat >>confdefs.h <<\_ACEOF
  29855. #define HAVE_GMTIME_R 1
  29856. _ACEOF
  29857. else
  29858. echo "$as_me: program exited with status $ac_status" >&5
  29859. echo "$as_me: failed program was:" >&5
  29860. sed 's/^/| /' conftest.$ac_ext >&5
  29861. ( exit $ac_status )
  29862. { echo "$as_me:$LINENO: result: no" >&5
  29863. echo "${ECHO_T}no" >&6; }
  29864. fi
  29865. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  29866. fi
  29867. fi
  29868. else
  29869. for ac_func in gmtime_r
  29870. do
  29871. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  29872. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  29873. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  29874. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  29875. echo $ECHO_N "(cached) $ECHO_C" >&6
  29876. else
  29877. cat >conftest.$ac_ext <<_ACEOF
  29878. /* confdefs.h. */
  29879. _ACEOF
  29880. cat confdefs.h >>conftest.$ac_ext
  29881. cat >>conftest.$ac_ext <<_ACEOF
  29882. /* end confdefs.h. */
  29883. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  29884. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  29885. #define $ac_func innocuous_$ac_func
  29886. /* System header to define __stub macros and hopefully few prototypes,
  29887. which can conflict with char $ac_func (); below.
  29888. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  29889. <limits.h> exists even on freestanding compilers. */
  29890. #ifdef __STDC__
  29891. # include <limits.h>
  29892. #else
  29893. # include <assert.h>
  29894. #endif
  29895. #undef $ac_func
  29896. /* Override any GCC internal prototype to avoid an error.
  29897. Use char because int might match the return type of a GCC
  29898. builtin and then its argument prototype would still apply. */
  29899. #ifdef __cplusplus
  29900. extern "C"
  29901. #endif
  29902. char $ac_func ();
  29903. /* The GNU C library defines this for functions which it implements
  29904. to always fail with ENOSYS. Some functions are actually named
  29905. something starting with __ and the normal name is an alias. */
  29906. #if defined __stub_$ac_func || defined __stub___$ac_func
  29907. choke me
  29908. #endif
  29909. int
  29910. main ()
  29911. {
  29912. return $ac_func ();
  29913. ;
  29914. return 0;
  29915. }
  29916. _ACEOF
  29917. rm -f conftest.$ac_objext conftest$ac_exeext
  29918. if { (ac_try="$ac_link"
  29919. case "(($ac_try" in
  29920. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29921. *) ac_try_echo=$ac_try;;
  29922. esac
  29923. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29924. (eval "$ac_link") 2>conftest.er1
  29925. ac_status=$?
  29926. grep -v '^ *+' conftest.er1 >conftest.err
  29927. rm -f conftest.er1
  29928. cat conftest.err >&5
  29929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29930. (exit $ac_status); } && {
  29931. test -z "$ac_c_werror_flag" ||
  29932. test ! -s conftest.err
  29933. } && test -s conftest$ac_exeext &&
  29934. $as_test_x conftest$ac_exeext; then
  29935. eval "$as_ac_var=yes"
  29936. else
  29937. echo "$as_me: failed program was:" >&5
  29938. sed 's/^/| /' conftest.$ac_ext >&5
  29939. eval "$as_ac_var=no"
  29940. fi
  29941. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  29942. conftest$ac_exeext conftest.$ac_ext
  29943. fi
  29944. ac_res=`eval echo '${'$as_ac_var'}'`
  29945. { echo "$as_me:$LINENO: result: $ac_res" >&5
  29946. echo "${ECHO_T}$ac_res" >&6; }
  29947. if test `eval echo '${'$as_ac_var'}'` = yes; then
  29948. cat >>confdefs.h <<_ACEOF
  29949. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  29950. _ACEOF
  29951. fi
  29952. done
  29953. fi
  29954. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  29955. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  29956. if test "${ac_cv_header_stdc+set}" = set; then
  29957. echo $ECHO_N "(cached) $ECHO_C" >&6
  29958. else
  29959. cat >conftest.$ac_ext <<_ACEOF
  29960. /* confdefs.h. */
  29961. _ACEOF
  29962. cat confdefs.h >>conftest.$ac_ext
  29963. cat >>conftest.$ac_ext <<_ACEOF
  29964. /* end confdefs.h. */
  29965. #include <stdlib.h>
  29966. #include <stdarg.h>
  29967. #include <string.h>
  29968. #include <float.h>
  29969. int
  29970. main ()
  29971. {
  29972. ;
  29973. return 0;
  29974. }
  29975. _ACEOF
  29976. rm -f conftest.$ac_objext
  29977. if { (ac_try="$ac_compile"
  29978. case "(($ac_try" in
  29979. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29980. *) ac_try_echo=$ac_try;;
  29981. esac
  29982. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29983. (eval "$ac_compile") 2>conftest.er1
  29984. ac_status=$?
  29985. grep -v '^ *+' conftest.er1 >conftest.err
  29986. rm -f conftest.er1
  29987. cat conftest.err >&5
  29988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29989. (exit $ac_status); } && {
  29990. test -z "$ac_c_werror_flag" ||
  29991. test ! -s conftest.err
  29992. } && test -s conftest.$ac_objext; then
  29993. ac_cv_header_stdc=yes
  29994. else
  29995. echo "$as_me: failed program was:" >&5
  29996. sed 's/^/| /' conftest.$ac_ext >&5
  29997. ac_cv_header_stdc=no
  29998. fi
  29999. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30000. if test $ac_cv_header_stdc = yes; then
  30001. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  30002. cat >conftest.$ac_ext <<_ACEOF
  30003. /* confdefs.h. */
  30004. _ACEOF
  30005. cat confdefs.h >>conftest.$ac_ext
  30006. cat >>conftest.$ac_ext <<_ACEOF
  30007. /* end confdefs.h. */
  30008. #include <string.h>
  30009. _ACEOF
  30010. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30011. $EGREP "memchr" >/dev/null 2>&1; then
  30012. :
  30013. else
  30014. ac_cv_header_stdc=no
  30015. fi
  30016. rm -f conftest*
  30017. fi
  30018. if test $ac_cv_header_stdc = yes; then
  30019. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  30020. cat >conftest.$ac_ext <<_ACEOF
  30021. /* confdefs.h. */
  30022. _ACEOF
  30023. cat confdefs.h >>conftest.$ac_ext
  30024. cat >>conftest.$ac_ext <<_ACEOF
  30025. /* end confdefs.h. */
  30026. #include <stdlib.h>
  30027. _ACEOF
  30028. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30029. $EGREP "free" >/dev/null 2>&1; then
  30030. :
  30031. else
  30032. ac_cv_header_stdc=no
  30033. fi
  30034. rm -f conftest*
  30035. fi
  30036. if test $ac_cv_header_stdc = yes; then
  30037. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  30038. if test "$cross_compiling" = yes; then
  30039. :
  30040. else
  30041. cat >conftest.$ac_ext <<_ACEOF
  30042. /* confdefs.h. */
  30043. _ACEOF
  30044. cat confdefs.h >>conftest.$ac_ext
  30045. cat >>conftest.$ac_ext <<_ACEOF
  30046. /* end confdefs.h. */
  30047. #include <ctype.h>
  30048. #include <stdlib.h>
  30049. #if ((' ' & 0x0FF) == 0x020)
  30050. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  30051. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  30052. #else
  30053. # define ISLOWER(c) \
  30054. (('a' <= (c) && (c) <= 'i') \
  30055. || ('j' <= (c) && (c) <= 'r') \
  30056. || ('s' <= (c) && (c) <= 'z'))
  30057. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  30058. #endif
  30059. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  30060. int
  30061. main ()
  30062. {
  30063. int i;
  30064. for (i = 0; i < 256; i++)
  30065. if (XOR (islower (i), ISLOWER (i))
  30066. || toupper (i) != TOUPPER (i))
  30067. return 2;
  30068. return 0;
  30069. }
  30070. _ACEOF
  30071. rm -f conftest$ac_exeext
  30072. if { (ac_try="$ac_link"
  30073. case "(($ac_try" in
  30074. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30075. *) ac_try_echo=$ac_try;;
  30076. esac
  30077. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30078. (eval "$ac_link") 2>&5
  30079. ac_status=$?
  30080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30081. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  30082. { (case "(($ac_try" in
  30083. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30084. *) ac_try_echo=$ac_try;;
  30085. esac
  30086. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30087. (eval "$ac_try") 2>&5
  30088. ac_status=$?
  30089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30090. (exit $ac_status); }; }; then
  30091. :
  30092. else
  30093. echo "$as_me: program exited with status $ac_status" >&5
  30094. echo "$as_me: failed program was:" >&5
  30095. sed 's/^/| /' conftest.$ac_ext >&5
  30096. ( exit $ac_status )
  30097. ac_cv_header_stdc=no
  30098. fi
  30099. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  30100. fi
  30101. fi
  30102. fi
  30103. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  30104. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  30105. if test $ac_cv_header_stdc = yes; then
  30106. cat >>confdefs.h <<\_ACEOF
  30107. #define STDC_HEADERS 1
  30108. _ACEOF
  30109. fi
  30110. { echo "$as_me:$LINENO: checking for malloc.h" >&5
  30111. echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; }
  30112. if test "${ac_cv_header_malloc_h+set}" = set; then
  30113. echo $ECHO_N "(cached) $ECHO_C" >&6
  30114. else
  30115. cat >conftest.$ac_ext <<_ACEOF
  30116. /* confdefs.h. */
  30117. _ACEOF
  30118. cat confdefs.h >>conftest.$ac_ext
  30119. cat >>conftest.$ac_ext <<_ACEOF
  30120. /* end confdefs.h. */
  30121. #include <malloc.h>
  30122. int
  30123. main ()
  30124. {
  30125. void *p = malloc(10);
  30126. void *q = calloc(10,10);
  30127. free(p);
  30128. free(q);
  30129. ;
  30130. return 0;
  30131. }
  30132. _ACEOF
  30133. rm -f conftest.$ac_objext
  30134. if { (ac_try="$ac_compile"
  30135. case "(($ac_try" in
  30136. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30137. *) ac_try_echo=$ac_try;;
  30138. esac
  30139. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30140. (eval "$ac_compile") 2>conftest.er1
  30141. ac_status=$?
  30142. grep -v '^ *+' conftest.er1 >conftest.err
  30143. rm -f conftest.er1
  30144. cat conftest.err >&5
  30145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30146. (exit $ac_status); } && {
  30147. test -z "$ac_c_werror_flag" ||
  30148. test ! -s conftest.err
  30149. } && test -s conftest.$ac_objext; then
  30150. ac_cv_header_malloc_h="yes"
  30151. else
  30152. echo "$as_me: failed program was:" >&5
  30153. sed 's/^/| /' conftest.$ac_ext >&5
  30154. ac_cv_header_malloc_h="no"
  30155. fi
  30156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30157. fi
  30158. { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
  30159. echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; }
  30160. if test "$ac_cv_header_malloc_h" = "yes"; then
  30161. cat >>confdefs.h <<_ACEOF
  30162. #define HAVE_MALLOC_H 1
  30163. _ACEOF
  30164. #
  30165. cat >conftest.$ac_ext <<_ACEOF
  30166. /* confdefs.h. */
  30167. _ACEOF
  30168. cat confdefs.h >>conftest.$ac_ext
  30169. cat >>conftest.$ac_ext <<_ACEOF
  30170. /* end confdefs.h. */
  30171. #include <stdlib.h>
  30172. int
  30173. main ()
  30174. {
  30175. void *p = malloc(10);
  30176. void *q = calloc(10,10);
  30177. free(p);
  30178. free(q);
  30179. ;
  30180. return 0;
  30181. }
  30182. _ACEOF
  30183. rm -f conftest.$ac_objext
  30184. if { (ac_try="$ac_compile"
  30185. case "(($ac_try" in
  30186. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30187. *) ac_try_echo=$ac_try;;
  30188. esac
  30189. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30190. (eval "$ac_compile") 2>conftest.er1
  30191. ac_status=$?
  30192. grep -v '^ *+' conftest.er1 >conftest.err
  30193. rm -f conftest.er1
  30194. cat conftest.err >&5
  30195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30196. (exit $ac_status); } && {
  30197. test -z "$ac_c_werror_flag" ||
  30198. test ! -s conftest.err
  30199. } && test -s conftest.$ac_objext; then
  30200. curl_cv_need_header_malloc_h="no"
  30201. else
  30202. echo "$as_me: failed program was:" >&5
  30203. sed 's/^/| /' conftest.$ac_ext >&5
  30204. curl_cv_need_header_malloc_h="yes"
  30205. fi
  30206. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30207. #
  30208. case "$curl_cv_need_header_malloc_h" in
  30209. yes)
  30210. cat >>confdefs.h <<_ACEOF
  30211. #define NEED_MALLOC_H 1
  30212. _ACEOF
  30213. ;;
  30214. esac
  30215. fi
  30216. for ac_header in sys/types.h \
  30217. sys/time.h \
  30218. sys/select.h \
  30219. sys/socket.h \
  30220. sys/ioctl.h \
  30221. assert.h \
  30222. unistd.h \
  30223. stdlib.h \
  30224. limits.h \
  30225. arpa/inet.h \
  30226. net/if.h \
  30227. netinet/in.h \
  30228. sys/un.h \
  30229. netinet/tcp.h \
  30230. netdb.h \
  30231. sys/sockio.h \
  30232. sys/stat.h \
  30233. sys/param.h \
  30234. termios.h \
  30235. termio.h \
  30236. sgtty.h \
  30237. fcntl.h \
  30238. alloca.h \
  30239. time.h \
  30240. io.h \
  30241. pwd.h \
  30242. utime.h \
  30243. sys/utime.h \
  30244. sys/poll.h \
  30245. poll.h \
  30246. sys/resource.h \
  30247. libgen.h \
  30248. locale.h \
  30249. errno.h \
  30250. stdbool.h \
  30251. arpa/tftp.h \
  30252. sys/filio.h \
  30253. setjmp.h
  30254. do
  30255. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  30256. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  30257. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  30258. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  30259. echo $ECHO_N "(cached) $ECHO_C" >&6
  30260. else
  30261. cat >conftest.$ac_ext <<_ACEOF
  30262. /* confdefs.h. */
  30263. _ACEOF
  30264. cat confdefs.h >>conftest.$ac_ext
  30265. cat >>conftest.$ac_ext <<_ACEOF
  30266. /* end confdefs.h. */
  30267. #ifdef HAVE_SYS_TYPES_H
  30268. #include <sys/types.h>
  30269. #endif
  30270. #ifdef HAVE_SYS_TIME_H
  30271. #include <sys/time.h>
  30272. #endif
  30273. #ifdef HAVE_SYS_SELECT_H
  30274. #include <sys/select.h>
  30275. #endif
  30276. #ifdef HAVE_SYS_SOCKET_H
  30277. #include <sys/socket.h>
  30278. #endif
  30279. #ifdef HAVE_NETINET_IN_H
  30280. #include <netinet/in.h>
  30281. #endif
  30282. #ifdef HAVE_SYS_UN_H
  30283. #include <sys/un.h>
  30284. #endif
  30285. #include <$ac_header>
  30286. _ACEOF
  30287. rm -f conftest.$ac_objext
  30288. if { (ac_try="$ac_compile"
  30289. case "(($ac_try" in
  30290. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30291. *) ac_try_echo=$ac_try;;
  30292. esac
  30293. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30294. (eval "$ac_compile") 2>conftest.er1
  30295. ac_status=$?
  30296. grep -v '^ *+' conftest.er1 >conftest.err
  30297. rm -f conftest.er1
  30298. cat conftest.err >&5
  30299. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30300. (exit $ac_status); } && {
  30301. test -z "$ac_c_werror_flag" ||
  30302. test ! -s conftest.err
  30303. } && test -s conftest.$ac_objext; then
  30304. eval "$as_ac_Header=yes"
  30305. else
  30306. echo "$as_me: failed program was:" >&5
  30307. sed 's/^/| /' conftest.$ac_ext >&5
  30308. eval "$as_ac_Header=no"
  30309. fi
  30310. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30311. fi
  30312. ac_res=`eval echo '${'$as_ac_Header'}'`
  30313. { echo "$as_me:$LINENO: result: $ac_res" >&5
  30314. echo "${ECHO_T}$ac_res" >&6; }
  30315. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  30316. cat >>confdefs.h <<_ACEOF
  30317. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  30318. _ACEOF
  30319. fi
  30320. done
  30321. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  30322. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  30323. if test "${ac_cv_c_const+set}" = set; then
  30324. echo $ECHO_N "(cached) $ECHO_C" >&6
  30325. else
  30326. cat >conftest.$ac_ext <<_ACEOF
  30327. /* confdefs.h. */
  30328. _ACEOF
  30329. cat confdefs.h >>conftest.$ac_ext
  30330. cat >>conftest.$ac_ext <<_ACEOF
  30331. /* end confdefs.h. */
  30332. int
  30333. main ()
  30334. {
  30335. /* FIXME: Include the comments suggested by Paul. */
  30336. #ifndef __cplusplus
  30337. /* Ultrix mips cc rejects this. */
  30338. typedef int charset[2];
  30339. const charset cs;
  30340. /* SunOS 4.1.1 cc rejects this. */
  30341. char const *const *pcpcc;
  30342. char **ppc;
  30343. /* NEC SVR4.0.2 mips cc rejects this. */
  30344. struct point {int x, y;};
  30345. static struct point const zero = {0,0};
  30346. /* AIX XL C 1.02.0.0 rejects this.
  30347. It does not let you subtract one const X* pointer from another in
  30348. an arm of an if-expression whose if-part is not a constant
  30349. expression */
  30350. const char *g = "string";
  30351. pcpcc = &g + (g ? g-g : 0);
  30352. /* HPUX 7.0 cc rejects these. */
  30353. ++pcpcc;
  30354. ppc = (char**) pcpcc;
  30355. pcpcc = (char const *const *) ppc;
  30356. { /* SCO 3.2v4 cc rejects this. */
  30357. char *t;
  30358. char const *s = 0 ? (char *) 0 : (char const *) 0;
  30359. *t++ = 0;
  30360. if (s) return 0;
  30361. }
  30362. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  30363. int x[] = {25, 17};
  30364. const int *foo = &x[0];
  30365. ++foo;
  30366. }
  30367. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  30368. typedef const int *iptr;
  30369. iptr p = 0;
  30370. ++p;
  30371. }
  30372. { /* AIX XL C 1.02.0.0 rejects this saying
  30373. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  30374. struct s { int j; const int *ap[3]; };
  30375. struct s *b; b->j = 5;
  30376. }
  30377. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  30378. const int foo = 10;
  30379. if (!foo) return 0;
  30380. }
  30381. return !cs[0] && !zero.x;
  30382. #endif
  30383. ;
  30384. return 0;
  30385. }
  30386. _ACEOF
  30387. rm -f conftest.$ac_objext
  30388. if { (ac_try="$ac_compile"
  30389. case "(($ac_try" in
  30390. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30391. *) ac_try_echo=$ac_try;;
  30392. esac
  30393. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30394. (eval "$ac_compile") 2>conftest.er1
  30395. ac_status=$?
  30396. grep -v '^ *+' conftest.er1 >conftest.err
  30397. rm -f conftest.er1
  30398. cat conftest.err >&5
  30399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30400. (exit $ac_status); } && {
  30401. test -z "$ac_c_werror_flag" ||
  30402. test ! -s conftest.err
  30403. } && test -s conftest.$ac_objext; then
  30404. ac_cv_c_const=yes
  30405. else
  30406. echo "$as_me: failed program was:" >&5
  30407. sed 's/^/| /' conftest.$ac_ext >&5
  30408. ac_cv_c_const=no
  30409. fi
  30410. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30411. fi
  30412. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  30413. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  30414. if test $ac_cv_c_const = no; then
  30415. cat >>confdefs.h <<\_ACEOF
  30416. #define const
  30417. _ACEOF
  30418. fi
  30419. { echo "$as_me:$LINENO: checking for compiler support of C99 variadic macro style" >&5
  30420. echo $ECHO_N "checking for compiler support of C99 variadic macro style... $ECHO_C" >&6; }
  30421. if test "${curl_cv_variadic_macros_c99+set}" = set; then
  30422. echo $ECHO_N "(cached) $ECHO_C" >&6
  30423. else
  30424. cat >conftest.$ac_ext <<_ACEOF
  30425. /* confdefs.h. */
  30426. _ACEOF
  30427. cat confdefs.h >>conftest.$ac_ext
  30428. cat >>conftest.$ac_ext <<_ACEOF
  30429. /* end confdefs.h. */
  30430. #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
  30431. #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
  30432. int fun3(int arg1, int arg2, int arg3);
  30433. int fun2(int arg1, int arg2);
  30434. int fun3(int arg1, int arg2, int arg3)
  30435. { return arg1 + arg2 + arg3; }
  30436. int fun2(int arg1, int arg2)
  30437. { return arg1 + arg2; }
  30438. int
  30439. main ()
  30440. {
  30441. int res3 = c99_vmacro3(1, 2, 3);
  30442. int res2 = c99_vmacro2(1, 2);
  30443. ;
  30444. return 0;
  30445. }
  30446. _ACEOF
  30447. rm -f conftest.$ac_objext
  30448. if { (ac_try="$ac_compile"
  30449. case "(($ac_try" in
  30450. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30451. *) ac_try_echo=$ac_try;;
  30452. esac
  30453. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30454. (eval "$ac_compile") 2>conftest.er1
  30455. ac_status=$?
  30456. grep -v '^ *+' conftest.er1 >conftest.err
  30457. rm -f conftest.er1
  30458. cat conftest.err >&5
  30459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30460. (exit $ac_status); } && {
  30461. test -z "$ac_c_werror_flag" ||
  30462. test ! -s conftest.err
  30463. } && test -s conftest.$ac_objext; then
  30464. curl_cv_variadic_macros_c99="yes"
  30465. else
  30466. echo "$as_me: failed program was:" >&5
  30467. sed 's/^/| /' conftest.$ac_ext >&5
  30468. curl_cv_variadic_macros_c99="no"
  30469. fi
  30470. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30471. fi
  30472. { echo "$as_me:$LINENO: result: $curl_cv_variadic_macros_c99" >&5
  30473. echo "${ECHO_T}$curl_cv_variadic_macros_c99" >&6; }
  30474. case "$curl_cv_variadic_macros_c99" in
  30475. yes)
  30476. cat >>confdefs.h <<_ACEOF
  30477. #define HAVE_VARIADIC_MACROS_C99 1
  30478. _ACEOF
  30479. ;;
  30480. esac
  30481. { echo "$as_me:$LINENO: checking for compiler support of old gcc variadic macro style" >&5
  30482. echo $ECHO_N "checking for compiler support of old gcc variadic macro style... $ECHO_C" >&6; }
  30483. if test "${curl_cv_variadic_macros_gcc+set}" = set; then
  30484. echo $ECHO_N "(cached) $ECHO_C" >&6
  30485. else
  30486. cat >conftest.$ac_ext <<_ACEOF
  30487. /* confdefs.h. */
  30488. _ACEOF
  30489. cat confdefs.h >>conftest.$ac_ext
  30490. cat >>conftest.$ac_ext <<_ACEOF
  30491. /* end confdefs.h. */
  30492. #define gcc_vmacro3(first, args...) fun3(first, args)
  30493. #define gcc_vmacro2(first, args...) fun2(first, args)
  30494. int fun3(int arg1, int arg2, int arg3);
  30495. int fun2(int arg1, int arg2);
  30496. int fun3(int arg1, int arg2, int arg3)
  30497. { return arg1 + arg2 + arg3; }
  30498. int fun2(int arg1, int arg2)
  30499. { return arg1 + arg2; }
  30500. int
  30501. main ()
  30502. {
  30503. int res3 = gcc_vmacro3(1, 2, 3);
  30504. int res2 = gcc_vmacro2(1, 2);
  30505. ;
  30506. return 0;
  30507. }
  30508. _ACEOF
  30509. rm -f conftest.$ac_objext
  30510. if { (ac_try="$ac_compile"
  30511. case "(($ac_try" in
  30512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30513. *) ac_try_echo=$ac_try;;
  30514. esac
  30515. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30516. (eval "$ac_compile") 2>conftest.er1
  30517. ac_status=$?
  30518. grep -v '^ *+' conftest.er1 >conftest.err
  30519. rm -f conftest.er1
  30520. cat conftest.err >&5
  30521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30522. (exit $ac_status); } && {
  30523. test -z "$ac_c_werror_flag" ||
  30524. test ! -s conftest.err
  30525. } && test -s conftest.$ac_objext; then
  30526. curl_cv_variadic_macros_gcc="yes"
  30527. else
  30528. echo "$as_me: failed program was:" >&5
  30529. sed 's/^/| /' conftest.$ac_ext >&5
  30530. curl_cv_variadic_macros_gcc="no"
  30531. fi
  30532. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30533. fi
  30534. { echo "$as_me:$LINENO: result: $curl_cv_variadic_macros_gcc" >&5
  30535. echo "${ECHO_T}$curl_cv_variadic_macros_gcc" >&6; }
  30536. case "$curl_cv_variadic_macros_gcc" in
  30537. yes)
  30538. cat >>confdefs.h <<_ACEOF
  30539. #define HAVE_VARIADIC_MACROS_GCC 1
  30540. _ACEOF
  30541. ;;
  30542. esac
  30543. { echo "$as_me:$LINENO: checking for size_t" >&5
  30544. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  30545. if test "${ac_cv_type_size_t+set}" = set; then
  30546. echo $ECHO_N "(cached) $ECHO_C" >&6
  30547. else
  30548. cat >conftest.$ac_ext <<_ACEOF
  30549. /* confdefs.h. */
  30550. _ACEOF
  30551. cat confdefs.h >>conftest.$ac_ext
  30552. cat >>conftest.$ac_ext <<_ACEOF
  30553. /* end confdefs.h. */
  30554. $ac_includes_default
  30555. typedef size_t ac__type_new_;
  30556. int
  30557. main ()
  30558. {
  30559. if ((ac__type_new_ *) 0)
  30560. return 0;
  30561. if (sizeof (ac__type_new_))
  30562. return 0;
  30563. ;
  30564. return 0;
  30565. }
  30566. _ACEOF
  30567. rm -f conftest.$ac_objext
  30568. if { (ac_try="$ac_compile"
  30569. case "(($ac_try" in
  30570. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30571. *) ac_try_echo=$ac_try;;
  30572. esac
  30573. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30574. (eval "$ac_compile") 2>conftest.er1
  30575. ac_status=$?
  30576. grep -v '^ *+' conftest.er1 >conftest.err
  30577. rm -f conftest.er1
  30578. cat conftest.err >&5
  30579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30580. (exit $ac_status); } && {
  30581. test -z "$ac_c_werror_flag" ||
  30582. test ! -s conftest.err
  30583. } && test -s conftest.$ac_objext; then
  30584. ac_cv_type_size_t=yes
  30585. else
  30586. echo "$as_me: failed program was:" >&5
  30587. sed 's/^/| /' conftest.$ac_ext >&5
  30588. ac_cv_type_size_t=no
  30589. fi
  30590. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30591. fi
  30592. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  30593. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  30594. if test $ac_cv_type_size_t = yes; then
  30595. :
  30596. else
  30597. cat >>confdefs.h <<_ACEOF
  30598. #define size_t unsigned int
  30599. _ACEOF
  30600. fi
  30601. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  30602. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  30603. if test "${ac_cv_header_time+set}" = set; then
  30604. echo $ECHO_N "(cached) $ECHO_C" >&6
  30605. else
  30606. cat >conftest.$ac_ext <<_ACEOF
  30607. /* confdefs.h. */
  30608. _ACEOF
  30609. cat confdefs.h >>conftest.$ac_ext
  30610. cat >>conftest.$ac_ext <<_ACEOF
  30611. /* end confdefs.h. */
  30612. #include <sys/types.h>
  30613. #include <sys/time.h>
  30614. #include <time.h>
  30615. int
  30616. main ()
  30617. {
  30618. if ((struct tm *) 0)
  30619. return 0;
  30620. ;
  30621. return 0;
  30622. }
  30623. _ACEOF
  30624. rm -f conftest.$ac_objext
  30625. if { (ac_try="$ac_compile"
  30626. case "(($ac_try" in
  30627. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30628. *) ac_try_echo=$ac_try;;
  30629. esac
  30630. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30631. (eval "$ac_compile") 2>conftest.er1
  30632. ac_status=$?
  30633. grep -v '^ *+' conftest.er1 >conftest.err
  30634. rm -f conftest.er1
  30635. cat conftest.err >&5
  30636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30637. (exit $ac_status); } && {
  30638. test -z "$ac_c_werror_flag" ||
  30639. test ! -s conftest.err
  30640. } && test -s conftest.$ac_objext; then
  30641. ac_cv_header_time=yes
  30642. else
  30643. echo "$as_me: failed program was:" >&5
  30644. sed 's/^/| /' conftest.$ac_ext >&5
  30645. ac_cv_header_time=no
  30646. fi
  30647. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30648. fi
  30649. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  30650. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  30651. if test $ac_cv_header_time = yes; then
  30652. cat >>confdefs.h <<\_ACEOF
  30653. #define TIME_WITH_SYS_TIME 1
  30654. _ACEOF
  30655. fi
  30656. for ac_header in sys/types.h sys/time.h time.h
  30657. do
  30658. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  30659. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  30660. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  30661. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  30662. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  30663. echo $ECHO_N "(cached) $ECHO_C" >&6
  30664. fi
  30665. ac_res=`eval echo '${'$as_ac_Header'}'`
  30666. { echo "$as_me:$LINENO: result: $ac_res" >&5
  30667. echo "${ECHO_T}$ac_res" >&6; }
  30668. else
  30669. # Is the header compilable?
  30670. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  30671. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  30672. cat >conftest.$ac_ext <<_ACEOF
  30673. /* confdefs.h. */
  30674. _ACEOF
  30675. cat confdefs.h >>conftest.$ac_ext
  30676. cat >>conftest.$ac_ext <<_ACEOF
  30677. /* end confdefs.h. */
  30678. $ac_includes_default
  30679. #include <$ac_header>
  30680. _ACEOF
  30681. rm -f conftest.$ac_objext
  30682. if { (ac_try="$ac_compile"
  30683. case "(($ac_try" in
  30684. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30685. *) ac_try_echo=$ac_try;;
  30686. esac
  30687. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30688. (eval "$ac_compile") 2>conftest.er1
  30689. ac_status=$?
  30690. grep -v '^ *+' conftest.er1 >conftest.err
  30691. rm -f conftest.er1
  30692. cat conftest.err >&5
  30693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30694. (exit $ac_status); } && {
  30695. test -z "$ac_c_werror_flag" ||
  30696. test ! -s conftest.err
  30697. } && test -s conftest.$ac_objext; then
  30698. ac_header_compiler=yes
  30699. else
  30700. echo "$as_me: failed program was:" >&5
  30701. sed 's/^/| /' conftest.$ac_ext >&5
  30702. ac_header_compiler=no
  30703. fi
  30704. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30705. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  30706. echo "${ECHO_T}$ac_header_compiler" >&6; }
  30707. # Is the header present?
  30708. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  30709. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  30710. cat >conftest.$ac_ext <<_ACEOF
  30711. /* confdefs.h. */
  30712. _ACEOF
  30713. cat confdefs.h >>conftest.$ac_ext
  30714. cat >>conftest.$ac_ext <<_ACEOF
  30715. /* end confdefs.h. */
  30716. #include <$ac_header>
  30717. _ACEOF
  30718. if { (ac_try="$ac_cpp conftest.$ac_ext"
  30719. case "(($ac_try" in
  30720. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30721. *) ac_try_echo=$ac_try;;
  30722. esac
  30723. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30724. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  30725. ac_status=$?
  30726. grep -v '^ *+' conftest.er1 >conftest.err
  30727. rm -f conftest.er1
  30728. cat conftest.err >&5
  30729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30730. (exit $ac_status); } >/dev/null && {
  30731. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  30732. test ! -s conftest.err
  30733. }; then
  30734. ac_header_preproc=yes
  30735. else
  30736. echo "$as_me: failed program was:" >&5
  30737. sed 's/^/| /' conftest.$ac_ext >&5
  30738. ac_header_preproc=no
  30739. fi
  30740. rm -f conftest.err conftest.$ac_ext
  30741. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  30742. echo "${ECHO_T}$ac_header_preproc" >&6; }
  30743. # So? What about this header?
  30744. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  30745. yes:no: )
  30746. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  30747. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  30748. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  30749. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  30750. ac_header_preproc=yes
  30751. ;;
  30752. no:yes:* )
  30753. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  30754. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  30755. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  30756. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  30757. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  30758. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  30759. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  30760. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  30761. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  30762. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  30763. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  30764. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  30765. ( cat <<\_ASBOX
  30766. ## ------------------------------------------------------------------------ ##
  30767. ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
  30768. ## ------------------------------------------------------------------------ ##
  30769. _ASBOX
  30770. ) | sed "s/^/$as_me: WARNING: /" >&2
  30771. ;;
  30772. esac
  30773. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  30774. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  30775. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  30776. echo $ECHO_N "(cached) $ECHO_C" >&6
  30777. else
  30778. eval "$as_ac_Header=\$ac_header_preproc"
  30779. fi
  30780. ac_res=`eval echo '${'$as_ac_Header'}'`
  30781. { echo "$as_me:$LINENO: result: $ac_res" >&5
  30782. echo "${ECHO_T}$ac_res" >&6; }
  30783. fi
  30784. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  30785. cat >>confdefs.h <<_ACEOF
  30786. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  30787. _ACEOF
  30788. fi
  30789. done
  30790. { echo "$as_me:$LINENO: checking for struct timeval" >&5
  30791. echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
  30792. if test "${ac_cv_struct_timeval+set}" = set; then
  30793. echo $ECHO_N "(cached) $ECHO_C" >&6
  30794. else
  30795. cat >conftest.$ac_ext <<_ACEOF
  30796. /* confdefs.h. */
  30797. _ACEOF
  30798. cat confdefs.h >>conftest.$ac_ext
  30799. cat >>conftest.$ac_ext <<_ACEOF
  30800. /* end confdefs.h. */
  30801. #undef inline
  30802. #ifdef HAVE_WINDOWS_H
  30803. #ifndef WIN32_LEAN_AND_MEAN
  30804. #define WIN32_LEAN_AND_MEAN
  30805. #endif
  30806. #include <windows.h>
  30807. #ifdef HAVE_WINSOCK2_H
  30808. #include <winsock2.h>
  30809. #else
  30810. #ifdef HAVE_WINSOCK_H
  30811. #include <winsock.h>
  30812. #endif
  30813. #endif
  30814. #endif
  30815. #ifdef HAVE_SYS_TYPES_H
  30816. #include <sys/types.h>
  30817. #endif
  30818. #ifdef HAVE_SYS_TIME_H
  30819. #include <sys/time.h>
  30820. #ifdef TIME_WITH_SYS_TIME
  30821. #include <time.h>
  30822. #endif
  30823. #else
  30824. #ifdef HAVE_TIME_H
  30825. #include <time.h>
  30826. #endif
  30827. #endif
  30828. int
  30829. main ()
  30830. {
  30831. struct timeval ts;
  30832. ts.tv_sec = 0;
  30833. ts.tv_usec = 0;
  30834. ;
  30835. return 0;
  30836. }
  30837. _ACEOF
  30838. rm -f conftest.$ac_objext
  30839. if { (ac_try="$ac_compile"
  30840. case "(($ac_try" in
  30841. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30842. *) ac_try_echo=$ac_try;;
  30843. esac
  30844. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30845. (eval "$ac_compile") 2>conftest.er1
  30846. ac_status=$?
  30847. grep -v '^ *+' conftest.er1 >conftest.err
  30848. rm -f conftest.er1
  30849. cat conftest.err >&5
  30850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30851. (exit $ac_status); } && {
  30852. test -z "$ac_c_werror_flag" ||
  30853. test ! -s conftest.err
  30854. } && test -s conftest.$ac_objext; then
  30855. ac_cv_struct_timeval="yes"
  30856. else
  30857. echo "$as_me: failed program was:" >&5
  30858. sed 's/^/| /' conftest.$ac_ext >&5
  30859. ac_cv_struct_timeval="no"
  30860. fi
  30861. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30862. fi
  30863. { echo "$as_me:$LINENO: result: $ac_cv_struct_timeval" >&5
  30864. echo "${ECHO_T}$ac_cv_struct_timeval" >&6; }
  30865. case "$ac_cv_struct_timeval" in
  30866. yes)
  30867. cat >>confdefs.h <<_ACEOF
  30868. #define HAVE_STRUCT_TIMEVAL 1
  30869. _ACEOF
  30870. ;;
  30871. esac
  30872. if test "x$cross_compiling" != xyes; then
  30873. { echo "$as_me:$LINENO: checking run-time libs availability" >&5
  30874. echo $ECHO_N "checking run-time libs availability... $ECHO_C" >&6; }
  30875. if test "$cross_compiling" = yes; then
  30876. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  30877. See \`config.log' for more details." >&5
  30878. echo "$as_me: error: cannot run test program while cross compiling
  30879. See \`config.log' for more details." >&2;}
  30880. { (exit 1); exit 1; }; }
  30881. else
  30882. cat >conftest.$ac_ext <<_ACEOF
  30883. /* confdefs.h. */
  30884. _ACEOF
  30885. cat confdefs.h >>conftest.$ac_ext
  30886. cat >>conftest.$ac_ext <<_ACEOF
  30887. /* end confdefs.h. */
  30888. main()
  30889. {
  30890. return 0;
  30891. }
  30892. _ACEOF
  30893. rm -f conftest$ac_exeext
  30894. if { (ac_try="$ac_link"
  30895. case "(($ac_try" in
  30896. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30897. *) ac_try_echo=$ac_try;;
  30898. esac
  30899. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30900. (eval "$ac_link") 2>&5
  30901. ac_status=$?
  30902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30903. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  30904. { (case "(($ac_try" in
  30905. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30906. *) ac_try_echo=$ac_try;;
  30907. esac
  30908. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30909. (eval "$ac_try") 2>&5
  30910. ac_status=$?
  30911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30912. (exit $ac_status); }; }; then
  30913. { echo "$as_me:$LINENO: result: fine" >&5
  30914. echo "${ECHO_T}fine" >&6; }
  30915. else
  30916. echo "$as_me: program exited with status $ac_status" >&5
  30917. echo "$as_me: failed program was:" >&5
  30918. sed 's/^/| /' conftest.$ac_ext >&5
  30919. ( exit $ac_status )
  30920. { echo "$as_me:$LINENO: result: failed" >&5
  30921. echo "${ECHO_T}failed" >&6; }
  30922. { { echo "$as_me:$LINENO: error: one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" >&5
  30923. echo "$as_me: error: one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" >&2;}
  30924. { (exit 1); exit 1; }; }
  30925. fi
  30926. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  30927. fi
  30928. fi
  30929. { echo "$as_me:$LINENO: checking for size_t" >&5
  30930. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  30931. if test "${ac_cv_type_size_t+set}" = set; then
  30932. echo $ECHO_N "(cached) $ECHO_C" >&6
  30933. else
  30934. cat >conftest.$ac_ext <<_ACEOF
  30935. /* confdefs.h. */
  30936. _ACEOF
  30937. cat confdefs.h >>conftest.$ac_ext
  30938. cat >>conftest.$ac_ext <<_ACEOF
  30939. /* end confdefs.h. */
  30940. $ac_includes_default
  30941. typedef size_t ac__type_new_;
  30942. int
  30943. main ()
  30944. {
  30945. if ((ac__type_new_ *) 0)
  30946. return 0;
  30947. if (sizeof (ac__type_new_))
  30948. return 0;
  30949. ;
  30950. return 0;
  30951. }
  30952. _ACEOF
  30953. rm -f conftest.$ac_objext
  30954. if { (ac_try="$ac_compile"
  30955. case "(($ac_try" in
  30956. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30957. *) ac_try_echo=$ac_try;;
  30958. esac
  30959. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30960. (eval "$ac_compile") 2>conftest.er1
  30961. ac_status=$?
  30962. grep -v '^ *+' conftest.er1 >conftest.err
  30963. rm -f conftest.er1
  30964. cat conftest.err >&5
  30965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30966. (exit $ac_status); } && {
  30967. test -z "$ac_c_werror_flag" ||
  30968. test ! -s conftest.err
  30969. } && test -s conftest.$ac_objext; then
  30970. ac_cv_type_size_t=yes
  30971. else
  30972. echo "$as_me: failed program was:" >&5
  30973. sed 's/^/| /' conftest.$ac_ext >&5
  30974. ac_cv_type_size_t=no
  30975. fi
  30976. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30977. fi
  30978. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  30979. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  30980. # The cast to long int works around a bug in the HP C Compiler
  30981. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  30982. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  30983. # This bug is HP SR number 8606223364.
  30984. { echo "$as_me:$LINENO: checking size of size_t" >&5
  30985. echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
  30986. if test "${ac_cv_sizeof_size_t+set}" = set; then
  30987. echo $ECHO_N "(cached) $ECHO_C" >&6
  30988. else
  30989. if test "$cross_compiling" = yes; then
  30990. # Depending upon the size, compute the lo and hi bounds.
  30991. cat >conftest.$ac_ext <<_ACEOF
  30992. /* confdefs.h. */
  30993. _ACEOF
  30994. cat confdefs.h >>conftest.$ac_ext
  30995. cat >>conftest.$ac_ext <<_ACEOF
  30996. /* end confdefs.h. */
  30997. $ac_includes_default
  30998. typedef size_t ac__type_sizeof_;
  30999. int
  31000. main ()
  31001. {
  31002. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  31003. test_array [0] = 0
  31004. ;
  31005. return 0;
  31006. }
  31007. _ACEOF
  31008. rm -f conftest.$ac_objext
  31009. if { (ac_try="$ac_compile"
  31010. case "(($ac_try" in
  31011. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31012. *) ac_try_echo=$ac_try;;
  31013. esac
  31014. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31015. (eval "$ac_compile") 2>conftest.er1
  31016. ac_status=$?
  31017. grep -v '^ *+' conftest.er1 >conftest.err
  31018. rm -f conftest.er1
  31019. cat conftest.err >&5
  31020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31021. (exit $ac_status); } && {
  31022. test -z "$ac_c_werror_flag" ||
  31023. test ! -s conftest.err
  31024. } && test -s conftest.$ac_objext; then
  31025. ac_lo=0 ac_mid=0
  31026. while :; do
  31027. cat >conftest.$ac_ext <<_ACEOF
  31028. /* confdefs.h. */
  31029. _ACEOF
  31030. cat confdefs.h >>conftest.$ac_ext
  31031. cat >>conftest.$ac_ext <<_ACEOF
  31032. /* end confdefs.h. */
  31033. $ac_includes_default
  31034. typedef size_t ac__type_sizeof_;
  31035. int
  31036. main ()
  31037. {
  31038. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  31039. test_array [0] = 0
  31040. ;
  31041. return 0;
  31042. }
  31043. _ACEOF
  31044. rm -f conftest.$ac_objext
  31045. if { (ac_try="$ac_compile"
  31046. case "(($ac_try" in
  31047. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31048. *) ac_try_echo=$ac_try;;
  31049. esac
  31050. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31051. (eval "$ac_compile") 2>conftest.er1
  31052. ac_status=$?
  31053. grep -v '^ *+' conftest.er1 >conftest.err
  31054. rm -f conftest.er1
  31055. cat conftest.err >&5
  31056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31057. (exit $ac_status); } && {
  31058. test -z "$ac_c_werror_flag" ||
  31059. test ! -s conftest.err
  31060. } && test -s conftest.$ac_objext; then
  31061. ac_hi=$ac_mid; break
  31062. else
  31063. echo "$as_me: failed program was:" >&5
  31064. sed 's/^/| /' conftest.$ac_ext >&5
  31065. ac_lo=`expr $ac_mid + 1`
  31066. if test $ac_lo -le $ac_mid; then
  31067. ac_lo= ac_hi=
  31068. break
  31069. fi
  31070. ac_mid=`expr 2 '*' $ac_mid + 1`
  31071. fi
  31072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31073. done
  31074. else
  31075. echo "$as_me: failed program was:" >&5
  31076. sed 's/^/| /' conftest.$ac_ext >&5
  31077. cat >conftest.$ac_ext <<_ACEOF
  31078. /* confdefs.h. */
  31079. _ACEOF
  31080. cat confdefs.h >>conftest.$ac_ext
  31081. cat >>conftest.$ac_ext <<_ACEOF
  31082. /* end confdefs.h. */
  31083. $ac_includes_default
  31084. typedef size_t ac__type_sizeof_;
  31085. int
  31086. main ()
  31087. {
  31088. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  31089. test_array [0] = 0
  31090. ;
  31091. return 0;
  31092. }
  31093. _ACEOF
  31094. rm -f conftest.$ac_objext
  31095. if { (ac_try="$ac_compile"
  31096. case "(($ac_try" in
  31097. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31098. *) ac_try_echo=$ac_try;;
  31099. esac
  31100. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31101. (eval "$ac_compile") 2>conftest.er1
  31102. ac_status=$?
  31103. grep -v '^ *+' conftest.er1 >conftest.err
  31104. rm -f conftest.er1
  31105. cat conftest.err >&5
  31106. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31107. (exit $ac_status); } && {
  31108. test -z "$ac_c_werror_flag" ||
  31109. test ! -s conftest.err
  31110. } && test -s conftest.$ac_objext; then
  31111. ac_hi=-1 ac_mid=-1
  31112. while :; do
  31113. cat >conftest.$ac_ext <<_ACEOF
  31114. /* confdefs.h. */
  31115. _ACEOF
  31116. cat confdefs.h >>conftest.$ac_ext
  31117. cat >>conftest.$ac_ext <<_ACEOF
  31118. /* end confdefs.h. */
  31119. $ac_includes_default
  31120. typedef size_t ac__type_sizeof_;
  31121. int
  31122. main ()
  31123. {
  31124. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  31125. test_array [0] = 0
  31126. ;
  31127. return 0;
  31128. }
  31129. _ACEOF
  31130. rm -f conftest.$ac_objext
  31131. if { (ac_try="$ac_compile"
  31132. case "(($ac_try" in
  31133. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31134. *) ac_try_echo=$ac_try;;
  31135. esac
  31136. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31137. (eval "$ac_compile") 2>conftest.er1
  31138. ac_status=$?
  31139. grep -v '^ *+' conftest.er1 >conftest.err
  31140. rm -f conftest.er1
  31141. cat conftest.err >&5
  31142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31143. (exit $ac_status); } && {
  31144. test -z "$ac_c_werror_flag" ||
  31145. test ! -s conftest.err
  31146. } && test -s conftest.$ac_objext; then
  31147. ac_lo=$ac_mid; break
  31148. else
  31149. echo "$as_me: failed program was:" >&5
  31150. sed 's/^/| /' conftest.$ac_ext >&5
  31151. ac_hi=`expr '(' $ac_mid ')' - 1`
  31152. if test $ac_mid -le $ac_hi; then
  31153. ac_lo= ac_hi=
  31154. break
  31155. fi
  31156. ac_mid=`expr 2 '*' $ac_mid`
  31157. fi
  31158. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31159. done
  31160. else
  31161. echo "$as_me: failed program was:" >&5
  31162. sed 's/^/| /' conftest.$ac_ext >&5
  31163. ac_lo= ac_hi=
  31164. fi
  31165. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31166. fi
  31167. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31168. # Binary search between lo and hi bounds.
  31169. while test "x$ac_lo" != "x$ac_hi"; do
  31170. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  31171. cat >conftest.$ac_ext <<_ACEOF
  31172. /* confdefs.h. */
  31173. _ACEOF
  31174. cat confdefs.h >>conftest.$ac_ext
  31175. cat >>conftest.$ac_ext <<_ACEOF
  31176. /* end confdefs.h. */
  31177. $ac_includes_default
  31178. typedef size_t ac__type_sizeof_;
  31179. int
  31180. main ()
  31181. {
  31182. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  31183. test_array [0] = 0
  31184. ;
  31185. return 0;
  31186. }
  31187. _ACEOF
  31188. rm -f conftest.$ac_objext
  31189. if { (ac_try="$ac_compile"
  31190. case "(($ac_try" in
  31191. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31192. *) ac_try_echo=$ac_try;;
  31193. esac
  31194. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31195. (eval "$ac_compile") 2>conftest.er1
  31196. ac_status=$?
  31197. grep -v '^ *+' conftest.er1 >conftest.err
  31198. rm -f conftest.er1
  31199. cat conftest.err >&5
  31200. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31201. (exit $ac_status); } && {
  31202. test -z "$ac_c_werror_flag" ||
  31203. test ! -s conftest.err
  31204. } && test -s conftest.$ac_objext; then
  31205. ac_hi=$ac_mid
  31206. else
  31207. echo "$as_me: failed program was:" >&5
  31208. sed 's/^/| /' conftest.$ac_ext >&5
  31209. ac_lo=`expr '(' $ac_mid ')' + 1`
  31210. fi
  31211. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31212. done
  31213. case $ac_lo in
  31214. ?*) ac_cv_sizeof_size_t=$ac_lo;;
  31215. '') if test "$ac_cv_type_size_t" = yes; then
  31216. { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
  31217. See \`config.log' for more details." >&5
  31218. echo "$as_me: error: cannot compute sizeof (size_t)
  31219. See \`config.log' for more details." >&2;}
  31220. { (exit 77); exit 77; }; }
  31221. else
  31222. ac_cv_sizeof_size_t=0
  31223. fi ;;
  31224. esac
  31225. else
  31226. cat >conftest.$ac_ext <<_ACEOF
  31227. /* confdefs.h. */
  31228. _ACEOF
  31229. cat confdefs.h >>conftest.$ac_ext
  31230. cat >>conftest.$ac_ext <<_ACEOF
  31231. /* end confdefs.h. */
  31232. $ac_includes_default
  31233. typedef size_t ac__type_sizeof_;
  31234. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  31235. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  31236. #include <stdio.h>
  31237. #include <stdlib.h>
  31238. int
  31239. main ()
  31240. {
  31241. FILE *f = fopen ("conftest.val", "w");
  31242. if (! f)
  31243. return 1;
  31244. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  31245. {
  31246. long int i = longval ();
  31247. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  31248. return 1;
  31249. fprintf (f, "%ld\n", i);
  31250. }
  31251. else
  31252. {
  31253. unsigned long int i = ulongval ();
  31254. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  31255. return 1;
  31256. fprintf (f, "%lu\n", i);
  31257. }
  31258. return ferror (f) || fclose (f) != 0;
  31259. ;
  31260. return 0;
  31261. }
  31262. _ACEOF
  31263. rm -f conftest$ac_exeext
  31264. if { (ac_try="$ac_link"
  31265. case "(($ac_try" in
  31266. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31267. *) ac_try_echo=$ac_try;;
  31268. esac
  31269. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31270. (eval "$ac_link") 2>&5
  31271. ac_status=$?
  31272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31273. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  31274. { (case "(($ac_try" in
  31275. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31276. *) ac_try_echo=$ac_try;;
  31277. esac
  31278. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31279. (eval "$ac_try") 2>&5
  31280. ac_status=$?
  31281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31282. (exit $ac_status); }; }; then
  31283. ac_cv_sizeof_size_t=`cat conftest.val`
  31284. else
  31285. echo "$as_me: program exited with status $ac_status" >&5
  31286. echo "$as_me: failed program was:" >&5
  31287. sed 's/^/| /' conftest.$ac_ext >&5
  31288. ( exit $ac_status )
  31289. if test "$ac_cv_type_size_t" = yes; then
  31290. { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
  31291. See \`config.log' for more details." >&5
  31292. echo "$as_me: error: cannot compute sizeof (size_t)
  31293. See \`config.log' for more details." >&2;}
  31294. { (exit 77); exit 77; }; }
  31295. else
  31296. ac_cv_sizeof_size_t=0
  31297. fi
  31298. fi
  31299. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  31300. fi
  31301. rm -f conftest.val
  31302. fi
  31303. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
  31304. echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
  31305. cat >>confdefs.h <<_ACEOF
  31306. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  31307. _ACEOF
  31308. { echo "$as_me:$LINENO: checking for int" >&5
  31309. echo $ECHO_N "checking for int... $ECHO_C" >&6; }
  31310. if test "${ac_cv_type_int+set}" = set; then
  31311. echo $ECHO_N "(cached) $ECHO_C" >&6
  31312. else
  31313. cat >conftest.$ac_ext <<_ACEOF
  31314. /* confdefs.h. */
  31315. _ACEOF
  31316. cat confdefs.h >>conftest.$ac_ext
  31317. cat >>conftest.$ac_ext <<_ACEOF
  31318. /* end confdefs.h. */
  31319. $ac_includes_default
  31320. typedef int ac__type_new_;
  31321. int
  31322. main ()
  31323. {
  31324. if ((ac__type_new_ *) 0)
  31325. return 0;
  31326. if (sizeof (ac__type_new_))
  31327. return 0;
  31328. ;
  31329. return 0;
  31330. }
  31331. _ACEOF
  31332. rm -f conftest.$ac_objext
  31333. if { (ac_try="$ac_compile"
  31334. case "(($ac_try" in
  31335. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31336. *) ac_try_echo=$ac_try;;
  31337. esac
  31338. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31339. (eval "$ac_compile") 2>conftest.er1
  31340. ac_status=$?
  31341. grep -v '^ *+' conftest.er1 >conftest.err
  31342. rm -f conftest.er1
  31343. cat conftest.err >&5
  31344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31345. (exit $ac_status); } && {
  31346. test -z "$ac_c_werror_flag" ||
  31347. test ! -s conftest.err
  31348. } && test -s conftest.$ac_objext; then
  31349. ac_cv_type_int=yes
  31350. else
  31351. echo "$as_me: failed program was:" >&5
  31352. sed 's/^/| /' conftest.$ac_ext >&5
  31353. ac_cv_type_int=no
  31354. fi
  31355. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31356. fi
  31357. { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  31358. echo "${ECHO_T}$ac_cv_type_int" >&6; }
  31359. # The cast to long int works around a bug in the HP C Compiler
  31360. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  31361. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  31362. # This bug is HP SR number 8606223364.
  31363. { echo "$as_me:$LINENO: checking size of int" >&5
  31364. echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
  31365. if test "${ac_cv_sizeof_int+set}" = set; then
  31366. echo $ECHO_N "(cached) $ECHO_C" >&6
  31367. else
  31368. if test "$cross_compiling" = yes; then
  31369. # Depending upon the size, compute the lo and hi bounds.
  31370. cat >conftest.$ac_ext <<_ACEOF
  31371. /* confdefs.h. */
  31372. _ACEOF
  31373. cat confdefs.h >>conftest.$ac_ext
  31374. cat >>conftest.$ac_ext <<_ACEOF
  31375. /* end confdefs.h. */
  31376. $ac_includes_default
  31377. typedef int ac__type_sizeof_;
  31378. int
  31379. main ()
  31380. {
  31381. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  31382. test_array [0] = 0
  31383. ;
  31384. return 0;
  31385. }
  31386. _ACEOF
  31387. rm -f conftest.$ac_objext
  31388. if { (ac_try="$ac_compile"
  31389. case "(($ac_try" in
  31390. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31391. *) ac_try_echo=$ac_try;;
  31392. esac
  31393. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31394. (eval "$ac_compile") 2>conftest.er1
  31395. ac_status=$?
  31396. grep -v '^ *+' conftest.er1 >conftest.err
  31397. rm -f conftest.er1
  31398. cat conftest.err >&5
  31399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31400. (exit $ac_status); } && {
  31401. test -z "$ac_c_werror_flag" ||
  31402. test ! -s conftest.err
  31403. } && test -s conftest.$ac_objext; then
  31404. ac_lo=0 ac_mid=0
  31405. while :; do
  31406. cat >conftest.$ac_ext <<_ACEOF
  31407. /* confdefs.h. */
  31408. _ACEOF
  31409. cat confdefs.h >>conftest.$ac_ext
  31410. cat >>conftest.$ac_ext <<_ACEOF
  31411. /* end confdefs.h. */
  31412. $ac_includes_default
  31413. typedef int ac__type_sizeof_;
  31414. int
  31415. main ()
  31416. {
  31417. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  31418. test_array [0] = 0
  31419. ;
  31420. return 0;
  31421. }
  31422. _ACEOF
  31423. rm -f conftest.$ac_objext
  31424. if { (ac_try="$ac_compile"
  31425. case "(($ac_try" in
  31426. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31427. *) ac_try_echo=$ac_try;;
  31428. esac
  31429. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31430. (eval "$ac_compile") 2>conftest.er1
  31431. ac_status=$?
  31432. grep -v '^ *+' conftest.er1 >conftest.err
  31433. rm -f conftest.er1
  31434. cat conftest.err >&5
  31435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31436. (exit $ac_status); } && {
  31437. test -z "$ac_c_werror_flag" ||
  31438. test ! -s conftest.err
  31439. } && test -s conftest.$ac_objext; then
  31440. ac_hi=$ac_mid; break
  31441. else
  31442. echo "$as_me: failed program was:" >&5
  31443. sed 's/^/| /' conftest.$ac_ext >&5
  31444. ac_lo=`expr $ac_mid + 1`
  31445. if test $ac_lo -le $ac_mid; then
  31446. ac_lo= ac_hi=
  31447. break
  31448. fi
  31449. ac_mid=`expr 2 '*' $ac_mid + 1`
  31450. fi
  31451. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31452. done
  31453. else
  31454. echo "$as_me: failed program was:" >&5
  31455. sed 's/^/| /' conftest.$ac_ext >&5
  31456. cat >conftest.$ac_ext <<_ACEOF
  31457. /* confdefs.h. */
  31458. _ACEOF
  31459. cat confdefs.h >>conftest.$ac_ext
  31460. cat >>conftest.$ac_ext <<_ACEOF
  31461. /* end confdefs.h. */
  31462. $ac_includes_default
  31463. typedef int ac__type_sizeof_;
  31464. int
  31465. main ()
  31466. {
  31467. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  31468. test_array [0] = 0
  31469. ;
  31470. return 0;
  31471. }
  31472. _ACEOF
  31473. rm -f conftest.$ac_objext
  31474. if { (ac_try="$ac_compile"
  31475. case "(($ac_try" in
  31476. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31477. *) ac_try_echo=$ac_try;;
  31478. esac
  31479. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31480. (eval "$ac_compile") 2>conftest.er1
  31481. ac_status=$?
  31482. grep -v '^ *+' conftest.er1 >conftest.err
  31483. rm -f conftest.er1
  31484. cat conftest.err >&5
  31485. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31486. (exit $ac_status); } && {
  31487. test -z "$ac_c_werror_flag" ||
  31488. test ! -s conftest.err
  31489. } && test -s conftest.$ac_objext; then
  31490. ac_hi=-1 ac_mid=-1
  31491. while :; do
  31492. cat >conftest.$ac_ext <<_ACEOF
  31493. /* confdefs.h. */
  31494. _ACEOF
  31495. cat confdefs.h >>conftest.$ac_ext
  31496. cat >>conftest.$ac_ext <<_ACEOF
  31497. /* end confdefs.h. */
  31498. $ac_includes_default
  31499. typedef int ac__type_sizeof_;
  31500. int
  31501. main ()
  31502. {
  31503. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  31504. test_array [0] = 0
  31505. ;
  31506. return 0;
  31507. }
  31508. _ACEOF
  31509. rm -f conftest.$ac_objext
  31510. if { (ac_try="$ac_compile"
  31511. case "(($ac_try" in
  31512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31513. *) ac_try_echo=$ac_try;;
  31514. esac
  31515. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31516. (eval "$ac_compile") 2>conftest.er1
  31517. ac_status=$?
  31518. grep -v '^ *+' conftest.er1 >conftest.err
  31519. rm -f conftest.er1
  31520. cat conftest.err >&5
  31521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31522. (exit $ac_status); } && {
  31523. test -z "$ac_c_werror_flag" ||
  31524. test ! -s conftest.err
  31525. } && test -s conftest.$ac_objext; then
  31526. ac_lo=$ac_mid; break
  31527. else
  31528. echo "$as_me: failed program was:" >&5
  31529. sed 's/^/| /' conftest.$ac_ext >&5
  31530. ac_hi=`expr '(' $ac_mid ')' - 1`
  31531. if test $ac_mid -le $ac_hi; then
  31532. ac_lo= ac_hi=
  31533. break
  31534. fi
  31535. ac_mid=`expr 2 '*' $ac_mid`
  31536. fi
  31537. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31538. done
  31539. else
  31540. echo "$as_me: failed program was:" >&5
  31541. sed 's/^/| /' conftest.$ac_ext >&5
  31542. ac_lo= ac_hi=
  31543. fi
  31544. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31545. fi
  31546. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31547. # Binary search between lo and hi bounds.
  31548. while test "x$ac_lo" != "x$ac_hi"; do
  31549. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  31550. cat >conftest.$ac_ext <<_ACEOF
  31551. /* confdefs.h. */
  31552. _ACEOF
  31553. cat confdefs.h >>conftest.$ac_ext
  31554. cat >>conftest.$ac_ext <<_ACEOF
  31555. /* end confdefs.h. */
  31556. $ac_includes_default
  31557. typedef int ac__type_sizeof_;
  31558. int
  31559. main ()
  31560. {
  31561. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  31562. test_array [0] = 0
  31563. ;
  31564. return 0;
  31565. }
  31566. _ACEOF
  31567. rm -f conftest.$ac_objext
  31568. if { (ac_try="$ac_compile"
  31569. case "(($ac_try" in
  31570. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31571. *) ac_try_echo=$ac_try;;
  31572. esac
  31573. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31574. (eval "$ac_compile") 2>conftest.er1
  31575. ac_status=$?
  31576. grep -v '^ *+' conftest.er1 >conftest.err
  31577. rm -f conftest.er1
  31578. cat conftest.err >&5
  31579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31580. (exit $ac_status); } && {
  31581. test -z "$ac_c_werror_flag" ||
  31582. test ! -s conftest.err
  31583. } && test -s conftest.$ac_objext; then
  31584. ac_hi=$ac_mid
  31585. else
  31586. echo "$as_me: failed program was:" >&5
  31587. sed 's/^/| /' conftest.$ac_ext >&5
  31588. ac_lo=`expr '(' $ac_mid ')' + 1`
  31589. fi
  31590. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31591. done
  31592. case $ac_lo in
  31593. ?*) ac_cv_sizeof_int=$ac_lo;;
  31594. '') if test "$ac_cv_type_int" = yes; then
  31595. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  31596. See \`config.log' for more details." >&5
  31597. echo "$as_me: error: cannot compute sizeof (int)
  31598. See \`config.log' for more details." >&2;}
  31599. { (exit 77); exit 77; }; }
  31600. else
  31601. ac_cv_sizeof_int=0
  31602. fi ;;
  31603. esac
  31604. else
  31605. cat >conftest.$ac_ext <<_ACEOF
  31606. /* confdefs.h. */
  31607. _ACEOF
  31608. cat confdefs.h >>conftest.$ac_ext
  31609. cat >>conftest.$ac_ext <<_ACEOF
  31610. /* end confdefs.h. */
  31611. $ac_includes_default
  31612. typedef int ac__type_sizeof_;
  31613. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  31614. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  31615. #include <stdio.h>
  31616. #include <stdlib.h>
  31617. int
  31618. main ()
  31619. {
  31620. FILE *f = fopen ("conftest.val", "w");
  31621. if (! f)
  31622. return 1;
  31623. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  31624. {
  31625. long int i = longval ();
  31626. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  31627. return 1;
  31628. fprintf (f, "%ld\n", i);
  31629. }
  31630. else
  31631. {
  31632. unsigned long int i = ulongval ();
  31633. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  31634. return 1;
  31635. fprintf (f, "%lu\n", i);
  31636. }
  31637. return ferror (f) || fclose (f) != 0;
  31638. ;
  31639. return 0;
  31640. }
  31641. _ACEOF
  31642. rm -f conftest$ac_exeext
  31643. if { (ac_try="$ac_link"
  31644. case "(($ac_try" in
  31645. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31646. *) ac_try_echo=$ac_try;;
  31647. esac
  31648. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31649. (eval "$ac_link") 2>&5
  31650. ac_status=$?
  31651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31652. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  31653. { (case "(($ac_try" in
  31654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31655. *) ac_try_echo=$ac_try;;
  31656. esac
  31657. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31658. (eval "$ac_try") 2>&5
  31659. ac_status=$?
  31660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31661. (exit $ac_status); }; }; then
  31662. ac_cv_sizeof_int=`cat conftest.val`
  31663. else
  31664. echo "$as_me: program exited with status $ac_status" >&5
  31665. echo "$as_me: failed program was:" >&5
  31666. sed 's/^/| /' conftest.$ac_ext >&5
  31667. ( exit $ac_status )
  31668. if test "$ac_cv_type_int" = yes; then
  31669. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  31670. See \`config.log' for more details." >&5
  31671. echo "$as_me: error: cannot compute sizeof (int)
  31672. See \`config.log' for more details." >&2;}
  31673. { (exit 77); exit 77; }; }
  31674. else
  31675. ac_cv_sizeof_int=0
  31676. fi
  31677. fi
  31678. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  31679. fi
  31680. rm -f conftest.val
  31681. fi
  31682. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  31683. echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
  31684. cat >>confdefs.h <<_ACEOF
  31685. #define SIZEOF_INT $ac_cv_sizeof_int
  31686. _ACEOF
  31687. { echo "$as_me:$LINENO: checking for long" >&5
  31688. echo $ECHO_N "checking for long... $ECHO_C" >&6; }
  31689. if test "${ac_cv_type_long+set}" = set; then
  31690. echo $ECHO_N "(cached) $ECHO_C" >&6
  31691. else
  31692. cat >conftest.$ac_ext <<_ACEOF
  31693. /* confdefs.h. */
  31694. _ACEOF
  31695. cat confdefs.h >>conftest.$ac_ext
  31696. cat >>conftest.$ac_ext <<_ACEOF
  31697. /* end confdefs.h. */
  31698. $ac_includes_default
  31699. typedef long ac__type_new_;
  31700. int
  31701. main ()
  31702. {
  31703. if ((ac__type_new_ *) 0)
  31704. return 0;
  31705. if (sizeof (ac__type_new_))
  31706. return 0;
  31707. ;
  31708. return 0;
  31709. }
  31710. _ACEOF
  31711. rm -f conftest.$ac_objext
  31712. if { (ac_try="$ac_compile"
  31713. case "(($ac_try" in
  31714. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31715. *) ac_try_echo=$ac_try;;
  31716. esac
  31717. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31718. (eval "$ac_compile") 2>conftest.er1
  31719. ac_status=$?
  31720. grep -v '^ *+' conftest.er1 >conftest.err
  31721. rm -f conftest.er1
  31722. cat conftest.err >&5
  31723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31724. (exit $ac_status); } && {
  31725. test -z "$ac_c_werror_flag" ||
  31726. test ! -s conftest.err
  31727. } && test -s conftest.$ac_objext; then
  31728. ac_cv_type_long=yes
  31729. else
  31730. echo "$as_me: failed program was:" >&5
  31731. sed 's/^/| /' conftest.$ac_ext >&5
  31732. ac_cv_type_long=no
  31733. fi
  31734. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31735. fi
  31736. { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  31737. echo "${ECHO_T}$ac_cv_type_long" >&6; }
  31738. # The cast to long int works around a bug in the HP C Compiler
  31739. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  31740. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  31741. # This bug is HP SR number 8606223364.
  31742. { echo "$as_me:$LINENO: checking size of long" >&5
  31743. echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
  31744. if test "${ac_cv_sizeof_long+set}" = set; then
  31745. echo $ECHO_N "(cached) $ECHO_C" >&6
  31746. else
  31747. if test "$cross_compiling" = yes; then
  31748. # Depending upon the size, compute the lo and hi bounds.
  31749. cat >conftest.$ac_ext <<_ACEOF
  31750. /* confdefs.h. */
  31751. _ACEOF
  31752. cat confdefs.h >>conftest.$ac_ext
  31753. cat >>conftest.$ac_ext <<_ACEOF
  31754. /* end confdefs.h. */
  31755. $ac_includes_default
  31756. typedef long ac__type_sizeof_;
  31757. int
  31758. main ()
  31759. {
  31760. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  31761. test_array [0] = 0
  31762. ;
  31763. return 0;
  31764. }
  31765. _ACEOF
  31766. rm -f conftest.$ac_objext
  31767. if { (ac_try="$ac_compile"
  31768. case "(($ac_try" in
  31769. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31770. *) ac_try_echo=$ac_try;;
  31771. esac
  31772. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31773. (eval "$ac_compile") 2>conftest.er1
  31774. ac_status=$?
  31775. grep -v '^ *+' conftest.er1 >conftest.err
  31776. rm -f conftest.er1
  31777. cat conftest.err >&5
  31778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31779. (exit $ac_status); } && {
  31780. test -z "$ac_c_werror_flag" ||
  31781. test ! -s conftest.err
  31782. } && test -s conftest.$ac_objext; then
  31783. ac_lo=0 ac_mid=0
  31784. while :; do
  31785. cat >conftest.$ac_ext <<_ACEOF
  31786. /* confdefs.h. */
  31787. _ACEOF
  31788. cat confdefs.h >>conftest.$ac_ext
  31789. cat >>conftest.$ac_ext <<_ACEOF
  31790. /* end confdefs.h. */
  31791. $ac_includes_default
  31792. typedef long ac__type_sizeof_;
  31793. int
  31794. main ()
  31795. {
  31796. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  31797. test_array [0] = 0
  31798. ;
  31799. return 0;
  31800. }
  31801. _ACEOF
  31802. rm -f conftest.$ac_objext
  31803. if { (ac_try="$ac_compile"
  31804. case "(($ac_try" in
  31805. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31806. *) ac_try_echo=$ac_try;;
  31807. esac
  31808. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31809. (eval "$ac_compile") 2>conftest.er1
  31810. ac_status=$?
  31811. grep -v '^ *+' conftest.er1 >conftest.err
  31812. rm -f conftest.er1
  31813. cat conftest.err >&5
  31814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31815. (exit $ac_status); } && {
  31816. test -z "$ac_c_werror_flag" ||
  31817. test ! -s conftest.err
  31818. } && test -s conftest.$ac_objext; then
  31819. ac_hi=$ac_mid; break
  31820. else
  31821. echo "$as_me: failed program was:" >&5
  31822. sed 's/^/| /' conftest.$ac_ext >&5
  31823. ac_lo=`expr $ac_mid + 1`
  31824. if test $ac_lo -le $ac_mid; then
  31825. ac_lo= ac_hi=
  31826. break
  31827. fi
  31828. ac_mid=`expr 2 '*' $ac_mid + 1`
  31829. fi
  31830. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31831. done
  31832. else
  31833. echo "$as_me: failed program was:" >&5
  31834. sed 's/^/| /' conftest.$ac_ext >&5
  31835. cat >conftest.$ac_ext <<_ACEOF
  31836. /* confdefs.h. */
  31837. _ACEOF
  31838. cat confdefs.h >>conftest.$ac_ext
  31839. cat >>conftest.$ac_ext <<_ACEOF
  31840. /* end confdefs.h. */
  31841. $ac_includes_default
  31842. typedef long ac__type_sizeof_;
  31843. int
  31844. main ()
  31845. {
  31846. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  31847. test_array [0] = 0
  31848. ;
  31849. return 0;
  31850. }
  31851. _ACEOF
  31852. rm -f conftest.$ac_objext
  31853. if { (ac_try="$ac_compile"
  31854. case "(($ac_try" in
  31855. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31856. *) ac_try_echo=$ac_try;;
  31857. esac
  31858. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31859. (eval "$ac_compile") 2>conftest.er1
  31860. ac_status=$?
  31861. grep -v '^ *+' conftest.er1 >conftest.err
  31862. rm -f conftest.er1
  31863. cat conftest.err >&5
  31864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31865. (exit $ac_status); } && {
  31866. test -z "$ac_c_werror_flag" ||
  31867. test ! -s conftest.err
  31868. } && test -s conftest.$ac_objext; then
  31869. ac_hi=-1 ac_mid=-1
  31870. while :; do
  31871. cat >conftest.$ac_ext <<_ACEOF
  31872. /* confdefs.h. */
  31873. _ACEOF
  31874. cat confdefs.h >>conftest.$ac_ext
  31875. cat >>conftest.$ac_ext <<_ACEOF
  31876. /* end confdefs.h. */
  31877. $ac_includes_default
  31878. typedef long ac__type_sizeof_;
  31879. int
  31880. main ()
  31881. {
  31882. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  31883. test_array [0] = 0
  31884. ;
  31885. return 0;
  31886. }
  31887. _ACEOF
  31888. rm -f conftest.$ac_objext
  31889. if { (ac_try="$ac_compile"
  31890. case "(($ac_try" in
  31891. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31892. *) ac_try_echo=$ac_try;;
  31893. esac
  31894. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31895. (eval "$ac_compile") 2>conftest.er1
  31896. ac_status=$?
  31897. grep -v '^ *+' conftest.er1 >conftest.err
  31898. rm -f conftest.er1
  31899. cat conftest.err >&5
  31900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31901. (exit $ac_status); } && {
  31902. test -z "$ac_c_werror_flag" ||
  31903. test ! -s conftest.err
  31904. } && test -s conftest.$ac_objext; then
  31905. ac_lo=$ac_mid; break
  31906. else
  31907. echo "$as_me: failed program was:" >&5
  31908. sed 's/^/| /' conftest.$ac_ext >&5
  31909. ac_hi=`expr '(' $ac_mid ')' - 1`
  31910. if test $ac_mid -le $ac_hi; then
  31911. ac_lo= ac_hi=
  31912. break
  31913. fi
  31914. ac_mid=`expr 2 '*' $ac_mid`
  31915. fi
  31916. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31917. done
  31918. else
  31919. echo "$as_me: failed program was:" >&5
  31920. sed 's/^/| /' conftest.$ac_ext >&5
  31921. ac_lo= ac_hi=
  31922. fi
  31923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31924. fi
  31925. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31926. # Binary search between lo and hi bounds.
  31927. while test "x$ac_lo" != "x$ac_hi"; do
  31928. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  31929. cat >conftest.$ac_ext <<_ACEOF
  31930. /* confdefs.h. */
  31931. _ACEOF
  31932. cat confdefs.h >>conftest.$ac_ext
  31933. cat >>conftest.$ac_ext <<_ACEOF
  31934. /* end confdefs.h. */
  31935. $ac_includes_default
  31936. typedef long ac__type_sizeof_;
  31937. int
  31938. main ()
  31939. {
  31940. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  31941. test_array [0] = 0
  31942. ;
  31943. return 0;
  31944. }
  31945. _ACEOF
  31946. rm -f conftest.$ac_objext
  31947. if { (ac_try="$ac_compile"
  31948. case "(($ac_try" in
  31949. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31950. *) ac_try_echo=$ac_try;;
  31951. esac
  31952. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31953. (eval "$ac_compile") 2>conftest.er1
  31954. ac_status=$?
  31955. grep -v '^ *+' conftest.er1 >conftest.err
  31956. rm -f conftest.er1
  31957. cat conftest.err >&5
  31958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31959. (exit $ac_status); } && {
  31960. test -z "$ac_c_werror_flag" ||
  31961. test ! -s conftest.err
  31962. } && test -s conftest.$ac_objext; then
  31963. ac_hi=$ac_mid
  31964. else
  31965. echo "$as_me: failed program was:" >&5
  31966. sed 's/^/| /' conftest.$ac_ext >&5
  31967. ac_lo=`expr '(' $ac_mid ')' + 1`
  31968. fi
  31969. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31970. done
  31971. case $ac_lo in
  31972. ?*) ac_cv_sizeof_long=$ac_lo;;
  31973. '') if test "$ac_cv_type_long" = yes; then
  31974. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  31975. See \`config.log' for more details." >&5
  31976. echo "$as_me: error: cannot compute sizeof (long)
  31977. See \`config.log' for more details." >&2;}
  31978. { (exit 77); exit 77; }; }
  31979. else
  31980. ac_cv_sizeof_long=0
  31981. fi ;;
  31982. esac
  31983. else
  31984. cat >conftest.$ac_ext <<_ACEOF
  31985. /* confdefs.h. */
  31986. _ACEOF
  31987. cat confdefs.h >>conftest.$ac_ext
  31988. cat >>conftest.$ac_ext <<_ACEOF
  31989. /* end confdefs.h. */
  31990. $ac_includes_default
  31991. typedef long ac__type_sizeof_;
  31992. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  31993. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  31994. #include <stdio.h>
  31995. #include <stdlib.h>
  31996. int
  31997. main ()
  31998. {
  31999. FILE *f = fopen ("conftest.val", "w");
  32000. if (! f)
  32001. return 1;
  32002. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  32003. {
  32004. long int i = longval ();
  32005. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  32006. return 1;
  32007. fprintf (f, "%ld\n", i);
  32008. }
  32009. else
  32010. {
  32011. unsigned long int i = ulongval ();
  32012. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  32013. return 1;
  32014. fprintf (f, "%lu\n", i);
  32015. }
  32016. return ferror (f) || fclose (f) != 0;
  32017. ;
  32018. return 0;
  32019. }
  32020. _ACEOF
  32021. rm -f conftest$ac_exeext
  32022. if { (ac_try="$ac_link"
  32023. case "(($ac_try" in
  32024. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32025. *) ac_try_echo=$ac_try;;
  32026. esac
  32027. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32028. (eval "$ac_link") 2>&5
  32029. ac_status=$?
  32030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32031. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  32032. { (case "(($ac_try" in
  32033. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32034. *) ac_try_echo=$ac_try;;
  32035. esac
  32036. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32037. (eval "$ac_try") 2>&5
  32038. ac_status=$?
  32039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32040. (exit $ac_status); }; }; then
  32041. ac_cv_sizeof_long=`cat conftest.val`
  32042. else
  32043. echo "$as_me: program exited with status $ac_status" >&5
  32044. echo "$as_me: failed program was:" >&5
  32045. sed 's/^/| /' conftest.$ac_ext >&5
  32046. ( exit $ac_status )
  32047. if test "$ac_cv_type_long" = yes; then
  32048. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  32049. See \`config.log' for more details." >&5
  32050. echo "$as_me: error: cannot compute sizeof (long)
  32051. See \`config.log' for more details." >&2;}
  32052. { (exit 77); exit 77; }; }
  32053. else
  32054. ac_cv_sizeof_long=0
  32055. fi
  32056. fi
  32057. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  32058. fi
  32059. rm -f conftest.val
  32060. fi
  32061. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  32062. echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
  32063. cat >>confdefs.h <<_ACEOF
  32064. #define SIZEOF_LONG $ac_cv_sizeof_long
  32065. _ACEOF
  32066. if test -z "$ac_cv_sizeof_long" ||
  32067. test "$ac_cv_sizeof_long" -eq "0"; then
  32068. { { echo "$as_me:$LINENO: error: cannot find out size of long." >&5
  32069. echo "$as_me: error: cannot find out size of long." >&2;}
  32070. { (exit 1); exit 1; }; }
  32071. fi
  32072. cat >>confdefs.h <<_EOF
  32073. #define CURL_SIZEOF_LONG $ac_cv_sizeof_long
  32074. _EOF
  32075. { echo "$as_me:$LINENO: checking for time_t" >&5
  32076. echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
  32077. if test "${ac_cv_type_time_t+set}" = set; then
  32078. echo $ECHO_N "(cached) $ECHO_C" >&6
  32079. else
  32080. cat >conftest.$ac_ext <<_ACEOF
  32081. /* confdefs.h. */
  32082. _ACEOF
  32083. cat confdefs.h >>conftest.$ac_ext
  32084. cat >>conftest.$ac_ext <<_ACEOF
  32085. /* end confdefs.h. */
  32086. $ac_includes_default
  32087. typedef time_t ac__type_new_;
  32088. int
  32089. main ()
  32090. {
  32091. if ((ac__type_new_ *) 0)
  32092. return 0;
  32093. if (sizeof (ac__type_new_))
  32094. return 0;
  32095. ;
  32096. return 0;
  32097. }
  32098. _ACEOF
  32099. rm -f conftest.$ac_objext
  32100. if { (ac_try="$ac_compile"
  32101. case "(($ac_try" in
  32102. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32103. *) ac_try_echo=$ac_try;;
  32104. esac
  32105. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32106. (eval "$ac_compile") 2>conftest.er1
  32107. ac_status=$?
  32108. grep -v '^ *+' conftest.er1 >conftest.err
  32109. rm -f conftest.er1
  32110. cat conftest.err >&5
  32111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32112. (exit $ac_status); } && {
  32113. test -z "$ac_c_werror_flag" ||
  32114. test ! -s conftest.err
  32115. } && test -s conftest.$ac_objext; then
  32116. ac_cv_type_time_t=yes
  32117. else
  32118. echo "$as_me: failed program was:" >&5
  32119. sed 's/^/| /' conftest.$ac_ext >&5
  32120. ac_cv_type_time_t=no
  32121. fi
  32122. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32123. fi
  32124. { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
  32125. echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
  32126. # The cast to long int works around a bug in the HP C Compiler
  32127. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  32128. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  32129. # This bug is HP SR number 8606223364.
  32130. { echo "$as_me:$LINENO: checking size of time_t" >&5
  32131. echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
  32132. if test "${ac_cv_sizeof_time_t+set}" = set; then
  32133. echo $ECHO_N "(cached) $ECHO_C" >&6
  32134. else
  32135. if test "$cross_compiling" = yes; then
  32136. # Depending upon the size, compute the lo and hi bounds.
  32137. cat >conftest.$ac_ext <<_ACEOF
  32138. /* confdefs.h. */
  32139. _ACEOF
  32140. cat confdefs.h >>conftest.$ac_ext
  32141. cat >>conftest.$ac_ext <<_ACEOF
  32142. /* end confdefs.h. */
  32143. $ac_includes_default
  32144. typedef time_t ac__type_sizeof_;
  32145. int
  32146. main ()
  32147. {
  32148. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  32149. test_array [0] = 0
  32150. ;
  32151. return 0;
  32152. }
  32153. _ACEOF
  32154. rm -f conftest.$ac_objext
  32155. if { (ac_try="$ac_compile"
  32156. case "(($ac_try" in
  32157. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32158. *) ac_try_echo=$ac_try;;
  32159. esac
  32160. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32161. (eval "$ac_compile") 2>conftest.er1
  32162. ac_status=$?
  32163. grep -v '^ *+' conftest.er1 >conftest.err
  32164. rm -f conftest.er1
  32165. cat conftest.err >&5
  32166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32167. (exit $ac_status); } && {
  32168. test -z "$ac_c_werror_flag" ||
  32169. test ! -s conftest.err
  32170. } && test -s conftest.$ac_objext; then
  32171. ac_lo=0 ac_mid=0
  32172. while :; do
  32173. cat >conftest.$ac_ext <<_ACEOF
  32174. /* confdefs.h. */
  32175. _ACEOF
  32176. cat confdefs.h >>conftest.$ac_ext
  32177. cat >>conftest.$ac_ext <<_ACEOF
  32178. /* end confdefs.h. */
  32179. $ac_includes_default
  32180. typedef time_t ac__type_sizeof_;
  32181. int
  32182. main ()
  32183. {
  32184. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  32185. test_array [0] = 0
  32186. ;
  32187. return 0;
  32188. }
  32189. _ACEOF
  32190. rm -f conftest.$ac_objext
  32191. if { (ac_try="$ac_compile"
  32192. case "(($ac_try" in
  32193. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32194. *) ac_try_echo=$ac_try;;
  32195. esac
  32196. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32197. (eval "$ac_compile") 2>conftest.er1
  32198. ac_status=$?
  32199. grep -v '^ *+' conftest.er1 >conftest.err
  32200. rm -f conftest.er1
  32201. cat conftest.err >&5
  32202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32203. (exit $ac_status); } && {
  32204. test -z "$ac_c_werror_flag" ||
  32205. test ! -s conftest.err
  32206. } && test -s conftest.$ac_objext; then
  32207. ac_hi=$ac_mid; break
  32208. else
  32209. echo "$as_me: failed program was:" >&5
  32210. sed 's/^/| /' conftest.$ac_ext >&5
  32211. ac_lo=`expr $ac_mid + 1`
  32212. if test $ac_lo -le $ac_mid; then
  32213. ac_lo= ac_hi=
  32214. break
  32215. fi
  32216. ac_mid=`expr 2 '*' $ac_mid + 1`
  32217. fi
  32218. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32219. done
  32220. else
  32221. echo "$as_me: failed program was:" >&5
  32222. sed 's/^/| /' conftest.$ac_ext >&5
  32223. cat >conftest.$ac_ext <<_ACEOF
  32224. /* confdefs.h. */
  32225. _ACEOF
  32226. cat confdefs.h >>conftest.$ac_ext
  32227. cat >>conftest.$ac_ext <<_ACEOF
  32228. /* end confdefs.h. */
  32229. $ac_includes_default
  32230. typedef time_t ac__type_sizeof_;
  32231. int
  32232. main ()
  32233. {
  32234. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  32235. test_array [0] = 0
  32236. ;
  32237. return 0;
  32238. }
  32239. _ACEOF
  32240. rm -f conftest.$ac_objext
  32241. if { (ac_try="$ac_compile"
  32242. case "(($ac_try" in
  32243. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32244. *) ac_try_echo=$ac_try;;
  32245. esac
  32246. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32247. (eval "$ac_compile") 2>conftest.er1
  32248. ac_status=$?
  32249. grep -v '^ *+' conftest.er1 >conftest.err
  32250. rm -f conftest.er1
  32251. cat conftest.err >&5
  32252. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32253. (exit $ac_status); } && {
  32254. test -z "$ac_c_werror_flag" ||
  32255. test ! -s conftest.err
  32256. } && test -s conftest.$ac_objext; then
  32257. ac_hi=-1 ac_mid=-1
  32258. while :; do
  32259. cat >conftest.$ac_ext <<_ACEOF
  32260. /* confdefs.h. */
  32261. _ACEOF
  32262. cat confdefs.h >>conftest.$ac_ext
  32263. cat >>conftest.$ac_ext <<_ACEOF
  32264. /* end confdefs.h. */
  32265. $ac_includes_default
  32266. typedef time_t ac__type_sizeof_;
  32267. int
  32268. main ()
  32269. {
  32270. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  32271. test_array [0] = 0
  32272. ;
  32273. return 0;
  32274. }
  32275. _ACEOF
  32276. rm -f conftest.$ac_objext
  32277. if { (ac_try="$ac_compile"
  32278. case "(($ac_try" in
  32279. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32280. *) ac_try_echo=$ac_try;;
  32281. esac
  32282. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32283. (eval "$ac_compile") 2>conftest.er1
  32284. ac_status=$?
  32285. grep -v '^ *+' conftest.er1 >conftest.err
  32286. rm -f conftest.er1
  32287. cat conftest.err >&5
  32288. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32289. (exit $ac_status); } && {
  32290. test -z "$ac_c_werror_flag" ||
  32291. test ! -s conftest.err
  32292. } && test -s conftest.$ac_objext; then
  32293. ac_lo=$ac_mid; break
  32294. else
  32295. echo "$as_me: failed program was:" >&5
  32296. sed 's/^/| /' conftest.$ac_ext >&5
  32297. ac_hi=`expr '(' $ac_mid ')' - 1`
  32298. if test $ac_mid -le $ac_hi; then
  32299. ac_lo= ac_hi=
  32300. break
  32301. fi
  32302. ac_mid=`expr 2 '*' $ac_mid`
  32303. fi
  32304. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32305. done
  32306. else
  32307. echo "$as_me: failed program was:" >&5
  32308. sed 's/^/| /' conftest.$ac_ext >&5
  32309. ac_lo= ac_hi=
  32310. fi
  32311. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32312. fi
  32313. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32314. # Binary search between lo and hi bounds.
  32315. while test "x$ac_lo" != "x$ac_hi"; do
  32316. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  32317. cat >conftest.$ac_ext <<_ACEOF
  32318. /* confdefs.h. */
  32319. _ACEOF
  32320. cat confdefs.h >>conftest.$ac_ext
  32321. cat >>conftest.$ac_ext <<_ACEOF
  32322. /* end confdefs.h. */
  32323. $ac_includes_default
  32324. typedef time_t ac__type_sizeof_;
  32325. int
  32326. main ()
  32327. {
  32328. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  32329. test_array [0] = 0
  32330. ;
  32331. return 0;
  32332. }
  32333. _ACEOF
  32334. rm -f conftest.$ac_objext
  32335. if { (ac_try="$ac_compile"
  32336. case "(($ac_try" in
  32337. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32338. *) ac_try_echo=$ac_try;;
  32339. esac
  32340. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32341. (eval "$ac_compile") 2>conftest.er1
  32342. ac_status=$?
  32343. grep -v '^ *+' conftest.er1 >conftest.err
  32344. rm -f conftest.er1
  32345. cat conftest.err >&5
  32346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32347. (exit $ac_status); } && {
  32348. test -z "$ac_c_werror_flag" ||
  32349. test ! -s conftest.err
  32350. } && test -s conftest.$ac_objext; then
  32351. ac_hi=$ac_mid
  32352. else
  32353. echo "$as_me: failed program was:" >&5
  32354. sed 's/^/| /' conftest.$ac_ext >&5
  32355. ac_lo=`expr '(' $ac_mid ')' + 1`
  32356. fi
  32357. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32358. done
  32359. case $ac_lo in
  32360. ?*) ac_cv_sizeof_time_t=$ac_lo;;
  32361. '') if test "$ac_cv_type_time_t" = yes; then
  32362. { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
  32363. See \`config.log' for more details." >&5
  32364. echo "$as_me: error: cannot compute sizeof (time_t)
  32365. See \`config.log' for more details." >&2;}
  32366. { (exit 77); exit 77; }; }
  32367. else
  32368. ac_cv_sizeof_time_t=0
  32369. fi ;;
  32370. esac
  32371. else
  32372. cat >conftest.$ac_ext <<_ACEOF
  32373. /* confdefs.h. */
  32374. _ACEOF
  32375. cat confdefs.h >>conftest.$ac_ext
  32376. cat >>conftest.$ac_ext <<_ACEOF
  32377. /* end confdefs.h. */
  32378. $ac_includes_default
  32379. typedef time_t ac__type_sizeof_;
  32380. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  32381. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  32382. #include <stdio.h>
  32383. #include <stdlib.h>
  32384. int
  32385. main ()
  32386. {
  32387. FILE *f = fopen ("conftest.val", "w");
  32388. if (! f)
  32389. return 1;
  32390. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  32391. {
  32392. long int i = longval ();
  32393. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  32394. return 1;
  32395. fprintf (f, "%ld\n", i);
  32396. }
  32397. else
  32398. {
  32399. unsigned long int i = ulongval ();
  32400. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  32401. return 1;
  32402. fprintf (f, "%lu\n", i);
  32403. }
  32404. return ferror (f) || fclose (f) != 0;
  32405. ;
  32406. return 0;
  32407. }
  32408. _ACEOF
  32409. rm -f conftest$ac_exeext
  32410. if { (ac_try="$ac_link"
  32411. case "(($ac_try" in
  32412. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32413. *) ac_try_echo=$ac_try;;
  32414. esac
  32415. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32416. (eval "$ac_link") 2>&5
  32417. ac_status=$?
  32418. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32419. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  32420. { (case "(($ac_try" in
  32421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32422. *) ac_try_echo=$ac_try;;
  32423. esac
  32424. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32425. (eval "$ac_try") 2>&5
  32426. ac_status=$?
  32427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32428. (exit $ac_status); }; }; then
  32429. ac_cv_sizeof_time_t=`cat conftest.val`
  32430. else
  32431. echo "$as_me: program exited with status $ac_status" >&5
  32432. echo "$as_me: failed program was:" >&5
  32433. sed 's/^/| /' conftest.$ac_ext >&5
  32434. ( exit $ac_status )
  32435. if test "$ac_cv_type_time_t" = yes; then
  32436. { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
  32437. See \`config.log' for more details." >&5
  32438. echo "$as_me: error: cannot compute sizeof (time_t)
  32439. See \`config.log' for more details." >&2;}
  32440. { (exit 77); exit 77; }; }
  32441. else
  32442. ac_cv_sizeof_time_t=0
  32443. fi
  32444. fi
  32445. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  32446. fi
  32447. rm -f conftest.val
  32448. fi
  32449. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
  32450. echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
  32451. cat >>confdefs.h <<_ACEOF
  32452. #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
  32453. _ACEOF
  32454. { echo "$as_me:$LINENO: checking for off_t" >&5
  32455. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  32456. if test "${ac_cv_type_off_t+set}" = set; then
  32457. echo $ECHO_N "(cached) $ECHO_C" >&6
  32458. else
  32459. cat >conftest.$ac_ext <<_ACEOF
  32460. /* confdefs.h. */
  32461. _ACEOF
  32462. cat confdefs.h >>conftest.$ac_ext
  32463. cat >>conftest.$ac_ext <<_ACEOF
  32464. /* end confdefs.h. */
  32465. $ac_includes_default
  32466. typedef off_t ac__type_new_;
  32467. int
  32468. main ()
  32469. {
  32470. if ((ac__type_new_ *) 0)
  32471. return 0;
  32472. if (sizeof (ac__type_new_))
  32473. return 0;
  32474. ;
  32475. return 0;
  32476. }
  32477. _ACEOF
  32478. rm -f conftest.$ac_objext
  32479. if { (ac_try="$ac_compile"
  32480. case "(($ac_try" in
  32481. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32482. *) ac_try_echo=$ac_try;;
  32483. esac
  32484. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32485. (eval "$ac_compile") 2>conftest.er1
  32486. ac_status=$?
  32487. grep -v '^ *+' conftest.er1 >conftest.err
  32488. rm -f conftest.er1
  32489. cat conftest.err >&5
  32490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32491. (exit $ac_status); } && {
  32492. test -z "$ac_c_werror_flag" ||
  32493. test ! -s conftest.err
  32494. } && test -s conftest.$ac_objext; then
  32495. ac_cv_type_off_t=yes
  32496. else
  32497. echo "$as_me: failed program was:" >&5
  32498. sed 's/^/| /' conftest.$ac_ext >&5
  32499. ac_cv_type_off_t=no
  32500. fi
  32501. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32502. fi
  32503. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  32504. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  32505. # The cast to long int works around a bug in the HP C Compiler
  32506. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  32507. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  32508. # This bug is HP SR number 8606223364.
  32509. { echo "$as_me:$LINENO: checking size of off_t" >&5
  32510. echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
  32511. if test "${ac_cv_sizeof_off_t+set}" = set; then
  32512. echo $ECHO_N "(cached) $ECHO_C" >&6
  32513. else
  32514. if test "$cross_compiling" = yes; then
  32515. # Depending upon the size, compute the lo and hi bounds.
  32516. cat >conftest.$ac_ext <<_ACEOF
  32517. /* confdefs.h. */
  32518. _ACEOF
  32519. cat confdefs.h >>conftest.$ac_ext
  32520. cat >>conftest.$ac_ext <<_ACEOF
  32521. /* end confdefs.h. */
  32522. $ac_includes_default
  32523. typedef off_t ac__type_sizeof_;
  32524. int
  32525. main ()
  32526. {
  32527. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  32528. test_array [0] = 0
  32529. ;
  32530. return 0;
  32531. }
  32532. _ACEOF
  32533. rm -f conftest.$ac_objext
  32534. if { (ac_try="$ac_compile"
  32535. case "(($ac_try" in
  32536. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32537. *) ac_try_echo=$ac_try;;
  32538. esac
  32539. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32540. (eval "$ac_compile") 2>conftest.er1
  32541. ac_status=$?
  32542. grep -v '^ *+' conftest.er1 >conftest.err
  32543. rm -f conftest.er1
  32544. cat conftest.err >&5
  32545. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32546. (exit $ac_status); } && {
  32547. test -z "$ac_c_werror_flag" ||
  32548. test ! -s conftest.err
  32549. } && test -s conftest.$ac_objext; then
  32550. ac_lo=0 ac_mid=0
  32551. while :; do
  32552. cat >conftest.$ac_ext <<_ACEOF
  32553. /* confdefs.h. */
  32554. _ACEOF
  32555. cat confdefs.h >>conftest.$ac_ext
  32556. cat >>conftest.$ac_ext <<_ACEOF
  32557. /* end confdefs.h. */
  32558. $ac_includes_default
  32559. typedef off_t ac__type_sizeof_;
  32560. int
  32561. main ()
  32562. {
  32563. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  32564. test_array [0] = 0
  32565. ;
  32566. return 0;
  32567. }
  32568. _ACEOF
  32569. rm -f conftest.$ac_objext
  32570. if { (ac_try="$ac_compile"
  32571. case "(($ac_try" in
  32572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32573. *) ac_try_echo=$ac_try;;
  32574. esac
  32575. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32576. (eval "$ac_compile") 2>conftest.er1
  32577. ac_status=$?
  32578. grep -v '^ *+' conftest.er1 >conftest.err
  32579. rm -f conftest.er1
  32580. cat conftest.err >&5
  32581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32582. (exit $ac_status); } && {
  32583. test -z "$ac_c_werror_flag" ||
  32584. test ! -s conftest.err
  32585. } && test -s conftest.$ac_objext; then
  32586. ac_hi=$ac_mid; break
  32587. else
  32588. echo "$as_me: failed program was:" >&5
  32589. sed 's/^/| /' conftest.$ac_ext >&5
  32590. ac_lo=`expr $ac_mid + 1`
  32591. if test $ac_lo -le $ac_mid; then
  32592. ac_lo= ac_hi=
  32593. break
  32594. fi
  32595. ac_mid=`expr 2 '*' $ac_mid + 1`
  32596. fi
  32597. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32598. done
  32599. else
  32600. echo "$as_me: failed program was:" >&5
  32601. sed 's/^/| /' conftest.$ac_ext >&5
  32602. cat >conftest.$ac_ext <<_ACEOF
  32603. /* confdefs.h. */
  32604. _ACEOF
  32605. cat confdefs.h >>conftest.$ac_ext
  32606. cat >>conftest.$ac_ext <<_ACEOF
  32607. /* end confdefs.h. */
  32608. $ac_includes_default
  32609. typedef off_t ac__type_sizeof_;
  32610. int
  32611. main ()
  32612. {
  32613. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  32614. test_array [0] = 0
  32615. ;
  32616. return 0;
  32617. }
  32618. _ACEOF
  32619. rm -f conftest.$ac_objext
  32620. if { (ac_try="$ac_compile"
  32621. case "(($ac_try" in
  32622. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32623. *) ac_try_echo=$ac_try;;
  32624. esac
  32625. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32626. (eval "$ac_compile") 2>conftest.er1
  32627. ac_status=$?
  32628. grep -v '^ *+' conftest.er1 >conftest.err
  32629. rm -f conftest.er1
  32630. cat conftest.err >&5
  32631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32632. (exit $ac_status); } && {
  32633. test -z "$ac_c_werror_flag" ||
  32634. test ! -s conftest.err
  32635. } && test -s conftest.$ac_objext; then
  32636. ac_hi=-1 ac_mid=-1
  32637. while :; do
  32638. cat >conftest.$ac_ext <<_ACEOF
  32639. /* confdefs.h. */
  32640. _ACEOF
  32641. cat confdefs.h >>conftest.$ac_ext
  32642. cat >>conftest.$ac_ext <<_ACEOF
  32643. /* end confdefs.h. */
  32644. $ac_includes_default
  32645. typedef off_t ac__type_sizeof_;
  32646. int
  32647. main ()
  32648. {
  32649. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  32650. test_array [0] = 0
  32651. ;
  32652. return 0;
  32653. }
  32654. _ACEOF
  32655. rm -f conftest.$ac_objext
  32656. if { (ac_try="$ac_compile"
  32657. case "(($ac_try" in
  32658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32659. *) ac_try_echo=$ac_try;;
  32660. esac
  32661. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32662. (eval "$ac_compile") 2>conftest.er1
  32663. ac_status=$?
  32664. grep -v '^ *+' conftest.er1 >conftest.err
  32665. rm -f conftest.er1
  32666. cat conftest.err >&5
  32667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32668. (exit $ac_status); } && {
  32669. test -z "$ac_c_werror_flag" ||
  32670. test ! -s conftest.err
  32671. } && test -s conftest.$ac_objext; then
  32672. ac_lo=$ac_mid; break
  32673. else
  32674. echo "$as_me: failed program was:" >&5
  32675. sed 's/^/| /' conftest.$ac_ext >&5
  32676. ac_hi=`expr '(' $ac_mid ')' - 1`
  32677. if test $ac_mid -le $ac_hi; then
  32678. ac_lo= ac_hi=
  32679. break
  32680. fi
  32681. ac_mid=`expr 2 '*' $ac_mid`
  32682. fi
  32683. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32684. done
  32685. else
  32686. echo "$as_me: failed program was:" >&5
  32687. sed 's/^/| /' conftest.$ac_ext >&5
  32688. ac_lo= ac_hi=
  32689. fi
  32690. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32691. fi
  32692. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32693. # Binary search between lo and hi bounds.
  32694. while test "x$ac_lo" != "x$ac_hi"; do
  32695. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  32696. cat >conftest.$ac_ext <<_ACEOF
  32697. /* confdefs.h. */
  32698. _ACEOF
  32699. cat confdefs.h >>conftest.$ac_ext
  32700. cat >>conftest.$ac_ext <<_ACEOF
  32701. /* end confdefs.h. */
  32702. $ac_includes_default
  32703. typedef off_t ac__type_sizeof_;
  32704. int
  32705. main ()
  32706. {
  32707. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  32708. test_array [0] = 0
  32709. ;
  32710. return 0;
  32711. }
  32712. _ACEOF
  32713. rm -f conftest.$ac_objext
  32714. if { (ac_try="$ac_compile"
  32715. case "(($ac_try" in
  32716. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32717. *) ac_try_echo=$ac_try;;
  32718. esac
  32719. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32720. (eval "$ac_compile") 2>conftest.er1
  32721. ac_status=$?
  32722. grep -v '^ *+' conftest.er1 >conftest.err
  32723. rm -f conftest.er1
  32724. cat conftest.err >&5
  32725. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32726. (exit $ac_status); } && {
  32727. test -z "$ac_c_werror_flag" ||
  32728. test ! -s conftest.err
  32729. } && test -s conftest.$ac_objext; then
  32730. ac_hi=$ac_mid
  32731. else
  32732. echo "$as_me: failed program was:" >&5
  32733. sed 's/^/| /' conftest.$ac_ext >&5
  32734. ac_lo=`expr '(' $ac_mid ')' + 1`
  32735. fi
  32736. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32737. done
  32738. case $ac_lo in
  32739. ?*) ac_cv_sizeof_off_t=$ac_lo;;
  32740. '') if test "$ac_cv_type_off_t" = yes; then
  32741. { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
  32742. See \`config.log' for more details." >&5
  32743. echo "$as_me: error: cannot compute sizeof (off_t)
  32744. See \`config.log' for more details." >&2;}
  32745. { (exit 77); exit 77; }; }
  32746. else
  32747. ac_cv_sizeof_off_t=0
  32748. fi ;;
  32749. esac
  32750. else
  32751. cat >conftest.$ac_ext <<_ACEOF
  32752. /* confdefs.h. */
  32753. _ACEOF
  32754. cat confdefs.h >>conftest.$ac_ext
  32755. cat >>conftest.$ac_ext <<_ACEOF
  32756. /* end confdefs.h. */
  32757. $ac_includes_default
  32758. typedef off_t ac__type_sizeof_;
  32759. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  32760. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  32761. #include <stdio.h>
  32762. #include <stdlib.h>
  32763. int
  32764. main ()
  32765. {
  32766. FILE *f = fopen ("conftest.val", "w");
  32767. if (! f)
  32768. return 1;
  32769. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  32770. {
  32771. long int i = longval ();
  32772. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  32773. return 1;
  32774. fprintf (f, "%ld\n", i);
  32775. }
  32776. else
  32777. {
  32778. unsigned long int i = ulongval ();
  32779. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  32780. return 1;
  32781. fprintf (f, "%lu\n", i);
  32782. }
  32783. return ferror (f) || fclose (f) != 0;
  32784. ;
  32785. return 0;
  32786. }
  32787. _ACEOF
  32788. rm -f conftest$ac_exeext
  32789. if { (ac_try="$ac_link"
  32790. case "(($ac_try" in
  32791. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32792. *) ac_try_echo=$ac_try;;
  32793. esac
  32794. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32795. (eval "$ac_link") 2>&5
  32796. ac_status=$?
  32797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32798. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  32799. { (case "(($ac_try" in
  32800. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32801. *) ac_try_echo=$ac_try;;
  32802. esac
  32803. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32804. (eval "$ac_try") 2>&5
  32805. ac_status=$?
  32806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32807. (exit $ac_status); }; }; then
  32808. ac_cv_sizeof_off_t=`cat conftest.val`
  32809. else
  32810. echo "$as_me: program exited with status $ac_status" >&5
  32811. echo "$as_me: failed program was:" >&5
  32812. sed 's/^/| /' conftest.$ac_ext >&5
  32813. ( exit $ac_status )
  32814. if test "$ac_cv_type_off_t" = yes; then
  32815. { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
  32816. See \`config.log' for more details." >&5
  32817. echo "$as_me: error: cannot compute sizeof (off_t)
  32818. See \`config.log' for more details." >&2;}
  32819. { (exit 77); exit 77; }; }
  32820. else
  32821. ac_cv_sizeof_off_t=0
  32822. fi
  32823. fi
  32824. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  32825. fi
  32826. rm -f conftest.val
  32827. fi
  32828. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
  32829. echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
  32830. cat >>confdefs.h <<_ACEOF
  32831. #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
  32832. _ACEOF
  32833. soname_bump=no
  32834. if test x"$ac_cv_native_windows" != "xyes" &&
  32835. test $ac_cv_sizeof_off_t -ne $curl_sizeof_curl_off_t; then
  32836. { echo "$as_me:$LINENO: WARNING: This libcurl built is probably not ABI compatible with previous" >&5
  32837. echo "$as_me: WARNING: This libcurl built is probably not ABI compatible with previous" >&2;}
  32838. { echo "$as_me:$LINENO: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&5
  32839. echo "$as_me: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&2;}
  32840. soname_bump=yes
  32841. fi
  32842. { echo "$as_me:$LINENO: checking for long long" >&5
  32843. echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
  32844. if test "${ac_cv_type_long_long+set}" = set; then
  32845. echo $ECHO_N "(cached) $ECHO_C" >&6
  32846. else
  32847. cat >conftest.$ac_ext <<_ACEOF
  32848. /* confdefs.h. */
  32849. _ACEOF
  32850. cat confdefs.h >>conftest.$ac_ext
  32851. cat >>conftest.$ac_ext <<_ACEOF
  32852. /* end confdefs.h. */
  32853. $ac_includes_default
  32854. typedef long long ac__type_new_;
  32855. int
  32856. main ()
  32857. {
  32858. if ((ac__type_new_ *) 0)
  32859. return 0;
  32860. if (sizeof (ac__type_new_))
  32861. return 0;
  32862. ;
  32863. return 0;
  32864. }
  32865. _ACEOF
  32866. rm -f conftest.$ac_objext
  32867. if { (ac_try="$ac_compile"
  32868. case "(($ac_try" in
  32869. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32870. *) ac_try_echo=$ac_try;;
  32871. esac
  32872. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32873. (eval "$ac_compile") 2>conftest.er1
  32874. ac_status=$?
  32875. grep -v '^ *+' conftest.er1 >conftest.err
  32876. rm -f conftest.er1
  32877. cat conftest.err >&5
  32878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32879. (exit $ac_status); } && {
  32880. test -z "$ac_c_werror_flag" ||
  32881. test ! -s conftest.err
  32882. } && test -s conftest.$ac_objext; then
  32883. ac_cv_type_long_long=yes
  32884. else
  32885. echo "$as_me: failed program was:" >&5
  32886. sed 's/^/| /' conftest.$ac_ext >&5
  32887. ac_cv_type_long_long=no
  32888. fi
  32889. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32890. fi
  32891. { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  32892. echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
  32893. if test $ac_cv_type_long_long = yes; then
  32894. cat >>confdefs.h <<\_ACEOF
  32895. #define HAVE_LONGLONG 1
  32896. _ACEOF
  32897. longlong="yes"
  32898. fi
  32899. if test "xyes" = "x$longlong"; then
  32900. { echo "$as_me:$LINENO: checking if numberLL works" >&5
  32901. echo $ECHO_N "checking if numberLL works... $ECHO_C" >&6; }
  32902. cat >conftest.$ac_ext <<_ACEOF
  32903. long long val = 1000LL;
  32904. _ACEOF
  32905. rm -f conftest.$ac_objext
  32906. if { (ac_try="$ac_compile"
  32907. case "(($ac_try" in
  32908. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32909. *) ac_try_echo=$ac_try;;
  32910. esac
  32911. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32912. (eval "$ac_compile") 2>conftest.er1
  32913. ac_status=$?
  32914. grep -v '^ *+' conftest.er1 >conftest.err
  32915. rm -f conftest.er1
  32916. cat conftest.err >&5
  32917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32918. (exit $ac_status); } && {
  32919. test -z "$ac_c_werror_flag" ||
  32920. test ! -s conftest.err
  32921. } && test -s conftest.$ac_objext; then
  32922. cat >>confdefs.h <<\_ACEOF
  32923. #define HAVE_LL 1
  32924. _ACEOF
  32925. { echo "$as_me:$LINENO: result: yes" >&5
  32926. echo "${ECHO_T}yes" >&6; }
  32927. else
  32928. echo "$as_me: failed program was:" >&5
  32929. sed 's/^/| /' conftest.$ac_ext >&5
  32930. { echo "$as_me:$LINENO: result: no" >&5
  32931. echo "${ECHO_T}no" >&6; }
  32932. fi
  32933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32934. fi
  32935. # check for ssize_t
  32936. { echo "$as_me:$LINENO: checking for ssize_t" >&5
  32937. echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
  32938. if test "${ac_cv_type_ssize_t+set}" = set; then
  32939. echo $ECHO_N "(cached) $ECHO_C" >&6
  32940. else
  32941. cat >conftest.$ac_ext <<_ACEOF
  32942. /* confdefs.h. */
  32943. _ACEOF
  32944. cat confdefs.h >>conftest.$ac_ext
  32945. cat >>conftest.$ac_ext <<_ACEOF
  32946. /* end confdefs.h. */
  32947. $ac_includes_default
  32948. typedef ssize_t ac__type_new_;
  32949. int
  32950. main ()
  32951. {
  32952. if ((ac__type_new_ *) 0)
  32953. return 0;
  32954. if (sizeof (ac__type_new_))
  32955. return 0;
  32956. ;
  32957. return 0;
  32958. }
  32959. _ACEOF
  32960. rm -f conftest.$ac_objext
  32961. if { (ac_try="$ac_compile"
  32962. case "(($ac_try" in
  32963. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32964. *) ac_try_echo=$ac_try;;
  32965. esac
  32966. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32967. (eval "$ac_compile") 2>conftest.er1
  32968. ac_status=$?
  32969. grep -v '^ *+' conftest.er1 >conftest.err
  32970. rm -f conftest.er1
  32971. cat conftest.err >&5
  32972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32973. (exit $ac_status); } && {
  32974. test -z "$ac_c_werror_flag" ||
  32975. test ! -s conftest.err
  32976. } && test -s conftest.$ac_objext; then
  32977. ac_cv_type_ssize_t=yes
  32978. else
  32979. echo "$as_me: failed program was:" >&5
  32980. sed 's/^/| /' conftest.$ac_ext >&5
  32981. ac_cv_type_ssize_t=no
  32982. fi
  32983. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32984. fi
  32985. { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
  32986. echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
  32987. if test $ac_cv_type_ssize_t = yes; then
  32988. :
  32989. else
  32990. cat >>confdefs.h <<\_ACEOF
  32991. #define ssize_t int
  32992. _ACEOF
  32993. fi
  32994. # check for bool type
  32995. { echo "$as_me:$LINENO: checking for bool" >&5
  32996. echo $ECHO_N "checking for bool... $ECHO_C" >&6; }
  32997. if test "${ac_cv_type_bool+set}" = set; then
  32998. echo $ECHO_N "(cached) $ECHO_C" >&6
  32999. else
  33000. cat >conftest.$ac_ext <<_ACEOF
  33001. /* confdefs.h. */
  33002. _ACEOF
  33003. cat confdefs.h >>conftest.$ac_ext
  33004. cat >>conftest.$ac_ext <<_ACEOF
  33005. /* end confdefs.h. */
  33006. #ifdef HAVE_SYS_TYPES_H
  33007. #include <sys/types.h>
  33008. #endif
  33009. #ifdef HAVE_STDBOOL_H
  33010. #include <stdbool.h>
  33011. #endif
  33012. typedef bool ac__type_new_;
  33013. int
  33014. main ()
  33015. {
  33016. if ((ac__type_new_ *) 0)
  33017. return 0;
  33018. if (sizeof (ac__type_new_))
  33019. return 0;
  33020. ;
  33021. return 0;
  33022. }
  33023. _ACEOF
  33024. rm -f conftest.$ac_objext
  33025. if { (ac_try="$ac_compile"
  33026. case "(($ac_try" in
  33027. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33028. *) ac_try_echo=$ac_try;;
  33029. esac
  33030. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33031. (eval "$ac_compile") 2>conftest.er1
  33032. ac_status=$?
  33033. grep -v '^ *+' conftest.er1 >conftest.err
  33034. rm -f conftest.er1
  33035. cat conftest.err >&5
  33036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33037. (exit $ac_status); } && {
  33038. test -z "$ac_c_werror_flag" ||
  33039. test ! -s conftest.err
  33040. } && test -s conftest.$ac_objext; then
  33041. ac_cv_type_bool=yes
  33042. else
  33043. echo "$as_me: failed program was:" >&5
  33044. sed 's/^/| /' conftest.$ac_ext >&5
  33045. ac_cv_type_bool=no
  33046. fi
  33047. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33048. fi
  33049. { echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5
  33050. echo "${ECHO_T}$ac_cv_type_bool" >&6; }
  33051. if test $ac_cv_type_bool = yes; then
  33052. cat >>confdefs.h <<\_ACEOF
  33053. #define HAVE_BOOL_T 1
  33054. _ACEOF
  33055. fi
  33056. # Check for socklen_t or equivalent
  33057. { echo "$as_me:$LINENO: checking for socklen_t" >&5
  33058. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
  33059. if test "${ac_cv_type_socklen_t+set}" = set; then
  33060. echo $ECHO_N "(cached) $ECHO_C" >&6
  33061. else
  33062. cat >conftest.$ac_ext <<_ACEOF
  33063. /* confdefs.h. */
  33064. _ACEOF
  33065. cat confdefs.h >>conftest.$ac_ext
  33066. cat >>conftest.$ac_ext <<_ACEOF
  33067. /* end confdefs.h. */
  33068. #undef inline
  33069. #ifdef HAVE_WINDOWS_H
  33070. #ifndef WIN32_LEAN_AND_MEAN
  33071. #define WIN32_LEAN_AND_MEAN
  33072. #endif
  33073. #include <windows.h>
  33074. #ifdef HAVE_WINSOCK2_H
  33075. #include <winsock2.h>
  33076. #ifdef HAVE_WS2TCPIP_H
  33077. #include <ws2tcpip.h>
  33078. #endif
  33079. #endif
  33080. #else
  33081. #ifdef HAVE_SYS_TYPES_H
  33082. #include <sys/types.h>
  33083. #endif
  33084. #ifdef HAVE_SYS_SOCKET_H
  33085. #include <sys/socket.h>
  33086. #endif
  33087. #endif
  33088. typedef socklen_t ac__type_new_;
  33089. int
  33090. main ()
  33091. {
  33092. if ((ac__type_new_ *) 0)
  33093. return 0;
  33094. if (sizeof (ac__type_new_))
  33095. return 0;
  33096. ;
  33097. return 0;
  33098. }
  33099. _ACEOF
  33100. rm -f conftest.$ac_objext
  33101. if { (ac_try="$ac_compile"
  33102. case "(($ac_try" in
  33103. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33104. *) ac_try_echo=$ac_try;;
  33105. esac
  33106. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33107. (eval "$ac_compile") 2>conftest.er1
  33108. ac_status=$?
  33109. grep -v '^ *+' conftest.er1 >conftest.err
  33110. rm -f conftest.er1
  33111. cat conftest.err >&5
  33112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33113. (exit $ac_status); } && {
  33114. test -z "$ac_c_werror_flag" ||
  33115. test ! -s conftest.err
  33116. } && test -s conftest.$ac_objext; then
  33117. ac_cv_type_socklen_t=yes
  33118. else
  33119. echo "$as_me: failed program was:" >&5
  33120. sed 's/^/| /' conftest.$ac_ext >&5
  33121. ac_cv_type_socklen_t=no
  33122. fi
  33123. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33124. fi
  33125. { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
  33126. echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
  33127. if test $ac_cv_type_socklen_t = yes; then
  33128. :
  33129. else
  33130. { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
  33131. echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
  33132. if test "${curl_cv_socklen_t_equiv+set}" = set; then
  33133. echo $ECHO_N "(cached) $ECHO_C" >&6
  33134. else
  33135. curl_cv_socklen_t_equiv="unknown"
  33136. for arg1 in 'int' 'SOCKET'; do
  33137. for arg2 in "struct sockaddr" void; do
  33138. for t in int size_t unsigned long "unsigned long"; do
  33139. if test "$curl_cv_socklen_t_equiv" = "unknown"; then
  33140. cat >conftest.$ac_ext <<_ACEOF
  33141. /* confdefs.h. */
  33142. _ACEOF
  33143. cat confdefs.h >>conftest.$ac_ext
  33144. cat >>conftest.$ac_ext <<_ACEOF
  33145. /* end confdefs.h. */
  33146. #undef inline
  33147. #ifdef HAVE_WINDOWS_H
  33148. #ifndef WIN32_LEAN_AND_MEAN
  33149. #define WIN32_LEAN_AND_MEAN
  33150. #endif
  33151. #include <windows.h>
  33152. #ifdef HAVE_WINSOCK2_H
  33153. #include <winsock2.h>
  33154. #else
  33155. #ifdef HAVE_WINSOCK_H
  33156. #include <winsock.h>
  33157. #endif
  33158. #endif
  33159. #define GETPEERNCALLCONV PASCAL
  33160. #else
  33161. #ifdef HAVE_SYS_TYPES_H
  33162. #include <sys/types.h>
  33163. #endif
  33164. #ifdef HAVE_SYS_SOCKET_H
  33165. #include <sys/socket.h>
  33166. #endif
  33167. #define GETPEERNCALLCONV
  33168. #endif
  33169. extern int GETPEERNCALLCONV getpeername($arg1, $arg2 *, $t *);
  33170. int
  33171. main ()
  33172. {
  33173. $t len=0;
  33174. getpeername(0,0,&len);
  33175. ;
  33176. return 0;
  33177. }
  33178. _ACEOF
  33179. rm -f conftest.$ac_objext
  33180. if { (ac_try="$ac_compile"
  33181. case "(($ac_try" in
  33182. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33183. *) ac_try_echo=$ac_try;;
  33184. esac
  33185. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33186. (eval "$ac_compile") 2>conftest.er1
  33187. ac_status=$?
  33188. grep -v '^ *+' conftest.er1 >conftest.err
  33189. rm -f conftest.er1
  33190. cat conftest.err >&5
  33191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33192. (exit $ac_status); } && {
  33193. test -z "$ac_c_werror_flag" ||
  33194. test ! -s conftest.err
  33195. } && test -s conftest.$ac_objext; then
  33196. curl_cv_socklen_t_equiv="$t"
  33197. else
  33198. echo "$as_me: failed program was:" >&5
  33199. sed 's/^/| /' conftest.$ac_ext >&5
  33200. fi
  33201. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33202. fi
  33203. done
  33204. done
  33205. done
  33206. fi
  33207. { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
  33208. echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
  33209. case "$curl_cv_socklen_t_equiv" in
  33210. unknown)
  33211. { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
  33212. echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
  33213. { (exit 1); exit 1; }; }
  33214. ;;
  33215. *)
  33216. cat >>confdefs.h <<_ACEOF
  33217. #define socklen_t $curl_cv_socklen_t_equiv
  33218. _ACEOF
  33219. ;;
  33220. esac
  33221. fi
  33222. { echo "$as_me:$LINENO: checking for in_addr_t" >&5
  33223. echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; }
  33224. if test "${ac_cv_type_in_addr_t+set}" = set; then
  33225. echo $ECHO_N "(cached) $ECHO_C" >&6
  33226. else
  33227. cat >conftest.$ac_ext <<_ACEOF
  33228. /* confdefs.h. */
  33229. _ACEOF
  33230. cat confdefs.h >>conftest.$ac_ext
  33231. cat >>conftest.$ac_ext <<_ACEOF
  33232. /* end confdefs.h. */
  33233. #undef inline
  33234. #ifdef HAVE_WINDOWS_H
  33235. #ifndef WIN32_LEAN_AND_MEAN
  33236. #define WIN32_LEAN_AND_MEAN
  33237. #endif
  33238. #include <windows.h>
  33239. #ifdef HAVE_WINSOCK2_H
  33240. #include <winsock2.h>
  33241. #else
  33242. #ifdef HAVE_WINSOCK_H
  33243. #include <winsock.h>
  33244. #endif
  33245. #endif
  33246. #else
  33247. #ifdef HAVE_SYS_TYPES_H
  33248. #include <sys/types.h>
  33249. #endif
  33250. #ifdef HAVE_SYS_SOCKET_H
  33251. #include <sys/socket.h>
  33252. #endif
  33253. #ifdef HAVE_NETINET_IN_H
  33254. #include <netinet/in.h>
  33255. #endif
  33256. #ifdef HAVE_ARPA_INET_H
  33257. #include <arpa/inet.h>
  33258. #endif
  33259. #endif
  33260. typedef in_addr_t ac__type_new_;
  33261. int
  33262. main ()
  33263. {
  33264. if ((ac__type_new_ *) 0)
  33265. return 0;
  33266. if (sizeof (ac__type_new_))
  33267. return 0;
  33268. ;
  33269. return 0;
  33270. }
  33271. _ACEOF
  33272. rm -f conftest.$ac_objext
  33273. if { (ac_try="$ac_compile"
  33274. case "(($ac_try" in
  33275. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33276. *) ac_try_echo=$ac_try;;
  33277. esac
  33278. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33279. (eval "$ac_compile") 2>conftest.er1
  33280. ac_status=$?
  33281. grep -v '^ *+' conftest.er1 >conftest.err
  33282. rm -f conftest.er1
  33283. cat conftest.err >&5
  33284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33285. (exit $ac_status); } && {
  33286. test -z "$ac_c_werror_flag" ||
  33287. test ! -s conftest.err
  33288. } && test -s conftest.$ac_objext; then
  33289. ac_cv_type_in_addr_t=yes
  33290. else
  33291. echo "$as_me: failed program was:" >&5
  33292. sed 's/^/| /' conftest.$ac_ext >&5
  33293. ac_cv_type_in_addr_t=no
  33294. fi
  33295. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33296. fi
  33297. { echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
  33298. echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; }
  33299. if test $ac_cv_type_in_addr_t = yes; then
  33300. :
  33301. else
  33302. { echo "$as_me:$LINENO: checking for in_addr_t equivalent" >&5
  33303. echo $ECHO_N "checking for in_addr_t equivalent... $ECHO_C" >&6; }
  33304. if test "${curl_cv_in_addr_t_equiv+set}" = set; then
  33305. echo $ECHO_N "(cached) $ECHO_C" >&6
  33306. else
  33307. curl_cv_in_addr_t_equiv="unknown"
  33308. for t in "unsigned long" int size_t unsigned long; do
  33309. if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
  33310. cat >conftest.$ac_ext <<_ACEOF
  33311. /* confdefs.h. */
  33312. _ACEOF
  33313. cat confdefs.h >>conftest.$ac_ext
  33314. cat >>conftest.$ac_ext <<_ACEOF
  33315. /* end confdefs.h. */
  33316. #undef inline
  33317. #ifdef HAVE_WINDOWS_H
  33318. #ifndef WIN32_LEAN_AND_MEAN
  33319. #define WIN32_LEAN_AND_MEAN
  33320. #endif
  33321. #include <windows.h>
  33322. #ifdef HAVE_WINSOCK2_H
  33323. #include <winsock2.h>
  33324. #else
  33325. #ifdef HAVE_WINSOCK_H
  33326. #include <winsock.h>
  33327. #endif
  33328. #endif
  33329. #else
  33330. #ifdef HAVE_SYS_TYPES_H
  33331. #include <sys/types.h>
  33332. #endif
  33333. #ifdef HAVE_SYS_SOCKET_H
  33334. #include <sys/socket.h>
  33335. #endif
  33336. #ifdef HAVE_NETINET_IN_H
  33337. #include <netinet/in.h>
  33338. #endif
  33339. #ifdef HAVE_ARPA_INET_H
  33340. #include <arpa/inet.h>
  33341. #endif
  33342. #endif
  33343. int
  33344. main ()
  33345. {
  33346. $t data = inet_addr ("1.2.3.4");
  33347. ;
  33348. return 0;
  33349. }
  33350. _ACEOF
  33351. rm -f conftest.$ac_objext conftest$ac_exeext
  33352. if { (ac_try="$ac_link"
  33353. case "(($ac_try" in
  33354. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33355. *) ac_try_echo=$ac_try;;
  33356. esac
  33357. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33358. (eval "$ac_link") 2>conftest.er1
  33359. ac_status=$?
  33360. grep -v '^ *+' conftest.er1 >conftest.err
  33361. rm -f conftest.er1
  33362. cat conftest.err >&5
  33363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33364. (exit $ac_status); } && {
  33365. test -z "$ac_c_werror_flag" ||
  33366. test ! -s conftest.err
  33367. } && test -s conftest$ac_exeext &&
  33368. $as_test_x conftest$ac_exeext; then
  33369. curl_cv_in_addr_t_equiv="$t"
  33370. else
  33371. echo "$as_me: failed program was:" >&5
  33372. sed 's/^/| /' conftest.$ac_ext >&5
  33373. fi
  33374. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  33375. conftest$ac_exeext conftest.$ac_ext
  33376. fi
  33377. done
  33378. fi
  33379. { echo "$as_me:$LINENO: result: $curl_cv_in_addr_t_equiv" >&5
  33380. echo "${ECHO_T}$curl_cv_in_addr_t_equiv" >&6; }
  33381. case "$curl_cv_in_addr_t_equiv" in
  33382. unknown)
  33383. { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of in_addr_t" >&5
  33384. echo "$as_me: error: Cannot find a type to use in place of in_addr_t" >&2;}
  33385. { (exit 1); exit 1; }; }
  33386. ;;
  33387. *)
  33388. cat >>confdefs.h <<_ACEOF
  33389. #define in_addr_t $curl_cv_in_addr_t_equiv
  33390. _ACEOF
  33391. ;;
  33392. esac
  33393. fi
  33394. { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
  33395. echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
  33396. if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
  33397. echo $ECHO_N "(cached) $ECHO_C" >&6
  33398. else
  33399. cat >conftest.$ac_ext <<_ACEOF
  33400. /* confdefs.h. */
  33401. _ACEOF
  33402. cat confdefs.h >>conftest.$ac_ext
  33403. cat >>conftest.$ac_ext <<_ACEOF
  33404. /* end confdefs.h. */
  33405. #undef inline
  33406. #ifdef HAVE_WINDOWS_H
  33407. #ifndef WIN32_LEAN_AND_MEAN
  33408. #define WIN32_LEAN_AND_MEAN
  33409. #endif
  33410. #include <windows.h>
  33411. #ifdef HAVE_WINSOCK2_H
  33412. #include <winsock2.h>
  33413. #endif
  33414. #else
  33415. #ifdef HAVE_SYS_TYPES_H
  33416. #include <sys/types.h>
  33417. #endif
  33418. #ifdef HAVE_SYS_SOCKET_H
  33419. #include <sys/socket.h>
  33420. #endif
  33421. #ifdef HAVE_NETINET_IN_H
  33422. #include <netinet/in.h>
  33423. #endif
  33424. #ifdef HAVE_ARPA_INET_H
  33425. #include <arpa/inet.h>
  33426. #endif
  33427. #endif
  33428. typedef struct sockaddr_storage ac__type_new_;
  33429. int
  33430. main ()
  33431. {
  33432. if ((ac__type_new_ *) 0)
  33433. return 0;
  33434. if (sizeof (ac__type_new_))
  33435. return 0;
  33436. ;
  33437. return 0;
  33438. }
  33439. _ACEOF
  33440. rm -f conftest.$ac_objext
  33441. if { (ac_try="$ac_compile"
  33442. case "(($ac_try" in
  33443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33444. *) ac_try_echo=$ac_try;;
  33445. esac
  33446. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33447. (eval "$ac_compile") 2>conftest.er1
  33448. ac_status=$?
  33449. grep -v '^ *+' conftest.er1 >conftest.err
  33450. rm -f conftest.er1
  33451. cat conftest.err >&5
  33452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33453. (exit $ac_status); } && {
  33454. test -z "$ac_c_werror_flag" ||
  33455. test ! -s conftest.err
  33456. } && test -s conftest.$ac_objext; then
  33457. ac_cv_type_struct_sockaddr_storage=yes
  33458. else
  33459. echo "$as_me: failed program was:" >&5
  33460. sed 's/^/| /' conftest.$ac_ext >&5
  33461. ac_cv_type_struct_sockaddr_storage=no
  33462. fi
  33463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33464. fi
  33465. { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
  33466. echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
  33467. if test $ac_cv_type_struct_sockaddr_storage = yes; then
  33468. cat >>confdefs.h <<\_ACEOF
  33469. #define HAVE_STRUCT_SOCKADDR_STORAGE 1
  33470. _ACEOF
  33471. fi
  33472. for ac_header in signal.h
  33473. do
  33474. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  33475. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  33476. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  33477. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  33478. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  33479. echo $ECHO_N "(cached) $ECHO_C" >&6
  33480. fi
  33481. ac_res=`eval echo '${'$as_ac_Header'}'`
  33482. { echo "$as_me:$LINENO: result: $ac_res" >&5
  33483. echo "${ECHO_T}$ac_res" >&6; }
  33484. else
  33485. # Is the header compilable?
  33486. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  33487. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  33488. cat >conftest.$ac_ext <<_ACEOF
  33489. /* confdefs.h. */
  33490. _ACEOF
  33491. cat confdefs.h >>conftest.$ac_ext
  33492. cat >>conftest.$ac_ext <<_ACEOF
  33493. /* end confdefs.h. */
  33494. $ac_includes_default
  33495. #include <$ac_header>
  33496. _ACEOF
  33497. rm -f conftest.$ac_objext
  33498. if { (ac_try="$ac_compile"
  33499. case "(($ac_try" in
  33500. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33501. *) ac_try_echo=$ac_try;;
  33502. esac
  33503. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33504. (eval "$ac_compile") 2>conftest.er1
  33505. ac_status=$?
  33506. grep -v '^ *+' conftest.er1 >conftest.err
  33507. rm -f conftest.er1
  33508. cat conftest.err >&5
  33509. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33510. (exit $ac_status); } && {
  33511. test -z "$ac_c_werror_flag" ||
  33512. test ! -s conftest.err
  33513. } && test -s conftest.$ac_objext; then
  33514. ac_header_compiler=yes
  33515. else
  33516. echo "$as_me: failed program was:" >&5
  33517. sed 's/^/| /' conftest.$ac_ext >&5
  33518. ac_header_compiler=no
  33519. fi
  33520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33521. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  33522. echo "${ECHO_T}$ac_header_compiler" >&6; }
  33523. # Is the header present?
  33524. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  33525. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  33526. cat >conftest.$ac_ext <<_ACEOF
  33527. /* confdefs.h. */
  33528. _ACEOF
  33529. cat confdefs.h >>conftest.$ac_ext
  33530. cat >>conftest.$ac_ext <<_ACEOF
  33531. /* end confdefs.h. */
  33532. #include <$ac_header>
  33533. _ACEOF
  33534. if { (ac_try="$ac_cpp conftest.$ac_ext"
  33535. case "(($ac_try" in
  33536. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33537. *) ac_try_echo=$ac_try;;
  33538. esac
  33539. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33540. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  33541. ac_status=$?
  33542. grep -v '^ *+' conftest.er1 >conftest.err
  33543. rm -f conftest.er1
  33544. cat conftest.err >&5
  33545. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33546. (exit $ac_status); } >/dev/null && {
  33547. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  33548. test ! -s conftest.err
  33549. }; then
  33550. ac_header_preproc=yes
  33551. else
  33552. echo "$as_me: failed program was:" >&5
  33553. sed 's/^/| /' conftest.$ac_ext >&5
  33554. ac_header_preproc=no
  33555. fi
  33556. rm -f conftest.err conftest.$ac_ext
  33557. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  33558. echo "${ECHO_T}$ac_header_preproc" >&6; }
  33559. # So? What about this header?
  33560. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  33561. yes:no: )
  33562. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  33563. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  33564. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  33565. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  33566. ac_header_preproc=yes
  33567. ;;
  33568. no:yes:* )
  33569. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  33570. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  33571. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  33572. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  33573. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  33574. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  33575. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  33576. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  33577. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  33578. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  33579. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  33580. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  33581. ( cat <<\_ASBOX
  33582. ## ------------------------------------------------------------------------ ##
  33583. ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
  33584. ## ------------------------------------------------------------------------ ##
  33585. _ASBOX
  33586. ) | sed "s/^/$as_me: WARNING: /" >&2
  33587. ;;
  33588. esac
  33589. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  33590. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  33591. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  33592. echo $ECHO_N "(cached) $ECHO_C" >&6
  33593. else
  33594. eval "$as_ac_Header=\$ac_header_preproc"
  33595. fi
  33596. ac_res=`eval echo '${'$as_ac_Header'}'`
  33597. { echo "$as_me:$LINENO: result: $ac_res" >&5
  33598. echo "${ECHO_T}$ac_res" >&6; }
  33599. fi
  33600. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  33601. cat >>confdefs.h <<_ACEOF
  33602. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  33603. _ACEOF
  33604. fi
  33605. done
  33606. { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
  33607. echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
  33608. if test "${ac_cv_type_sig_atomic_t+set}" = set; then
  33609. echo $ECHO_N "(cached) $ECHO_C" >&6
  33610. else
  33611. cat >conftest.$ac_ext <<_ACEOF
  33612. /* confdefs.h. */
  33613. _ACEOF
  33614. cat confdefs.h >>conftest.$ac_ext
  33615. cat >>conftest.$ac_ext <<_ACEOF
  33616. /* end confdefs.h. */
  33617. #ifdef HAVE_SIGNAL_H
  33618. #include <signal.h>
  33619. #endif
  33620. typedef sig_atomic_t ac__type_new_;
  33621. int
  33622. main ()
  33623. {
  33624. if ((ac__type_new_ *) 0)
  33625. return 0;
  33626. if (sizeof (ac__type_new_))
  33627. return 0;
  33628. ;
  33629. return 0;
  33630. }
  33631. _ACEOF
  33632. rm -f conftest.$ac_objext
  33633. if { (ac_try="$ac_compile"
  33634. case "(($ac_try" in
  33635. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33636. *) ac_try_echo=$ac_try;;
  33637. esac
  33638. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33639. (eval "$ac_compile") 2>conftest.er1
  33640. ac_status=$?
  33641. grep -v '^ *+' conftest.er1 >conftest.err
  33642. rm -f conftest.er1
  33643. cat conftest.err >&5
  33644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33645. (exit $ac_status); } && {
  33646. test -z "$ac_c_werror_flag" ||
  33647. test ! -s conftest.err
  33648. } && test -s conftest.$ac_objext; then
  33649. ac_cv_type_sig_atomic_t=yes
  33650. else
  33651. echo "$as_me: failed program was:" >&5
  33652. sed 's/^/| /' conftest.$ac_ext >&5
  33653. ac_cv_type_sig_atomic_t=no
  33654. fi
  33655. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33656. fi
  33657. { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
  33658. echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
  33659. if test $ac_cv_type_sig_atomic_t = yes; then
  33660. cat >>confdefs.h <<\_ACEOF
  33661. #define HAVE_SIG_ATOMIC_T 1
  33662. _ACEOF
  33663. fi
  33664. case "$ac_cv_type_sig_atomic_t" in
  33665. yes)
  33666. #
  33667. { echo "$as_me:$LINENO: checking if sig_atomic_t is already defined as volatile" >&5
  33668. echo $ECHO_N "checking if sig_atomic_t is already defined as volatile... $ECHO_C" >&6; }
  33669. cat >conftest.$ac_ext <<_ACEOF
  33670. /* confdefs.h. */
  33671. _ACEOF
  33672. cat confdefs.h >>conftest.$ac_ext
  33673. cat >>conftest.$ac_ext <<_ACEOF
  33674. /* end confdefs.h. */
  33675. #ifdef HAVE_SIGNAL_H
  33676. #include <signal.h>
  33677. #endif
  33678. int
  33679. main ()
  33680. {
  33681. static volatile sig_atomic_t dummy = 0;
  33682. ;
  33683. return 0;
  33684. }
  33685. _ACEOF
  33686. rm -f conftest.$ac_objext conftest$ac_exeext
  33687. if { (ac_try="$ac_link"
  33688. case "(($ac_try" in
  33689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33690. *) ac_try_echo=$ac_try;;
  33691. esac
  33692. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33693. (eval "$ac_link") 2>conftest.er1
  33694. ac_status=$?
  33695. grep -v '^ *+' conftest.er1 >conftest.err
  33696. rm -f conftest.er1
  33697. cat conftest.err >&5
  33698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33699. (exit $ac_status); } && {
  33700. test -z "$ac_c_werror_flag" ||
  33701. test ! -s conftest.err
  33702. } && test -s conftest$ac_exeext &&
  33703. $as_test_x conftest$ac_exeext; then
  33704. { echo "$as_me:$LINENO: result: no" >&5
  33705. echo "${ECHO_T}no" >&6; }
  33706. ac_cv_sig_atomic_t_volatile="no"
  33707. else
  33708. echo "$as_me: failed program was:" >&5
  33709. sed 's/^/| /' conftest.$ac_ext >&5
  33710. { echo "$as_me:$LINENO: result: yes" >&5
  33711. echo "${ECHO_T}yes" >&6; }
  33712. ac_cv_sig_atomic_t_volatile="yes"
  33713. fi
  33714. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  33715. conftest$ac_exeext conftest.$ac_ext
  33716. #
  33717. if test "$ac_cv_sig_atomic_t_volatile" = "yes"; then
  33718. cat >>confdefs.h <<\_ACEOF
  33719. #define HAVE_SIG_ATOMIC_T_VOLATILE 1
  33720. _ACEOF
  33721. fi
  33722. ;;
  33723. esac
  33724. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  33725. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  33726. if test "${ac_cv_type_signal+set}" = set; then
  33727. echo $ECHO_N "(cached) $ECHO_C" >&6
  33728. else
  33729. cat >conftest.$ac_ext <<_ACEOF
  33730. /* confdefs.h. */
  33731. _ACEOF
  33732. cat confdefs.h >>conftest.$ac_ext
  33733. cat >>conftest.$ac_ext <<_ACEOF
  33734. /* end confdefs.h. */
  33735. #include <sys/types.h>
  33736. #include <signal.h>
  33737. int
  33738. main ()
  33739. {
  33740. return *(signal (0, 0)) (0) == 1;
  33741. ;
  33742. return 0;
  33743. }
  33744. _ACEOF
  33745. rm -f conftest.$ac_objext
  33746. if { (ac_try="$ac_compile"
  33747. case "(($ac_try" in
  33748. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33749. *) ac_try_echo=$ac_try;;
  33750. esac
  33751. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33752. (eval "$ac_compile") 2>conftest.er1
  33753. ac_status=$?
  33754. grep -v '^ *+' conftest.er1 >conftest.err
  33755. rm -f conftest.er1
  33756. cat conftest.err >&5
  33757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33758. (exit $ac_status); } && {
  33759. test -z "$ac_c_werror_flag" ||
  33760. test ! -s conftest.err
  33761. } && test -s conftest.$ac_objext; then
  33762. ac_cv_type_signal=int
  33763. else
  33764. echo "$as_me: failed program was:" >&5
  33765. sed 's/^/| /' conftest.$ac_ext >&5
  33766. ac_cv_type_signal=void
  33767. fi
  33768. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33769. fi
  33770. { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  33771. echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  33772. cat >>confdefs.h <<_ACEOF
  33773. #define RETSIGTYPE $ac_cv_type_signal
  33774. _ACEOF
  33775. for ac_header in sys/select.h sys/socket.h
  33776. do
  33777. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  33778. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  33779. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  33780. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  33781. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  33782. echo $ECHO_N "(cached) $ECHO_C" >&6
  33783. fi
  33784. ac_res=`eval echo '${'$as_ac_Header'}'`
  33785. { echo "$as_me:$LINENO: result: $ac_res" >&5
  33786. echo "${ECHO_T}$ac_res" >&6; }
  33787. else
  33788. # Is the header compilable?
  33789. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  33790. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  33791. cat >conftest.$ac_ext <<_ACEOF
  33792. /* confdefs.h. */
  33793. _ACEOF
  33794. cat confdefs.h >>conftest.$ac_ext
  33795. cat >>conftest.$ac_ext <<_ACEOF
  33796. /* end confdefs.h. */
  33797. $ac_includes_default
  33798. #include <$ac_header>
  33799. _ACEOF
  33800. rm -f conftest.$ac_objext
  33801. if { (ac_try="$ac_compile"
  33802. case "(($ac_try" in
  33803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33804. *) ac_try_echo=$ac_try;;
  33805. esac
  33806. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33807. (eval "$ac_compile") 2>conftest.er1
  33808. ac_status=$?
  33809. grep -v '^ *+' conftest.er1 >conftest.err
  33810. rm -f conftest.er1
  33811. cat conftest.err >&5
  33812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33813. (exit $ac_status); } && {
  33814. test -z "$ac_c_werror_flag" ||
  33815. test ! -s conftest.err
  33816. } && test -s conftest.$ac_objext; then
  33817. ac_header_compiler=yes
  33818. else
  33819. echo "$as_me: failed program was:" >&5
  33820. sed 's/^/| /' conftest.$ac_ext >&5
  33821. ac_header_compiler=no
  33822. fi
  33823. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33824. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  33825. echo "${ECHO_T}$ac_header_compiler" >&6; }
  33826. # Is the header present?
  33827. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  33828. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  33829. cat >conftest.$ac_ext <<_ACEOF
  33830. /* confdefs.h. */
  33831. _ACEOF
  33832. cat confdefs.h >>conftest.$ac_ext
  33833. cat >>conftest.$ac_ext <<_ACEOF
  33834. /* end confdefs.h. */
  33835. #include <$ac_header>
  33836. _ACEOF
  33837. if { (ac_try="$ac_cpp conftest.$ac_ext"
  33838. case "(($ac_try" in
  33839. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33840. *) ac_try_echo=$ac_try;;
  33841. esac
  33842. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33843. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  33844. ac_status=$?
  33845. grep -v '^ *+' conftest.er1 >conftest.err
  33846. rm -f conftest.er1
  33847. cat conftest.err >&5
  33848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33849. (exit $ac_status); } >/dev/null && {
  33850. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  33851. test ! -s conftest.err
  33852. }; then
  33853. ac_header_preproc=yes
  33854. else
  33855. echo "$as_me: failed program was:" >&5
  33856. sed 's/^/| /' conftest.$ac_ext >&5
  33857. ac_header_preproc=no
  33858. fi
  33859. rm -f conftest.err conftest.$ac_ext
  33860. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  33861. echo "${ECHO_T}$ac_header_preproc" >&6; }
  33862. # So? What about this header?
  33863. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  33864. yes:no: )
  33865. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  33866. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  33867. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  33868. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  33869. ac_header_preproc=yes
  33870. ;;
  33871. no:yes:* )
  33872. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  33873. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  33874. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  33875. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  33876. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  33877. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  33878. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  33879. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  33880. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  33881. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  33882. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  33883. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  33884. ( cat <<\_ASBOX
  33885. ## ------------------------------------------------------------------------ ##
  33886. ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
  33887. ## ------------------------------------------------------------------------ ##
  33888. _ASBOX
  33889. ) | sed "s/^/$as_me: WARNING: /" >&2
  33890. ;;
  33891. esac
  33892. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  33893. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  33894. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  33895. echo $ECHO_N "(cached) $ECHO_C" >&6
  33896. else
  33897. eval "$as_ac_Header=\$ac_header_preproc"
  33898. fi
  33899. ac_res=`eval echo '${'$as_ac_Header'}'`
  33900. { echo "$as_me:$LINENO: result: $ac_res" >&5
  33901. echo "${ECHO_T}$ac_res" >&6; }
  33902. fi
  33903. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  33904. cat >>confdefs.h <<_ACEOF
  33905. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  33906. _ACEOF
  33907. fi
  33908. done
  33909. #
  33910. { echo "$as_me:$LINENO: checking for select" >&5
  33911. echo $ECHO_N "checking for select... $ECHO_C" >&6; }
  33912. cat >conftest.$ac_ext <<_ACEOF
  33913. /* confdefs.h. */
  33914. _ACEOF
  33915. cat confdefs.h >>conftest.$ac_ext
  33916. cat >>conftest.$ac_ext <<_ACEOF
  33917. /* end confdefs.h. */
  33918. #undef inline
  33919. #ifdef HAVE_WINDOWS_H
  33920. #ifndef WIN32_LEAN_AND_MEAN
  33921. #define WIN32_LEAN_AND_MEAN
  33922. #endif
  33923. #include <windows.h>
  33924. #ifdef HAVE_WINSOCK2_H
  33925. #include <winsock2.h>
  33926. #else
  33927. #ifdef HAVE_WINSOCK_H
  33928. #include <winsock.h>
  33929. #endif
  33930. #endif
  33931. #endif
  33932. #ifdef HAVE_SYS_TYPES_H
  33933. #include <sys/types.h>
  33934. #endif
  33935. #ifdef HAVE_SYS_TIME_H
  33936. #include <sys/time.h>
  33937. #ifdef TIME_WITH_SYS_TIME
  33938. #include <time.h>
  33939. #endif
  33940. #else
  33941. #ifdef HAVE_TIME_H
  33942. #include <time.h>
  33943. #endif
  33944. #endif
  33945. #ifndef HAVE_WINDOWS_H
  33946. #ifdef HAVE_SYS_SELECT_H
  33947. #include <sys/select.h>
  33948. #endif
  33949. #ifdef HAVE_SYS_SOCKET_H
  33950. #include <sys/socket.h>
  33951. #endif
  33952. #endif
  33953. int
  33954. main ()
  33955. {
  33956. select(0, 0, 0, 0, 0);
  33957. ;
  33958. return 0;
  33959. }
  33960. _ACEOF
  33961. rm -f conftest.$ac_objext conftest$ac_exeext
  33962. if { (ac_try="$ac_link"
  33963. case "(($ac_try" in
  33964. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33965. *) ac_try_echo=$ac_try;;
  33966. esac
  33967. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33968. (eval "$ac_link") 2>conftest.er1
  33969. ac_status=$?
  33970. grep -v '^ *+' conftest.er1 >conftest.err
  33971. rm -f conftest.er1
  33972. cat conftest.err >&5
  33973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33974. (exit $ac_status); } && {
  33975. test -z "$ac_c_werror_flag" ||
  33976. test ! -s conftest.err
  33977. } && test -s conftest$ac_exeext &&
  33978. $as_test_x conftest$ac_exeext; then
  33979. { echo "$as_me:$LINENO: result: yes" >&5
  33980. echo "${ECHO_T}yes" >&6; }
  33981. curl_cv_select="yes"
  33982. else
  33983. echo "$as_me: failed program was:" >&5
  33984. sed 's/^/| /' conftest.$ac_ext >&5
  33985. { echo "$as_me:$LINENO: result: no" >&5
  33986. echo "${ECHO_T}no" >&6; }
  33987. curl_cv_select="no"
  33988. fi
  33989. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  33990. conftest$ac_exeext conftest.$ac_ext
  33991. #
  33992. if test "$curl_cv_select" = "yes"; then
  33993. { echo "$as_me:$LINENO: checking types of args and return type for select" >&5
  33994. echo $ECHO_N "checking types of args and return type for select... $ECHO_C" >&6; }
  33995. if test "${curl_cv_func_select_args+set}" = set; then
  33996. echo $ECHO_N "(cached) $ECHO_C" >&6
  33997. else
  33998. curl_cv_func_select_args="unknown"
  33999. for sel_retv in 'int' 'ssize_t'; do
  34000. for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
  34001. for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
  34002. for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
  34003. if test "$curl_cv_func_select_args" = "unknown"; then
  34004. cat >conftest.$ac_ext <<_ACEOF
  34005. /* confdefs.h. */
  34006. _ACEOF
  34007. cat confdefs.h >>conftest.$ac_ext
  34008. cat >>conftest.$ac_ext <<_ACEOF
  34009. /* end confdefs.h. */
  34010. #undef inline
  34011. #ifdef HAVE_WINDOWS_H
  34012. #ifndef WIN32_LEAN_AND_MEAN
  34013. #define WIN32_LEAN_AND_MEAN
  34014. #endif
  34015. #include <windows.h>
  34016. #ifdef HAVE_WINSOCK2_H
  34017. #include <winsock2.h>
  34018. #else
  34019. #ifdef HAVE_WINSOCK_H
  34020. #include <winsock.h>
  34021. #endif
  34022. #endif
  34023. #define SELECTCALLCONV PASCAL
  34024. #endif
  34025. #ifdef HAVE_SYS_TYPES_H
  34026. #include <sys/types.h>
  34027. #endif
  34028. #ifdef HAVE_SYS_TIME_H
  34029. #include <sys/time.h>
  34030. #ifdef TIME_WITH_SYS_TIME
  34031. #include <time.h>
  34032. #endif
  34033. #else
  34034. #ifdef HAVE_TIME_H
  34035. #include <time.h>
  34036. #endif
  34037. #endif
  34038. #ifndef HAVE_WINDOWS_H
  34039. #ifdef HAVE_SYS_SELECT_H
  34040. #include <sys/select.h>
  34041. #endif
  34042. #ifdef HAVE_SYS_SOCKET_H
  34043. #include <sys/socket.h>
  34044. #endif
  34045. #define SELECTCALLCONV
  34046. #endif
  34047. #ifndef HAVE_STRUCT_TIMEVAL
  34048. struct timeval {
  34049. long tv_sec;
  34050. long tv_usec;
  34051. };
  34052. #endif
  34053. extern $sel_retv SELECTCALLCONV select($sel_arg1,
  34054. $sel_arg234,
  34055. $sel_arg234,
  34056. $sel_arg234,
  34057. $sel_arg5);
  34058. int
  34059. main ()
  34060. {
  34061. $sel_arg1 nfds=0;
  34062. $sel_arg234 rfds=0;
  34063. $sel_arg234 wfds=0;
  34064. $sel_arg234 efds=0;
  34065. $sel_retv res = select(nfds, rfds, wfds, efds, 0);
  34066. ;
  34067. return 0;
  34068. }
  34069. _ACEOF
  34070. rm -f conftest.$ac_objext
  34071. if { (ac_try="$ac_compile"
  34072. case "(($ac_try" in
  34073. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34074. *) ac_try_echo=$ac_try;;
  34075. esac
  34076. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34077. (eval "$ac_compile") 2>conftest.er1
  34078. ac_status=$?
  34079. grep -v '^ *+' conftest.er1 >conftest.err
  34080. rm -f conftest.er1
  34081. cat conftest.err >&5
  34082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34083. (exit $ac_status); } && {
  34084. test -z "$ac_c_werror_flag" ||
  34085. test ! -s conftest.err
  34086. } && test -s conftest.$ac_objext; then
  34087. curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
  34088. else
  34089. echo "$as_me: failed program was:" >&5
  34090. sed 's/^/| /' conftest.$ac_ext >&5
  34091. fi
  34092. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34093. fi
  34094. done
  34095. done
  34096. done
  34097. done
  34098. fi
  34099. { echo "$as_me:$LINENO: result: $curl_cv_func_select_args" >&5
  34100. echo "${ECHO_T}$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
  34101. if test "$curl_cv_func_select_args" = "unknown"; then
  34102. { echo "$as_me:$LINENO: WARNING: Cannot find proper types to use for select args" >&5
  34103. echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
  34104. { echo "$as_me:$LINENO: WARNING: HAVE_SELECT will not be defined" >&5
  34105. echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
  34106. else
  34107. select_prev_IFS=$IFS; IFS=','
  34108. set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
  34109. IFS=$select_prev_IFS
  34110. shift
  34111. #
  34112. sel_qual_type_arg5=$3
  34113. #
  34114. cat >>confdefs.h <<_ACEOF
  34115. #define SELECT_TYPE_ARG1 $1
  34116. _ACEOF
  34117. cat >>confdefs.h <<_ACEOF
  34118. #define SELECT_TYPE_ARG234 $2
  34119. _ACEOF
  34120. cat >>confdefs.h <<_ACEOF
  34121. #define SELECT_TYPE_RETV $4
  34122. _ACEOF
  34123. #
  34124. prev_sh_opts=$-
  34125. #
  34126. case $prev_sh_opts in
  34127. *f*)
  34128. ;;
  34129. *)
  34130. set -f
  34131. ;;
  34132. esac
  34133. #
  34134. case "$sel_qual_type_arg5" in
  34135. const*)
  34136. sel_qual_arg5=const
  34137. sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
  34138. ;;
  34139. *)
  34140. sel_qual_arg5=
  34141. sel_type_arg5=$sel_qual_type_arg5
  34142. ;;
  34143. esac
  34144. #
  34145. cat >>confdefs.h <<_ACEOF
  34146. #define SELECT_QUAL_ARG5 $sel_qual_arg5
  34147. _ACEOF
  34148. cat >>confdefs.h <<_ACEOF
  34149. #define SELECT_TYPE_ARG5 $sel_type_arg5
  34150. _ACEOF
  34151. #
  34152. case $prev_sh_opts in
  34153. *f*)
  34154. ;;
  34155. *)
  34156. set +f
  34157. ;;
  34158. esac
  34159. #
  34160. cat >>confdefs.h <<_ACEOF
  34161. #define HAVE_SELECT 1
  34162. _ACEOF
  34163. ac_cv_func_select="yes"
  34164. fi
  34165. fi
  34166. for ac_header in sys/types.h sys/socket.h
  34167. do
  34168. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  34169. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  34170. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  34171. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  34172. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  34173. echo $ECHO_N "(cached) $ECHO_C" >&6
  34174. fi
  34175. ac_res=`eval echo '${'$as_ac_Header'}'`
  34176. { echo "$as_me:$LINENO: result: $ac_res" >&5
  34177. echo "${ECHO_T}$ac_res" >&6; }
  34178. else
  34179. # Is the header compilable?
  34180. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  34181. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  34182. cat >conftest.$ac_ext <<_ACEOF
  34183. /* confdefs.h. */
  34184. _ACEOF
  34185. cat confdefs.h >>conftest.$ac_ext
  34186. cat >>conftest.$ac_ext <<_ACEOF
  34187. /* end confdefs.h. */
  34188. $ac_includes_default
  34189. #include <$ac_header>
  34190. _ACEOF
  34191. rm -f conftest.$ac_objext
  34192. if { (ac_try="$ac_compile"
  34193. case "(($ac_try" in
  34194. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34195. *) ac_try_echo=$ac_try;;
  34196. esac
  34197. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34198. (eval "$ac_compile") 2>conftest.er1
  34199. ac_status=$?
  34200. grep -v '^ *+' conftest.er1 >conftest.err
  34201. rm -f conftest.er1
  34202. cat conftest.err >&5
  34203. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34204. (exit $ac_status); } && {
  34205. test -z "$ac_c_werror_flag" ||
  34206. test ! -s conftest.err
  34207. } && test -s conftest.$ac_objext; then
  34208. ac_header_compiler=yes
  34209. else
  34210. echo "$as_me: failed program was:" >&5
  34211. sed 's/^/| /' conftest.$ac_ext >&5
  34212. ac_header_compiler=no
  34213. fi
  34214. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34215. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  34216. echo "${ECHO_T}$ac_header_compiler" >&6; }
  34217. # Is the header present?
  34218. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  34219. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  34220. cat >conftest.$ac_ext <<_ACEOF
  34221. /* confdefs.h. */
  34222. _ACEOF
  34223. cat confdefs.h >>conftest.$ac_ext
  34224. cat >>conftest.$ac_ext <<_ACEOF
  34225. /* end confdefs.h. */
  34226. #include <$ac_header>
  34227. _ACEOF
  34228. if { (ac_try="$ac_cpp conftest.$ac_ext"
  34229. case "(($ac_try" in
  34230. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34231. *) ac_try_echo=$ac_try;;
  34232. esac
  34233. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34234. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  34235. ac_status=$?
  34236. grep -v '^ *+' conftest.er1 >conftest.err
  34237. rm -f conftest.er1
  34238. cat conftest.err >&5
  34239. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34240. (exit $ac_status); } >/dev/null && {
  34241. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  34242. test ! -s conftest.err
  34243. }; then
  34244. ac_header_preproc=yes
  34245. else
  34246. echo "$as_me: failed program was:" >&5
  34247. sed 's/^/| /' conftest.$ac_ext >&5
  34248. ac_header_preproc=no
  34249. fi
  34250. rm -f conftest.err conftest.$ac_ext
  34251. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  34252. echo "${ECHO_T}$ac_header_preproc" >&6; }
  34253. # So? What about this header?
  34254. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  34255. yes:no: )
  34256. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  34257. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  34258. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  34259. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  34260. ac_header_preproc=yes
  34261. ;;
  34262. no:yes:* )
  34263. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  34264. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  34265. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  34266. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  34267. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  34268. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  34269. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  34270. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  34271. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  34272. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  34273. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  34274. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  34275. ( cat <<\_ASBOX
  34276. ## ------------------------------------------------------------------------ ##
  34277. ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
  34278. ## ------------------------------------------------------------------------ ##
  34279. _ASBOX
  34280. ) | sed "s/^/$as_me: WARNING: /" >&2
  34281. ;;
  34282. esac
  34283. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  34284. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  34285. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  34286. echo $ECHO_N "(cached) $ECHO_C" >&6
  34287. else
  34288. eval "$as_ac_Header=\$ac_header_preproc"
  34289. fi
  34290. ac_res=`eval echo '${'$as_ac_Header'}'`
  34291. { echo "$as_me:$LINENO: result: $ac_res" >&5
  34292. echo "${ECHO_T}$ac_res" >&6; }
  34293. fi
  34294. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  34295. cat >>confdefs.h <<_ACEOF
  34296. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  34297. _ACEOF
  34298. fi
  34299. done
  34300. #
  34301. { echo "$as_me:$LINENO: checking for recv" >&5
  34302. echo $ECHO_N "checking for recv... $ECHO_C" >&6; }
  34303. cat >conftest.$ac_ext <<_ACEOF
  34304. /* confdefs.h. */
  34305. _ACEOF
  34306. cat confdefs.h >>conftest.$ac_ext
  34307. cat >>conftest.$ac_ext <<_ACEOF
  34308. /* end confdefs.h. */
  34309. #undef inline
  34310. #ifdef HAVE_WINDOWS_H
  34311. #ifndef WIN32_LEAN_AND_MEAN
  34312. #define WIN32_LEAN_AND_MEAN
  34313. #endif
  34314. #include <windows.h>
  34315. #ifdef HAVE_WINSOCK2_H
  34316. #include <winsock2.h>
  34317. #else
  34318. #ifdef HAVE_WINSOCK_H
  34319. #include <winsock.h>
  34320. #endif
  34321. #endif
  34322. #else
  34323. #ifdef HAVE_SYS_TYPES_H
  34324. #include <sys/types.h>
  34325. #endif
  34326. #ifdef HAVE_SYS_SOCKET_H
  34327. #include <sys/socket.h>
  34328. #endif
  34329. #endif
  34330. int
  34331. main ()
  34332. {
  34333. recv(0, 0, 0, 0);
  34334. ;
  34335. return 0;
  34336. }
  34337. _ACEOF
  34338. rm -f conftest.$ac_objext conftest$ac_exeext
  34339. if { (ac_try="$ac_link"
  34340. case "(($ac_try" in
  34341. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34342. *) ac_try_echo=$ac_try;;
  34343. esac
  34344. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34345. (eval "$ac_link") 2>conftest.er1
  34346. ac_status=$?
  34347. grep -v '^ *+' conftest.er1 >conftest.err
  34348. rm -f conftest.er1
  34349. cat conftest.err >&5
  34350. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34351. (exit $ac_status); } && {
  34352. test -z "$ac_c_werror_flag" ||
  34353. test ! -s conftest.err
  34354. } && test -s conftest$ac_exeext &&
  34355. $as_test_x conftest$ac_exeext; then
  34356. { echo "$as_me:$LINENO: result: yes" >&5
  34357. echo "${ECHO_T}yes" >&6; }
  34358. curl_cv_recv="yes"
  34359. else
  34360. echo "$as_me: failed program was:" >&5
  34361. sed 's/^/| /' conftest.$ac_ext >&5
  34362. { echo "$as_me:$LINENO: result: no" >&5
  34363. echo "${ECHO_T}no" >&6; }
  34364. curl_cv_recv="no"
  34365. fi
  34366. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  34367. conftest$ac_exeext conftest.$ac_ext
  34368. #
  34369. if test "$curl_cv_recv" = "yes"; then
  34370. { echo "$as_me:$LINENO: checking types of args and return type for recv" >&5
  34371. echo $ECHO_N "checking types of args and return type for recv... $ECHO_C" >&6; }
  34372. if test "${curl_cv_func_recv_args+set}" = set; then
  34373. echo $ECHO_N "(cached) $ECHO_C" >&6
  34374. else
  34375. curl_cv_func_recv_args="unknown"
  34376. for recv_retv in 'int' 'ssize_t'; do
  34377. for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
  34378. for recv_arg2 in 'char *' 'void *'; do
  34379. for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
  34380. for recv_arg4 in 'int' 'unsigned int'; do
  34381. if test "$curl_cv_func_recv_args" = "unknown"; then
  34382. cat >conftest.$ac_ext <<_ACEOF
  34383. /* confdefs.h. */
  34384. _ACEOF
  34385. cat confdefs.h >>conftest.$ac_ext
  34386. cat >>conftest.$ac_ext <<_ACEOF
  34387. /* end confdefs.h. */
  34388. #undef inline
  34389. #ifdef HAVE_WINDOWS_H
  34390. #ifndef WIN32_LEAN_AND_MEAN
  34391. #define WIN32_LEAN_AND_MEAN
  34392. #endif
  34393. #include <windows.h>
  34394. #ifdef HAVE_WINSOCK2_H
  34395. #include <winsock2.h>
  34396. #else
  34397. #ifdef HAVE_WINSOCK_H
  34398. #include <winsock.h>
  34399. #endif
  34400. #endif
  34401. #define RECVCALLCONV PASCAL
  34402. #else
  34403. #ifdef HAVE_SYS_TYPES_H
  34404. #include <sys/types.h>
  34405. #endif
  34406. #ifdef HAVE_SYS_SOCKET_H
  34407. #include <sys/socket.h>
  34408. #endif
  34409. #define RECVCALLCONV
  34410. #endif
  34411. extern $recv_retv RECVCALLCONV
  34412. recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
  34413. int
  34414. main ()
  34415. {
  34416. $recv_arg1 s=0;
  34417. $recv_arg2 buf=0;
  34418. $recv_arg3 len=0;
  34419. $recv_arg4 flags=0;
  34420. $recv_retv res = recv(s, buf, len, flags);
  34421. ;
  34422. return 0;
  34423. }
  34424. _ACEOF
  34425. rm -f conftest.$ac_objext
  34426. if { (ac_try="$ac_compile"
  34427. case "(($ac_try" in
  34428. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34429. *) ac_try_echo=$ac_try;;
  34430. esac
  34431. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34432. (eval "$ac_compile") 2>conftest.er1
  34433. ac_status=$?
  34434. grep -v '^ *+' conftest.er1 >conftest.err
  34435. rm -f conftest.er1
  34436. cat conftest.err >&5
  34437. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34438. (exit $ac_status); } && {
  34439. test -z "$ac_c_werror_flag" ||
  34440. test ! -s conftest.err
  34441. } && test -s conftest.$ac_objext; then
  34442. curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
  34443. else
  34444. echo "$as_me: failed program was:" >&5
  34445. sed 's/^/| /' conftest.$ac_ext >&5
  34446. fi
  34447. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34448. fi
  34449. done
  34450. done
  34451. done
  34452. done
  34453. done
  34454. fi
  34455. { echo "$as_me:$LINENO: result: $curl_cv_func_recv_args" >&5
  34456. echo "${ECHO_T}$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
  34457. if test "$curl_cv_func_recv_args" = "unknown"; then
  34458. { { echo "$as_me:$LINENO: error: Cannot find proper types to use for recv args" >&5
  34459. echo "$as_me: error: Cannot find proper types to use for recv args" >&2;}
  34460. { (exit 1); exit 1; }; }
  34461. else
  34462. recv_prev_IFS=$IFS; IFS=','
  34463. set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
  34464. IFS=$recv_prev_IFS
  34465. shift
  34466. #
  34467. cat >>confdefs.h <<_ACEOF
  34468. #define RECV_TYPE_ARG1 $1
  34469. _ACEOF
  34470. cat >>confdefs.h <<_ACEOF
  34471. #define RECV_TYPE_ARG2 $2
  34472. _ACEOF
  34473. cat >>confdefs.h <<_ACEOF
  34474. #define RECV_TYPE_ARG3 $3
  34475. _ACEOF
  34476. cat >>confdefs.h <<_ACEOF
  34477. #define RECV_TYPE_ARG4 $4
  34478. _ACEOF
  34479. cat >>confdefs.h <<_ACEOF
  34480. #define RECV_TYPE_RETV $5
  34481. _ACEOF
  34482. #
  34483. cat >>confdefs.h <<_ACEOF
  34484. #define HAVE_RECV 1
  34485. _ACEOF
  34486. ac_cv_func_recv="yes"
  34487. fi
  34488. else
  34489. { { echo "$as_me:$LINENO: error: Unable to link function recv" >&5
  34490. echo "$as_me: error: Unable to link function recv" >&2;}
  34491. { (exit 1); exit 1; }; }
  34492. fi
  34493. for ac_header in sys/types.h sys/socket.h
  34494. do
  34495. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  34496. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  34497. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  34498. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  34499. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  34500. echo $ECHO_N "(cached) $ECHO_C" >&6
  34501. fi
  34502. ac_res=`eval echo '${'$as_ac_Header'}'`
  34503. { echo "$as_me:$LINENO: result: $ac_res" >&5
  34504. echo "${ECHO_T}$ac_res" >&6; }
  34505. else
  34506. # Is the header compilable?
  34507. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  34508. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  34509. cat >conftest.$ac_ext <<_ACEOF
  34510. /* confdefs.h. */
  34511. _ACEOF
  34512. cat confdefs.h >>conftest.$ac_ext
  34513. cat >>conftest.$ac_ext <<_ACEOF
  34514. /* end confdefs.h. */
  34515. $ac_includes_default
  34516. #include <$ac_header>
  34517. _ACEOF
  34518. rm -f conftest.$ac_objext
  34519. if { (ac_try="$ac_compile"
  34520. case "(($ac_try" in
  34521. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34522. *) ac_try_echo=$ac_try;;
  34523. esac
  34524. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34525. (eval "$ac_compile") 2>conftest.er1
  34526. ac_status=$?
  34527. grep -v '^ *+' conftest.er1 >conftest.err
  34528. rm -f conftest.er1
  34529. cat conftest.err >&5
  34530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34531. (exit $ac_status); } && {
  34532. test -z "$ac_c_werror_flag" ||
  34533. test ! -s conftest.err
  34534. } && test -s conftest.$ac_objext; then
  34535. ac_header_compiler=yes
  34536. else
  34537. echo "$as_me: failed program was:" >&5
  34538. sed 's/^/| /' conftest.$ac_ext >&5
  34539. ac_header_compiler=no
  34540. fi
  34541. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34542. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  34543. echo "${ECHO_T}$ac_header_compiler" >&6; }
  34544. # Is the header present?
  34545. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  34546. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  34547. cat >conftest.$ac_ext <<_ACEOF
  34548. /* confdefs.h. */
  34549. _ACEOF
  34550. cat confdefs.h >>conftest.$ac_ext
  34551. cat >>conftest.$ac_ext <<_ACEOF
  34552. /* end confdefs.h. */
  34553. #include <$ac_header>
  34554. _ACEOF
  34555. if { (ac_try="$ac_cpp conftest.$ac_ext"
  34556. case "(($ac_try" in
  34557. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34558. *) ac_try_echo=$ac_try;;
  34559. esac
  34560. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34561. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  34562. ac_status=$?
  34563. grep -v '^ *+' conftest.er1 >conftest.err
  34564. rm -f conftest.er1
  34565. cat conftest.err >&5
  34566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34567. (exit $ac_status); } >/dev/null && {
  34568. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  34569. test ! -s conftest.err
  34570. }; then
  34571. ac_header_preproc=yes
  34572. else
  34573. echo "$as_me: failed program was:" >&5
  34574. sed 's/^/| /' conftest.$ac_ext >&5
  34575. ac_header_preproc=no
  34576. fi
  34577. rm -f conftest.err conftest.$ac_ext
  34578. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  34579. echo "${ECHO_T}$ac_header_preproc" >&6; }
  34580. # So? What about this header?
  34581. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  34582. yes:no: )
  34583. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  34584. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  34585. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  34586. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  34587. ac_header_preproc=yes
  34588. ;;
  34589. no:yes:* )
  34590. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  34591. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  34592. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  34593. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  34594. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  34595. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  34596. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  34597. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  34598. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  34599. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  34600. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  34601. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  34602. ( cat <<\_ASBOX
  34603. ## ------------------------------------------------------------------------ ##
  34604. ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
  34605. ## ------------------------------------------------------------------------ ##
  34606. _ASBOX
  34607. ) | sed "s/^/$as_me: WARNING: /" >&2
  34608. ;;
  34609. esac
  34610. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  34611. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  34612. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  34613. echo $ECHO_N "(cached) $ECHO_C" >&6
  34614. else
  34615. eval "$as_ac_Header=\$ac_header_preproc"
  34616. fi
  34617. ac_res=`eval echo '${'$as_ac_Header'}'`
  34618. { echo "$as_me:$LINENO: result: $ac_res" >&5
  34619. echo "${ECHO_T}$ac_res" >&6; }
  34620. fi
  34621. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  34622. cat >>confdefs.h <<_ACEOF
  34623. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  34624. _ACEOF
  34625. fi
  34626. done
  34627. #
  34628. { echo "$as_me:$LINENO: checking for recvfrom" >&5
  34629. echo $ECHO_N "checking for recvfrom... $ECHO_C" >&6; }
  34630. cat >conftest.$ac_ext <<_ACEOF
  34631. /* confdefs.h. */
  34632. _ACEOF
  34633. cat confdefs.h >>conftest.$ac_ext
  34634. cat >>conftest.$ac_ext <<_ACEOF
  34635. /* end confdefs.h. */
  34636. #undef inline
  34637. #ifdef HAVE_WINDOWS_H
  34638. #ifndef WIN32_LEAN_AND_MEAN
  34639. #define WIN32_LEAN_AND_MEAN
  34640. #endif
  34641. #include <windows.h>
  34642. #ifdef HAVE_WINSOCK2_H
  34643. #include <winsock2.h>
  34644. #else
  34645. #ifdef HAVE_WINSOCK_H
  34646. #include <winsock.h>
  34647. #endif
  34648. #endif
  34649. #else
  34650. #ifdef HAVE_SYS_TYPES_H
  34651. #include <sys/types.h>
  34652. #endif
  34653. #ifdef HAVE_SYS_SOCKET_H
  34654. #include <sys/socket.h>
  34655. #endif
  34656. #endif
  34657. int
  34658. main ()
  34659. {
  34660. recvfrom(0, 0, 0, 0, 0, 0);
  34661. ;
  34662. return 0;
  34663. }
  34664. _ACEOF
  34665. rm -f conftest.$ac_objext conftest$ac_exeext
  34666. if { (ac_try="$ac_link"
  34667. case "(($ac_try" in
  34668. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34669. *) ac_try_echo=$ac_try;;
  34670. esac
  34671. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34672. (eval "$ac_link") 2>conftest.er1
  34673. ac_status=$?
  34674. grep -v '^ *+' conftest.er1 >conftest.err
  34675. rm -f conftest.er1
  34676. cat conftest.err >&5
  34677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34678. (exit $ac_status); } && {
  34679. test -z "$ac_c_werror_flag" ||
  34680. test ! -s conftest.err
  34681. } && test -s conftest$ac_exeext &&
  34682. $as_test_x conftest$ac_exeext; then
  34683. { echo "$as_me:$LINENO: result: yes" >&5
  34684. echo "${ECHO_T}yes" >&6; }
  34685. curl_cv_recvfrom="yes"
  34686. else
  34687. echo "$as_me: failed program was:" >&5
  34688. sed 's/^/| /' conftest.$ac_ext >&5
  34689. { echo "$as_me:$LINENO: result: no" >&5
  34690. echo "${ECHO_T}no" >&6; }
  34691. curl_cv_recvfrom="no"
  34692. fi
  34693. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  34694. conftest$ac_exeext conftest.$ac_ext
  34695. #
  34696. if test "$curl_cv_recvfrom" = "yes"; then
  34697. { echo "$as_me:$LINENO: checking types of args and return type for recvfrom" >&5
  34698. echo $ECHO_N "checking types of args and return type for recvfrom... $ECHO_C" >&6; }
  34699. if test "${curl_cv_func_recvfrom_args+set}" = set; then
  34700. echo $ECHO_N "(cached) $ECHO_C" >&6
  34701. else
  34702. curl_cv_func_recvfrom_args="unknown"
  34703. for recvfrom_retv in 'int' 'ssize_t'; do
  34704. for recvfrom_arg1 in 'int' 'ssize_t' 'SOCKET'; do
  34705. for recvfrom_arg2 in 'char *' 'void *'; do
  34706. for recvfrom_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
  34707. for recvfrom_arg4 in 'int' 'unsigned int'; do
  34708. for recvfrom_arg5 in 'struct sockaddr *' 'void *'; do
  34709. for recvfrom_arg6 in 'socklen_t *' 'int *' 'unsigned int *' 'size_t *' 'void *'; do
  34710. if test "$curl_cv_func_recvfrom_args" = "unknown"; then
  34711. cat >conftest.$ac_ext <<_ACEOF
  34712. /* confdefs.h. */
  34713. _ACEOF
  34714. cat confdefs.h >>conftest.$ac_ext
  34715. cat >>conftest.$ac_ext <<_ACEOF
  34716. /* end confdefs.h. */
  34717. #undef inline
  34718. #ifdef HAVE_WINDOWS_H
  34719. #ifndef WIN32_LEAN_AND_MEAN
  34720. #define WIN32_LEAN_AND_MEAN
  34721. #endif
  34722. #include <windows.h>
  34723. #ifdef HAVE_WINSOCK2_H
  34724. #include <winsock2.h>
  34725. #else
  34726. #ifdef HAVE_WINSOCK_H
  34727. #include <winsock.h>
  34728. #endif
  34729. #endif
  34730. #define RECVFROMCALLCONV PASCAL
  34731. #else
  34732. #ifdef HAVE_SYS_TYPES_H
  34733. #include <sys/types.h>
  34734. #endif
  34735. #ifdef HAVE_SYS_SOCKET_H
  34736. #include <sys/socket.h>
  34737. #endif
  34738. #define RECVFROMCALLCONV
  34739. #endif
  34740. extern $recvfrom_retv RECVFROMCALLCONV
  34741. recvfrom($recvfrom_arg1, $recvfrom_arg2,
  34742. $recvfrom_arg3, $recvfrom_arg4,
  34743. $recvfrom_arg5, $recvfrom_arg6);
  34744. int
  34745. main ()
  34746. {
  34747. $recvfrom_arg1 s=0;
  34748. $recvfrom_arg2 buf=0;
  34749. $recvfrom_arg3 len=0;
  34750. $recvfrom_arg4 flags=0;
  34751. $recvfrom_arg5 addr=0;
  34752. $recvfrom_arg6 addrlen=0;
  34753. $recvfrom_retv res=0;
  34754. res = recvfrom(s, buf, len, flags, addr, addrlen);
  34755. ;
  34756. return 0;
  34757. }
  34758. _ACEOF
  34759. rm -f conftest.$ac_objext
  34760. if { (ac_try="$ac_compile"
  34761. case "(($ac_try" in
  34762. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34763. *) ac_try_echo=$ac_try;;
  34764. esac
  34765. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34766. (eval "$ac_compile") 2>conftest.er1
  34767. ac_status=$?
  34768. grep -v '^ *+' conftest.er1 >conftest.err
  34769. rm -f conftest.er1
  34770. cat conftest.err >&5
  34771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34772. (exit $ac_status); } && {
  34773. test -z "$ac_c_werror_flag" ||
  34774. test ! -s conftest.err
  34775. } && test -s conftest.$ac_objext; then
  34776. curl_cv_func_recvfrom_args="$recvfrom_arg1,$recvfrom_arg2,$recvfrom_arg3,$recvfrom_arg4,$recvfrom_arg5,$recvfrom_arg6,$recvfrom_retv"
  34777. else
  34778. echo "$as_me: failed program was:" >&5
  34779. sed 's/^/| /' conftest.$ac_ext >&5
  34780. fi
  34781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34782. fi
  34783. done
  34784. done
  34785. done
  34786. done
  34787. done
  34788. done
  34789. done
  34790. fi
  34791. { echo "$as_me:$LINENO: result: $curl_cv_func_recvfrom_args" >&5
  34792. echo "${ECHO_T}$curl_cv_func_recvfrom_args" >&6; } # AC-CACHE-CHECK
  34793. # Nearly last minute change for this release starts here
  34794. cat >>confdefs.h <<_ACEOF
  34795. #define HAVE_RECVFROM 1
  34796. _ACEOF
  34797. ac_cv_func_recvfrom="yes"
  34798. # Nearly last minute change for this release ends here
  34799. if test "$curl_cv_func_recvfrom_args" = "unknown"; then
  34800. { echo "$as_me:$LINENO: WARNING: Cannot find proper types to use for recvfrom args" >&5
  34801. echo "$as_me: WARNING: Cannot find proper types to use for recvfrom args" >&2;}
  34802. else
  34803. recvfrom_prev_IFS=$IFS; IFS=','
  34804. set dummy `echo "$curl_cv_func_recvfrom_args" | sed 's/\*/\*/g'`
  34805. IFS=$recvfrom_prev_IFS
  34806. shift
  34807. #
  34808. recvfrom_ptrt_arg2=$2
  34809. recvfrom_ptrt_arg5=$5
  34810. recvfrom_ptrt_arg6=$6
  34811. #
  34812. cat >>confdefs.h <<_ACEOF
  34813. #define RECVFROM_TYPE_ARG1 $1
  34814. _ACEOF
  34815. cat >>confdefs.h <<_ACEOF
  34816. #define RECVFROM_TYPE_ARG3 $3
  34817. _ACEOF
  34818. cat >>confdefs.h <<_ACEOF
  34819. #define RECVFROM_TYPE_ARG4 $4
  34820. _ACEOF
  34821. cat >>confdefs.h <<_ACEOF
  34822. #define RECVFROM_TYPE_RETV $7
  34823. _ACEOF
  34824. #
  34825. prev_sh_opts=$-
  34826. #
  34827. case $prev_sh_opts in
  34828. *f*)
  34829. ;;
  34830. *)
  34831. set -f
  34832. ;;
  34833. esac
  34834. #
  34835. recvfrom_type_arg2=`echo $recvfrom_ptrt_arg2 | sed 's/ \*//'`
  34836. recvfrom_type_arg5=`echo $recvfrom_ptrt_arg5 | sed 's/ \*//'`
  34837. recvfrom_type_arg6=`echo $recvfrom_ptrt_arg6 | sed 's/ \*//'`
  34838. #
  34839. cat >>confdefs.h <<_ACEOF
  34840. #define RECVFROM_TYPE_ARG2 $recvfrom_type_arg2
  34841. _ACEOF
  34842. cat >>confdefs.h <<_ACEOF
  34843. #define RECVFROM_TYPE_ARG5 $recvfrom_type_arg5
  34844. _ACEOF
  34845. cat >>confdefs.h <<_ACEOF
  34846. #define RECVFROM_TYPE_ARG6 $recvfrom_type_arg6
  34847. _ACEOF
  34848. #
  34849. if test "$recvfrom_type_arg2" = "void"; then
  34850. cat >>confdefs.h <<_ACEOF
  34851. #define RECVFROM_TYPE_ARG2_IS_VOID 1
  34852. _ACEOF
  34853. fi
  34854. if test "$recvfrom_type_arg5" = "void"; then
  34855. cat >>confdefs.h <<_ACEOF
  34856. #define RECVFROM_TYPE_ARG5_IS_VOID 1
  34857. _ACEOF
  34858. fi
  34859. if test "$recvfrom_type_arg6" = "void"; then
  34860. cat >>confdefs.h <<_ACEOF
  34861. #define RECVFROM_TYPE_ARG6_IS_VOID 1
  34862. _ACEOF
  34863. fi
  34864. #
  34865. case $prev_sh_opts in
  34866. *f*)
  34867. ;;
  34868. *)
  34869. set +f
  34870. ;;
  34871. esac
  34872. #
  34873. cat >>confdefs.h <<_ACEOF
  34874. #define HAVE_RECVFROM 1
  34875. _ACEOF
  34876. ac_cv_func_recvfrom="yes"
  34877. fi
  34878. else
  34879. { echo "$as_me:$LINENO: WARNING: Unable to link function recvfrom" >&5
  34880. echo "$as_me: WARNING: Unable to link function recvfrom" >&2;}
  34881. fi
  34882. for ac_header in sys/types.h sys/socket.h
  34883. do
  34884. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  34885. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  34886. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  34887. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  34888. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  34889. echo $ECHO_N "(cached) $ECHO_C" >&6
  34890. fi
  34891. ac_res=`eval echo '${'$as_ac_Header'}'`
  34892. { echo "$as_me:$LINENO: result: $ac_res" >&5
  34893. echo "${ECHO_T}$ac_res" >&6; }
  34894. else
  34895. # Is the header compilable?
  34896. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  34897. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  34898. cat >conftest.$ac_ext <<_ACEOF
  34899. /* confdefs.h. */
  34900. _ACEOF
  34901. cat confdefs.h >>conftest.$ac_ext
  34902. cat >>conftest.$ac_ext <<_ACEOF
  34903. /* end confdefs.h. */
  34904. $ac_includes_default
  34905. #include <$ac_header>
  34906. _ACEOF
  34907. rm -f conftest.$ac_objext
  34908. if { (ac_try="$ac_compile"
  34909. case "(($ac_try" in
  34910. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34911. *) ac_try_echo=$ac_try;;
  34912. esac
  34913. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34914. (eval "$ac_compile") 2>conftest.er1
  34915. ac_status=$?
  34916. grep -v '^ *+' conftest.er1 >conftest.err
  34917. rm -f conftest.er1
  34918. cat conftest.err >&5
  34919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34920. (exit $ac_status); } && {
  34921. test -z "$ac_c_werror_flag" ||
  34922. test ! -s conftest.err
  34923. } && test -s conftest.$ac_objext; then
  34924. ac_header_compiler=yes
  34925. else
  34926. echo "$as_me: failed program was:" >&5
  34927. sed 's/^/| /' conftest.$ac_ext >&5
  34928. ac_header_compiler=no
  34929. fi
  34930. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34931. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  34932. echo "${ECHO_T}$ac_header_compiler" >&6; }
  34933. # Is the header present?
  34934. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  34935. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  34936. cat >conftest.$ac_ext <<_ACEOF
  34937. /* confdefs.h. */
  34938. _ACEOF
  34939. cat confdefs.h >>conftest.$ac_ext
  34940. cat >>conftest.$ac_ext <<_ACEOF
  34941. /* end confdefs.h. */
  34942. #include <$ac_header>
  34943. _ACEOF
  34944. if { (ac_try="$ac_cpp conftest.$ac_ext"
  34945. case "(($ac_try" in
  34946. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34947. *) ac_try_echo=$ac_try;;
  34948. esac
  34949. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34950. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  34951. ac_status=$?
  34952. grep -v '^ *+' conftest.er1 >conftest.err
  34953. rm -f conftest.er1
  34954. cat conftest.err >&5
  34955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34956. (exit $ac_status); } >/dev/null && {
  34957. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  34958. test ! -s conftest.err
  34959. }; then
  34960. ac_header_preproc=yes
  34961. else
  34962. echo "$as_me: failed program was:" >&5
  34963. sed 's/^/| /' conftest.$ac_ext >&5
  34964. ac_header_preproc=no
  34965. fi
  34966. rm -f conftest.err conftest.$ac_ext
  34967. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  34968. echo "${ECHO_T}$ac_header_preproc" >&6; }
  34969. # So? What about this header?
  34970. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  34971. yes:no: )
  34972. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  34973. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  34974. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  34975. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  34976. ac_header_preproc=yes
  34977. ;;
  34978. no:yes:* )
  34979. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  34980. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  34981. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  34982. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  34983. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  34984. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  34985. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  34986. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  34987. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  34988. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  34989. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  34990. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  34991. ( cat <<\_ASBOX
  34992. ## ------------------------------------------------------------------------ ##
  34993. ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
  34994. ## ------------------------------------------------------------------------ ##
  34995. _ASBOX
  34996. ) | sed "s/^/$as_me: WARNING: /" >&2
  34997. ;;
  34998. esac
  34999. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  35000. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  35001. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  35002. echo $ECHO_N "(cached) $ECHO_C" >&6
  35003. else
  35004. eval "$as_ac_Header=\$ac_header_preproc"
  35005. fi
  35006. ac_res=`eval echo '${'$as_ac_Header'}'`
  35007. { echo "$as_me:$LINENO: result: $ac_res" >&5
  35008. echo "${ECHO_T}$ac_res" >&6; }
  35009. fi
  35010. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  35011. cat >>confdefs.h <<_ACEOF
  35012. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  35013. _ACEOF
  35014. fi
  35015. done
  35016. #
  35017. { echo "$as_me:$LINENO: checking for send" >&5
  35018. echo $ECHO_N "checking for send... $ECHO_C" >&6; }
  35019. cat >conftest.$ac_ext <<_ACEOF
  35020. /* confdefs.h. */
  35021. _ACEOF
  35022. cat confdefs.h >>conftest.$ac_ext
  35023. cat >>conftest.$ac_ext <<_ACEOF
  35024. /* end confdefs.h. */
  35025. #undef inline
  35026. #ifdef HAVE_WINDOWS_H
  35027. #ifndef WIN32_LEAN_AND_MEAN
  35028. #define WIN32_LEAN_AND_MEAN
  35029. #endif
  35030. #include <windows.h>
  35031. #ifdef HAVE_WINSOCK2_H
  35032. #include <winsock2.h>
  35033. #else
  35034. #ifdef HAVE_WINSOCK_H
  35035. #include <winsock.h>
  35036. #endif
  35037. #endif
  35038. #else
  35039. #ifdef HAVE_SYS_TYPES_H
  35040. #include <sys/types.h>
  35041. #endif
  35042. #ifdef HAVE_SYS_SOCKET_H
  35043. #include <sys/socket.h>
  35044. #endif
  35045. #endif
  35046. int
  35047. main ()
  35048. {
  35049. send(0, 0, 0, 0);
  35050. ;
  35051. return 0;
  35052. }
  35053. _ACEOF
  35054. rm -f conftest.$ac_objext conftest$ac_exeext
  35055. if { (ac_try="$ac_link"
  35056. case "(($ac_try" in
  35057. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35058. *) ac_try_echo=$ac_try;;
  35059. esac
  35060. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35061. (eval "$ac_link") 2>conftest.er1
  35062. ac_status=$?
  35063. grep -v '^ *+' conftest.er1 >conftest.err
  35064. rm -f conftest.er1
  35065. cat conftest.err >&5
  35066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35067. (exit $ac_status); } && {
  35068. test -z "$ac_c_werror_flag" ||
  35069. test ! -s conftest.err
  35070. } && test -s conftest$ac_exeext &&
  35071. $as_test_x conftest$ac_exeext; then
  35072. { echo "$as_me:$LINENO: result: yes" >&5
  35073. echo "${ECHO_T}yes" >&6; }
  35074. curl_cv_send="yes"
  35075. else
  35076. echo "$as_me: failed program was:" >&5
  35077. sed 's/^/| /' conftest.$ac_ext >&5
  35078. { echo "$as_me:$LINENO: result: no" >&5
  35079. echo "${ECHO_T}no" >&6; }
  35080. curl_cv_send="no"
  35081. fi
  35082. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  35083. conftest$ac_exeext conftest.$ac_ext
  35084. #
  35085. if test "$curl_cv_send" = "yes"; then
  35086. { echo "$as_me:$LINENO: checking types of args and return type for send" >&5
  35087. echo $ECHO_N "checking types of args and return type for send... $ECHO_C" >&6; }
  35088. if test "${curl_cv_func_send_args+set}" = set; then
  35089. echo $ECHO_N "(cached) $ECHO_C" >&6
  35090. else
  35091. curl_cv_func_send_args="unknown"
  35092. for send_retv in 'int' 'ssize_t'; do
  35093. for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
  35094. for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
  35095. for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
  35096. for send_arg4 in 'int' 'unsigned int'; do
  35097. if test "$curl_cv_func_send_args" = "unknown"; then
  35098. cat >conftest.$ac_ext <<_ACEOF
  35099. /* confdefs.h. */
  35100. _ACEOF
  35101. cat confdefs.h >>conftest.$ac_ext
  35102. cat >>conftest.$ac_ext <<_ACEOF
  35103. /* end confdefs.h. */
  35104. #undef inline
  35105. #ifdef HAVE_WINDOWS_H
  35106. #ifndef WIN32_LEAN_AND_MEAN
  35107. #define WIN32_LEAN_AND_MEAN
  35108. #endif
  35109. #include <windows.h>
  35110. #ifdef HAVE_WINSOCK2_H
  35111. #include <winsock2.h>
  35112. #else
  35113. #ifdef HAVE_WINSOCK_H
  35114. #include <winsock.h>
  35115. #endif
  35116. #endif
  35117. #define SENDCALLCONV PASCAL
  35118. #else
  35119. #ifdef HAVE_SYS_TYPES_H
  35120. #include <sys/types.h>
  35121. #endif
  35122. #ifdef HAVE_SYS_SOCKET_H
  35123. #include <sys/socket.h>
  35124. #endif
  35125. #define SENDCALLCONV
  35126. #endif
  35127. extern $send_retv SENDCALLCONV
  35128. send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
  35129. int
  35130. main ()
  35131. {
  35132. $send_arg1 s=0;
  35133. $send_arg3 len=0;
  35134. $send_arg4 flags=0;
  35135. $send_retv res = send(s, 0, len, flags);
  35136. ;
  35137. return 0;
  35138. }
  35139. _ACEOF
  35140. rm -f conftest.$ac_objext
  35141. if { (ac_try="$ac_compile"
  35142. case "(($ac_try" in
  35143. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35144. *) ac_try_echo=$ac_try;;
  35145. esac
  35146. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35147. (eval "$ac_compile") 2>conftest.er1
  35148. ac_status=$?
  35149. grep -v '^ *+' conftest.er1 >conftest.err
  35150. rm -f conftest.er1
  35151. cat conftest.err >&5
  35152. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35153. (exit $ac_status); } && {
  35154. test -z "$ac_c_werror_flag" ||
  35155. test ! -s conftest.err
  35156. } && test -s conftest.$ac_objext; then
  35157. curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
  35158. else
  35159. echo "$as_me: failed program was:" >&5
  35160. sed 's/^/| /' conftest.$ac_ext >&5
  35161. fi
  35162. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35163. fi
  35164. done
  35165. done
  35166. done
  35167. done
  35168. done
  35169. fi
  35170. { echo "$as_me:$LINENO: result: $curl_cv_func_send_args" >&5
  35171. echo "${ECHO_T}$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
  35172. if test "$curl_cv_func_send_args" = "unknown"; then
  35173. { { echo "$as_me:$LINENO: error: Cannot find proper types to use for send args" >&5
  35174. echo "$as_me: error: Cannot find proper types to use for send args" >&2;}
  35175. { (exit 1); exit 1; }; }
  35176. else
  35177. send_prev_IFS=$IFS; IFS=','
  35178. set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
  35179. IFS=$send_prev_IFS
  35180. shift
  35181. #
  35182. send_qual_type_arg2=$2
  35183. #
  35184. cat >>confdefs.h <<_ACEOF
  35185. #define SEND_TYPE_ARG1 $1
  35186. _ACEOF
  35187. cat >>confdefs.h <<_ACEOF
  35188. #define SEND_TYPE_ARG3 $3
  35189. _ACEOF
  35190. cat >>confdefs.h <<_ACEOF
  35191. #define SEND_TYPE_ARG4 $4
  35192. _ACEOF
  35193. cat >>confdefs.h <<_ACEOF
  35194. #define SEND_TYPE_RETV $5
  35195. _ACEOF
  35196. #
  35197. prev_sh_opts=$-
  35198. #
  35199. case $prev_sh_opts in
  35200. *f*)
  35201. ;;
  35202. *)
  35203. set -f
  35204. ;;
  35205. esac
  35206. #
  35207. case "$send_qual_type_arg2" in
  35208. const*)
  35209. send_qual_arg2=const
  35210. send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
  35211. ;;
  35212. *)
  35213. send_qual_arg2=
  35214. send_type_arg2=$send_qual_type_arg2
  35215. ;;
  35216. esac
  35217. #
  35218. cat >>confdefs.h <<_ACEOF
  35219. #define SEND_QUAL_ARG2 $send_qual_arg2
  35220. _ACEOF
  35221. cat >>confdefs.h <<_ACEOF
  35222. #define SEND_TYPE_ARG2 $send_type_arg2
  35223. _ACEOF
  35224. #
  35225. case $prev_sh_opts in
  35226. *f*)
  35227. ;;
  35228. *)
  35229. set +f
  35230. ;;
  35231. esac
  35232. #
  35233. cat >>confdefs.h <<_ACEOF
  35234. #define HAVE_SEND 1
  35235. _ACEOF
  35236. ac_cv_func_send="yes"
  35237. fi
  35238. else
  35239. { { echo "$as_me:$LINENO: error: Unable to link function send" >&5
  35240. echo "$as_me: error: Unable to link function send" >&2;}
  35241. { (exit 1); exit 1; }; }
  35242. fi
  35243. for ac_header in sys/types.h sys/socket.h
  35244. do
  35245. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  35246. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  35247. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  35248. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  35249. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  35250. echo $ECHO_N "(cached) $ECHO_C" >&6
  35251. fi
  35252. ac_res=`eval echo '${'$as_ac_Header'}'`
  35253. { echo "$as_me:$LINENO: result: $ac_res" >&5
  35254. echo "${ECHO_T}$ac_res" >&6; }
  35255. else
  35256. # Is the header compilable?
  35257. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  35258. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  35259. cat >conftest.$ac_ext <<_ACEOF
  35260. /* confdefs.h. */
  35261. _ACEOF
  35262. cat confdefs.h >>conftest.$ac_ext
  35263. cat >>conftest.$ac_ext <<_ACEOF
  35264. /* end confdefs.h. */
  35265. $ac_includes_default
  35266. #include <$ac_header>
  35267. _ACEOF
  35268. rm -f conftest.$ac_objext
  35269. if { (ac_try="$ac_compile"
  35270. case "(($ac_try" in
  35271. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35272. *) ac_try_echo=$ac_try;;
  35273. esac
  35274. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35275. (eval "$ac_compile") 2>conftest.er1
  35276. ac_status=$?
  35277. grep -v '^ *+' conftest.er1 >conftest.err
  35278. rm -f conftest.er1
  35279. cat conftest.err >&5
  35280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35281. (exit $ac_status); } && {
  35282. test -z "$ac_c_werror_flag" ||
  35283. test ! -s conftest.err
  35284. } && test -s conftest.$ac_objext; then
  35285. ac_header_compiler=yes
  35286. else
  35287. echo "$as_me: failed program was:" >&5
  35288. sed 's/^/| /' conftest.$ac_ext >&5
  35289. ac_header_compiler=no
  35290. fi
  35291. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35292. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  35293. echo "${ECHO_T}$ac_header_compiler" >&6; }
  35294. # Is the header present?
  35295. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  35296. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  35297. cat >conftest.$ac_ext <<_ACEOF
  35298. /* confdefs.h. */
  35299. _ACEOF
  35300. cat confdefs.h >>conftest.$ac_ext
  35301. cat >>conftest.$ac_ext <<_ACEOF
  35302. /* end confdefs.h. */
  35303. #include <$ac_header>
  35304. _ACEOF
  35305. if { (ac_try="$ac_cpp conftest.$ac_ext"
  35306. case "(($ac_try" in
  35307. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35308. *) ac_try_echo=$ac_try;;
  35309. esac
  35310. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35311. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  35312. ac_status=$?
  35313. grep -v '^ *+' conftest.er1 >conftest.err
  35314. rm -f conftest.er1
  35315. cat conftest.err >&5
  35316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35317. (exit $ac_status); } >/dev/null && {
  35318. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  35319. test ! -s conftest.err
  35320. }; then
  35321. ac_header_preproc=yes
  35322. else
  35323. echo "$as_me: failed program was:" >&5
  35324. sed 's/^/| /' conftest.$ac_ext >&5
  35325. ac_header_preproc=no
  35326. fi
  35327. rm -f conftest.err conftest.$ac_ext
  35328. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  35329. echo "${ECHO_T}$ac_header_preproc" >&6; }
  35330. # So? What about this header?
  35331. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  35332. yes:no: )
  35333. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  35334. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  35335. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  35336. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  35337. ac_header_preproc=yes
  35338. ;;
  35339. no:yes:* )
  35340. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  35341. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  35342. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  35343. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  35344. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  35345. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  35346. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  35347. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  35348. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  35349. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  35350. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  35351. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  35352. ( cat <<\_ASBOX
  35353. ## ------------------------------------------------------------------------ ##
  35354. ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
  35355. ## ------------------------------------------------------------------------ ##
  35356. _ASBOX
  35357. ) | sed "s/^/$as_me: WARNING: /" >&2
  35358. ;;
  35359. esac
  35360. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  35361. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  35362. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  35363. echo $ECHO_N "(cached) $ECHO_C" >&6
  35364. else
  35365. eval "$as_ac_Header=\$ac_header_preproc"
  35366. fi
  35367. ac_res=`eval echo '${'$as_ac_Header'}'`
  35368. { echo "$as_me:$LINENO: result: $ac_res" >&5
  35369. echo "${ECHO_T}$ac_res" >&6; }
  35370. fi
  35371. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  35372. cat >>confdefs.h <<_ACEOF
  35373. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  35374. _ACEOF
  35375. fi
  35376. done
  35377. { echo "$as_me:$LINENO: checking for MSG_NOSIGNAL" >&5
  35378. echo $ECHO_N "checking for MSG_NOSIGNAL... $ECHO_C" >&6; }
  35379. if test "${ac_cv_msg_nosignal+set}" = set; then
  35380. echo $ECHO_N "(cached) $ECHO_C" >&6
  35381. else
  35382. cat >conftest.$ac_ext <<_ACEOF
  35383. /* confdefs.h. */
  35384. _ACEOF
  35385. cat confdefs.h >>conftest.$ac_ext
  35386. cat >>conftest.$ac_ext <<_ACEOF
  35387. /* end confdefs.h. */
  35388. #undef inline
  35389. #ifdef HAVE_WINDOWS_H
  35390. #ifndef WIN32_LEAN_AND_MEAN
  35391. #define WIN32_LEAN_AND_MEAN
  35392. #endif
  35393. #include <windows.h>
  35394. #ifdef HAVE_WINSOCK2_H
  35395. #include <winsock2.h>
  35396. #else
  35397. #ifdef HAVE_WINSOCK_H
  35398. #include <winsock.h>
  35399. #endif
  35400. #endif
  35401. #else
  35402. #ifdef HAVE_SYS_TYPES_H
  35403. #include <sys/types.h>
  35404. #endif
  35405. #ifdef HAVE_SYS_SOCKET_H
  35406. #include <sys/socket.h>
  35407. #endif
  35408. #endif
  35409. int
  35410. main ()
  35411. {
  35412. int flag=MSG_NOSIGNAL;
  35413. ;
  35414. return 0;
  35415. }
  35416. _ACEOF
  35417. rm -f conftest.$ac_objext
  35418. if { (ac_try="$ac_compile"
  35419. case "(($ac_try" in
  35420. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35421. *) ac_try_echo=$ac_try;;
  35422. esac
  35423. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35424. (eval "$ac_compile") 2>conftest.er1
  35425. ac_status=$?
  35426. grep -v '^ *+' conftest.er1 >conftest.err
  35427. rm -f conftest.er1
  35428. cat conftest.err >&5
  35429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35430. (exit $ac_status); } && {
  35431. test -z "$ac_c_werror_flag" ||
  35432. test ! -s conftest.err
  35433. } && test -s conftest.$ac_objext; then
  35434. ac_cv_msg_nosignal="yes"
  35435. else
  35436. echo "$as_me: failed program was:" >&5
  35437. sed 's/^/| /' conftest.$ac_ext >&5
  35438. ac_cv_msg_nosignal="no"
  35439. fi
  35440. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35441. fi
  35442. { echo "$as_me:$LINENO: result: $ac_cv_msg_nosignal" >&5
  35443. echo "${ECHO_T}$ac_cv_msg_nosignal" >&6; }
  35444. case "$ac_cv_msg_nosignal" in
  35445. yes)
  35446. cat >>confdefs.h <<_ACEOF
  35447. #define HAVE_MSG_NOSIGNAL 1
  35448. _ACEOF
  35449. ;;
  35450. esac
  35451. case $host in
  35452. *msdosdjgpp)
  35453. ac_cv_func_pipe=no
  35454. skipcheck_pipe=yes
  35455. { echo "$as_me:$LINENO: skip check for pipe on msdosdjgpp" >&5
  35456. echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
  35457. ;;
  35458. esac
  35459. for ac_func in basename \
  35460. closesocket \
  35461. fork \
  35462. ftruncate \
  35463. geteuid \
  35464. gethostbyaddr \
  35465. getpass_r \
  35466. getppid \
  35467. getprotobyname \
  35468. getpwuid \
  35469. getrlimit \
  35470. gettimeofday \
  35471. inet_addr \
  35472. inet_ntoa \
  35473. inet_pton \
  35474. perror \
  35475. pipe \
  35476. poll \
  35477. setlocale \
  35478. setmode \
  35479. setrlimit \
  35480. sigaction \
  35481. siginterrupt \
  35482. signal \
  35483. sigsetjmp \
  35484. socket \
  35485. strcasecmp \
  35486. strcasestr \
  35487. strcmpi \
  35488. strdup \
  35489. stricmp \
  35490. strlcat \
  35491. strstr \
  35492. strtok_r \
  35493. strtoll \
  35494. uname \
  35495. utime
  35496. do
  35497. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  35498. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  35499. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  35500. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  35501. echo $ECHO_N "(cached) $ECHO_C" >&6
  35502. else
  35503. cat >conftest.$ac_ext <<_ACEOF
  35504. /* confdefs.h. */
  35505. _ACEOF
  35506. cat confdefs.h >>conftest.$ac_ext
  35507. cat >>conftest.$ac_ext <<_ACEOF
  35508. /* end confdefs.h. */
  35509. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  35510. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  35511. #define $ac_func innocuous_$ac_func
  35512. /* System header to define __stub macros and hopefully few prototypes,
  35513. which can conflict with char $ac_func (); below.
  35514. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  35515. <limits.h> exists even on freestanding compilers. */
  35516. #ifdef __STDC__
  35517. # include <limits.h>
  35518. #else
  35519. # include <assert.h>
  35520. #endif
  35521. #undef $ac_func
  35522. /* Override any GCC internal prototype to avoid an error.
  35523. Use char because int might match the return type of a GCC
  35524. builtin and then its argument prototype would still apply. */
  35525. #ifdef __cplusplus
  35526. extern "C"
  35527. #endif
  35528. char $ac_func ();
  35529. /* The GNU C library defines this for functions which it implements
  35530. to always fail with ENOSYS. Some functions are actually named
  35531. something starting with __ and the normal name is an alias. */
  35532. #if defined __stub_$ac_func || defined __stub___$ac_func
  35533. choke me
  35534. #endif
  35535. int
  35536. main ()
  35537. {
  35538. return $ac_func ();
  35539. ;
  35540. return 0;
  35541. }
  35542. _ACEOF
  35543. rm -f conftest.$ac_objext conftest$ac_exeext
  35544. if { (ac_try="$ac_link"
  35545. case "(($ac_try" in
  35546. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35547. *) ac_try_echo=$ac_try;;
  35548. esac
  35549. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35550. (eval "$ac_link") 2>conftest.er1
  35551. ac_status=$?
  35552. grep -v '^ *+' conftest.er1 >conftest.err
  35553. rm -f conftest.er1
  35554. cat conftest.err >&5
  35555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35556. (exit $ac_status); } && {
  35557. test -z "$ac_c_werror_flag" ||
  35558. test ! -s conftest.err
  35559. } && test -s conftest$ac_exeext &&
  35560. $as_test_x conftest$ac_exeext; then
  35561. eval "$as_ac_var=yes"
  35562. else
  35563. echo "$as_me: failed program was:" >&5
  35564. sed 's/^/| /' conftest.$ac_ext >&5
  35565. eval "$as_ac_var=no"
  35566. fi
  35567. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  35568. conftest$ac_exeext conftest.$ac_ext
  35569. fi
  35570. ac_res=`eval echo '${'$as_ac_var'}'`
  35571. { echo "$as_me:$LINENO: result: $ac_res" >&5
  35572. echo "${ECHO_T}$ac_res" >&6; }
  35573. if test `eval echo '${'$as_ac_var'}'` = yes; then
  35574. cat >>confdefs.h <<_ACEOF
  35575. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  35576. _ACEOF
  35577. else
  35578. func="$ac_func"
  35579. eval skipcheck=\$skipcheck_$func
  35580. if test "x$skipcheck" != "xyes"; then
  35581. { echo "$as_me:$LINENO: checking deeper for $func" >&5
  35582. echo $ECHO_N "checking deeper for $func... $ECHO_C" >&6; }
  35583. cat >conftest.$ac_ext <<_ACEOF
  35584. /* confdefs.h. */
  35585. _ACEOF
  35586. cat confdefs.h >>conftest.$ac_ext
  35587. cat >>conftest.$ac_ext <<_ACEOF
  35588. /* end confdefs.h. */
  35589. int
  35590. main ()
  35591. {
  35592. $func ();
  35593. ;
  35594. return 0;
  35595. }
  35596. _ACEOF
  35597. rm -f conftest.$ac_objext conftest$ac_exeext
  35598. if { (ac_try="$ac_link"
  35599. case "(($ac_try" in
  35600. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35601. *) ac_try_echo=$ac_try;;
  35602. esac
  35603. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35604. (eval "$ac_link") 2>conftest.er1
  35605. ac_status=$?
  35606. grep -v '^ *+' conftest.er1 >conftest.err
  35607. rm -f conftest.er1
  35608. cat conftest.err >&5
  35609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35610. (exit $ac_status); } && {
  35611. test -z "$ac_c_werror_flag" ||
  35612. test ! -s conftest.err
  35613. } && test -s conftest$ac_exeext &&
  35614. $as_test_x conftest$ac_exeext; then
  35615. { echo "$as_me:$LINENO: result: yes" >&5
  35616. echo "${ECHO_T}yes" >&6; }
  35617. eval "ac_cv_func_$func=yes"
  35618. cat >>confdefs.h <<_ACEOF
  35619. #define `echo "HAVE_$func" | $as_tr_cpp` 1
  35620. _ACEOF
  35621. else
  35622. echo "$as_me: failed program was:" >&5
  35623. sed 's/^/| /' conftest.$ac_ext >&5
  35624. { echo "$as_me:$LINENO: result: but still no" >&5
  35625. echo "${ECHO_T}but still no" >&6; }
  35626. fi
  35627. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  35628. conftest$ac_exeext conftest.$ac_ext
  35629. fi
  35630. fi
  35631. done
  35632. if test "$ac_cv_func_sigsetjmp" != "yes"; then
  35633. { echo "$as_me:$LINENO: checking for sigsetjmp defined as macro" >&5
  35634. echo $ECHO_N "checking for sigsetjmp defined as macro... $ECHO_C" >&6; }
  35635. cat >conftest.$ac_ext <<_ACEOF
  35636. /* confdefs.h. */
  35637. _ACEOF
  35638. cat confdefs.h >>conftest.$ac_ext
  35639. cat >>conftest.$ac_ext <<_ACEOF
  35640. /* end confdefs.h. */
  35641. #include <setjmp.h>
  35642. int
  35643. main ()
  35644. {
  35645. sigjmp_buf jmpenv;
  35646. sigsetjmp(jmpenv, 1);
  35647. ;
  35648. return 0;
  35649. }
  35650. _ACEOF
  35651. rm -f conftest.$ac_objext conftest$ac_exeext
  35652. if { (ac_try="$ac_link"
  35653. case "(($ac_try" in
  35654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35655. *) ac_try_echo=$ac_try;;
  35656. esac
  35657. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35658. (eval "$ac_link") 2>conftest.er1
  35659. ac_status=$?
  35660. grep -v '^ *+' conftest.er1 >conftest.err
  35661. rm -f conftest.er1
  35662. cat conftest.err >&5
  35663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35664. (exit $ac_status); } && {
  35665. test -z "$ac_c_werror_flag" ||
  35666. test ! -s conftest.err
  35667. } && test -s conftest$ac_exeext &&
  35668. $as_test_x conftest$ac_exeext; then
  35669. { echo "$as_me:$LINENO: result: yes" >&5
  35670. echo "${ECHO_T}yes" >&6; }
  35671. cat >>confdefs.h <<\_ACEOF
  35672. #define HAVE_SIGSETJMP 1
  35673. _ACEOF
  35674. else
  35675. echo "$as_me: failed program was:" >&5
  35676. sed 's/^/| /' conftest.$ac_ext >&5
  35677. { echo "$as_me:$LINENO: result: no" >&5
  35678. echo "${ECHO_T}no" >&6; }
  35679. fi
  35680. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  35681. conftest$ac_exeext conftest.$ac_ext
  35682. fi
  35683. { echo "$as_me:$LINENO: checking whether basename is declared" >&5
  35684. echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6; }
  35685. if test "${ac_cv_have_decl_basename+set}" = set; then
  35686. echo $ECHO_N "(cached) $ECHO_C" >&6
  35687. else
  35688. cat >conftest.$ac_ext <<_ACEOF
  35689. /* confdefs.h. */
  35690. _ACEOF
  35691. cat confdefs.h >>conftest.$ac_ext
  35692. cat >>conftest.$ac_ext <<_ACEOF
  35693. /* end confdefs.h. */
  35694. #ifdef HAVE_STRING_H
  35695. #include <string.h>
  35696. #endif
  35697. #ifdef HAVE_LIBGEN_H
  35698. #include <libgen.h>
  35699. #endif
  35700. #ifdef HAVE_UNISTD_H
  35701. #include <unistd.h>
  35702. #endif
  35703. int
  35704. main ()
  35705. {
  35706. #ifndef basename
  35707. (void) basename;
  35708. #endif
  35709. ;
  35710. return 0;
  35711. }
  35712. _ACEOF
  35713. rm -f conftest.$ac_objext
  35714. if { (ac_try="$ac_compile"
  35715. case "(($ac_try" in
  35716. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35717. *) ac_try_echo=$ac_try;;
  35718. esac
  35719. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35720. (eval "$ac_compile") 2>conftest.er1
  35721. ac_status=$?
  35722. grep -v '^ *+' conftest.er1 >conftest.err
  35723. rm -f conftest.er1
  35724. cat conftest.err >&5
  35725. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35726. (exit $ac_status); } && {
  35727. test -z "$ac_c_werror_flag" ||
  35728. test ! -s conftest.err
  35729. } && test -s conftest.$ac_objext; then
  35730. ac_cv_have_decl_basename=yes
  35731. else
  35732. echo "$as_me: failed program was:" >&5
  35733. sed 's/^/| /' conftest.$ac_ext >&5
  35734. ac_cv_have_decl_basename=no
  35735. fi
  35736. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35737. fi
  35738. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
  35739. echo "${ECHO_T}$ac_cv_have_decl_basename" >&6; }
  35740. if test $ac_cv_have_decl_basename = yes; then
  35741. :
  35742. else
  35743. cat >>confdefs.h <<\_ACEOF
  35744. #define NEED_BASENAME_PROTO 1
  35745. _ACEOF
  35746. fi
  35747. { echo "$as_me:$LINENO: checking whether inet_pton is declared" >&5
  35748. echo $ECHO_N "checking whether inet_pton is declared... $ECHO_C" >&6; }
  35749. if test "${ac_cv_have_decl_inet_pton+set}" = set; then
  35750. echo $ECHO_N "(cached) $ECHO_C" >&6
  35751. else
  35752. cat >conftest.$ac_ext <<_ACEOF
  35753. /* confdefs.h. */
  35754. _ACEOF
  35755. cat confdefs.h >>conftest.$ac_ext
  35756. cat >>conftest.$ac_ext <<_ACEOF
  35757. /* end confdefs.h. */
  35758. #ifdef HAVE_ARPA_INET_H
  35759. #include <arpa/inet.h>
  35760. #endif
  35761. int
  35762. main ()
  35763. {
  35764. #ifndef inet_pton
  35765. (void) inet_pton;
  35766. #endif
  35767. ;
  35768. return 0;
  35769. }
  35770. _ACEOF
  35771. rm -f conftest.$ac_objext
  35772. if { (ac_try="$ac_compile"
  35773. case "(($ac_try" in
  35774. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35775. *) ac_try_echo=$ac_try;;
  35776. esac
  35777. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35778. (eval "$ac_compile") 2>conftest.er1
  35779. ac_status=$?
  35780. grep -v '^ *+' conftest.er1 >conftest.err
  35781. rm -f conftest.er1
  35782. cat conftest.err >&5
  35783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35784. (exit $ac_status); } && {
  35785. test -z "$ac_c_werror_flag" ||
  35786. test ! -s conftest.err
  35787. } && test -s conftest.$ac_objext; then
  35788. ac_cv_have_decl_inet_pton=yes
  35789. else
  35790. echo "$as_me: failed program was:" >&5
  35791. sed 's/^/| /' conftest.$ac_ext >&5
  35792. ac_cv_have_decl_inet_pton=no
  35793. fi
  35794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35795. fi
  35796. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_inet_pton" >&5
  35797. echo "${ECHO_T}$ac_cv_have_decl_inet_pton" >&6; }
  35798. if test $ac_cv_have_decl_inet_pton = yes; then
  35799. :
  35800. else
  35801. cat >>confdefs.h <<\_ACEOF
  35802. #define HAVE_NO_INET_PTON_PROTO 1
  35803. _ACEOF
  35804. fi
  35805. for ac_header in sys/types.h sys/socket.h netdb.h
  35806. do
  35807. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  35808. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  35809. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  35810. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  35811. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  35812. echo $ECHO_N "(cached) $ECHO_C" >&6
  35813. fi
  35814. ac_res=`eval echo '${'$as_ac_Header'}'`
  35815. { echo "$as_me:$LINENO: result: $ac_res" >&5
  35816. echo "${ECHO_T}$ac_res" >&6; }
  35817. else
  35818. # Is the header compilable?
  35819. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  35820. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  35821. cat >conftest.$ac_ext <<_ACEOF
  35822. /* confdefs.h. */
  35823. _ACEOF
  35824. cat confdefs.h >>conftest.$ac_ext
  35825. cat >>conftest.$ac_ext <<_ACEOF
  35826. /* end confdefs.h. */
  35827. $ac_includes_default
  35828. #include <$ac_header>
  35829. _ACEOF
  35830. rm -f conftest.$ac_objext
  35831. if { (ac_try="$ac_compile"
  35832. case "(($ac_try" in
  35833. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35834. *) ac_try_echo=$ac_try;;
  35835. esac
  35836. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35837. (eval "$ac_compile") 2>conftest.er1
  35838. ac_status=$?
  35839. grep -v '^ *+' conftest.er1 >conftest.err
  35840. rm -f conftest.er1
  35841. cat conftest.err >&5
  35842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35843. (exit $ac_status); } && {
  35844. test -z "$ac_c_werror_flag" ||
  35845. test ! -s conftest.err
  35846. } && test -s conftest.$ac_objext; then
  35847. ac_header_compiler=yes
  35848. else
  35849. echo "$as_me: failed program was:" >&5
  35850. sed 's/^/| /' conftest.$ac_ext >&5
  35851. ac_header_compiler=no
  35852. fi
  35853. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35854. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  35855. echo "${ECHO_T}$ac_header_compiler" >&6; }
  35856. # Is the header present?
  35857. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  35858. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  35859. cat >conftest.$ac_ext <<_ACEOF
  35860. /* confdefs.h. */
  35861. _ACEOF
  35862. cat confdefs.h >>conftest.$ac_ext
  35863. cat >>conftest.$ac_ext <<_ACEOF
  35864. /* end confdefs.h. */
  35865. #include <$ac_header>
  35866. _ACEOF
  35867. if { (ac_try="$ac_cpp conftest.$ac_ext"
  35868. case "(($ac_try" in
  35869. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35870. *) ac_try_echo=$ac_try;;
  35871. esac
  35872. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35873. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  35874. ac_status=$?
  35875. grep -v '^ *+' conftest.er1 >conftest.err
  35876. rm -f conftest.er1
  35877. cat conftest.err >&5
  35878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35879. (exit $ac_status); } >/dev/null && {
  35880. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  35881. test ! -s conftest.err
  35882. }; then
  35883. ac_header_preproc=yes
  35884. else
  35885. echo "$as_me: failed program was:" >&5
  35886. sed 's/^/| /' conftest.$ac_ext >&5
  35887. ac_header_preproc=no
  35888. fi
  35889. rm -f conftest.err conftest.$ac_ext
  35890. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  35891. echo "${ECHO_T}$ac_header_preproc" >&6; }
  35892. # So? What about this header?
  35893. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  35894. yes:no: )
  35895. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  35896. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  35897. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  35898. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  35899. ac_header_preproc=yes
  35900. ;;
  35901. no:yes:* )
  35902. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  35903. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  35904. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  35905. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  35906. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  35907. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  35908. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  35909. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  35910. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  35911. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  35912. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  35913. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  35914. ( cat <<\_ASBOX
  35915. ## ------------------------------------------------------------------------ ##
  35916. ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
  35917. ## ------------------------------------------------------------------------ ##
  35918. _ASBOX
  35919. ) | sed "s/^/$as_me: WARNING: /" >&2
  35920. ;;
  35921. esac
  35922. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  35923. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  35924. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  35925. echo $ECHO_N "(cached) $ECHO_C" >&6
  35926. else
  35927. eval "$as_ac_Header=\$ac_header_preproc"
  35928. fi
  35929. ac_res=`eval echo '${'$as_ac_Header'}'`
  35930. { echo "$as_me:$LINENO: result: $ac_res" >&5
  35931. echo "${ECHO_T}$ac_res" >&6; }
  35932. fi
  35933. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  35934. cat >>confdefs.h <<_ACEOF
  35935. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  35936. _ACEOF
  35937. fi
  35938. done
  35939. #
  35940. { echo "$as_me:$LINENO: checking for getnameinfo" >&5
  35941. echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6; }
  35942. cat >conftest.$ac_ext <<_ACEOF
  35943. /* confdefs.h. */
  35944. _ACEOF
  35945. cat confdefs.h >>conftest.$ac_ext
  35946. cat >>conftest.$ac_ext <<_ACEOF
  35947. /* end confdefs.h. */
  35948. /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
  35949. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  35950. #define getnameinfo innocuous_getnameinfo
  35951. /* System header to define __stub macros and hopefully few prototypes,
  35952. which can conflict with char getnameinfo (); below.
  35953. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  35954. <limits.h> exists even on freestanding compilers. */
  35955. #ifdef __STDC__
  35956. # include <limits.h>
  35957. #else
  35958. # include <assert.h>
  35959. #endif
  35960. #undef getnameinfo
  35961. /* Override any GCC internal prototype to avoid an error.
  35962. Use char because int might match the return type of a GCC
  35963. builtin and then its argument prototype would still apply. */
  35964. #ifdef __cplusplus
  35965. extern "C"
  35966. #endif
  35967. char getnameinfo ();
  35968. /* The GNU C library defines this for functions which it implements
  35969. to always fail with ENOSYS. Some functions are actually named
  35970. something starting with __ and the normal name is an alias. */
  35971. #if defined __stub_getnameinfo || defined __stub___getnameinfo
  35972. choke me
  35973. #endif
  35974. int
  35975. main ()
  35976. {
  35977. return getnameinfo ();
  35978. ;
  35979. return 0;
  35980. }
  35981. _ACEOF
  35982. rm -f conftest.$ac_objext conftest$ac_exeext
  35983. if { (ac_try="$ac_link"
  35984. case "(($ac_try" in
  35985. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35986. *) ac_try_echo=$ac_try;;
  35987. esac
  35988. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35989. (eval "$ac_link") 2>conftest.er1
  35990. ac_status=$?
  35991. grep -v '^ *+' conftest.er1 >conftest.err
  35992. rm -f conftest.er1
  35993. cat conftest.err >&5
  35994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35995. (exit $ac_status); } && {
  35996. test -z "$ac_c_werror_flag" ||
  35997. test ! -s conftest.err
  35998. } && test -s conftest$ac_exeext &&
  35999. $as_test_x conftest$ac_exeext; then
  36000. { echo "$as_me:$LINENO: result: yes" >&5
  36001. echo "${ECHO_T}yes" >&6; }
  36002. curl_cv_getnameinfo="yes"
  36003. else
  36004. echo "$as_me: failed program was:" >&5
  36005. sed 's/^/| /' conftest.$ac_ext >&5
  36006. { echo "$as_me:$LINENO: result: no" >&5
  36007. echo "${ECHO_T}no" >&6; }
  36008. curl_cv_getnameinfo="no"
  36009. fi
  36010. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  36011. conftest$ac_exeext conftest.$ac_ext
  36012. #
  36013. if test "$curl_cv_getnameinfo" != "yes"; then
  36014. { echo "$as_me:$LINENO: checking deeper for getnameinfo" >&5
  36015. echo $ECHO_N "checking deeper for getnameinfo... $ECHO_C" >&6; }
  36016. cat >conftest.$ac_ext <<_ACEOF
  36017. /* confdefs.h. */
  36018. _ACEOF
  36019. cat confdefs.h >>conftest.$ac_ext
  36020. cat >>conftest.$ac_ext <<_ACEOF
  36021. /* end confdefs.h. */
  36022. int
  36023. main ()
  36024. {
  36025. getnameinfo();
  36026. ;
  36027. return 0;
  36028. }
  36029. _ACEOF
  36030. rm -f conftest.$ac_objext conftest$ac_exeext
  36031. if { (ac_try="$ac_link"
  36032. case "(($ac_try" in
  36033. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36034. *) ac_try_echo=$ac_try;;
  36035. esac
  36036. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  36037. (eval "$ac_link") 2>conftest.er1
  36038. ac_status=$?
  36039. grep -v '^ *+' conftest.er1 >conftest.err
  36040. rm -f conftest.er1
  36041. cat conftest.err >&5
  36042. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36043. (exit $ac_status); } && {
  36044. test -z "$ac_c_werror_flag" ||
  36045. test ! -s conftest.err
  36046. } && test -s conftest$ac_exeext &&
  36047. $as_test_x conftest$ac_exeext; then
  36048. { echo "$as_me:$LINENO: result: yes" >&5
  36049. echo "${ECHO_T}yes" >&6; }
  36050. curl_cv_getnameinfo="yes"
  36051. else
  36052. echo "$as_me: failed program was:" >&5
  36053. sed 's/^/| /' conftest.$ac_ext >&5
  36054. { echo "$as_me:$LINENO: result: but still no" >&5
  36055. echo "${ECHO_T}but still no" >&6; }
  36056. curl_cv_getnameinfo="no"
  36057. fi
  36058. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  36059. conftest$ac_exeext conftest.$ac_ext
  36060. fi
  36061. #
  36062. if test "$curl_cv_getnameinfo" != "yes"; then
  36063. { echo "$as_me:$LINENO: checking deeper and deeper for getnameinfo" >&5
  36064. echo $ECHO_N "checking deeper and deeper for getnameinfo... $ECHO_C" >&6; }
  36065. cat >conftest.$ac_ext <<_ACEOF
  36066. /* confdefs.h. */
  36067. _ACEOF
  36068. cat confdefs.h >>conftest.$ac_ext
  36069. cat >>conftest.$ac_ext <<_ACEOF
  36070. /* end confdefs.h. */
  36071. #undef inline
  36072. #ifdef HAVE_WINDOWS_H
  36073. #ifndef WIN32_LEAN_AND_MEAN
  36074. #define WIN32_LEAN_AND_MEAN
  36075. #endif
  36076. #include <windows.h>
  36077. #ifdef HAVE_WINSOCK2_H
  36078. #include <winsock2.h>
  36079. #ifdef HAVE_WS2TCPIP_H
  36080. #include <ws2tcpip.h>
  36081. #endif
  36082. #endif
  36083. #else
  36084. #ifdef HAVE_SYS_TYPES_H
  36085. #include <sys/types.h>
  36086. #endif
  36087. #ifdef HAVE_SYS_SOCKET_H
  36088. #include <sys/socket.h>
  36089. #endif
  36090. #ifdef HAVE_NETDB_H
  36091. #include <netdb.h>
  36092. #endif
  36093. #endif
  36094. int
  36095. main ()
  36096. {
  36097. getnameinfo(0, 0, 0, 0, 0, 0, 0);
  36098. ;
  36099. return 0;
  36100. }
  36101. _ACEOF
  36102. rm -f conftest.$ac_objext conftest$ac_exeext
  36103. if { (ac_try="$ac_link"
  36104. case "(($ac_try" in
  36105. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36106. *) ac_try_echo=$ac_try;;
  36107. esac
  36108. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  36109. (eval "$ac_link") 2>conftest.er1
  36110. ac_status=$?
  36111. grep -v '^ *+' conftest.er1 >conftest.err
  36112. rm -f conftest.er1
  36113. cat conftest.err >&5
  36114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36115. (exit $ac_status); } && {
  36116. test -z "$ac_c_werror_flag" ||
  36117. test ! -s conftest.err
  36118. } && test -s conftest$ac_exeext &&
  36119. $as_test_x conftest$ac_exeext; then
  36120. { echo "$as_me:$LINENO: result: yes" >&5
  36121. echo "${ECHO_T}yes" >&6; }
  36122. curl_cv_getnameinfo="yes"
  36123. else
  36124. echo "$as_me: failed program was:" >&5
  36125. sed 's/^/| /' conftest.$ac_ext >&5
  36126. { echo "$as_me:$LINENO: result: but still no" >&5
  36127. echo "${ECHO_T}but still no" >&6; }
  36128. curl_cv_getnameinfo="no"
  36129. fi
  36130. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  36131. conftest$ac_exeext conftest.$ac_ext
  36132. fi
  36133. #
  36134. if test "$curl_cv_getnameinfo" = "yes"; then
  36135. { echo "$as_me:$LINENO: checking types of arguments for getnameinfo" >&5
  36136. echo $ECHO_N "checking types of arguments for getnameinfo... $ECHO_C" >&6; }
  36137. if test "${curl_cv_func_getnameinfo_args+set}" = set; then
  36138. echo $ECHO_N "(cached) $ECHO_C" >&6
  36139. else
  36140. curl_cv_func_getnameinfo_args="unknown"
  36141. for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
  36142. for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
  36143. for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
  36144. for gni_arg7 in 'int' 'unsigned int'; do
  36145. if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
  36146. cat >conftest.$ac_ext <<_ACEOF
  36147. /* confdefs.h. */
  36148. _ACEOF
  36149. cat confdefs.h >>conftest.$ac_ext
  36150. cat >>conftest.$ac_ext <<_ACEOF
  36151. /* end confdefs.h. */
  36152. #undef inline
  36153. #ifdef HAVE_WINDOWS_H
  36154. #ifndef WIN32_LEAN_AND_MEAN
  36155. #define WIN32_LEAN_AND_MEAN
  36156. #endif
  36157. #if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
  36158. #undef _WIN32_WINNT
  36159. #define _WIN32_WINNT 0x0501
  36160. #endif
  36161. #include <windows.h>
  36162. #ifdef HAVE_WINSOCK2_H
  36163. #include <winsock2.h>
  36164. #ifdef HAVE_WS2TCPIP_H
  36165. #include <ws2tcpip.h>
  36166. #endif
  36167. #endif
  36168. #define GNICALLCONV WSAAPI
  36169. #else
  36170. #ifdef HAVE_SYS_TYPES_H
  36171. #include <sys/types.h>
  36172. #endif
  36173. #ifdef HAVE_SYS_SOCKET_H
  36174. #include <sys/socket.h>
  36175. #endif
  36176. #ifdef HAVE_NETDB_H
  36177. #include <netdb.h>
  36178. #endif
  36179. #define GNICALLCONV
  36180. #endif
  36181. extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
  36182. char *, $gni_arg46,
  36183. char *, $gni_arg46,
  36184. $gni_arg7);
  36185. int
  36186. main ()
  36187. {
  36188. $gni_arg2 salen=0;
  36189. $gni_arg46 hostlen=0;
  36190. $gni_arg46 servlen=0;
  36191. $gni_arg7 flags=0;
  36192. int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
  36193. ;
  36194. return 0;
  36195. }
  36196. _ACEOF
  36197. rm -f conftest.$ac_objext
  36198. if { (ac_try="$ac_compile"
  36199. case "(($ac_try" in
  36200. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36201. *) ac_try_echo=$ac_try;;
  36202. esac
  36203. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  36204. (eval "$ac_compile") 2>conftest.er1
  36205. ac_status=$?
  36206. grep -v '^ *+' conftest.er1 >conftest.err
  36207. rm -f conftest.er1
  36208. cat conftest.err >&5
  36209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36210. (exit $ac_status); } && {
  36211. test -z "$ac_c_werror_flag" ||
  36212. test ! -s conftest.err
  36213. } && test -s conftest.$ac_objext; then
  36214. curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
  36215. else
  36216. echo "$as_me: failed program was:" >&5
  36217. sed 's/^/| /' conftest.$ac_ext >&5
  36218. fi
  36219. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36220. fi
  36221. done
  36222. done
  36223. done
  36224. done
  36225. fi
  36226. { echo "$as_me:$LINENO: result: $curl_cv_func_getnameinfo_args" >&5
  36227. echo "${ECHO_T}$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
  36228. if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
  36229. { echo "$as_me:$LINENO: WARNING: Cannot find proper types to use for getnameinfo args" >&5
  36230. echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
  36231. { echo "$as_me:$LINENO: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
  36232. echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
  36233. else
  36234. gni_prev_IFS=$IFS; IFS=','
  36235. set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
  36236. IFS=$gni_prev_IFS
  36237. shift
  36238. #
  36239. gni_qual_type_arg1=$1
  36240. #
  36241. cat >>confdefs.h <<_ACEOF
  36242. #define GETNAMEINFO_TYPE_ARG2 $2
  36243. _ACEOF
  36244. cat >>confdefs.h <<_ACEOF
  36245. #define GETNAMEINFO_TYPE_ARG46 $3
  36246. _ACEOF
  36247. cat >>confdefs.h <<_ACEOF
  36248. #define GETNAMEINFO_TYPE_ARG7 $4
  36249. _ACEOF
  36250. #
  36251. prev_sh_opts=$-
  36252. #
  36253. case $prev_sh_opts in
  36254. *f*)
  36255. ;;
  36256. *)
  36257. set -f
  36258. ;;
  36259. esac
  36260. #
  36261. case "$gni_qual_type_arg1" in
  36262. const*)
  36263. gni_qual_arg1=const
  36264. gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
  36265. ;;
  36266. *)
  36267. gni_qual_arg1=
  36268. gni_type_arg1=$gni_qual_type_arg1
  36269. ;;
  36270. esac
  36271. #
  36272. cat >>confdefs.h <<_ACEOF
  36273. #define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
  36274. _ACEOF
  36275. cat >>confdefs.h <<_ACEOF
  36276. #define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
  36277. _ACEOF
  36278. #
  36279. case $prev_sh_opts in
  36280. *f*)
  36281. ;;
  36282. *)
  36283. set +f
  36284. ;;
  36285. esac
  36286. #
  36287. cat >>confdefs.h <<_ACEOF
  36288. #define HAVE_GETNAMEINFO 1
  36289. _ACEOF
  36290. ac_cv_func_getnameinfo="yes"
  36291. fi
  36292. fi
  36293. if test "$ipv6" = "yes"; then
  36294. { echo "$as_me:$LINENO: checking for working getaddrinfo" >&5
  36295. echo $ECHO_N "checking for working getaddrinfo... $ECHO_C" >&6; }
  36296. if test "${ac_cv_working_getaddrinfo+set}" = set; then
  36297. echo $ECHO_N "(cached) $ECHO_C" >&6
  36298. else
  36299. if test "$cross_compiling" = yes; then
  36300. ac_cv_working_getaddrinfo="yes"
  36301. else
  36302. cat >conftest.$ac_ext <<_ACEOF
  36303. /* confdefs.h. */
  36304. _ACEOF
  36305. cat confdefs.h >>conftest.$ac_ext
  36306. cat >>conftest.$ac_ext <<_ACEOF
  36307. /* end confdefs.h. */
  36308. #include <netdb.h>
  36309. #include <sys/types.h>
  36310. #include <sys/socket.h>
  36311. int main(void)
  36312. {
  36313. struct addrinfo hints, *ai;
  36314. int error;
  36315. memset(&hints, 0, sizeof(hints));
  36316. hints.ai_flags = AI_NUMERICHOST;
  36317. hints.ai_family = AF_UNSPEC;
  36318. hints.ai_socktype = SOCK_STREAM;
  36319. error = getaddrinfo("127.0.0.1", "8080", &hints, &ai);
  36320. if (error) {
  36321. return 1;
  36322. }
  36323. return 0;
  36324. }
  36325. _ACEOF
  36326. rm -f conftest$ac_exeext
  36327. if { (ac_try="$ac_link"
  36328. case "(($ac_try" in
  36329. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36330. *) ac_try_echo=$ac_try;;
  36331. esac
  36332. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  36333. (eval "$ac_link") 2>&5
  36334. ac_status=$?
  36335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36336. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  36337. { (case "(($ac_try" in
  36338. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36339. *) ac_try_echo=$ac_try;;
  36340. esac
  36341. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  36342. (eval "$ac_try") 2>&5
  36343. ac_status=$?
  36344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36345. (exit $ac_status); }; }; then
  36346. ac_cv_working_getaddrinfo="yes"
  36347. else
  36348. echo "$as_me: program exited with status $ac_status" >&5
  36349. echo "$as_me: failed program was:" >&5
  36350. sed 's/^/| /' conftest.$ac_ext >&5
  36351. ( exit $ac_status )
  36352. ac_cv_working_getaddrinfo="no"
  36353. fi
  36354. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  36355. fi
  36356. fi
  36357. { echo "$as_me:$LINENO: result: $ac_cv_working_getaddrinfo" >&5
  36358. echo "${ECHO_T}$ac_cv_working_getaddrinfo" >&6; }
  36359. if test "$ac_cv_working_getaddrinfo" = "yes"; then
  36360. cat >>confdefs.h <<\_ACEOF
  36361. #define HAVE_GETADDRINFO 1
  36362. _ACEOF
  36363. cat >>confdefs.h <<\_ACEOF
  36364. #define ENABLE_IPV6 1
  36365. _ACEOF
  36366. IPV6_ENABLED=1
  36367. fi
  36368. for ac_header in stdio.h sys/types.h sys/socket.h \
  36369. netdb.h netinet/in.h arpa/inet.h
  36370. do
  36371. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  36372. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  36373. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  36374. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  36375. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  36376. echo $ECHO_N "(cached) $ECHO_C" >&6
  36377. fi
  36378. ac_res=`eval echo '${'$as_ac_Header'}'`
  36379. { echo "$as_me:$LINENO: result: $ac_res" >&5
  36380. echo "${ECHO_T}$ac_res" >&6; }
  36381. else
  36382. # Is the header compilable?
  36383. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  36384. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  36385. cat >conftest.$ac_ext <<_ACEOF
  36386. /* confdefs.h. */
  36387. _ACEOF
  36388. cat confdefs.h >>conftest.$ac_ext
  36389. cat >>conftest.$ac_ext <<_ACEOF
  36390. /* end confdefs.h. */
  36391. $ac_includes_default
  36392. #include <$ac_header>
  36393. _ACEOF
  36394. rm -f conftest.$ac_objext
  36395. if { (ac_try="$ac_compile"
  36396. case "(($ac_try" in
  36397. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36398. *) ac_try_echo=$ac_try;;
  36399. esac
  36400. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  36401. (eval "$ac_compile") 2>conftest.er1
  36402. ac_status=$?
  36403. grep -v '^ *+' conftest.er1 >conftest.err
  36404. rm -f conftest.er1
  36405. cat conftest.err >&5
  36406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36407. (exit $ac_status); } && {
  36408. test -z "$ac_c_werror_flag" ||
  36409. test ! -s conftest.err
  36410. } && test -s conftest.$ac_objext; then
  36411. ac_header_compiler=yes
  36412. else
  36413. echo "$as_me: failed program was:" >&5
  36414. sed 's/^/| /' conftest.$ac_ext >&5
  36415. ac_header_compiler=no
  36416. fi
  36417. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36418. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  36419. echo "${ECHO_T}$ac_header_compiler" >&6; }
  36420. # Is the header present?
  36421. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  36422. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  36423. cat >conftest.$ac_ext <<_ACEOF
  36424. /* confdefs.h. */
  36425. _ACEOF
  36426. cat confdefs.h >>conftest.$ac_ext
  36427. cat >>conftest.$ac_ext <<_ACEOF
  36428. /* end confdefs.h. */
  36429. #include <$ac_header>
  36430. _ACEOF
  36431. if { (ac_try="$ac_cpp conftest.$ac_ext"
  36432. case "(($ac_try" in
  36433. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36434. *) ac_try_echo=$ac_try;;
  36435. esac
  36436. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  36437. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  36438. ac_status=$?
  36439. grep -v '^ *+' conftest.er1 >conftest.err
  36440. rm -f conftest.er1
  36441. cat conftest.err >&5
  36442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36443. (exit $ac_status); } >/dev/null && {
  36444. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  36445. test ! -s conftest.err
  36446. }; then
  36447. ac_header_preproc=yes
  36448. else
  36449. echo "$as_me: failed program was:" >&5
  36450. sed 's/^/| /' conftest.$ac_ext >&5
  36451. ac_header_preproc=no
  36452. fi
  36453. rm -f conftest.err conftest.$ac_ext
  36454. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  36455. echo "${ECHO_T}$ac_header_preproc" >&6; }
  36456. # So? What about this header?
  36457. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  36458. yes:no: )
  36459. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  36460. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  36461. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  36462. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  36463. ac_header_preproc=yes
  36464. ;;
  36465. no:yes:* )
  36466. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  36467. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  36468. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  36469. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  36470. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  36471. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  36472. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  36473. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  36474. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  36475. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  36476. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  36477. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  36478. ( cat <<\_ASBOX
  36479. ## ------------------------------------------------------------------------ ##
  36480. ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
  36481. ## ------------------------------------------------------------------------ ##
  36482. _ASBOX
  36483. ) | sed "s/^/$as_me: WARNING: /" >&2
  36484. ;;
  36485. esac
  36486. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  36487. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  36488. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  36489. echo $ECHO_N "(cached) $ECHO_C" >&6
  36490. else
  36491. eval "$as_ac_Header=\$ac_header_preproc"
  36492. fi
  36493. ac_res=`eval echo '${'$as_ac_Header'}'`
  36494. { echo "$as_me:$LINENO: result: $ac_res" >&5
  36495. echo "${ECHO_T}$ac_res" >&6; }
  36496. fi
  36497. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  36498. cat >>confdefs.h <<_ACEOF
  36499. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  36500. _ACEOF
  36501. fi
  36502. done
  36503. #
  36504. { echo "$as_me:$LINENO: checking for working NI_WITHSCOPEID" >&5
  36505. echo $ECHO_N "checking for working NI_WITHSCOPEID... $ECHO_C" >&6; }
  36506. if test "${ac_cv_working_ni_withscopeid+set}" = set; then
  36507. echo $ECHO_N "(cached) $ECHO_C" >&6
  36508. else
  36509. if test "$cross_compiling" = yes; then
  36510. # Program is not run when cross-compiling. So we assume
  36511. # NI_WITHSCOPEID will work if we are able to compile it.
  36512. cat >conftest.$ac_ext <<_ACEOF
  36513. /* confdefs.h. */
  36514. _ACEOF
  36515. cat confdefs.h >>conftest.$ac_ext
  36516. cat >>conftest.$ac_ext <<_ACEOF
  36517. /* end confdefs.h. */
  36518. #include <sys/types.h>
  36519. #include <sys/socket.h>
  36520. #include <netdb.h>
  36521. int
  36522. main ()
  36523. {
  36524. unsigned int dummy= NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
  36525. ;
  36526. return 0;
  36527. }
  36528. _ACEOF
  36529. rm -f conftest.$ac_objext
  36530. if { (ac_try="$ac_compile"
  36531. case "(($ac_try" in
  36532. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36533. *) ac_try_echo=$ac_try;;
  36534. esac
  36535. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  36536. (eval "$ac_compile") 2>conftest.er1
  36537. ac_status=$?
  36538. grep -v '^ *+' conftest.er1 >conftest.err
  36539. rm -f conftest.er1
  36540. cat conftest.err >&5
  36541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36542. (exit $ac_status); } && {
  36543. test -z "$ac_c_werror_flag" ||
  36544. test ! -s conftest.err
  36545. } && test -s conftest.$ac_objext; then
  36546. ac_cv_working_ni_withscopeid="yes"
  36547. else
  36548. echo "$as_me: failed program was:" >&5
  36549. sed 's/^/| /' conftest.$ac_ext >&5
  36550. ac_cv_working_ni_withscopeid="no"
  36551. fi
  36552. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # AC-COMPILE-IFELSE
  36553. else
  36554. cat >conftest.$ac_ext <<_ACEOF
  36555. /* confdefs.h. */
  36556. _ACEOF
  36557. cat confdefs.h >>conftest.$ac_ext
  36558. cat >>conftest.$ac_ext <<_ACEOF
  36559. /* end confdefs.h. */
  36560. #ifdef HAVE_STDIO_H
  36561. #include <stdio.h>
  36562. #endif
  36563. #ifdef HAVE_SYS_TYPES_H
  36564. #include <sys/types.h>
  36565. #endif
  36566. #ifdef HAVE_SYS_SOCKET_H
  36567. #include <sys/socket.h>
  36568. #endif
  36569. #ifdef HAVE_NETDB_H
  36570. #include <netdb.h>
  36571. #endif
  36572. #ifdef HAVE_NETINET_IN_H
  36573. #include <netinet/in.h>
  36574. #endif
  36575. #ifdef HAVE_ARPA_INET_H
  36576. #include <arpa/inet.h>
  36577. #endif
  36578. int
  36579. main ()
  36580. {
  36581. #if defined(NI_WITHSCOPEID) && defined(HAVE_GETNAMEINFO)
  36582. #ifdef HAVE_STRUCT_SOCKADDR_STORAGE
  36583. struct sockaddr_storage sa;
  36584. #else
  36585. unsigned char sa[256];
  36586. #endif
  36587. char hostbuf[NI_MAXHOST];
  36588. int rc;
  36589. GETNAMEINFO_TYPE_ARG2 salen = (GETNAMEINFO_TYPE_ARG2)sizeof(sa);
  36590. GETNAMEINFO_TYPE_ARG46 hostlen = (GETNAMEINFO_TYPE_ARG46)sizeof(hostbuf);
  36591. GETNAMEINFO_TYPE_ARG7 flags = NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
  36592. int fd = socket(AF_INET6, SOCK_STREAM, 0);
  36593. if(fd < 0) {
  36594. perror("socket()");
  36595. return 1; /* Error creating socket */
  36596. }
  36597. rc = getsockname(fd, (GETNAMEINFO_TYPE_ARG1)&sa, &salen);
  36598. if(rc) {
  36599. perror("getsockname()");
  36600. return 2; /* Error retrieving socket name */
  36601. }
  36602. rc = getnameinfo((GETNAMEINFO_TYPE_ARG1)&sa, salen, hostbuf, hostlen, NULL, 0, flags);
  36603. if(rc) {
  36604. printf("rc = %s\n", gai_strerror(rc));
  36605. return 3; /* Error translating socket address */
  36606. }
  36607. return 0; /* Ok, NI_WITHSCOPEID works */
  36608. #else
  36609. return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */
  36610. #endif
  36611. ;
  36612. return 0;
  36613. } # AC-LANG-PROGRAM
  36614. _ACEOF
  36615. rm -f conftest$ac_exeext
  36616. if { (ac_try="$ac_link"
  36617. case "(($ac_try" in
  36618. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36619. *) ac_try_echo=$ac_try;;
  36620. esac
  36621. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  36622. (eval "$ac_link") 2>&5
  36623. ac_status=$?
  36624. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36625. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  36626. { (case "(($ac_try" in
  36627. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36628. *) ac_try_echo=$ac_try;;
  36629. esac
  36630. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  36631. (eval "$ac_try") 2>&5
  36632. ac_status=$?
  36633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36634. (exit $ac_status); }; }; then
  36635. # Exit code == 0. Program worked.
  36636. ac_cv_working_ni_withscopeid="yes"
  36637. else
  36638. echo "$as_me: program exited with status $ac_status" >&5
  36639. echo "$as_me: failed program was:" >&5
  36640. sed 's/^/| /' conftest.$ac_ext >&5
  36641. ( exit $ac_status )
  36642. # Exit code != 0. Program failed.
  36643. ac_cv_working_ni_withscopeid="no"
  36644. fi
  36645. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  36646. fi
  36647. # AC-RUN-IFELSE
  36648. fi
  36649. { echo "$as_me:$LINENO: result: $ac_cv_working_ni_withscopeid" >&5
  36650. echo "${ECHO_T}$ac_cv_working_ni_withscopeid" >&6; } # AC-CACHE-CHECK
  36651. case "$ac_cv_working_ni_withscopeid" in
  36652. yes)
  36653. cat >>confdefs.h <<\_ACEOF
  36654. #define HAVE_NI_WITHSCOPEID 1
  36655. _ACEOF
  36656. ;;
  36657. esac
  36658. fi
  36659. { echo "$as_me:$LINENO: checking if we are Mac OS X (to disable poll)" >&5
  36660. echo $ECHO_N "checking if we are Mac OS X (to disable poll)... $ECHO_C" >&6; }
  36661. disable_poll=no
  36662. case $host in
  36663. *-*-darwin*)
  36664. disable_poll="yes";
  36665. ;;
  36666. *)
  36667. ;;
  36668. esac
  36669. { echo "$as_me:$LINENO: result: $disable_poll" >&5
  36670. echo "${ECHO_T}$disable_poll" >&6; }
  36671. if test "$disable_poll" = "no"; then
  36672. if test "$ac_cv_func_poll" = "yes"; then
  36673. { echo "$as_me:$LINENO: checking if poll works with NULL inputs" >&5
  36674. echo $ECHO_N "checking if poll works with NULL inputs... $ECHO_C" >&6; }
  36675. if test "$cross_compiling" = yes; then
  36676. { echo "$as_me:$LINENO: result: cross-compiling assumes yes" >&5
  36677. echo "${ECHO_T}cross-compiling assumes yes" >&6; }
  36678. cat >>confdefs.h <<\_ACEOF
  36679. #define HAVE_POLL_FINE 1
  36680. _ACEOF
  36681. else
  36682. cat >conftest.$ac_ext <<_ACEOF
  36683. #ifdef HAVE_SYS_POLL_H
  36684. #include <sys/poll.h>
  36685. #elif defined(HAVE_POLL_H)
  36686. #include <poll.h>
  36687. #endif
  36688. int main(void)
  36689. {
  36690. /* make this return 0 == timeout since there's nothing to read from */
  36691. return poll((void *)0, 0, 10 /*ms*/);
  36692. }
  36693. _ACEOF
  36694. rm -f conftest$ac_exeext
  36695. if { (ac_try="$ac_link"
  36696. case "(($ac_try" in
  36697. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36698. *) ac_try_echo=$ac_try;;
  36699. esac
  36700. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  36701. (eval "$ac_link") 2>&5
  36702. ac_status=$?
  36703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36704. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  36705. { (case "(($ac_try" in
  36706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36707. *) ac_try_echo=$ac_try;;
  36708. esac
  36709. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  36710. (eval "$ac_try") 2>&5
  36711. ac_status=$?
  36712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36713. (exit $ac_status); }; }; then
  36714. { echo "$as_me:$LINENO: result: yes" >&5
  36715. echo "${ECHO_T}yes" >&6; }
  36716. cat >>confdefs.h <<\_ACEOF
  36717. #define HAVE_POLL_FINE 1
  36718. _ACEOF
  36719. else
  36720. echo "$as_me: program exited with status $ac_status" >&5
  36721. echo "$as_me: failed program was:" >&5
  36722. sed 's/^/| /' conftest.$ac_ext >&5
  36723. ( exit $ac_status )
  36724. { echo "$as_me:$LINENO: result: no" >&5
  36725. echo "${ECHO_T}no" >&6; }
  36726. fi
  36727. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  36728. fi
  36729. fi fi
  36730. # Extract the first word of "perl", so it can be a program name with args.
  36731. set dummy perl; ac_word=$2
  36732. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  36733. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  36734. if test "${ac_cv_path_PERL+set}" = set; then
  36735. echo $ECHO_N "(cached) $ECHO_C" >&6
  36736. else
  36737. case $PERL in
  36738. [\\/]* | ?:[\\/]*)
  36739. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  36740. ;;
  36741. *)
  36742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  36743. as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
  36744. for as_dir in $as_dummy
  36745. do
  36746. IFS=$as_save_IFS
  36747. test -z "$as_dir" && as_dir=.
  36748. for ac_exec_ext in '' $ac_executable_extensions; do
  36749. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  36750. ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
  36751. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  36752. break 2
  36753. fi
  36754. done
  36755. done
  36756. IFS=$as_save_IFS
  36757. ;;
  36758. esac
  36759. fi
  36760. PERL=$ac_cv_path_PERL
  36761. if test -n "$PERL"; then
  36762. { echo "$as_me:$LINENO: result: $PERL" >&5
  36763. echo "${ECHO_T}$PERL" >&6; }
  36764. else
  36765. { echo "$as_me:$LINENO: result: no" >&5
  36766. echo "${ECHO_T}no" >&6; }
  36767. fi
  36768. for ac_prog in gnroff nroff
  36769. do
  36770. # Extract the first word of "$ac_prog", so it can be a program name with args.
  36771. set dummy $ac_prog; ac_word=$2
  36772. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  36773. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  36774. if test "${ac_cv_path_NROFF+set}" = set; then
  36775. echo $ECHO_N "(cached) $ECHO_C" >&6
  36776. else
  36777. case $NROFF in
  36778. [\\/]* | ?:[\\/]*)
  36779. ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
  36780. ;;
  36781. *)
  36782. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  36783. as_dummy="$PATH:/usr/bin/:/usr/local/bin "
  36784. for as_dir in $as_dummy
  36785. do
  36786. IFS=$as_save_IFS
  36787. test -z "$as_dir" && as_dir=.
  36788. for ac_exec_ext in '' $ac_executable_extensions; do
  36789. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  36790. ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
  36791. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  36792. break 2
  36793. fi
  36794. done
  36795. done
  36796. IFS=$as_save_IFS
  36797. ;;
  36798. esac
  36799. fi
  36800. NROFF=$ac_cv_path_NROFF
  36801. if test -n "$NROFF"; then
  36802. { echo "$as_me:$LINENO: result: $NROFF" >&5
  36803. echo "${ECHO_T}$NROFF" >&6; }
  36804. else
  36805. { echo "$as_me:$LINENO: result: no" >&5
  36806. echo "${ECHO_T}no" >&6; }
  36807. fi
  36808. test -n "$NROFF" && break
  36809. done
  36810. if test -n "$NROFF"; then
  36811. { echo "$as_me:$LINENO: checking how to use *nroff to get plain text from man pages" >&5
  36812. echo $ECHO_N "checking how to use *nroff to get plain text from man pages... $ECHO_C" >&6; }
  36813. MANOPT="-man"
  36814. mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
  36815. if test -z "$mancheck"; then
  36816. MANOPT="-mandoc"
  36817. mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
  36818. if test -z "$mancheck"; then
  36819. MANOPT=""
  36820. { echo "$as_me:$LINENO: result: failed" >&5
  36821. echo "${ECHO_T}failed" >&6; }
  36822. { echo "$as_me:$LINENO: WARNING: found no *nroff option to get plaintext from man pages" >&5
  36823. echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
  36824. else
  36825. { echo "$as_me:$LINENO: result: $MANOPT" >&5
  36826. echo "${ECHO_T}$MANOPT" >&6; }
  36827. fi
  36828. else
  36829. { echo "$as_me:$LINENO: result: $MANOPT" >&5
  36830. echo "${ECHO_T}$MANOPT" >&6; }
  36831. fi
  36832. fi
  36833. if test -z "$MANOPT"
  36834. then
  36835. { echo "$as_me:$LINENO: WARNING: disabling built-in manual" >&5
  36836. echo "$as_me: WARNING: disabling built-in manual" >&2;}
  36837. USE_MANUAL="no";
  36838. fi
  36839. if test "$USE_MANUAL" = "1"; then
  36840. cat >>confdefs.h <<\_ACEOF
  36841. #define USE_MANUAL 1
  36842. _ACEOF
  36843. curl_manual_msg="enabled"
  36844. fi
  36845. if test x"$USE_MANUAL" = x1; then
  36846. USE_MANUAL_TRUE=
  36847. USE_MANUAL_FALSE='#'
  36848. else
  36849. USE_MANUAL_TRUE='#'
  36850. USE_MANUAL_FALSE=
  36851. fi
  36852. { echo "$as_me:$LINENO: checking whether to enable c-ares" >&5
  36853. echo $ECHO_N "checking whether to enable c-ares... $ECHO_C" >&6; }
  36854. # Check whether --enable-ares was given.
  36855. if test "${enable_ares+set}" = set; then
  36856. enableval=$enable_ares; case "$enableval" in
  36857. no)
  36858. { echo "$as_me:$LINENO: result: no" >&5
  36859. echo "${ECHO_T}no" >&6; }
  36860. ;;
  36861. *) { echo "$as_me:$LINENO: result: yes" >&5
  36862. echo "${ECHO_T}yes" >&6; }
  36863. if test "x$IPV6_ENABLED" = "x1"; then
  36864. { echo "$as_me:$LINENO: c-ares may not work properly with ipv6" >&5
  36865. echo "$as_me: c-ares may not work properly with ipv6" >&6;}
  36866. fi
  36867. cat >>confdefs.h <<\_ACEOF
  36868. #define USE_ARES 1
  36869. _ACEOF
  36870. HAVE_ARES="1"
  36871. curl_ares_msg="enabled"
  36872. LIBS="-lcares $LIBS"
  36873. if test "x$enableval" = "xyes" ; then
  36874. if test -d "$srcdir/ares"; then
  36875. aresembedded="yes"
  36876. subdirs="$subdirs ares"
  36877. aresinc=`cd $srcdir/ares && pwd`
  36878. CPPFLAGS="$CPPFLAGS -I$aresinc"
  36879. pwd=`pwd`
  36880. LDFLAGS="$LDFLAGS -L$pwd/ares"
  36881. fi
  36882. else
  36883. CPPFLAGS="$CPPFLAGS -I$enableval/include"
  36884. LDFLAGS="$LDFLAGS -L$enableval/lib"
  36885. fi
  36886. if test -z "$aresembedded"; then
  36887. { echo "$as_me:$LINENO: checking that c-ares is good and recent enough" >&5
  36888. echo $ECHO_N "checking that c-ares is good and recent enough... $ECHO_C" >&6; }
  36889. cat >conftest.$ac_ext <<_ACEOF
  36890. /* confdefs.h. */
  36891. _ACEOF
  36892. cat confdefs.h >>conftest.$ac_ext
  36893. cat >>conftest.$ac_ext <<_ACEOF
  36894. /* end confdefs.h. */
  36895. #include <ares.h>
  36896. /* set of dummy functions in case c-ares was built with debug */
  36897. void curl_dofree() { }
  36898. void curl_sclose() { }
  36899. void curl_domalloc() { }
  36900. void curl_docalloc() { }
  36901. void curl_socket() { }
  36902. int
  36903. main ()
  36904. {
  36905. ares_channel channel;
  36906. ares_cancel(channel); /* added in 1.2.0 */
  36907. ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
  36908. ;
  36909. return 0;
  36910. }
  36911. _ACEOF
  36912. rm -f conftest.$ac_objext conftest$ac_exeext
  36913. if { (ac_try="$ac_link"
  36914. case "(($ac_try" in
  36915. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36916. *) ac_try_echo=$ac_try;;
  36917. esac
  36918. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  36919. (eval "$ac_link") 2>conftest.er1
  36920. ac_status=$?
  36921. grep -v '^ *+' conftest.er1 >conftest.err
  36922. rm -f conftest.er1
  36923. cat conftest.err >&5
  36924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36925. (exit $ac_status); } && {
  36926. test -z "$ac_c_werror_flag" ||
  36927. test ! -s conftest.err
  36928. } && test -s conftest$ac_exeext &&
  36929. $as_test_x conftest$ac_exeext; then
  36930. { echo "$as_me:$LINENO: result: yes" >&5
  36931. echo "${ECHO_T}yes" >&6; }
  36932. else
  36933. echo "$as_me: failed program was:" >&5
  36934. sed 's/^/| /' conftest.$ac_ext >&5
  36935. { echo "$as_me:$LINENO: result: no" >&5
  36936. echo "${ECHO_T}no" >&6; }
  36937. { { echo "$as_me:$LINENO: error: c-ares library defective or too old" >&5
  36938. echo "$as_me: error: c-ares library defective or too old" >&2;}
  36939. { (exit 1); exit 1; }; }
  36940. fi
  36941. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  36942. conftest$ac_exeext conftest.$ac_ext
  36943. fi
  36944. ;;
  36945. esac
  36946. else
  36947. { echo "$as_me:$LINENO: result: no" >&5
  36948. echo "${ECHO_T}no" >&6; }
  36949. fi
  36950. { echo "$as_me:$LINENO: checking whether to enable verbose strings" >&5
  36951. echo $ECHO_N "checking whether to enable verbose strings... $ECHO_C" >&6; }
  36952. # Check whether --enable-verbose was given.
  36953. if test "${enable_verbose+set}" = set; then
  36954. enableval=$enable_verbose; case "$enableval" in
  36955. no)
  36956. { echo "$as_me:$LINENO: result: no" >&5
  36957. echo "${ECHO_T}no" >&6; }
  36958. cat >>confdefs.h <<\_ACEOF
  36959. #define CURL_DISABLE_VERBOSE_STRINGS 1
  36960. _ACEOF
  36961. curl_verbose_msg="no"
  36962. ;;
  36963. *) { echo "$as_me:$LINENO: result: yes" >&5
  36964. echo "${ECHO_T}yes" >&6; }
  36965. ;;
  36966. esac
  36967. else
  36968. { echo "$as_me:$LINENO: result: yes" >&5
  36969. echo "${ECHO_T}yes" >&6; }
  36970. fi
  36971. { echo "$as_me:$LINENO: checking whether to enable SSPI support (Windows native builds only)" >&5
  36972. echo $ECHO_N "checking whether to enable SSPI support (Windows native builds only)... $ECHO_C" >&6; }
  36973. # Check whether --enable-sspi was given.
  36974. if test "${enable_sspi+set}" = set; then
  36975. enableval=$enable_sspi; case "$enableval" in
  36976. yes)
  36977. if test "$ac_cv_native_windows" = "yes"; then
  36978. { echo "$as_me:$LINENO: result: yes" >&5
  36979. echo "${ECHO_T}yes" >&6; }
  36980. cat >>confdefs.h <<\_ACEOF
  36981. #define USE_WINDOWS_SSPI 1
  36982. _ACEOF
  36983. USE_WINDOWS_SSPI=1
  36984. curl_sspi_msg="yes"
  36985. else
  36986. { echo "$as_me:$LINENO: result: no" >&5
  36987. echo "${ECHO_T}no" >&6; }
  36988. { echo "$as_me:$LINENO: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
  36989. echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
  36990. fi
  36991. ;;
  36992. *)
  36993. { echo "$as_me:$LINENO: result: no" >&5
  36994. echo "${ECHO_T}no" >&6; }
  36995. ;;
  36996. esac
  36997. else
  36998. { echo "$as_me:$LINENO: result: no" >&5
  36999. echo "${ECHO_T}no" >&6; }
  37000. fi
  37001. { echo "$as_me:$LINENO: checking whether to enable debug options" >&5
  37002. echo $ECHO_N "checking whether to enable debug options... $ECHO_C" >&6; }
  37003. # Check whether --enable-debug was given.
  37004. if test "${enable_debug+set}" = set; then
  37005. enableval=$enable_debug; case "$enableval" in
  37006. no)
  37007. { echo "$as_me:$LINENO: result: no" >&5
  37008. echo "${ECHO_T}no" >&6; }
  37009. ;;
  37010. *) { echo "$as_me:$LINENO: result: yes" >&5
  37011. echo "${ECHO_T}yes" >&6; }
  37012. CPPFLAGS="$CPPFLAGS -DCURLDEBUG"
  37013. CFLAGS="$CFLAGS -g"
  37014. if test "z$ICC" = "z"; then
  37015. ICC="no"
  37016. { echo "$as_me:$LINENO: checking for icc in use" >&5
  37017. echo $ECHO_N "checking for icc in use... $ECHO_C" >&6; }
  37018. if test "$GCC" = "yes"; then
  37019. cat >conftest.$ac_ext <<_ACEOF
  37020. /* confdefs.h. */
  37021. _ACEOF
  37022. cat confdefs.h >>conftest.$ac_ext
  37023. cat >>conftest.$ac_ext <<_ACEOF
  37024. /* end confdefs.h. */
  37025. __INTEL_COMPILER
  37026. _ACEOF
  37027. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  37028. $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then
  37029. ICC="no"
  37030. else
  37031. ICC="yes"
  37032. { echo "$as_me:$LINENO: result: yes" >&5
  37033. echo "${ECHO_T}yes" >&6; }
  37034. fi
  37035. rm -f conftest*
  37036. fi
  37037. if test "$ICC" = "no"; then
  37038. # this is not ICC
  37039. { echo "$as_me:$LINENO: result: no" >&5
  37040. echo "${ECHO_T}no" >&6; }
  37041. fi
  37042. fi
  37043. if test "$GCC" = "yes"; then
  37044. { echo "$as_me:$LINENO: checking gcc version" >&5
  37045. echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
  37046. gccver=`$CC -dumpversion`
  37047. num1=`echo $gccver | cut -d . -f1`
  37048. num2=`echo $gccver | cut -d . -f2`
  37049. gccnum=`(expr $num1 "*" 100 + $num2) 2>/dev/null`
  37050. { echo "$as_me:$LINENO: result: $gccver" >&5
  37051. echo "${ECHO_T}$gccver" >&6; }
  37052. if test "$ICC" = "yes"; then
  37053. WARN="-wd279,269,981,1418,1419"
  37054. if test "$gccnum" -gt "600"; then
  37055. WARN="-Wall $WARN"
  37056. fi
  37057. else WARN="-W -Wall -Wwrite-strings -pedantic -Wpointer-arith -Wnested-externs -Winline -Wmissing-prototypes"
  37058. if test "$gccnum" -ge "207"; then
  37059. WARN="$WARN -Wmissing-declarations"
  37060. fi
  37061. if test "$gccnum" -gt "295"; then
  37062. WARN="$WARN -Wundef -Wno-long-long -Wsign-compare -Wshadow -Wno-multichar"
  37063. fi
  37064. if test "$gccnum" -ge "296"; then
  37065. WARN="$WARN -Wfloat-equal"
  37066. fi
  37067. if test "$gccnum" -gt "296"; then
  37068. WARN="$WARN -Wno-format-nonliteral"
  37069. fi
  37070. if test "$gccnum" -ge "303"; then
  37071. WARN="$WARN -Wendif-labels -Wstrict-prototypes"
  37072. fi
  37073. if test "$gccnum" -ge "304"; then
  37074. # try these on gcc 3.4
  37075. WARN="$WARN -Wdeclaration-after-statement"
  37076. fi
  37077. for flag in $CPPFLAGS; do
  37078. case "$flag" in
  37079. -I*)
  37080. add=`echo $flag | sed 's/^-I/-isystem /g'`
  37081. WARN="$WARN $add"
  37082. ;;
  37083. esac
  37084. done
  37085. fi
  37086. CFLAGS="$CFLAGS $WARN"
  37087. { echo "$as_me:$LINENO: Added this set of compiler options: $WARN" >&5
  37088. echo "$as_me: Added this set of compiler options: $WARN" >&6;}
  37089. else
  37090. { echo "$as_me:$LINENO: Added no extra compiler options" >&5
  37091. echo "$as_me: Added no extra compiler options" >&6;}
  37092. fi
  37093. NEWFLAGS=""
  37094. for flag in $CFLAGS; do
  37095. case "$flag" in
  37096. -O*)
  37097. ;;
  37098. *)
  37099. NEWFLAGS="$NEWFLAGS $flag"
  37100. ;;
  37101. esac
  37102. done
  37103. CFLAGS=$NEWFLAGS
  37104. ;;
  37105. esac
  37106. else
  37107. { echo "$as_me:$LINENO: result: no" >&5
  37108. echo "${ECHO_T}no" >&6; }
  37109. fi
  37110. { echo "$as_me:$LINENO: checking whether to enable cryptographic authentication methods" >&5
  37111. echo $ECHO_N "checking whether to enable cryptographic authentication methods... $ECHO_C" >&6; }
  37112. # Check whether --enable-crypto-auth was given.
  37113. if test "${enable_crypto_auth+set}" = set; then
  37114. enableval=$enable_crypto_auth; case "$enableval" in
  37115. no)
  37116. { echo "$as_me:$LINENO: result: no" >&5
  37117. echo "${ECHO_T}no" >&6; }
  37118. cat >>confdefs.h <<\_ACEOF
  37119. #define CURL_DISABLE_CRYPTO_AUTH 1
  37120. _ACEOF
  37121. ;;
  37122. *) { echo "$as_me:$LINENO: result: yes" >&5
  37123. echo "${ECHO_T}yes" >&6; }
  37124. ;;
  37125. esac
  37126. else
  37127. { echo "$as_me:$LINENO: result: yes" >&5
  37128. echo "${ECHO_T}yes" >&6; }
  37129. fi
  37130. { echo "$as_me:$LINENO: checking whether to enable support for cookies" >&5
  37131. echo $ECHO_N "checking whether to enable support for cookies... $ECHO_C" >&6; }
  37132. # Check whether --enable-cookies was given.
  37133. if test "${enable_cookies+set}" = set; then
  37134. enableval=$enable_cookies; case "$enableval" in
  37135. no)
  37136. { echo "$as_me:$LINENO: result: no" >&5
  37137. echo "${ECHO_T}no" >&6; }
  37138. cat >>confdefs.h <<\_ACEOF
  37139. #define CURL_DISABLE_COOKIES 1
  37140. _ACEOF
  37141. ;;
  37142. *) { echo "$as_me:$LINENO: result: yes" >&5
  37143. echo "${ECHO_T}yes" >&6; }
  37144. ;;
  37145. esac
  37146. else
  37147. { echo "$as_me:$LINENO: result: yes" >&5
  37148. echo "${ECHO_T}yes" >&6; }
  37149. fi
  37150. { echo "$as_me:$LINENO: checking whether to enable hidden symbols in the library" >&5
  37151. echo $ECHO_N "checking whether to enable hidden symbols in the library... $ECHO_C" >&6; }
  37152. # Check whether --enable-hidden-symbols was given.
  37153. if test "${enable_hidden_symbols+set}" = set; then
  37154. enableval=$enable_hidden_symbols; case "$enableval" in
  37155. no)
  37156. { echo "$as_me:$LINENO: result: no" >&5
  37157. echo "${ECHO_T}no" >&6; }
  37158. ;;
  37159. *)
  37160. { echo "$as_me:$LINENO: checking whether $CC supports it" >&5
  37161. echo $ECHO_N "checking whether $CC supports it... $ECHO_C" >&6; }
  37162. if test "$GCC" = yes ; then
  37163. if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
  37164. { echo "$as_me:$LINENO: result: yes" >&5
  37165. echo "${ECHO_T}yes" >&6; }
  37166. cat >>confdefs.h <<\_ACEOF
  37167. #define CURL_HIDDEN_SYMBOLS 1
  37168. _ACEOF
  37169. cat >>confdefs.h <<\_ACEOF
  37170. #define CURL_EXTERN_SYMBOL __attribute__ ((visibility ("default")))
  37171. _ACEOF
  37172. CFLAGS="$CFLAGS -fvisibility=hidden"
  37173. else
  37174. { echo "$as_me:$LINENO: result: no" >&5
  37175. echo "${ECHO_T}no" >&6; }
  37176. fi
  37177. else
  37178. if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
  37179. { echo "$as_me:$LINENO: result: yes" >&5
  37180. echo "${ECHO_T}yes" >&6; }
  37181. cat >>confdefs.h <<\_ACEOF
  37182. #define CURL_HIDDEN_SYMBOLS 1
  37183. _ACEOF
  37184. cat >>confdefs.h <<\_ACEOF
  37185. #define CURL_EXTERN_SYMBOL __global
  37186. _ACEOF
  37187. CFLAGS="$CFLAGS -xldscope=hidden"
  37188. else
  37189. { echo "$as_me:$LINENO: result: no" >&5
  37190. echo "${ECHO_T}no" >&6; }
  37191. fi
  37192. fi
  37193. ;;
  37194. esac
  37195. else
  37196. { echo "$as_me:$LINENO: result: no" >&5
  37197. echo "${ECHO_T}no" >&6; }
  37198. fi
  37199. { echo "$as_me:$LINENO: checking whether to enforce SONAME bump" >&5
  37200. echo $ECHO_N "checking whether to enforce SONAME bump... $ECHO_C" >&6; }
  37201. # Check whether --enable-soname-bump was given.
  37202. if test "${enable_soname_bump+set}" = set; then
  37203. enableval=$enable_soname_bump; case "$enableval" in
  37204. yes) { echo "$as_me:$LINENO: result: yes" >&5
  37205. echo "${ECHO_T}yes" >&6; }
  37206. soname_bump=yes
  37207. ;;
  37208. *)
  37209. { echo "$as_me:$LINENO: result: no" >&5
  37210. echo "${ECHO_T}no" >&6; }
  37211. ;;
  37212. esac
  37213. else
  37214. { echo "$as_me:$LINENO: result: $soname_bump" >&5
  37215. echo "${ECHO_T}$soname_bump" >&6; }
  37216. fi
  37217. if test x$soname_bump = xyes; then
  37218. SONAME_BUMP_TRUE=
  37219. SONAME_BUMP_FALSE='#'
  37220. else
  37221. SONAME_BUMP_TRUE='#'
  37222. SONAME_BUMP_FALSE=
  37223. fi
  37224. if test ! -z "$winsock_LIB"; then
  37225. LIBS="$LIBS $winsock_LIB"
  37226. TEST_SERVER_LIBS="$TEST_SERVER_LIBS $winsock_LIB"
  37227. fi
  37228. LIBCURL_LIBS=$LIBS
  37229. LIBS=$ALL_LIBS
  37230. if test x$cross_compiling = xyes; then
  37231. CROSSCOMPILING_TRUE=
  37232. CROSSCOMPILING_FALSE='#'
  37233. else
  37234. CROSSCOMPILING_TRUE='#'
  37235. CROSSCOMPILING_FALSE=
  37236. fi
  37237. 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 packages/AIX/Makefile packages/AIX/RPM/Makefile packages/AIX/RPM/curl.spec curl-config libcurl.pc"
  37238. cat >confcache <<\_ACEOF
  37239. # This file is a shell script that caches the results of configure
  37240. # tests run on this system so they can be shared between configure
  37241. # scripts and configure runs, see configure's option --config-cache.
  37242. # It is not useful on other systems. If it contains results you don't
  37243. # want to keep, you may remove or edit it.
  37244. #
  37245. # config.status only pays attention to the cache file if you give it
  37246. # the --recheck option to rerun configure.
  37247. #
  37248. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  37249. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  37250. # following values.
  37251. _ACEOF
  37252. # The following way of writing the cache mishandles newlines in values,
  37253. # but we know of no workaround that is simple, portable, and efficient.
  37254. # So, we kill variables containing newlines.
  37255. # Ultrix sh set writes to stderr and can't be redirected directly,
  37256. # and sets the high bit in the cache file unless we assign to the vars.
  37257. (
  37258. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  37259. eval ac_val=\$$ac_var
  37260. case $ac_val in #(
  37261. *${as_nl}*)
  37262. case $ac_var in #(
  37263. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  37264. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  37265. esac
  37266. case $ac_var in #(
  37267. _ | IFS | as_nl) ;; #(
  37268. *) $as_unset $ac_var ;;
  37269. esac ;;
  37270. esac
  37271. done
  37272. (set) 2>&1 |
  37273. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  37274. *${as_nl}ac_space=\ *)
  37275. # `set' does not quote correctly, so add quotes (double-quote
  37276. # substitution turns \\\\ into \\, and sed turns \\ into \).
  37277. sed -n \
  37278. "s/'/'\\\\''/g;
  37279. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  37280. ;; #(
  37281. *)
  37282. # `set' quotes correctly as required by POSIX, so do not add quotes.
  37283. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  37284. ;;
  37285. esac |
  37286. sort
  37287. ) |
  37288. sed '
  37289. /^ac_cv_env_/b end
  37290. t clear
  37291. :clear
  37292. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  37293. t end
  37294. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  37295. :end' >>confcache
  37296. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  37297. if test -w "$cache_file"; then
  37298. test "x$cache_file" != "x/dev/null" &&
  37299. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  37300. echo "$as_me: updating cache $cache_file" >&6;}
  37301. cat confcache >$cache_file
  37302. else
  37303. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  37304. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  37305. fi
  37306. fi
  37307. rm -f confcache
  37308. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  37309. # Let make expand exec_prefix.
  37310. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  37311. DEFS=-DHAVE_CONFIG_H
  37312. ac_libobjs=
  37313. ac_ltlibobjs=
  37314. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  37315. # 1. Remove the extension, and $U if already installed.
  37316. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  37317. ac_i=`echo "$ac_i" | sed "$ac_script"`
  37318. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  37319. # will be set to the directory where LIBOBJS objects are built.
  37320. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  37321. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  37322. done
  37323. LIBOBJS=$ac_libobjs
  37324. LTLIBOBJS=$ac_ltlibobjs
  37325. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  37326. { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  37327. Usually this means the macro was only invoked conditionally." >&5
  37328. echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  37329. Usually this means the macro was only invoked conditionally." >&2;}
  37330. { (exit 1); exit 1; }; }
  37331. fi
  37332. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  37333. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  37334. Usually this means the macro was only invoked conditionally." >&5
  37335. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  37336. Usually this means the macro was only invoked conditionally." >&2;}
  37337. { (exit 1); exit 1; }; }
  37338. fi
  37339. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  37340. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  37341. Usually this means the macro was only invoked conditionally." >&5
  37342. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  37343. Usually this means the macro was only invoked conditionally." >&2;}
  37344. { (exit 1); exit 1; }; }
  37345. fi
  37346. if test -z "${NO_UNDEFINED_TRUE}" && test -z "${NO_UNDEFINED_FALSE}"; then
  37347. { { echo "$as_me:$LINENO: error: conditional \"NO_UNDEFINED\" was never defined.
  37348. Usually this means the macro was only invoked conditionally." >&5
  37349. echo "$as_me: error: conditional \"NO_UNDEFINED\" was never defined.
  37350. Usually this means the macro was only invoked conditionally." >&2;}
  37351. { (exit 1); exit 1; }; }
  37352. fi
  37353. if test -z "${MIMPURE_TRUE}" && test -z "${MIMPURE_FALSE}"; then
  37354. { { echo "$as_me:$LINENO: error: conditional \"MIMPURE\" was never defined.
  37355. Usually this means the macro was only invoked conditionally." >&5
  37356. echo "$as_me: error: conditional \"MIMPURE\" was never defined.
  37357. Usually this means the macro was only invoked conditionally." >&2;}
  37358. { (exit 1); exit 1; }; }
  37359. fi
  37360. if test -z "${STATICLIB_TRUE}" && test -z "${STATICLIB_FALSE}"; then
  37361. { { echo "$as_me:$LINENO: error: conditional \"STATICLIB\" was never defined.
  37362. Usually this means the macro was only invoked conditionally." >&5
  37363. echo "$as_me: error: conditional \"STATICLIB\" was never defined.
  37364. Usually this means the macro was only invoked conditionally." >&2;}
  37365. { (exit 1); exit 1; }; }
  37366. fi
  37367. if test -z "${STATICLIB_TRUE}" && test -z "${STATICLIB_FALSE}"; then
  37368. { { echo "$as_me:$LINENO: error: conditional \"STATICLIB\" was never defined.
  37369. Usually this means the macro was only invoked conditionally." >&5
  37370. echo "$as_me: error: conditional \"STATICLIB\" was never defined.
  37371. Usually this means the macro was only invoked conditionally." >&2;}
  37372. { (exit 1); exit 1; }; }
  37373. fi
  37374. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  37375. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBZ\" was never defined.
  37376. Usually this means the macro was only invoked conditionally." >&5
  37377. echo "$as_me: error: conditional \"HAVE_LIBZ\" was never defined.
  37378. Usually this means the macro was only invoked conditionally." >&2;}
  37379. { (exit 1); exit 1; }; }
  37380. fi
  37381. if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
  37382. { { echo "$as_me:$LINENO: error: conditional \"USE_MANUAL\" was never defined.
  37383. Usually this means the macro was only invoked conditionally." >&5
  37384. echo "$as_me: error: conditional \"USE_MANUAL\" was never defined.
  37385. Usually this means the macro was only invoked conditionally." >&2;}
  37386. { (exit 1); exit 1; }; }
  37387. fi
  37388. if test -z "${SONAME_BUMP_TRUE}" && test -z "${SONAME_BUMP_FALSE}"; then
  37389. { { echo "$as_me:$LINENO: error: conditional \"SONAME_BUMP\" was never defined.
  37390. Usually this means the macro was only invoked conditionally." >&5
  37391. echo "$as_me: error: conditional \"SONAME_BUMP\" was never defined.
  37392. Usually this means the macro was only invoked conditionally." >&2;}
  37393. { (exit 1); exit 1; }; }
  37394. fi
  37395. if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
  37396. { { echo "$as_me:$LINENO: error: conditional \"CROSSCOMPILING\" was never defined.
  37397. Usually this means the macro was only invoked conditionally." >&5
  37398. echo "$as_me: error: conditional \"CROSSCOMPILING\" was never defined.
  37399. Usually this means the macro was only invoked conditionally." >&2;}
  37400. { (exit 1); exit 1; }; }
  37401. fi
  37402. : ${CONFIG_STATUS=./config.status}
  37403. ac_clean_files_save=$ac_clean_files
  37404. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  37405. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  37406. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  37407. cat >$CONFIG_STATUS <<_ACEOF
  37408. #! $SHELL
  37409. # Generated by $as_me.
  37410. # Run this file to recreate the current configuration.
  37411. # Compiler output produced by configure, useful for debugging
  37412. # configure, is in config.log if it exists.
  37413. debug=false
  37414. ac_cs_recheck=false
  37415. ac_cs_silent=false
  37416. SHELL=\${CONFIG_SHELL-$SHELL}
  37417. _ACEOF
  37418. cat >>$CONFIG_STATUS <<\_ACEOF
  37419. ## --------------------- ##
  37420. ## M4sh Initialization. ##
  37421. ## --------------------- ##
  37422. # Be more Bourne compatible
  37423. DUALCASE=1; export DUALCASE # for MKS sh
  37424. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  37425. emulate sh
  37426. NULLCMD=:
  37427. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  37428. # is contrary to our usage. Disable this feature.
  37429. alias -g '${1+"$@"}'='"$@"'
  37430. setopt NO_GLOB_SUBST
  37431. else
  37432. case `(set -o) 2>/dev/null` in
  37433. *posix*) set -o posix ;;
  37434. esac
  37435. fi
  37436. # PATH needs CR
  37437. # Avoid depending upon Character Ranges.
  37438. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  37439. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  37440. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  37441. as_cr_digits='0123456789'
  37442. as_cr_alnum=$as_cr_Letters$as_cr_digits
  37443. # The user is always right.
  37444. if test "${PATH_SEPARATOR+set}" != set; then
  37445. echo "#! /bin/sh" >conf$$.sh
  37446. echo "exit 0" >>conf$$.sh
  37447. chmod +x conf$$.sh
  37448. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  37449. PATH_SEPARATOR=';'
  37450. else
  37451. PATH_SEPARATOR=:
  37452. fi
  37453. rm -f conf$$.sh
  37454. fi
  37455. # Support unset when possible.
  37456. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  37457. as_unset=unset
  37458. else
  37459. as_unset=false
  37460. fi
  37461. # IFS
  37462. # We need space, tab and new line, in precisely that order. Quoting is
  37463. # there to prevent editors from complaining about space-tab.
  37464. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  37465. # splitting by setting IFS to empty value.)
  37466. as_nl='
  37467. '
  37468. IFS=" "" $as_nl"
  37469. # Find who we are. Look in the path if we contain no directory separator.
  37470. case $0 in
  37471. *[\\/]* ) as_myself=$0 ;;
  37472. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  37473. for as_dir in $PATH
  37474. do
  37475. IFS=$as_save_IFS
  37476. test -z "$as_dir" && as_dir=.
  37477. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  37478. done
  37479. IFS=$as_save_IFS
  37480. ;;
  37481. esac
  37482. # We did not find ourselves, most probably we were run as `sh COMMAND'
  37483. # in which case we are not to be found in the path.
  37484. if test "x$as_myself" = x; then
  37485. as_myself=$0
  37486. fi
  37487. if test ! -f "$as_myself"; then
  37488. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  37489. { (exit 1); exit 1; }
  37490. fi
  37491. # Work around bugs in pre-3.0 UWIN ksh.
  37492. for as_var in ENV MAIL MAILPATH
  37493. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  37494. done
  37495. PS1='$ '
  37496. PS2='> '
  37497. PS4='+ '
  37498. # NLS nuisances.
  37499. for as_var in \
  37500. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  37501. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  37502. LC_TELEPHONE LC_TIME
  37503. do
  37504. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  37505. eval $as_var=C; export $as_var
  37506. else
  37507. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  37508. fi
  37509. done
  37510. # Required to use basename.
  37511. if expr a : '\(a\)' >/dev/null 2>&1 &&
  37512. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  37513. as_expr=expr
  37514. else
  37515. as_expr=false
  37516. fi
  37517. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  37518. as_basename=basename
  37519. else
  37520. as_basename=false
  37521. fi
  37522. # Name of the executable.
  37523. as_me=`$as_basename -- "$0" ||
  37524. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  37525. X"$0" : 'X\(//\)$' \| \
  37526. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  37527. echo X/"$0" |
  37528. sed '/^.*\/\([^/][^/]*\)\/*$/{
  37529. s//\1/
  37530. q
  37531. }
  37532. /^X\/\(\/\/\)$/{
  37533. s//\1/
  37534. q
  37535. }
  37536. /^X\/\(\/\).*/{
  37537. s//\1/
  37538. q
  37539. }
  37540. s/.*/./; q'`
  37541. # CDPATH.
  37542. $as_unset CDPATH
  37543. as_lineno_1=$LINENO
  37544. as_lineno_2=$LINENO
  37545. test "x$as_lineno_1" != "x$as_lineno_2" &&
  37546. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  37547. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  37548. # uniformly replaced by the line number. The first 'sed' inserts a
  37549. # line-number line after each line using $LINENO; the second 'sed'
  37550. # does the real work. The second script uses 'N' to pair each
  37551. # line-number line with the line containing $LINENO, and appends
  37552. # trailing '-' during substitution so that $LINENO is not a special
  37553. # case at line end.
  37554. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  37555. # scripts with optimization help from Paolo Bonzini. Blame Lee
  37556. # E. McMahon (1931-1989) for sed's syntax. :-)
  37557. sed -n '
  37558. p
  37559. /[$]LINENO/=
  37560. ' <$as_myself |
  37561. sed '
  37562. s/[$]LINENO.*/&-/
  37563. t lineno
  37564. b
  37565. :lineno
  37566. N
  37567. :loop
  37568. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  37569. t loop
  37570. s/-\n.*//
  37571. ' >$as_me.lineno &&
  37572. chmod +x "$as_me.lineno" ||
  37573. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  37574. { (exit 1); exit 1; }; }
  37575. # Don't try to exec as it changes $[0], causing all sort of problems
  37576. # (the dirname of $[0] is not the place where we might find the
  37577. # original and so on. Autoconf is especially sensitive to this).
  37578. . "./$as_me.lineno"
  37579. # Exit status is that of the last command.
  37580. exit
  37581. }
  37582. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  37583. as_dirname=dirname
  37584. else
  37585. as_dirname=false
  37586. fi
  37587. ECHO_C= ECHO_N= ECHO_T=
  37588. case `echo -n x` in
  37589. -n*)
  37590. case `echo 'x\c'` in
  37591. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  37592. *) ECHO_C='\c';;
  37593. esac;;
  37594. *)
  37595. ECHO_N='-n';;
  37596. esac
  37597. if expr a : '\(a\)' >/dev/null 2>&1 &&
  37598. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  37599. as_expr=expr
  37600. else
  37601. as_expr=false
  37602. fi
  37603. rm -f conf$$ conf$$.exe conf$$.file
  37604. if test -d conf$$.dir; then
  37605. rm -f conf$$.dir/conf$$.file
  37606. else
  37607. rm -f conf$$.dir
  37608. mkdir conf$$.dir
  37609. fi
  37610. echo >conf$$.file
  37611. if ln -s conf$$.file conf$$ 2>/dev/null; then
  37612. as_ln_s='ln -s'
  37613. # ... but there are two gotchas:
  37614. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  37615. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  37616. # In both cases, we have to default to `cp -p'.
  37617. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  37618. as_ln_s='cp -p'
  37619. elif ln conf$$.file conf$$ 2>/dev/null; then
  37620. as_ln_s=ln
  37621. else
  37622. as_ln_s='cp -p'
  37623. fi
  37624. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  37625. rmdir conf$$.dir 2>/dev/null
  37626. if mkdir -p . 2>/dev/null; then
  37627. as_mkdir_p=:
  37628. else
  37629. test -d ./-p && rmdir ./-p
  37630. as_mkdir_p=false
  37631. fi
  37632. if test -x / >/dev/null 2>&1; then
  37633. as_test_x='test -x'
  37634. else
  37635. if ls -dL / >/dev/null 2>&1; then
  37636. as_ls_L_option=L
  37637. else
  37638. as_ls_L_option=
  37639. fi
  37640. as_test_x='
  37641. eval sh -c '\''
  37642. if test -d "$1"; then
  37643. test -d "$1/.";
  37644. else
  37645. case $1 in
  37646. -*)set "./$1";;
  37647. esac;
  37648. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  37649. ???[sx]*):;;*)false;;esac;fi
  37650. '\'' sh
  37651. '
  37652. fi
  37653. as_executable_p=$as_test_x
  37654. # Sed expression to map a string onto a valid CPP name.
  37655. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  37656. # Sed expression to map a string onto a valid variable name.
  37657. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  37658. exec 6>&1
  37659. # Save the log message, to keep $[0] and so on meaningful, and to
  37660. # report actual input values of CONFIG_FILES etc. instead of their
  37661. # values after options handling.
  37662. ac_log="
  37663. This file was extended by curl $as_me -, which was
  37664. generated by GNU Autoconf 2.61. Invocation command line was
  37665. CONFIG_FILES = $CONFIG_FILES
  37666. CONFIG_HEADERS = $CONFIG_HEADERS
  37667. CONFIG_LINKS = $CONFIG_LINKS
  37668. CONFIG_COMMANDS = $CONFIG_COMMANDS
  37669. $ $0 $@
  37670. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  37671. "
  37672. _ACEOF
  37673. cat >>$CONFIG_STATUS <<_ACEOF
  37674. # Files that config.status was made for.
  37675. config_files="$ac_config_files"
  37676. config_headers="$ac_config_headers"
  37677. config_commands="$ac_config_commands"
  37678. _ACEOF
  37679. cat >>$CONFIG_STATUS <<\_ACEOF
  37680. ac_cs_usage="\
  37681. \`$as_me' instantiates files from templates according to the
  37682. current configuration.
  37683. Usage: $0 [OPTIONS] [FILE]...
  37684. -h, --help print this help, then exit
  37685. -V, --version print version number and configuration settings, then exit
  37686. -q, --quiet do not print progress messages
  37687. -d, --debug don't remove temporary files
  37688. --recheck update $as_me by reconfiguring in the same conditions
  37689. --file=FILE[:TEMPLATE]
  37690. instantiate the configuration file FILE
  37691. --header=FILE[:TEMPLATE]
  37692. instantiate the configuration header FILE
  37693. Configuration files:
  37694. $config_files
  37695. Configuration headers:
  37696. $config_headers
  37697. Configuration commands:
  37698. $config_commands
  37699. Report bugs to <[email protected]>."
  37700. _ACEOF
  37701. cat >>$CONFIG_STATUS <<_ACEOF
  37702. ac_cs_version="\\
  37703. curl config.status -
  37704. configured by $0, generated by GNU Autoconf 2.61,
  37705. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  37706. Copyright (C) 2006 Free Software Foundation, Inc.
  37707. This config.status script is free software; the Free Software Foundation
  37708. gives unlimited permission to copy, distribute and modify it."
  37709. ac_pwd='$ac_pwd'
  37710. srcdir='$srcdir'
  37711. INSTALL='$INSTALL'
  37712. _ACEOF
  37713. cat >>$CONFIG_STATUS <<\_ACEOF
  37714. # If no file are specified by the user, then we need to provide default
  37715. # value. By we need to know if files were specified by the user.
  37716. ac_need_defaults=:
  37717. while test $# != 0
  37718. do
  37719. case $1 in
  37720. --*=*)
  37721. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  37722. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  37723. ac_shift=:
  37724. ;;
  37725. *)
  37726. ac_option=$1
  37727. ac_optarg=$2
  37728. ac_shift=shift
  37729. ;;
  37730. esac
  37731. case $ac_option in
  37732. # Handling of the options.
  37733. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  37734. ac_cs_recheck=: ;;
  37735. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  37736. echo "$ac_cs_version"; exit ;;
  37737. --debug | --debu | --deb | --de | --d | -d )
  37738. debug=: ;;
  37739. --file | --fil | --fi | --f )
  37740. $ac_shift
  37741. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  37742. ac_need_defaults=false;;
  37743. --header | --heade | --head | --hea )
  37744. $ac_shift
  37745. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  37746. ac_need_defaults=false;;
  37747. --he | --h)
  37748. # Conflict between --help and --header
  37749. { echo "$as_me: error: ambiguous option: $1
  37750. Try \`$0 --help' for more information." >&2
  37751. { (exit 1); exit 1; }; };;
  37752. --help | --hel | -h )
  37753. echo "$ac_cs_usage"; exit ;;
  37754. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  37755. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  37756. ac_cs_silent=: ;;
  37757. # This is an error.
  37758. -*) { echo "$as_me: error: unrecognized option: $1
  37759. Try \`$0 --help' for more information." >&2
  37760. { (exit 1); exit 1; }; } ;;
  37761. *) ac_config_targets="$ac_config_targets $1"
  37762. ac_need_defaults=false ;;
  37763. esac
  37764. shift
  37765. done
  37766. ac_configure_extra_args=
  37767. if $ac_cs_silent; then
  37768. exec 6>/dev/null
  37769. ac_configure_extra_args="$ac_configure_extra_args --silent"
  37770. fi
  37771. _ACEOF
  37772. cat >>$CONFIG_STATUS <<_ACEOF
  37773. if \$ac_cs_recheck; then
  37774. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  37775. CONFIG_SHELL=$SHELL
  37776. export CONFIG_SHELL
  37777. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  37778. fi
  37779. _ACEOF
  37780. cat >>$CONFIG_STATUS <<\_ACEOF
  37781. exec 5>>config.log
  37782. {
  37783. echo
  37784. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  37785. ## Running $as_me. ##
  37786. _ASBOX
  37787. echo "$ac_log"
  37788. } >&5
  37789. _ACEOF
  37790. cat >>$CONFIG_STATUS <<_ACEOF
  37791. #
  37792. # INIT-COMMANDS
  37793. #
  37794. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  37795. _ACEOF
  37796. cat >>$CONFIG_STATUS <<\_ACEOF
  37797. # Handling of arguments.
  37798. for ac_config_target in $ac_config_targets
  37799. do
  37800. case $ac_config_target in
  37801. "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
  37802. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  37803. "include/curl/curlbuild.h") CONFIG_HEADERS="$CONFIG_HEADERS include/curl/curlbuild.h" ;;
  37804. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  37805. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  37806. "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  37807. "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
  37808. "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
  37809. "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  37810. "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
  37811. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  37812. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  37813. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  37814. "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
  37815. "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
  37816. "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
  37817. "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
  37818. "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
  37819. "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
  37820. "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
  37821. "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
  37822. "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
  37823. "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
  37824. "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
  37825. "packages/DOS/Makefile") CONFIG_FILES="$CONFIG_FILES packages/DOS/Makefile" ;;
  37826. "packages/EPM/curl.list") CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
  37827. "packages/EPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
  37828. "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
  37829. "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;;
  37830. "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;;
  37831. "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;;
  37832. "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
  37833. "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
  37834. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  37835. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  37836. { (exit 1); exit 1; }; };;
  37837. esac
  37838. done
  37839. # If the user did not use the arguments to specify the items to instantiate,
  37840. # then the envvar interface is used. Set only those that are not.
  37841. # We use the long form for the default assignment because of an extremely
  37842. # bizarre bug on SunOS 4.1.3.
  37843. if $ac_need_defaults; then
  37844. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  37845. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  37846. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  37847. fi
  37848. # Have a temporary directory for convenience. Make it in the build tree
  37849. # simply because there is no reason against having it here, and in addition,
  37850. # creating and moving files from /tmp can sometimes cause problems.
  37851. # Hook for its removal unless debugging.
  37852. # Note that there is a small window in which the directory will not be cleaned:
  37853. # after its creation but before its name has been assigned to `$tmp'.
  37854. $debug ||
  37855. {
  37856. tmp=
  37857. trap 'exit_status=$?
  37858. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  37859. ' 0
  37860. trap '{ (exit 1); exit 1; }' 1 2 13 15
  37861. }
  37862. # Create a (secure) tmp directory for tmp files.
  37863. {
  37864. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  37865. test -n "$tmp" && test -d "$tmp"
  37866. } ||
  37867. {
  37868. tmp=./conf$$-$RANDOM
  37869. (umask 077 && mkdir "$tmp")
  37870. } ||
  37871. {
  37872. echo "$me: cannot create a temporary directory in ." >&2
  37873. { (exit 1); exit 1; }
  37874. }
  37875. #
  37876. # Set up the sed scripts for CONFIG_FILES section.
  37877. #
  37878. # No need to generate the scripts if there are no CONFIG_FILES.
  37879. # This happens for instance when ./config.status config.h
  37880. if test -n "$CONFIG_FILES"; then
  37881. _ACEOF
  37882. ac_delim='%!_!# '
  37883. for ac_last_try in false false false false false :; do
  37884. cat >conf$$subs.sed <<_ACEOF
  37885. SHELL!$SHELL$ac_delim
  37886. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  37887. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  37888. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  37889. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  37890. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  37891. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  37892. exec_prefix!$exec_prefix$ac_delim
  37893. prefix!$prefix$ac_delim
  37894. program_transform_name!$program_transform_name$ac_delim
  37895. bindir!$bindir$ac_delim
  37896. sbindir!$sbindir$ac_delim
  37897. libexecdir!$libexecdir$ac_delim
  37898. datarootdir!$datarootdir$ac_delim
  37899. datadir!$datadir$ac_delim
  37900. sysconfdir!$sysconfdir$ac_delim
  37901. sharedstatedir!$sharedstatedir$ac_delim
  37902. localstatedir!$localstatedir$ac_delim
  37903. includedir!$includedir$ac_delim
  37904. oldincludedir!$oldincludedir$ac_delim
  37905. docdir!$docdir$ac_delim
  37906. infodir!$infodir$ac_delim
  37907. htmldir!$htmldir$ac_delim
  37908. dvidir!$dvidir$ac_delim
  37909. pdfdir!$pdfdir$ac_delim
  37910. psdir!$psdir$ac_delim
  37911. libdir!$libdir$ac_delim
  37912. localedir!$localedir$ac_delim
  37913. mandir!$mandir$ac_delim
  37914. DEFS!$DEFS$ac_delim
  37915. ECHO_C!$ECHO_C$ac_delim
  37916. ECHO_N!$ECHO_N$ac_delim
  37917. ECHO_T!$ECHO_T$ac_delim
  37918. LIBS!$LIBS$ac_delim
  37919. build_alias!$build_alias$ac_delim
  37920. host_alias!$host_alias$ac_delim
  37921. target_alias!$target_alias$ac_delim
  37922. MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
  37923. MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
  37924. MAINT!$MAINT$ac_delim
  37925. SED!$SED$ac_delim
  37926. GREP!$GREP$ac_delim
  37927. EGREP!$EGREP$ac_delim
  37928. AR!$AR$ac_delim
  37929. libext!$libext$ac_delim
  37930. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  37931. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  37932. INSTALL_DATA!$INSTALL_DATA$ac_delim
  37933. CYGPATH_W!$CYGPATH_W$ac_delim
  37934. PACKAGE!$PACKAGE$ac_delim
  37935. VERSION!$VERSION$ac_delim
  37936. ACLOCAL!$ACLOCAL$ac_delim
  37937. AUTOCONF!$AUTOCONF$ac_delim
  37938. AUTOMAKE!$AUTOMAKE$ac_delim
  37939. AUTOHEADER!$AUTOHEADER$ac_delim
  37940. MAKEINFO!$MAKEINFO$ac_delim
  37941. install_sh!$install_sh$ac_delim
  37942. STRIP!$STRIP$ac_delim
  37943. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  37944. mkdir_p!$mkdir_p$ac_delim
  37945. AWK!$AWK$ac_delim
  37946. SET_MAKE!$SET_MAKE$ac_delim
  37947. am__leading_dot!$am__leading_dot$ac_delim
  37948. AMTAR!$AMTAR$ac_delim
  37949. am__tar!$am__tar$ac_delim
  37950. am__untar!$am__untar$ac_delim
  37951. VERSIONNUM!$VERSIONNUM$ac_delim
  37952. PKGADD_PKG!$PKGADD_PKG$ac_delim
  37953. PKGADD_NAME!$PKGADD_NAME$ac_delim
  37954. PKGADD_VENDOR!$PKGADD_VENDOR$ac_delim
  37955. build!$build$ac_delim
  37956. build_cpu!$build_cpu$ac_delim
  37957. build_vendor!$build_vendor$ac_delim
  37958. build_os!$build_os$ac_delim
  37959. host!$host$ac_delim
  37960. host_cpu!$host_cpu$ac_delim
  37961. host_vendor!$host_vendor$ac_delim
  37962. host_os!$host_os$ac_delim
  37963. CC!$CC$ac_delim
  37964. CFLAGS!$CFLAGS$ac_delim
  37965. LDFLAGS!$LDFLAGS$ac_delim
  37966. CPPFLAGS!$CPPFLAGS$ac_delim
  37967. ac_ct_CC!$ac_ct_CC$ac_delim
  37968. EXEEXT!$EXEEXT$ac_delim
  37969. OBJEXT!$OBJEXT$ac_delim
  37970. DEPDIR!$DEPDIR$ac_delim
  37971. am__include!$am__include$ac_delim
  37972. am__quote!$am__quote$ac_delim
  37973. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  37974. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  37975. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  37976. CCDEPMODE!$CCDEPMODE$ac_delim
  37977. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  37978. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  37979. CPP!$CPP$ac_delim
  37980. LN_S!$LN_S$ac_delim
  37981. ECHO!$ECHO$ac_delim
  37982. _ACEOF
  37983. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  37984. break
  37985. elif $ac_last_try; then
  37986. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  37987. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  37988. { (exit 1); exit 1; }; }
  37989. else
  37990. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  37991. fi
  37992. done
  37993. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  37994. if test -n "$ac_eof"; then
  37995. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  37996. ac_eof=`expr $ac_eof + 1`
  37997. fi
  37998. cat >>$CONFIG_STATUS <<_ACEOF
  37999. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  38000. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  38001. _ACEOF
  38002. sed '
  38003. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  38004. s/^/s,@/; s/!/@,|#_!!_#|/
  38005. :n
  38006. t n
  38007. s/'"$ac_delim"'$/,g/; t
  38008. s/$/\\/; p
  38009. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  38010. ' >>$CONFIG_STATUS <conf$$subs.sed
  38011. rm -f conf$$subs.sed
  38012. cat >>$CONFIG_STATUS <<_ACEOF
  38013. CEOF$ac_eof
  38014. _ACEOF
  38015. ac_delim='%!_!# '
  38016. for ac_last_try in false false false false false :; do
  38017. cat >conf$$subs.sed <<_ACEOF
  38018. RANLIB!$RANLIB$ac_delim
  38019. DSYMUTIL!$DSYMUTIL$ac_delim
  38020. NMEDIT!$NMEDIT$ac_delim
  38021. DLLTOOL!$DLLTOOL$ac_delim
  38022. AS!$AS$ac_delim
  38023. OBJDUMP!$OBJDUMP$ac_delim
  38024. LIBTOOL!$LIBTOOL$ac_delim
  38025. NO_UNDEFINED_TRUE!$NO_UNDEFINED_TRUE$ac_delim
  38026. NO_UNDEFINED_FALSE!$NO_UNDEFINED_FALSE$ac_delim
  38027. MIMPURE_TRUE!$MIMPURE_TRUE$ac_delim
  38028. MIMPURE_FALSE!$MIMPURE_FALSE$ac_delim
  38029. STATICLIB_TRUE!$STATICLIB_TRUE$ac_delim
  38030. STATICLIB_FALSE!$STATICLIB_FALSE$ac_delim
  38031. REQUIRE_LIB_DEPS!$REQUIRE_LIB_DEPS$ac_delim
  38032. CURL_DISABLE_HTTP!$CURL_DISABLE_HTTP$ac_delim
  38033. CURL_DISABLE_FTP!$CURL_DISABLE_FTP$ac_delim
  38034. CURL_DISABLE_FILE!$CURL_DISABLE_FILE$ac_delim
  38035. CURL_DISABLE_LDAP!$CURL_DISABLE_LDAP$ac_delim
  38036. CURL_DISABLE_LDAPS!$CURL_DISABLE_LDAPS$ac_delim
  38037. CURL_DISABLE_DICT!$CURL_DISABLE_DICT$ac_delim
  38038. CURL_DISABLE_TELNET!$CURL_DISABLE_TELNET$ac_delim
  38039. CURL_DISABLE_TFTP!$CURL_DISABLE_TFTP$ac_delim
  38040. KRB4_ENABLED!$KRB4_ENABLED$ac_delim
  38041. PKGCONFIG!$PKGCONFIG$ac_delim
  38042. USE_SSLEAY!$USE_SSLEAY$ac_delim
  38043. HAVE_LIBZ!$HAVE_LIBZ$ac_delim
  38044. HAVE_LIBZ_TRUE!$HAVE_LIBZ_TRUE$ac_delim
  38045. HAVE_LIBZ_FALSE!$HAVE_LIBZ_FALSE$ac_delim
  38046. USE_LIBSSH2!$USE_LIBSSH2$ac_delim
  38047. RANDOM_FILE!$RANDOM_FILE$ac_delim
  38048. USE_GNUTLS!$USE_GNUTLS$ac_delim
  38049. HAVE_PK11_CREATEGENERICOBJECT!$HAVE_PK11_CREATEGENERICOBJECT$ac_delim
  38050. USE_NSS!$USE_NSS$ac_delim
  38051. SSL_ENABLED!$SSL_ENABLED$ac_delim
  38052. CURL_CA_BUNDLE!$CURL_CA_BUNDLE$ac_delim
  38053. IDN_ENABLED!$IDN_ENABLED$ac_delim
  38054. IPV6_ENABLED!$IPV6_ENABLED$ac_delim
  38055. PERL!$PERL$ac_delim
  38056. NROFF!$NROFF$ac_delim
  38057. MANOPT!$MANOPT$ac_delim
  38058. USE_MANUAL_TRUE!$USE_MANUAL_TRUE$ac_delim
  38059. USE_MANUAL_FALSE!$USE_MANUAL_FALSE$ac_delim
  38060. HAVE_ARES!$HAVE_ARES$ac_delim
  38061. subdirs!$subdirs$ac_delim
  38062. USE_WINDOWS_SSPI!$USE_WINDOWS_SSPI$ac_delim
  38063. SONAME_BUMP_TRUE!$SONAME_BUMP_TRUE$ac_delim
  38064. SONAME_BUMP_FALSE!$SONAME_BUMP_FALSE$ac_delim
  38065. LIBCURL_LIBS!$LIBCURL_LIBS$ac_delim
  38066. CURL_LIBS!$CURL_LIBS$ac_delim
  38067. TEST_SERVER_LIBS!$TEST_SERVER_LIBS$ac_delim
  38068. CROSSCOMPILING_TRUE!$CROSSCOMPILING_TRUE$ac_delim
  38069. CROSSCOMPILING_FALSE!$CROSSCOMPILING_FALSE$ac_delim
  38070. LIBOBJS!$LIBOBJS$ac_delim
  38071. LTLIBOBJS!$LTLIBOBJS$ac_delim
  38072. _ACEOF
  38073. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 54; then
  38074. break
  38075. elif $ac_last_try; then
  38076. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  38077. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  38078. { (exit 1); exit 1; }; }
  38079. else
  38080. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  38081. fi
  38082. done
  38083. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  38084. if test -n "$ac_eof"; then
  38085. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  38086. ac_eof=`expr $ac_eof + 1`
  38087. fi
  38088. cat >>$CONFIG_STATUS <<_ACEOF
  38089. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  38090. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  38091. _ACEOF
  38092. sed '
  38093. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  38094. s/^/s,@/; s/!/@,|#_!!_#|/
  38095. :n
  38096. t n
  38097. s/'"$ac_delim"'$/,g/; t
  38098. s/$/\\/; p
  38099. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  38100. ' >>$CONFIG_STATUS <conf$$subs.sed
  38101. rm -f conf$$subs.sed
  38102. cat >>$CONFIG_STATUS <<_ACEOF
  38103. :end
  38104. s/|#_!!_#|//g
  38105. CEOF$ac_eof
  38106. _ACEOF
  38107. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  38108. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  38109. # trailing colons and then remove the whole line if VPATH becomes empty
  38110. # (actually we leave an empty line to preserve line numbers).
  38111. if test "x$srcdir" = x.; then
  38112. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  38113. s/:*\$(srcdir):*/:/
  38114. s/:*\${srcdir}:*/:/
  38115. s/:*@srcdir@:*/:/
  38116. s/^\([^=]*=[ ]*\):*/\1/
  38117. s/:*$//
  38118. s/^[^=]*=[ ]*$//
  38119. }'
  38120. fi
  38121. cat >>$CONFIG_STATUS <<\_ACEOF
  38122. fi # test -n "$CONFIG_FILES"
  38123. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  38124. do
  38125. case $ac_tag in
  38126. :[FHLC]) ac_mode=$ac_tag; continue;;
  38127. esac
  38128. case $ac_mode$ac_tag in
  38129. :[FHL]*:*);;
  38130. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  38131. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  38132. { (exit 1); exit 1; }; };;
  38133. :[FH]-) ac_tag=-:-;;
  38134. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  38135. esac
  38136. ac_save_IFS=$IFS
  38137. IFS=:
  38138. set x $ac_tag
  38139. IFS=$ac_save_IFS
  38140. shift
  38141. ac_file=$1
  38142. shift
  38143. case $ac_mode in
  38144. :L) ac_source=$1;;
  38145. :[FH])
  38146. ac_file_inputs=
  38147. for ac_f
  38148. do
  38149. case $ac_f in
  38150. -) ac_f="$tmp/stdin";;
  38151. *) # Look for the file first in the build tree, then in the source tree
  38152. # (if the path is not absolute). The absolute path cannot be DOS-style,
  38153. # because $ac_f cannot contain `:'.
  38154. test -f "$ac_f" ||
  38155. case $ac_f in
  38156. [\\/$]*) false;;
  38157. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  38158. esac ||
  38159. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  38160. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  38161. { (exit 1); exit 1; }; };;
  38162. esac
  38163. ac_file_inputs="$ac_file_inputs $ac_f"
  38164. done
  38165. # Let's still pretend it is `configure' which instantiates (i.e., don't
  38166. # use $as_me), people would be surprised to read:
  38167. # /* config.h. Generated by config.status. */
  38168. configure_input="Generated from "`IFS=:
  38169. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  38170. if test x"$ac_file" != x-; then
  38171. configure_input="$ac_file. $configure_input"
  38172. { echo "$as_me:$LINENO: creating $ac_file" >&5
  38173. echo "$as_me: creating $ac_file" >&6;}
  38174. fi
  38175. case $ac_tag in
  38176. *:-:* | *:-) cat >"$tmp/stdin";;
  38177. esac
  38178. ;;
  38179. esac
  38180. ac_dir=`$as_dirname -- "$ac_file" ||
  38181. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  38182. X"$ac_file" : 'X\(//\)[^/]' \| \
  38183. X"$ac_file" : 'X\(//\)$' \| \
  38184. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  38185. echo X"$ac_file" |
  38186. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  38187. s//\1/
  38188. q
  38189. }
  38190. /^X\(\/\/\)[^/].*/{
  38191. s//\1/
  38192. q
  38193. }
  38194. /^X\(\/\/\)$/{
  38195. s//\1/
  38196. q
  38197. }
  38198. /^X\(\/\).*/{
  38199. s//\1/
  38200. q
  38201. }
  38202. s/.*/./; q'`
  38203. { as_dir="$ac_dir"
  38204. case $as_dir in #(
  38205. -*) as_dir=./$as_dir;;
  38206. esac
  38207. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  38208. as_dirs=
  38209. while :; do
  38210. case $as_dir in #(
  38211. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  38212. *) as_qdir=$as_dir;;
  38213. esac
  38214. as_dirs="'$as_qdir' $as_dirs"
  38215. as_dir=`$as_dirname -- "$as_dir" ||
  38216. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  38217. X"$as_dir" : 'X\(//\)[^/]' \| \
  38218. X"$as_dir" : 'X\(//\)$' \| \
  38219. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  38220. echo X"$as_dir" |
  38221. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  38222. s//\1/
  38223. q
  38224. }
  38225. /^X\(\/\/\)[^/].*/{
  38226. s//\1/
  38227. q
  38228. }
  38229. /^X\(\/\/\)$/{
  38230. s//\1/
  38231. q
  38232. }
  38233. /^X\(\/\).*/{
  38234. s//\1/
  38235. q
  38236. }
  38237. s/.*/./; q'`
  38238. test -d "$as_dir" && break
  38239. done
  38240. test -z "$as_dirs" || eval "mkdir $as_dirs"
  38241. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  38242. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  38243. { (exit 1); exit 1; }; }; }
  38244. ac_builddir=.
  38245. case "$ac_dir" in
  38246. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  38247. *)
  38248. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  38249. # A ".." for each directory in $ac_dir_suffix.
  38250. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  38251. case $ac_top_builddir_sub in
  38252. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  38253. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  38254. esac ;;
  38255. esac
  38256. ac_abs_top_builddir=$ac_pwd
  38257. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  38258. # for backward compatibility:
  38259. ac_top_builddir=$ac_top_build_prefix
  38260. case $srcdir in
  38261. .) # We are building in place.
  38262. ac_srcdir=.
  38263. ac_top_srcdir=$ac_top_builddir_sub
  38264. ac_abs_top_srcdir=$ac_pwd ;;
  38265. [\\/]* | ?:[\\/]* ) # Absolute name.
  38266. ac_srcdir=$srcdir$ac_dir_suffix;
  38267. ac_top_srcdir=$srcdir
  38268. ac_abs_top_srcdir=$srcdir ;;
  38269. *) # Relative name.
  38270. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  38271. ac_top_srcdir=$ac_top_build_prefix$srcdir
  38272. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  38273. esac
  38274. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  38275. case $ac_mode in
  38276. :F)
  38277. #
  38278. # CONFIG_FILE
  38279. #
  38280. case $INSTALL in
  38281. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  38282. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  38283. esac
  38284. _ACEOF
  38285. cat >>$CONFIG_STATUS <<\_ACEOF
  38286. # If the template does not know about datarootdir, expand it.
  38287. # FIXME: This hack should be removed a few years after 2.60.
  38288. ac_datarootdir_hack=; ac_datarootdir_seen=
  38289. case `sed -n '/datarootdir/ {
  38290. p
  38291. q
  38292. }
  38293. /@datadir@/p
  38294. /@docdir@/p
  38295. /@infodir@/p
  38296. /@localedir@/p
  38297. /@mandir@/p
  38298. ' $ac_file_inputs` in
  38299. *datarootdir*) ac_datarootdir_seen=yes;;
  38300. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  38301. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  38302. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  38303. _ACEOF
  38304. cat >>$CONFIG_STATUS <<_ACEOF
  38305. ac_datarootdir_hack='
  38306. s&@datadir@&$datadir&g
  38307. s&@docdir@&$docdir&g
  38308. s&@infodir@&$infodir&g
  38309. s&@localedir@&$localedir&g
  38310. s&@mandir@&$mandir&g
  38311. s&\\\${datarootdir}&$datarootdir&g' ;;
  38312. esac
  38313. _ACEOF
  38314. # Neutralize VPATH when `$srcdir' = `.'.
  38315. # Shell code in configure.ac might set extrasub.
  38316. # FIXME: do we really want to maintain this feature?
  38317. cat >>$CONFIG_STATUS <<_ACEOF
  38318. sed "$ac_vpsub
  38319. $extrasub
  38320. _ACEOF
  38321. cat >>$CONFIG_STATUS <<\_ACEOF
  38322. :t
  38323. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  38324. s&@configure_input@&$configure_input&;t t
  38325. s&@top_builddir@&$ac_top_builddir_sub&;t t
  38326. s&@srcdir@&$ac_srcdir&;t t
  38327. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  38328. s&@top_srcdir@&$ac_top_srcdir&;t t
  38329. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  38330. s&@builddir@&$ac_builddir&;t t
  38331. s&@abs_builddir@&$ac_abs_builddir&;t t
  38332. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  38333. s&@INSTALL@&$ac_INSTALL&;t t
  38334. $ac_datarootdir_hack
  38335. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  38336. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  38337. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  38338. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  38339. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  38340. which seems to be undefined. Please make sure it is defined." >&5
  38341. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  38342. which seems to be undefined. Please make sure it is defined." >&2;}
  38343. rm -f "$tmp/stdin"
  38344. case $ac_file in
  38345. -) cat "$tmp/out"; rm -f "$tmp/out";;
  38346. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  38347. esac
  38348. ;;
  38349. :H)
  38350. #
  38351. # CONFIG_HEADER
  38352. #
  38353. _ACEOF
  38354. # Transform confdefs.h into a sed script `conftest.defines', that
  38355. # substitutes the proper values into config.h.in to produce config.h.
  38356. rm -f conftest.defines conftest.tail
  38357. # First, append a space to every undef/define line, to ease matching.
  38358. echo 's/$/ /' >conftest.defines
  38359. # Then, protect against being on the right side of a sed subst, or in
  38360. # an unquoted here document, in config.status. If some macros were
  38361. # called several times there might be several #defines for the same
  38362. # symbol, which is useless. But do not sort them, since the last
  38363. # AC_DEFINE must be honored.
  38364. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  38365. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  38366. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  38367. # PARAMS is the parameter list in the macro definition--in most cases, it's
  38368. # just an empty string.
  38369. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  38370. ac_dB='\\)[ (].*,\\1define\\2'
  38371. ac_dC=' '
  38372. ac_dD=' ,'
  38373. uniq confdefs.h |
  38374. sed -n '
  38375. t rset
  38376. :rset
  38377. s/^[ ]*#[ ]*define[ ][ ]*//
  38378. t ok
  38379. d
  38380. :ok
  38381. s/[\\&,]/\\&/g
  38382. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  38383. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  38384. ' >>conftest.defines
  38385. # Remove the space that was appended to ease matching.
  38386. # Then replace #undef with comments. This is necessary, for
  38387. # example, in the case of _POSIX_SOURCE, which is predefined and required
  38388. # on some systems where configure will not decide to define it.
  38389. # (The regexp can be short, since the line contains either #define or #undef.)
  38390. echo 's/ $//
  38391. s,^[ #]*u.*,/* & */,' >>conftest.defines
  38392. # Break up conftest.defines:
  38393. ac_max_sed_lines=50
  38394. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  38395. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  38396. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  38397. # et cetera.
  38398. ac_in='$ac_file_inputs'
  38399. ac_out='"$tmp/out1"'
  38400. ac_nxt='"$tmp/out2"'
  38401. while :
  38402. do
  38403. # Write a here document:
  38404. cat >>$CONFIG_STATUS <<_ACEOF
  38405. # First, check the format of the line:
  38406. cat >"\$tmp/defines.sed" <<\\CEOF
  38407. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  38408. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  38409. b
  38410. :def
  38411. _ACEOF
  38412. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  38413. echo 'CEOF
  38414. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  38415. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  38416. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  38417. grep . conftest.tail >/dev/null || break
  38418. rm -f conftest.defines
  38419. mv conftest.tail conftest.defines
  38420. done
  38421. rm -f conftest.defines conftest.tail
  38422. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  38423. cat >>$CONFIG_STATUS <<\_ACEOF
  38424. if test x"$ac_file" != x-; then
  38425. echo "/* $configure_input */" >"$tmp/config.h"
  38426. cat "$ac_result" >>"$tmp/config.h"
  38427. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  38428. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  38429. echo "$as_me: $ac_file is unchanged" >&6;}
  38430. else
  38431. rm -f $ac_file
  38432. mv "$tmp/config.h" $ac_file
  38433. fi
  38434. else
  38435. echo "/* $configure_input */"
  38436. cat "$ac_result"
  38437. fi
  38438. rm -f "$tmp/out12"
  38439. # Compute $ac_file's index in $config_headers.
  38440. _am_stamp_count=1
  38441. for _am_header in $config_headers :; do
  38442. case $_am_header in
  38443. $ac_file | $ac_file:* )
  38444. break ;;
  38445. * )
  38446. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  38447. esac
  38448. done
  38449. echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  38450. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  38451. X$ac_file : 'X\(//\)[^/]' \| \
  38452. X$ac_file : 'X\(//\)$' \| \
  38453. X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  38454. echo X$ac_file |
  38455. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  38456. s//\1/
  38457. q
  38458. }
  38459. /^X\(\/\/\)[^/].*/{
  38460. s//\1/
  38461. q
  38462. }
  38463. /^X\(\/\/\)$/{
  38464. s//\1/
  38465. q
  38466. }
  38467. /^X\(\/\).*/{
  38468. s//\1/
  38469. q
  38470. }
  38471. s/.*/./; q'`/stamp-h$_am_stamp_count
  38472. ;;
  38473. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  38474. echo "$as_me: executing $ac_file commands" >&6;}
  38475. ;;
  38476. esac
  38477. case $ac_file$ac_mode in
  38478. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  38479. # Strip MF so we end up with the name of the file.
  38480. mf=`echo "$mf" | sed -e 's/:.*$//'`
  38481. # Check whether this is an Automake generated Makefile or not.
  38482. # We used to match only the files named `Makefile.in', but
  38483. # some people rename them; so instead we look at the file content.
  38484. # Grep'ing the first line is not enough: some people post-process
  38485. # each Makefile.in and add a new line on top of each file to say so.
  38486. # So let's grep whole file.
  38487. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  38488. dirpart=`$as_dirname -- "$mf" ||
  38489. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  38490. X"$mf" : 'X\(//\)[^/]' \| \
  38491. X"$mf" : 'X\(//\)$' \| \
  38492. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  38493. echo X"$mf" |
  38494. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  38495. s//\1/
  38496. q
  38497. }
  38498. /^X\(\/\/\)[^/].*/{
  38499. s//\1/
  38500. q
  38501. }
  38502. /^X\(\/\/\)$/{
  38503. s//\1/
  38504. q
  38505. }
  38506. /^X\(\/\).*/{
  38507. s//\1/
  38508. q
  38509. }
  38510. s/.*/./; q'`
  38511. else
  38512. continue
  38513. fi
  38514. # Extract the definition of DEPDIR, am__include, and am__quote
  38515. # from the Makefile without running `make'.
  38516. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  38517. test -z "$DEPDIR" && continue
  38518. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  38519. test -z "am__include" && continue
  38520. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  38521. # When using ansi2knr, U may be empty or an underscore; expand it
  38522. U=`sed -n 's/^U = //p' < "$mf"`
  38523. # Find all dependency output files, they are included files with
  38524. # $(DEPDIR) in their names. We invoke sed twice because it is the
  38525. # simplest approach to changing $(DEPDIR) to its actual value in the
  38526. # expansion.
  38527. for file in `sed -n "
  38528. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  38529. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  38530. # Make sure the directory exists.
  38531. test -f "$dirpart/$file" && continue
  38532. fdir=`$as_dirname -- "$file" ||
  38533. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  38534. X"$file" : 'X\(//\)[^/]' \| \
  38535. X"$file" : 'X\(//\)$' \| \
  38536. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  38537. echo X"$file" |
  38538. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  38539. s//\1/
  38540. q
  38541. }
  38542. /^X\(\/\/\)[^/].*/{
  38543. s//\1/
  38544. q
  38545. }
  38546. /^X\(\/\/\)$/{
  38547. s//\1/
  38548. q
  38549. }
  38550. /^X\(\/\).*/{
  38551. s//\1/
  38552. q
  38553. }
  38554. s/.*/./; q'`
  38555. { as_dir=$dirpart/$fdir
  38556. case $as_dir in #(
  38557. -*) as_dir=./$as_dir;;
  38558. esac
  38559. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  38560. as_dirs=
  38561. while :; do
  38562. case $as_dir in #(
  38563. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  38564. *) as_qdir=$as_dir;;
  38565. esac
  38566. as_dirs="'$as_qdir' $as_dirs"
  38567. as_dir=`$as_dirname -- "$as_dir" ||
  38568. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  38569. X"$as_dir" : 'X\(//\)[^/]' \| \
  38570. X"$as_dir" : 'X\(//\)$' \| \
  38571. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  38572. echo X"$as_dir" |
  38573. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  38574. s//\1/
  38575. q
  38576. }
  38577. /^X\(\/\/\)[^/].*/{
  38578. s//\1/
  38579. q
  38580. }
  38581. /^X\(\/\/\)$/{
  38582. s//\1/
  38583. q
  38584. }
  38585. /^X\(\/\).*/{
  38586. s//\1/
  38587. q
  38588. }
  38589. s/.*/./; q'`
  38590. test -d "$as_dir" && break
  38591. done
  38592. test -z "$as_dirs" || eval "mkdir $as_dirs"
  38593. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  38594. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  38595. { (exit 1); exit 1; }; }; }
  38596. # echo "creating $dirpart/$file"
  38597. echo '# dummy' > "$dirpart/$file"
  38598. done
  38599. done
  38600. ;;
  38601. esac
  38602. done # for ac_tag
  38603. { (exit 0); exit 0; }
  38604. _ACEOF
  38605. chmod +x $CONFIG_STATUS
  38606. ac_clean_files=$ac_clean_files_save
  38607. # configure is writing to config.log, and then calls config.status.
  38608. # config.status does its own redirection, appending to config.log.
  38609. # Unfortunately, on DOS this fails, as config.log is still kept open
  38610. # by configure, so config.status won't be able to write to it; its
  38611. # output is simply discarded. So we exec the FD to /dev/null,
  38612. # effectively closing config.log, so it can be properly (re)opened and
  38613. # appended to by config.status. When coming back to configure, we
  38614. # need to make the FD available again.
  38615. if test "$no_create" != yes; then
  38616. ac_cs_success=:
  38617. ac_config_status_args=
  38618. test "$silent" = yes &&
  38619. ac_config_status_args="$ac_config_status_args --quiet"
  38620. exec 5>/dev/null
  38621. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  38622. exec 5>>config.log
  38623. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  38624. # would make configure fail if this is the last instruction.
  38625. $ac_cs_success || { (exit 1); exit 1; }
  38626. fi
  38627. #
  38628. # CONFIG_SUBDIRS section.
  38629. #
  38630. if test "$no_recursion" != yes; then
  38631. # Remove --cache-file and --srcdir arguments so they do not pile up.
  38632. ac_sub_configure_args=
  38633. ac_prev=
  38634. eval "set x $ac_configure_args"
  38635. shift
  38636. for ac_arg
  38637. do
  38638. if test -n "$ac_prev"; then
  38639. ac_prev=
  38640. continue
  38641. fi
  38642. case $ac_arg in
  38643. -cache-file | --cache-file | --cache-fil | --cache-fi \
  38644. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  38645. ac_prev=cache_file ;;
  38646. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  38647. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  38648. | --c=*)
  38649. ;;
  38650. --config-cache | -C)
  38651. ;;
  38652. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  38653. ac_prev=srcdir ;;
  38654. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  38655. ;;
  38656. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  38657. ac_prev=prefix ;;
  38658. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  38659. ;;
  38660. *)
  38661. case $ac_arg in
  38662. *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  38663. esac
  38664. ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
  38665. esac
  38666. done
  38667. # Always prepend --prefix to ensure using the same prefix
  38668. # in subdir configurations.
  38669. ac_arg="--prefix=$prefix"
  38670. case $ac_arg in
  38671. *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  38672. esac
  38673. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  38674. # Pass --silent
  38675. if test "$silent" = yes; then
  38676. ac_sub_configure_args="--silent $ac_sub_configure_args"
  38677. fi
  38678. ac_popdir=`pwd`
  38679. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  38680. # Do not complain, so a configure script can configure whichever
  38681. # parts of a large source tree are present.
  38682. test -d "$srcdir/$ac_dir" || continue
  38683. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  38684. echo "$as_me:$LINENO: $ac_msg" >&5
  38685. echo "$ac_msg" >&6
  38686. { as_dir="$ac_dir"
  38687. case $as_dir in #(
  38688. -*) as_dir=./$as_dir;;
  38689. esac
  38690. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  38691. as_dirs=
  38692. while :; do
  38693. case $as_dir in #(
  38694. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  38695. *) as_qdir=$as_dir;;
  38696. esac
  38697. as_dirs="'$as_qdir' $as_dirs"
  38698. as_dir=`$as_dirname -- "$as_dir" ||
  38699. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  38700. X"$as_dir" : 'X\(//\)[^/]' \| \
  38701. X"$as_dir" : 'X\(//\)$' \| \
  38702. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  38703. echo X"$as_dir" |
  38704. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  38705. s//\1/
  38706. q
  38707. }
  38708. /^X\(\/\/\)[^/].*/{
  38709. s//\1/
  38710. q
  38711. }
  38712. /^X\(\/\/\)$/{
  38713. s//\1/
  38714. q
  38715. }
  38716. /^X\(\/\).*/{
  38717. s//\1/
  38718. q
  38719. }
  38720. s/.*/./; q'`
  38721. test -d "$as_dir" && break
  38722. done
  38723. test -z "$as_dirs" || eval "mkdir $as_dirs"
  38724. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  38725. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  38726. { (exit 1); exit 1; }; }; }
  38727. ac_builddir=.
  38728. case "$ac_dir" in
  38729. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  38730. *)
  38731. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  38732. # A ".." for each directory in $ac_dir_suffix.
  38733. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  38734. case $ac_top_builddir_sub in
  38735. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  38736. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  38737. esac ;;
  38738. esac
  38739. ac_abs_top_builddir=$ac_pwd
  38740. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  38741. # for backward compatibility:
  38742. ac_top_builddir=$ac_top_build_prefix
  38743. case $srcdir in
  38744. .) # We are building in place.
  38745. ac_srcdir=.
  38746. ac_top_srcdir=$ac_top_builddir_sub
  38747. ac_abs_top_srcdir=$ac_pwd ;;
  38748. [\\/]* | ?:[\\/]* ) # Absolute name.
  38749. ac_srcdir=$srcdir$ac_dir_suffix;
  38750. ac_top_srcdir=$srcdir
  38751. ac_abs_top_srcdir=$srcdir ;;
  38752. *) # Relative name.
  38753. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  38754. ac_top_srcdir=$ac_top_build_prefix$srcdir
  38755. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  38756. esac
  38757. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  38758. cd "$ac_dir"
  38759. # Check for guested configure; otherwise get Cygnus style configure.
  38760. if test -f "$ac_srcdir/configure.gnu"; then
  38761. ac_sub_configure=$ac_srcdir/configure.gnu
  38762. elif test -f "$ac_srcdir/configure"; then
  38763. ac_sub_configure=$ac_srcdir/configure
  38764. elif test -f "$ac_srcdir/configure.in"; then
  38765. # This should be Cygnus configure.
  38766. ac_sub_configure=$ac_aux_dir/configure
  38767. else
  38768. { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
  38769. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  38770. ac_sub_configure=
  38771. fi
  38772. # The recursion is here.
  38773. if test -n "$ac_sub_configure"; then
  38774. # Make the cache file name correct relative to the subdirectory.
  38775. case $cache_file in
  38776. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  38777. *) # Relative name.
  38778. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  38779. esac
  38780. { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
  38781. echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  38782. # The eval makes quoting arguments work.
  38783. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  38784. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  38785. { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
  38786. echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
  38787. { (exit 1); exit 1; }; }
  38788. fi
  38789. cd "$ac_popdir"
  38790. done
  38791. fi
  38792. { echo "$as_me:$LINENO: Configured to build curl/libcurl:
  38793. curl version: ${VERSION}
  38794. Host setup: ${host}
  38795. Install prefix: ${prefix}
  38796. Compiler: ${CC}
  38797. SSL support: ${curl_ssl_msg}
  38798. SSH support: ${curl_ssh_msg}
  38799. zlib support: ${curl_zlib_msg}
  38800. krb4 support: ${curl_krb4_msg}
  38801. GSSAPI support: ${curl_gss_msg}
  38802. SPNEGO support: ${curl_spnego_msg}
  38803. c-ares support: ${curl_ares_msg}
  38804. ipv6 support: ${curl_ipv6_msg}
  38805. IDN support: ${curl_idn_msg}
  38806. Build libcurl: Shared=${enable_shared}, Static=${enable_static}
  38807. Built-in manual: ${curl_manual_msg}
  38808. Verbose errors: ${curl_verbose_msg}
  38809. SSPI support: ${curl_sspi_msg}
  38810. ca cert bundle: ${ca}
  38811. ca cert path: ${capath}
  38812. LDAP support: ${curl_ldap_msg}
  38813. LDAPS support: ${curl_ldaps_msg}
  38814. " >&5
  38815. echo "$as_me: Configured to build curl/libcurl:
  38816. curl version: ${VERSION}
  38817. Host setup: ${host}
  38818. Install prefix: ${prefix}
  38819. Compiler: ${CC}
  38820. SSL support: ${curl_ssl_msg}
  38821. SSH support: ${curl_ssh_msg}
  38822. zlib support: ${curl_zlib_msg}
  38823. krb4 support: ${curl_krb4_msg}
  38824. GSSAPI support: ${curl_gss_msg}
  38825. SPNEGO support: ${curl_spnego_msg}
  38826. c-ares support: ${curl_ares_msg}
  38827. ipv6 support: ${curl_ipv6_msg}
  38828. IDN support: ${curl_idn_msg}
  38829. Build libcurl: Shared=${enable_shared}, Static=${enable_static}
  38830. Built-in manual: ${curl_manual_msg}
  38831. Verbose errors: ${curl_verbose_msg}
  38832. SSPI support: ${curl_sspi_msg}
  38833. ca cert bundle: ${ca}
  38834. ca cert path: ${capath}
  38835. LDAP support: ${curl_ldap_msg}
  38836. LDAPS support: ${curl_ldaps_msg}
  38837. " >&6;}
  38838. if test "x$soname_bump" = "xyes"; then
  38839. cat <<EOM
  38840. SONAME bump: yes - WARNING: this library will be built with the SONAME
  38841. number bumped due to (a detected) ABI breakage.
  38842. See lib/README.curl_off_t for details on this.
  38843. EOM
  38844. fi