configure 562 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for libmicrohttpd 0.9.42.
  4. #
  5. # Report bugs to <libmicrohttpd@gnu.org>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  188. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. PATH=/empty FPATH=/empty; export PATH FPATH
  192. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  193. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  194. test \$(( 1 + 1 )) = 2 || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  259. $0: libmicrohttpd@gnu.org about your system, including any
  260. $0: error possibly output before this message. Then install
  261. $0: a modern shell, or manually run the script under such a
  262. $0: shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='libmicrohttpd'
  542. PACKAGE_TARNAME='libmicrohttpd'
  543. PACKAGE_VERSION='0.9.42'
  544. PACKAGE_STRING='libmicrohttpd 0.9.42'
  545. PACKAGE_BUGREPORT='libmicrohttpd@gnu.org'
  546. PACKAGE_URL=''
  547. # Factoring default headers for most tests.
  548. ac_includes_default="\
  549. #include <stdio.h>
  550. #ifdef HAVE_SYS_TYPES_H
  551. # include <sys/types.h>
  552. #endif
  553. #ifdef HAVE_SYS_STAT_H
  554. # include <sys/stat.h>
  555. #endif
  556. #ifdef STDC_HEADERS
  557. # include <stdlib.h>
  558. # include <stddef.h>
  559. #else
  560. # ifdef HAVE_STDLIB_H
  561. # include <stdlib.h>
  562. # endif
  563. #endif
  564. #ifdef HAVE_STRING_H
  565. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  566. # include <memory.h>
  567. # endif
  568. # include <string.h>
  569. #endif
  570. #ifdef HAVE_STRINGS_H
  571. # include <strings.h>
  572. #endif
  573. #ifdef HAVE_INTTYPES_H
  574. # include <inttypes.h>
  575. #endif
  576. #ifdef HAVE_STDINT_H
  577. # include <stdint.h>
  578. #endif
  579. #ifdef HAVE_UNISTD_H
  580. # include <unistd.h>
  581. #endif"
  582. ac_func_list=
  583. ac_subst_vars='am__EXEEXT_FALSE
  584. am__EXEEXT_TRUE
  585. LTLIBOBJS
  586. LIBOBJS
  587. MHD_LIBDEPS
  588. MHD_LIBDEPS_PKGCFG
  589. MHD_REQ_PRIVATE
  590. MHD_LIB_LDFLAGS
  591. MHD_LIB_CFLAGS
  592. MHD_LIB_CPPFLAGS
  593. CPU_COUNT
  594. USE_COVERAGE_FALSE
  595. USE_COVERAGE_TRUE
  596. ENABLE_DAUTH_FALSE
  597. ENABLE_DAUTH_TRUE
  598. ENABLE_BAUTH_FALSE
  599. ENABLE_BAUTH_TRUE
  600. ENABLE_HTTPS_FALSE
  601. ENABLE_HTTPS_TRUE
  602. GNUTLS_LDFLAGS
  603. GNUTLS_CPPFLAGS
  604. HAVE_GNUTLS_SNI_FALSE
  605. HAVE_GNUTLS_SNI_TRUE
  606. HAVE_GNUTLS_FALSE
  607. HAVE_GNUTLS_TRUE
  608. GNUTLS_LIBS
  609. GNUTLS_CFLAGS
  610. PKG_CONFIG_LIBDIR
  611. PKG_CONFIG_PATH
  612. LIBGCRYPT_LIBS
  613. LIBGCRYPT_CFLAGS
  614. LIBGCRYPT_CONFIG
  615. HAVE_SOCAT_FALSE
  616. HAVE_SOCAT_TRUE
  617. HAVE_ZZUF_FALSE
  618. HAVE_ZZUF_TRUE
  619. have_socat
  620. have_zzuf
  621. HAVE_POSTPROCESSOR_FALSE
  622. HAVE_POSTPROCESSOR_TRUE
  623. HAVE_SPDYLAY_FALSE
  624. HAVE_SPDYLAY_TRUE
  625. SPDY_LIBDEPS
  626. SPDY_LIB_CPPFLAGS
  627. SPDY_LIB_CFLAGS
  628. SPDY_LIB_LDFLAGS
  629. ENABLE_SPDY_FALSE
  630. ENABLE_SPDY_TRUE
  631. HAVE_OPENSSL_FALSE
  632. HAVE_OPENSSL_TRUE
  633. OPENSSL_LDFLAGS
  634. OPENSSL_LIBS
  635. OPENSSL_INCLUDES
  636. PKG_CONFIG
  637. HAVE_MAGIC_FALSE
  638. HAVE_MAGIC_TRUE
  639. HAVE_CURL_FALSE
  640. HAVE_CURL_TRUE
  641. LIBCURL
  642. LIBCURL_CPPFLAGS
  643. _libcurl_config
  644. HIDDEN_VISIBILITY_CFLAGS
  645. HAVE_TSEARCH_FALSE
  646. HAVE_TSEARCH_TRUE
  647. BUILD_EXAMPLES_FALSE
  648. BUILD_EXAMPLES_TRUE
  649. BUILD_DOC_FALSE
  650. BUILD_DOC_TRUE
  651. W32_STATIC_LIB_FALSE
  652. W32_STATIC_LIB_TRUE
  653. HAVE_MAKEINFO_BINARY_FALSE
  654. HAVE_MAKEINFO_BINARY_TRUE
  655. HAVE_MAKEINFO_BINARY
  656. HAVE_CURL_BINARY_FALSE
  657. HAVE_CURL_BINARY_TRUE
  658. HAVE_CURL_BINARY
  659. USE_MS_LIB_TOOL_FALSE
  660. USE_MS_LIB_TOOL_TRUE
  661. W32_SHARED_LIB_EXP_FALSE
  662. W32_SHARED_LIB_EXP_TRUE
  663. HAVE_W32_FALSE
  664. HAVE_W32_TRUE
  665. USE_W32_THREADS_FALSE
  666. USE_W32_THREADS_TRUE
  667. USE_POSIX_THREADS_FALSE
  668. USE_POSIX_THREADS_TRUE
  669. lt_cv_objdir
  670. MS_LIB_TOOL
  671. HAVE_POSIX_THREADS_FALSE
  672. HAVE_POSIX_THREADS_TRUE
  673. PTHREAD_CFLAGS
  674. PTHREAD_LIBS
  675. PTHREAD_CC
  676. ax_pthread_config
  677. PACKAGE_VERSION_SUBMINOR
  678. PACKAGE_VERSION_MINOR
  679. PACKAGE_VERSION_MAJOR
  680. RC
  681. CPP
  682. OTOOL64
  683. OTOOL
  684. LIPO
  685. NMEDIT
  686. DSYMUTIL
  687. MANIFEST_TOOL
  688. RANLIB
  689. ac_ct_AR
  690. AR
  691. NM
  692. ac_ct_DUMPBIN
  693. DUMPBIN
  694. LD
  695. FGREP
  696. EGREP
  697. GREP
  698. SED
  699. LIBTOOL
  700. OBJDUMP
  701. DLLTOOL
  702. AS
  703. am__fastdepCC_FALSE
  704. am__fastdepCC_TRUE
  705. CCDEPMODE
  706. am__nodep
  707. AMDEPBACKSLASH
  708. AMDEP_FALSE
  709. AMDEP_TRUE
  710. am__quote
  711. am__include
  712. DEPDIR
  713. OBJEXT
  714. EXEEXT
  715. ac_ct_CC
  716. CPPFLAGS
  717. LDFLAGS
  718. CFLAGS
  719. CC
  720. host_os
  721. host_vendor
  722. host_cpu
  723. host
  724. build_os
  725. build_vendor
  726. build_cpu
  727. build
  728. LN_S
  729. LIBSPDY_VERSION_AGE
  730. LIBSPDY_VERSION_REVISION
  731. LIBSPDY_VERSION_CURRENT
  732. LIB_VERSION_AGE
  733. LIB_VERSION_REVISION
  734. LIB_VERSION_CURRENT
  735. AM_BACKSLASH
  736. AM_DEFAULT_VERBOSITY
  737. AM_DEFAULT_V
  738. AM_V
  739. am__untar
  740. am__tar
  741. AMTAR
  742. am__leading_dot
  743. SET_MAKE
  744. AWK
  745. mkdir_p
  746. MKDIR_P
  747. INSTALL_STRIP_PROGRAM
  748. STRIP
  749. install_sh
  750. MAKEINFO
  751. AUTOHEADER
  752. AUTOMAKE
  753. AUTOCONF
  754. ACLOCAL
  755. VERSION
  756. PACKAGE
  757. CYGPATH_W
  758. am__isrc
  759. INSTALL_DATA
  760. INSTALL_SCRIPT
  761. INSTALL_PROGRAM
  762. target_alias
  763. host_alias
  764. build_alias
  765. LIBS
  766. ECHO_T
  767. ECHO_N
  768. ECHO_C
  769. DEFS
  770. mandir
  771. localedir
  772. libdir
  773. psdir
  774. pdfdir
  775. dvidir
  776. htmldir
  777. infodir
  778. docdir
  779. oldincludedir
  780. includedir
  781. localstatedir
  782. sharedstatedir
  783. sysconfdir
  784. datadir
  785. datarootdir
  786. libexecdir
  787. sbindir
  788. bindir
  789. program_transform_name
  790. prefix
  791. exec_prefix
  792. PACKAGE_URL
  793. PACKAGE_BUGREPORT
  794. PACKAGE_STRING
  795. PACKAGE_VERSION
  796. PACKAGE_TARNAME
  797. PACKAGE_NAME
  798. PATH_SEPARATOR
  799. SHELL'
  800. ac_subst_files=''
  801. ac_user_opts='
  802. enable_option_checking
  803. enable_silent_rules
  804. enable_dependency_tracking
  805. enable_shared
  806. enable_static
  807. with_pic
  808. enable_fast_install
  809. with_gnu_ld
  810. with_sysroot
  811. enable_libtool_lock
  812. with_threads
  813. enable_doc
  814. enable_examples
  815. enable_poll
  816. enable_epoll
  817. enable_socketpair
  818. enable_curl
  819. with_libcurl
  820. enable_spdy
  821. with_openssl
  822. enable_largefile
  823. enable_messages
  824. enable_postprocessor
  825. with_libgcrypt_prefix
  826. with_gnutls
  827. enable_https
  828. enable_bauth
  829. enable_dauth
  830. enable_coverage
  831. '
  832. ac_precious_vars='build_alias
  833. host_alias
  834. target_alias
  835. CC
  836. CFLAGS
  837. LDFLAGS
  838. LIBS
  839. CPPFLAGS
  840. CPP
  841. PKG_CONFIG
  842. PKG_CONFIG_PATH
  843. PKG_CONFIG_LIBDIR
  844. GNUTLS_CFLAGS
  845. GNUTLS_LIBS'
  846. # Initialize some variables set by options.
  847. ac_init_help=
  848. ac_init_version=false
  849. ac_unrecognized_opts=
  850. ac_unrecognized_sep=
  851. # The variables have the same names as the options, with
  852. # dashes changed to underlines.
  853. cache_file=/dev/null
  854. exec_prefix=NONE
  855. no_create=
  856. no_recursion=
  857. prefix=NONE
  858. program_prefix=NONE
  859. program_suffix=NONE
  860. program_transform_name=s,x,x,
  861. silent=
  862. site=
  863. srcdir=
  864. verbose=
  865. x_includes=NONE
  866. x_libraries=NONE
  867. # Installation directory options.
  868. # These are left unexpanded so users can "make install exec_prefix=/foo"
  869. # and all the variables that are supposed to be based on exec_prefix
  870. # by default will actually change.
  871. # Use braces instead of parens because sh, perl, etc. also accept them.
  872. # (The list follows the same order as the GNU Coding Standards.)
  873. bindir='${exec_prefix}/bin'
  874. sbindir='${exec_prefix}/sbin'
  875. libexecdir='${exec_prefix}/libexec'
  876. datarootdir='${prefix}/share'
  877. datadir='${datarootdir}'
  878. sysconfdir='${prefix}/etc'
  879. sharedstatedir='${prefix}/com'
  880. localstatedir='${prefix}/var'
  881. includedir='${prefix}/include'
  882. oldincludedir='/usr/include'
  883. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  884. infodir='${datarootdir}/info'
  885. htmldir='${docdir}'
  886. dvidir='${docdir}'
  887. pdfdir='${docdir}'
  888. psdir='${docdir}'
  889. libdir='${exec_prefix}/lib'
  890. localedir='${datarootdir}/locale'
  891. mandir='${datarootdir}/man'
  892. ac_prev=
  893. ac_dashdash=
  894. for ac_option
  895. do
  896. # If the previous option needs an argument, assign it.
  897. if test -n "$ac_prev"; then
  898. eval $ac_prev=\$ac_option
  899. ac_prev=
  900. continue
  901. fi
  902. case $ac_option in
  903. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  904. *=) ac_optarg= ;;
  905. *) ac_optarg=yes ;;
  906. esac
  907. # Accept the important Cygnus configure options, so we can diagnose typos.
  908. case $ac_dashdash$ac_option in
  909. --)
  910. ac_dashdash=yes ;;
  911. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  912. ac_prev=bindir ;;
  913. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  914. bindir=$ac_optarg ;;
  915. -build | --build | --buil | --bui | --bu)
  916. ac_prev=build_alias ;;
  917. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  918. build_alias=$ac_optarg ;;
  919. -cache-file | --cache-file | --cache-fil | --cache-fi \
  920. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  921. ac_prev=cache_file ;;
  922. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  923. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  924. cache_file=$ac_optarg ;;
  925. --config-cache | -C)
  926. cache_file=config.cache ;;
  927. -datadir | --datadir | --datadi | --datad)
  928. ac_prev=datadir ;;
  929. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  930. datadir=$ac_optarg ;;
  931. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  932. | --dataroo | --dataro | --datar)
  933. ac_prev=datarootdir ;;
  934. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  935. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  936. datarootdir=$ac_optarg ;;
  937. -disable-* | --disable-*)
  938. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  939. # Reject names that are not valid shell variable names.
  940. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  941. as_fn_error $? "invalid feature name: $ac_useropt"
  942. ac_useropt_orig=$ac_useropt
  943. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  944. case $ac_user_opts in
  945. *"
  946. "enable_$ac_useropt"
  947. "*) ;;
  948. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  949. ac_unrecognized_sep=', ';;
  950. esac
  951. eval enable_$ac_useropt=no ;;
  952. -docdir | --docdir | --docdi | --doc | --do)
  953. ac_prev=docdir ;;
  954. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  955. docdir=$ac_optarg ;;
  956. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  957. ac_prev=dvidir ;;
  958. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  959. dvidir=$ac_optarg ;;
  960. -enable-* | --enable-*)
  961. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  962. # Reject names that are not valid shell variable names.
  963. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  964. as_fn_error $? "invalid feature name: $ac_useropt"
  965. ac_useropt_orig=$ac_useropt
  966. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  967. case $ac_user_opts in
  968. *"
  969. "enable_$ac_useropt"
  970. "*) ;;
  971. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  972. ac_unrecognized_sep=', ';;
  973. esac
  974. eval enable_$ac_useropt=\$ac_optarg ;;
  975. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  976. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  977. | --exec | --exe | --ex)
  978. ac_prev=exec_prefix ;;
  979. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  980. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  981. | --exec=* | --exe=* | --ex=*)
  982. exec_prefix=$ac_optarg ;;
  983. -gas | --gas | --ga | --g)
  984. # Obsolete; use --with-gas.
  985. with_gas=yes ;;
  986. -help | --help | --hel | --he | -h)
  987. ac_init_help=long ;;
  988. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  989. ac_init_help=recursive ;;
  990. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  991. ac_init_help=short ;;
  992. -host | --host | --hos | --ho)
  993. ac_prev=host_alias ;;
  994. -host=* | --host=* | --hos=* | --ho=*)
  995. host_alias=$ac_optarg ;;
  996. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  997. ac_prev=htmldir ;;
  998. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  999. | --ht=*)
  1000. htmldir=$ac_optarg ;;
  1001. -includedir | --includedir | --includedi | --included | --include \
  1002. | --includ | --inclu | --incl | --inc)
  1003. ac_prev=includedir ;;
  1004. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1005. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1006. includedir=$ac_optarg ;;
  1007. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1008. ac_prev=infodir ;;
  1009. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1010. infodir=$ac_optarg ;;
  1011. -libdir | --libdir | --libdi | --libd)
  1012. ac_prev=libdir ;;
  1013. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1014. libdir=$ac_optarg ;;
  1015. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1016. | --libexe | --libex | --libe)
  1017. ac_prev=libexecdir ;;
  1018. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1019. | --libexe=* | --libex=* | --libe=*)
  1020. libexecdir=$ac_optarg ;;
  1021. -localedir | --localedir | --localedi | --localed | --locale)
  1022. ac_prev=localedir ;;
  1023. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1024. localedir=$ac_optarg ;;
  1025. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1026. | --localstate | --localstat | --localsta | --localst | --locals)
  1027. ac_prev=localstatedir ;;
  1028. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1029. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1030. localstatedir=$ac_optarg ;;
  1031. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1032. ac_prev=mandir ;;
  1033. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1034. mandir=$ac_optarg ;;
  1035. -nfp | --nfp | --nf)
  1036. # Obsolete; use --without-fp.
  1037. with_fp=no ;;
  1038. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1039. | --no-cr | --no-c | -n)
  1040. no_create=yes ;;
  1041. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1042. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1043. no_recursion=yes ;;
  1044. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1045. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1046. | --oldin | --oldi | --old | --ol | --o)
  1047. ac_prev=oldincludedir ;;
  1048. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1049. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1050. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1051. oldincludedir=$ac_optarg ;;
  1052. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1053. ac_prev=prefix ;;
  1054. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1055. prefix=$ac_optarg ;;
  1056. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1057. | --program-pre | --program-pr | --program-p)
  1058. ac_prev=program_prefix ;;
  1059. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1060. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1061. program_prefix=$ac_optarg ;;
  1062. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1063. | --program-suf | --program-su | --program-s)
  1064. ac_prev=program_suffix ;;
  1065. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1066. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1067. program_suffix=$ac_optarg ;;
  1068. -program-transform-name | --program-transform-name \
  1069. | --program-transform-nam | --program-transform-na \
  1070. | --program-transform-n | --program-transform- \
  1071. | --program-transform | --program-transfor \
  1072. | --program-transfo | --program-transf \
  1073. | --program-trans | --program-tran \
  1074. | --progr-tra | --program-tr | --program-t)
  1075. ac_prev=program_transform_name ;;
  1076. -program-transform-name=* | --program-transform-name=* \
  1077. | --program-transform-nam=* | --program-transform-na=* \
  1078. | --program-transform-n=* | --program-transform-=* \
  1079. | --program-transform=* | --program-transfor=* \
  1080. | --program-transfo=* | --program-transf=* \
  1081. | --program-trans=* | --program-tran=* \
  1082. | --progr-tra=* | --program-tr=* | --program-t=*)
  1083. program_transform_name=$ac_optarg ;;
  1084. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1085. ac_prev=pdfdir ;;
  1086. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1087. pdfdir=$ac_optarg ;;
  1088. -psdir | --psdir | --psdi | --psd | --ps)
  1089. ac_prev=psdir ;;
  1090. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1091. psdir=$ac_optarg ;;
  1092. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1093. | -silent | --silent | --silen | --sile | --sil)
  1094. silent=yes ;;
  1095. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1096. ac_prev=sbindir ;;
  1097. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1098. | --sbi=* | --sb=*)
  1099. sbindir=$ac_optarg ;;
  1100. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1101. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1102. | --sharedst | --shareds | --shared | --share | --shar \
  1103. | --sha | --sh)
  1104. ac_prev=sharedstatedir ;;
  1105. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1106. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1107. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1108. | --sha=* | --sh=*)
  1109. sharedstatedir=$ac_optarg ;;
  1110. -site | --site | --sit)
  1111. ac_prev=site ;;
  1112. -site=* | --site=* | --sit=*)
  1113. site=$ac_optarg ;;
  1114. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1115. ac_prev=srcdir ;;
  1116. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1117. srcdir=$ac_optarg ;;
  1118. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1119. | --syscon | --sysco | --sysc | --sys | --sy)
  1120. ac_prev=sysconfdir ;;
  1121. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1122. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1123. sysconfdir=$ac_optarg ;;
  1124. -target | --target | --targe | --targ | --tar | --ta | --t)
  1125. ac_prev=target_alias ;;
  1126. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1127. target_alias=$ac_optarg ;;
  1128. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1129. verbose=yes ;;
  1130. -version | --version | --versio | --versi | --vers | -V)
  1131. ac_init_version=: ;;
  1132. -with-* | --with-*)
  1133. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1134. # Reject names that are not valid shell variable names.
  1135. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1136. as_fn_error $? "invalid package name: $ac_useropt"
  1137. ac_useropt_orig=$ac_useropt
  1138. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1139. case $ac_user_opts in
  1140. *"
  1141. "with_$ac_useropt"
  1142. "*) ;;
  1143. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1144. ac_unrecognized_sep=', ';;
  1145. esac
  1146. eval with_$ac_useropt=\$ac_optarg ;;
  1147. -without-* | --without-*)
  1148. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1149. # Reject names that are not valid shell variable names.
  1150. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1151. as_fn_error $? "invalid package name: $ac_useropt"
  1152. ac_useropt_orig=$ac_useropt
  1153. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1154. case $ac_user_opts in
  1155. *"
  1156. "with_$ac_useropt"
  1157. "*) ;;
  1158. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1159. ac_unrecognized_sep=', ';;
  1160. esac
  1161. eval with_$ac_useropt=no ;;
  1162. --x)
  1163. # Obsolete; use --with-x.
  1164. with_x=yes ;;
  1165. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1166. | --x-incl | --x-inc | --x-in | --x-i)
  1167. ac_prev=x_includes ;;
  1168. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1169. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1170. x_includes=$ac_optarg ;;
  1171. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1172. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1173. ac_prev=x_libraries ;;
  1174. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1175. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1176. x_libraries=$ac_optarg ;;
  1177. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1178. Try \`$0 --help' for more information"
  1179. ;;
  1180. *=*)
  1181. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1182. # Reject names that are not valid shell variable names.
  1183. case $ac_envvar in #(
  1184. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1185. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1186. esac
  1187. eval $ac_envvar=\$ac_optarg
  1188. export $ac_envvar ;;
  1189. *)
  1190. # FIXME: should be removed in autoconf 3.0.
  1191. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1192. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1193. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1194. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1195. ;;
  1196. esac
  1197. done
  1198. if test -n "$ac_prev"; then
  1199. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1200. as_fn_error $? "missing argument to $ac_option"
  1201. fi
  1202. if test -n "$ac_unrecognized_opts"; then
  1203. case $enable_option_checking in
  1204. no) ;;
  1205. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1206. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1207. esac
  1208. fi
  1209. # Check all directory arguments for consistency.
  1210. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1211. datadir sysconfdir sharedstatedir localstatedir includedir \
  1212. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1213. libdir localedir mandir
  1214. do
  1215. eval ac_val=\$$ac_var
  1216. # Remove trailing slashes.
  1217. case $ac_val in
  1218. */ )
  1219. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1220. eval $ac_var=\$ac_val;;
  1221. esac
  1222. # Be sure to have absolute directory names.
  1223. case $ac_val in
  1224. [\\/$]* | ?:[\\/]* ) continue;;
  1225. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1226. esac
  1227. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1228. done
  1229. # There might be people who depend on the old broken behavior: `$host'
  1230. # used to hold the argument of --host etc.
  1231. # FIXME: To remove some day.
  1232. build=$build_alias
  1233. host=$host_alias
  1234. target=$target_alias
  1235. # FIXME: To remove some day.
  1236. if test "x$host_alias" != x; then
  1237. if test "x$build_alias" = x; then
  1238. cross_compiling=maybe
  1239. elif test "x$build_alias" != "x$host_alias"; then
  1240. cross_compiling=yes
  1241. fi
  1242. fi
  1243. ac_tool_prefix=
  1244. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1245. test "$silent" = yes && exec 6>/dev/null
  1246. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1247. ac_ls_di=`ls -di .` &&
  1248. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1249. as_fn_error $? "working directory cannot be determined"
  1250. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1251. as_fn_error $? "pwd does not report name of working directory"
  1252. # Find the source files, if location was not specified.
  1253. if test -z "$srcdir"; then
  1254. ac_srcdir_defaulted=yes
  1255. # Try the directory containing this script, then the parent directory.
  1256. ac_confdir=`$as_dirname -- "$as_myself" ||
  1257. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1258. X"$as_myself" : 'X\(//\)[^/]' \| \
  1259. X"$as_myself" : 'X\(//\)$' \| \
  1260. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1261. $as_echo X"$as_myself" |
  1262. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1263. s//\1/
  1264. q
  1265. }
  1266. /^X\(\/\/\)[^/].*/{
  1267. s//\1/
  1268. q
  1269. }
  1270. /^X\(\/\/\)$/{
  1271. s//\1/
  1272. q
  1273. }
  1274. /^X\(\/\).*/{
  1275. s//\1/
  1276. q
  1277. }
  1278. s/.*/./; q'`
  1279. srcdir=$ac_confdir
  1280. if test ! -r "$srcdir/$ac_unique_file"; then
  1281. srcdir=..
  1282. fi
  1283. else
  1284. ac_srcdir_defaulted=no
  1285. fi
  1286. if test ! -r "$srcdir/$ac_unique_file"; then
  1287. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1288. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1289. fi
  1290. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1291. ac_abs_confdir=`(
  1292. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1293. pwd)`
  1294. # When building in place, set srcdir=.
  1295. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1296. srcdir=.
  1297. fi
  1298. # Remove unnecessary trailing slashes from srcdir.
  1299. # Double slashes in file names in object file debugging info
  1300. # mess up M-x gdb in Emacs.
  1301. case $srcdir in
  1302. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1303. esac
  1304. for ac_var in $ac_precious_vars; do
  1305. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1306. eval ac_env_${ac_var}_value=\$${ac_var}
  1307. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1308. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1309. done
  1310. #
  1311. # Report the --help message.
  1312. #
  1313. if test "$ac_init_help" = "long"; then
  1314. # Omit some internal or obsolete options to make the list less imposing.
  1315. # This message is too long to be a string in the A/UX 3.1 sh.
  1316. cat <<_ACEOF
  1317. \`configure' configures libmicrohttpd 0.9.42 to adapt to many kinds of systems.
  1318. Usage: $0 [OPTION]... [VAR=VALUE]...
  1319. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1320. VAR=VALUE. See below for descriptions of some of the useful variables.
  1321. Defaults for the options are specified in brackets.
  1322. Configuration:
  1323. -h, --help display this help and exit
  1324. --help=short display options specific to this package
  1325. --help=recursive display the short help of all the included packages
  1326. -V, --version display version information and exit
  1327. -q, --quiet, --silent do not print \`checking ...' messages
  1328. --cache-file=FILE cache test results in FILE [disabled]
  1329. -C, --config-cache alias for \`--cache-file=config.cache'
  1330. -n, --no-create do not create output files
  1331. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1332. Installation directories:
  1333. --prefix=PREFIX install architecture-independent files in PREFIX
  1334. [$ac_default_prefix]
  1335. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1336. [PREFIX]
  1337. By default, \`make install' will install all the files in
  1338. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1339. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1340. for instance \`--prefix=\$HOME'.
  1341. For better control, use the options below.
  1342. Fine tuning of the installation directories:
  1343. --bindir=DIR user executables [EPREFIX/bin]
  1344. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1345. --libexecdir=DIR program executables [EPREFIX/libexec]
  1346. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1347. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1348. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1349. --libdir=DIR object code libraries [EPREFIX/lib]
  1350. --includedir=DIR C header files [PREFIX/include]
  1351. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1352. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1353. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1354. --infodir=DIR info documentation [DATAROOTDIR/info]
  1355. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1356. --mandir=DIR man documentation [DATAROOTDIR/man]
  1357. --docdir=DIR documentation root [DATAROOTDIR/doc/libmicrohttpd]
  1358. --htmldir=DIR html documentation [DOCDIR]
  1359. --dvidir=DIR dvi documentation [DOCDIR]
  1360. --pdfdir=DIR pdf documentation [DOCDIR]
  1361. --psdir=DIR ps documentation [DOCDIR]
  1362. _ACEOF
  1363. cat <<\_ACEOF
  1364. Program names:
  1365. --program-prefix=PREFIX prepend PREFIX to installed program names
  1366. --program-suffix=SUFFIX append SUFFIX to installed program names
  1367. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1368. System types:
  1369. --build=BUILD configure for building on BUILD [guessed]
  1370. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1371. _ACEOF
  1372. fi
  1373. if test -n "$ac_init_help"; then
  1374. case $ac_init_help in
  1375. short | recursive ) echo "Configuration of libmicrohttpd 0.9.42:";;
  1376. esac
  1377. cat <<\_ACEOF
  1378. Optional Features:
  1379. --disable-option-checking ignore unrecognized --enable/--with options
  1380. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1381. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1382. --enable-silent-rules less verbose build output (undo: "make V=1")
  1383. --disable-silent-rules verbose build output (undo: "make V=0")
  1384. --enable-dependency-tracking
  1385. do not reject slow dependency extractors
  1386. --disable-dependency-tracking
  1387. speeds up one-time build
  1388. --enable-shared[=PKGS] build shared libraries [default=yes]
  1389. --enable-static[=PKGS] build static libraries [default=yes]
  1390. --enable-fast-install[=PKGS]
  1391. optimize for fast installation [default=yes]
  1392. --disable-libtool-lock avoid locking (might break parallel builds)
  1393. --disable-doc do not build any documentation
  1394. --disable-examples do not build any examples
  1395. --enable-poll[=ARG] enable poll support (yes, no, auto) [auto]
  1396. --enable-epoll[=ARG] enable epoll support (yes, no, auto) [auto]
  1397. --enable-socketpair[=ARG]
  1398. disable internal singalling by pipes and use socket
  1399. pair instead (yes, no, try) [no]
  1400. --disable-curl disable cURL based testcases
  1401. --enable-spdy enable build libmicrospdy (yes, no, auto) [auto]
  1402. --disable-largefile omit support for large files
  1403. --disable-messages disable MHD error messages
  1404. --disable-postprocessor disable MHD PostProcessor functionality
  1405. --enable-https enable HTTPS support (yes, no, auto)[auto]
  1406. --disable-bauth disable HTTP basic Auth support
  1407. --disable-dauth disable HTTP basic and digest Auth support
  1408. --enable-coverage compile the library with code coverage support
  1409. Optional Packages:
  1410. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1411. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1412. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1413. both]
  1414. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1415. --with-sysroot=DIR Search for dependent libraries within DIR
  1416. (or the compiler's sysroot if not specified).
  1417. --with-threads=LIB choose threading library (posix, w32, auto) [auto]
  1418. --with-libcurl=PREFIX look for the curl library in PREFIX/lib and headers
  1419. in PREFIX/include
  1420. --with-openssl=DIR root of the OpenSSL directory
  1421. --with-libgcrypt-prefix=PFX
  1422. prefix where LIBGCRYPT is installed (optional)
  1423. --with-gnutls[=PFX] use GnuTLS for HTTPS support, optional PFX overrides
  1424. pkg-config data for GnuTLS headers (PFX/include) and
  1425. libs (PFX/lib)
  1426. Some influential environment variables:
  1427. CC C compiler command
  1428. CFLAGS C compiler flags
  1429. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1430. nonstandard directory <lib dir>
  1431. LIBS libraries to pass to the linker, e.g. -l<library>
  1432. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1433. you have headers in a nonstandard directory <include dir>
  1434. CPP C preprocessor
  1435. PKG_CONFIG path to pkg-config utility
  1436. PKG_CONFIG_PATH
  1437. directories to add to pkg-config's search path
  1438. PKG_CONFIG_LIBDIR
  1439. path overriding pkg-config's built-in search path
  1440. GNUTLS_CFLAGS
  1441. C compiler flags for GNUTLS, overriding pkg-config
  1442. GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
  1443. Use these variables to override the choices made by `configure' or to help
  1444. it to find libraries and programs with nonstandard names/locations.
  1445. Report bugs to <libmicrohttpd@gnu.org>.
  1446. _ACEOF
  1447. ac_status=$?
  1448. fi
  1449. if test "$ac_init_help" = "recursive"; then
  1450. # If there are subdirs, report their specific --help.
  1451. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1452. test -d "$ac_dir" ||
  1453. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1454. continue
  1455. ac_builddir=.
  1456. case "$ac_dir" in
  1457. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1458. *)
  1459. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1460. # A ".." for each directory in $ac_dir_suffix.
  1461. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1462. case $ac_top_builddir_sub in
  1463. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1464. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1465. esac ;;
  1466. esac
  1467. ac_abs_top_builddir=$ac_pwd
  1468. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1469. # for backward compatibility:
  1470. ac_top_builddir=$ac_top_build_prefix
  1471. case $srcdir in
  1472. .) # We are building in place.
  1473. ac_srcdir=.
  1474. ac_top_srcdir=$ac_top_builddir_sub
  1475. ac_abs_top_srcdir=$ac_pwd ;;
  1476. [\\/]* | ?:[\\/]* ) # Absolute name.
  1477. ac_srcdir=$srcdir$ac_dir_suffix;
  1478. ac_top_srcdir=$srcdir
  1479. ac_abs_top_srcdir=$srcdir ;;
  1480. *) # Relative name.
  1481. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1482. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1483. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1484. esac
  1485. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1486. cd "$ac_dir" || { ac_status=$?; continue; }
  1487. # Check for guested configure.
  1488. if test -f "$ac_srcdir/configure.gnu"; then
  1489. echo &&
  1490. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1491. elif test -f "$ac_srcdir/configure"; then
  1492. echo &&
  1493. $SHELL "$ac_srcdir/configure" --help=recursive
  1494. else
  1495. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1496. fi || ac_status=$?
  1497. cd "$ac_pwd" || { ac_status=$?; break; }
  1498. done
  1499. fi
  1500. test -n "$ac_init_help" && exit $ac_status
  1501. if $ac_init_version; then
  1502. cat <<\_ACEOF
  1503. libmicrohttpd configure 0.9.42
  1504. generated by GNU Autoconf 2.69
  1505. Copyright (C) 2012 Free Software Foundation, Inc.
  1506. This configure script is free software; the Free Software Foundation
  1507. gives unlimited permission to copy, distribute and modify it.
  1508. _ACEOF
  1509. exit
  1510. fi
  1511. ## ------------------------ ##
  1512. ## Autoconf initialization. ##
  1513. ## ------------------------ ##
  1514. # ac_fn_c_try_compile LINENO
  1515. # --------------------------
  1516. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1517. ac_fn_c_try_compile ()
  1518. {
  1519. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1520. rm -f conftest.$ac_objext
  1521. if { { ac_try="$ac_compile"
  1522. case "(($ac_try" in
  1523. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1524. *) ac_try_echo=$ac_try;;
  1525. esac
  1526. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1527. $as_echo "$ac_try_echo"; } >&5
  1528. (eval "$ac_compile") 2>conftest.err
  1529. ac_status=$?
  1530. if test -s conftest.err; then
  1531. grep -v '^ *+' conftest.err >conftest.er1
  1532. cat conftest.er1 >&5
  1533. mv -f conftest.er1 conftest.err
  1534. fi
  1535. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1536. test $ac_status = 0; } && {
  1537. test -z "$ac_c_werror_flag" ||
  1538. test ! -s conftest.err
  1539. } && test -s conftest.$ac_objext; then :
  1540. ac_retval=0
  1541. else
  1542. $as_echo "$as_me: failed program was:" >&5
  1543. sed 's/^/| /' conftest.$ac_ext >&5
  1544. ac_retval=1
  1545. fi
  1546. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1547. as_fn_set_status $ac_retval
  1548. } # ac_fn_c_try_compile
  1549. # ac_fn_c_try_link LINENO
  1550. # -----------------------
  1551. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1552. ac_fn_c_try_link ()
  1553. {
  1554. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1555. rm -f conftest.$ac_objext conftest$ac_exeext
  1556. if { { ac_try="$ac_link"
  1557. case "(($ac_try" in
  1558. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1559. *) ac_try_echo=$ac_try;;
  1560. esac
  1561. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1562. $as_echo "$ac_try_echo"; } >&5
  1563. (eval "$ac_link") 2>conftest.err
  1564. ac_status=$?
  1565. if test -s conftest.err; then
  1566. grep -v '^ *+' conftest.err >conftest.er1
  1567. cat conftest.er1 >&5
  1568. mv -f conftest.er1 conftest.err
  1569. fi
  1570. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1571. test $ac_status = 0; } && {
  1572. test -z "$ac_c_werror_flag" ||
  1573. test ! -s conftest.err
  1574. } && test -s conftest$ac_exeext && {
  1575. test "$cross_compiling" = yes ||
  1576. test -x conftest$ac_exeext
  1577. }; then :
  1578. ac_retval=0
  1579. else
  1580. $as_echo "$as_me: failed program was:" >&5
  1581. sed 's/^/| /' conftest.$ac_ext >&5
  1582. ac_retval=1
  1583. fi
  1584. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1585. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1586. # interfere with the next link command; also delete a directory that is
  1587. # left behind by Apple's compiler. We do this before executing the actions.
  1588. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1589. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1590. as_fn_set_status $ac_retval
  1591. } # ac_fn_c_try_link
  1592. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1593. # -------------------------------------------------------
  1594. # Tests whether HEADER exists and can be compiled using the include files in
  1595. # INCLUDES, setting the cache variable VAR accordingly.
  1596. ac_fn_c_check_header_compile ()
  1597. {
  1598. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1600. $as_echo_n "checking for $2... " >&6; }
  1601. if eval \${$3+:} false; then :
  1602. $as_echo_n "(cached) " >&6
  1603. else
  1604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1605. /* end confdefs.h. */
  1606. $4
  1607. #include <$2>
  1608. _ACEOF
  1609. if ac_fn_c_try_compile "$LINENO"; then :
  1610. eval "$3=yes"
  1611. else
  1612. eval "$3=no"
  1613. fi
  1614. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1615. fi
  1616. eval ac_res=\$$3
  1617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1618. $as_echo "$ac_res" >&6; }
  1619. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1620. } # ac_fn_c_check_header_compile
  1621. # ac_fn_c_try_cpp LINENO
  1622. # ----------------------
  1623. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1624. ac_fn_c_try_cpp ()
  1625. {
  1626. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1627. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1628. case "(($ac_try" in
  1629. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1630. *) ac_try_echo=$ac_try;;
  1631. esac
  1632. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1633. $as_echo "$ac_try_echo"; } >&5
  1634. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1635. ac_status=$?
  1636. if test -s conftest.err; then
  1637. grep -v '^ *+' conftest.err >conftest.er1
  1638. cat conftest.er1 >&5
  1639. mv -f conftest.er1 conftest.err
  1640. fi
  1641. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1642. test $ac_status = 0; } > conftest.i && {
  1643. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1644. test ! -s conftest.err
  1645. }; then :
  1646. ac_retval=0
  1647. else
  1648. $as_echo "$as_me: failed program was:" >&5
  1649. sed 's/^/| /' conftest.$ac_ext >&5
  1650. ac_retval=1
  1651. fi
  1652. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1653. as_fn_set_status $ac_retval
  1654. } # ac_fn_c_try_cpp
  1655. # ac_fn_c_try_run LINENO
  1656. # ----------------------
  1657. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1658. # that executables *can* be run.
  1659. ac_fn_c_try_run ()
  1660. {
  1661. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1662. if { { ac_try="$ac_link"
  1663. case "(($ac_try" in
  1664. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1665. *) ac_try_echo=$ac_try;;
  1666. esac
  1667. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1668. $as_echo "$ac_try_echo"; } >&5
  1669. (eval "$ac_link") 2>&5
  1670. ac_status=$?
  1671. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1672. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1673. { { case "(($ac_try" in
  1674. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1675. *) ac_try_echo=$ac_try;;
  1676. esac
  1677. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1678. $as_echo "$ac_try_echo"; } >&5
  1679. (eval "$ac_try") 2>&5
  1680. ac_status=$?
  1681. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1682. test $ac_status = 0; }; }; then :
  1683. ac_retval=0
  1684. else
  1685. $as_echo "$as_me: program exited with status $ac_status" >&5
  1686. $as_echo "$as_me: failed program was:" >&5
  1687. sed 's/^/| /' conftest.$ac_ext >&5
  1688. ac_retval=$ac_status
  1689. fi
  1690. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1691. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1692. as_fn_set_status $ac_retval
  1693. } # ac_fn_c_try_run
  1694. # ac_fn_c_check_func LINENO FUNC VAR
  1695. # ----------------------------------
  1696. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1697. ac_fn_c_check_func ()
  1698. {
  1699. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1701. $as_echo_n "checking for $2... " >&6; }
  1702. if eval \${$3+:} false; then :
  1703. $as_echo_n "(cached) " >&6
  1704. else
  1705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1706. /* end confdefs.h. */
  1707. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1708. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1709. #define $2 innocuous_$2
  1710. /* System header to define __stub macros and hopefully few prototypes,
  1711. which can conflict with char $2 (); below.
  1712. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1713. <limits.h> exists even on freestanding compilers. */
  1714. #ifdef __STDC__
  1715. # include <limits.h>
  1716. #else
  1717. # include <assert.h>
  1718. #endif
  1719. #undef $2
  1720. /* Override any GCC internal prototype to avoid an error.
  1721. Use char because int might match the return type of a GCC
  1722. builtin and then its argument prototype would still apply. */
  1723. #ifdef __cplusplus
  1724. extern "C"
  1725. #endif
  1726. char $2 ();
  1727. /* The GNU C library defines this for functions which it implements
  1728. to always fail with ENOSYS. Some functions are actually named
  1729. something starting with __ and the normal name is an alias. */
  1730. #if defined __stub_$2 || defined __stub___$2
  1731. choke me
  1732. #endif
  1733. int
  1734. main ()
  1735. {
  1736. return $2 ();
  1737. ;
  1738. return 0;
  1739. }
  1740. _ACEOF
  1741. if ac_fn_c_try_link "$LINENO"; then :
  1742. eval "$3=yes"
  1743. else
  1744. eval "$3=no"
  1745. fi
  1746. rm -f core conftest.err conftest.$ac_objext \
  1747. conftest$ac_exeext conftest.$ac_ext
  1748. fi
  1749. eval ac_res=\$$3
  1750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1751. $as_echo "$ac_res" >&6; }
  1752. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1753. } # ac_fn_c_check_func
  1754. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1755. # -------------------------------------------------------
  1756. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1757. # the include files in INCLUDES and setting the cache variable VAR
  1758. # accordingly.
  1759. ac_fn_c_check_header_mongrel ()
  1760. {
  1761. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1762. if eval \${$3+:} false; then :
  1763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1764. $as_echo_n "checking for $2... " >&6; }
  1765. if eval \${$3+:} false; then :
  1766. $as_echo_n "(cached) " >&6
  1767. fi
  1768. eval ac_res=\$$3
  1769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1770. $as_echo "$ac_res" >&6; }
  1771. else
  1772. # Is the header compilable?
  1773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1774. $as_echo_n "checking $2 usability... " >&6; }
  1775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1776. /* end confdefs.h. */
  1777. $4
  1778. #include <$2>
  1779. _ACEOF
  1780. if ac_fn_c_try_compile "$LINENO"; then :
  1781. ac_header_compiler=yes
  1782. else
  1783. ac_header_compiler=no
  1784. fi
  1785. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1787. $as_echo "$ac_header_compiler" >&6; }
  1788. # Is the header present?
  1789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1790. $as_echo_n "checking $2 presence... " >&6; }
  1791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1792. /* end confdefs.h. */
  1793. #include <$2>
  1794. _ACEOF
  1795. if ac_fn_c_try_cpp "$LINENO"; then :
  1796. ac_header_preproc=yes
  1797. else
  1798. ac_header_preproc=no
  1799. fi
  1800. rm -f conftest.err conftest.i conftest.$ac_ext
  1801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1802. $as_echo "$ac_header_preproc" >&6; }
  1803. # So? What about this header?
  1804. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1805. yes:no: )
  1806. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1807. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1808. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1809. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1810. ;;
  1811. no:yes:* )
  1812. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1813. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1814. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1815. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1816. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1817. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1818. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1819. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1820. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1821. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1822. ( $as_echo "## ------------------------------------ ##
  1823. ## Report this to libmicrohttpd@gnu.org ##
  1824. ## ------------------------------------ ##"
  1825. ) | sed "s/^/$as_me: WARNING: /" >&2
  1826. ;;
  1827. esac
  1828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1829. $as_echo_n "checking for $2... " >&6; }
  1830. if eval \${$3+:} false; then :
  1831. $as_echo_n "(cached) " >&6
  1832. else
  1833. eval "$3=\$ac_header_compiler"
  1834. fi
  1835. eval ac_res=\$$3
  1836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1837. $as_echo "$ac_res" >&6; }
  1838. fi
  1839. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1840. } # ac_fn_c_check_header_mongrel
  1841. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1842. # ----------------------------------------------------
  1843. # Tries to find if the field MEMBER exists in type AGGR, after including
  1844. # INCLUDES, setting cache variable VAR accordingly.
  1845. ac_fn_c_check_member ()
  1846. {
  1847. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1849. $as_echo_n "checking for $2.$3... " >&6; }
  1850. if eval \${$4+:} false; then :
  1851. $as_echo_n "(cached) " >&6
  1852. else
  1853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1854. /* end confdefs.h. */
  1855. $5
  1856. int
  1857. main ()
  1858. {
  1859. static $2 ac_aggr;
  1860. if (ac_aggr.$3)
  1861. return 0;
  1862. ;
  1863. return 0;
  1864. }
  1865. _ACEOF
  1866. if ac_fn_c_try_compile "$LINENO"; then :
  1867. eval "$4=yes"
  1868. else
  1869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1870. /* end confdefs.h. */
  1871. $5
  1872. int
  1873. main ()
  1874. {
  1875. static $2 ac_aggr;
  1876. if (sizeof ac_aggr.$3)
  1877. return 0;
  1878. ;
  1879. return 0;
  1880. }
  1881. _ACEOF
  1882. if ac_fn_c_try_compile "$LINENO"; then :
  1883. eval "$4=yes"
  1884. else
  1885. eval "$4=no"
  1886. fi
  1887. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1888. fi
  1889. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1890. fi
  1891. eval ac_res=\$$4
  1892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1893. $as_echo "$ac_res" >&6; }
  1894. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1895. } # ac_fn_c_check_member
  1896. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1897. # ---------------------------------------------
  1898. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1899. # accordingly.
  1900. ac_fn_c_check_decl ()
  1901. {
  1902. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1903. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1904. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1906. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1907. if eval \${$3+:} false; then :
  1908. $as_echo_n "(cached) " >&6
  1909. else
  1910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1911. /* end confdefs.h. */
  1912. $4
  1913. int
  1914. main ()
  1915. {
  1916. #ifndef $as_decl_name
  1917. #ifdef __cplusplus
  1918. (void) $as_decl_use;
  1919. #else
  1920. (void) $as_decl_name;
  1921. #endif
  1922. #endif
  1923. ;
  1924. return 0;
  1925. }
  1926. _ACEOF
  1927. if ac_fn_c_try_compile "$LINENO"; then :
  1928. eval "$3=yes"
  1929. else
  1930. eval "$3=no"
  1931. fi
  1932. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1933. fi
  1934. eval ac_res=\$$3
  1935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1936. $as_echo "$ac_res" >&6; }
  1937. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1938. } # ac_fn_c_check_decl
  1939. cat >config.log <<_ACEOF
  1940. This file contains any messages produced by compilers while
  1941. running configure, to aid debugging if configure makes a mistake.
  1942. It was created by libmicrohttpd $as_me 0.9.42, which was
  1943. generated by GNU Autoconf 2.69. Invocation command line was
  1944. $ $0 $@
  1945. _ACEOF
  1946. exec 5>>config.log
  1947. {
  1948. cat <<_ASUNAME
  1949. ## --------- ##
  1950. ## Platform. ##
  1951. ## --------- ##
  1952. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1953. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1954. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1955. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1956. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1957. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1958. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1959. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1960. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1961. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1962. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1963. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1964. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1965. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1966. _ASUNAME
  1967. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1968. for as_dir in $PATH
  1969. do
  1970. IFS=$as_save_IFS
  1971. test -z "$as_dir" && as_dir=.
  1972. $as_echo "PATH: $as_dir"
  1973. done
  1974. IFS=$as_save_IFS
  1975. } >&5
  1976. cat >&5 <<_ACEOF
  1977. ## ----------- ##
  1978. ## Core tests. ##
  1979. ## ----------- ##
  1980. _ACEOF
  1981. # Keep a trace of the command line.
  1982. # Strip out --no-create and --no-recursion so they do not pile up.
  1983. # Strip out --silent because we don't want to record it for future runs.
  1984. # Also quote any args containing shell meta-characters.
  1985. # Make two passes to allow for proper duplicate-argument suppression.
  1986. ac_configure_args=
  1987. ac_configure_args0=
  1988. ac_configure_args1=
  1989. ac_must_keep_next=false
  1990. for ac_pass in 1 2
  1991. do
  1992. for ac_arg
  1993. do
  1994. case $ac_arg in
  1995. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1996. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1997. | -silent | --silent | --silen | --sile | --sil)
  1998. continue ;;
  1999. *\'*)
  2000. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2001. esac
  2002. case $ac_pass in
  2003. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2004. 2)
  2005. as_fn_append ac_configure_args1 " '$ac_arg'"
  2006. if test $ac_must_keep_next = true; then
  2007. ac_must_keep_next=false # Got value, back to normal.
  2008. else
  2009. case $ac_arg in
  2010. *=* | --config-cache | -C | -disable-* | --disable-* \
  2011. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2012. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2013. | -with-* | --with-* | -without-* | --without-* | --x)
  2014. case "$ac_configure_args0 " in
  2015. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2016. esac
  2017. ;;
  2018. -* ) ac_must_keep_next=true ;;
  2019. esac
  2020. fi
  2021. as_fn_append ac_configure_args " '$ac_arg'"
  2022. ;;
  2023. esac
  2024. done
  2025. done
  2026. { ac_configure_args0=; unset ac_configure_args0;}
  2027. { ac_configure_args1=; unset ac_configure_args1;}
  2028. # When interrupted or exit'd, cleanup temporary files, and complete
  2029. # config.log. We remove comments because anyway the quotes in there
  2030. # would cause problems or look ugly.
  2031. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2032. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2033. trap 'exit_status=$?
  2034. # Save into config.log some information that might help in debugging.
  2035. {
  2036. echo
  2037. $as_echo "## ---------------- ##
  2038. ## Cache variables. ##
  2039. ## ---------------- ##"
  2040. echo
  2041. # The following way of writing the cache mishandles newlines in values,
  2042. (
  2043. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2044. eval ac_val=\$$ac_var
  2045. case $ac_val in #(
  2046. *${as_nl}*)
  2047. case $ac_var in #(
  2048. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2049. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2050. esac
  2051. case $ac_var in #(
  2052. _ | IFS | as_nl) ;; #(
  2053. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2054. *) { eval $ac_var=; unset $ac_var;} ;;
  2055. esac ;;
  2056. esac
  2057. done
  2058. (set) 2>&1 |
  2059. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2060. *${as_nl}ac_space=\ *)
  2061. sed -n \
  2062. "s/'\''/'\''\\\\'\'''\''/g;
  2063. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2064. ;; #(
  2065. *)
  2066. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2067. ;;
  2068. esac |
  2069. sort
  2070. )
  2071. echo
  2072. $as_echo "## ----------------- ##
  2073. ## Output variables. ##
  2074. ## ----------------- ##"
  2075. echo
  2076. for ac_var in $ac_subst_vars
  2077. do
  2078. eval ac_val=\$$ac_var
  2079. case $ac_val in
  2080. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2081. esac
  2082. $as_echo "$ac_var='\''$ac_val'\''"
  2083. done | sort
  2084. echo
  2085. if test -n "$ac_subst_files"; then
  2086. $as_echo "## ------------------- ##
  2087. ## File substitutions. ##
  2088. ## ------------------- ##"
  2089. echo
  2090. for ac_var in $ac_subst_files
  2091. do
  2092. eval ac_val=\$$ac_var
  2093. case $ac_val in
  2094. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2095. esac
  2096. $as_echo "$ac_var='\''$ac_val'\''"
  2097. done | sort
  2098. echo
  2099. fi
  2100. if test -s confdefs.h; then
  2101. $as_echo "## ----------- ##
  2102. ## confdefs.h. ##
  2103. ## ----------- ##"
  2104. echo
  2105. cat confdefs.h
  2106. echo
  2107. fi
  2108. test "$ac_signal" != 0 &&
  2109. $as_echo "$as_me: caught signal $ac_signal"
  2110. $as_echo "$as_me: exit $exit_status"
  2111. } >&5
  2112. rm -f core *.core core.conftest.* &&
  2113. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2114. exit $exit_status
  2115. ' 0
  2116. for ac_signal in 1 2 13 15; do
  2117. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2118. done
  2119. ac_signal=0
  2120. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2121. rm -f -r conftest* confdefs.h
  2122. $as_echo "/* confdefs.h */" > confdefs.h
  2123. # Predefined preprocessor variables.
  2124. cat >>confdefs.h <<_ACEOF
  2125. #define PACKAGE_NAME "$PACKAGE_NAME"
  2126. _ACEOF
  2127. cat >>confdefs.h <<_ACEOF
  2128. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2129. _ACEOF
  2130. cat >>confdefs.h <<_ACEOF
  2131. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2132. _ACEOF
  2133. cat >>confdefs.h <<_ACEOF
  2134. #define PACKAGE_STRING "$PACKAGE_STRING"
  2135. _ACEOF
  2136. cat >>confdefs.h <<_ACEOF
  2137. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2138. _ACEOF
  2139. cat >>confdefs.h <<_ACEOF
  2140. #define PACKAGE_URL "$PACKAGE_URL"
  2141. _ACEOF
  2142. # Let the site file select an alternate cache file if it wants to.
  2143. # Prefer an explicitly selected file to automatically selected ones.
  2144. ac_site_file1=NONE
  2145. ac_site_file2=NONE
  2146. if test -n "$CONFIG_SITE"; then
  2147. # We do not want a PATH search for config.site.
  2148. case $CONFIG_SITE in #((
  2149. -*) ac_site_file1=./$CONFIG_SITE;;
  2150. */*) ac_site_file1=$CONFIG_SITE;;
  2151. *) ac_site_file1=./$CONFIG_SITE;;
  2152. esac
  2153. elif test "x$prefix" != xNONE; then
  2154. ac_site_file1=$prefix/share/config.site
  2155. ac_site_file2=$prefix/etc/config.site
  2156. else
  2157. ac_site_file1=$ac_default_prefix/share/config.site
  2158. ac_site_file2=$ac_default_prefix/etc/config.site
  2159. fi
  2160. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2161. do
  2162. test "x$ac_site_file" = xNONE && continue
  2163. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2164. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2165. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2166. sed 's/^/| /' "$ac_site_file" >&5
  2167. . "$ac_site_file" \
  2168. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2169. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2170. as_fn_error $? "failed to load site script $ac_site_file
  2171. See \`config.log' for more details" "$LINENO" 5; }
  2172. fi
  2173. done
  2174. if test -r "$cache_file"; then
  2175. # Some versions of bash will fail to source /dev/null (special files
  2176. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2177. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2178. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2179. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2180. case $cache_file in
  2181. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2182. *) . "./$cache_file";;
  2183. esac
  2184. fi
  2185. else
  2186. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2187. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2188. >$cache_file
  2189. fi
  2190. as_fn_append ac_func_list " memmem"
  2191. as_fn_append ac_func_list " accept4"
  2192. # Check that the precious variables saved in the cache have kept the same
  2193. # value.
  2194. ac_cache_corrupted=false
  2195. for ac_var in $ac_precious_vars; do
  2196. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2197. eval ac_new_set=\$ac_env_${ac_var}_set
  2198. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2199. eval ac_new_val=\$ac_env_${ac_var}_value
  2200. case $ac_old_set,$ac_new_set in
  2201. set,)
  2202. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2203. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2204. ac_cache_corrupted=: ;;
  2205. ,set)
  2206. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2207. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2208. ac_cache_corrupted=: ;;
  2209. ,);;
  2210. *)
  2211. if test "x$ac_old_val" != "x$ac_new_val"; then
  2212. # differences in whitespace do not lead to failure.
  2213. ac_old_val_w=`echo x $ac_old_val`
  2214. ac_new_val_w=`echo x $ac_new_val`
  2215. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2216. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2217. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2218. ac_cache_corrupted=:
  2219. else
  2220. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2221. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2222. eval $ac_var=\$ac_old_val
  2223. fi
  2224. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2225. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2226. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2227. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2228. fi;;
  2229. esac
  2230. # Pass precious variables to config.status.
  2231. if test "$ac_new_set" = set; then
  2232. case $ac_new_val in
  2233. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2234. *) ac_arg=$ac_var=$ac_new_val ;;
  2235. esac
  2236. case " $ac_configure_args " in
  2237. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2238. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2239. esac
  2240. fi
  2241. done
  2242. if $ac_cache_corrupted; then
  2243. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2244. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2245. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2246. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2247. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2248. fi
  2249. ## -------------------- ##
  2250. ## Main body of script. ##
  2251. ## -------------------- ##
  2252. ac_ext=c
  2253. ac_cpp='$CPP $CPPFLAGS'
  2254. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2255. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2256. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2257. am__api_version='1.14'
  2258. ac_aux_dir=
  2259. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2260. if test -f "$ac_dir/install-sh"; then
  2261. ac_aux_dir=$ac_dir
  2262. ac_install_sh="$ac_aux_dir/install-sh -c"
  2263. break
  2264. elif test -f "$ac_dir/install.sh"; then
  2265. ac_aux_dir=$ac_dir
  2266. ac_install_sh="$ac_aux_dir/install.sh -c"
  2267. break
  2268. elif test -f "$ac_dir/shtool"; then
  2269. ac_aux_dir=$ac_dir
  2270. ac_install_sh="$ac_aux_dir/shtool install -c"
  2271. break
  2272. fi
  2273. done
  2274. if test -z "$ac_aux_dir"; then
  2275. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2276. fi
  2277. # These three variables are undocumented and unsupported,
  2278. # and are intended to be withdrawn in a future Autoconf release.
  2279. # They can cause serious problems if a builder's source tree is in a directory
  2280. # whose full name contains unusual characters.
  2281. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2282. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2283. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2284. # Find a good install program. We prefer a C program (faster),
  2285. # so one script is as good as another. But avoid the broken or
  2286. # incompatible versions:
  2287. # SysV /etc/install, /usr/sbin/install
  2288. # SunOS /usr/etc/install
  2289. # IRIX /sbin/install
  2290. # AIX /bin/install
  2291. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2292. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2293. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2294. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2295. # OS/2's system install, which has a completely different semantic
  2296. # ./install, which can be erroneously created by make from ./install.sh.
  2297. # Reject install programs that cannot install multiple files.
  2298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2299. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2300. if test -z "$INSTALL"; then
  2301. if ${ac_cv_path_install+:} false; then :
  2302. $as_echo_n "(cached) " >&6
  2303. else
  2304. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2305. for as_dir in $PATH
  2306. do
  2307. IFS=$as_save_IFS
  2308. test -z "$as_dir" && as_dir=.
  2309. # Account for people who put trailing slashes in PATH elements.
  2310. case $as_dir/ in #((
  2311. ./ | .// | /[cC]/* | \
  2312. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2313. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2314. /usr/ucb/* ) ;;
  2315. *)
  2316. # OSF1 and SCO ODT 3.0 have their own names for install.
  2317. # Don't use installbsd from OSF since it installs stuff as root
  2318. # by default.
  2319. for ac_prog in ginstall scoinst install; do
  2320. for ac_exec_ext in '' $ac_executable_extensions; do
  2321. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2322. if test $ac_prog = install &&
  2323. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2324. # AIX install. It has an incompatible calling convention.
  2325. :
  2326. elif test $ac_prog = install &&
  2327. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2328. # program-specific install script used by HP pwplus--don't use.
  2329. :
  2330. else
  2331. rm -rf conftest.one conftest.two conftest.dir
  2332. echo one > conftest.one
  2333. echo two > conftest.two
  2334. mkdir conftest.dir
  2335. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2336. test -s conftest.one && test -s conftest.two &&
  2337. test -s conftest.dir/conftest.one &&
  2338. test -s conftest.dir/conftest.two
  2339. then
  2340. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2341. break 3
  2342. fi
  2343. fi
  2344. fi
  2345. done
  2346. done
  2347. ;;
  2348. esac
  2349. done
  2350. IFS=$as_save_IFS
  2351. rm -rf conftest.one conftest.two conftest.dir
  2352. fi
  2353. if test "${ac_cv_path_install+set}" = set; then
  2354. INSTALL=$ac_cv_path_install
  2355. else
  2356. # As a last resort, use the slow shell script. Don't cache a
  2357. # value for INSTALL within a source directory, because that will
  2358. # break other packages using the cache if that directory is
  2359. # removed, or if the value is a relative name.
  2360. INSTALL=$ac_install_sh
  2361. fi
  2362. fi
  2363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2364. $as_echo "$INSTALL" >&6; }
  2365. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2366. # It thinks the first close brace ends the variable substitution.
  2367. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2368. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2369. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2371. $as_echo_n "checking whether build environment is sane... " >&6; }
  2372. # Reject unsafe characters in $srcdir or the absolute working directory
  2373. # name. Accept space and tab only in the latter.
  2374. am_lf='
  2375. '
  2376. case `pwd` in
  2377. *[\\\"\#\$\&\'\`$am_lf]*)
  2378. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2379. esac
  2380. case $srcdir in
  2381. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2382. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2383. esac
  2384. # Do 'set' in a subshell so we don't clobber the current shell's
  2385. # arguments. Must try -L first in case configure is actually a
  2386. # symlink; some systems play weird games with the mod time of symlinks
  2387. # (eg FreeBSD returns the mod time of the symlink's containing
  2388. # directory).
  2389. if (
  2390. am_has_slept=no
  2391. for am_try in 1 2; do
  2392. echo "timestamp, slept: $am_has_slept" > conftest.file
  2393. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2394. if test "$*" = "X"; then
  2395. # -L didn't work.
  2396. set X `ls -t "$srcdir/configure" conftest.file`
  2397. fi
  2398. if test "$*" != "X $srcdir/configure conftest.file" \
  2399. && test "$*" != "X conftest.file $srcdir/configure"; then
  2400. # If neither matched, then we have a broken ls. This can happen
  2401. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2402. # broken ls alias from the environment. This has actually
  2403. # happened. Such a system could not be considered "sane".
  2404. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2405. alias in your environment" "$LINENO" 5
  2406. fi
  2407. if test "$2" = conftest.file || test $am_try -eq 2; then
  2408. break
  2409. fi
  2410. # Just in case.
  2411. sleep 1
  2412. am_has_slept=yes
  2413. done
  2414. test "$2" = conftest.file
  2415. )
  2416. then
  2417. # Ok.
  2418. :
  2419. else
  2420. as_fn_error $? "newly created file is older than distributed files!
  2421. Check your system clock" "$LINENO" 5
  2422. fi
  2423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2424. $as_echo "yes" >&6; }
  2425. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2426. # generated files are strictly newer.
  2427. am_sleep_pid=
  2428. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2429. ( sleep 1 ) &
  2430. am_sleep_pid=$!
  2431. fi
  2432. rm -f conftest.file
  2433. test "$program_prefix" != NONE &&
  2434. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2435. # Use a double $ so make ignores it.
  2436. test "$program_suffix" != NONE &&
  2437. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2438. # Double any \ or $.
  2439. # By default was `s,x,x', remove it if useless.
  2440. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2441. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2442. # Expand $ac_aux_dir to an absolute path.
  2443. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2444. if test x"${MISSING+set}" != xset; then
  2445. case $am_aux_dir in
  2446. *\ * | *\ *)
  2447. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2448. *)
  2449. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2450. esac
  2451. fi
  2452. # Use eval to expand $SHELL
  2453. if eval "$MISSING --is-lightweight"; then
  2454. am_missing_run="$MISSING "
  2455. else
  2456. am_missing_run=
  2457. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2458. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2459. fi
  2460. if test x"${install_sh}" != xset; then
  2461. case $am_aux_dir in
  2462. *\ * | *\ *)
  2463. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2464. *)
  2465. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2466. esac
  2467. fi
  2468. # Installed binaries are usually stripped using 'strip' when the user
  2469. # run "make install-strip". However 'strip' might not be the right
  2470. # tool to use in cross-compilation environments, therefore Automake
  2471. # will honor the 'STRIP' environment variable to overrule this program.
  2472. if test "$cross_compiling" != no; then
  2473. if test -n "$ac_tool_prefix"; then
  2474. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2475. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2477. $as_echo_n "checking for $ac_word... " >&6; }
  2478. if ${ac_cv_prog_STRIP+:} false; then :
  2479. $as_echo_n "(cached) " >&6
  2480. else
  2481. if test -n "$STRIP"; then
  2482. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2483. else
  2484. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2485. for as_dir in $PATH
  2486. do
  2487. IFS=$as_save_IFS
  2488. test -z "$as_dir" && as_dir=.
  2489. for ac_exec_ext in '' $ac_executable_extensions; do
  2490. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2491. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2492. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2493. break 2
  2494. fi
  2495. done
  2496. done
  2497. IFS=$as_save_IFS
  2498. fi
  2499. fi
  2500. STRIP=$ac_cv_prog_STRIP
  2501. if test -n "$STRIP"; then
  2502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2503. $as_echo "$STRIP" >&6; }
  2504. else
  2505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2506. $as_echo "no" >&6; }
  2507. fi
  2508. fi
  2509. if test -z "$ac_cv_prog_STRIP"; then
  2510. ac_ct_STRIP=$STRIP
  2511. # Extract the first word of "strip", so it can be a program name with args.
  2512. set dummy strip; ac_word=$2
  2513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2514. $as_echo_n "checking for $ac_word... " >&6; }
  2515. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2516. $as_echo_n "(cached) " >&6
  2517. else
  2518. if test -n "$ac_ct_STRIP"; then
  2519. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2520. else
  2521. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2522. for as_dir in $PATH
  2523. do
  2524. IFS=$as_save_IFS
  2525. test -z "$as_dir" && as_dir=.
  2526. for ac_exec_ext in '' $ac_executable_extensions; do
  2527. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2528. ac_cv_prog_ac_ct_STRIP="strip"
  2529. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2530. break 2
  2531. fi
  2532. done
  2533. done
  2534. IFS=$as_save_IFS
  2535. fi
  2536. fi
  2537. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2538. if test -n "$ac_ct_STRIP"; then
  2539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2540. $as_echo "$ac_ct_STRIP" >&6; }
  2541. else
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2543. $as_echo "no" >&6; }
  2544. fi
  2545. if test "x$ac_ct_STRIP" = x; then
  2546. STRIP=":"
  2547. else
  2548. case $cross_compiling:$ac_tool_warned in
  2549. yes:)
  2550. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2551. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2552. ac_tool_warned=yes ;;
  2553. esac
  2554. STRIP=$ac_ct_STRIP
  2555. fi
  2556. else
  2557. STRIP="$ac_cv_prog_STRIP"
  2558. fi
  2559. fi
  2560. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2562. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2563. if test -z "$MKDIR_P"; then
  2564. if ${ac_cv_path_mkdir+:} false; then :
  2565. $as_echo_n "(cached) " >&6
  2566. else
  2567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2568. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2569. do
  2570. IFS=$as_save_IFS
  2571. test -z "$as_dir" && as_dir=.
  2572. for ac_prog in mkdir gmkdir; do
  2573. for ac_exec_ext in '' $ac_executable_extensions; do
  2574. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2575. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2576. 'mkdir (GNU coreutils) '* | \
  2577. 'mkdir (coreutils) '* | \
  2578. 'mkdir (fileutils) '4.1*)
  2579. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2580. break 3;;
  2581. esac
  2582. done
  2583. done
  2584. done
  2585. IFS=$as_save_IFS
  2586. fi
  2587. test -d ./--version && rmdir ./--version
  2588. if test "${ac_cv_path_mkdir+set}" = set; then
  2589. MKDIR_P="$ac_cv_path_mkdir -p"
  2590. else
  2591. # As a last resort, use the slow shell script. Don't cache a
  2592. # value for MKDIR_P within a source directory, because that will
  2593. # break other packages using the cache if that directory is
  2594. # removed, or if the value is a relative name.
  2595. MKDIR_P="$ac_install_sh -d"
  2596. fi
  2597. fi
  2598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2599. $as_echo "$MKDIR_P" >&6; }
  2600. for ac_prog in gawk mawk nawk awk
  2601. do
  2602. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2603. set dummy $ac_prog; ac_word=$2
  2604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2605. $as_echo_n "checking for $ac_word... " >&6; }
  2606. if ${ac_cv_prog_AWK+:} false; then :
  2607. $as_echo_n "(cached) " >&6
  2608. else
  2609. if test -n "$AWK"; then
  2610. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2611. else
  2612. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2613. for as_dir in $PATH
  2614. do
  2615. IFS=$as_save_IFS
  2616. test -z "$as_dir" && as_dir=.
  2617. for ac_exec_ext in '' $ac_executable_extensions; do
  2618. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2619. ac_cv_prog_AWK="$ac_prog"
  2620. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2621. break 2
  2622. fi
  2623. done
  2624. done
  2625. IFS=$as_save_IFS
  2626. fi
  2627. fi
  2628. AWK=$ac_cv_prog_AWK
  2629. if test -n "$AWK"; then
  2630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2631. $as_echo "$AWK" >&6; }
  2632. else
  2633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2634. $as_echo "no" >&6; }
  2635. fi
  2636. test -n "$AWK" && break
  2637. done
  2638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2639. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2640. set x ${MAKE-make}
  2641. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2642. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2643. $as_echo_n "(cached) " >&6
  2644. else
  2645. cat >conftest.make <<\_ACEOF
  2646. SHELL = /bin/sh
  2647. all:
  2648. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2649. _ACEOF
  2650. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2651. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2652. *@@@%%%=?*=@@@%%%*)
  2653. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2654. *)
  2655. eval ac_cv_prog_make_${ac_make}_set=no;;
  2656. esac
  2657. rm -f conftest.make
  2658. fi
  2659. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2661. $as_echo "yes" >&6; }
  2662. SET_MAKE=
  2663. else
  2664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2665. $as_echo "no" >&6; }
  2666. SET_MAKE="MAKE=${MAKE-make}"
  2667. fi
  2668. rm -rf .tst 2>/dev/null
  2669. mkdir .tst 2>/dev/null
  2670. if test -d .tst; then
  2671. am__leading_dot=.
  2672. else
  2673. am__leading_dot=_
  2674. fi
  2675. rmdir .tst 2>/dev/null
  2676. # Check whether --enable-silent-rules was given.
  2677. if test "${enable_silent_rules+set}" = set; then :
  2678. enableval=$enable_silent_rules;
  2679. fi
  2680. case $enable_silent_rules in # (((
  2681. yes) AM_DEFAULT_VERBOSITY=0;;
  2682. no) AM_DEFAULT_VERBOSITY=1;;
  2683. *) AM_DEFAULT_VERBOSITY=1;;
  2684. esac
  2685. am_make=${MAKE-make}
  2686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2687. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2688. if ${am_cv_make_support_nested_variables+:} false; then :
  2689. $as_echo_n "(cached) " >&6
  2690. else
  2691. if $as_echo 'TRUE=$(BAR$(V))
  2692. BAR0=false
  2693. BAR1=true
  2694. V=1
  2695. am__doit:
  2696. @$(TRUE)
  2697. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2698. am_cv_make_support_nested_variables=yes
  2699. else
  2700. am_cv_make_support_nested_variables=no
  2701. fi
  2702. fi
  2703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2704. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2705. if test $am_cv_make_support_nested_variables = yes; then
  2706. AM_V='$(V)'
  2707. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2708. else
  2709. AM_V=$AM_DEFAULT_VERBOSITY
  2710. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2711. fi
  2712. AM_BACKSLASH='\'
  2713. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2714. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2715. # is not polluted with repeated "-I."
  2716. am__isrc=' -I$(srcdir)'
  2717. # test to see if srcdir already configured
  2718. if test -f $srcdir/config.status; then
  2719. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2720. fi
  2721. fi
  2722. # test whether we have cygpath
  2723. if test -z "$CYGPATH_W"; then
  2724. if (cygpath --version) >/dev/null 2>/dev/null; then
  2725. CYGPATH_W='cygpath -w'
  2726. else
  2727. CYGPATH_W=echo
  2728. fi
  2729. fi
  2730. # Define the identity of the package.
  2731. PACKAGE='libmicrohttpd'
  2732. VERSION='0.9.42'
  2733. cat >>confdefs.h <<_ACEOF
  2734. #define PACKAGE "$PACKAGE"
  2735. _ACEOF
  2736. cat >>confdefs.h <<_ACEOF
  2737. #define VERSION "$VERSION"
  2738. _ACEOF
  2739. # Some tools Automake needs.
  2740. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2741. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2742. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2743. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2744. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2745. # For better backward compatibility. To be removed once Automake 1.9.x
  2746. # dies out for good. For more background, see:
  2747. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2748. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2749. mkdir_p='$(MKDIR_P)'
  2750. # We need awk for the "check" target. The system "awk" is bad on
  2751. # some platforms.
  2752. # Always define AMTAR for backward compatibility. Yes, it's still used
  2753. # in the wild :-( We should find a proper way to deprecate it ...
  2754. AMTAR='$${TAR-tar}'
  2755. # We'll loop over all known methods to create a tar archive until one works.
  2756. _am_tools='gnutar pax cpio none'
  2757. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2758. # POSIX will say in a future version that running "rm -f" with no argument
  2759. # is OK; and we want to be able to make that assumption in our Makefile
  2760. # recipes. So use an aggressive probe to check that the usage we want is
  2761. # actually supported "in the wild" to an acceptable degree.
  2762. # See automake bug#10828.
  2763. # To make any issue more visible, cause the running configure to be aborted
  2764. # by default if the 'rm' program in use doesn't match our expectations; the
  2765. # user can still override this though.
  2766. if rm -f && rm -fr && rm -rf; then : OK; else
  2767. cat >&2 <<'END'
  2768. Oops!
  2769. Your 'rm' program seems unable to run without file operands specified
  2770. on the command line, even when the '-f' option is present. This is contrary
  2771. to the behaviour of most rm programs out there, and not conforming with
  2772. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2773. Please tell bug-automake@gnu.org about your system, including the value
  2774. of your $PATH and any error possibly output before this message. This
  2775. can help us improve future automake versions.
  2776. END
  2777. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2778. echo 'Configuration will proceed anyway, since you have set the' >&2
  2779. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2780. echo >&2
  2781. else
  2782. cat >&2 <<'END'
  2783. Aborting the configuration process, to ensure you take notice of the issue.
  2784. You can download and install GNU coreutils to get an 'rm' implementation
  2785. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2786. If you want to complete the configuration process using your problematic
  2787. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2788. to "yes", and re-run configure.
  2789. END
  2790. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2791. fi
  2792. fi
  2793. ac_config_headers="$ac_config_headers MHD_config.h"
  2794. LIB_VERSION_CURRENT=42
  2795. LIB_VERSION_REVISION=0
  2796. LIB_VERSION_AGE=32
  2797. LIBSPDY_VERSION_CURRENT=0
  2798. LIBSPDY_VERSION_REVISION=0
  2799. LIBSPDY_VERSION_AGE=0
  2800. if test `uname -s` = "OS/390"
  2801. then
  2802. # configure binaries for z/OS
  2803. if test -z "$CC"
  2804. then
  2805. CC=`pwd`"/contrib/xcc"
  2806. chmod +x $CC || true
  2807. fi
  2808. if test -z "$CPP"
  2809. then
  2810. CPP="c89 -E"
  2811. fi
  2812. if test -z "$CXXCPP"
  2813. then
  2814. CXXCPP="c++ -E -+"
  2815. fi
  2816. # _CCC_CCMODE=1
  2817. # _C89_CCMODE=1
  2818. fi
  2819. # Checks for programs.
  2820. for ac_prog in gawk mawk nawk awk
  2821. do
  2822. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2823. set dummy $ac_prog; ac_word=$2
  2824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2825. $as_echo_n "checking for $ac_word... " >&6; }
  2826. if ${ac_cv_prog_AWK+:} false; then :
  2827. $as_echo_n "(cached) " >&6
  2828. else
  2829. if test -n "$AWK"; then
  2830. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2831. else
  2832. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2833. for as_dir in $PATH
  2834. do
  2835. IFS=$as_save_IFS
  2836. test -z "$as_dir" && as_dir=.
  2837. for ac_exec_ext in '' $ac_executable_extensions; do
  2838. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2839. ac_cv_prog_AWK="$ac_prog"
  2840. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2841. break 2
  2842. fi
  2843. done
  2844. done
  2845. IFS=$as_save_IFS
  2846. fi
  2847. fi
  2848. AWK=$ac_cv_prog_AWK
  2849. if test -n "$AWK"; then
  2850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2851. $as_echo "$AWK" >&6; }
  2852. else
  2853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2854. $as_echo "no" >&6; }
  2855. fi
  2856. test -n "$AWK" && break
  2857. done
  2858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  2859. $as_echo_n "checking whether ln -s works... " >&6; }
  2860. LN_S=$as_ln_s
  2861. if test "$LN_S" = "ln -s"; then
  2862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2863. $as_echo "yes" >&6; }
  2864. else
  2865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  2866. $as_echo "no, using $LN_S" >&6; }
  2867. fi
  2868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2869. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2870. set x ${MAKE-make}
  2871. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2872. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2873. $as_echo_n "(cached) " >&6
  2874. else
  2875. cat >conftest.make <<\_ACEOF
  2876. SHELL = /bin/sh
  2877. all:
  2878. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2879. _ACEOF
  2880. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2881. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2882. *@@@%%%=?*=@@@%%%*)
  2883. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2884. *)
  2885. eval ac_cv_prog_make_${ac_make}_set=no;;
  2886. esac
  2887. rm -f conftest.make
  2888. fi
  2889. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2891. $as_echo "yes" >&6; }
  2892. SET_MAKE=
  2893. else
  2894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2895. $as_echo "no" >&6; }
  2896. SET_MAKE="MAKE=${MAKE-make}"
  2897. fi
  2898. # Make sure we can run config.sub.
  2899. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2900. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2902. $as_echo_n "checking build system type... " >&6; }
  2903. if ${ac_cv_build+:} false; then :
  2904. $as_echo_n "(cached) " >&6
  2905. else
  2906. ac_build_alias=$build_alias
  2907. test "x$ac_build_alias" = x &&
  2908. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2909. test "x$ac_build_alias" = x &&
  2910. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2911. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2912. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2913. fi
  2914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2915. $as_echo "$ac_cv_build" >&6; }
  2916. case $ac_cv_build in
  2917. *-*-*) ;;
  2918. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2919. esac
  2920. build=$ac_cv_build
  2921. ac_save_IFS=$IFS; IFS='-'
  2922. set x $ac_cv_build
  2923. shift
  2924. build_cpu=$1
  2925. build_vendor=$2
  2926. shift; shift
  2927. # Remember, the first character of IFS is used to create $*,
  2928. # except with old shells:
  2929. build_os=$*
  2930. IFS=$ac_save_IFS
  2931. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2933. $as_echo_n "checking host system type... " >&6; }
  2934. if ${ac_cv_host+:} false; then :
  2935. $as_echo_n "(cached) " >&6
  2936. else
  2937. if test "x$host_alias" = x; then
  2938. ac_cv_host=$ac_cv_build
  2939. else
  2940. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2941. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2942. fi
  2943. fi
  2944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2945. $as_echo "$ac_cv_host" >&6; }
  2946. case $ac_cv_host in
  2947. *-*-*) ;;
  2948. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2949. esac
  2950. host=$ac_cv_host
  2951. ac_save_IFS=$IFS; IFS='-'
  2952. set x $ac_cv_host
  2953. shift
  2954. host_cpu=$1
  2955. host_vendor=$2
  2956. shift; shift
  2957. # Remember, the first character of IFS is used to create $*,
  2958. # except with old shells:
  2959. host_os=$*
  2960. IFS=$ac_save_IFS
  2961. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2962. DEPDIR="${am__leading_dot}deps"
  2963. ac_config_commands="$ac_config_commands depfiles"
  2964. am_make=${MAKE-make}
  2965. cat > confinc << 'END'
  2966. am__doit:
  2967. @echo this is the am__doit target
  2968. .PHONY: am__doit
  2969. END
  2970. # If we don't find an include directive, just comment out the code.
  2971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2972. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2973. am__include="#"
  2974. am__quote=
  2975. _am_result=none
  2976. # First try GNU make style include.
  2977. echo "include confinc" > confmf
  2978. # Ignore all kinds of additional output from 'make'.
  2979. case `$am_make -s -f confmf 2> /dev/null` in #(
  2980. *the\ am__doit\ target*)
  2981. am__include=include
  2982. am__quote=
  2983. _am_result=GNU
  2984. ;;
  2985. esac
  2986. # Now try BSD make style include.
  2987. if test "$am__include" = "#"; then
  2988. echo '.include "confinc"' > confmf
  2989. case `$am_make -s -f confmf 2> /dev/null` in #(
  2990. *the\ am__doit\ target*)
  2991. am__include=.include
  2992. am__quote="\""
  2993. _am_result=BSD
  2994. ;;
  2995. esac
  2996. fi
  2997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2998. $as_echo "$_am_result" >&6; }
  2999. rm -f confinc confmf
  3000. # Check whether --enable-dependency-tracking was given.
  3001. if test "${enable_dependency_tracking+set}" = set; then :
  3002. enableval=$enable_dependency_tracking;
  3003. fi
  3004. if test "x$enable_dependency_tracking" != xno; then
  3005. am_depcomp="$ac_aux_dir/depcomp"
  3006. AMDEPBACKSLASH='\'
  3007. am__nodep='_no'
  3008. fi
  3009. if test "x$enable_dependency_tracking" != xno; then
  3010. AMDEP_TRUE=
  3011. AMDEP_FALSE='#'
  3012. else
  3013. AMDEP_TRUE='#'
  3014. AMDEP_FALSE=
  3015. fi
  3016. ac_ext=c
  3017. ac_cpp='$CPP $CPPFLAGS'
  3018. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3019. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3020. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3021. if test -n "$ac_tool_prefix"; then
  3022. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3023. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3025. $as_echo_n "checking for $ac_word... " >&6; }
  3026. if ${ac_cv_prog_CC+:} false; then :
  3027. $as_echo_n "(cached) " >&6
  3028. else
  3029. if test -n "$CC"; then
  3030. ac_cv_prog_CC="$CC" # Let the user override the test.
  3031. else
  3032. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3033. for as_dir in $PATH
  3034. do
  3035. IFS=$as_save_IFS
  3036. test -z "$as_dir" && as_dir=.
  3037. for ac_exec_ext in '' $ac_executable_extensions; do
  3038. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3039. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3040. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3041. break 2
  3042. fi
  3043. done
  3044. done
  3045. IFS=$as_save_IFS
  3046. fi
  3047. fi
  3048. CC=$ac_cv_prog_CC
  3049. if test -n "$CC"; then
  3050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3051. $as_echo "$CC" >&6; }
  3052. else
  3053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3054. $as_echo "no" >&6; }
  3055. fi
  3056. fi
  3057. if test -z "$ac_cv_prog_CC"; then
  3058. ac_ct_CC=$CC
  3059. # Extract the first word of "gcc", so it can be a program name with args.
  3060. set dummy gcc; ac_word=$2
  3061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3062. $as_echo_n "checking for $ac_word... " >&6; }
  3063. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3064. $as_echo_n "(cached) " >&6
  3065. else
  3066. if test -n "$ac_ct_CC"; then
  3067. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3068. else
  3069. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3070. for as_dir in $PATH
  3071. do
  3072. IFS=$as_save_IFS
  3073. test -z "$as_dir" && as_dir=.
  3074. for ac_exec_ext in '' $ac_executable_extensions; do
  3075. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3076. ac_cv_prog_ac_ct_CC="gcc"
  3077. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3078. break 2
  3079. fi
  3080. done
  3081. done
  3082. IFS=$as_save_IFS
  3083. fi
  3084. fi
  3085. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3086. if test -n "$ac_ct_CC"; then
  3087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3088. $as_echo "$ac_ct_CC" >&6; }
  3089. else
  3090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3091. $as_echo "no" >&6; }
  3092. fi
  3093. if test "x$ac_ct_CC" = x; then
  3094. CC=""
  3095. else
  3096. case $cross_compiling:$ac_tool_warned in
  3097. yes:)
  3098. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3099. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3100. ac_tool_warned=yes ;;
  3101. esac
  3102. CC=$ac_ct_CC
  3103. fi
  3104. else
  3105. CC="$ac_cv_prog_CC"
  3106. fi
  3107. if test -z "$CC"; then
  3108. if test -n "$ac_tool_prefix"; then
  3109. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3110. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3112. $as_echo_n "checking for $ac_word... " >&6; }
  3113. if ${ac_cv_prog_CC+:} false; then :
  3114. $as_echo_n "(cached) " >&6
  3115. else
  3116. if test -n "$CC"; then
  3117. ac_cv_prog_CC="$CC" # Let the user override the test.
  3118. else
  3119. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3120. for as_dir in $PATH
  3121. do
  3122. IFS=$as_save_IFS
  3123. test -z "$as_dir" && as_dir=.
  3124. for ac_exec_ext in '' $ac_executable_extensions; do
  3125. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3126. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3127. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3128. break 2
  3129. fi
  3130. done
  3131. done
  3132. IFS=$as_save_IFS
  3133. fi
  3134. fi
  3135. CC=$ac_cv_prog_CC
  3136. if test -n "$CC"; then
  3137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3138. $as_echo "$CC" >&6; }
  3139. else
  3140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3141. $as_echo "no" >&6; }
  3142. fi
  3143. fi
  3144. fi
  3145. if test -z "$CC"; then
  3146. # Extract the first word of "cc", so it can be a program name with args.
  3147. set dummy cc; ac_word=$2
  3148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3149. $as_echo_n "checking for $ac_word... " >&6; }
  3150. if ${ac_cv_prog_CC+:} false; then :
  3151. $as_echo_n "(cached) " >&6
  3152. else
  3153. if test -n "$CC"; then
  3154. ac_cv_prog_CC="$CC" # Let the user override the test.
  3155. else
  3156. ac_prog_rejected=no
  3157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3158. for as_dir in $PATH
  3159. do
  3160. IFS=$as_save_IFS
  3161. test -z "$as_dir" && as_dir=.
  3162. for ac_exec_ext in '' $ac_executable_extensions; do
  3163. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3164. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3165. ac_prog_rejected=yes
  3166. continue
  3167. fi
  3168. ac_cv_prog_CC="cc"
  3169. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3170. break 2
  3171. fi
  3172. done
  3173. done
  3174. IFS=$as_save_IFS
  3175. if test $ac_prog_rejected = yes; then
  3176. # We found a bogon in the path, so make sure we never use it.
  3177. set dummy $ac_cv_prog_CC
  3178. shift
  3179. if test $# != 0; then
  3180. # We chose a different compiler from the bogus one.
  3181. # However, it has the same basename, so the bogon will be chosen
  3182. # first if we set CC to just the basename; use the full file name.
  3183. shift
  3184. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3185. fi
  3186. fi
  3187. fi
  3188. fi
  3189. CC=$ac_cv_prog_CC
  3190. if test -n "$CC"; then
  3191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3192. $as_echo "$CC" >&6; }
  3193. else
  3194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3195. $as_echo "no" >&6; }
  3196. fi
  3197. fi
  3198. if test -z "$CC"; then
  3199. if test -n "$ac_tool_prefix"; then
  3200. for ac_prog in cl.exe
  3201. do
  3202. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3203. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3205. $as_echo_n "checking for $ac_word... " >&6; }
  3206. if ${ac_cv_prog_CC+:} false; then :
  3207. $as_echo_n "(cached) " >&6
  3208. else
  3209. if test -n "$CC"; then
  3210. ac_cv_prog_CC="$CC" # Let the user override the test.
  3211. else
  3212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3213. for as_dir in $PATH
  3214. do
  3215. IFS=$as_save_IFS
  3216. test -z "$as_dir" && as_dir=.
  3217. for ac_exec_ext in '' $ac_executable_extensions; do
  3218. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3219. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3220. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3221. break 2
  3222. fi
  3223. done
  3224. done
  3225. IFS=$as_save_IFS
  3226. fi
  3227. fi
  3228. CC=$ac_cv_prog_CC
  3229. if test -n "$CC"; then
  3230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3231. $as_echo "$CC" >&6; }
  3232. else
  3233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3234. $as_echo "no" >&6; }
  3235. fi
  3236. test -n "$CC" && break
  3237. done
  3238. fi
  3239. if test -z "$CC"; then
  3240. ac_ct_CC=$CC
  3241. for ac_prog in cl.exe
  3242. do
  3243. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3244. set dummy $ac_prog; ac_word=$2
  3245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3246. $as_echo_n "checking for $ac_word... " >&6; }
  3247. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3248. $as_echo_n "(cached) " >&6
  3249. else
  3250. if test -n "$ac_ct_CC"; then
  3251. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3252. else
  3253. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3254. for as_dir in $PATH
  3255. do
  3256. IFS=$as_save_IFS
  3257. test -z "$as_dir" && as_dir=.
  3258. for ac_exec_ext in '' $ac_executable_extensions; do
  3259. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3260. ac_cv_prog_ac_ct_CC="$ac_prog"
  3261. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3262. break 2
  3263. fi
  3264. done
  3265. done
  3266. IFS=$as_save_IFS
  3267. fi
  3268. fi
  3269. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3270. if test -n "$ac_ct_CC"; then
  3271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3272. $as_echo "$ac_ct_CC" >&6; }
  3273. else
  3274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3275. $as_echo "no" >&6; }
  3276. fi
  3277. test -n "$ac_ct_CC" && break
  3278. done
  3279. if test "x$ac_ct_CC" = x; then
  3280. CC=""
  3281. else
  3282. case $cross_compiling:$ac_tool_warned in
  3283. yes:)
  3284. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3285. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3286. ac_tool_warned=yes ;;
  3287. esac
  3288. CC=$ac_ct_CC
  3289. fi
  3290. fi
  3291. fi
  3292. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3293. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3294. as_fn_error $? "no acceptable C compiler found in \$PATH
  3295. See \`config.log' for more details" "$LINENO" 5; }
  3296. # Provide some information about the compiler.
  3297. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3298. set X $ac_compile
  3299. ac_compiler=$2
  3300. for ac_option in --version -v -V -qversion; do
  3301. { { ac_try="$ac_compiler $ac_option >&5"
  3302. case "(($ac_try" in
  3303. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3304. *) ac_try_echo=$ac_try;;
  3305. esac
  3306. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3307. $as_echo "$ac_try_echo"; } >&5
  3308. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3309. ac_status=$?
  3310. if test -s conftest.err; then
  3311. sed '10a\
  3312. ... rest of stderr output deleted ...
  3313. 10q' conftest.err >conftest.er1
  3314. cat conftest.er1 >&5
  3315. fi
  3316. rm -f conftest.er1 conftest.err
  3317. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3318. test $ac_status = 0; }
  3319. done
  3320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3321. /* end confdefs.h. */
  3322. int
  3323. main ()
  3324. {
  3325. ;
  3326. return 0;
  3327. }
  3328. _ACEOF
  3329. ac_clean_files_save=$ac_clean_files
  3330. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3331. # Try to create an executable without -o first, disregard a.out.
  3332. # It will help us diagnose broken compilers, and finding out an intuition
  3333. # of exeext.
  3334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3335. $as_echo_n "checking whether the C compiler works... " >&6; }
  3336. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3337. # The possible output files:
  3338. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3339. ac_rmfiles=
  3340. for ac_file in $ac_files
  3341. do
  3342. case $ac_file in
  3343. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3344. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3345. esac
  3346. done
  3347. rm -f $ac_rmfiles
  3348. if { { ac_try="$ac_link_default"
  3349. case "(($ac_try" in
  3350. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3351. *) ac_try_echo=$ac_try;;
  3352. esac
  3353. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3354. $as_echo "$ac_try_echo"; } >&5
  3355. (eval "$ac_link_default") 2>&5
  3356. ac_status=$?
  3357. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3358. test $ac_status = 0; }; then :
  3359. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3360. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3361. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3362. # so that the user can short-circuit this test for compilers unknown to
  3363. # Autoconf.
  3364. for ac_file in $ac_files ''
  3365. do
  3366. test -f "$ac_file" || continue
  3367. case $ac_file in
  3368. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3369. ;;
  3370. [ab].out )
  3371. # We found the default executable, but exeext='' is most
  3372. # certainly right.
  3373. break;;
  3374. *.* )
  3375. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3376. then :; else
  3377. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3378. fi
  3379. # We set ac_cv_exeext here because the later test for it is not
  3380. # safe: cross compilers may not add the suffix if given an `-o'
  3381. # argument, so we may need to know it at that point already.
  3382. # Even if this section looks crufty: it has the advantage of
  3383. # actually working.
  3384. break;;
  3385. * )
  3386. break;;
  3387. esac
  3388. done
  3389. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3390. else
  3391. ac_file=''
  3392. fi
  3393. if test -z "$ac_file"; then :
  3394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3395. $as_echo "no" >&6; }
  3396. $as_echo "$as_me: failed program was:" >&5
  3397. sed 's/^/| /' conftest.$ac_ext >&5
  3398. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3399. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3400. as_fn_error 77 "C compiler cannot create executables
  3401. See \`config.log' for more details" "$LINENO" 5; }
  3402. else
  3403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3404. $as_echo "yes" >&6; }
  3405. fi
  3406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3407. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3409. $as_echo "$ac_file" >&6; }
  3410. ac_exeext=$ac_cv_exeext
  3411. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3412. ac_clean_files=$ac_clean_files_save
  3413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3414. $as_echo_n "checking for suffix of executables... " >&6; }
  3415. if { { ac_try="$ac_link"
  3416. case "(($ac_try" in
  3417. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3418. *) ac_try_echo=$ac_try;;
  3419. esac
  3420. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3421. $as_echo "$ac_try_echo"; } >&5
  3422. (eval "$ac_link") 2>&5
  3423. ac_status=$?
  3424. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3425. test $ac_status = 0; }; then :
  3426. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3427. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3428. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3429. # `rm'.
  3430. for ac_file in conftest.exe conftest conftest.*; do
  3431. test -f "$ac_file" || continue
  3432. case $ac_file in
  3433. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3434. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3435. break;;
  3436. * ) break;;
  3437. esac
  3438. done
  3439. else
  3440. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3441. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3442. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3443. See \`config.log' for more details" "$LINENO" 5; }
  3444. fi
  3445. rm -f conftest conftest$ac_cv_exeext
  3446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3447. $as_echo "$ac_cv_exeext" >&6; }
  3448. rm -f conftest.$ac_ext
  3449. EXEEXT=$ac_cv_exeext
  3450. ac_exeext=$EXEEXT
  3451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3452. /* end confdefs.h. */
  3453. #include <stdio.h>
  3454. int
  3455. main ()
  3456. {
  3457. FILE *f = fopen ("conftest.out", "w");
  3458. return ferror (f) || fclose (f) != 0;
  3459. ;
  3460. return 0;
  3461. }
  3462. _ACEOF
  3463. ac_clean_files="$ac_clean_files conftest.out"
  3464. # Check that the compiler produces executables we can run. If not, either
  3465. # the compiler is broken, or we cross compile.
  3466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3467. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3468. if test "$cross_compiling" != yes; then
  3469. { { ac_try="$ac_link"
  3470. case "(($ac_try" in
  3471. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3472. *) ac_try_echo=$ac_try;;
  3473. esac
  3474. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3475. $as_echo "$ac_try_echo"; } >&5
  3476. (eval "$ac_link") 2>&5
  3477. ac_status=$?
  3478. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3479. test $ac_status = 0; }
  3480. if { ac_try='./conftest$ac_cv_exeext'
  3481. { { case "(($ac_try" in
  3482. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3483. *) ac_try_echo=$ac_try;;
  3484. esac
  3485. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3486. $as_echo "$ac_try_echo"; } >&5
  3487. (eval "$ac_try") 2>&5
  3488. ac_status=$?
  3489. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3490. test $ac_status = 0; }; }; then
  3491. cross_compiling=no
  3492. else
  3493. if test "$cross_compiling" = maybe; then
  3494. cross_compiling=yes
  3495. else
  3496. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3497. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3498. as_fn_error $? "cannot run C compiled programs.
  3499. If you meant to cross compile, use \`--host'.
  3500. See \`config.log' for more details" "$LINENO" 5; }
  3501. fi
  3502. fi
  3503. fi
  3504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3505. $as_echo "$cross_compiling" >&6; }
  3506. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3507. ac_clean_files=$ac_clean_files_save
  3508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3509. $as_echo_n "checking for suffix of object files... " >&6; }
  3510. if ${ac_cv_objext+:} false; then :
  3511. $as_echo_n "(cached) " >&6
  3512. else
  3513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3514. /* end confdefs.h. */
  3515. int
  3516. main ()
  3517. {
  3518. ;
  3519. return 0;
  3520. }
  3521. _ACEOF
  3522. rm -f conftest.o conftest.obj
  3523. if { { ac_try="$ac_compile"
  3524. case "(($ac_try" in
  3525. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3526. *) ac_try_echo=$ac_try;;
  3527. esac
  3528. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3529. $as_echo "$ac_try_echo"; } >&5
  3530. (eval "$ac_compile") 2>&5
  3531. ac_status=$?
  3532. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3533. test $ac_status = 0; }; then :
  3534. for ac_file in conftest.o conftest.obj conftest.*; do
  3535. test -f "$ac_file" || continue;
  3536. case $ac_file in
  3537. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3538. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3539. break;;
  3540. esac
  3541. done
  3542. else
  3543. $as_echo "$as_me: failed program was:" >&5
  3544. sed 's/^/| /' conftest.$ac_ext >&5
  3545. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3546. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3547. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3548. See \`config.log' for more details" "$LINENO" 5; }
  3549. fi
  3550. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3551. fi
  3552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3553. $as_echo "$ac_cv_objext" >&6; }
  3554. OBJEXT=$ac_cv_objext
  3555. ac_objext=$OBJEXT
  3556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3557. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3558. if ${ac_cv_c_compiler_gnu+:} false; then :
  3559. $as_echo_n "(cached) " >&6
  3560. else
  3561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3562. /* end confdefs.h. */
  3563. int
  3564. main ()
  3565. {
  3566. #ifndef __GNUC__
  3567. choke me
  3568. #endif
  3569. ;
  3570. return 0;
  3571. }
  3572. _ACEOF
  3573. if ac_fn_c_try_compile "$LINENO"; then :
  3574. ac_compiler_gnu=yes
  3575. else
  3576. ac_compiler_gnu=no
  3577. fi
  3578. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3579. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3580. fi
  3581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3582. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3583. if test $ac_compiler_gnu = yes; then
  3584. GCC=yes
  3585. else
  3586. GCC=
  3587. fi
  3588. ac_test_CFLAGS=${CFLAGS+set}
  3589. ac_save_CFLAGS=$CFLAGS
  3590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3591. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3592. if ${ac_cv_prog_cc_g+:} false; then :
  3593. $as_echo_n "(cached) " >&6
  3594. else
  3595. ac_save_c_werror_flag=$ac_c_werror_flag
  3596. ac_c_werror_flag=yes
  3597. ac_cv_prog_cc_g=no
  3598. CFLAGS="-g"
  3599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3600. /* end confdefs.h. */
  3601. int
  3602. main ()
  3603. {
  3604. ;
  3605. return 0;
  3606. }
  3607. _ACEOF
  3608. if ac_fn_c_try_compile "$LINENO"; then :
  3609. ac_cv_prog_cc_g=yes
  3610. else
  3611. CFLAGS=""
  3612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3613. /* end confdefs.h. */
  3614. int
  3615. main ()
  3616. {
  3617. ;
  3618. return 0;
  3619. }
  3620. _ACEOF
  3621. if ac_fn_c_try_compile "$LINENO"; then :
  3622. else
  3623. ac_c_werror_flag=$ac_save_c_werror_flag
  3624. CFLAGS="-g"
  3625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3626. /* end confdefs.h. */
  3627. int
  3628. main ()
  3629. {
  3630. ;
  3631. return 0;
  3632. }
  3633. _ACEOF
  3634. if ac_fn_c_try_compile "$LINENO"; then :
  3635. ac_cv_prog_cc_g=yes
  3636. fi
  3637. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3638. fi
  3639. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3640. fi
  3641. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3642. ac_c_werror_flag=$ac_save_c_werror_flag
  3643. fi
  3644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3645. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3646. if test "$ac_test_CFLAGS" = set; then
  3647. CFLAGS=$ac_save_CFLAGS
  3648. elif test $ac_cv_prog_cc_g = yes; then
  3649. if test "$GCC" = yes; then
  3650. CFLAGS="-g -O2"
  3651. else
  3652. CFLAGS="-g"
  3653. fi
  3654. else
  3655. if test "$GCC" = yes; then
  3656. CFLAGS="-O2"
  3657. else
  3658. CFLAGS=
  3659. fi
  3660. fi
  3661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3662. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3663. if ${ac_cv_prog_cc_c89+:} false; then :
  3664. $as_echo_n "(cached) " >&6
  3665. else
  3666. ac_cv_prog_cc_c89=no
  3667. ac_save_CC=$CC
  3668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3669. /* end confdefs.h. */
  3670. #include <stdarg.h>
  3671. #include <stdio.h>
  3672. struct stat;
  3673. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3674. struct buf { int x; };
  3675. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3676. static char *e (p, i)
  3677. char **p;
  3678. int i;
  3679. {
  3680. return p[i];
  3681. }
  3682. static char *f (char * (*g) (char **, int), char **p, ...)
  3683. {
  3684. char *s;
  3685. va_list v;
  3686. va_start (v,p);
  3687. s = g (p, va_arg (v,int));
  3688. va_end (v);
  3689. return s;
  3690. }
  3691. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3692. function prototypes and stuff, but not '\xHH' hex character constants.
  3693. These don't provoke an error unfortunately, instead are silently treated
  3694. as 'x'. The following induces an error, until -std is added to get
  3695. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3696. array size at least. It's necessary to write '\x00'==0 to get something
  3697. that's true only with -std. */
  3698. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3699. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3700. inside strings and character constants. */
  3701. #define FOO(x) 'x'
  3702. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3703. int test (int i, double x);
  3704. struct s1 {int (*f) (int a);};
  3705. struct s2 {int (*f) (double a);};
  3706. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3707. int argc;
  3708. char **argv;
  3709. int
  3710. main ()
  3711. {
  3712. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3713. ;
  3714. return 0;
  3715. }
  3716. _ACEOF
  3717. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3718. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3719. do
  3720. CC="$ac_save_CC $ac_arg"
  3721. if ac_fn_c_try_compile "$LINENO"; then :
  3722. ac_cv_prog_cc_c89=$ac_arg
  3723. fi
  3724. rm -f core conftest.err conftest.$ac_objext
  3725. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3726. done
  3727. rm -f conftest.$ac_ext
  3728. CC=$ac_save_CC
  3729. fi
  3730. # AC_CACHE_VAL
  3731. case "x$ac_cv_prog_cc_c89" in
  3732. x)
  3733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3734. $as_echo "none needed" >&6; } ;;
  3735. xno)
  3736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3737. $as_echo "unsupported" >&6; } ;;
  3738. *)
  3739. CC="$CC $ac_cv_prog_cc_c89"
  3740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3741. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3742. esac
  3743. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3744. fi
  3745. ac_ext=c
  3746. ac_cpp='$CPP $CPPFLAGS'
  3747. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3748. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3749. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3750. ac_ext=c
  3751. ac_cpp='$CPP $CPPFLAGS'
  3752. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3753. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3754. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3756. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3757. if ${am_cv_prog_cc_c_o+:} false; then :
  3758. $as_echo_n "(cached) " >&6
  3759. else
  3760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3761. /* end confdefs.h. */
  3762. int
  3763. main ()
  3764. {
  3765. ;
  3766. return 0;
  3767. }
  3768. _ACEOF
  3769. # Make sure it works both with $CC and with simple cc.
  3770. # Following AC_PROG_CC_C_O, we do the test twice because some
  3771. # compilers refuse to overwrite an existing .o file with -o,
  3772. # though they will create one.
  3773. am_cv_prog_cc_c_o=yes
  3774. for am_i in 1 2; do
  3775. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3776. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3777. ac_status=$?
  3778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3779. (exit $ac_status); } \
  3780. && test -f conftest2.$ac_objext; then
  3781. : OK
  3782. else
  3783. am_cv_prog_cc_c_o=no
  3784. break
  3785. fi
  3786. done
  3787. rm -f core conftest*
  3788. unset am_i
  3789. fi
  3790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3791. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3792. if test "$am_cv_prog_cc_c_o" != yes; then
  3793. # Losing compiler, so override with the script.
  3794. # FIXME: It is wrong to rewrite CC.
  3795. # But if we don't then we get into trouble of one sort or another.
  3796. # A longer-term fix would be to have automake use am__CC in this case,
  3797. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3798. CC="$am_aux_dir/compile $CC"
  3799. fi
  3800. ac_ext=c
  3801. ac_cpp='$CPP $CPPFLAGS'
  3802. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3803. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3804. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3805. depcc="$CC" am_compiler_list=
  3806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3807. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3808. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3809. $as_echo_n "(cached) " >&6
  3810. else
  3811. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3812. # We make a subdir and do the tests there. Otherwise we can end up
  3813. # making bogus files that we don't know about and never remove. For
  3814. # instance it was reported that on HP-UX the gcc test will end up
  3815. # making a dummy file named 'D' -- because '-MD' means "put the output
  3816. # in D".
  3817. rm -rf conftest.dir
  3818. mkdir conftest.dir
  3819. # Copy depcomp to subdir because otherwise we won't find it if we're
  3820. # using a relative directory.
  3821. cp "$am_depcomp" conftest.dir
  3822. cd conftest.dir
  3823. # We will build objects and dependencies in a subdirectory because
  3824. # it helps to detect inapplicable dependency modes. For instance
  3825. # both Tru64's cc and ICC support -MD to output dependencies as a
  3826. # side effect of compilation, but ICC will put the dependencies in
  3827. # the current directory while Tru64 will put them in the object
  3828. # directory.
  3829. mkdir sub
  3830. am_cv_CC_dependencies_compiler_type=none
  3831. if test "$am_compiler_list" = ""; then
  3832. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3833. fi
  3834. am__universal=false
  3835. case " $depcc " in #(
  3836. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3837. esac
  3838. for depmode in $am_compiler_list; do
  3839. # Setup a source with many dependencies, because some compilers
  3840. # like to wrap large dependency lists on column 80 (with \), and
  3841. # we should not choose a depcomp mode which is confused by this.
  3842. #
  3843. # We need to recreate these files for each test, as the compiler may
  3844. # overwrite some of them when testing with obscure command lines.
  3845. # This happens at least with the AIX C compiler.
  3846. : > sub/conftest.c
  3847. for i in 1 2 3 4 5 6; do
  3848. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3849. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3850. # Solaris 10 /bin/sh.
  3851. echo '/* dummy */' > sub/conftst$i.h
  3852. done
  3853. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3854. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3855. # mode. It turns out that the SunPro C++ compiler does not properly
  3856. # handle '-M -o', and we need to detect this. Also, some Intel
  3857. # versions had trouble with output in subdirs.
  3858. am__obj=sub/conftest.${OBJEXT-o}
  3859. am__minus_obj="-o $am__obj"
  3860. case $depmode in
  3861. gcc)
  3862. # This depmode causes a compiler race in universal mode.
  3863. test "$am__universal" = false || continue
  3864. ;;
  3865. nosideeffect)
  3866. # After this tag, mechanisms are not by side-effect, so they'll
  3867. # only be used when explicitly requested.
  3868. if test "x$enable_dependency_tracking" = xyes; then
  3869. continue
  3870. else
  3871. break
  3872. fi
  3873. ;;
  3874. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3875. # This compiler won't grok '-c -o', but also, the minuso test has
  3876. # not run yet. These depmodes are late enough in the game, and
  3877. # so weak that their functioning should not be impacted.
  3878. am__obj=conftest.${OBJEXT-o}
  3879. am__minus_obj=
  3880. ;;
  3881. none) break ;;
  3882. esac
  3883. if depmode=$depmode \
  3884. source=sub/conftest.c object=$am__obj \
  3885. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3886. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3887. >/dev/null 2>conftest.err &&
  3888. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3889. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3890. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3891. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3892. # icc doesn't choke on unknown options, it will just issue warnings
  3893. # or remarks (even with -Werror). So we grep stderr for any message
  3894. # that says an option was ignored or not supported.
  3895. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3896. # icc: Command line warning: ignoring option '-M'; no argument required
  3897. # The diagnosis changed in icc 8.0:
  3898. # icc: Command line remark: option '-MP' not supported
  3899. if (grep 'ignoring option' conftest.err ||
  3900. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3901. am_cv_CC_dependencies_compiler_type=$depmode
  3902. break
  3903. fi
  3904. fi
  3905. done
  3906. cd ..
  3907. rm -rf conftest.dir
  3908. else
  3909. am_cv_CC_dependencies_compiler_type=none
  3910. fi
  3911. fi
  3912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3913. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3914. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3915. if
  3916. test "x$enable_dependency_tracking" != xno \
  3917. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3918. am__fastdepCC_TRUE=
  3919. am__fastdepCC_FALSE='#'
  3920. else
  3921. am__fastdepCC_TRUE='#'
  3922. am__fastdepCC_FALSE=
  3923. fi
  3924. case `pwd` in
  3925. *\ * | *\ *)
  3926. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3927. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3928. esac
  3929. macro_version='2.4.2'
  3930. macro_revision='1.3337'
  3931. ltmain="$ac_aux_dir/ltmain.sh"
  3932. # Backslashify metacharacters that are still active within
  3933. # double-quoted strings.
  3934. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3935. # Same as above, but do not quote variable references.
  3936. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3937. # Sed substitution to delay expansion of an escaped shell variable in a
  3938. # double_quote_subst'ed string.
  3939. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3940. # Sed substitution to delay expansion of an escaped single quote.
  3941. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3942. # Sed substitution to avoid accidental globbing in evaled expressions
  3943. no_glob_subst='s/\*/\\\*/g'
  3944. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3945. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3946. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3948. $as_echo_n "checking how to print strings... " >&6; }
  3949. # Test print first, because it will be a builtin if present.
  3950. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3951. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3952. ECHO='print -r --'
  3953. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3954. ECHO='printf %s\n'
  3955. else
  3956. # Use this function as a fallback that always works.
  3957. func_fallback_echo ()
  3958. {
  3959. eval 'cat <<_LTECHO_EOF
  3960. $1
  3961. _LTECHO_EOF'
  3962. }
  3963. ECHO='func_fallback_echo'
  3964. fi
  3965. # func_echo_all arg...
  3966. # Invoke $ECHO with all args, space-separated.
  3967. func_echo_all ()
  3968. {
  3969. $ECHO ""
  3970. }
  3971. case "$ECHO" in
  3972. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3973. $as_echo "printf" >&6; } ;;
  3974. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3975. $as_echo "print -r" >&6; } ;;
  3976. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3977. $as_echo "cat" >&6; } ;;
  3978. esac
  3979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3980. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3981. if ${ac_cv_path_SED+:} false; then :
  3982. $as_echo_n "(cached) " >&6
  3983. else
  3984. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3985. for ac_i in 1 2 3 4 5 6 7; do
  3986. ac_script="$ac_script$as_nl$ac_script"
  3987. done
  3988. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3989. { ac_script=; unset ac_script;}
  3990. if test -z "$SED"; then
  3991. ac_path_SED_found=false
  3992. # Loop through the user's path and test for each of PROGNAME-LIST
  3993. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3994. for as_dir in $PATH
  3995. do
  3996. IFS=$as_save_IFS
  3997. test -z "$as_dir" && as_dir=.
  3998. for ac_prog in sed gsed; do
  3999. for ac_exec_ext in '' $ac_executable_extensions; do
  4000. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4001. as_fn_executable_p "$ac_path_SED" || continue
  4002. # Check for GNU ac_path_SED and select it if it is found.
  4003. # Check for GNU $ac_path_SED
  4004. case `"$ac_path_SED" --version 2>&1` in
  4005. *GNU*)
  4006. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4007. *)
  4008. ac_count=0
  4009. $as_echo_n 0123456789 >"conftest.in"
  4010. while :
  4011. do
  4012. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4013. mv "conftest.tmp" "conftest.in"
  4014. cp "conftest.in" "conftest.nl"
  4015. $as_echo '' >> "conftest.nl"
  4016. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4017. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4018. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4019. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4020. # Best one so far, save it but keep looking for a better one
  4021. ac_cv_path_SED="$ac_path_SED"
  4022. ac_path_SED_max=$ac_count
  4023. fi
  4024. # 10*(2^10) chars as input seems more than enough
  4025. test $ac_count -gt 10 && break
  4026. done
  4027. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4028. esac
  4029. $ac_path_SED_found && break 3
  4030. done
  4031. done
  4032. done
  4033. IFS=$as_save_IFS
  4034. if test -z "$ac_cv_path_SED"; then
  4035. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4036. fi
  4037. else
  4038. ac_cv_path_SED=$SED
  4039. fi
  4040. fi
  4041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4042. $as_echo "$ac_cv_path_SED" >&6; }
  4043. SED="$ac_cv_path_SED"
  4044. rm -f conftest.sed
  4045. test -z "$SED" && SED=sed
  4046. Xsed="$SED -e 1s/^X//"
  4047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4048. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4049. if ${ac_cv_path_GREP+:} false; then :
  4050. $as_echo_n "(cached) " >&6
  4051. else
  4052. if test -z "$GREP"; then
  4053. ac_path_GREP_found=false
  4054. # Loop through the user's path and test for each of PROGNAME-LIST
  4055. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4056. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4057. do
  4058. IFS=$as_save_IFS
  4059. test -z "$as_dir" && as_dir=.
  4060. for ac_prog in grep ggrep; do
  4061. for ac_exec_ext in '' $ac_executable_extensions; do
  4062. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4063. as_fn_executable_p "$ac_path_GREP" || continue
  4064. # Check for GNU ac_path_GREP and select it if it is found.
  4065. # Check for GNU $ac_path_GREP
  4066. case `"$ac_path_GREP" --version 2>&1` in
  4067. *GNU*)
  4068. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4069. *)
  4070. ac_count=0
  4071. $as_echo_n 0123456789 >"conftest.in"
  4072. while :
  4073. do
  4074. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4075. mv "conftest.tmp" "conftest.in"
  4076. cp "conftest.in" "conftest.nl"
  4077. $as_echo 'GREP' >> "conftest.nl"
  4078. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4079. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4080. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4081. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4082. # Best one so far, save it but keep looking for a better one
  4083. ac_cv_path_GREP="$ac_path_GREP"
  4084. ac_path_GREP_max=$ac_count
  4085. fi
  4086. # 10*(2^10) chars as input seems more than enough
  4087. test $ac_count -gt 10 && break
  4088. done
  4089. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4090. esac
  4091. $ac_path_GREP_found && break 3
  4092. done
  4093. done
  4094. done
  4095. IFS=$as_save_IFS
  4096. if test -z "$ac_cv_path_GREP"; then
  4097. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4098. fi
  4099. else
  4100. ac_cv_path_GREP=$GREP
  4101. fi
  4102. fi
  4103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4104. $as_echo "$ac_cv_path_GREP" >&6; }
  4105. GREP="$ac_cv_path_GREP"
  4106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4107. $as_echo_n "checking for egrep... " >&6; }
  4108. if ${ac_cv_path_EGREP+:} false; then :
  4109. $as_echo_n "(cached) " >&6
  4110. else
  4111. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4112. then ac_cv_path_EGREP="$GREP -E"
  4113. else
  4114. if test -z "$EGREP"; then
  4115. ac_path_EGREP_found=false
  4116. # Loop through the user's path and test for each of PROGNAME-LIST
  4117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4118. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4119. do
  4120. IFS=$as_save_IFS
  4121. test -z "$as_dir" && as_dir=.
  4122. for ac_prog in egrep; do
  4123. for ac_exec_ext in '' $ac_executable_extensions; do
  4124. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4125. as_fn_executable_p "$ac_path_EGREP" || continue
  4126. # Check for GNU ac_path_EGREP and select it if it is found.
  4127. # Check for GNU $ac_path_EGREP
  4128. case `"$ac_path_EGREP" --version 2>&1` in
  4129. *GNU*)
  4130. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4131. *)
  4132. ac_count=0
  4133. $as_echo_n 0123456789 >"conftest.in"
  4134. while :
  4135. do
  4136. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4137. mv "conftest.tmp" "conftest.in"
  4138. cp "conftest.in" "conftest.nl"
  4139. $as_echo 'EGREP' >> "conftest.nl"
  4140. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4141. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4142. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4143. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4144. # Best one so far, save it but keep looking for a better one
  4145. ac_cv_path_EGREP="$ac_path_EGREP"
  4146. ac_path_EGREP_max=$ac_count
  4147. fi
  4148. # 10*(2^10) chars as input seems more than enough
  4149. test $ac_count -gt 10 && break
  4150. done
  4151. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4152. esac
  4153. $ac_path_EGREP_found && break 3
  4154. done
  4155. done
  4156. done
  4157. IFS=$as_save_IFS
  4158. if test -z "$ac_cv_path_EGREP"; then
  4159. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4160. fi
  4161. else
  4162. ac_cv_path_EGREP=$EGREP
  4163. fi
  4164. fi
  4165. fi
  4166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4167. $as_echo "$ac_cv_path_EGREP" >&6; }
  4168. EGREP="$ac_cv_path_EGREP"
  4169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4170. $as_echo_n "checking for fgrep... " >&6; }
  4171. if ${ac_cv_path_FGREP+:} false; then :
  4172. $as_echo_n "(cached) " >&6
  4173. else
  4174. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4175. then ac_cv_path_FGREP="$GREP -F"
  4176. else
  4177. if test -z "$FGREP"; then
  4178. ac_path_FGREP_found=false
  4179. # Loop through the user's path and test for each of PROGNAME-LIST
  4180. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4181. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4182. do
  4183. IFS=$as_save_IFS
  4184. test -z "$as_dir" && as_dir=.
  4185. for ac_prog in fgrep; do
  4186. for ac_exec_ext in '' $ac_executable_extensions; do
  4187. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4188. as_fn_executable_p "$ac_path_FGREP" || continue
  4189. # Check for GNU ac_path_FGREP and select it if it is found.
  4190. # Check for GNU $ac_path_FGREP
  4191. case `"$ac_path_FGREP" --version 2>&1` in
  4192. *GNU*)
  4193. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4194. *)
  4195. ac_count=0
  4196. $as_echo_n 0123456789 >"conftest.in"
  4197. while :
  4198. do
  4199. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4200. mv "conftest.tmp" "conftest.in"
  4201. cp "conftest.in" "conftest.nl"
  4202. $as_echo 'FGREP' >> "conftest.nl"
  4203. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4204. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4205. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4206. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4207. # Best one so far, save it but keep looking for a better one
  4208. ac_cv_path_FGREP="$ac_path_FGREP"
  4209. ac_path_FGREP_max=$ac_count
  4210. fi
  4211. # 10*(2^10) chars as input seems more than enough
  4212. test $ac_count -gt 10 && break
  4213. done
  4214. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4215. esac
  4216. $ac_path_FGREP_found && break 3
  4217. done
  4218. done
  4219. done
  4220. IFS=$as_save_IFS
  4221. if test -z "$ac_cv_path_FGREP"; then
  4222. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4223. fi
  4224. else
  4225. ac_cv_path_FGREP=$FGREP
  4226. fi
  4227. fi
  4228. fi
  4229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4230. $as_echo "$ac_cv_path_FGREP" >&6; }
  4231. FGREP="$ac_cv_path_FGREP"
  4232. test -z "$GREP" && GREP=grep
  4233. # Check whether --with-gnu-ld was given.
  4234. if test "${with_gnu_ld+set}" = set; then :
  4235. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4236. else
  4237. with_gnu_ld=no
  4238. fi
  4239. ac_prog=ld
  4240. if test "$GCC" = yes; then
  4241. # Check if gcc -print-prog-name=ld gives a path.
  4242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4243. $as_echo_n "checking for ld used by $CC... " >&6; }
  4244. case $host in
  4245. *-*-mingw*)
  4246. # gcc leaves a trailing carriage return which upsets mingw
  4247. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4248. *)
  4249. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4250. esac
  4251. case $ac_prog in
  4252. # Accept absolute paths.
  4253. [\\/]* | ?:[\\/]*)
  4254. re_direlt='/[^/][^/]*/\.\./'
  4255. # Canonicalize the pathname of ld
  4256. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4257. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4258. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4259. done
  4260. test -z "$LD" && LD="$ac_prog"
  4261. ;;
  4262. "")
  4263. # If it fails, then pretend we aren't using GCC.
  4264. ac_prog=ld
  4265. ;;
  4266. *)
  4267. # If it is relative, then search for the first ld in PATH.
  4268. with_gnu_ld=unknown
  4269. ;;
  4270. esac
  4271. elif test "$with_gnu_ld" = yes; then
  4272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4273. $as_echo_n "checking for GNU ld... " >&6; }
  4274. else
  4275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4276. $as_echo_n "checking for non-GNU ld... " >&6; }
  4277. fi
  4278. if ${lt_cv_path_LD+:} false; then :
  4279. $as_echo_n "(cached) " >&6
  4280. else
  4281. if test -z "$LD"; then
  4282. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4283. for ac_dir in $PATH; do
  4284. IFS="$lt_save_ifs"
  4285. test -z "$ac_dir" && ac_dir=.
  4286. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4287. lt_cv_path_LD="$ac_dir/$ac_prog"
  4288. # Check to see if the program is GNU ld. I'd rather use --version,
  4289. # but apparently some variants of GNU ld only accept -v.
  4290. # Break only if it was the GNU/non-GNU ld that we prefer.
  4291. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4292. *GNU* | *'with BFD'*)
  4293. test "$with_gnu_ld" != no && break
  4294. ;;
  4295. *)
  4296. test "$with_gnu_ld" != yes && break
  4297. ;;
  4298. esac
  4299. fi
  4300. done
  4301. IFS="$lt_save_ifs"
  4302. else
  4303. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4304. fi
  4305. fi
  4306. LD="$lt_cv_path_LD"
  4307. if test -n "$LD"; then
  4308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4309. $as_echo "$LD" >&6; }
  4310. else
  4311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4312. $as_echo "no" >&6; }
  4313. fi
  4314. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4316. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4317. if ${lt_cv_prog_gnu_ld+:} false; then :
  4318. $as_echo_n "(cached) " >&6
  4319. else
  4320. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4321. case `$LD -v 2>&1 </dev/null` in
  4322. *GNU* | *'with BFD'*)
  4323. lt_cv_prog_gnu_ld=yes
  4324. ;;
  4325. *)
  4326. lt_cv_prog_gnu_ld=no
  4327. ;;
  4328. esac
  4329. fi
  4330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4331. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4332. with_gnu_ld=$lt_cv_prog_gnu_ld
  4333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4334. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4335. if ${lt_cv_path_NM+:} false; then :
  4336. $as_echo_n "(cached) " >&6
  4337. else
  4338. if test -n "$NM"; then
  4339. # Let the user override the test.
  4340. lt_cv_path_NM="$NM"
  4341. else
  4342. lt_nm_to_check="${ac_tool_prefix}nm"
  4343. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4344. lt_nm_to_check="$lt_nm_to_check nm"
  4345. fi
  4346. for lt_tmp_nm in $lt_nm_to_check; do
  4347. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4348. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4349. IFS="$lt_save_ifs"
  4350. test -z "$ac_dir" && ac_dir=.
  4351. tmp_nm="$ac_dir/$lt_tmp_nm"
  4352. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4353. # Check to see if the nm accepts a BSD-compat flag.
  4354. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4355. # nm: unknown option "B" ignored
  4356. # Tru64's nm complains that /dev/null is an invalid object file
  4357. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4358. */dev/null* | *'Invalid file or object type'*)
  4359. lt_cv_path_NM="$tmp_nm -B"
  4360. break
  4361. ;;
  4362. *)
  4363. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4364. */dev/null*)
  4365. lt_cv_path_NM="$tmp_nm -p"
  4366. break
  4367. ;;
  4368. *)
  4369. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4370. continue # so that we can try to find one that supports BSD flags
  4371. ;;
  4372. esac
  4373. ;;
  4374. esac
  4375. fi
  4376. done
  4377. IFS="$lt_save_ifs"
  4378. done
  4379. : ${lt_cv_path_NM=no}
  4380. fi
  4381. fi
  4382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4383. $as_echo "$lt_cv_path_NM" >&6; }
  4384. if test "$lt_cv_path_NM" != "no"; then
  4385. NM="$lt_cv_path_NM"
  4386. else
  4387. # Didn't find any BSD compatible name lister, look for dumpbin.
  4388. if test -n "$DUMPBIN"; then :
  4389. # Let the user override the test.
  4390. else
  4391. if test -n "$ac_tool_prefix"; then
  4392. for ac_prog in dumpbin "link -dump"
  4393. do
  4394. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4395. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4397. $as_echo_n "checking for $ac_word... " >&6; }
  4398. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4399. $as_echo_n "(cached) " >&6
  4400. else
  4401. if test -n "$DUMPBIN"; then
  4402. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4403. else
  4404. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4405. for as_dir in $PATH
  4406. do
  4407. IFS=$as_save_IFS
  4408. test -z "$as_dir" && as_dir=.
  4409. for ac_exec_ext in '' $ac_executable_extensions; do
  4410. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4411. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4412. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4413. break 2
  4414. fi
  4415. done
  4416. done
  4417. IFS=$as_save_IFS
  4418. fi
  4419. fi
  4420. DUMPBIN=$ac_cv_prog_DUMPBIN
  4421. if test -n "$DUMPBIN"; then
  4422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4423. $as_echo "$DUMPBIN" >&6; }
  4424. else
  4425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4426. $as_echo "no" >&6; }
  4427. fi
  4428. test -n "$DUMPBIN" && break
  4429. done
  4430. fi
  4431. if test -z "$DUMPBIN"; then
  4432. ac_ct_DUMPBIN=$DUMPBIN
  4433. for ac_prog in dumpbin "link -dump"
  4434. do
  4435. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4436. set dummy $ac_prog; ac_word=$2
  4437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4438. $as_echo_n "checking for $ac_word... " >&6; }
  4439. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4440. $as_echo_n "(cached) " >&6
  4441. else
  4442. if test -n "$ac_ct_DUMPBIN"; then
  4443. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4444. else
  4445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4446. for as_dir in $PATH
  4447. do
  4448. IFS=$as_save_IFS
  4449. test -z "$as_dir" && as_dir=.
  4450. for ac_exec_ext in '' $ac_executable_extensions; do
  4451. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4452. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4453. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4454. break 2
  4455. fi
  4456. done
  4457. done
  4458. IFS=$as_save_IFS
  4459. fi
  4460. fi
  4461. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4462. if test -n "$ac_ct_DUMPBIN"; then
  4463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4464. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4465. else
  4466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4467. $as_echo "no" >&6; }
  4468. fi
  4469. test -n "$ac_ct_DUMPBIN" && break
  4470. done
  4471. if test "x$ac_ct_DUMPBIN" = x; then
  4472. DUMPBIN=":"
  4473. else
  4474. case $cross_compiling:$ac_tool_warned in
  4475. yes:)
  4476. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4477. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4478. ac_tool_warned=yes ;;
  4479. esac
  4480. DUMPBIN=$ac_ct_DUMPBIN
  4481. fi
  4482. fi
  4483. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4484. *COFF*)
  4485. DUMPBIN="$DUMPBIN -symbols"
  4486. ;;
  4487. *)
  4488. DUMPBIN=:
  4489. ;;
  4490. esac
  4491. fi
  4492. if test "$DUMPBIN" != ":"; then
  4493. NM="$DUMPBIN"
  4494. fi
  4495. fi
  4496. test -z "$NM" && NM=nm
  4497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4498. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4499. if ${lt_cv_nm_interface+:} false; then :
  4500. $as_echo_n "(cached) " >&6
  4501. else
  4502. lt_cv_nm_interface="BSD nm"
  4503. echo "int some_variable = 0;" > conftest.$ac_ext
  4504. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4505. (eval "$ac_compile" 2>conftest.err)
  4506. cat conftest.err >&5
  4507. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4508. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4509. cat conftest.err >&5
  4510. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4511. cat conftest.out >&5
  4512. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4513. lt_cv_nm_interface="MS dumpbin"
  4514. fi
  4515. rm -f conftest*
  4516. fi
  4517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4518. $as_echo "$lt_cv_nm_interface" >&6; }
  4519. # find the maximum length of command line arguments
  4520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4521. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4522. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4523. $as_echo_n "(cached) " >&6
  4524. else
  4525. i=0
  4526. teststring="ABCD"
  4527. case $build_os in
  4528. msdosdjgpp*)
  4529. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4530. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4531. # during glob expansion). Even if it were fixed, the result of this
  4532. # check would be larger than it should be.
  4533. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4534. ;;
  4535. gnu*)
  4536. # Under GNU Hurd, this test is not required because there is
  4537. # no limit to the length of command line arguments.
  4538. # Libtool will interpret -1 as no limit whatsoever
  4539. lt_cv_sys_max_cmd_len=-1;
  4540. ;;
  4541. cygwin* | mingw* | cegcc*)
  4542. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4543. # about 5 minutes as the teststring grows exponentially.
  4544. # Worse, since 9x/ME are not pre-emptively multitasking,
  4545. # you end up with a "frozen" computer, even though with patience
  4546. # the test eventually succeeds (with a max line length of 256k).
  4547. # Instead, let's just punt: use the minimum linelength reported by
  4548. # all of the supported platforms: 8192 (on NT/2K/XP).
  4549. lt_cv_sys_max_cmd_len=8192;
  4550. ;;
  4551. mint*)
  4552. # On MiNT this can take a long time and run out of memory.
  4553. lt_cv_sys_max_cmd_len=8192;
  4554. ;;
  4555. amigaos*)
  4556. # On AmigaOS with pdksh, this test takes hours, literally.
  4557. # So we just punt and use a minimum line length of 8192.
  4558. lt_cv_sys_max_cmd_len=8192;
  4559. ;;
  4560. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4561. # This has been around since 386BSD, at least. Likely further.
  4562. if test -x /sbin/sysctl; then
  4563. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4564. elif test -x /usr/sbin/sysctl; then
  4565. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4566. else
  4567. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4568. fi
  4569. # And add a safety zone
  4570. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4571. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4572. ;;
  4573. interix*)
  4574. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4575. lt_cv_sys_max_cmd_len=196608
  4576. ;;
  4577. os2*)
  4578. # The test takes a long time on OS/2.
  4579. lt_cv_sys_max_cmd_len=8192
  4580. ;;
  4581. osf*)
  4582. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4583. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4584. # nice to cause kernel panics so lets avoid the loop below.
  4585. # First set a reasonable default.
  4586. lt_cv_sys_max_cmd_len=16384
  4587. #
  4588. if test -x /sbin/sysconfig; then
  4589. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4590. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4591. esac
  4592. fi
  4593. ;;
  4594. sco3.2v5*)
  4595. lt_cv_sys_max_cmd_len=102400
  4596. ;;
  4597. sysv5* | sco5v6* | sysv4.2uw2*)
  4598. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4599. if test -n "$kargmax"; then
  4600. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4601. else
  4602. lt_cv_sys_max_cmd_len=32768
  4603. fi
  4604. ;;
  4605. *)
  4606. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4607. if test -n "$lt_cv_sys_max_cmd_len" && \
  4608. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4609. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4610. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4611. else
  4612. # Make teststring a little bigger before we do anything with it.
  4613. # a 1K string should be a reasonable start.
  4614. for i in 1 2 3 4 5 6 7 8 ; do
  4615. teststring=$teststring$teststring
  4616. done
  4617. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4618. # If test is not a shell built-in, we'll probably end up computing a
  4619. # maximum length that is only half of the actual maximum length, but
  4620. # we can't tell.
  4621. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4622. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4623. test $i != 17 # 1/2 MB should be enough
  4624. do
  4625. i=`expr $i + 1`
  4626. teststring=$teststring$teststring
  4627. done
  4628. # Only check the string length outside the loop.
  4629. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4630. teststring=
  4631. # Add a significant safety factor because C++ compilers can tack on
  4632. # massive amounts of additional arguments before passing them to the
  4633. # linker. It appears as though 1/2 is a usable value.
  4634. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4635. fi
  4636. ;;
  4637. esac
  4638. fi
  4639. if test -n $lt_cv_sys_max_cmd_len ; then
  4640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4641. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4642. else
  4643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4644. $as_echo "none" >&6; }
  4645. fi
  4646. max_cmd_len=$lt_cv_sys_max_cmd_len
  4647. : ${CP="cp -f"}
  4648. : ${MV="mv -f"}
  4649. : ${RM="rm -f"}
  4650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4651. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4652. # Try some XSI features
  4653. xsi_shell=no
  4654. ( _lt_dummy="a/b/c"
  4655. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4656. = c,a/b,b/c, \
  4657. && eval 'test $(( 1 + 1 )) -eq 2 \
  4658. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4659. && xsi_shell=yes
  4660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4661. $as_echo "$xsi_shell" >&6; }
  4662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4663. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4664. lt_shell_append=no
  4665. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4666. >/dev/null 2>&1 \
  4667. && lt_shell_append=yes
  4668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4669. $as_echo "$lt_shell_append" >&6; }
  4670. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4671. lt_unset=unset
  4672. else
  4673. lt_unset=false
  4674. fi
  4675. # test EBCDIC or ASCII
  4676. case `echo X|tr X '\101'` in
  4677. A) # ASCII based system
  4678. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4679. lt_SP2NL='tr \040 \012'
  4680. lt_NL2SP='tr \015\012 \040\040'
  4681. ;;
  4682. *) # EBCDIC based system
  4683. lt_SP2NL='tr \100 \n'
  4684. lt_NL2SP='tr \r\n \100\100'
  4685. ;;
  4686. esac
  4687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4688. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4689. if ${lt_cv_to_host_file_cmd+:} false; then :
  4690. $as_echo_n "(cached) " >&6
  4691. else
  4692. case $host in
  4693. *-*-mingw* )
  4694. case $build in
  4695. *-*-mingw* ) # actually msys
  4696. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4697. ;;
  4698. *-*-cygwin* )
  4699. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4700. ;;
  4701. * ) # otherwise, assume *nix
  4702. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4703. ;;
  4704. esac
  4705. ;;
  4706. *-*-cygwin* )
  4707. case $build in
  4708. *-*-mingw* ) # actually msys
  4709. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4710. ;;
  4711. *-*-cygwin* )
  4712. lt_cv_to_host_file_cmd=func_convert_file_noop
  4713. ;;
  4714. * ) # otherwise, assume *nix
  4715. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4716. ;;
  4717. esac
  4718. ;;
  4719. * ) # unhandled hosts (and "normal" native builds)
  4720. lt_cv_to_host_file_cmd=func_convert_file_noop
  4721. ;;
  4722. esac
  4723. fi
  4724. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4726. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4728. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4729. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4730. $as_echo_n "(cached) " >&6
  4731. else
  4732. #assume ordinary cross tools, or native build.
  4733. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4734. case $host in
  4735. *-*-mingw* )
  4736. case $build in
  4737. *-*-mingw* ) # actually msys
  4738. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4739. ;;
  4740. esac
  4741. ;;
  4742. esac
  4743. fi
  4744. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4746. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4748. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4749. if ${lt_cv_ld_reload_flag+:} false; then :
  4750. $as_echo_n "(cached) " >&6
  4751. else
  4752. lt_cv_ld_reload_flag='-r'
  4753. fi
  4754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4755. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4756. reload_flag=$lt_cv_ld_reload_flag
  4757. case $reload_flag in
  4758. "" | " "*) ;;
  4759. *) reload_flag=" $reload_flag" ;;
  4760. esac
  4761. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4762. case $host_os in
  4763. cygwin* | mingw* | pw32* | cegcc*)
  4764. if test "$GCC" != yes; then
  4765. reload_cmds=false
  4766. fi
  4767. ;;
  4768. darwin*)
  4769. if test "$GCC" = yes; then
  4770. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4771. else
  4772. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4773. fi
  4774. ;;
  4775. esac
  4776. if test -n "$ac_tool_prefix"; then
  4777. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4778. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4780. $as_echo_n "checking for $ac_word... " >&6; }
  4781. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4782. $as_echo_n "(cached) " >&6
  4783. else
  4784. if test -n "$OBJDUMP"; then
  4785. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4786. else
  4787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4788. for as_dir in $PATH
  4789. do
  4790. IFS=$as_save_IFS
  4791. test -z "$as_dir" && as_dir=.
  4792. for ac_exec_ext in '' $ac_executable_extensions; do
  4793. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4794. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4795. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4796. break 2
  4797. fi
  4798. done
  4799. done
  4800. IFS=$as_save_IFS
  4801. fi
  4802. fi
  4803. OBJDUMP=$ac_cv_prog_OBJDUMP
  4804. if test -n "$OBJDUMP"; then
  4805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4806. $as_echo "$OBJDUMP" >&6; }
  4807. else
  4808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4809. $as_echo "no" >&6; }
  4810. fi
  4811. fi
  4812. if test -z "$ac_cv_prog_OBJDUMP"; then
  4813. ac_ct_OBJDUMP=$OBJDUMP
  4814. # Extract the first word of "objdump", so it can be a program name with args.
  4815. set dummy objdump; ac_word=$2
  4816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4817. $as_echo_n "checking for $ac_word... " >&6; }
  4818. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4819. $as_echo_n "(cached) " >&6
  4820. else
  4821. if test -n "$ac_ct_OBJDUMP"; then
  4822. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4823. else
  4824. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4825. for as_dir in $PATH
  4826. do
  4827. IFS=$as_save_IFS
  4828. test -z "$as_dir" && as_dir=.
  4829. for ac_exec_ext in '' $ac_executable_extensions; do
  4830. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4831. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4832. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4833. break 2
  4834. fi
  4835. done
  4836. done
  4837. IFS=$as_save_IFS
  4838. fi
  4839. fi
  4840. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4841. if test -n "$ac_ct_OBJDUMP"; then
  4842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4843. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4844. else
  4845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4846. $as_echo "no" >&6; }
  4847. fi
  4848. if test "x$ac_ct_OBJDUMP" = x; then
  4849. OBJDUMP="false"
  4850. else
  4851. case $cross_compiling:$ac_tool_warned in
  4852. yes:)
  4853. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4854. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4855. ac_tool_warned=yes ;;
  4856. esac
  4857. OBJDUMP=$ac_ct_OBJDUMP
  4858. fi
  4859. else
  4860. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4861. fi
  4862. test -z "$OBJDUMP" && OBJDUMP=objdump
  4863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4864. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4865. if ${lt_cv_deplibs_check_method+:} false; then :
  4866. $as_echo_n "(cached) " >&6
  4867. else
  4868. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4869. lt_cv_file_magic_test_file=
  4870. lt_cv_deplibs_check_method='unknown'
  4871. # Need to set the preceding variable on all platforms that support
  4872. # interlibrary dependencies.
  4873. # 'none' -- dependencies not supported.
  4874. # `unknown' -- same as none, but documents that we really don't know.
  4875. # 'pass_all' -- all dependencies passed with no checks.
  4876. # 'test_compile' -- check by making test program.
  4877. # 'file_magic [[regex]]' -- check by looking for files in library path
  4878. # which responds to the $file_magic_cmd with a given extended regex.
  4879. # If you have `file' or equivalent on your system and you're not sure
  4880. # whether `pass_all' will *always* work, you probably want this one.
  4881. case $host_os in
  4882. aix[4-9]*)
  4883. lt_cv_deplibs_check_method=pass_all
  4884. ;;
  4885. beos*)
  4886. lt_cv_deplibs_check_method=pass_all
  4887. ;;
  4888. bsdi[45]*)
  4889. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4890. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4891. lt_cv_file_magic_test_file=/shlib/libc.so
  4892. ;;
  4893. cygwin*)
  4894. # func_win32_libid is a shell function defined in ltmain.sh
  4895. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4896. lt_cv_file_magic_cmd='func_win32_libid'
  4897. ;;
  4898. mingw* | pw32*)
  4899. # Base MSYS/MinGW do not provide the 'file' command needed by
  4900. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4901. # unless we find 'file', for example because we are cross-compiling.
  4902. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4903. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4904. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4905. lt_cv_file_magic_cmd='func_win32_libid'
  4906. else
  4907. # Keep this pattern in sync with the one in func_win32_libid.
  4908. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4909. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4910. fi
  4911. ;;
  4912. cegcc*)
  4913. # use the weaker test based on 'objdump'. See mingw*.
  4914. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4915. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4916. ;;
  4917. darwin* | rhapsody*)
  4918. lt_cv_deplibs_check_method=pass_all
  4919. ;;
  4920. freebsd* | dragonfly*)
  4921. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4922. case $host_cpu in
  4923. i*86 )
  4924. # Not sure whether the presence of OpenBSD here was a mistake.
  4925. # Let's accept both of them until this is cleared up.
  4926. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4927. lt_cv_file_magic_cmd=/usr/bin/file
  4928. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4929. ;;
  4930. esac
  4931. else
  4932. lt_cv_deplibs_check_method=pass_all
  4933. fi
  4934. ;;
  4935. haiku*)
  4936. lt_cv_deplibs_check_method=pass_all
  4937. ;;
  4938. hpux10.20* | hpux11*)
  4939. lt_cv_file_magic_cmd=/usr/bin/file
  4940. case $host_cpu in
  4941. ia64*)
  4942. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4943. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4944. ;;
  4945. hppa*64*)
  4946. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  4947. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4948. ;;
  4949. *)
  4950. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4951. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4952. ;;
  4953. esac
  4954. ;;
  4955. interix[3-9]*)
  4956. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4957. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4958. ;;
  4959. irix5* | irix6* | nonstopux*)
  4960. case $LD in
  4961. *-32|*"-32 ") libmagic=32-bit;;
  4962. *-n32|*"-n32 ") libmagic=N32;;
  4963. *-64|*"-64 ") libmagic=64-bit;;
  4964. *) libmagic=never-match;;
  4965. esac
  4966. lt_cv_deplibs_check_method=pass_all
  4967. ;;
  4968. # This must be glibc/ELF.
  4969. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4970. lt_cv_deplibs_check_method=pass_all
  4971. ;;
  4972. netbsd* | netbsdelf*-gnu)
  4973. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4974. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4975. else
  4976. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4977. fi
  4978. ;;
  4979. newos6*)
  4980. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4981. lt_cv_file_magic_cmd=/usr/bin/file
  4982. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4983. ;;
  4984. *nto* | *qnx*)
  4985. lt_cv_deplibs_check_method=pass_all
  4986. ;;
  4987. openbsd*)
  4988. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4989. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4990. else
  4991. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4992. fi
  4993. ;;
  4994. osf3* | osf4* | osf5*)
  4995. lt_cv_deplibs_check_method=pass_all
  4996. ;;
  4997. rdos*)
  4998. lt_cv_deplibs_check_method=pass_all
  4999. ;;
  5000. solaris*)
  5001. lt_cv_deplibs_check_method=pass_all
  5002. ;;
  5003. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5004. lt_cv_deplibs_check_method=pass_all
  5005. ;;
  5006. sysv4 | sysv4.3*)
  5007. case $host_vendor in
  5008. motorola)
  5009. 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]'
  5010. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5011. ;;
  5012. ncr)
  5013. lt_cv_deplibs_check_method=pass_all
  5014. ;;
  5015. sequent)
  5016. lt_cv_file_magic_cmd='/bin/file'
  5017. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5018. ;;
  5019. sni)
  5020. lt_cv_file_magic_cmd='/bin/file'
  5021. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5022. lt_cv_file_magic_test_file=/lib/libc.so
  5023. ;;
  5024. siemens)
  5025. lt_cv_deplibs_check_method=pass_all
  5026. ;;
  5027. pc)
  5028. lt_cv_deplibs_check_method=pass_all
  5029. ;;
  5030. esac
  5031. ;;
  5032. tpf*)
  5033. lt_cv_deplibs_check_method=pass_all
  5034. ;;
  5035. esac
  5036. fi
  5037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5038. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5039. file_magic_glob=
  5040. want_nocaseglob=no
  5041. if test "$build" = "$host"; then
  5042. case $host_os in
  5043. mingw* | pw32*)
  5044. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5045. want_nocaseglob=yes
  5046. else
  5047. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5048. fi
  5049. ;;
  5050. esac
  5051. fi
  5052. file_magic_cmd=$lt_cv_file_magic_cmd
  5053. deplibs_check_method=$lt_cv_deplibs_check_method
  5054. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5055. if test -n "$ac_tool_prefix"; then
  5056. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5057. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5059. $as_echo_n "checking for $ac_word... " >&6; }
  5060. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5061. $as_echo_n "(cached) " >&6
  5062. else
  5063. if test -n "$DLLTOOL"; then
  5064. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5065. else
  5066. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5067. for as_dir in $PATH
  5068. do
  5069. IFS=$as_save_IFS
  5070. test -z "$as_dir" && as_dir=.
  5071. for ac_exec_ext in '' $ac_executable_extensions; do
  5072. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5073. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5074. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5075. break 2
  5076. fi
  5077. done
  5078. done
  5079. IFS=$as_save_IFS
  5080. fi
  5081. fi
  5082. DLLTOOL=$ac_cv_prog_DLLTOOL
  5083. if test -n "$DLLTOOL"; then
  5084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5085. $as_echo "$DLLTOOL" >&6; }
  5086. else
  5087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5088. $as_echo "no" >&6; }
  5089. fi
  5090. fi
  5091. if test -z "$ac_cv_prog_DLLTOOL"; then
  5092. ac_ct_DLLTOOL=$DLLTOOL
  5093. # Extract the first word of "dlltool", so it can be a program name with args.
  5094. set dummy dlltool; ac_word=$2
  5095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5096. $as_echo_n "checking for $ac_word... " >&6; }
  5097. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5098. $as_echo_n "(cached) " >&6
  5099. else
  5100. if test -n "$ac_ct_DLLTOOL"; then
  5101. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5102. else
  5103. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5104. for as_dir in $PATH
  5105. do
  5106. IFS=$as_save_IFS
  5107. test -z "$as_dir" && as_dir=.
  5108. for ac_exec_ext in '' $ac_executable_extensions; do
  5109. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5110. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5111. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5112. break 2
  5113. fi
  5114. done
  5115. done
  5116. IFS=$as_save_IFS
  5117. fi
  5118. fi
  5119. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5120. if test -n "$ac_ct_DLLTOOL"; then
  5121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5122. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5123. else
  5124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5125. $as_echo "no" >&6; }
  5126. fi
  5127. if test "x$ac_ct_DLLTOOL" = x; then
  5128. DLLTOOL="false"
  5129. else
  5130. case $cross_compiling:$ac_tool_warned in
  5131. yes:)
  5132. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5133. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5134. ac_tool_warned=yes ;;
  5135. esac
  5136. DLLTOOL=$ac_ct_DLLTOOL
  5137. fi
  5138. else
  5139. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5140. fi
  5141. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5143. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5144. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5145. $as_echo_n "(cached) " >&6
  5146. else
  5147. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5148. case $host_os in
  5149. cygwin* | mingw* | pw32* | cegcc*)
  5150. # two different shell functions defined in ltmain.sh
  5151. # decide which to use based on capabilities of $DLLTOOL
  5152. case `$DLLTOOL --help 2>&1` in
  5153. *--identify-strict*)
  5154. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5155. ;;
  5156. *)
  5157. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5158. ;;
  5159. esac
  5160. ;;
  5161. *)
  5162. # fallback: assume linklib IS sharedlib
  5163. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5164. ;;
  5165. esac
  5166. fi
  5167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5168. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5169. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5170. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5171. if test -n "$ac_tool_prefix"; then
  5172. for ac_prog in ar
  5173. do
  5174. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5175. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5177. $as_echo_n "checking for $ac_word... " >&6; }
  5178. if ${ac_cv_prog_AR+:} false; then :
  5179. $as_echo_n "(cached) " >&6
  5180. else
  5181. if test -n "$AR"; then
  5182. ac_cv_prog_AR="$AR" # Let the user override the test.
  5183. else
  5184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5185. for as_dir in $PATH
  5186. do
  5187. IFS=$as_save_IFS
  5188. test -z "$as_dir" && as_dir=.
  5189. for ac_exec_ext in '' $ac_executable_extensions; do
  5190. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5191. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5192. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5193. break 2
  5194. fi
  5195. done
  5196. done
  5197. IFS=$as_save_IFS
  5198. fi
  5199. fi
  5200. AR=$ac_cv_prog_AR
  5201. if test -n "$AR"; then
  5202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5203. $as_echo "$AR" >&6; }
  5204. else
  5205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5206. $as_echo "no" >&6; }
  5207. fi
  5208. test -n "$AR" && break
  5209. done
  5210. fi
  5211. if test -z "$AR"; then
  5212. ac_ct_AR=$AR
  5213. for ac_prog in ar
  5214. do
  5215. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5216. set dummy $ac_prog; ac_word=$2
  5217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5218. $as_echo_n "checking for $ac_word... " >&6; }
  5219. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5220. $as_echo_n "(cached) " >&6
  5221. else
  5222. if test -n "$ac_ct_AR"; then
  5223. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5224. else
  5225. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5226. for as_dir in $PATH
  5227. do
  5228. IFS=$as_save_IFS
  5229. test -z "$as_dir" && as_dir=.
  5230. for ac_exec_ext in '' $ac_executable_extensions; do
  5231. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5232. ac_cv_prog_ac_ct_AR="$ac_prog"
  5233. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5234. break 2
  5235. fi
  5236. done
  5237. done
  5238. IFS=$as_save_IFS
  5239. fi
  5240. fi
  5241. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5242. if test -n "$ac_ct_AR"; then
  5243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5244. $as_echo "$ac_ct_AR" >&6; }
  5245. else
  5246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5247. $as_echo "no" >&6; }
  5248. fi
  5249. test -n "$ac_ct_AR" && break
  5250. done
  5251. if test "x$ac_ct_AR" = x; then
  5252. AR="false"
  5253. else
  5254. case $cross_compiling:$ac_tool_warned in
  5255. yes:)
  5256. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5257. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5258. ac_tool_warned=yes ;;
  5259. esac
  5260. AR=$ac_ct_AR
  5261. fi
  5262. fi
  5263. : ${AR=ar}
  5264. : ${AR_FLAGS=cru}
  5265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5266. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5267. if ${lt_cv_ar_at_file+:} false; then :
  5268. $as_echo_n "(cached) " >&6
  5269. else
  5270. lt_cv_ar_at_file=no
  5271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5272. /* end confdefs.h. */
  5273. int
  5274. main ()
  5275. {
  5276. ;
  5277. return 0;
  5278. }
  5279. _ACEOF
  5280. if ac_fn_c_try_compile "$LINENO"; then :
  5281. echo conftest.$ac_objext > conftest.lst
  5282. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5283. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5284. (eval $lt_ar_try) 2>&5
  5285. ac_status=$?
  5286. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5287. test $ac_status = 0; }
  5288. if test "$ac_status" -eq 0; then
  5289. # Ensure the archiver fails upon bogus file names.
  5290. rm -f conftest.$ac_objext libconftest.a
  5291. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5292. (eval $lt_ar_try) 2>&5
  5293. ac_status=$?
  5294. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5295. test $ac_status = 0; }
  5296. if test "$ac_status" -ne 0; then
  5297. lt_cv_ar_at_file=@
  5298. fi
  5299. fi
  5300. rm -f conftest.* libconftest.a
  5301. fi
  5302. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5303. fi
  5304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5305. $as_echo "$lt_cv_ar_at_file" >&6; }
  5306. if test "x$lt_cv_ar_at_file" = xno; then
  5307. archiver_list_spec=
  5308. else
  5309. archiver_list_spec=$lt_cv_ar_at_file
  5310. fi
  5311. if test -n "$ac_tool_prefix"; then
  5312. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5313. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5315. $as_echo_n "checking for $ac_word... " >&6; }
  5316. if ${ac_cv_prog_STRIP+:} false; then :
  5317. $as_echo_n "(cached) " >&6
  5318. else
  5319. if test -n "$STRIP"; then
  5320. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5321. else
  5322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5323. for as_dir in $PATH
  5324. do
  5325. IFS=$as_save_IFS
  5326. test -z "$as_dir" && as_dir=.
  5327. for ac_exec_ext in '' $ac_executable_extensions; do
  5328. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5329. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5330. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5331. break 2
  5332. fi
  5333. done
  5334. done
  5335. IFS=$as_save_IFS
  5336. fi
  5337. fi
  5338. STRIP=$ac_cv_prog_STRIP
  5339. if test -n "$STRIP"; then
  5340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5341. $as_echo "$STRIP" >&6; }
  5342. else
  5343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5344. $as_echo "no" >&6; }
  5345. fi
  5346. fi
  5347. if test -z "$ac_cv_prog_STRIP"; then
  5348. ac_ct_STRIP=$STRIP
  5349. # Extract the first word of "strip", so it can be a program name with args.
  5350. set dummy strip; ac_word=$2
  5351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5352. $as_echo_n "checking for $ac_word... " >&6; }
  5353. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5354. $as_echo_n "(cached) " >&6
  5355. else
  5356. if test -n "$ac_ct_STRIP"; then
  5357. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5358. else
  5359. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5360. for as_dir in $PATH
  5361. do
  5362. IFS=$as_save_IFS
  5363. test -z "$as_dir" && as_dir=.
  5364. for ac_exec_ext in '' $ac_executable_extensions; do
  5365. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5366. ac_cv_prog_ac_ct_STRIP="strip"
  5367. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5368. break 2
  5369. fi
  5370. done
  5371. done
  5372. IFS=$as_save_IFS
  5373. fi
  5374. fi
  5375. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5376. if test -n "$ac_ct_STRIP"; then
  5377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5378. $as_echo "$ac_ct_STRIP" >&6; }
  5379. else
  5380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5381. $as_echo "no" >&6; }
  5382. fi
  5383. if test "x$ac_ct_STRIP" = x; then
  5384. STRIP=":"
  5385. else
  5386. case $cross_compiling:$ac_tool_warned in
  5387. yes:)
  5388. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5389. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5390. ac_tool_warned=yes ;;
  5391. esac
  5392. STRIP=$ac_ct_STRIP
  5393. fi
  5394. else
  5395. STRIP="$ac_cv_prog_STRIP"
  5396. fi
  5397. test -z "$STRIP" && STRIP=:
  5398. if test -n "$ac_tool_prefix"; then
  5399. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5400. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5402. $as_echo_n "checking for $ac_word... " >&6; }
  5403. if ${ac_cv_prog_RANLIB+:} false; then :
  5404. $as_echo_n "(cached) " >&6
  5405. else
  5406. if test -n "$RANLIB"; then
  5407. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5408. else
  5409. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5410. for as_dir in $PATH
  5411. do
  5412. IFS=$as_save_IFS
  5413. test -z "$as_dir" && as_dir=.
  5414. for ac_exec_ext in '' $ac_executable_extensions; do
  5415. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5416. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5417. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5418. break 2
  5419. fi
  5420. done
  5421. done
  5422. IFS=$as_save_IFS
  5423. fi
  5424. fi
  5425. RANLIB=$ac_cv_prog_RANLIB
  5426. if test -n "$RANLIB"; then
  5427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5428. $as_echo "$RANLIB" >&6; }
  5429. else
  5430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5431. $as_echo "no" >&6; }
  5432. fi
  5433. fi
  5434. if test -z "$ac_cv_prog_RANLIB"; then
  5435. ac_ct_RANLIB=$RANLIB
  5436. # Extract the first word of "ranlib", so it can be a program name with args.
  5437. set dummy ranlib; ac_word=$2
  5438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5439. $as_echo_n "checking for $ac_word... " >&6; }
  5440. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5441. $as_echo_n "(cached) " >&6
  5442. else
  5443. if test -n "$ac_ct_RANLIB"; then
  5444. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5445. else
  5446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5447. for as_dir in $PATH
  5448. do
  5449. IFS=$as_save_IFS
  5450. test -z "$as_dir" && as_dir=.
  5451. for ac_exec_ext in '' $ac_executable_extensions; do
  5452. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5453. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5454. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5455. break 2
  5456. fi
  5457. done
  5458. done
  5459. IFS=$as_save_IFS
  5460. fi
  5461. fi
  5462. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5463. if test -n "$ac_ct_RANLIB"; then
  5464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5465. $as_echo "$ac_ct_RANLIB" >&6; }
  5466. else
  5467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5468. $as_echo "no" >&6; }
  5469. fi
  5470. if test "x$ac_ct_RANLIB" = x; then
  5471. RANLIB=":"
  5472. else
  5473. case $cross_compiling:$ac_tool_warned in
  5474. yes:)
  5475. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5476. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5477. ac_tool_warned=yes ;;
  5478. esac
  5479. RANLIB=$ac_ct_RANLIB
  5480. fi
  5481. else
  5482. RANLIB="$ac_cv_prog_RANLIB"
  5483. fi
  5484. test -z "$RANLIB" && RANLIB=:
  5485. # Determine commands to create old-style static archives.
  5486. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5487. old_postinstall_cmds='chmod 644 $oldlib'
  5488. old_postuninstall_cmds=
  5489. if test -n "$RANLIB"; then
  5490. case $host_os in
  5491. openbsd*)
  5492. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5493. ;;
  5494. *)
  5495. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5496. ;;
  5497. esac
  5498. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5499. fi
  5500. case $host_os in
  5501. darwin*)
  5502. lock_old_archive_extraction=yes ;;
  5503. *)
  5504. lock_old_archive_extraction=no ;;
  5505. esac
  5506. # If no C compiler was specified, use CC.
  5507. LTCC=${LTCC-"$CC"}
  5508. # If no C compiler flags were specified, use CFLAGS.
  5509. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5510. # Allow CC to be a program name with arguments.
  5511. compiler=$CC
  5512. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5514. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5515. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5516. $as_echo_n "(cached) " >&6
  5517. else
  5518. # These are sane defaults that work on at least a few old systems.
  5519. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5520. # Character class describing NM global symbol codes.
  5521. symcode='[BCDEGRST]'
  5522. # Regexp to match symbols that can be accessed directly from C.
  5523. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5524. # Define system-specific variables.
  5525. case $host_os in
  5526. aix*)
  5527. symcode='[BCDT]'
  5528. ;;
  5529. cygwin* | mingw* | pw32* | cegcc*)
  5530. symcode='[ABCDGISTW]'
  5531. ;;
  5532. hpux*)
  5533. if test "$host_cpu" = ia64; then
  5534. symcode='[ABCDEGRST]'
  5535. fi
  5536. ;;
  5537. irix* | nonstopux*)
  5538. symcode='[BCDEGRST]'
  5539. ;;
  5540. osf*)
  5541. symcode='[BCDEGQRST]'
  5542. ;;
  5543. solaris*)
  5544. symcode='[BDRT]'
  5545. ;;
  5546. sco3.2v5*)
  5547. symcode='[DT]'
  5548. ;;
  5549. sysv4.2uw2*)
  5550. symcode='[DT]'
  5551. ;;
  5552. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5553. symcode='[ABDT]'
  5554. ;;
  5555. sysv4)
  5556. symcode='[DFNSTU]'
  5557. ;;
  5558. esac
  5559. # If we're using GNU nm, then use its standard symbol codes.
  5560. case `$NM -V 2>&1` in
  5561. *GNU* | *'with BFD'*)
  5562. symcode='[ABCDGIRSTW]' ;;
  5563. esac
  5564. # Transform an extracted symbol line into a proper C declaration.
  5565. # Some systems (esp. on ia64) link data and code symbols differently,
  5566. # so use this general approach.
  5567. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5568. # Transform an extracted symbol line into symbol name and symbol address
  5569. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5570. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  5571. # Handle CRLF in mingw tool chain
  5572. opt_cr=
  5573. case $build_os in
  5574. mingw*)
  5575. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5576. ;;
  5577. esac
  5578. # Try without a prefix underscore, then with it.
  5579. for ac_symprfx in "" "_"; do
  5580. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5581. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5582. # Write the raw and C identifiers.
  5583. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5584. # Fake it for dumpbin and say T for any non-static function
  5585. # and D for any global variable.
  5586. # Also find C++ and __fastcall symbols from MSVC++,
  5587. # which start with @ or ?.
  5588. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5589. " {last_section=section; section=\$ 3};"\
  5590. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5591. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5592. " \$ 0!~/External *\|/{next};"\
  5593. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5594. " {if(hide[section]) next};"\
  5595. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5596. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5597. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5598. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5599. " ' prfx=^$ac_symprfx"
  5600. else
  5601. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5602. fi
  5603. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5604. # Check to see that the pipe works correctly.
  5605. pipe_works=no
  5606. rm -f conftest*
  5607. cat > conftest.$ac_ext <<_LT_EOF
  5608. #ifdef __cplusplus
  5609. extern "C" {
  5610. #endif
  5611. char nm_test_var;
  5612. void nm_test_func(void);
  5613. void nm_test_func(void){}
  5614. #ifdef __cplusplus
  5615. }
  5616. #endif
  5617. int main(){nm_test_var='a';nm_test_func();return(0);}
  5618. _LT_EOF
  5619. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5620. (eval $ac_compile) 2>&5
  5621. ac_status=$?
  5622. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5623. test $ac_status = 0; }; then
  5624. # Now try to grab the symbols.
  5625. nlist=conftest.nm
  5626. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5627. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5628. ac_status=$?
  5629. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5630. test $ac_status = 0; } && test -s "$nlist"; then
  5631. # Try sorting and uniquifying the output.
  5632. if sort "$nlist" | uniq > "$nlist"T; then
  5633. mv -f "$nlist"T "$nlist"
  5634. else
  5635. rm -f "$nlist"T
  5636. fi
  5637. # Make sure that we snagged all the symbols we need.
  5638. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5639. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5640. cat <<_LT_EOF > conftest.$ac_ext
  5641. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5642. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5643. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5644. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5645. # define LT_DLSYM_CONST
  5646. #elif defined(__osf__)
  5647. /* This system does not cope well with relocations in const data. */
  5648. # define LT_DLSYM_CONST
  5649. #else
  5650. # define LT_DLSYM_CONST const
  5651. #endif
  5652. #ifdef __cplusplus
  5653. extern "C" {
  5654. #endif
  5655. _LT_EOF
  5656. # Now generate the symbol file.
  5657. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5658. cat <<_LT_EOF >> conftest.$ac_ext
  5659. /* The mapping between symbol names and symbols. */
  5660. LT_DLSYM_CONST struct {
  5661. const char *name;
  5662. void *address;
  5663. }
  5664. lt__PROGRAM__LTX_preloaded_symbols[] =
  5665. {
  5666. { "@PROGRAM@", (void *) 0 },
  5667. _LT_EOF
  5668. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5669. cat <<\_LT_EOF >> conftest.$ac_ext
  5670. {0, (void *) 0}
  5671. };
  5672. /* This works around a problem in FreeBSD linker */
  5673. #ifdef FREEBSD_WORKAROUND
  5674. static const void *lt_preloaded_setup() {
  5675. return lt__PROGRAM__LTX_preloaded_symbols;
  5676. }
  5677. #endif
  5678. #ifdef __cplusplus
  5679. }
  5680. #endif
  5681. _LT_EOF
  5682. # Now try linking the two files.
  5683. mv conftest.$ac_objext conftstm.$ac_objext
  5684. lt_globsym_save_LIBS=$LIBS
  5685. lt_globsym_save_CFLAGS=$CFLAGS
  5686. LIBS="conftstm.$ac_objext"
  5687. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5688. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5689. (eval $ac_link) 2>&5
  5690. ac_status=$?
  5691. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5692. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5693. pipe_works=yes
  5694. fi
  5695. LIBS=$lt_globsym_save_LIBS
  5696. CFLAGS=$lt_globsym_save_CFLAGS
  5697. else
  5698. echo "cannot find nm_test_func in $nlist" >&5
  5699. fi
  5700. else
  5701. echo "cannot find nm_test_var in $nlist" >&5
  5702. fi
  5703. else
  5704. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5705. fi
  5706. else
  5707. echo "$progname: failed program was:" >&5
  5708. cat conftest.$ac_ext >&5
  5709. fi
  5710. rm -rf conftest* conftst*
  5711. # Do not use the global_symbol_pipe unless it works.
  5712. if test "$pipe_works" = yes; then
  5713. break
  5714. else
  5715. lt_cv_sys_global_symbol_pipe=
  5716. fi
  5717. done
  5718. fi
  5719. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5720. lt_cv_sys_global_symbol_to_cdecl=
  5721. fi
  5722. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5724. $as_echo "failed" >&6; }
  5725. else
  5726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5727. $as_echo "ok" >&6; }
  5728. fi
  5729. # Response file support.
  5730. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5731. nm_file_list_spec='@'
  5732. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5733. nm_file_list_spec='@'
  5734. fi
  5735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5736. $as_echo_n "checking for sysroot... " >&6; }
  5737. # Check whether --with-sysroot was given.
  5738. if test "${with_sysroot+set}" = set; then :
  5739. withval=$with_sysroot;
  5740. else
  5741. with_sysroot=no
  5742. fi
  5743. lt_sysroot=
  5744. case ${with_sysroot} in #(
  5745. yes)
  5746. if test "$GCC" = yes; then
  5747. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5748. fi
  5749. ;; #(
  5750. /*)
  5751. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5752. ;; #(
  5753. no|'')
  5754. ;; #(
  5755. *)
  5756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5757. $as_echo "${with_sysroot}" >&6; }
  5758. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5759. ;;
  5760. esac
  5761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5762. $as_echo "${lt_sysroot:-no}" >&6; }
  5763. # Check whether --enable-libtool-lock was given.
  5764. if test "${enable_libtool_lock+set}" = set; then :
  5765. enableval=$enable_libtool_lock;
  5766. fi
  5767. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5768. # Some flags need to be propagated to the compiler or linker for good
  5769. # libtool support.
  5770. case $host in
  5771. ia64-*-hpux*)
  5772. # Find out which ABI we are using.
  5773. echo 'int i;' > conftest.$ac_ext
  5774. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5775. (eval $ac_compile) 2>&5
  5776. ac_status=$?
  5777. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5778. test $ac_status = 0; }; then
  5779. case `/usr/bin/file conftest.$ac_objext` in
  5780. *ELF-32*)
  5781. HPUX_IA64_MODE="32"
  5782. ;;
  5783. *ELF-64*)
  5784. HPUX_IA64_MODE="64"
  5785. ;;
  5786. esac
  5787. fi
  5788. rm -rf conftest*
  5789. ;;
  5790. *-*-irix6*)
  5791. # Find out which ABI we are using.
  5792. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5793. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5794. (eval $ac_compile) 2>&5
  5795. ac_status=$?
  5796. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5797. test $ac_status = 0; }; then
  5798. if test "$lt_cv_prog_gnu_ld" = yes; then
  5799. case `/usr/bin/file conftest.$ac_objext` in
  5800. *32-bit*)
  5801. LD="${LD-ld} -melf32bsmip"
  5802. ;;
  5803. *N32*)
  5804. LD="${LD-ld} -melf32bmipn32"
  5805. ;;
  5806. *64-bit*)
  5807. LD="${LD-ld} -melf64bmip"
  5808. ;;
  5809. esac
  5810. else
  5811. case `/usr/bin/file conftest.$ac_objext` in
  5812. *32-bit*)
  5813. LD="${LD-ld} -32"
  5814. ;;
  5815. *N32*)
  5816. LD="${LD-ld} -n32"
  5817. ;;
  5818. *64-bit*)
  5819. LD="${LD-ld} -64"
  5820. ;;
  5821. esac
  5822. fi
  5823. fi
  5824. rm -rf conftest*
  5825. ;;
  5826. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5827. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5828. # Find out which ABI we are using.
  5829. echo 'int i;' > conftest.$ac_ext
  5830. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5831. (eval $ac_compile) 2>&5
  5832. ac_status=$?
  5833. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5834. test $ac_status = 0; }; then
  5835. case `/usr/bin/file conftest.o` in
  5836. *32-bit*)
  5837. case $host in
  5838. x86_64-*kfreebsd*-gnu)
  5839. LD="${LD-ld} -m elf_i386_fbsd"
  5840. ;;
  5841. x86_64-*linux*)
  5842. case `/usr/bin/file conftest.o` in
  5843. *x86-64*)
  5844. LD="${LD-ld} -m elf32_x86_64"
  5845. ;;
  5846. *)
  5847. LD="${LD-ld} -m elf_i386"
  5848. ;;
  5849. esac
  5850. ;;
  5851. powerpc64le-*)
  5852. LD="${LD-ld} -m elf32lppclinux"
  5853. ;;
  5854. powerpc64-*)
  5855. LD="${LD-ld} -m elf32ppclinux"
  5856. ;;
  5857. s390x-*linux*)
  5858. LD="${LD-ld} -m elf_s390"
  5859. ;;
  5860. sparc64-*linux*)
  5861. LD="${LD-ld} -m elf32_sparc"
  5862. ;;
  5863. esac
  5864. ;;
  5865. *64-bit*)
  5866. case $host in
  5867. x86_64-*kfreebsd*-gnu)
  5868. LD="${LD-ld} -m elf_x86_64_fbsd"
  5869. ;;
  5870. x86_64-*linux*)
  5871. LD="${LD-ld} -m elf_x86_64"
  5872. ;;
  5873. powerpcle-*)
  5874. LD="${LD-ld} -m elf64lppc"
  5875. ;;
  5876. powerpc-*)
  5877. LD="${LD-ld} -m elf64ppc"
  5878. ;;
  5879. s390*-*linux*|s390*-*tpf*)
  5880. LD="${LD-ld} -m elf64_s390"
  5881. ;;
  5882. sparc*-*linux*)
  5883. LD="${LD-ld} -m elf64_sparc"
  5884. ;;
  5885. esac
  5886. ;;
  5887. esac
  5888. fi
  5889. rm -rf conftest*
  5890. ;;
  5891. *-*-sco3.2v5*)
  5892. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5893. SAVE_CFLAGS="$CFLAGS"
  5894. CFLAGS="$CFLAGS -belf"
  5895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5896. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5897. if ${lt_cv_cc_needs_belf+:} false; then :
  5898. $as_echo_n "(cached) " >&6
  5899. else
  5900. ac_ext=c
  5901. ac_cpp='$CPP $CPPFLAGS'
  5902. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5903. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5904. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5906. /* end confdefs.h. */
  5907. int
  5908. main ()
  5909. {
  5910. ;
  5911. return 0;
  5912. }
  5913. _ACEOF
  5914. if ac_fn_c_try_link "$LINENO"; then :
  5915. lt_cv_cc_needs_belf=yes
  5916. else
  5917. lt_cv_cc_needs_belf=no
  5918. fi
  5919. rm -f core conftest.err conftest.$ac_objext \
  5920. conftest$ac_exeext conftest.$ac_ext
  5921. ac_ext=c
  5922. ac_cpp='$CPP $CPPFLAGS'
  5923. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5924. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5925. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5926. fi
  5927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5928. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5929. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5930. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5931. CFLAGS="$SAVE_CFLAGS"
  5932. fi
  5933. ;;
  5934. *-*solaris*)
  5935. # Find out which ABI we are using.
  5936. echo 'int i;' > conftest.$ac_ext
  5937. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5938. (eval $ac_compile) 2>&5
  5939. ac_status=$?
  5940. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5941. test $ac_status = 0; }; then
  5942. case `/usr/bin/file conftest.o` in
  5943. *64-bit*)
  5944. case $lt_cv_prog_gnu_ld in
  5945. yes*)
  5946. case $host in
  5947. i?86-*-solaris*)
  5948. LD="${LD-ld} -m elf_x86_64"
  5949. ;;
  5950. sparc*-*-solaris*)
  5951. LD="${LD-ld} -m elf64_sparc"
  5952. ;;
  5953. esac
  5954. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5955. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5956. LD="${LD-ld}_sol2"
  5957. fi
  5958. ;;
  5959. *)
  5960. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5961. LD="${LD-ld} -64"
  5962. fi
  5963. ;;
  5964. esac
  5965. ;;
  5966. esac
  5967. fi
  5968. rm -rf conftest*
  5969. ;;
  5970. esac
  5971. need_locks="$enable_libtool_lock"
  5972. if test -n "$ac_tool_prefix"; then
  5973. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5974. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5976. $as_echo_n "checking for $ac_word... " >&6; }
  5977. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5978. $as_echo_n "(cached) " >&6
  5979. else
  5980. if test -n "$MANIFEST_TOOL"; then
  5981. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5982. else
  5983. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5984. for as_dir in $PATH
  5985. do
  5986. IFS=$as_save_IFS
  5987. test -z "$as_dir" && as_dir=.
  5988. for ac_exec_ext in '' $ac_executable_extensions; do
  5989. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5990. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5991. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5992. break 2
  5993. fi
  5994. done
  5995. done
  5996. IFS=$as_save_IFS
  5997. fi
  5998. fi
  5999. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6000. if test -n "$MANIFEST_TOOL"; then
  6001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6002. $as_echo "$MANIFEST_TOOL" >&6; }
  6003. else
  6004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6005. $as_echo "no" >&6; }
  6006. fi
  6007. fi
  6008. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6009. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6010. # Extract the first word of "mt", so it can be a program name with args.
  6011. set dummy mt; ac_word=$2
  6012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6013. $as_echo_n "checking for $ac_word... " >&6; }
  6014. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6015. $as_echo_n "(cached) " >&6
  6016. else
  6017. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6018. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6019. else
  6020. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6021. for as_dir in $PATH
  6022. do
  6023. IFS=$as_save_IFS
  6024. test -z "$as_dir" && as_dir=.
  6025. for ac_exec_ext in '' $ac_executable_extensions; do
  6026. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6027. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6028. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6029. break 2
  6030. fi
  6031. done
  6032. done
  6033. IFS=$as_save_IFS
  6034. fi
  6035. fi
  6036. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6037. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6039. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6040. else
  6041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6042. $as_echo "no" >&6; }
  6043. fi
  6044. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6045. MANIFEST_TOOL=":"
  6046. else
  6047. case $cross_compiling:$ac_tool_warned in
  6048. yes:)
  6049. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6050. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6051. ac_tool_warned=yes ;;
  6052. esac
  6053. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6054. fi
  6055. else
  6056. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6057. fi
  6058. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6060. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6061. if ${lt_cv_path_mainfest_tool+:} false; then :
  6062. $as_echo_n "(cached) " >&6
  6063. else
  6064. lt_cv_path_mainfest_tool=no
  6065. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6066. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6067. cat conftest.err >&5
  6068. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6069. lt_cv_path_mainfest_tool=yes
  6070. fi
  6071. rm -f conftest*
  6072. fi
  6073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6074. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6075. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6076. MANIFEST_TOOL=:
  6077. fi
  6078. case $host_os in
  6079. rhapsody* | darwin*)
  6080. if test -n "$ac_tool_prefix"; then
  6081. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6082. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6084. $as_echo_n "checking for $ac_word... " >&6; }
  6085. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6086. $as_echo_n "(cached) " >&6
  6087. else
  6088. if test -n "$DSYMUTIL"; then
  6089. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6090. else
  6091. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6092. for as_dir in $PATH
  6093. do
  6094. IFS=$as_save_IFS
  6095. test -z "$as_dir" && as_dir=.
  6096. for ac_exec_ext in '' $ac_executable_extensions; do
  6097. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6098. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6099. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6100. break 2
  6101. fi
  6102. done
  6103. done
  6104. IFS=$as_save_IFS
  6105. fi
  6106. fi
  6107. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6108. if test -n "$DSYMUTIL"; then
  6109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6110. $as_echo "$DSYMUTIL" >&6; }
  6111. else
  6112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6113. $as_echo "no" >&6; }
  6114. fi
  6115. fi
  6116. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6117. ac_ct_DSYMUTIL=$DSYMUTIL
  6118. # Extract the first word of "dsymutil", so it can be a program name with args.
  6119. set dummy dsymutil; ac_word=$2
  6120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6121. $as_echo_n "checking for $ac_word... " >&6; }
  6122. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6123. $as_echo_n "(cached) " >&6
  6124. else
  6125. if test -n "$ac_ct_DSYMUTIL"; then
  6126. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6127. else
  6128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6129. for as_dir in $PATH
  6130. do
  6131. IFS=$as_save_IFS
  6132. test -z "$as_dir" && as_dir=.
  6133. for ac_exec_ext in '' $ac_executable_extensions; do
  6134. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6135. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6136. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6137. break 2
  6138. fi
  6139. done
  6140. done
  6141. IFS=$as_save_IFS
  6142. fi
  6143. fi
  6144. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6145. if test -n "$ac_ct_DSYMUTIL"; then
  6146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6147. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6148. else
  6149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6150. $as_echo "no" >&6; }
  6151. fi
  6152. if test "x$ac_ct_DSYMUTIL" = x; then
  6153. DSYMUTIL=":"
  6154. else
  6155. case $cross_compiling:$ac_tool_warned in
  6156. yes:)
  6157. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6158. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6159. ac_tool_warned=yes ;;
  6160. esac
  6161. DSYMUTIL=$ac_ct_DSYMUTIL
  6162. fi
  6163. else
  6164. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6165. fi
  6166. if test -n "$ac_tool_prefix"; then
  6167. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6168. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6170. $as_echo_n "checking for $ac_word... " >&6; }
  6171. if ${ac_cv_prog_NMEDIT+:} false; then :
  6172. $as_echo_n "(cached) " >&6
  6173. else
  6174. if test -n "$NMEDIT"; then
  6175. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6176. else
  6177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6178. for as_dir in $PATH
  6179. do
  6180. IFS=$as_save_IFS
  6181. test -z "$as_dir" && as_dir=.
  6182. for ac_exec_ext in '' $ac_executable_extensions; do
  6183. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6184. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6185. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6186. break 2
  6187. fi
  6188. done
  6189. done
  6190. IFS=$as_save_IFS
  6191. fi
  6192. fi
  6193. NMEDIT=$ac_cv_prog_NMEDIT
  6194. if test -n "$NMEDIT"; then
  6195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6196. $as_echo "$NMEDIT" >&6; }
  6197. else
  6198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6199. $as_echo "no" >&6; }
  6200. fi
  6201. fi
  6202. if test -z "$ac_cv_prog_NMEDIT"; then
  6203. ac_ct_NMEDIT=$NMEDIT
  6204. # Extract the first word of "nmedit", so it can be a program name with args.
  6205. set dummy nmedit; ac_word=$2
  6206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6207. $as_echo_n "checking for $ac_word... " >&6; }
  6208. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6209. $as_echo_n "(cached) " >&6
  6210. else
  6211. if test -n "$ac_ct_NMEDIT"; then
  6212. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6213. else
  6214. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6215. for as_dir in $PATH
  6216. do
  6217. IFS=$as_save_IFS
  6218. test -z "$as_dir" && as_dir=.
  6219. for ac_exec_ext in '' $ac_executable_extensions; do
  6220. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6221. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6222. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6223. break 2
  6224. fi
  6225. done
  6226. done
  6227. IFS=$as_save_IFS
  6228. fi
  6229. fi
  6230. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6231. if test -n "$ac_ct_NMEDIT"; then
  6232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6233. $as_echo "$ac_ct_NMEDIT" >&6; }
  6234. else
  6235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6236. $as_echo "no" >&6; }
  6237. fi
  6238. if test "x$ac_ct_NMEDIT" = x; then
  6239. NMEDIT=":"
  6240. else
  6241. case $cross_compiling:$ac_tool_warned in
  6242. yes:)
  6243. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6244. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6245. ac_tool_warned=yes ;;
  6246. esac
  6247. NMEDIT=$ac_ct_NMEDIT
  6248. fi
  6249. else
  6250. NMEDIT="$ac_cv_prog_NMEDIT"
  6251. fi
  6252. if test -n "$ac_tool_prefix"; then
  6253. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6254. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6256. $as_echo_n "checking for $ac_word... " >&6; }
  6257. if ${ac_cv_prog_LIPO+:} false; then :
  6258. $as_echo_n "(cached) " >&6
  6259. else
  6260. if test -n "$LIPO"; then
  6261. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6262. else
  6263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6264. for as_dir in $PATH
  6265. do
  6266. IFS=$as_save_IFS
  6267. test -z "$as_dir" && as_dir=.
  6268. for ac_exec_ext in '' $ac_executable_extensions; do
  6269. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6270. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6271. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6272. break 2
  6273. fi
  6274. done
  6275. done
  6276. IFS=$as_save_IFS
  6277. fi
  6278. fi
  6279. LIPO=$ac_cv_prog_LIPO
  6280. if test -n "$LIPO"; then
  6281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6282. $as_echo "$LIPO" >&6; }
  6283. else
  6284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6285. $as_echo "no" >&6; }
  6286. fi
  6287. fi
  6288. if test -z "$ac_cv_prog_LIPO"; then
  6289. ac_ct_LIPO=$LIPO
  6290. # Extract the first word of "lipo", so it can be a program name with args.
  6291. set dummy lipo; ac_word=$2
  6292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6293. $as_echo_n "checking for $ac_word... " >&6; }
  6294. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6295. $as_echo_n "(cached) " >&6
  6296. else
  6297. if test -n "$ac_ct_LIPO"; then
  6298. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6299. else
  6300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6301. for as_dir in $PATH
  6302. do
  6303. IFS=$as_save_IFS
  6304. test -z "$as_dir" && as_dir=.
  6305. for ac_exec_ext in '' $ac_executable_extensions; do
  6306. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6307. ac_cv_prog_ac_ct_LIPO="lipo"
  6308. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6309. break 2
  6310. fi
  6311. done
  6312. done
  6313. IFS=$as_save_IFS
  6314. fi
  6315. fi
  6316. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6317. if test -n "$ac_ct_LIPO"; then
  6318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6319. $as_echo "$ac_ct_LIPO" >&6; }
  6320. else
  6321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6322. $as_echo "no" >&6; }
  6323. fi
  6324. if test "x$ac_ct_LIPO" = x; then
  6325. LIPO=":"
  6326. else
  6327. case $cross_compiling:$ac_tool_warned in
  6328. yes:)
  6329. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6330. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6331. ac_tool_warned=yes ;;
  6332. esac
  6333. LIPO=$ac_ct_LIPO
  6334. fi
  6335. else
  6336. LIPO="$ac_cv_prog_LIPO"
  6337. fi
  6338. if test -n "$ac_tool_prefix"; then
  6339. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6340. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6342. $as_echo_n "checking for $ac_word... " >&6; }
  6343. if ${ac_cv_prog_OTOOL+:} false; then :
  6344. $as_echo_n "(cached) " >&6
  6345. else
  6346. if test -n "$OTOOL"; then
  6347. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6348. else
  6349. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6350. for as_dir in $PATH
  6351. do
  6352. IFS=$as_save_IFS
  6353. test -z "$as_dir" && as_dir=.
  6354. for ac_exec_ext in '' $ac_executable_extensions; do
  6355. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6356. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6357. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6358. break 2
  6359. fi
  6360. done
  6361. done
  6362. IFS=$as_save_IFS
  6363. fi
  6364. fi
  6365. OTOOL=$ac_cv_prog_OTOOL
  6366. if test -n "$OTOOL"; then
  6367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6368. $as_echo "$OTOOL" >&6; }
  6369. else
  6370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6371. $as_echo "no" >&6; }
  6372. fi
  6373. fi
  6374. if test -z "$ac_cv_prog_OTOOL"; then
  6375. ac_ct_OTOOL=$OTOOL
  6376. # Extract the first word of "otool", so it can be a program name with args.
  6377. set dummy otool; ac_word=$2
  6378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6379. $as_echo_n "checking for $ac_word... " >&6; }
  6380. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6381. $as_echo_n "(cached) " >&6
  6382. else
  6383. if test -n "$ac_ct_OTOOL"; then
  6384. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6385. else
  6386. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6387. for as_dir in $PATH
  6388. do
  6389. IFS=$as_save_IFS
  6390. test -z "$as_dir" && as_dir=.
  6391. for ac_exec_ext in '' $ac_executable_extensions; do
  6392. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6393. ac_cv_prog_ac_ct_OTOOL="otool"
  6394. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6395. break 2
  6396. fi
  6397. done
  6398. done
  6399. IFS=$as_save_IFS
  6400. fi
  6401. fi
  6402. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6403. if test -n "$ac_ct_OTOOL"; then
  6404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6405. $as_echo "$ac_ct_OTOOL" >&6; }
  6406. else
  6407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6408. $as_echo "no" >&6; }
  6409. fi
  6410. if test "x$ac_ct_OTOOL" = x; then
  6411. OTOOL=":"
  6412. else
  6413. case $cross_compiling:$ac_tool_warned in
  6414. yes:)
  6415. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6416. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6417. ac_tool_warned=yes ;;
  6418. esac
  6419. OTOOL=$ac_ct_OTOOL
  6420. fi
  6421. else
  6422. OTOOL="$ac_cv_prog_OTOOL"
  6423. fi
  6424. if test -n "$ac_tool_prefix"; then
  6425. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6426. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6428. $as_echo_n "checking for $ac_word... " >&6; }
  6429. if ${ac_cv_prog_OTOOL64+:} false; then :
  6430. $as_echo_n "(cached) " >&6
  6431. else
  6432. if test -n "$OTOOL64"; then
  6433. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6434. else
  6435. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6436. for as_dir in $PATH
  6437. do
  6438. IFS=$as_save_IFS
  6439. test -z "$as_dir" && as_dir=.
  6440. for ac_exec_ext in '' $ac_executable_extensions; do
  6441. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6442. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6443. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6444. break 2
  6445. fi
  6446. done
  6447. done
  6448. IFS=$as_save_IFS
  6449. fi
  6450. fi
  6451. OTOOL64=$ac_cv_prog_OTOOL64
  6452. if test -n "$OTOOL64"; then
  6453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6454. $as_echo "$OTOOL64" >&6; }
  6455. else
  6456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6457. $as_echo "no" >&6; }
  6458. fi
  6459. fi
  6460. if test -z "$ac_cv_prog_OTOOL64"; then
  6461. ac_ct_OTOOL64=$OTOOL64
  6462. # Extract the first word of "otool64", so it can be a program name with args.
  6463. set dummy otool64; ac_word=$2
  6464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6465. $as_echo_n "checking for $ac_word... " >&6; }
  6466. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6467. $as_echo_n "(cached) " >&6
  6468. else
  6469. if test -n "$ac_ct_OTOOL64"; then
  6470. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6471. else
  6472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6473. for as_dir in $PATH
  6474. do
  6475. IFS=$as_save_IFS
  6476. test -z "$as_dir" && as_dir=.
  6477. for ac_exec_ext in '' $ac_executable_extensions; do
  6478. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6479. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6480. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6481. break 2
  6482. fi
  6483. done
  6484. done
  6485. IFS=$as_save_IFS
  6486. fi
  6487. fi
  6488. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6489. if test -n "$ac_ct_OTOOL64"; then
  6490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6491. $as_echo "$ac_ct_OTOOL64" >&6; }
  6492. else
  6493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6494. $as_echo "no" >&6; }
  6495. fi
  6496. if test "x$ac_ct_OTOOL64" = x; then
  6497. OTOOL64=":"
  6498. else
  6499. case $cross_compiling:$ac_tool_warned in
  6500. yes:)
  6501. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6502. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6503. ac_tool_warned=yes ;;
  6504. esac
  6505. OTOOL64=$ac_ct_OTOOL64
  6506. fi
  6507. else
  6508. OTOOL64="$ac_cv_prog_OTOOL64"
  6509. fi
  6510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6511. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6512. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6513. $as_echo_n "(cached) " >&6
  6514. else
  6515. lt_cv_apple_cc_single_mod=no
  6516. if test -z "${LT_MULTI_MODULE}"; then
  6517. # By default we will add the -single_module flag. You can override
  6518. # by either setting the environment variable LT_MULTI_MODULE
  6519. # non-empty at configure time, or by adding -multi_module to the
  6520. # link flags.
  6521. rm -rf libconftest.dylib*
  6522. echo "int foo(void){return 1;}" > conftest.c
  6523. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6524. -dynamiclib -Wl,-single_module conftest.c" >&5
  6525. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6526. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6527. _lt_result=$?
  6528. # If there is a non-empty error log, and "single_module"
  6529. # appears in it, assume the flag caused a linker warning
  6530. if test -s conftest.err && $GREP single_module conftest.err; then
  6531. cat conftest.err >&5
  6532. # Otherwise, if the output was created with a 0 exit code from
  6533. # the compiler, it worked.
  6534. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6535. lt_cv_apple_cc_single_mod=yes
  6536. else
  6537. cat conftest.err >&5
  6538. fi
  6539. rm -rf libconftest.dylib*
  6540. rm -f conftest.*
  6541. fi
  6542. fi
  6543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6544. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6546. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6547. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6548. $as_echo_n "(cached) " >&6
  6549. else
  6550. lt_cv_ld_exported_symbols_list=no
  6551. save_LDFLAGS=$LDFLAGS
  6552. echo "_main" > conftest.sym
  6553. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6555. /* end confdefs.h. */
  6556. int
  6557. main ()
  6558. {
  6559. ;
  6560. return 0;
  6561. }
  6562. _ACEOF
  6563. if ac_fn_c_try_link "$LINENO"; then :
  6564. lt_cv_ld_exported_symbols_list=yes
  6565. else
  6566. lt_cv_ld_exported_symbols_list=no
  6567. fi
  6568. rm -f core conftest.err conftest.$ac_objext \
  6569. conftest$ac_exeext conftest.$ac_ext
  6570. LDFLAGS="$save_LDFLAGS"
  6571. fi
  6572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6573. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6575. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6576. if ${lt_cv_ld_force_load+:} false; then :
  6577. $as_echo_n "(cached) " >&6
  6578. else
  6579. lt_cv_ld_force_load=no
  6580. cat > conftest.c << _LT_EOF
  6581. int forced_loaded() { return 2;}
  6582. _LT_EOF
  6583. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6584. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6585. echo "$AR cru libconftest.a conftest.o" >&5
  6586. $AR cru libconftest.a conftest.o 2>&5
  6587. echo "$RANLIB libconftest.a" >&5
  6588. $RANLIB libconftest.a 2>&5
  6589. cat > conftest.c << _LT_EOF
  6590. int main() { return 0;}
  6591. _LT_EOF
  6592. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6593. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6594. _lt_result=$?
  6595. if test -s conftest.err && $GREP force_load conftest.err; then
  6596. cat conftest.err >&5
  6597. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6598. lt_cv_ld_force_load=yes
  6599. else
  6600. cat conftest.err >&5
  6601. fi
  6602. rm -f conftest.err libconftest.a conftest conftest.c
  6603. rm -rf conftest.dSYM
  6604. fi
  6605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6606. $as_echo "$lt_cv_ld_force_load" >&6; }
  6607. case $host_os in
  6608. rhapsody* | darwin1.[012])
  6609. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6610. darwin1.*)
  6611. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6612. darwin*) # darwin 5.x on
  6613. # if running on 10.5 or later, the deployment target defaults
  6614. # to the OS version, if on x86, and 10.4, the deployment
  6615. # target defaults to 10.4. Don't you love it?
  6616. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6617. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6618. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6619. 10.[012]*)
  6620. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6621. 10.*)
  6622. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6623. esac
  6624. ;;
  6625. esac
  6626. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6627. _lt_dar_single_mod='$single_module'
  6628. fi
  6629. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6630. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6631. else
  6632. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6633. fi
  6634. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6635. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6636. else
  6637. _lt_dsymutil=
  6638. fi
  6639. ;;
  6640. esac
  6641. ac_ext=c
  6642. ac_cpp='$CPP $CPPFLAGS'
  6643. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6644. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6645. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6647. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6648. # On Suns, sometimes $CPP names a directory.
  6649. if test -n "$CPP" && test -d "$CPP"; then
  6650. CPP=
  6651. fi
  6652. if test -z "$CPP"; then
  6653. if ${ac_cv_prog_CPP+:} false; then :
  6654. $as_echo_n "(cached) " >&6
  6655. else
  6656. # Double quotes because CPP needs to be expanded
  6657. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6658. do
  6659. ac_preproc_ok=false
  6660. for ac_c_preproc_warn_flag in '' yes
  6661. do
  6662. # Use a header file that comes with gcc, so configuring glibc
  6663. # with a fresh cross-compiler works.
  6664. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6665. # <limits.h> exists even on freestanding compilers.
  6666. # On the NeXT, cc -E runs the code through the compiler's parser,
  6667. # not just through cpp. "Syntax error" is here to catch this case.
  6668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6669. /* end confdefs.h. */
  6670. #ifdef __STDC__
  6671. # include <limits.h>
  6672. #else
  6673. # include <assert.h>
  6674. #endif
  6675. Syntax error
  6676. _ACEOF
  6677. if ac_fn_c_try_cpp "$LINENO"; then :
  6678. else
  6679. # Broken: fails on valid input.
  6680. continue
  6681. fi
  6682. rm -f conftest.err conftest.i conftest.$ac_ext
  6683. # OK, works on sane cases. Now check whether nonexistent headers
  6684. # can be detected and how.
  6685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6686. /* end confdefs.h. */
  6687. #include <ac_nonexistent.h>
  6688. _ACEOF
  6689. if ac_fn_c_try_cpp "$LINENO"; then :
  6690. # Broken: success on invalid input.
  6691. continue
  6692. else
  6693. # Passes both tests.
  6694. ac_preproc_ok=:
  6695. break
  6696. fi
  6697. rm -f conftest.err conftest.i conftest.$ac_ext
  6698. done
  6699. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6700. rm -f conftest.i conftest.err conftest.$ac_ext
  6701. if $ac_preproc_ok; then :
  6702. break
  6703. fi
  6704. done
  6705. ac_cv_prog_CPP=$CPP
  6706. fi
  6707. CPP=$ac_cv_prog_CPP
  6708. else
  6709. ac_cv_prog_CPP=$CPP
  6710. fi
  6711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6712. $as_echo "$CPP" >&6; }
  6713. ac_preproc_ok=false
  6714. for ac_c_preproc_warn_flag in '' yes
  6715. do
  6716. # Use a header file that comes with gcc, so configuring glibc
  6717. # with a fresh cross-compiler works.
  6718. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6719. # <limits.h> exists even on freestanding compilers.
  6720. # On the NeXT, cc -E runs the code through the compiler's parser,
  6721. # not just through cpp. "Syntax error" is here to catch this case.
  6722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6723. /* end confdefs.h. */
  6724. #ifdef __STDC__
  6725. # include <limits.h>
  6726. #else
  6727. # include <assert.h>
  6728. #endif
  6729. Syntax error
  6730. _ACEOF
  6731. if ac_fn_c_try_cpp "$LINENO"; then :
  6732. else
  6733. # Broken: fails on valid input.
  6734. continue
  6735. fi
  6736. rm -f conftest.err conftest.i conftest.$ac_ext
  6737. # OK, works on sane cases. Now check whether nonexistent headers
  6738. # can be detected and how.
  6739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6740. /* end confdefs.h. */
  6741. #include <ac_nonexistent.h>
  6742. _ACEOF
  6743. if ac_fn_c_try_cpp "$LINENO"; then :
  6744. # Broken: success on invalid input.
  6745. continue
  6746. else
  6747. # Passes both tests.
  6748. ac_preproc_ok=:
  6749. break
  6750. fi
  6751. rm -f conftest.err conftest.i conftest.$ac_ext
  6752. done
  6753. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6754. rm -f conftest.i conftest.err conftest.$ac_ext
  6755. if $ac_preproc_ok; then :
  6756. else
  6757. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6758. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6759. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6760. See \`config.log' for more details" "$LINENO" 5; }
  6761. fi
  6762. ac_ext=c
  6763. ac_cpp='$CPP $CPPFLAGS'
  6764. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6765. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6766. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6768. $as_echo_n "checking for ANSI C header files... " >&6; }
  6769. if ${ac_cv_header_stdc+:} false; then :
  6770. $as_echo_n "(cached) " >&6
  6771. else
  6772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6773. /* end confdefs.h. */
  6774. #include <stdlib.h>
  6775. #include <stdarg.h>
  6776. #include <string.h>
  6777. #include <float.h>
  6778. int
  6779. main ()
  6780. {
  6781. ;
  6782. return 0;
  6783. }
  6784. _ACEOF
  6785. if ac_fn_c_try_compile "$LINENO"; then :
  6786. ac_cv_header_stdc=yes
  6787. else
  6788. ac_cv_header_stdc=no
  6789. fi
  6790. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6791. if test $ac_cv_header_stdc = yes; then
  6792. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6794. /* end confdefs.h. */
  6795. #include <string.h>
  6796. _ACEOF
  6797. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6798. $EGREP "memchr" >/dev/null 2>&1; then :
  6799. else
  6800. ac_cv_header_stdc=no
  6801. fi
  6802. rm -f conftest*
  6803. fi
  6804. if test $ac_cv_header_stdc = yes; then
  6805. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6807. /* end confdefs.h. */
  6808. #include <stdlib.h>
  6809. _ACEOF
  6810. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6811. $EGREP "free" >/dev/null 2>&1; then :
  6812. else
  6813. ac_cv_header_stdc=no
  6814. fi
  6815. rm -f conftest*
  6816. fi
  6817. if test $ac_cv_header_stdc = yes; then
  6818. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6819. if test "$cross_compiling" = yes; then :
  6820. :
  6821. else
  6822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6823. /* end confdefs.h. */
  6824. #include <ctype.h>
  6825. #include <stdlib.h>
  6826. #if ((' ' & 0x0FF) == 0x020)
  6827. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6828. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6829. #else
  6830. # define ISLOWER(c) \
  6831. (('a' <= (c) && (c) <= 'i') \
  6832. || ('j' <= (c) && (c) <= 'r') \
  6833. || ('s' <= (c) && (c) <= 'z'))
  6834. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6835. #endif
  6836. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6837. int
  6838. main ()
  6839. {
  6840. int i;
  6841. for (i = 0; i < 256; i++)
  6842. if (XOR (islower (i), ISLOWER (i))
  6843. || toupper (i) != TOUPPER (i))
  6844. return 2;
  6845. return 0;
  6846. }
  6847. _ACEOF
  6848. if ac_fn_c_try_run "$LINENO"; then :
  6849. else
  6850. ac_cv_header_stdc=no
  6851. fi
  6852. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6853. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6854. fi
  6855. fi
  6856. fi
  6857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6858. $as_echo "$ac_cv_header_stdc" >&6; }
  6859. if test $ac_cv_header_stdc = yes; then
  6860. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6861. fi
  6862. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6863. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6864. inttypes.h stdint.h unistd.h
  6865. do :
  6866. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6867. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6868. "
  6869. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6870. cat >>confdefs.h <<_ACEOF
  6871. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6872. _ACEOF
  6873. fi
  6874. done
  6875. for ac_header in dlfcn.h
  6876. do :
  6877. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6878. "
  6879. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6880. cat >>confdefs.h <<_ACEOF
  6881. #define HAVE_DLFCN_H 1
  6882. _ACEOF
  6883. fi
  6884. done
  6885. # Set options
  6886. enable_win32_dll=yes
  6887. case $host in
  6888. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6889. if test -n "$ac_tool_prefix"; then
  6890. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6891. set dummy ${ac_tool_prefix}as; ac_word=$2
  6892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6893. $as_echo_n "checking for $ac_word... " >&6; }
  6894. if ${ac_cv_prog_AS+:} false; then :
  6895. $as_echo_n "(cached) " >&6
  6896. else
  6897. if test -n "$AS"; then
  6898. ac_cv_prog_AS="$AS" # Let the user override the test.
  6899. else
  6900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6901. for as_dir in $PATH
  6902. do
  6903. IFS=$as_save_IFS
  6904. test -z "$as_dir" && as_dir=.
  6905. for ac_exec_ext in '' $ac_executable_extensions; do
  6906. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6907. ac_cv_prog_AS="${ac_tool_prefix}as"
  6908. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6909. break 2
  6910. fi
  6911. done
  6912. done
  6913. IFS=$as_save_IFS
  6914. fi
  6915. fi
  6916. AS=$ac_cv_prog_AS
  6917. if test -n "$AS"; then
  6918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6919. $as_echo "$AS" >&6; }
  6920. else
  6921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6922. $as_echo "no" >&6; }
  6923. fi
  6924. fi
  6925. if test -z "$ac_cv_prog_AS"; then
  6926. ac_ct_AS=$AS
  6927. # Extract the first word of "as", so it can be a program name with args.
  6928. set dummy as; ac_word=$2
  6929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6930. $as_echo_n "checking for $ac_word... " >&6; }
  6931. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6932. $as_echo_n "(cached) " >&6
  6933. else
  6934. if test -n "$ac_ct_AS"; then
  6935. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6936. else
  6937. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6938. for as_dir in $PATH
  6939. do
  6940. IFS=$as_save_IFS
  6941. test -z "$as_dir" && as_dir=.
  6942. for ac_exec_ext in '' $ac_executable_extensions; do
  6943. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6944. ac_cv_prog_ac_ct_AS="as"
  6945. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6946. break 2
  6947. fi
  6948. done
  6949. done
  6950. IFS=$as_save_IFS
  6951. fi
  6952. fi
  6953. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6954. if test -n "$ac_ct_AS"; then
  6955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6956. $as_echo "$ac_ct_AS" >&6; }
  6957. else
  6958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6959. $as_echo "no" >&6; }
  6960. fi
  6961. if test "x$ac_ct_AS" = x; then
  6962. AS="false"
  6963. else
  6964. case $cross_compiling:$ac_tool_warned in
  6965. yes:)
  6966. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6967. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6968. ac_tool_warned=yes ;;
  6969. esac
  6970. AS=$ac_ct_AS
  6971. fi
  6972. else
  6973. AS="$ac_cv_prog_AS"
  6974. fi
  6975. if test -n "$ac_tool_prefix"; then
  6976. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6977. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6979. $as_echo_n "checking for $ac_word... " >&6; }
  6980. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6981. $as_echo_n "(cached) " >&6
  6982. else
  6983. if test -n "$DLLTOOL"; then
  6984. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6985. else
  6986. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6987. for as_dir in $PATH
  6988. do
  6989. IFS=$as_save_IFS
  6990. test -z "$as_dir" && as_dir=.
  6991. for ac_exec_ext in '' $ac_executable_extensions; do
  6992. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6993. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6994. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6995. break 2
  6996. fi
  6997. done
  6998. done
  6999. IFS=$as_save_IFS
  7000. fi
  7001. fi
  7002. DLLTOOL=$ac_cv_prog_DLLTOOL
  7003. if test -n "$DLLTOOL"; then
  7004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7005. $as_echo "$DLLTOOL" >&6; }
  7006. else
  7007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7008. $as_echo "no" >&6; }
  7009. fi
  7010. fi
  7011. if test -z "$ac_cv_prog_DLLTOOL"; then
  7012. ac_ct_DLLTOOL=$DLLTOOL
  7013. # Extract the first word of "dlltool", so it can be a program name with args.
  7014. set dummy dlltool; ac_word=$2
  7015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7016. $as_echo_n "checking for $ac_word... " >&6; }
  7017. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  7018. $as_echo_n "(cached) " >&6
  7019. else
  7020. if test -n "$ac_ct_DLLTOOL"; then
  7021. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7022. else
  7023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7024. for as_dir in $PATH
  7025. do
  7026. IFS=$as_save_IFS
  7027. test -z "$as_dir" && as_dir=.
  7028. for ac_exec_ext in '' $ac_executable_extensions; do
  7029. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7030. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7031. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7032. break 2
  7033. fi
  7034. done
  7035. done
  7036. IFS=$as_save_IFS
  7037. fi
  7038. fi
  7039. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7040. if test -n "$ac_ct_DLLTOOL"; then
  7041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7042. $as_echo "$ac_ct_DLLTOOL" >&6; }
  7043. else
  7044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7045. $as_echo "no" >&6; }
  7046. fi
  7047. if test "x$ac_ct_DLLTOOL" = x; then
  7048. DLLTOOL="false"
  7049. else
  7050. case $cross_compiling:$ac_tool_warned in
  7051. yes:)
  7052. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7053. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7054. ac_tool_warned=yes ;;
  7055. esac
  7056. DLLTOOL=$ac_ct_DLLTOOL
  7057. fi
  7058. else
  7059. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7060. fi
  7061. if test -n "$ac_tool_prefix"; then
  7062. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7063. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7065. $as_echo_n "checking for $ac_word... " >&6; }
  7066. if ${ac_cv_prog_OBJDUMP+:} false; then :
  7067. $as_echo_n "(cached) " >&6
  7068. else
  7069. if test -n "$OBJDUMP"; then
  7070. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7071. else
  7072. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7073. for as_dir in $PATH
  7074. do
  7075. IFS=$as_save_IFS
  7076. test -z "$as_dir" && as_dir=.
  7077. for ac_exec_ext in '' $ac_executable_extensions; do
  7078. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7079. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7080. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7081. break 2
  7082. fi
  7083. done
  7084. done
  7085. IFS=$as_save_IFS
  7086. fi
  7087. fi
  7088. OBJDUMP=$ac_cv_prog_OBJDUMP
  7089. if test -n "$OBJDUMP"; then
  7090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7091. $as_echo "$OBJDUMP" >&6; }
  7092. else
  7093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7094. $as_echo "no" >&6; }
  7095. fi
  7096. fi
  7097. if test -z "$ac_cv_prog_OBJDUMP"; then
  7098. ac_ct_OBJDUMP=$OBJDUMP
  7099. # Extract the first word of "objdump", so it can be a program name with args.
  7100. set dummy objdump; ac_word=$2
  7101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7102. $as_echo_n "checking for $ac_word... " >&6; }
  7103. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  7104. $as_echo_n "(cached) " >&6
  7105. else
  7106. if test -n "$ac_ct_OBJDUMP"; then
  7107. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7108. else
  7109. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7110. for as_dir in $PATH
  7111. do
  7112. IFS=$as_save_IFS
  7113. test -z "$as_dir" && as_dir=.
  7114. for ac_exec_ext in '' $ac_executable_extensions; do
  7115. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7116. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7117. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7118. break 2
  7119. fi
  7120. done
  7121. done
  7122. IFS=$as_save_IFS
  7123. fi
  7124. fi
  7125. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7126. if test -n "$ac_ct_OBJDUMP"; then
  7127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7128. $as_echo "$ac_ct_OBJDUMP" >&6; }
  7129. else
  7130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7131. $as_echo "no" >&6; }
  7132. fi
  7133. if test "x$ac_ct_OBJDUMP" = x; then
  7134. OBJDUMP="false"
  7135. else
  7136. case $cross_compiling:$ac_tool_warned in
  7137. yes:)
  7138. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7139. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7140. ac_tool_warned=yes ;;
  7141. esac
  7142. OBJDUMP=$ac_ct_OBJDUMP
  7143. fi
  7144. else
  7145. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7146. fi
  7147. ;;
  7148. esac
  7149. test -z "$AS" && AS=as
  7150. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7151. test -z "$OBJDUMP" && OBJDUMP=objdump
  7152. enable_dlopen=no
  7153. # Check whether --enable-shared was given.
  7154. if test "${enable_shared+set}" = set; then :
  7155. enableval=$enable_shared; p=${PACKAGE-default}
  7156. case $enableval in
  7157. yes) enable_shared=yes ;;
  7158. no) enable_shared=no ;;
  7159. *)
  7160. enable_shared=no
  7161. # Look at the argument we got. We use all the common list separators.
  7162. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7163. for pkg in $enableval; do
  7164. IFS="$lt_save_ifs"
  7165. if test "X$pkg" = "X$p"; then
  7166. enable_shared=yes
  7167. fi
  7168. done
  7169. IFS="$lt_save_ifs"
  7170. ;;
  7171. esac
  7172. else
  7173. enable_shared=yes
  7174. fi
  7175. # Check whether --enable-static was given.
  7176. if test "${enable_static+set}" = set; then :
  7177. enableval=$enable_static; p=${PACKAGE-default}
  7178. case $enableval in
  7179. yes) enable_static=yes ;;
  7180. no) enable_static=no ;;
  7181. *)
  7182. enable_static=no
  7183. # Look at the argument we got. We use all the common list separators.
  7184. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7185. for pkg in $enableval; do
  7186. IFS="$lt_save_ifs"
  7187. if test "X$pkg" = "X$p"; then
  7188. enable_static=yes
  7189. fi
  7190. done
  7191. IFS="$lt_save_ifs"
  7192. ;;
  7193. esac
  7194. else
  7195. enable_static=yes
  7196. fi
  7197. # Check whether --with-pic was given.
  7198. if test "${with_pic+set}" = set; then :
  7199. withval=$with_pic; lt_p=${PACKAGE-default}
  7200. case $withval in
  7201. yes|no) pic_mode=$withval ;;
  7202. *)
  7203. pic_mode=default
  7204. # Look at the argument we got. We use all the common list separators.
  7205. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7206. for lt_pkg in $withval; do
  7207. IFS="$lt_save_ifs"
  7208. if test "X$lt_pkg" = "X$lt_p"; then
  7209. pic_mode=yes
  7210. fi
  7211. done
  7212. IFS="$lt_save_ifs"
  7213. ;;
  7214. esac
  7215. else
  7216. pic_mode=default
  7217. fi
  7218. test -z "$pic_mode" && pic_mode=default
  7219. # Check whether --enable-fast-install was given.
  7220. if test "${enable_fast_install+set}" = set; then :
  7221. enableval=$enable_fast_install; p=${PACKAGE-default}
  7222. case $enableval in
  7223. yes) enable_fast_install=yes ;;
  7224. no) enable_fast_install=no ;;
  7225. *)
  7226. enable_fast_install=no
  7227. # Look at the argument we got. We use all the common list separators.
  7228. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7229. for pkg in $enableval; do
  7230. IFS="$lt_save_ifs"
  7231. if test "X$pkg" = "X$p"; then
  7232. enable_fast_install=yes
  7233. fi
  7234. done
  7235. IFS="$lt_save_ifs"
  7236. ;;
  7237. esac
  7238. else
  7239. enable_fast_install=yes
  7240. fi
  7241. # This can be used to rebuild libtool when needed
  7242. LIBTOOL_DEPS="$ltmain"
  7243. # Always use our own libtool.
  7244. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7245. test -z "$LN_S" && LN_S="ln -s"
  7246. if test -n "${ZSH_VERSION+set}" ; then
  7247. setopt NO_GLOB_SUBST
  7248. fi
  7249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7250. $as_echo_n "checking for objdir... " >&6; }
  7251. if ${lt_cv_objdir+:} false; then :
  7252. $as_echo_n "(cached) " >&6
  7253. else
  7254. rm -f .libs 2>/dev/null
  7255. mkdir .libs 2>/dev/null
  7256. if test -d .libs; then
  7257. lt_cv_objdir=.libs
  7258. else
  7259. # MS-DOS does not allow filenames that begin with a dot.
  7260. lt_cv_objdir=_libs
  7261. fi
  7262. rmdir .libs 2>/dev/null
  7263. fi
  7264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7265. $as_echo "$lt_cv_objdir" >&6; }
  7266. objdir=$lt_cv_objdir
  7267. cat >>confdefs.h <<_ACEOF
  7268. #define LT_OBJDIR "$lt_cv_objdir/"
  7269. _ACEOF
  7270. case $host_os in
  7271. aix3*)
  7272. # AIX sometimes has problems with the GCC collect2 program. For some
  7273. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7274. # vanish in a puff of smoke.
  7275. if test "X${COLLECT_NAMES+set}" != Xset; then
  7276. COLLECT_NAMES=
  7277. export COLLECT_NAMES
  7278. fi
  7279. ;;
  7280. esac
  7281. # Global variables:
  7282. ofile=libtool
  7283. can_build_shared=yes
  7284. # All known linkers require a `.a' archive for static linking (except MSVC,
  7285. # which needs '.lib').
  7286. libext=a
  7287. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7288. old_CC="$CC"
  7289. old_CFLAGS="$CFLAGS"
  7290. # Set sane defaults for various variables
  7291. test -z "$CC" && CC=cc
  7292. test -z "$LTCC" && LTCC=$CC
  7293. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7294. test -z "$LD" && LD=ld
  7295. test -z "$ac_objext" && ac_objext=o
  7296. for cc_temp in $compiler""; do
  7297. case $cc_temp in
  7298. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7299. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7300. \-*) ;;
  7301. *) break;;
  7302. esac
  7303. done
  7304. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7305. # Only perform the check for file, if the check method requires it
  7306. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7307. case $deplibs_check_method in
  7308. file_magic*)
  7309. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7311. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7312. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7313. $as_echo_n "(cached) " >&6
  7314. else
  7315. case $MAGIC_CMD in
  7316. [\\/*] | ?:[\\/]*)
  7317. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7318. ;;
  7319. *)
  7320. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7321. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7322. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7323. for ac_dir in $ac_dummy; do
  7324. IFS="$lt_save_ifs"
  7325. test -z "$ac_dir" && ac_dir=.
  7326. if test -f $ac_dir/${ac_tool_prefix}file; then
  7327. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7328. if test -n "$file_magic_test_file"; then
  7329. case $deplibs_check_method in
  7330. "file_magic "*)
  7331. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7332. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7333. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7334. $EGREP "$file_magic_regex" > /dev/null; then
  7335. :
  7336. else
  7337. cat <<_LT_EOF 1>&2
  7338. *** Warning: the command libtool uses to detect shared libraries,
  7339. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7340. *** The result is that libtool may fail to recognize shared libraries
  7341. *** as such. This will affect the creation of libtool libraries that
  7342. *** depend on shared libraries, but programs linked with such libtool
  7343. *** libraries will work regardless of this problem. Nevertheless, you
  7344. *** may want to report the problem to your system manager and/or to
  7345. *** bug-libtool@gnu.org
  7346. _LT_EOF
  7347. fi ;;
  7348. esac
  7349. fi
  7350. break
  7351. fi
  7352. done
  7353. IFS="$lt_save_ifs"
  7354. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7355. ;;
  7356. esac
  7357. fi
  7358. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7359. if test -n "$MAGIC_CMD"; then
  7360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7361. $as_echo "$MAGIC_CMD" >&6; }
  7362. else
  7363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7364. $as_echo "no" >&6; }
  7365. fi
  7366. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7367. if test -n "$ac_tool_prefix"; then
  7368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7369. $as_echo_n "checking for file... " >&6; }
  7370. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7371. $as_echo_n "(cached) " >&6
  7372. else
  7373. case $MAGIC_CMD in
  7374. [\\/*] | ?:[\\/]*)
  7375. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7376. ;;
  7377. *)
  7378. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7379. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7380. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7381. for ac_dir in $ac_dummy; do
  7382. IFS="$lt_save_ifs"
  7383. test -z "$ac_dir" && ac_dir=.
  7384. if test -f $ac_dir/file; then
  7385. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7386. if test -n "$file_magic_test_file"; then
  7387. case $deplibs_check_method in
  7388. "file_magic "*)
  7389. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7390. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7391. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7392. $EGREP "$file_magic_regex" > /dev/null; then
  7393. :
  7394. else
  7395. cat <<_LT_EOF 1>&2
  7396. *** Warning: the command libtool uses to detect shared libraries,
  7397. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7398. *** The result is that libtool may fail to recognize shared libraries
  7399. *** as such. This will affect the creation of libtool libraries that
  7400. *** depend on shared libraries, but programs linked with such libtool
  7401. *** libraries will work regardless of this problem. Nevertheless, you
  7402. *** may want to report the problem to your system manager and/or to
  7403. *** bug-libtool@gnu.org
  7404. _LT_EOF
  7405. fi ;;
  7406. esac
  7407. fi
  7408. break
  7409. fi
  7410. done
  7411. IFS="$lt_save_ifs"
  7412. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7413. ;;
  7414. esac
  7415. fi
  7416. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7417. if test -n "$MAGIC_CMD"; then
  7418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7419. $as_echo "$MAGIC_CMD" >&6; }
  7420. else
  7421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7422. $as_echo "no" >&6; }
  7423. fi
  7424. else
  7425. MAGIC_CMD=:
  7426. fi
  7427. fi
  7428. fi
  7429. ;;
  7430. esac
  7431. # Use C for the default configuration in the libtool script
  7432. lt_save_CC="$CC"
  7433. ac_ext=c
  7434. ac_cpp='$CPP $CPPFLAGS'
  7435. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7436. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7437. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7438. # Source file extension for C test sources.
  7439. ac_ext=c
  7440. # Object file extension for compiled C test sources.
  7441. objext=o
  7442. objext=$objext
  7443. # Code to be used in simple compile tests
  7444. lt_simple_compile_test_code="int some_variable = 0;"
  7445. # Code to be used in simple link tests
  7446. lt_simple_link_test_code='int main(){return(0);}'
  7447. # If no C compiler was specified, use CC.
  7448. LTCC=${LTCC-"$CC"}
  7449. # If no C compiler flags were specified, use CFLAGS.
  7450. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7451. # Allow CC to be a program name with arguments.
  7452. compiler=$CC
  7453. # Save the default compiler, since it gets overwritten when the other
  7454. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7455. compiler_DEFAULT=$CC
  7456. # save warnings/boilerplate of simple test code
  7457. ac_outfile=conftest.$ac_objext
  7458. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7459. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7460. _lt_compiler_boilerplate=`cat conftest.err`
  7461. $RM conftest*
  7462. ac_outfile=conftest.$ac_objext
  7463. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7464. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7465. _lt_linker_boilerplate=`cat conftest.err`
  7466. $RM -r conftest*
  7467. ## CAVEAT EMPTOR:
  7468. ## There is no encapsulation within the following macros, do not change
  7469. ## the running order or otherwise move them around unless you know exactly
  7470. ## what you are doing...
  7471. if test -n "$compiler"; then
  7472. lt_prog_compiler_no_builtin_flag=
  7473. if test "$GCC" = yes; then
  7474. case $cc_basename in
  7475. nvcc*)
  7476. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7477. *)
  7478. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7479. esac
  7480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7481. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7482. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7483. $as_echo_n "(cached) " >&6
  7484. else
  7485. lt_cv_prog_compiler_rtti_exceptions=no
  7486. ac_outfile=conftest.$ac_objext
  7487. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7488. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7489. # Insert the option either (1) after the last *FLAGS variable, or
  7490. # (2) before a word containing "conftest.", or (3) at the end.
  7491. # Note that $ac_compile itself does not contain backslashes and begins
  7492. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7493. # The option is referenced via a variable to avoid confusing sed.
  7494. lt_compile=`echo "$ac_compile" | $SED \
  7495. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7496. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7497. -e 's:$: $lt_compiler_flag:'`
  7498. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7499. (eval "$lt_compile" 2>conftest.err)
  7500. ac_status=$?
  7501. cat conftest.err >&5
  7502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7503. if (exit $ac_status) && test -s "$ac_outfile"; then
  7504. # The compiler can only warn and ignore the option if not recognized
  7505. # So say no if there are warnings other than the usual output.
  7506. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7507. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7508. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7509. lt_cv_prog_compiler_rtti_exceptions=yes
  7510. fi
  7511. fi
  7512. $RM conftest*
  7513. fi
  7514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7515. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7516. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7517. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7518. else
  7519. :
  7520. fi
  7521. fi
  7522. lt_prog_compiler_wl=
  7523. lt_prog_compiler_pic=
  7524. lt_prog_compiler_static=
  7525. if test "$GCC" = yes; then
  7526. lt_prog_compiler_wl='-Wl,'
  7527. lt_prog_compiler_static='-static'
  7528. case $host_os in
  7529. aix*)
  7530. # All AIX code is PIC.
  7531. if test "$host_cpu" = ia64; then
  7532. # AIX 5 now supports IA64 processor
  7533. lt_prog_compiler_static='-Bstatic'
  7534. fi
  7535. ;;
  7536. amigaos*)
  7537. case $host_cpu in
  7538. powerpc)
  7539. # see comment about AmigaOS4 .so support
  7540. lt_prog_compiler_pic='-fPIC'
  7541. ;;
  7542. m68k)
  7543. # FIXME: we need at least 68020 code to build shared libraries, but
  7544. # adding the `-m68020' flag to GCC prevents building anything better,
  7545. # like `-m68040'.
  7546. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7547. ;;
  7548. esac
  7549. ;;
  7550. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7551. # PIC is the default for these OSes.
  7552. ;;
  7553. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7554. # This hack is so that the source file can tell whether it is being
  7555. # built for inclusion in a dll (and should export symbols for example).
  7556. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7557. # (--disable-auto-import) libraries
  7558. lt_prog_compiler_pic='-DDLL_EXPORT'
  7559. ;;
  7560. darwin* | rhapsody*)
  7561. # PIC is the default on this platform
  7562. # Common symbols not allowed in MH_DYLIB files
  7563. lt_prog_compiler_pic='-fno-common'
  7564. ;;
  7565. haiku*)
  7566. # PIC is the default for Haiku.
  7567. # The "-static" flag exists, but is broken.
  7568. lt_prog_compiler_static=
  7569. ;;
  7570. hpux*)
  7571. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7572. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7573. # sets the default TLS model and affects inlining.
  7574. case $host_cpu in
  7575. hppa*64*)
  7576. # +Z the default
  7577. ;;
  7578. *)
  7579. lt_prog_compiler_pic='-fPIC'
  7580. ;;
  7581. esac
  7582. ;;
  7583. interix[3-9]*)
  7584. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7585. # Instead, we relocate shared libraries at runtime.
  7586. ;;
  7587. msdosdjgpp*)
  7588. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7589. # on systems that don't support them.
  7590. lt_prog_compiler_can_build_shared=no
  7591. enable_shared=no
  7592. ;;
  7593. *nto* | *qnx*)
  7594. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7595. # it will coredump.
  7596. lt_prog_compiler_pic='-fPIC -shared'
  7597. ;;
  7598. sysv4*MP*)
  7599. if test -d /usr/nec; then
  7600. lt_prog_compiler_pic=-Kconform_pic
  7601. fi
  7602. ;;
  7603. *)
  7604. lt_prog_compiler_pic='-fPIC'
  7605. ;;
  7606. esac
  7607. case $cc_basename in
  7608. nvcc*) # Cuda Compiler Driver 2.2
  7609. lt_prog_compiler_wl='-Xlinker '
  7610. if test -n "$lt_prog_compiler_pic"; then
  7611. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7612. fi
  7613. ;;
  7614. esac
  7615. else
  7616. # PORTME Check for flag to pass linker flags through the system compiler.
  7617. case $host_os in
  7618. aix*)
  7619. lt_prog_compiler_wl='-Wl,'
  7620. if test "$host_cpu" = ia64; then
  7621. # AIX 5 now supports IA64 processor
  7622. lt_prog_compiler_static='-Bstatic'
  7623. else
  7624. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7625. fi
  7626. ;;
  7627. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7628. # This hack is so that the source file can tell whether it is being
  7629. # built for inclusion in a dll (and should export symbols for example).
  7630. lt_prog_compiler_pic='-DDLL_EXPORT'
  7631. ;;
  7632. hpux9* | hpux10* | hpux11*)
  7633. lt_prog_compiler_wl='-Wl,'
  7634. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7635. # not for PA HP-UX.
  7636. case $host_cpu in
  7637. hppa*64*|ia64*)
  7638. # +Z the default
  7639. ;;
  7640. *)
  7641. lt_prog_compiler_pic='+Z'
  7642. ;;
  7643. esac
  7644. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7645. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7646. ;;
  7647. irix5* | irix6* | nonstopux*)
  7648. lt_prog_compiler_wl='-Wl,'
  7649. # PIC (with -KPIC) is the default.
  7650. lt_prog_compiler_static='-non_shared'
  7651. ;;
  7652. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7653. case $cc_basename in
  7654. # old Intel for x86_64 which still supported -KPIC.
  7655. ecc*)
  7656. lt_prog_compiler_wl='-Wl,'
  7657. lt_prog_compiler_pic='-KPIC'
  7658. lt_prog_compiler_static='-static'
  7659. ;;
  7660. # icc used to be incompatible with GCC.
  7661. # ICC 10 doesn't accept -KPIC any more.
  7662. icc* | ifort*)
  7663. lt_prog_compiler_wl='-Wl,'
  7664. lt_prog_compiler_pic='-fPIC'
  7665. lt_prog_compiler_static='-static'
  7666. ;;
  7667. # Lahey Fortran 8.1.
  7668. lf95*)
  7669. lt_prog_compiler_wl='-Wl,'
  7670. lt_prog_compiler_pic='--shared'
  7671. lt_prog_compiler_static='--static'
  7672. ;;
  7673. nagfor*)
  7674. # NAG Fortran compiler
  7675. lt_prog_compiler_wl='-Wl,-Wl,,'
  7676. lt_prog_compiler_pic='-PIC'
  7677. lt_prog_compiler_static='-Bstatic'
  7678. ;;
  7679. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7680. # Portland Group compilers (*not* the Pentium gcc compiler,
  7681. # which looks to be a dead project)
  7682. lt_prog_compiler_wl='-Wl,'
  7683. lt_prog_compiler_pic='-fpic'
  7684. lt_prog_compiler_static='-Bstatic'
  7685. ;;
  7686. ccc*)
  7687. lt_prog_compiler_wl='-Wl,'
  7688. # All Alpha code is PIC.
  7689. lt_prog_compiler_static='-non_shared'
  7690. ;;
  7691. xl* | bgxl* | bgf* | mpixl*)
  7692. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7693. lt_prog_compiler_wl='-Wl,'
  7694. lt_prog_compiler_pic='-qpic'
  7695. lt_prog_compiler_static='-qstaticlink'
  7696. ;;
  7697. *)
  7698. case `$CC -V 2>&1 | sed 5q` in
  7699. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7700. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7701. lt_prog_compiler_pic='-KPIC'
  7702. lt_prog_compiler_static='-Bstatic'
  7703. lt_prog_compiler_wl=''
  7704. ;;
  7705. *Sun\ F* | *Sun*Fortran*)
  7706. lt_prog_compiler_pic='-KPIC'
  7707. lt_prog_compiler_static='-Bstatic'
  7708. lt_prog_compiler_wl='-Qoption ld '
  7709. ;;
  7710. *Sun\ C*)
  7711. # Sun C 5.9
  7712. lt_prog_compiler_pic='-KPIC'
  7713. lt_prog_compiler_static='-Bstatic'
  7714. lt_prog_compiler_wl='-Wl,'
  7715. ;;
  7716. *Intel*\ [CF]*Compiler*)
  7717. lt_prog_compiler_wl='-Wl,'
  7718. lt_prog_compiler_pic='-fPIC'
  7719. lt_prog_compiler_static='-static'
  7720. ;;
  7721. *Portland\ Group*)
  7722. lt_prog_compiler_wl='-Wl,'
  7723. lt_prog_compiler_pic='-fpic'
  7724. lt_prog_compiler_static='-Bstatic'
  7725. ;;
  7726. esac
  7727. ;;
  7728. esac
  7729. ;;
  7730. newsos6)
  7731. lt_prog_compiler_pic='-KPIC'
  7732. lt_prog_compiler_static='-Bstatic'
  7733. ;;
  7734. *nto* | *qnx*)
  7735. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7736. # it will coredump.
  7737. lt_prog_compiler_pic='-fPIC -shared'
  7738. ;;
  7739. osf3* | osf4* | osf5*)
  7740. lt_prog_compiler_wl='-Wl,'
  7741. # All OSF/1 code is PIC.
  7742. lt_prog_compiler_static='-non_shared'
  7743. ;;
  7744. rdos*)
  7745. lt_prog_compiler_static='-non_shared'
  7746. ;;
  7747. solaris*)
  7748. lt_prog_compiler_pic='-KPIC'
  7749. lt_prog_compiler_static='-Bstatic'
  7750. case $cc_basename in
  7751. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7752. lt_prog_compiler_wl='-Qoption ld ';;
  7753. *)
  7754. lt_prog_compiler_wl='-Wl,';;
  7755. esac
  7756. ;;
  7757. sunos4*)
  7758. lt_prog_compiler_wl='-Qoption ld '
  7759. lt_prog_compiler_pic='-PIC'
  7760. lt_prog_compiler_static='-Bstatic'
  7761. ;;
  7762. sysv4 | sysv4.2uw2* | sysv4.3*)
  7763. lt_prog_compiler_wl='-Wl,'
  7764. lt_prog_compiler_pic='-KPIC'
  7765. lt_prog_compiler_static='-Bstatic'
  7766. ;;
  7767. sysv4*MP*)
  7768. if test -d /usr/nec ;then
  7769. lt_prog_compiler_pic='-Kconform_pic'
  7770. lt_prog_compiler_static='-Bstatic'
  7771. fi
  7772. ;;
  7773. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7774. lt_prog_compiler_wl='-Wl,'
  7775. lt_prog_compiler_pic='-KPIC'
  7776. lt_prog_compiler_static='-Bstatic'
  7777. ;;
  7778. unicos*)
  7779. lt_prog_compiler_wl='-Wl,'
  7780. lt_prog_compiler_can_build_shared=no
  7781. ;;
  7782. uts4*)
  7783. lt_prog_compiler_pic='-pic'
  7784. lt_prog_compiler_static='-Bstatic'
  7785. ;;
  7786. *)
  7787. lt_prog_compiler_can_build_shared=no
  7788. ;;
  7789. esac
  7790. fi
  7791. case $host_os in
  7792. # For platforms which do not support PIC, -DPIC is meaningless:
  7793. *djgpp*)
  7794. lt_prog_compiler_pic=
  7795. ;;
  7796. *)
  7797. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7798. ;;
  7799. esac
  7800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7801. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7802. if ${lt_cv_prog_compiler_pic+:} false; then :
  7803. $as_echo_n "(cached) " >&6
  7804. else
  7805. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7806. fi
  7807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7808. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7809. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7810. #
  7811. # Check to make sure the PIC flag actually works.
  7812. #
  7813. if test -n "$lt_prog_compiler_pic"; then
  7814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7815. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7816. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7817. $as_echo_n "(cached) " >&6
  7818. else
  7819. lt_cv_prog_compiler_pic_works=no
  7820. ac_outfile=conftest.$ac_objext
  7821. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7822. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7823. # Insert the option either (1) after the last *FLAGS variable, or
  7824. # (2) before a word containing "conftest.", or (3) at the end.
  7825. # Note that $ac_compile itself does not contain backslashes and begins
  7826. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7827. # The option is referenced via a variable to avoid confusing sed.
  7828. lt_compile=`echo "$ac_compile" | $SED \
  7829. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7830. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7831. -e 's:$: $lt_compiler_flag:'`
  7832. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7833. (eval "$lt_compile" 2>conftest.err)
  7834. ac_status=$?
  7835. cat conftest.err >&5
  7836. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7837. if (exit $ac_status) && test -s "$ac_outfile"; then
  7838. # The compiler can only warn and ignore the option if not recognized
  7839. # So say no if there are warnings other than the usual output.
  7840. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7841. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7842. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7843. lt_cv_prog_compiler_pic_works=yes
  7844. fi
  7845. fi
  7846. $RM conftest*
  7847. fi
  7848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7849. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7850. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7851. case $lt_prog_compiler_pic in
  7852. "" | " "*) ;;
  7853. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7854. esac
  7855. else
  7856. lt_prog_compiler_pic=
  7857. lt_prog_compiler_can_build_shared=no
  7858. fi
  7859. fi
  7860. #
  7861. # Check to make sure the static flag actually works.
  7862. #
  7863. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7865. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7866. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7867. $as_echo_n "(cached) " >&6
  7868. else
  7869. lt_cv_prog_compiler_static_works=no
  7870. save_LDFLAGS="$LDFLAGS"
  7871. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7872. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7873. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7874. # The linker can only warn and ignore the option if not recognized
  7875. # So say no if there are warnings
  7876. if test -s conftest.err; then
  7877. # Append any errors to the config.log.
  7878. cat conftest.err 1>&5
  7879. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7880. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7881. if diff conftest.exp conftest.er2 >/dev/null; then
  7882. lt_cv_prog_compiler_static_works=yes
  7883. fi
  7884. else
  7885. lt_cv_prog_compiler_static_works=yes
  7886. fi
  7887. fi
  7888. $RM -r conftest*
  7889. LDFLAGS="$save_LDFLAGS"
  7890. fi
  7891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7892. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7893. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7894. :
  7895. else
  7896. lt_prog_compiler_static=
  7897. fi
  7898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7899. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7900. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7901. $as_echo_n "(cached) " >&6
  7902. else
  7903. lt_cv_prog_compiler_c_o=no
  7904. $RM -r conftest 2>/dev/null
  7905. mkdir conftest
  7906. cd conftest
  7907. mkdir out
  7908. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7909. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7910. # Insert the option either (1) after the last *FLAGS variable, or
  7911. # (2) before a word containing "conftest.", or (3) at the end.
  7912. # Note that $ac_compile itself does not contain backslashes and begins
  7913. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7914. lt_compile=`echo "$ac_compile" | $SED \
  7915. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7916. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7917. -e 's:$: $lt_compiler_flag:'`
  7918. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7919. (eval "$lt_compile" 2>out/conftest.err)
  7920. ac_status=$?
  7921. cat out/conftest.err >&5
  7922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7923. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7924. then
  7925. # The compiler can only warn and ignore the option if not recognized
  7926. # So say no if there are warnings
  7927. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7928. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7929. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7930. lt_cv_prog_compiler_c_o=yes
  7931. fi
  7932. fi
  7933. chmod u+w . 2>&5
  7934. $RM conftest*
  7935. # SGI C++ compiler will create directory out/ii_files/ for
  7936. # template instantiation
  7937. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7938. $RM out/* && rmdir out
  7939. cd ..
  7940. $RM -r conftest
  7941. $RM conftest*
  7942. fi
  7943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7944. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7946. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7947. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7948. $as_echo_n "(cached) " >&6
  7949. else
  7950. lt_cv_prog_compiler_c_o=no
  7951. $RM -r conftest 2>/dev/null
  7952. mkdir conftest
  7953. cd conftest
  7954. mkdir out
  7955. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7956. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7957. # Insert the option either (1) after the last *FLAGS variable, or
  7958. # (2) before a word containing "conftest.", or (3) at the end.
  7959. # Note that $ac_compile itself does not contain backslashes and begins
  7960. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7961. lt_compile=`echo "$ac_compile" | $SED \
  7962. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7963. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7964. -e 's:$: $lt_compiler_flag:'`
  7965. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7966. (eval "$lt_compile" 2>out/conftest.err)
  7967. ac_status=$?
  7968. cat out/conftest.err >&5
  7969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7970. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7971. then
  7972. # The compiler can only warn and ignore the option if not recognized
  7973. # So say no if there are warnings
  7974. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7975. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7976. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7977. lt_cv_prog_compiler_c_o=yes
  7978. fi
  7979. fi
  7980. chmod u+w . 2>&5
  7981. $RM conftest*
  7982. # SGI C++ compiler will create directory out/ii_files/ for
  7983. # template instantiation
  7984. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7985. $RM out/* && rmdir out
  7986. cd ..
  7987. $RM -r conftest
  7988. $RM conftest*
  7989. fi
  7990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7991. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7992. hard_links="nottested"
  7993. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7994. # do not overwrite the value of need_locks provided by the user
  7995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7996. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7997. hard_links=yes
  7998. $RM conftest*
  7999. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8000. touch conftest.a
  8001. ln conftest.a conftest.b 2>&5 || hard_links=no
  8002. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8004. $as_echo "$hard_links" >&6; }
  8005. if test "$hard_links" = no; then
  8006. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8007. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8008. need_locks=warn
  8009. fi
  8010. else
  8011. need_locks=no
  8012. fi
  8013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8014. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8015. runpath_var=
  8016. allow_undefined_flag=
  8017. always_export_symbols=no
  8018. archive_cmds=
  8019. archive_expsym_cmds=
  8020. compiler_needs_object=no
  8021. enable_shared_with_static_runtimes=no
  8022. export_dynamic_flag_spec=
  8023. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8024. hardcode_automatic=no
  8025. hardcode_direct=no
  8026. hardcode_direct_absolute=no
  8027. hardcode_libdir_flag_spec=
  8028. hardcode_libdir_separator=
  8029. hardcode_minus_L=no
  8030. hardcode_shlibpath_var=unsupported
  8031. inherit_rpath=no
  8032. link_all_deplibs=unknown
  8033. module_cmds=
  8034. module_expsym_cmds=
  8035. old_archive_from_new_cmds=
  8036. old_archive_from_expsyms_cmds=
  8037. thread_safe_flag_spec=
  8038. whole_archive_flag_spec=
  8039. # include_expsyms should be a list of space-separated symbols to be *always*
  8040. # included in the symbol list
  8041. include_expsyms=
  8042. # exclude_expsyms can be an extended regexp of symbols to exclude
  8043. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8044. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8045. # as well as any symbol that contains `d'.
  8046. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8047. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8048. # platforms (ab)use it in PIC code, but their linkers get confused if
  8049. # the symbol is explicitly referenced. Since portable code cannot
  8050. # rely on this symbol name, it's probably fine to never include it in
  8051. # preloaded symbol tables.
  8052. # Exclude shared library initialization/finalization symbols.
  8053. extract_expsyms_cmds=
  8054. case $host_os in
  8055. cygwin* | mingw* | pw32* | cegcc*)
  8056. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8057. # When not using gcc, we currently assume that we are using
  8058. # Microsoft Visual C++.
  8059. if test "$GCC" != yes; then
  8060. with_gnu_ld=no
  8061. fi
  8062. ;;
  8063. interix*)
  8064. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8065. with_gnu_ld=yes
  8066. ;;
  8067. openbsd*)
  8068. with_gnu_ld=no
  8069. ;;
  8070. linux* | k*bsd*-gnu | gnu*)
  8071. link_all_deplibs=no
  8072. ;;
  8073. esac
  8074. ld_shlibs=yes
  8075. # On some targets, GNU ld is compatible enough with the native linker
  8076. # that we're better off using the native interface for both.
  8077. lt_use_gnu_ld_interface=no
  8078. if test "$with_gnu_ld" = yes; then
  8079. case $host_os in
  8080. aix*)
  8081. # The AIX port of GNU ld has always aspired to compatibility
  8082. # with the native linker. However, as the warning in the GNU ld
  8083. # block says, versions before 2.19.5* couldn't really create working
  8084. # shared libraries, regardless of the interface used.
  8085. case `$LD -v 2>&1` in
  8086. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8087. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8088. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8089. *)
  8090. lt_use_gnu_ld_interface=yes
  8091. ;;
  8092. esac
  8093. ;;
  8094. *)
  8095. lt_use_gnu_ld_interface=yes
  8096. ;;
  8097. esac
  8098. fi
  8099. if test "$lt_use_gnu_ld_interface" = yes; then
  8100. # If archive_cmds runs LD, not CC, wlarc should be empty
  8101. wlarc='${wl}'
  8102. # Set some defaults for GNU ld with shared library support. These
  8103. # are reset later if shared libraries are not supported. Putting them
  8104. # here allows them to be overridden if necessary.
  8105. runpath_var=LD_RUN_PATH
  8106. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8107. export_dynamic_flag_spec='${wl}--export-dynamic'
  8108. # ancient GNU ld didn't support --whole-archive et. al.
  8109. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8110. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8111. else
  8112. whole_archive_flag_spec=
  8113. fi
  8114. supports_anon_versioning=no
  8115. case `$LD -v 2>&1` in
  8116. *GNU\ gold*) supports_anon_versioning=yes ;;
  8117. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8118. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8119. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8120. *\ 2.11.*) ;; # other 2.11 versions
  8121. *) supports_anon_versioning=yes ;;
  8122. esac
  8123. # See if GNU ld supports shared libraries.
  8124. case $host_os in
  8125. aix[3-9]*)
  8126. # On AIX/PPC, the GNU linker is very broken
  8127. if test "$host_cpu" != ia64; then
  8128. ld_shlibs=no
  8129. cat <<_LT_EOF 1>&2
  8130. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8131. *** to be unable to reliably create shared libraries on AIX.
  8132. *** Therefore, libtool is disabling shared libraries support. If you
  8133. *** really care for shared libraries, you may want to install binutils
  8134. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8135. *** You will then need to restart the configuration process.
  8136. _LT_EOF
  8137. fi
  8138. ;;
  8139. amigaos*)
  8140. case $host_cpu in
  8141. powerpc)
  8142. # see comment about AmigaOS4 .so support
  8143. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8144. archive_expsym_cmds=''
  8145. ;;
  8146. m68k)
  8147. 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)'
  8148. hardcode_libdir_flag_spec='-L$libdir'
  8149. hardcode_minus_L=yes
  8150. ;;
  8151. esac
  8152. ;;
  8153. beos*)
  8154. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8155. allow_undefined_flag=unsupported
  8156. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8157. # support --undefined. This deserves some investigation. FIXME
  8158. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8159. else
  8160. ld_shlibs=no
  8161. fi
  8162. ;;
  8163. cygwin* | mingw* | pw32* | cegcc*)
  8164. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8165. # as there is no search path for DLLs.
  8166. hardcode_libdir_flag_spec='-L$libdir'
  8167. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8168. allow_undefined_flag=unsupported
  8169. always_export_symbols=no
  8170. enable_shared_with_static_runtimes=yes
  8171. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  8172. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8173. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8174. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8175. # If the export-symbols file already is a .def file (1st line
  8176. # is EXPORTS), use it as is; otherwise, prepend...
  8177. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8178. cp $export_symbols $output_objdir/$soname.def;
  8179. else
  8180. echo EXPORTS > $output_objdir/$soname.def;
  8181. cat $export_symbols >> $output_objdir/$soname.def;
  8182. fi~
  8183. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8184. else
  8185. ld_shlibs=no
  8186. fi
  8187. ;;
  8188. haiku*)
  8189. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8190. link_all_deplibs=yes
  8191. ;;
  8192. interix[3-9]*)
  8193. hardcode_direct=no
  8194. hardcode_shlibpath_var=no
  8195. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8196. export_dynamic_flag_spec='${wl}-E'
  8197. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8198. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8199. # default) and relocated if they conflict, which is a slow very memory
  8200. # consuming and fragmenting process. To avoid this, we pick a random,
  8201. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8202. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8203. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8204. 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'
  8205. ;;
  8206. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8207. tmp_diet=no
  8208. if test "$host_os" = linux-dietlibc; then
  8209. case $cc_basename in
  8210. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8211. esac
  8212. fi
  8213. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8214. && test "$tmp_diet" = no
  8215. then
  8216. tmp_addflag=' $pic_flag'
  8217. tmp_sharedflag='-shared'
  8218. case $cc_basename,$host_cpu in
  8219. pgcc*) # Portland Group C compiler
  8220. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8221. tmp_addflag=' $pic_flag'
  8222. ;;
  8223. pgf77* | pgf90* | pgf95* | pgfortran*)
  8224. # Portland Group f77 and f90 compilers
  8225. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8226. tmp_addflag=' $pic_flag -Mnomain' ;;
  8227. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8228. tmp_addflag=' -i_dynamic' ;;
  8229. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8230. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8231. ifc* | ifort*) # Intel Fortran compiler
  8232. tmp_addflag=' -nofor_main' ;;
  8233. lf95*) # Lahey Fortran 8.1
  8234. whole_archive_flag_spec=
  8235. tmp_sharedflag='--shared' ;;
  8236. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8237. tmp_sharedflag='-qmkshrobj'
  8238. tmp_addflag= ;;
  8239. nvcc*) # Cuda Compiler Driver 2.2
  8240. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8241. compiler_needs_object=yes
  8242. ;;
  8243. esac
  8244. case `$CC -V 2>&1 | sed 5q` in
  8245. *Sun\ C*) # Sun C 5.9
  8246. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8247. compiler_needs_object=yes
  8248. tmp_sharedflag='-G' ;;
  8249. *Sun\ F*) # Sun Fortran 8.3
  8250. tmp_sharedflag='-G' ;;
  8251. esac
  8252. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8253. if test "x$supports_anon_versioning" = xyes; then
  8254. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8255. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8256. echo "local: *; };" >> $output_objdir/$libname.ver~
  8257. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8258. fi
  8259. case $cc_basename in
  8260. xlf* | bgf* | bgxlf* | mpixlf*)
  8261. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8262. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8263. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8264. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8265. if test "x$supports_anon_versioning" = xyes; then
  8266. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8267. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8268. echo "local: *; };" >> $output_objdir/$libname.ver~
  8269. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8270. fi
  8271. ;;
  8272. esac
  8273. else
  8274. ld_shlibs=no
  8275. fi
  8276. ;;
  8277. netbsd* | netbsdelf*-gnu)
  8278. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8279. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8280. wlarc=
  8281. else
  8282. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8283. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8284. fi
  8285. ;;
  8286. solaris*)
  8287. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8288. ld_shlibs=no
  8289. cat <<_LT_EOF 1>&2
  8290. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8291. *** create shared libraries on Solaris systems. Therefore, libtool
  8292. *** is disabling shared libraries support. We urge you to upgrade GNU
  8293. *** binutils to release 2.9.1 or newer. Another option is to modify
  8294. *** your PATH or compiler configuration so that the native linker is
  8295. *** used, and then restart.
  8296. _LT_EOF
  8297. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8298. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8299. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8300. else
  8301. ld_shlibs=no
  8302. fi
  8303. ;;
  8304. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8305. case `$LD -v 2>&1` in
  8306. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8307. ld_shlibs=no
  8308. cat <<_LT_EOF 1>&2
  8309. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8310. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8311. *** is disabling shared libraries support. We urge you to upgrade GNU
  8312. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8313. *** your PATH or compiler configuration so that the native linker is
  8314. *** used, and then restart.
  8315. _LT_EOF
  8316. ;;
  8317. *)
  8318. # For security reasons, it is highly recommended that you always
  8319. # use absolute paths for naming shared libraries, and exclude the
  8320. # DT_RUNPATH tag from executables and libraries. But doing so
  8321. # requires that you compile everything twice, which is a pain.
  8322. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8323. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8324. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8325. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8326. else
  8327. ld_shlibs=no
  8328. fi
  8329. ;;
  8330. esac
  8331. ;;
  8332. sunos4*)
  8333. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8334. wlarc=
  8335. hardcode_direct=yes
  8336. hardcode_shlibpath_var=no
  8337. ;;
  8338. *)
  8339. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8340. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8341. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8342. else
  8343. ld_shlibs=no
  8344. fi
  8345. ;;
  8346. esac
  8347. if test "$ld_shlibs" = no; then
  8348. runpath_var=
  8349. hardcode_libdir_flag_spec=
  8350. export_dynamic_flag_spec=
  8351. whole_archive_flag_spec=
  8352. fi
  8353. else
  8354. # PORTME fill in a description of your system's linker (not GNU ld)
  8355. case $host_os in
  8356. aix3*)
  8357. allow_undefined_flag=unsupported
  8358. always_export_symbols=yes
  8359. 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'
  8360. # Note: this linker hardcodes the directories in LIBPATH if there
  8361. # are no directories specified by -L.
  8362. hardcode_minus_L=yes
  8363. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8364. # Neither direct hardcoding nor static linking is supported with a
  8365. # broken collect2.
  8366. hardcode_direct=unsupported
  8367. fi
  8368. ;;
  8369. aix[4-9]*)
  8370. if test "$host_cpu" = ia64; then
  8371. # On IA64, the linker does run time linking by default, so we don't
  8372. # have to do anything special.
  8373. aix_use_runtimelinking=no
  8374. exp_sym_flag='-Bexport'
  8375. no_entry_flag=""
  8376. else
  8377. # If we're using GNU nm, then we don't want the "-C" option.
  8378. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8379. # Also, AIX nm treats weak defined symbols like other global
  8380. # defined symbols, whereas GNU nm marks them as "W".
  8381. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8382. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8383. else
  8384. 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'
  8385. fi
  8386. aix_use_runtimelinking=no
  8387. # Test if we are trying to use run time linking or normal
  8388. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8389. # need to do runtime linking.
  8390. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8391. for ld_flag in $LDFLAGS; do
  8392. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8393. aix_use_runtimelinking=yes
  8394. break
  8395. fi
  8396. done
  8397. ;;
  8398. esac
  8399. exp_sym_flag='-bexport'
  8400. no_entry_flag='-bnoentry'
  8401. fi
  8402. # When large executables or shared objects are built, AIX ld can
  8403. # have problems creating the table of contents. If linking a library
  8404. # or program results in "error TOC overflow" add -mminimal-toc to
  8405. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8406. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8407. archive_cmds=''
  8408. hardcode_direct=yes
  8409. hardcode_direct_absolute=yes
  8410. hardcode_libdir_separator=':'
  8411. link_all_deplibs=yes
  8412. file_list_spec='${wl}-f,'
  8413. if test "$GCC" = yes; then
  8414. case $host_os in aix4.[012]|aix4.[012].*)
  8415. # We only want to do this on AIX 4.2 and lower, the check
  8416. # below for broken collect2 doesn't work under 4.3+
  8417. collect2name=`${CC} -print-prog-name=collect2`
  8418. if test -f "$collect2name" &&
  8419. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8420. then
  8421. # We have reworked collect2
  8422. :
  8423. else
  8424. # We have old collect2
  8425. hardcode_direct=unsupported
  8426. # It fails to find uninstalled libraries when the uninstalled
  8427. # path is not listed in the libpath. Setting hardcode_minus_L
  8428. # to unsupported forces relinking
  8429. hardcode_minus_L=yes
  8430. hardcode_libdir_flag_spec='-L$libdir'
  8431. hardcode_libdir_separator=
  8432. fi
  8433. ;;
  8434. esac
  8435. shared_flag='-shared'
  8436. if test "$aix_use_runtimelinking" = yes; then
  8437. shared_flag="$shared_flag "'${wl}-G'
  8438. fi
  8439. link_all_deplibs=no
  8440. else
  8441. # not using gcc
  8442. if test "$host_cpu" = ia64; then
  8443. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8444. # chokes on -Wl,-G. The following line is correct:
  8445. shared_flag='-G'
  8446. else
  8447. if test "$aix_use_runtimelinking" = yes; then
  8448. shared_flag='${wl}-G'
  8449. else
  8450. shared_flag='${wl}-bM:SRE'
  8451. fi
  8452. fi
  8453. fi
  8454. export_dynamic_flag_spec='${wl}-bexpall'
  8455. # It seems that -bexpall does not export symbols beginning with
  8456. # underscore (_), so it is better to generate a list of symbols to export.
  8457. always_export_symbols=yes
  8458. if test "$aix_use_runtimelinking" = yes; then
  8459. # Warning - without using the other runtime loading flags (-brtl),
  8460. # -berok will link without error, but may produce a broken library.
  8461. allow_undefined_flag='-berok'
  8462. # Determine the default libpath from the value encoded in an
  8463. # empty executable.
  8464. if test "${lt_cv_aix_libpath+set}" = set; then
  8465. aix_libpath=$lt_cv_aix_libpath
  8466. else
  8467. if ${lt_cv_aix_libpath_+:} false; then :
  8468. $as_echo_n "(cached) " >&6
  8469. else
  8470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8471. /* end confdefs.h. */
  8472. int
  8473. main ()
  8474. {
  8475. ;
  8476. return 0;
  8477. }
  8478. _ACEOF
  8479. if ac_fn_c_try_link "$LINENO"; then :
  8480. lt_aix_libpath_sed='
  8481. /Import File Strings/,/^$/ {
  8482. /^0/ {
  8483. s/^0 *\([^ ]*\) *$/\1/
  8484. p
  8485. }
  8486. }'
  8487. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8488. # Check for a 64-bit object if we didn't find anything.
  8489. if test -z "$lt_cv_aix_libpath_"; then
  8490. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8491. fi
  8492. fi
  8493. rm -f core conftest.err conftest.$ac_objext \
  8494. conftest$ac_exeext conftest.$ac_ext
  8495. if test -z "$lt_cv_aix_libpath_"; then
  8496. lt_cv_aix_libpath_="/usr/lib:/lib"
  8497. fi
  8498. fi
  8499. aix_libpath=$lt_cv_aix_libpath_
  8500. fi
  8501. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8502. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8503. else
  8504. if test "$host_cpu" = ia64; then
  8505. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8506. allow_undefined_flag="-z nodefs"
  8507. 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"
  8508. else
  8509. # Determine the default libpath from the value encoded in an
  8510. # empty executable.
  8511. if test "${lt_cv_aix_libpath+set}" = set; then
  8512. aix_libpath=$lt_cv_aix_libpath
  8513. else
  8514. if ${lt_cv_aix_libpath_+:} false; then :
  8515. $as_echo_n "(cached) " >&6
  8516. else
  8517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8518. /* end confdefs.h. */
  8519. int
  8520. main ()
  8521. {
  8522. ;
  8523. return 0;
  8524. }
  8525. _ACEOF
  8526. if ac_fn_c_try_link "$LINENO"; then :
  8527. lt_aix_libpath_sed='
  8528. /Import File Strings/,/^$/ {
  8529. /^0/ {
  8530. s/^0 *\([^ ]*\) *$/\1/
  8531. p
  8532. }
  8533. }'
  8534. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8535. # Check for a 64-bit object if we didn't find anything.
  8536. if test -z "$lt_cv_aix_libpath_"; then
  8537. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8538. fi
  8539. fi
  8540. rm -f core conftest.err conftest.$ac_objext \
  8541. conftest$ac_exeext conftest.$ac_ext
  8542. if test -z "$lt_cv_aix_libpath_"; then
  8543. lt_cv_aix_libpath_="/usr/lib:/lib"
  8544. fi
  8545. fi
  8546. aix_libpath=$lt_cv_aix_libpath_
  8547. fi
  8548. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8549. # Warning - without using the other run time loading flags,
  8550. # -berok will link without error, but may produce a broken library.
  8551. no_undefined_flag=' ${wl}-bernotok'
  8552. allow_undefined_flag=' ${wl}-berok'
  8553. if test "$with_gnu_ld" = yes; then
  8554. # We only use this code for GNU lds that support --whole-archive.
  8555. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8556. else
  8557. # Exported symbols can be pulled into shared objects from archives
  8558. whole_archive_flag_spec='$convenience'
  8559. fi
  8560. archive_cmds_need_lc=yes
  8561. # This is similar to how AIX traditionally builds its shared libraries.
  8562. 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'
  8563. fi
  8564. fi
  8565. ;;
  8566. amigaos*)
  8567. case $host_cpu in
  8568. powerpc)
  8569. # see comment about AmigaOS4 .so support
  8570. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8571. archive_expsym_cmds=''
  8572. ;;
  8573. m68k)
  8574. 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)'
  8575. hardcode_libdir_flag_spec='-L$libdir'
  8576. hardcode_minus_L=yes
  8577. ;;
  8578. esac
  8579. ;;
  8580. bsdi[45]*)
  8581. export_dynamic_flag_spec=-rdynamic
  8582. ;;
  8583. cygwin* | mingw* | pw32* | cegcc*)
  8584. # When not using gcc, we currently assume that we are using
  8585. # Microsoft Visual C++.
  8586. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8587. # no search path for DLLs.
  8588. case $cc_basename in
  8589. cl*)
  8590. # Native MSVC
  8591. hardcode_libdir_flag_spec=' '
  8592. allow_undefined_flag=unsupported
  8593. always_export_symbols=yes
  8594. file_list_spec='@'
  8595. # Tell ltmain to make .lib files, not .a files.
  8596. libext=lib
  8597. # Tell ltmain to make .dll files, not .so files.
  8598. shrext_cmds=".dll"
  8599. # FIXME: Setting linknames here is a bad hack.
  8600. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8601. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8602. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8603. else
  8604. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8605. fi~
  8606. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8607. linknames='
  8608. # The linker will not automatically build a static lib if we build a DLL.
  8609. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8610. enable_shared_with_static_runtimes=yes
  8611. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8612. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8613. # Don't use ranlib
  8614. old_postinstall_cmds='chmod 644 $oldlib'
  8615. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8616. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8617. case $lt_outputfile in
  8618. *.exe|*.EXE) ;;
  8619. *)
  8620. lt_outputfile="$lt_outputfile.exe"
  8621. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8622. ;;
  8623. esac~
  8624. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8625. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8626. $RM "$lt_outputfile.manifest";
  8627. fi'
  8628. ;;
  8629. *)
  8630. # Assume MSVC wrapper
  8631. hardcode_libdir_flag_spec=' '
  8632. allow_undefined_flag=unsupported
  8633. # Tell ltmain to make .lib files, not .a files.
  8634. libext=lib
  8635. # Tell ltmain to make .dll files, not .so files.
  8636. shrext_cmds=".dll"
  8637. # FIXME: Setting linknames here is a bad hack.
  8638. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8639. # The linker will automatically build a .lib file if we build a DLL.
  8640. old_archive_from_new_cmds='true'
  8641. # FIXME: Should let the user specify the lib program.
  8642. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8643. enable_shared_with_static_runtimes=yes
  8644. ;;
  8645. esac
  8646. ;;
  8647. darwin* | rhapsody*)
  8648. archive_cmds_need_lc=no
  8649. hardcode_direct=no
  8650. hardcode_automatic=yes
  8651. hardcode_shlibpath_var=unsupported
  8652. if test "$lt_cv_ld_force_load" = "yes"; then
  8653. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  8654. else
  8655. whole_archive_flag_spec=''
  8656. fi
  8657. link_all_deplibs=yes
  8658. allow_undefined_flag="$_lt_dar_allow_undefined"
  8659. case $cc_basename in
  8660. ifort*) _lt_dar_can_shared=yes ;;
  8661. *) _lt_dar_can_shared=$GCC ;;
  8662. esac
  8663. if test "$_lt_dar_can_shared" = "yes"; then
  8664. output_verbose_link_cmd=func_echo_all
  8665. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8666. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8667. 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}"
  8668. 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}"
  8669. else
  8670. ld_shlibs=no
  8671. fi
  8672. ;;
  8673. dgux*)
  8674. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8675. hardcode_libdir_flag_spec='-L$libdir'
  8676. hardcode_shlibpath_var=no
  8677. ;;
  8678. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8679. # support. Future versions do this automatically, but an explicit c++rt0.o
  8680. # does not break anything, and helps significantly (at the cost of a little
  8681. # extra space).
  8682. freebsd2.2*)
  8683. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8684. hardcode_libdir_flag_spec='-R$libdir'
  8685. hardcode_direct=yes
  8686. hardcode_shlibpath_var=no
  8687. ;;
  8688. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8689. freebsd2.*)
  8690. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8691. hardcode_direct=yes
  8692. hardcode_minus_L=yes
  8693. hardcode_shlibpath_var=no
  8694. ;;
  8695. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8696. freebsd* | dragonfly*)
  8697. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8698. hardcode_libdir_flag_spec='-R$libdir'
  8699. hardcode_direct=yes
  8700. hardcode_shlibpath_var=no
  8701. ;;
  8702. hpux9*)
  8703. if test "$GCC" = yes; then
  8704. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8705. else
  8706. 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'
  8707. fi
  8708. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8709. hardcode_libdir_separator=:
  8710. hardcode_direct=yes
  8711. # hardcode_minus_L: Not really in the search PATH,
  8712. # but as the default location of the library.
  8713. hardcode_minus_L=yes
  8714. export_dynamic_flag_spec='${wl}-E'
  8715. ;;
  8716. hpux10*)
  8717. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8718. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8719. else
  8720. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8721. fi
  8722. if test "$with_gnu_ld" = no; then
  8723. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8724. hardcode_libdir_separator=:
  8725. hardcode_direct=yes
  8726. hardcode_direct_absolute=yes
  8727. export_dynamic_flag_spec='${wl}-E'
  8728. # hardcode_minus_L: Not really in the search PATH,
  8729. # but as the default location of the library.
  8730. hardcode_minus_L=yes
  8731. fi
  8732. ;;
  8733. hpux11*)
  8734. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8735. case $host_cpu in
  8736. hppa*64*)
  8737. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8738. ;;
  8739. ia64*)
  8740. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8741. ;;
  8742. *)
  8743. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8744. ;;
  8745. esac
  8746. else
  8747. case $host_cpu in
  8748. hppa*64*)
  8749. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8750. ;;
  8751. ia64*)
  8752. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8753. ;;
  8754. *)
  8755. # Older versions of the 11.00 compiler do not understand -b yet
  8756. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8758. $as_echo_n "checking if $CC understands -b... " >&6; }
  8759. if ${lt_cv_prog_compiler__b+:} false; then :
  8760. $as_echo_n "(cached) " >&6
  8761. else
  8762. lt_cv_prog_compiler__b=no
  8763. save_LDFLAGS="$LDFLAGS"
  8764. LDFLAGS="$LDFLAGS -b"
  8765. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8766. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8767. # The linker can only warn and ignore the option if not recognized
  8768. # So say no if there are warnings
  8769. if test -s conftest.err; then
  8770. # Append any errors to the config.log.
  8771. cat conftest.err 1>&5
  8772. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8773. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8774. if diff conftest.exp conftest.er2 >/dev/null; then
  8775. lt_cv_prog_compiler__b=yes
  8776. fi
  8777. else
  8778. lt_cv_prog_compiler__b=yes
  8779. fi
  8780. fi
  8781. $RM -r conftest*
  8782. LDFLAGS="$save_LDFLAGS"
  8783. fi
  8784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8785. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8786. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8787. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8788. else
  8789. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8790. fi
  8791. ;;
  8792. esac
  8793. fi
  8794. if test "$with_gnu_ld" = no; then
  8795. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8796. hardcode_libdir_separator=:
  8797. case $host_cpu in
  8798. hppa*64*|ia64*)
  8799. hardcode_direct=no
  8800. hardcode_shlibpath_var=no
  8801. ;;
  8802. *)
  8803. hardcode_direct=yes
  8804. hardcode_direct_absolute=yes
  8805. export_dynamic_flag_spec='${wl}-E'
  8806. # hardcode_minus_L: Not really in the search PATH,
  8807. # but as the default location of the library.
  8808. hardcode_minus_L=yes
  8809. ;;
  8810. esac
  8811. fi
  8812. ;;
  8813. irix5* | irix6* | nonstopux*)
  8814. if test "$GCC" = yes; then
  8815. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8816. # Try to use the -exported_symbol ld option, if it does not
  8817. # work, assume that -exports_file does not work either and
  8818. # implicitly export all symbols.
  8819. # This should be the same for all languages, so no per-tag cache variable.
  8820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8821. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8822. if ${lt_cv_irix_exported_symbol+:} false; then :
  8823. $as_echo_n "(cached) " >&6
  8824. else
  8825. save_LDFLAGS="$LDFLAGS"
  8826. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8828. /* end confdefs.h. */
  8829. int foo (void) { return 0; }
  8830. _ACEOF
  8831. if ac_fn_c_try_link "$LINENO"; then :
  8832. lt_cv_irix_exported_symbol=yes
  8833. else
  8834. lt_cv_irix_exported_symbol=no
  8835. fi
  8836. rm -f core conftest.err conftest.$ac_objext \
  8837. conftest$ac_exeext conftest.$ac_ext
  8838. LDFLAGS="$save_LDFLAGS"
  8839. fi
  8840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8841. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8842. if test "$lt_cv_irix_exported_symbol" = yes; then
  8843. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8844. fi
  8845. else
  8846. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8847. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8848. fi
  8849. archive_cmds_need_lc='no'
  8850. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8851. hardcode_libdir_separator=:
  8852. inherit_rpath=yes
  8853. link_all_deplibs=yes
  8854. ;;
  8855. netbsd* | netbsdelf*-gnu)
  8856. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8857. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8858. else
  8859. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8860. fi
  8861. hardcode_libdir_flag_spec='-R$libdir'
  8862. hardcode_direct=yes
  8863. hardcode_shlibpath_var=no
  8864. ;;
  8865. newsos6)
  8866. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8867. hardcode_direct=yes
  8868. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8869. hardcode_libdir_separator=:
  8870. hardcode_shlibpath_var=no
  8871. ;;
  8872. *nto* | *qnx*)
  8873. ;;
  8874. openbsd*)
  8875. if test -f /usr/libexec/ld.so; then
  8876. hardcode_direct=yes
  8877. hardcode_shlibpath_var=no
  8878. hardcode_direct_absolute=yes
  8879. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8880. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8881. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8882. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8883. export_dynamic_flag_spec='${wl}-E'
  8884. else
  8885. case $host_os in
  8886. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8887. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8888. hardcode_libdir_flag_spec='-R$libdir'
  8889. ;;
  8890. *)
  8891. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8892. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8893. ;;
  8894. esac
  8895. fi
  8896. else
  8897. ld_shlibs=no
  8898. fi
  8899. ;;
  8900. os2*)
  8901. hardcode_libdir_flag_spec='-L$libdir'
  8902. hardcode_minus_L=yes
  8903. allow_undefined_flag=unsupported
  8904. 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'
  8905. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8906. ;;
  8907. osf3*)
  8908. if test "$GCC" = yes; then
  8909. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8910. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8911. else
  8912. allow_undefined_flag=' -expect_unresolved \*'
  8913. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8914. fi
  8915. archive_cmds_need_lc='no'
  8916. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8917. hardcode_libdir_separator=:
  8918. ;;
  8919. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8920. if test "$GCC" = yes; then
  8921. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8922. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8923. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8924. else
  8925. allow_undefined_flag=' -expect_unresolved \*'
  8926. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8927. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  8928. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8929. # Both c and cxx compiler support -rpath directly
  8930. hardcode_libdir_flag_spec='-rpath $libdir'
  8931. fi
  8932. archive_cmds_need_lc='no'
  8933. hardcode_libdir_separator=:
  8934. ;;
  8935. solaris*)
  8936. no_undefined_flag=' -z defs'
  8937. if test "$GCC" = yes; then
  8938. wlarc='${wl}'
  8939. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8940. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8941. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8942. else
  8943. case `$CC -V 2>&1` in
  8944. *"Compilers 5.0"*)
  8945. wlarc=''
  8946. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8947. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8948. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8949. ;;
  8950. *)
  8951. wlarc='${wl}'
  8952. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8953. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8954. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8955. ;;
  8956. esac
  8957. fi
  8958. hardcode_libdir_flag_spec='-R$libdir'
  8959. hardcode_shlibpath_var=no
  8960. case $host_os in
  8961. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8962. *)
  8963. # The compiler driver will combine and reorder linker options,
  8964. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8965. # but is careful enough not to reorder.
  8966. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8967. if test "$GCC" = yes; then
  8968. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8969. else
  8970. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8971. fi
  8972. ;;
  8973. esac
  8974. link_all_deplibs=yes
  8975. ;;
  8976. sunos4*)
  8977. if test "x$host_vendor" = xsequent; then
  8978. # Use $CC to link under sequent, because it throws in some extra .o
  8979. # files that make .init and .fini sections work.
  8980. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8981. else
  8982. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8983. fi
  8984. hardcode_libdir_flag_spec='-L$libdir'
  8985. hardcode_direct=yes
  8986. hardcode_minus_L=yes
  8987. hardcode_shlibpath_var=no
  8988. ;;
  8989. sysv4)
  8990. case $host_vendor in
  8991. sni)
  8992. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8993. hardcode_direct=yes # is this really true???
  8994. ;;
  8995. siemens)
  8996. ## LD is ld it makes a PLAMLIB
  8997. ## CC just makes a GrossModule.
  8998. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8999. reload_cmds='$CC -r -o $output$reload_objs'
  9000. hardcode_direct=no
  9001. ;;
  9002. motorola)
  9003. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9004. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9005. ;;
  9006. esac
  9007. runpath_var='LD_RUN_PATH'
  9008. hardcode_shlibpath_var=no
  9009. ;;
  9010. sysv4.3*)
  9011. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9012. hardcode_shlibpath_var=no
  9013. export_dynamic_flag_spec='-Bexport'
  9014. ;;
  9015. sysv4*MP*)
  9016. if test -d /usr/nec; then
  9017. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9018. hardcode_shlibpath_var=no
  9019. runpath_var=LD_RUN_PATH
  9020. hardcode_runpath_var=yes
  9021. ld_shlibs=yes
  9022. fi
  9023. ;;
  9024. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9025. no_undefined_flag='${wl}-z,text'
  9026. archive_cmds_need_lc=no
  9027. hardcode_shlibpath_var=no
  9028. runpath_var='LD_RUN_PATH'
  9029. if test "$GCC" = yes; then
  9030. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9031. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9032. else
  9033. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9034. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9035. fi
  9036. ;;
  9037. sysv5* | sco3.2v5* | sco5v6*)
  9038. # Note: We can NOT use -z defs as we might desire, because we do not
  9039. # link with -lc, and that would cause any symbols used from libc to
  9040. # always be unresolved, which means just about no library would
  9041. # ever link correctly. If we're not using GNU ld we use -z text
  9042. # though, which does catch some bad symbols but isn't as heavy-handed
  9043. # as -z defs.
  9044. no_undefined_flag='${wl}-z,text'
  9045. allow_undefined_flag='${wl}-z,nodefs'
  9046. archive_cmds_need_lc=no
  9047. hardcode_shlibpath_var=no
  9048. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9049. hardcode_libdir_separator=':'
  9050. link_all_deplibs=yes
  9051. export_dynamic_flag_spec='${wl}-Bexport'
  9052. runpath_var='LD_RUN_PATH'
  9053. if test "$GCC" = yes; then
  9054. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9055. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9056. else
  9057. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9058. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9059. fi
  9060. ;;
  9061. uts4*)
  9062. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9063. hardcode_libdir_flag_spec='-L$libdir'
  9064. hardcode_shlibpath_var=no
  9065. ;;
  9066. *)
  9067. ld_shlibs=no
  9068. ;;
  9069. esac
  9070. if test x$host_vendor = xsni; then
  9071. case $host in
  9072. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9073. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9074. ;;
  9075. esac
  9076. fi
  9077. fi
  9078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9079. $as_echo "$ld_shlibs" >&6; }
  9080. test "$ld_shlibs" = no && can_build_shared=no
  9081. with_gnu_ld=$with_gnu_ld
  9082. #
  9083. # Do we need to explicitly link libc?
  9084. #
  9085. case "x$archive_cmds_need_lc" in
  9086. x|xyes)
  9087. # Assume -lc should be added
  9088. archive_cmds_need_lc=yes
  9089. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9090. case $archive_cmds in
  9091. *'~'*)
  9092. # FIXME: we may have to deal with multi-command sequences.
  9093. ;;
  9094. '$CC '*)
  9095. # Test whether the compiler implicitly links with -lc since on some
  9096. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9097. # to ld, don't add -lc before -lgcc.
  9098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9099. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9100. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9101. $as_echo_n "(cached) " >&6
  9102. else
  9103. $RM conftest*
  9104. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9105. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9106. (eval $ac_compile) 2>&5
  9107. ac_status=$?
  9108. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9109. test $ac_status = 0; } 2>conftest.err; then
  9110. soname=conftest
  9111. lib=conftest
  9112. libobjs=conftest.$ac_objext
  9113. deplibs=
  9114. wl=$lt_prog_compiler_wl
  9115. pic_flag=$lt_prog_compiler_pic
  9116. compiler_flags=-v
  9117. linker_flags=-v
  9118. verstring=
  9119. output_objdir=.
  9120. libname=conftest
  9121. lt_save_allow_undefined_flag=$allow_undefined_flag
  9122. allow_undefined_flag=
  9123. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9124. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9125. ac_status=$?
  9126. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9127. test $ac_status = 0; }
  9128. then
  9129. lt_cv_archive_cmds_need_lc=no
  9130. else
  9131. lt_cv_archive_cmds_need_lc=yes
  9132. fi
  9133. allow_undefined_flag=$lt_save_allow_undefined_flag
  9134. else
  9135. cat conftest.err 1>&5
  9136. fi
  9137. $RM conftest*
  9138. fi
  9139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9140. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9141. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9142. ;;
  9143. esac
  9144. fi
  9145. ;;
  9146. esac
  9147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9148. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9149. if test "$GCC" = yes; then
  9150. case $host_os in
  9151. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9152. *) lt_awk_arg="/^libraries:/" ;;
  9153. esac
  9154. case $host_os in
  9155. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9156. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9157. esac
  9158. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9159. case $lt_search_path_spec in
  9160. *\;*)
  9161. # if the path contains ";" then we assume it to be the separator
  9162. # otherwise default to the standard path separator (i.e. ":") - it is
  9163. # assumed that no part of a normal pathname contains ";" but that should
  9164. # okay in the real world where ";" in dirpaths is itself problematic.
  9165. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9166. ;;
  9167. *)
  9168. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9169. ;;
  9170. esac
  9171. # Ok, now we have the path, separated by spaces, we can step through it
  9172. # and add multilib dir if necessary.
  9173. lt_tmp_lt_search_path_spec=
  9174. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9175. for lt_sys_path in $lt_search_path_spec; do
  9176. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9177. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9178. else
  9179. test -d "$lt_sys_path" && \
  9180. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9181. fi
  9182. done
  9183. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9184. BEGIN {RS=" "; FS="/|\n";} {
  9185. lt_foo="";
  9186. lt_count=0;
  9187. for (lt_i = NF; lt_i > 0; lt_i--) {
  9188. if ($lt_i != "" && $lt_i != ".") {
  9189. if ($lt_i == "..") {
  9190. lt_count++;
  9191. } else {
  9192. if (lt_count == 0) {
  9193. lt_foo="/" $lt_i lt_foo;
  9194. } else {
  9195. lt_count--;
  9196. }
  9197. }
  9198. }
  9199. }
  9200. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9201. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9202. }'`
  9203. # AWK program above erroneously prepends '/' to C:/dos/paths
  9204. # for these hosts.
  9205. case $host_os in
  9206. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9207. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9208. esac
  9209. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9210. else
  9211. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9212. fi
  9213. library_names_spec=
  9214. libname_spec='lib$name'
  9215. soname_spec=
  9216. shrext_cmds=".so"
  9217. postinstall_cmds=
  9218. postuninstall_cmds=
  9219. finish_cmds=
  9220. finish_eval=
  9221. shlibpath_var=
  9222. shlibpath_overrides_runpath=unknown
  9223. version_type=none
  9224. dynamic_linker="$host_os ld.so"
  9225. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9226. need_lib_prefix=unknown
  9227. hardcode_into_libs=no
  9228. # when you set need_version to no, make sure it does not cause -set_version
  9229. # flags to be left without arguments
  9230. need_version=unknown
  9231. case $host_os in
  9232. aix3*)
  9233. version_type=linux # correct to gnu/linux during the next big refactor
  9234. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9235. shlibpath_var=LIBPATH
  9236. # AIX 3 has no versioning support, so we append a major version to the name.
  9237. soname_spec='${libname}${release}${shared_ext}$major'
  9238. ;;
  9239. aix[4-9]*)
  9240. version_type=linux # correct to gnu/linux during the next big refactor
  9241. need_lib_prefix=no
  9242. need_version=no
  9243. hardcode_into_libs=yes
  9244. if test "$host_cpu" = ia64; then
  9245. # AIX 5 supports IA64
  9246. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9247. shlibpath_var=LD_LIBRARY_PATH
  9248. else
  9249. # With GCC up to 2.95.x, collect2 would create an import file
  9250. # for dependence libraries. The import file would start with
  9251. # the line `#! .'. This would cause the generated library to
  9252. # depend on `.', always an invalid library. This was fixed in
  9253. # development snapshots of GCC prior to 3.0.
  9254. case $host_os in
  9255. aix4 | aix4.[01] | aix4.[01].*)
  9256. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9257. echo ' yes '
  9258. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9259. :
  9260. else
  9261. can_build_shared=no
  9262. fi
  9263. ;;
  9264. esac
  9265. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9266. # soname into executable. Probably we can add versioning support to
  9267. # collect2, so additional links can be useful in future.
  9268. if test "$aix_use_runtimelinking" = yes; then
  9269. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9270. # instead of lib<name>.a to let people know that these are not
  9271. # typical AIX shared libraries.
  9272. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9273. else
  9274. # We preserve .a as extension for shared libraries through AIX4.2
  9275. # and later when we are not doing run time linking.
  9276. library_names_spec='${libname}${release}.a $libname.a'
  9277. soname_spec='${libname}${release}${shared_ext}$major'
  9278. fi
  9279. shlibpath_var=LIBPATH
  9280. fi
  9281. ;;
  9282. amigaos*)
  9283. case $host_cpu in
  9284. powerpc)
  9285. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9286. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9287. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9288. ;;
  9289. m68k)
  9290. library_names_spec='$libname.ixlibrary $libname.a'
  9291. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9292. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9293. ;;
  9294. esac
  9295. ;;
  9296. beos*)
  9297. library_names_spec='${libname}${shared_ext}'
  9298. dynamic_linker="$host_os ld.so"
  9299. shlibpath_var=LIBRARY_PATH
  9300. ;;
  9301. bsdi[45]*)
  9302. version_type=linux # correct to gnu/linux during the next big refactor
  9303. need_version=no
  9304. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9305. soname_spec='${libname}${release}${shared_ext}$major'
  9306. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9307. shlibpath_var=LD_LIBRARY_PATH
  9308. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9309. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9310. # the default ld.so.conf also contains /usr/contrib/lib and
  9311. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9312. # libtool to hard-code these into programs
  9313. ;;
  9314. cygwin* | mingw* | pw32* | cegcc*)
  9315. version_type=windows
  9316. shrext_cmds=".dll"
  9317. need_version=no
  9318. need_lib_prefix=no
  9319. case $GCC,$cc_basename in
  9320. yes,*)
  9321. # gcc
  9322. library_names_spec='$libname.dll.a'
  9323. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9324. postinstall_cmds='base_file=`basename \${file}`~
  9325. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9326. dldir=$destdir/`dirname \$dlpath`~
  9327. test -d \$dldir || mkdir -p \$dldir~
  9328. $install_prog $dir/$dlname \$dldir/$dlname~
  9329. chmod a+x \$dldir/$dlname~
  9330. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9331. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9332. fi'
  9333. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9334. dlpath=$dir/\$dldll~
  9335. $RM \$dlpath'
  9336. shlibpath_overrides_runpath=yes
  9337. case $host_os in
  9338. cygwin*)
  9339. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9340. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9341. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9342. ;;
  9343. mingw* | cegcc*)
  9344. # MinGW DLLs use traditional 'lib' prefix
  9345. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9346. ;;
  9347. pw32*)
  9348. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9349. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9350. ;;
  9351. esac
  9352. dynamic_linker='Win32 ld.exe'
  9353. ;;
  9354. *,cl*)
  9355. # Native MSVC
  9356. libname_spec='$name'
  9357. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9358. library_names_spec='${libname}.dll.lib'
  9359. case $build_os in
  9360. mingw*)
  9361. sys_lib_search_path_spec=
  9362. lt_save_ifs=$IFS
  9363. IFS=';'
  9364. for lt_path in $LIB
  9365. do
  9366. IFS=$lt_save_ifs
  9367. # Let DOS variable expansion print the short 8.3 style file name.
  9368. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9369. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9370. done
  9371. IFS=$lt_save_ifs
  9372. # Convert to MSYS style.
  9373. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9374. ;;
  9375. cygwin*)
  9376. # Convert to unix form, then to dos form, then back to unix form
  9377. # but this time dos style (no spaces!) so that the unix form looks
  9378. # like /cygdrive/c/PROGRA~1:/cygdr...
  9379. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9380. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9381. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9382. ;;
  9383. *)
  9384. sys_lib_search_path_spec="$LIB"
  9385. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9386. # It is most probably a Windows format PATH.
  9387. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9388. else
  9389. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9390. fi
  9391. # FIXME: find the short name or the path components, as spaces are
  9392. # common. (e.g. "Program Files" -> "PROGRA~1")
  9393. ;;
  9394. esac
  9395. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9396. postinstall_cmds='base_file=`basename \${file}`~
  9397. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9398. dldir=$destdir/`dirname \$dlpath`~
  9399. test -d \$dldir || mkdir -p \$dldir~
  9400. $install_prog $dir/$dlname \$dldir/$dlname'
  9401. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9402. dlpath=$dir/\$dldll~
  9403. $RM \$dlpath'
  9404. shlibpath_overrides_runpath=yes
  9405. dynamic_linker='Win32 link.exe'
  9406. ;;
  9407. *)
  9408. # Assume MSVC wrapper
  9409. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9410. dynamic_linker='Win32 ld.exe'
  9411. ;;
  9412. esac
  9413. # FIXME: first we should search . and the directory the executable is in
  9414. shlibpath_var=PATH
  9415. ;;
  9416. darwin* | rhapsody*)
  9417. dynamic_linker="$host_os dyld"
  9418. version_type=darwin
  9419. need_lib_prefix=no
  9420. need_version=no
  9421. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9422. soname_spec='${libname}${release}${major}$shared_ext'
  9423. shlibpath_overrides_runpath=yes
  9424. shlibpath_var=DYLD_LIBRARY_PATH
  9425. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9426. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9427. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9428. ;;
  9429. dgux*)
  9430. version_type=linux # correct to gnu/linux during the next big refactor
  9431. need_lib_prefix=no
  9432. need_version=no
  9433. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9434. soname_spec='${libname}${release}${shared_ext}$major'
  9435. shlibpath_var=LD_LIBRARY_PATH
  9436. ;;
  9437. freebsd* | dragonfly*)
  9438. # DragonFly does not have aout. When/if they implement a new
  9439. # versioning mechanism, adjust this.
  9440. if test -x /usr/bin/objformat; then
  9441. objformat=`/usr/bin/objformat`
  9442. else
  9443. case $host_os in
  9444. freebsd[23].*) objformat=aout ;;
  9445. *) objformat=elf ;;
  9446. esac
  9447. fi
  9448. version_type=freebsd-$objformat
  9449. case $version_type in
  9450. freebsd-elf*)
  9451. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9452. need_version=no
  9453. need_lib_prefix=no
  9454. ;;
  9455. freebsd-*)
  9456. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9457. need_version=yes
  9458. ;;
  9459. esac
  9460. shlibpath_var=LD_LIBRARY_PATH
  9461. case $host_os in
  9462. freebsd2.*)
  9463. shlibpath_overrides_runpath=yes
  9464. ;;
  9465. freebsd3.[01]* | freebsdelf3.[01]*)
  9466. shlibpath_overrides_runpath=yes
  9467. hardcode_into_libs=yes
  9468. ;;
  9469. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9470. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9471. shlibpath_overrides_runpath=no
  9472. hardcode_into_libs=yes
  9473. ;;
  9474. *) # from 4.6 on, and DragonFly
  9475. shlibpath_overrides_runpath=yes
  9476. hardcode_into_libs=yes
  9477. ;;
  9478. esac
  9479. ;;
  9480. haiku*)
  9481. version_type=linux # correct to gnu/linux during the next big refactor
  9482. need_lib_prefix=no
  9483. need_version=no
  9484. dynamic_linker="$host_os runtime_loader"
  9485. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9486. soname_spec='${libname}${release}${shared_ext}$major'
  9487. shlibpath_var=LIBRARY_PATH
  9488. shlibpath_overrides_runpath=yes
  9489. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9490. hardcode_into_libs=yes
  9491. ;;
  9492. hpux9* | hpux10* | hpux11*)
  9493. # Give a soname corresponding to the major version so that dld.sl refuses to
  9494. # link against other versions.
  9495. version_type=sunos
  9496. need_lib_prefix=no
  9497. need_version=no
  9498. case $host_cpu in
  9499. ia64*)
  9500. shrext_cmds='.so'
  9501. hardcode_into_libs=yes
  9502. dynamic_linker="$host_os dld.so"
  9503. shlibpath_var=LD_LIBRARY_PATH
  9504. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9505. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9506. soname_spec='${libname}${release}${shared_ext}$major'
  9507. if test "X$HPUX_IA64_MODE" = X32; then
  9508. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9509. else
  9510. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9511. fi
  9512. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9513. ;;
  9514. hppa*64*)
  9515. shrext_cmds='.sl'
  9516. hardcode_into_libs=yes
  9517. dynamic_linker="$host_os dld.sl"
  9518. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9519. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9520. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9521. soname_spec='${libname}${release}${shared_ext}$major'
  9522. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9523. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9524. ;;
  9525. *)
  9526. shrext_cmds='.sl'
  9527. dynamic_linker="$host_os dld.sl"
  9528. shlibpath_var=SHLIB_PATH
  9529. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9530. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9531. soname_spec='${libname}${release}${shared_ext}$major'
  9532. ;;
  9533. esac
  9534. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9535. postinstall_cmds='chmod 555 $lib'
  9536. # or fails outright, so override atomically:
  9537. install_override_mode=555
  9538. ;;
  9539. interix[3-9]*)
  9540. version_type=linux # correct to gnu/linux during the next big refactor
  9541. need_lib_prefix=no
  9542. need_version=no
  9543. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9544. soname_spec='${libname}${release}${shared_ext}$major'
  9545. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9546. shlibpath_var=LD_LIBRARY_PATH
  9547. shlibpath_overrides_runpath=no
  9548. hardcode_into_libs=yes
  9549. ;;
  9550. irix5* | irix6* | nonstopux*)
  9551. case $host_os in
  9552. nonstopux*) version_type=nonstopux ;;
  9553. *)
  9554. if test "$lt_cv_prog_gnu_ld" = yes; then
  9555. version_type=linux # correct to gnu/linux during the next big refactor
  9556. else
  9557. version_type=irix
  9558. fi ;;
  9559. esac
  9560. need_lib_prefix=no
  9561. need_version=no
  9562. soname_spec='${libname}${release}${shared_ext}$major'
  9563. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9564. case $host_os in
  9565. irix5* | nonstopux*)
  9566. libsuff= shlibsuff=
  9567. ;;
  9568. *)
  9569. case $LD in # libtool.m4 will add one of these switches to LD
  9570. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9571. libsuff= shlibsuff= libmagic=32-bit;;
  9572. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9573. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9574. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9575. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9576. *) libsuff= shlibsuff= libmagic=never-match;;
  9577. esac
  9578. ;;
  9579. esac
  9580. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9581. shlibpath_overrides_runpath=no
  9582. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9583. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9584. hardcode_into_libs=yes
  9585. ;;
  9586. # No shared lib support for Linux oldld, aout, or coff.
  9587. linux*oldld* | linux*aout* | linux*coff*)
  9588. dynamic_linker=no
  9589. ;;
  9590. # This must be glibc/ELF.
  9591. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9592. version_type=linux # correct to gnu/linux during the next big refactor
  9593. need_lib_prefix=no
  9594. need_version=no
  9595. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9596. soname_spec='${libname}${release}${shared_ext}$major'
  9597. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9598. shlibpath_var=LD_LIBRARY_PATH
  9599. shlibpath_overrides_runpath=no
  9600. # Some binutils ld are patched to set DT_RUNPATH
  9601. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9602. $as_echo_n "(cached) " >&6
  9603. else
  9604. lt_cv_shlibpath_overrides_runpath=no
  9605. save_LDFLAGS=$LDFLAGS
  9606. save_libdir=$libdir
  9607. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9608. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9610. /* end confdefs.h. */
  9611. int
  9612. main ()
  9613. {
  9614. ;
  9615. return 0;
  9616. }
  9617. _ACEOF
  9618. if ac_fn_c_try_link "$LINENO"; then :
  9619. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9620. lt_cv_shlibpath_overrides_runpath=yes
  9621. fi
  9622. fi
  9623. rm -f core conftest.err conftest.$ac_objext \
  9624. conftest$ac_exeext conftest.$ac_ext
  9625. LDFLAGS=$save_LDFLAGS
  9626. libdir=$save_libdir
  9627. fi
  9628. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9629. # This implies no fast_install, which is unacceptable.
  9630. # Some rework will be needed to allow for fast_install
  9631. # before this can be enabled.
  9632. hardcode_into_libs=yes
  9633. # Append ld.so.conf contents to the search path
  9634. if test -f /etc/ld.so.conf; then
  9635. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  9636. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9637. fi
  9638. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9639. # powerpc, because MkLinux only supported shared libraries with the
  9640. # GNU dynamic linker. Since this was broken with cross compilers,
  9641. # most powerpc-linux boxes support dynamic linking these days and
  9642. # people can always --disable-shared, the test was removed, and we
  9643. # assume the GNU/Linux dynamic linker is in use.
  9644. dynamic_linker='GNU/Linux ld.so'
  9645. ;;
  9646. netbsdelf*-gnu)
  9647. version_type=linux
  9648. need_lib_prefix=no
  9649. need_version=no
  9650. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9651. soname_spec='${libname}${release}${shared_ext}$major'
  9652. shlibpath_var=LD_LIBRARY_PATH
  9653. shlibpath_overrides_runpath=no
  9654. hardcode_into_libs=yes
  9655. dynamic_linker='NetBSD ld.elf_so'
  9656. ;;
  9657. netbsd*)
  9658. version_type=sunos
  9659. need_lib_prefix=no
  9660. need_version=no
  9661. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9662. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9663. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9664. dynamic_linker='NetBSD (a.out) ld.so'
  9665. else
  9666. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9667. soname_spec='${libname}${release}${shared_ext}$major'
  9668. dynamic_linker='NetBSD ld.elf_so'
  9669. fi
  9670. shlibpath_var=LD_LIBRARY_PATH
  9671. shlibpath_overrides_runpath=yes
  9672. hardcode_into_libs=yes
  9673. ;;
  9674. newsos6)
  9675. version_type=linux # correct to gnu/linux during the next big refactor
  9676. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9677. shlibpath_var=LD_LIBRARY_PATH
  9678. shlibpath_overrides_runpath=yes
  9679. ;;
  9680. *nto* | *qnx*)
  9681. version_type=qnx
  9682. need_lib_prefix=no
  9683. need_version=no
  9684. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9685. soname_spec='${libname}${release}${shared_ext}$major'
  9686. shlibpath_var=LD_LIBRARY_PATH
  9687. shlibpath_overrides_runpath=no
  9688. hardcode_into_libs=yes
  9689. dynamic_linker='ldqnx.so'
  9690. ;;
  9691. openbsd*)
  9692. version_type=sunos
  9693. sys_lib_dlsearch_path_spec="/usr/lib"
  9694. need_lib_prefix=no
  9695. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9696. case $host_os in
  9697. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9698. *) need_version=no ;;
  9699. esac
  9700. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9701. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9702. shlibpath_var=LD_LIBRARY_PATH
  9703. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9704. case $host_os in
  9705. openbsd2.[89] | openbsd2.[89].*)
  9706. shlibpath_overrides_runpath=no
  9707. ;;
  9708. *)
  9709. shlibpath_overrides_runpath=yes
  9710. ;;
  9711. esac
  9712. else
  9713. shlibpath_overrides_runpath=yes
  9714. fi
  9715. ;;
  9716. os2*)
  9717. libname_spec='$name'
  9718. shrext_cmds=".dll"
  9719. need_lib_prefix=no
  9720. library_names_spec='$libname${shared_ext} $libname.a'
  9721. dynamic_linker='OS/2 ld.exe'
  9722. shlibpath_var=LIBPATH
  9723. ;;
  9724. osf3* | osf4* | osf5*)
  9725. version_type=osf
  9726. need_lib_prefix=no
  9727. need_version=no
  9728. soname_spec='${libname}${release}${shared_ext}$major'
  9729. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9730. shlibpath_var=LD_LIBRARY_PATH
  9731. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9732. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9733. ;;
  9734. rdos*)
  9735. dynamic_linker=no
  9736. ;;
  9737. solaris*)
  9738. version_type=linux # correct to gnu/linux during the next big refactor
  9739. need_lib_prefix=no
  9740. need_version=no
  9741. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9742. soname_spec='${libname}${release}${shared_ext}$major'
  9743. shlibpath_var=LD_LIBRARY_PATH
  9744. shlibpath_overrides_runpath=yes
  9745. hardcode_into_libs=yes
  9746. # ldd complains unless libraries are executable
  9747. postinstall_cmds='chmod +x $lib'
  9748. ;;
  9749. sunos4*)
  9750. version_type=sunos
  9751. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9752. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9753. shlibpath_var=LD_LIBRARY_PATH
  9754. shlibpath_overrides_runpath=yes
  9755. if test "$with_gnu_ld" = yes; then
  9756. need_lib_prefix=no
  9757. fi
  9758. need_version=yes
  9759. ;;
  9760. sysv4 | sysv4.3*)
  9761. version_type=linux # correct to gnu/linux during the next big refactor
  9762. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9763. soname_spec='${libname}${release}${shared_ext}$major'
  9764. shlibpath_var=LD_LIBRARY_PATH
  9765. case $host_vendor in
  9766. sni)
  9767. shlibpath_overrides_runpath=no
  9768. need_lib_prefix=no
  9769. runpath_var=LD_RUN_PATH
  9770. ;;
  9771. siemens)
  9772. need_lib_prefix=no
  9773. ;;
  9774. motorola)
  9775. need_lib_prefix=no
  9776. need_version=no
  9777. shlibpath_overrides_runpath=no
  9778. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9779. ;;
  9780. esac
  9781. ;;
  9782. sysv4*MP*)
  9783. if test -d /usr/nec ;then
  9784. version_type=linux # correct to gnu/linux during the next big refactor
  9785. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9786. soname_spec='$libname${shared_ext}.$major'
  9787. shlibpath_var=LD_LIBRARY_PATH
  9788. fi
  9789. ;;
  9790. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9791. version_type=freebsd-elf
  9792. need_lib_prefix=no
  9793. need_version=no
  9794. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9795. soname_spec='${libname}${release}${shared_ext}$major'
  9796. shlibpath_var=LD_LIBRARY_PATH
  9797. shlibpath_overrides_runpath=yes
  9798. hardcode_into_libs=yes
  9799. if test "$with_gnu_ld" = yes; then
  9800. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9801. else
  9802. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9803. case $host_os in
  9804. sco3.2v5*)
  9805. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9806. ;;
  9807. esac
  9808. fi
  9809. sys_lib_dlsearch_path_spec='/usr/lib'
  9810. ;;
  9811. tpf*)
  9812. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9813. version_type=linux # correct to gnu/linux during the next big refactor
  9814. need_lib_prefix=no
  9815. need_version=no
  9816. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9817. shlibpath_var=LD_LIBRARY_PATH
  9818. shlibpath_overrides_runpath=no
  9819. hardcode_into_libs=yes
  9820. ;;
  9821. uts4*)
  9822. version_type=linux # correct to gnu/linux during the next big refactor
  9823. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9824. soname_spec='${libname}${release}${shared_ext}$major'
  9825. shlibpath_var=LD_LIBRARY_PATH
  9826. ;;
  9827. *)
  9828. dynamic_linker=no
  9829. ;;
  9830. esac
  9831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9832. $as_echo "$dynamic_linker" >&6; }
  9833. test "$dynamic_linker" = no && can_build_shared=no
  9834. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9835. if test "$GCC" = yes; then
  9836. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9837. fi
  9838. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9839. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9840. fi
  9841. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9842. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9843. fi
  9844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9845. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9846. hardcode_action=
  9847. if test -n "$hardcode_libdir_flag_spec" ||
  9848. test -n "$runpath_var" ||
  9849. test "X$hardcode_automatic" = "Xyes" ; then
  9850. # We can hardcode non-existent directories.
  9851. if test "$hardcode_direct" != no &&
  9852. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9853. # have to relink, otherwise we might link with an installed library
  9854. # when we should be linking with a yet-to-be-installed one
  9855. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9856. test "$hardcode_minus_L" != no; then
  9857. # Linking always hardcodes the temporary library directory.
  9858. hardcode_action=relink
  9859. else
  9860. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9861. hardcode_action=immediate
  9862. fi
  9863. else
  9864. # We cannot hardcode anything, or else we can only hardcode existing
  9865. # directories.
  9866. hardcode_action=unsupported
  9867. fi
  9868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9869. $as_echo "$hardcode_action" >&6; }
  9870. if test "$hardcode_action" = relink ||
  9871. test "$inherit_rpath" = yes; then
  9872. # Fast installation is not supported
  9873. enable_fast_install=no
  9874. elif test "$shlibpath_overrides_runpath" = yes ||
  9875. test "$enable_shared" = no; then
  9876. # Fast installation is not necessary
  9877. enable_fast_install=needless
  9878. fi
  9879. if test "x$enable_dlopen" != xyes; then
  9880. enable_dlopen=unknown
  9881. enable_dlopen_self=unknown
  9882. enable_dlopen_self_static=unknown
  9883. else
  9884. lt_cv_dlopen=no
  9885. lt_cv_dlopen_libs=
  9886. case $host_os in
  9887. beos*)
  9888. lt_cv_dlopen="load_add_on"
  9889. lt_cv_dlopen_libs=
  9890. lt_cv_dlopen_self=yes
  9891. ;;
  9892. mingw* | pw32* | cegcc*)
  9893. lt_cv_dlopen="LoadLibrary"
  9894. lt_cv_dlopen_libs=
  9895. ;;
  9896. cygwin*)
  9897. lt_cv_dlopen="dlopen"
  9898. lt_cv_dlopen_libs=
  9899. ;;
  9900. darwin*)
  9901. # if libdl is installed we need to link against it
  9902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9903. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9904. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9905. $as_echo_n "(cached) " >&6
  9906. else
  9907. ac_check_lib_save_LIBS=$LIBS
  9908. LIBS="-ldl $LIBS"
  9909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9910. /* end confdefs.h. */
  9911. /* Override any GCC internal prototype to avoid an error.
  9912. Use char because int might match the return type of a GCC
  9913. builtin and then its argument prototype would still apply. */
  9914. #ifdef __cplusplus
  9915. extern "C"
  9916. #endif
  9917. char dlopen ();
  9918. int
  9919. main ()
  9920. {
  9921. return dlopen ();
  9922. ;
  9923. return 0;
  9924. }
  9925. _ACEOF
  9926. if ac_fn_c_try_link "$LINENO"; then :
  9927. ac_cv_lib_dl_dlopen=yes
  9928. else
  9929. ac_cv_lib_dl_dlopen=no
  9930. fi
  9931. rm -f core conftest.err conftest.$ac_objext \
  9932. conftest$ac_exeext conftest.$ac_ext
  9933. LIBS=$ac_check_lib_save_LIBS
  9934. fi
  9935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9936. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9937. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9938. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9939. else
  9940. lt_cv_dlopen="dyld"
  9941. lt_cv_dlopen_libs=
  9942. lt_cv_dlopen_self=yes
  9943. fi
  9944. ;;
  9945. *)
  9946. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9947. if test "x$ac_cv_func_shl_load" = xyes; then :
  9948. lt_cv_dlopen="shl_load"
  9949. else
  9950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9951. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9952. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9953. $as_echo_n "(cached) " >&6
  9954. else
  9955. ac_check_lib_save_LIBS=$LIBS
  9956. LIBS="-ldld $LIBS"
  9957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9958. /* end confdefs.h. */
  9959. /* Override any GCC internal prototype to avoid an error.
  9960. Use char because int might match the return type of a GCC
  9961. builtin and then its argument prototype would still apply. */
  9962. #ifdef __cplusplus
  9963. extern "C"
  9964. #endif
  9965. char shl_load ();
  9966. int
  9967. main ()
  9968. {
  9969. return shl_load ();
  9970. ;
  9971. return 0;
  9972. }
  9973. _ACEOF
  9974. if ac_fn_c_try_link "$LINENO"; then :
  9975. ac_cv_lib_dld_shl_load=yes
  9976. else
  9977. ac_cv_lib_dld_shl_load=no
  9978. fi
  9979. rm -f core conftest.err conftest.$ac_objext \
  9980. conftest$ac_exeext conftest.$ac_ext
  9981. LIBS=$ac_check_lib_save_LIBS
  9982. fi
  9983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9984. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9985. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9986. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9987. else
  9988. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9989. if test "x$ac_cv_func_dlopen" = xyes; then :
  9990. lt_cv_dlopen="dlopen"
  9991. else
  9992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9993. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9994. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9995. $as_echo_n "(cached) " >&6
  9996. else
  9997. ac_check_lib_save_LIBS=$LIBS
  9998. LIBS="-ldl $LIBS"
  9999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10000. /* end confdefs.h. */
  10001. /* Override any GCC internal prototype to avoid an error.
  10002. Use char because int might match the return type of a GCC
  10003. builtin and then its argument prototype would still apply. */
  10004. #ifdef __cplusplus
  10005. extern "C"
  10006. #endif
  10007. char dlopen ();
  10008. int
  10009. main ()
  10010. {
  10011. return dlopen ();
  10012. ;
  10013. return 0;
  10014. }
  10015. _ACEOF
  10016. if ac_fn_c_try_link "$LINENO"; then :
  10017. ac_cv_lib_dl_dlopen=yes
  10018. else
  10019. ac_cv_lib_dl_dlopen=no
  10020. fi
  10021. rm -f core conftest.err conftest.$ac_objext \
  10022. conftest$ac_exeext conftest.$ac_ext
  10023. LIBS=$ac_check_lib_save_LIBS
  10024. fi
  10025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10026. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10027. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10028. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10029. else
  10030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10031. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10032. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10033. $as_echo_n "(cached) " >&6
  10034. else
  10035. ac_check_lib_save_LIBS=$LIBS
  10036. LIBS="-lsvld $LIBS"
  10037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10038. /* end confdefs.h. */
  10039. /* Override any GCC internal prototype to avoid an error.
  10040. Use char because int might match the return type of a GCC
  10041. builtin and then its argument prototype would still apply. */
  10042. #ifdef __cplusplus
  10043. extern "C"
  10044. #endif
  10045. char dlopen ();
  10046. int
  10047. main ()
  10048. {
  10049. return dlopen ();
  10050. ;
  10051. return 0;
  10052. }
  10053. _ACEOF
  10054. if ac_fn_c_try_link "$LINENO"; then :
  10055. ac_cv_lib_svld_dlopen=yes
  10056. else
  10057. ac_cv_lib_svld_dlopen=no
  10058. fi
  10059. rm -f core conftest.err conftest.$ac_objext \
  10060. conftest$ac_exeext conftest.$ac_ext
  10061. LIBS=$ac_check_lib_save_LIBS
  10062. fi
  10063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10064. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10065. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10066. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10067. else
  10068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10069. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10070. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10071. $as_echo_n "(cached) " >&6
  10072. else
  10073. ac_check_lib_save_LIBS=$LIBS
  10074. LIBS="-ldld $LIBS"
  10075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10076. /* end confdefs.h. */
  10077. /* Override any GCC internal prototype to avoid an error.
  10078. Use char because int might match the return type of a GCC
  10079. builtin and then its argument prototype would still apply. */
  10080. #ifdef __cplusplus
  10081. extern "C"
  10082. #endif
  10083. char dld_link ();
  10084. int
  10085. main ()
  10086. {
  10087. return dld_link ();
  10088. ;
  10089. return 0;
  10090. }
  10091. _ACEOF
  10092. if ac_fn_c_try_link "$LINENO"; then :
  10093. ac_cv_lib_dld_dld_link=yes
  10094. else
  10095. ac_cv_lib_dld_dld_link=no
  10096. fi
  10097. rm -f core conftest.err conftest.$ac_objext \
  10098. conftest$ac_exeext conftest.$ac_ext
  10099. LIBS=$ac_check_lib_save_LIBS
  10100. fi
  10101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10102. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10103. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10104. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10105. fi
  10106. fi
  10107. fi
  10108. fi
  10109. fi
  10110. fi
  10111. ;;
  10112. esac
  10113. if test "x$lt_cv_dlopen" != xno; then
  10114. enable_dlopen=yes
  10115. else
  10116. enable_dlopen=no
  10117. fi
  10118. case $lt_cv_dlopen in
  10119. dlopen)
  10120. save_CPPFLAGS="$CPPFLAGS"
  10121. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10122. save_LDFLAGS="$LDFLAGS"
  10123. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10124. save_LIBS="$LIBS"
  10125. LIBS="$lt_cv_dlopen_libs $LIBS"
  10126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10127. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10128. if ${lt_cv_dlopen_self+:} false; then :
  10129. $as_echo_n "(cached) " >&6
  10130. else
  10131. if test "$cross_compiling" = yes; then :
  10132. lt_cv_dlopen_self=cross
  10133. else
  10134. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10135. lt_status=$lt_dlunknown
  10136. cat > conftest.$ac_ext <<_LT_EOF
  10137. #line $LINENO "configure"
  10138. #include "confdefs.h"
  10139. #if HAVE_DLFCN_H
  10140. #include <dlfcn.h>
  10141. #endif
  10142. #include <stdio.h>
  10143. #ifdef RTLD_GLOBAL
  10144. # define LT_DLGLOBAL RTLD_GLOBAL
  10145. #else
  10146. # ifdef DL_GLOBAL
  10147. # define LT_DLGLOBAL DL_GLOBAL
  10148. # else
  10149. # define LT_DLGLOBAL 0
  10150. # endif
  10151. #endif
  10152. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10153. find out it does not work in some platform. */
  10154. #ifndef LT_DLLAZY_OR_NOW
  10155. # ifdef RTLD_LAZY
  10156. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10157. # else
  10158. # ifdef DL_LAZY
  10159. # define LT_DLLAZY_OR_NOW DL_LAZY
  10160. # else
  10161. # ifdef RTLD_NOW
  10162. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10163. # else
  10164. # ifdef DL_NOW
  10165. # define LT_DLLAZY_OR_NOW DL_NOW
  10166. # else
  10167. # define LT_DLLAZY_OR_NOW 0
  10168. # endif
  10169. # endif
  10170. # endif
  10171. # endif
  10172. #endif
  10173. /* When -fvisbility=hidden is used, assume the code has been annotated
  10174. correspondingly for the symbols needed. */
  10175. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10176. int fnord () __attribute__((visibility("default")));
  10177. #endif
  10178. int fnord () { return 42; }
  10179. int main ()
  10180. {
  10181. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10182. int status = $lt_dlunknown;
  10183. if (self)
  10184. {
  10185. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10186. else
  10187. {
  10188. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10189. else puts (dlerror ());
  10190. }
  10191. /* dlclose (self); */
  10192. }
  10193. else
  10194. puts (dlerror ());
  10195. return status;
  10196. }
  10197. _LT_EOF
  10198. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10199. (eval $ac_link) 2>&5
  10200. ac_status=$?
  10201. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10202. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10203. (./conftest; exit; ) >&5 2>/dev/null
  10204. lt_status=$?
  10205. case x$lt_status in
  10206. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10207. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10208. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10209. esac
  10210. else :
  10211. # compilation failed
  10212. lt_cv_dlopen_self=no
  10213. fi
  10214. fi
  10215. rm -fr conftest*
  10216. fi
  10217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10218. $as_echo "$lt_cv_dlopen_self" >&6; }
  10219. if test "x$lt_cv_dlopen_self" = xyes; then
  10220. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10222. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10223. if ${lt_cv_dlopen_self_static+:} false; then :
  10224. $as_echo_n "(cached) " >&6
  10225. else
  10226. if test "$cross_compiling" = yes; then :
  10227. lt_cv_dlopen_self_static=cross
  10228. else
  10229. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10230. lt_status=$lt_dlunknown
  10231. cat > conftest.$ac_ext <<_LT_EOF
  10232. #line $LINENO "configure"
  10233. #include "confdefs.h"
  10234. #if HAVE_DLFCN_H
  10235. #include <dlfcn.h>
  10236. #endif
  10237. #include <stdio.h>
  10238. #ifdef RTLD_GLOBAL
  10239. # define LT_DLGLOBAL RTLD_GLOBAL
  10240. #else
  10241. # ifdef DL_GLOBAL
  10242. # define LT_DLGLOBAL DL_GLOBAL
  10243. # else
  10244. # define LT_DLGLOBAL 0
  10245. # endif
  10246. #endif
  10247. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10248. find out it does not work in some platform. */
  10249. #ifndef LT_DLLAZY_OR_NOW
  10250. # ifdef RTLD_LAZY
  10251. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10252. # else
  10253. # ifdef DL_LAZY
  10254. # define LT_DLLAZY_OR_NOW DL_LAZY
  10255. # else
  10256. # ifdef RTLD_NOW
  10257. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10258. # else
  10259. # ifdef DL_NOW
  10260. # define LT_DLLAZY_OR_NOW DL_NOW
  10261. # else
  10262. # define LT_DLLAZY_OR_NOW 0
  10263. # endif
  10264. # endif
  10265. # endif
  10266. # endif
  10267. #endif
  10268. /* When -fvisbility=hidden is used, assume the code has been annotated
  10269. correspondingly for the symbols needed. */
  10270. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10271. int fnord () __attribute__((visibility("default")));
  10272. #endif
  10273. int fnord () { return 42; }
  10274. int main ()
  10275. {
  10276. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10277. int status = $lt_dlunknown;
  10278. if (self)
  10279. {
  10280. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10281. else
  10282. {
  10283. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10284. else puts (dlerror ());
  10285. }
  10286. /* dlclose (self); */
  10287. }
  10288. else
  10289. puts (dlerror ());
  10290. return status;
  10291. }
  10292. _LT_EOF
  10293. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10294. (eval $ac_link) 2>&5
  10295. ac_status=$?
  10296. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10297. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10298. (./conftest; exit; ) >&5 2>/dev/null
  10299. lt_status=$?
  10300. case x$lt_status in
  10301. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10302. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10303. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10304. esac
  10305. else :
  10306. # compilation failed
  10307. lt_cv_dlopen_self_static=no
  10308. fi
  10309. fi
  10310. rm -fr conftest*
  10311. fi
  10312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10313. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10314. fi
  10315. CPPFLAGS="$save_CPPFLAGS"
  10316. LDFLAGS="$save_LDFLAGS"
  10317. LIBS="$save_LIBS"
  10318. ;;
  10319. esac
  10320. case $lt_cv_dlopen_self in
  10321. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10322. *) enable_dlopen_self=unknown ;;
  10323. esac
  10324. case $lt_cv_dlopen_self_static in
  10325. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10326. *) enable_dlopen_self_static=unknown ;;
  10327. esac
  10328. fi
  10329. striplib=
  10330. old_striplib=
  10331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10332. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10333. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10334. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10335. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10337. $as_echo "yes" >&6; }
  10338. else
  10339. # FIXME - insert some real tests, host_os isn't really good enough
  10340. case $host_os in
  10341. darwin*)
  10342. if test -n "$STRIP" ; then
  10343. striplib="$STRIP -x"
  10344. old_striplib="$STRIP -S"
  10345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10346. $as_echo "yes" >&6; }
  10347. else
  10348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10349. $as_echo "no" >&6; }
  10350. fi
  10351. ;;
  10352. *)
  10353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10354. $as_echo "no" >&6; }
  10355. ;;
  10356. esac
  10357. fi
  10358. # Report which library types will actually be built
  10359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10360. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10362. $as_echo "$can_build_shared" >&6; }
  10363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10364. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10365. test "$can_build_shared" = "no" && enable_shared=no
  10366. # On AIX, shared libraries and static libraries use the same namespace, and
  10367. # are all built from PIC.
  10368. case $host_os in
  10369. aix3*)
  10370. test "$enable_shared" = yes && enable_static=no
  10371. if test -n "$RANLIB"; then
  10372. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10373. postinstall_cmds='$RANLIB $lib'
  10374. fi
  10375. ;;
  10376. aix[4-9]*)
  10377. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10378. test "$enable_shared" = yes && enable_static=no
  10379. fi
  10380. ;;
  10381. esac
  10382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10383. $as_echo "$enable_shared" >&6; }
  10384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10385. $as_echo_n "checking whether to build static libraries... " >&6; }
  10386. # Make sure either enable_shared or enable_static is yes.
  10387. test "$enable_shared" = yes || enable_static=yes
  10388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10389. $as_echo "$enable_static" >&6; }
  10390. fi
  10391. ac_ext=c
  10392. ac_cpp='$CPP $CPPFLAGS'
  10393. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10394. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10395. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10396. CC="$lt_save_CC"
  10397. ac_config_commands="$ac_config_commands libtool"
  10398. # Only expand once:
  10399. if test -n "$ac_tool_prefix"; then
  10400. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  10401. set dummy ${ac_tool_prefix}windres; ac_word=$2
  10402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10403. $as_echo_n "checking for $ac_word... " >&6; }
  10404. if ${ac_cv_prog_RC+:} false; then :
  10405. $as_echo_n "(cached) " >&6
  10406. else
  10407. if test -n "$RC"; then
  10408. ac_cv_prog_RC="$RC" # Let the user override the test.
  10409. else
  10410. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10411. for as_dir in $PATH
  10412. do
  10413. IFS=$as_save_IFS
  10414. test -z "$as_dir" && as_dir=.
  10415. for ac_exec_ext in '' $ac_executable_extensions; do
  10416. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10417. ac_cv_prog_RC="${ac_tool_prefix}windres"
  10418. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10419. break 2
  10420. fi
  10421. done
  10422. done
  10423. IFS=$as_save_IFS
  10424. fi
  10425. fi
  10426. RC=$ac_cv_prog_RC
  10427. if test -n "$RC"; then
  10428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  10429. $as_echo "$RC" >&6; }
  10430. else
  10431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10432. $as_echo "no" >&6; }
  10433. fi
  10434. fi
  10435. if test -z "$ac_cv_prog_RC"; then
  10436. ac_ct_RC=$RC
  10437. # Extract the first word of "windres", so it can be a program name with args.
  10438. set dummy windres; ac_word=$2
  10439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10440. $as_echo_n "checking for $ac_word... " >&6; }
  10441. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  10442. $as_echo_n "(cached) " >&6
  10443. else
  10444. if test -n "$ac_ct_RC"; then
  10445. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  10446. else
  10447. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10448. for as_dir in $PATH
  10449. do
  10450. IFS=$as_save_IFS
  10451. test -z "$as_dir" && as_dir=.
  10452. for ac_exec_ext in '' $ac_executable_extensions; do
  10453. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10454. ac_cv_prog_ac_ct_RC="windres"
  10455. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10456. break 2
  10457. fi
  10458. done
  10459. done
  10460. IFS=$as_save_IFS
  10461. fi
  10462. fi
  10463. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  10464. if test -n "$ac_ct_RC"; then
  10465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  10466. $as_echo "$ac_ct_RC" >&6; }
  10467. else
  10468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10469. $as_echo "no" >&6; }
  10470. fi
  10471. if test "x$ac_ct_RC" = x; then
  10472. RC=""
  10473. else
  10474. case $cross_compiling:$ac_tool_warned in
  10475. yes:)
  10476. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10477. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10478. ac_tool_warned=yes ;;
  10479. esac
  10480. RC=$ac_ct_RC
  10481. fi
  10482. else
  10483. RC="$ac_cv_prog_RC"
  10484. fi
  10485. # Source file extension for RC test sources.
  10486. ac_ext=rc
  10487. # Object file extension for compiled RC test sources.
  10488. objext=o
  10489. objext_RC=$objext
  10490. # Code to be used in simple compile tests
  10491. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10492. # Code to be used in simple link tests
  10493. lt_simple_link_test_code="$lt_simple_compile_test_code"
  10494. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10495. # If no C compiler was specified, use CC.
  10496. LTCC=${LTCC-"$CC"}
  10497. # If no C compiler flags were specified, use CFLAGS.
  10498. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10499. # Allow CC to be a program name with arguments.
  10500. compiler=$CC
  10501. # save warnings/boilerplate of simple test code
  10502. ac_outfile=conftest.$ac_objext
  10503. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10504. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10505. _lt_compiler_boilerplate=`cat conftest.err`
  10506. $RM conftest*
  10507. ac_outfile=conftest.$ac_objext
  10508. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10509. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10510. _lt_linker_boilerplate=`cat conftest.err`
  10511. $RM -r conftest*
  10512. # Allow CC to be a program name with arguments.
  10513. lt_save_CC="$CC"
  10514. lt_save_CFLAGS=$CFLAGS
  10515. lt_save_GCC=$GCC
  10516. GCC=
  10517. CC=${RC-"windres"}
  10518. CFLAGS=
  10519. compiler=$CC
  10520. compiler_RC=$CC
  10521. for cc_temp in $compiler""; do
  10522. case $cc_temp in
  10523. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10524. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10525. \-*) ;;
  10526. *) break;;
  10527. esac
  10528. done
  10529. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10530. lt_cv_prog_compiler_c_o_RC=yes
  10531. if test -n "$compiler"; then
  10532. :
  10533. fi
  10534. GCC=$lt_save_GCC
  10535. ac_ext=c
  10536. ac_cpp='$CPP $CPPFLAGS'
  10537. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10538. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10539. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10540. CC=$lt_save_CC
  10541. CFLAGS=$lt_save_CFLAGS
  10542. PACKAGE_VERSION_MAJOR=${PACKAGE_VERSION%.*.*}
  10543. PACKAGE_VERSION_MINOR=${PACKAGE_VERSION%.*}; PACKAGE_VERSION_MINOR=${PACKAGE_VERSION_MINOR#*.}
  10544. PACKAGE_VERSION_SUBMINOR=${PACKAGE_VERSION#*.*.}
  10545. ac_config_files="$ac_config_files src/microhttpd/microhttpd_dll_res.rc"
  10546. MHD_LIB_CPPFLAGS=""
  10547. MHD_LIB_CFLAGS=""
  10548. MHD_LIB_LDFLAGS=""
  10549. MHD_LIBDEPS=""
  10550. # Check whether --with-threads was given.
  10551. if test "${with_threads+set}" = set; then :
  10552. withval=$with_threads;
  10553. else
  10554. with_threads='auto'
  10555. fi
  10556. test "x$with_threads" = "xwin32" && with_threads='w32'
  10557. test "x$with_threads" = "xpthreads" && with_threads='posix'
  10558. # Check for posix threads support
  10559. ac_ext=c
  10560. ac_cpp='$CPP $CPPFLAGS'
  10561. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10562. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10563. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10564. ax_pthread_ok=no
  10565. # We used to check for pthread.h first, but this fails if pthread.h
  10566. # requires special compiler flags (e.g. on True64 or Sequent).
  10567. # It gets checked for in the link test anyway.
  10568. # First of all, check if the user has set any of the PTHREAD_LIBS,
  10569. # etcetera environment variables, and if threads linking works using
  10570. # them:
  10571. if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  10572. save_CFLAGS="$CFLAGS"
  10573. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  10574. save_LIBS="$LIBS"
  10575. LIBS="$PTHREAD_LIBS $LIBS"
  10576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  10577. $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
  10578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10579. /* end confdefs.h. */
  10580. /* Override any GCC internal prototype to avoid an error.
  10581. Use char because int might match the return type of a GCC
  10582. builtin and then its argument prototype would still apply. */
  10583. #ifdef __cplusplus
  10584. extern "C"
  10585. #endif
  10586. char pthread_join ();
  10587. int
  10588. main ()
  10589. {
  10590. return pthread_join ();
  10591. ;
  10592. return 0;
  10593. }
  10594. _ACEOF
  10595. if ac_fn_c_try_link "$LINENO"; then :
  10596. ax_pthread_ok=yes
  10597. fi
  10598. rm -f core conftest.err conftest.$ac_objext \
  10599. conftest$ac_exeext conftest.$ac_ext
  10600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  10601. $as_echo "$ax_pthread_ok" >&6; }
  10602. if test x"$ax_pthread_ok" = xno; then
  10603. PTHREAD_LIBS=""
  10604. PTHREAD_CFLAGS=""
  10605. fi
  10606. LIBS="$save_LIBS"
  10607. CFLAGS="$save_CFLAGS"
  10608. fi
  10609. # We must check for the threads library under a number of different
  10610. # names; the ordering is very important because some systems
  10611. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  10612. # libraries is broken (non-POSIX).
  10613. # Create a list of thread flags to try. Items starting with a "-" are
  10614. # C compiler flags, and other items are library names, except for "none"
  10615. # which indicates that we try without any flags at all, and "pthread-config"
  10616. # which is a program returning the flags for the Pth emulation library.
  10617. ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  10618. # The ordering *is* (sometimes) important. Some notes on the
  10619. # individual items follow:
  10620. # pthreads: AIX (must check this before -lpthread)
  10621. # none: in case threads are in libc; should be tried before -Kthread and
  10622. # other compiler flags to prevent continual compiler warnings
  10623. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  10624. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  10625. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  10626. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  10627. # -pthreads: Solaris/gcc
  10628. # -mthreads: Mingw32/gcc, Lynx/gcc
  10629. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  10630. # doesn't hurt to check since this sometimes defines pthreads too;
  10631. # also defines -D_REENTRANT)
  10632. # ... -mt is also the pthreads flag for HP/aCC
  10633. # pthread: Linux, etcetera
  10634. # --thread-safe: KAI C++
  10635. # pthread-config: use pthread-config program (for GNU Pth library)
  10636. case ${host_os} in
  10637. solaris*)
  10638. # On Solaris (at least, for some versions), libc contains stubbed
  10639. # (non-functional) versions of the pthreads routines, so link-based
  10640. # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  10641. # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  10642. # a function called by this macro, so we could check for that, but
  10643. # who knows whether they'll stub that too in a future libc.) So,
  10644. # we'll just look for -pthreads and -lpthread first:
  10645. ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
  10646. ;;
  10647. darwin*)
  10648. ax_pthread_flags="-pthread $ax_pthread_flags"
  10649. ;;
  10650. esac
  10651. # Clang doesn't consider unrecognized options an error unless we specify
  10652. # -Werror. We throw in some extra Clang-specific options to ensure that
  10653. # this doesn't happen for GCC, which also accepts -Werror.
  10654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
  10655. $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
  10656. save_CFLAGS="$CFLAGS"
  10657. ax_pthread_extra_flags="-Werror"
  10658. CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
  10659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10660. /* end confdefs.h. */
  10661. int foo(void);
  10662. int
  10663. main ()
  10664. {
  10665. foo()
  10666. ;
  10667. return 0;
  10668. }
  10669. _ACEOF
  10670. if ac_fn_c_try_compile "$LINENO"; then :
  10671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10672. $as_echo "yes" >&6; }
  10673. else
  10674. ax_pthread_extra_flags=
  10675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10676. $as_echo "no" >&6; }
  10677. fi
  10678. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10679. CFLAGS="$save_CFLAGS"
  10680. if test x"$ax_pthread_ok" = xno; then
  10681. for flag in $ax_pthread_flags; do
  10682. case $flag in
  10683. none)
  10684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  10685. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  10686. ;;
  10687. -*)
  10688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
  10689. $as_echo_n "checking whether pthreads work with $flag... " >&6; }
  10690. PTHREAD_CFLAGS="$flag"
  10691. ;;
  10692. pthread-config)
  10693. # Extract the first word of "pthread-config", so it can be a program name with args.
  10694. set dummy pthread-config; ac_word=$2
  10695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10696. $as_echo_n "checking for $ac_word... " >&6; }
  10697. if ${ac_cv_prog_ax_pthread_config+:} false; then :
  10698. $as_echo_n "(cached) " >&6
  10699. else
  10700. if test -n "$ax_pthread_config"; then
  10701. ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
  10702. else
  10703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10704. for as_dir in $PATH
  10705. do
  10706. IFS=$as_save_IFS
  10707. test -z "$as_dir" && as_dir=.
  10708. for ac_exec_ext in '' $ac_executable_extensions; do
  10709. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10710. ac_cv_prog_ax_pthread_config="yes"
  10711. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10712. break 2
  10713. fi
  10714. done
  10715. done
  10716. IFS=$as_save_IFS
  10717. test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
  10718. fi
  10719. fi
  10720. ax_pthread_config=$ac_cv_prog_ax_pthread_config
  10721. if test -n "$ax_pthread_config"; then
  10722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
  10723. $as_echo "$ax_pthread_config" >&6; }
  10724. else
  10725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10726. $as_echo "no" >&6; }
  10727. fi
  10728. if test x"$ax_pthread_config" = xno; then continue; fi
  10729. PTHREAD_CFLAGS="`pthread-config --cflags`"
  10730. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  10731. ;;
  10732. *)
  10733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
  10734. $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
  10735. PTHREAD_LIBS="-l$flag"
  10736. ;;
  10737. esac
  10738. save_LIBS="$LIBS"
  10739. save_CFLAGS="$CFLAGS"
  10740. LIBS="$PTHREAD_LIBS $LIBS"
  10741. CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
  10742. # Check for various functions. We must include pthread.h,
  10743. # since some functions may be macros. (On the Sequent, we
  10744. # need a special flag -Kthread to make this header compile.)
  10745. # We check for pthread_join because it is in -lpthread on IRIX
  10746. # while pthread_create is in libc. We check for pthread_attr_init
  10747. # due to DEC craziness with -lpthreads. We check for
  10748. # pthread_cleanup_push because it is one of the few pthread
  10749. # functions on Solaris that doesn't have a non-functional libc stub.
  10750. # We try pthread_create on general principles.
  10751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10752. /* end confdefs.h. */
  10753. #include <pthread.h>
  10754. static void routine(void *a) { a = 0; }
  10755. static void *start_routine(void *a) { return a; }
  10756. int
  10757. main ()
  10758. {
  10759. pthread_t th; pthread_attr_t attr;
  10760. pthread_create(&th, 0, start_routine, 0);
  10761. pthread_join(th, 0);
  10762. pthread_attr_init(&attr);
  10763. pthread_cleanup_push(routine, 0);
  10764. pthread_cleanup_pop(0) /* ; */
  10765. ;
  10766. return 0;
  10767. }
  10768. _ACEOF
  10769. if ac_fn_c_try_link "$LINENO"; then :
  10770. ax_pthread_ok=yes
  10771. fi
  10772. rm -f core conftest.err conftest.$ac_objext \
  10773. conftest$ac_exeext conftest.$ac_ext
  10774. LIBS="$save_LIBS"
  10775. CFLAGS="$save_CFLAGS"
  10776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  10777. $as_echo "$ax_pthread_ok" >&6; }
  10778. if test "x$ax_pthread_ok" = xyes; then
  10779. break;
  10780. fi
  10781. PTHREAD_LIBS=""
  10782. PTHREAD_CFLAGS=""
  10783. done
  10784. fi
  10785. # Various other checks:
  10786. if test "x$ax_pthread_ok" = xyes; then
  10787. save_LIBS="$LIBS"
  10788. LIBS="$PTHREAD_LIBS $LIBS"
  10789. save_CFLAGS="$CFLAGS"
  10790. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  10791. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  10792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  10793. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  10794. attr_name=unknown
  10795. for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  10796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10797. /* end confdefs.h. */
  10798. #include <pthread.h>
  10799. int
  10800. main ()
  10801. {
  10802. int attr = $attr; return attr /* ; */
  10803. ;
  10804. return 0;
  10805. }
  10806. _ACEOF
  10807. if ac_fn_c_try_link "$LINENO"; then :
  10808. attr_name=$attr; break
  10809. fi
  10810. rm -f core conftest.err conftest.$ac_objext \
  10811. conftest$ac_exeext conftest.$ac_ext
  10812. done
  10813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
  10814. $as_echo "$attr_name" >&6; }
  10815. if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  10816. cat >>confdefs.h <<_ACEOF
  10817. #define PTHREAD_CREATE_JOINABLE $attr_name
  10818. _ACEOF
  10819. fi
  10820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
  10821. $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
  10822. flag=no
  10823. case ${host_os} in
  10824. aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
  10825. osf* | hpux*) flag="-D_REENTRANT";;
  10826. solaris*)
  10827. if test "$GCC" = "yes"; then
  10828. flag="-D_REENTRANT"
  10829. else
  10830. # TODO: What about Clang on Solaris?
  10831. flag="-mt -D_REENTRANT"
  10832. fi
  10833. ;;
  10834. esac
  10835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
  10836. $as_echo "$flag" >&6; }
  10837. if test "x$flag" != xno; then
  10838. PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  10839. fi
  10840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
  10841. $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
  10842. if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
  10843. $as_echo_n "(cached) " >&6
  10844. else
  10845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10846. /* end confdefs.h. */
  10847. #include <pthread.h>
  10848. int
  10849. main ()
  10850. {
  10851. int i = PTHREAD_PRIO_INHERIT;
  10852. ;
  10853. return 0;
  10854. }
  10855. _ACEOF
  10856. if ac_fn_c_try_link "$LINENO"; then :
  10857. ax_cv_PTHREAD_PRIO_INHERIT=yes
  10858. else
  10859. ax_cv_PTHREAD_PRIO_INHERIT=no
  10860. fi
  10861. rm -f core conftest.err conftest.$ac_objext \
  10862. conftest$ac_exeext conftest.$ac_ext
  10863. fi
  10864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
  10865. $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
  10866. if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
  10867. $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
  10868. fi
  10869. LIBS="$save_LIBS"
  10870. CFLAGS="$save_CFLAGS"
  10871. # More AIX lossage: compile with *_r variant
  10872. if test "x$GCC" != xyes; then
  10873. case $host_os in
  10874. aix*)
  10875. case "x/$CC" in #(
  10876. x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
  10877. #handle absolute path differently from PATH based program lookup
  10878. case "x$CC" in #(
  10879. x/*) :
  10880. if as_fn_executable_p ${CC}_r; then :
  10881. PTHREAD_CC="${CC}_r"
  10882. fi ;; #(
  10883. *) :
  10884. for ac_prog in ${CC}_r
  10885. do
  10886. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10887. set dummy $ac_prog; ac_word=$2
  10888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10889. $as_echo_n "checking for $ac_word... " >&6; }
  10890. if ${ac_cv_prog_PTHREAD_CC+:} false; then :
  10891. $as_echo_n "(cached) " >&6
  10892. else
  10893. if test -n "$PTHREAD_CC"; then
  10894. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  10895. else
  10896. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10897. for as_dir in $PATH
  10898. do
  10899. IFS=$as_save_IFS
  10900. test -z "$as_dir" && as_dir=.
  10901. for ac_exec_ext in '' $ac_executable_extensions; do
  10902. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10903. ac_cv_prog_PTHREAD_CC="$ac_prog"
  10904. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10905. break 2
  10906. fi
  10907. done
  10908. done
  10909. IFS=$as_save_IFS
  10910. fi
  10911. fi
  10912. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  10913. if test -n "$PTHREAD_CC"; then
  10914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  10915. $as_echo "$PTHREAD_CC" >&6; }
  10916. else
  10917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10918. $as_echo "no" >&6; }
  10919. fi
  10920. test -n "$PTHREAD_CC" && break
  10921. done
  10922. test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
  10923. ;;
  10924. esac ;; #(
  10925. *) :
  10926. ;;
  10927. esac
  10928. ;;
  10929. esac
  10930. fi
  10931. fi
  10932. test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
  10933. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  10934. if test x"$ax_pthread_ok" = xyes; then
  10935. HAVE_POSIX_THREADS='yes'
  10936. :
  10937. else
  10938. ax_pthread_ok=no
  10939. HAVE_POSIX_THREADS='no'
  10940. fi
  10941. ac_ext=c
  10942. ac_cpp='$CPP $CPPFLAGS'
  10943. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10944. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10945. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10946. if test "x$HAVE_POSIX_THREADS" = "xyes"; then
  10947. HAVE_POSIX_THREADS_TRUE=
  10948. HAVE_POSIX_THREADS_FALSE='#'
  10949. else
  10950. HAVE_POSIX_THREADS_TRUE='#'
  10951. HAVE_POSIX_THREADS_FALSE=
  10952. fi
  10953. # Simple check for W32 threads support
  10954. ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
  10955. if test "x$ac_cv_header_windows_h" = xyes; then :
  10956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread()" >&5
  10957. $as_echo_n "checking for CreateThread()... " >&6; }
  10958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10959. /* end confdefs.h. */
  10960. #include <windows.h>
  10961. int
  10962. main ()
  10963. {
  10964. HANDLE h = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
  10965. ;
  10966. return 0;
  10967. }
  10968. _ACEOF
  10969. if ac_fn_c_try_link "$LINENO"; then :
  10970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10971. $as_echo "yes" >&6; }
  10972. HAVE_W32_THREADS='yes'
  10973. else
  10974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10975. $as_echo "no" >&6; }
  10976. HAVE_W32_THREADS='no'
  10977. fi
  10978. rm -f core conftest.err conftest.$ac_objext \
  10979. conftest$ac_exeext conftest.$ac_ext
  10980. else
  10981. HAVE_W32_THREADS='no'
  10982. fi
  10983. # for pkg-config
  10984. MHD_LIBDEPS=""
  10985. MHD_REQ_PRIVATE=''
  10986. # Check system type
  10987. case "$host_os" in
  10988. *darwin* | *rhapsody* | *macosx*)
  10989. cat >>confdefs.h <<_ACEOF
  10990. #define OSX 1
  10991. _ACEOF
  10992. CFLAGS="-no-cpp-precomp -fno-common $CFLAGS"
  10993. ;;
  10994. freebsd*)
  10995. cat >>confdefs.h <<_ACEOF
  10996. #define SOMEBSD 1
  10997. _ACEOF
  10998. cat >>confdefs.h <<_ACEOF
  10999. #define FREEBSD 1
  11000. _ACEOF
  11001. ;;
  11002. openbsd*)
  11003. cat >>confdefs.h <<_ACEOF
  11004. #define SOMEBSD 1
  11005. _ACEOF
  11006. cat >>confdefs.h <<_ACEOF
  11007. #define OPENBSD 1
  11008. _ACEOF
  11009. ;;
  11010. netbsd*)
  11011. cat >>confdefs.h <<_ACEOF
  11012. #define SOMEBSD 1
  11013. _ACEOF
  11014. cat >>confdefs.h <<_ACEOF
  11015. #define NETBSD 1
  11016. _ACEOF
  11017. ;;
  11018. *solaris*)
  11019. cat >>confdefs.h <<_ACEOF
  11020. #define SOLARIS 1
  11021. _ACEOF
  11022. cat >>confdefs.h <<_ACEOF
  11023. #define _REENTRANT 1
  11024. _ACEOF
  11025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
  11026. $as_echo_n "checking for library containing gethostbyname... " >&6; }
  11027. if ${ac_cv_search_gethostbyname+:} false; then :
  11028. $as_echo_n "(cached) " >&6
  11029. else
  11030. ac_func_search_save_LIBS=$LIBS
  11031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11032. /* end confdefs.h. */
  11033. /* Override any GCC internal prototype to avoid an error.
  11034. Use char because int might match the return type of a GCC
  11035. builtin and then its argument prototype would still apply. */
  11036. #ifdef __cplusplus
  11037. extern "C"
  11038. #endif
  11039. char gethostbyname ();
  11040. int
  11041. main ()
  11042. {
  11043. return gethostbyname ();
  11044. ;
  11045. return 0;
  11046. }
  11047. _ACEOF
  11048. for ac_lib in '' nsl; do
  11049. if test -z "$ac_lib"; then
  11050. ac_res="none required"
  11051. else
  11052. ac_res=-l$ac_lib
  11053. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  11054. fi
  11055. if ac_fn_c_try_link "$LINENO"; then :
  11056. ac_cv_search_gethostbyname=$ac_res
  11057. fi
  11058. rm -f core conftest.err conftest.$ac_objext \
  11059. conftest$ac_exeext
  11060. if ${ac_cv_search_gethostbyname+:} false; then :
  11061. break
  11062. fi
  11063. done
  11064. if ${ac_cv_search_gethostbyname+:} false; then :
  11065. else
  11066. ac_cv_search_gethostbyname=no
  11067. fi
  11068. rm conftest.$ac_ext
  11069. LIBS=$ac_func_search_save_LIBS
  11070. fi
  11071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
  11072. $as_echo "$ac_cv_search_gethostbyname" >&6; }
  11073. ac_res=$ac_cv_search_gethostbyname
  11074. if test "$ac_res" != no; then :
  11075. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  11076. fi
  11077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
  11078. $as_echo_n "checking for library containing socket... " >&6; }
  11079. if ${ac_cv_search_socket+:} false; then :
  11080. $as_echo_n "(cached) " >&6
  11081. else
  11082. ac_func_search_save_LIBS=$LIBS
  11083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11084. /* end confdefs.h. */
  11085. /* Override any GCC internal prototype to avoid an error.
  11086. Use char because int might match the return type of a GCC
  11087. builtin and then its argument prototype would still apply. */
  11088. #ifdef __cplusplus
  11089. extern "C"
  11090. #endif
  11091. char socket ();
  11092. int
  11093. main ()
  11094. {
  11095. return socket ();
  11096. ;
  11097. return 0;
  11098. }
  11099. _ACEOF
  11100. for ac_lib in '' socket; do
  11101. if test -z "$ac_lib"; then
  11102. ac_res="none required"
  11103. else
  11104. ac_res=-l$ac_lib
  11105. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  11106. fi
  11107. if ac_fn_c_try_link "$LINENO"; then :
  11108. ac_cv_search_socket=$ac_res
  11109. fi
  11110. rm -f core conftest.err conftest.$ac_objext \
  11111. conftest$ac_exeext
  11112. if ${ac_cv_search_socket+:} false; then :
  11113. break
  11114. fi
  11115. done
  11116. if ${ac_cv_search_socket+:} false; then :
  11117. else
  11118. ac_cv_search_socket=no
  11119. fi
  11120. rm conftest.$ac_ext
  11121. LIBS=$ac_func_search_save_LIBS
  11122. fi
  11123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
  11124. $as_echo "$ac_cv_search_socket" >&6; }
  11125. ac_res=$ac_cv_search_socket
  11126. if test "$ac_res" != no; then :
  11127. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  11128. fi
  11129. ;;
  11130. *arm-linux*)
  11131. cat >>confdefs.h <<_ACEOF
  11132. #define LINUX 1
  11133. _ACEOF
  11134. cat >>confdefs.h <<_ACEOF
  11135. #define HAVE_LISTEN_SHUTDOWN 1
  11136. _ACEOF
  11137. CFLAGS="-fPIC -pipe $CFLAGS"
  11138. ;;
  11139. *linux*)
  11140. cat >>confdefs.h <<_ACEOF
  11141. #define LINUX 1
  11142. _ACEOF
  11143. cat >>confdefs.h <<_ACEOF
  11144. #define HAVE_LISTEN_SHUTDOWN 1
  11145. _ACEOF
  11146. ;;
  11147. *cygwin*)
  11148. cat >>confdefs.h <<_ACEOF
  11149. #define CYGWIN 1
  11150. _ACEOF
  11151. os_is_windows=yes
  11152. ;;
  11153. *mingw*)
  11154. cat >>confdefs.h <<_ACEOF
  11155. #define MINGW 1
  11156. _ACEOF
  11157. cat >>confdefs.h <<_ACEOF
  11158. #define WINDOWS 1
  11159. _ACEOF
  11160. LIBS="$LIBS -lws2_32"
  11161. for ac_header in winsock2.h ws2tcpip.h
  11162. do :
  11163. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11164. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11165. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11166. cat >>confdefs.h <<_ACEOF
  11167. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11168. _ACEOF
  11169. else
  11170. as_fn_error $? "Winsock2 headers are required for W32" "$LINENO" 5
  11171. fi
  11172. done
  11173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MS lib utility" >&5
  11174. $as_echo_n "checking for MS lib utility... " >&6; }
  11175. if ${ac_cv_use_ms_lib_tool+:} false; then :
  11176. $as_echo_n "(cached) " >&6
  11177. else
  11178. mslibcheck=`lib 2>&1`
  11179. if [[ $mslibcheck = "Microsoft (R) Library Manager"* ]]; then
  11180. ac_cv_use_ms_lib_tool=yes
  11181. else
  11182. ac_cv_use_ms_lib_tool=no
  11183. fi
  11184. fi
  11185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_use_ms_lib_tool" >&5
  11186. $as_echo "$ac_cv_use_ms_lib_tool" >&6; }
  11187. if test "x$ac_cv_use_ms_lib_tool" = "xyes"; then
  11188. MS_LIB_TOOL=lib
  11189. fi
  11190. os_is_windows=yes
  11191. os_is_native_w32=yes
  11192. ;;
  11193. *openedition*)
  11194. cat >>confdefs.h <<_ACEOF
  11195. #define OS390 1
  11196. _ACEOF
  11197. ;;
  11198. *)
  11199. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unrecognised OS $host_os" >&5
  11200. $as_echo "$as_me: WARNING: Unrecognised OS $host_os" >&2;}
  11201. cat >>confdefs.h <<_ACEOF
  11202. #define OTHEROS 1
  11203. _ACEOF
  11204. # You might want to find out if your OS supports shutdown on listen sockets,
  11205. # and extend the switch statement; if we do not have 'HAVE_LISTEN_SHUTDOWN',
  11206. # pipes are used instead to signal 'select'.
  11207. # AC_DEFINE_UNQUOTED(HAVE_LISTEN_SHUTDOWN,1,[can use shutdown on listen sockets])
  11208. ;;
  11209. esac
  11210. if test "x$with_threads" = "xposix"; then
  11211. # forced posix threads
  11212. if test "x$HAVE_POSIX_THREADS" = "xyes"; then
  11213. USE_THREADS='posix'
  11214. else
  11215. if test "x$HAVE_W32_THREADS" = "xyes"; then
  11216. as_fn_error $? "Posix threads are not available. Try to configure --with-threads=auto" "$LINENO" 5
  11217. else
  11218. as_fn_error $? "Posix threads are not available" "$LINENO" 5
  11219. fi
  11220. fi
  11221. elif test "x$with_threads" = "xw32"; then
  11222. # forced w32 threads
  11223. if test "x$HAVE_W32_THREADS" = "xyes"; then
  11224. USE_THREADS='w32'
  11225. else
  11226. if test "x$HAVE_POSIX_THREADS" = "xyes"; then
  11227. as_fn_error $? "W32 threads are not available. Try to configure --with-threads=auto" "$LINENO" 5
  11228. else
  11229. as_fn_error $? "W32 threads are not available" "$LINENO" 5
  11230. fi
  11231. fi
  11232. else
  11233. # automatic threads lib selection
  11234. if test "x$HAVE_POSIX_THREADS" = "xyes" && test "x$HAVE_W32_THREADS" = "xyes"; then
  11235. if test "x$os_is_native_w32" = "xyes"; then
  11236. USE_THREADS='w32'
  11237. else
  11238. USE_THREADS='posix'
  11239. fi
  11240. elif test "x$HAVE_POSIX_THREADS" = "xyes"; then
  11241. USE_THREADS='posix'
  11242. elif test "x$HAVE_W32_THREADS" = "xyes"; then
  11243. USE_THREADS='w32'
  11244. else
  11245. as_fn_error $? "No threading lib is available. Cosider installing pthreads" "$LINENO" 5
  11246. fi
  11247. fi
  11248. if test "x$USE_THREADS" = "xposix"; then
  11249. CC="$PTHREAD_CC"
  11250. $as_echo "#define MHD_USE_POSIX_THREADS 1" >>confdefs.h
  11251. MHD_LIB_CFLAGS="$MHD_LIB_CFLAGS $PTHREAD_CFLAGS"
  11252. MHD_LIBDEPS="$PTHREAD_LIBS $MHD_LIBDEPS"
  11253. elif test "x$USE_THREADS" = "xw32"; then
  11254. $as_echo "#define MHD_USE_W32_THREADS 1" >>confdefs.h
  11255. fi
  11256. if test "x$USE_THREADS" = "xposix"; then
  11257. USE_POSIX_THREADS_TRUE=
  11258. USE_POSIX_THREADS_FALSE='#'
  11259. else
  11260. USE_POSIX_THREADS_TRUE='#'
  11261. USE_POSIX_THREADS_FALSE=
  11262. fi
  11263. if test "x$USE_THREADS" = "xw32"; then
  11264. USE_W32_THREADS_TRUE=
  11265. USE_W32_THREADS_FALSE='#'
  11266. else
  11267. USE_W32_THREADS_TRUE='#'
  11268. USE_W32_THREADS_FALSE=
  11269. fi
  11270. if test "x$os_is_native_w32" = "xyes"; then
  11271. HAVE_W32_TRUE=
  11272. HAVE_W32_FALSE='#'
  11273. else
  11274. HAVE_W32_TRUE='#'
  11275. HAVE_W32_FALSE=
  11276. fi
  11277. w32_shared_lib_exp=no
  11278. if test "x$enable_shared" = "xyes" && test "x$os_is_native_w32" = "xyes"; then
  11279. if test "x$ac_cv_use_ms_lib_tool" = "xyes" || test -n "$DLLTOOL"; then
  11280. w32_shared_lib_exp=yes
  11281. else
  11282. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNU dlltool or MS lib.exe is required for creating shared library export on W32" >&5
  11283. $as_echo "$as_me: WARNING: GNU dlltool or MS lib.exe is required for creating shared library export on W32" >&2;}
  11284. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Export library libmicrohttpd.lib will not be created" >&5
  11285. $as_echo "$as_me: WARNING: Export library libmicrohttpd.lib will not be created" >&2;}
  11286. fi
  11287. fi
  11288. if test "x$w32_shared_lib_exp" = "xyes"; then
  11289. W32_SHARED_LIB_EXP_TRUE=
  11290. W32_SHARED_LIB_EXP_FALSE='#'
  11291. else
  11292. W32_SHARED_LIB_EXP_TRUE='#'
  11293. W32_SHARED_LIB_EXP_FALSE=
  11294. fi
  11295. if test "x$ac_cv_use_ms_lib_tool" = "xyes"; then
  11296. USE_MS_LIB_TOOL_TRUE=
  11297. USE_MS_LIB_TOOL_FALSE='#'
  11298. else
  11299. USE_MS_LIB_TOOL_TRUE='#'
  11300. USE_MS_LIB_TOOL_FALSE=
  11301. fi
  11302. # set GCC options
  11303. # use '-fno-strict-aliasing', but only if the compiler
  11304. # and linker can take it
  11305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fno-strict-aliasing" >&5
  11306. $as_echo_n "checking whether the linker accepts -fno-strict-aliasing... " >&6; }
  11307. if ${ax_cv_check_ldflags___fno_strict_aliasing+:} false; then :
  11308. $as_echo_n "(cached) " >&6
  11309. else
  11310. ax_check_save_flags=$LDFLAGS
  11311. LDFLAGS="$LDFLAGS -fno-strict-aliasing"
  11312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11313. /* end confdefs.h. */
  11314. int
  11315. main ()
  11316. {
  11317. ;
  11318. return 0;
  11319. }
  11320. _ACEOF
  11321. if ac_fn_c_try_link "$LINENO"; then :
  11322. ax_cv_check_ldflags___fno_strict_aliasing=yes
  11323. else
  11324. ax_cv_check_ldflags___fno_strict_aliasing=no
  11325. fi
  11326. rm -f core conftest.err conftest.$ac_objext \
  11327. conftest$ac_exeext conftest.$ac_ext
  11328. LDFLAGS=$ax_check_save_flags
  11329. fi
  11330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fno_strict_aliasing" >&5
  11331. $as_echo "$ax_cv_check_ldflags___fno_strict_aliasing" >&6; }
  11332. if test x"$ax_cv_check_ldflags___fno_strict_aliasing" = xyes; then :
  11333. for flag in -fno-strict-aliasing; do
  11334. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
  11335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  11336. $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
  11337. if eval \${$as_CACHEVAR+:} false; then :
  11338. $as_echo_n "(cached) " >&6
  11339. else
  11340. ax_check_save_flags=$CFLAGS
  11341. CFLAGS="$CFLAGS $flag"
  11342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11343. /* end confdefs.h. */
  11344. int
  11345. main ()
  11346. {
  11347. ;
  11348. return 0;
  11349. }
  11350. _ACEOF
  11351. if ac_fn_c_try_compile "$LINENO"; then :
  11352. eval "$as_CACHEVAR=yes"
  11353. else
  11354. eval "$as_CACHEVAR=no"
  11355. fi
  11356. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11357. CFLAGS=$ax_check_save_flags
  11358. fi
  11359. eval ac_res=\$$as_CACHEVAR
  11360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11361. $as_echo "$ac_res" >&6; }
  11362. if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
  11363. if ${CFLAGS+:} false; then :
  11364. case " $CFLAGS " in
  11365. *" $flag "*)
  11366. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
  11367. (: CFLAGS already contains $flag) 2>&5
  11368. ac_status=$?
  11369. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11370. test $ac_status = 0; }
  11371. ;;
  11372. *)
  11373. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
  11374. (: CFLAGS="$CFLAGS $flag") 2>&5
  11375. ac_status=$?
  11376. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11377. test $ac_status = 0; }
  11378. CFLAGS="$CFLAGS $flag"
  11379. ;;
  11380. esac
  11381. else
  11382. CFLAGS="$flag"
  11383. fi
  11384. else
  11385. :
  11386. fi
  11387. done
  11388. else
  11389. :
  11390. fi
  11391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  11392. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  11393. if ${ac_cv_c_bigendian+:} false; then :
  11394. $as_echo_n "(cached) " >&6
  11395. else
  11396. ac_cv_c_bigendian=unknown
  11397. # See if we're dealing with a universal compiler.
  11398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11399. /* end confdefs.h. */
  11400. #ifndef __APPLE_CC__
  11401. not a universal capable compiler
  11402. #endif
  11403. typedef int dummy;
  11404. _ACEOF
  11405. if ac_fn_c_try_compile "$LINENO"; then :
  11406. # Check for potential -arch flags. It is not universal unless
  11407. # there are at least two -arch flags with different values.
  11408. ac_arch=
  11409. ac_prev=
  11410. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  11411. if test -n "$ac_prev"; then
  11412. case $ac_word in
  11413. i?86 | x86_64 | ppc | ppc64)
  11414. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  11415. ac_arch=$ac_word
  11416. else
  11417. ac_cv_c_bigendian=universal
  11418. break
  11419. fi
  11420. ;;
  11421. esac
  11422. ac_prev=
  11423. elif test "x$ac_word" = "x-arch"; then
  11424. ac_prev=arch
  11425. fi
  11426. done
  11427. fi
  11428. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11429. if test $ac_cv_c_bigendian = unknown; then
  11430. # See if sys/param.h defines the BYTE_ORDER macro.
  11431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11432. /* end confdefs.h. */
  11433. #include <sys/types.h>
  11434. #include <sys/param.h>
  11435. int
  11436. main ()
  11437. {
  11438. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  11439. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  11440. && LITTLE_ENDIAN)
  11441. bogus endian macros
  11442. #endif
  11443. ;
  11444. return 0;
  11445. }
  11446. _ACEOF
  11447. if ac_fn_c_try_compile "$LINENO"; then :
  11448. # It does; now see whether it defined to BIG_ENDIAN or not.
  11449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11450. /* end confdefs.h. */
  11451. #include <sys/types.h>
  11452. #include <sys/param.h>
  11453. int
  11454. main ()
  11455. {
  11456. #if BYTE_ORDER != BIG_ENDIAN
  11457. not big endian
  11458. #endif
  11459. ;
  11460. return 0;
  11461. }
  11462. _ACEOF
  11463. if ac_fn_c_try_compile "$LINENO"; then :
  11464. ac_cv_c_bigendian=yes
  11465. else
  11466. ac_cv_c_bigendian=no
  11467. fi
  11468. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11469. fi
  11470. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11471. fi
  11472. if test $ac_cv_c_bigendian = unknown; then
  11473. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  11474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11475. /* end confdefs.h. */
  11476. #include <limits.h>
  11477. int
  11478. main ()
  11479. {
  11480. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  11481. bogus endian macros
  11482. #endif
  11483. ;
  11484. return 0;
  11485. }
  11486. _ACEOF
  11487. if ac_fn_c_try_compile "$LINENO"; then :
  11488. # It does; now see whether it defined to _BIG_ENDIAN or not.
  11489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11490. /* end confdefs.h. */
  11491. #include <limits.h>
  11492. int
  11493. main ()
  11494. {
  11495. #ifndef _BIG_ENDIAN
  11496. not big endian
  11497. #endif
  11498. ;
  11499. return 0;
  11500. }
  11501. _ACEOF
  11502. if ac_fn_c_try_compile "$LINENO"; then :
  11503. ac_cv_c_bigendian=yes
  11504. else
  11505. ac_cv_c_bigendian=no
  11506. fi
  11507. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11508. fi
  11509. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11510. fi
  11511. if test $ac_cv_c_bigendian = unknown; then
  11512. # Compile a test program.
  11513. if test "$cross_compiling" = yes; then :
  11514. # Try to guess by grepping values from an object file.
  11515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11516. /* end confdefs.h. */
  11517. short int ascii_mm[] =
  11518. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  11519. short int ascii_ii[] =
  11520. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  11521. int use_ascii (int i) {
  11522. return ascii_mm[i] + ascii_ii[i];
  11523. }
  11524. short int ebcdic_ii[] =
  11525. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  11526. short int ebcdic_mm[] =
  11527. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  11528. int use_ebcdic (int i) {
  11529. return ebcdic_mm[i] + ebcdic_ii[i];
  11530. }
  11531. extern int foo;
  11532. int
  11533. main ()
  11534. {
  11535. return use_ascii (foo) == use_ebcdic (foo);
  11536. ;
  11537. return 0;
  11538. }
  11539. _ACEOF
  11540. if ac_fn_c_try_compile "$LINENO"; then :
  11541. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  11542. ac_cv_c_bigendian=yes
  11543. fi
  11544. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  11545. if test "$ac_cv_c_bigendian" = unknown; then
  11546. ac_cv_c_bigendian=no
  11547. else
  11548. # finding both strings is unlikely to happen, but who knows?
  11549. ac_cv_c_bigendian=unknown
  11550. fi
  11551. fi
  11552. fi
  11553. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11554. else
  11555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11556. /* end confdefs.h. */
  11557. $ac_includes_default
  11558. int
  11559. main ()
  11560. {
  11561. /* Are we little or big endian? From Harbison&Steele. */
  11562. union
  11563. {
  11564. long int l;
  11565. char c[sizeof (long int)];
  11566. } u;
  11567. u.l = 1;
  11568. return u.c[sizeof (long int) - 1] == 1;
  11569. ;
  11570. return 0;
  11571. }
  11572. _ACEOF
  11573. if ac_fn_c_try_run "$LINENO"; then :
  11574. ac_cv_c_bigendian=no
  11575. else
  11576. ac_cv_c_bigendian=yes
  11577. fi
  11578. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11579. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11580. fi
  11581. fi
  11582. fi
  11583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  11584. $as_echo "$ac_cv_c_bigendian" >&6; }
  11585. case $ac_cv_c_bigendian in #(
  11586. yes)
  11587. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  11588. ;; #(
  11589. no)
  11590. ;; #(
  11591. universal)
  11592. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  11593. ;; #(
  11594. *)
  11595. as_fn_error $? "unknown endianness
  11596. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  11597. esac
  11598. # Extract the first word of "curl", so it can be a program name with args.
  11599. set dummy curl; ac_word=$2
  11600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11601. $as_echo_n "checking for $ac_word... " >&6; }
  11602. if ${ac_cv_prog_HAVE_CURL_BINARY+:} false; then :
  11603. $as_echo_n "(cached) " >&6
  11604. else
  11605. if test -n "$HAVE_CURL_BINARY"; then
  11606. ac_cv_prog_HAVE_CURL_BINARY="$HAVE_CURL_BINARY" # Let the user override the test.
  11607. else
  11608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11609. for as_dir in $PATH
  11610. do
  11611. IFS=$as_save_IFS
  11612. test -z "$as_dir" && as_dir=.
  11613. for ac_exec_ext in '' $ac_executable_extensions; do
  11614. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11615. ac_cv_prog_HAVE_CURL_BINARY="yes"
  11616. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11617. break 2
  11618. fi
  11619. done
  11620. done
  11621. IFS=$as_save_IFS
  11622. test -z "$ac_cv_prog_HAVE_CURL_BINARY" && ac_cv_prog_HAVE_CURL_BINARY="no"
  11623. fi
  11624. fi
  11625. HAVE_CURL_BINARY=$ac_cv_prog_HAVE_CURL_BINARY
  11626. if test -n "$HAVE_CURL_BINARY"; then
  11627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CURL_BINARY" >&5
  11628. $as_echo "$HAVE_CURL_BINARY" >&6; }
  11629. else
  11630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11631. $as_echo "no" >&6; }
  11632. fi
  11633. if test "x$HAVE_CURL_BINARY" = "xyes"; then
  11634. HAVE_CURL_BINARY_TRUE=
  11635. HAVE_CURL_BINARY_FALSE='#'
  11636. else
  11637. HAVE_CURL_BINARY_TRUE='#'
  11638. HAVE_CURL_BINARY_FALSE=
  11639. fi
  11640. # Extract the first word of "makeinfo", so it can be a program name with args.
  11641. set dummy makeinfo; ac_word=$2
  11642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11643. $as_echo_n "checking for $ac_word... " >&6; }
  11644. if ${ac_cv_prog_HAVE_MAKEINFO_BINARY+:} false; then :
  11645. $as_echo_n "(cached) " >&6
  11646. else
  11647. if test -n "$HAVE_MAKEINFO_BINARY"; then
  11648. ac_cv_prog_HAVE_MAKEINFO_BINARY="$HAVE_MAKEINFO_BINARY" # Let the user override the test.
  11649. else
  11650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11651. for as_dir in $PATH
  11652. do
  11653. IFS=$as_save_IFS
  11654. test -z "$as_dir" && as_dir=.
  11655. for ac_exec_ext in '' $ac_executable_extensions; do
  11656. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11657. ac_cv_prog_HAVE_MAKEINFO_BINARY="yes"
  11658. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11659. break 2
  11660. fi
  11661. done
  11662. done
  11663. IFS=$as_save_IFS
  11664. test -z "$ac_cv_prog_HAVE_MAKEINFO_BINARY" && ac_cv_prog_HAVE_MAKEINFO_BINARY="no"
  11665. fi
  11666. fi
  11667. HAVE_MAKEINFO_BINARY=$ac_cv_prog_HAVE_MAKEINFO_BINARY
  11668. if test -n "$HAVE_MAKEINFO_BINARY"; then
  11669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_MAKEINFO_BINARY" >&5
  11670. $as_echo "$HAVE_MAKEINFO_BINARY" >&6; }
  11671. else
  11672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11673. $as_echo "no" >&6; }
  11674. fi
  11675. if test "x$HAVE_MAKEINFO_BINARY" = "xyes"; then
  11676. HAVE_MAKEINFO_BINARY_TRUE=
  11677. HAVE_MAKEINFO_BINARY_FALSE='#'
  11678. else
  11679. HAVE_MAKEINFO_BINARY_TRUE='#'
  11680. HAVE_MAKEINFO_BINARY_FALSE=
  11681. fi
  11682. if test "x$os_is_native_w32" = "xyes" && test "x$enable_static" = "xyes"; then
  11683. W32_STATIC_LIB_TRUE=
  11684. W32_STATIC_LIB_FALSE='#'
  11685. else
  11686. W32_STATIC_LIB_TRUE='#'
  11687. W32_STATIC_LIB_FALSE=
  11688. fi
  11689. # Check whether --enable-doc was given.
  11690. if test "${enable_doc+set}" = set; then :
  11691. enableval=$enable_doc;
  11692. else
  11693. enable_doc=yes
  11694. fi
  11695. test "x$enable_doc" = "xno" || enable_doc=yes
  11696. if test "x$enable_doc" = "xyes"; then
  11697. BUILD_DOC_TRUE=
  11698. BUILD_DOC_FALSE='#'
  11699. else
  11700. BUILD_DOC_TRUE='#'
  11701. BUILD_DOC_FALSE=
  11702. fi
  11703. # Check whether --enable-examples was given.
  11704. if test "${enable_examples+set}" = set; then :
  11705. enableval=$enable_examples;
  11706. else
  11707. enable_examples=yes
  11708. fi
  11709. test "x$enable_examples" = "xno" || enable_examples=yes
  11710. if test "x$enable_examples" = "xyes"; then
  11711. BUILD_EXAMPLES_TRUE=
  11712. BUILD_EXAMPLES_FALSE='#'
  11713. else
  11714. BUILD_EXAMPLES_TRUE='#'
  11715. BUILD_EXAMPLES_FALSE=
  11716. fi
  11717. # Check whether --enable-poll was given.
  11718. if test "${enable_poll+set}" = set; then :
  11719. enableval=$enable_poll; enable_poll=${enableval}
  11720. else
  11721. enable_poll='auto'
  11722. fi
  11723. if test "$enable_poll" != "no"; then
  11724. if test "$os_is_native_w32" != "yes"; then
  11725. for ac_header in poll.h
  11726. do :
  11727. ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
  11728. if test "x$ac_cv_header_poll_h" = xyes; then :
  11729. cat >>confdefs.h <<_ACEOF
  11730. #define HAVE_POLL_H 1
  11731. _ACEOF
  11732. for ac_func in poll
  11733. do :
  11734. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  11735. if test "x$ac_cv_func_poll" = xyes; then :
  11736. cat >>confdefs.h <<_ACEOF
  11737. #define HAVE_POLL 1
  11738. _ACEOF
  11739. have_poll='yes'
  11740. else
  11741. have_poll='no'
  11742. fi
  11743. done
  11744. fi
  11745. done
  11746. else
  11747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WSAPoll()" >&5
  11748. $as_echo_n "checking for WSAPoll()... " >&6; }
  11749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11750. /* end confdefs.h. */
  11751. #include <winsock2.h>
  11752. int
  11753. main ()
  11754. {
  11755. WSAPOLLFD fda[2];
  11756. WSAPoll(fda, 2, 0);
  11757. ;
  11758. return 0;
  11759. }
  11760. _ACEOF
  11761. if ac_fn_c_try_link "$LINENO"; then :
  11762. have_poll='yes'
  11763. $as_echo "#define HAVE_POLL 1" >>confdefs.h
  11764. else
  11765. have_poll='no'
  11766. fi
  11767. rm -f core conftest.err conftest.$ac_objext \
  11768. conftest$ac_exeext conftest.$ac_ext
  11769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_poll" >&5
  11770. $as_echo "$have_poll" >&6; }
  11771. fi
  11772. if test "$enable_poll" = "yes" && test "$have_poll" != "yes"; then
  11773. as_fn_error $? "Support for poll was explicitly requested but cannot be enabled on this platform." "$LINENO" 5
  11774. fi
  11775. enable_poll="$have_poll"
  11776. fi
  11777. # Check whether --enable-epoll was given.
  11778. if test "${enable_epoll+set}" = set; then :
  11779. enableval=$enable_epoll; enable_epoll=${enableval}
  11780. else
  11781. enable_epoll='auto'
  11782. fi
  11783. if test "$enable_epoll" != "no"; then
  11784. ax_have_epoll_cppflags="${CPPFLAGS}"
  11785. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  11786. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  11787. CPPFLAGS="${CPPFLAGS} -DHAVE_LINUX_VERSION_H"
  11788. fi
  11789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux epoll(7) interface" >&5
  11790. $as_echo_n "checking for Linux epoll(7) interface... " >&6; }
  11791. if ${ax_cv_have_epoll+:} false; then :
  11792. $as_echo_n "(cached) " >&6
  11793. else
  11794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11795. /* end confdefs.h. */
  11796. #include <sys/epoll.h>
  11797. #ifdef HAVE_LINUX_VERSION_H
  11798. # include <linux/version.h>
  11799. # if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,45)
  11800. # error linux kernel version is too old to have epoll
  11801. # endif
  11802. #endif
  11803. int
  11804. main ()
  11805. {
  11806. int fd, rc;
  11807. struct epoll_event ev;
  11808. fd = epoll_create(128);
  11809. rc = epoll_wait(fd, &ev, 1, 0);
  11810. ;
  11811. return 0;
  11812. }
  11813. _ACEOF
  11814. if ac_fn_c_try_link "$LINENO"; then :
  11815. ax_cv_have_epoll=yes
  11816. else
  11817. ax_cv_have_epoll=no
  11818. fi
  11819. rm -f core conftest.err conftest.$ac_objext \
  11820. conftest$ac_exeext conftest.$ac_ext
  11821. fi
  11822. CPPFLAGS="${ax_have_epoll_cppflags}"
  11823. if test "${ax_cv_have_epoll}" = "yes"; then :
  11824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11825. $as_echo "yes" >&6; }
  11826. else
  11827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11828. $as_echo "no" >&6; }
  11829. fi
  11830. if test "${ax_cv_have_epoll}" = "yes"; then
  11831. $as_echo "#define EPOLL_SUPPORT 1" >>confdefs.h
  11832. enable_epoll='yes'
  11833. else
  11834. $as_echo "#define EPOLL_SUPPORT 0" >>confdefs.h
  11835. if test "$enable_epoll" = "yes"; then
  11836. as_fn_error $? "Support for epoll was explicitly requested but cannot be enabled on this platform." "$LINENO" 5
  11837. fi
  11838. enable_epoll='no'
  11839. fi
  11840. fi
  11841. if test "x$enable_epoll" = "xyes"; then
  11842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1()" >&5
  11843. $as_echo_n "checking for epoll_create1()... " >&6; }
  11844. if ${mhd_cv_have_epoll_create1+:} false; then :
  11845. $as_echo_n "(cached) " >&6
  11846. else
  11847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11848. /* end confdefs.h. */
  11849. #include <sys/epoll.h>
  11850. int
  11851. main ()
  11852. {
  11853. int fd;
  11854. fd = epoll_create1(EPOLL_CLOEXEC);
  11855. ;
  11856. return 0;
  11857. }
  11858. _ACEOF
  11859. if ac_fn_c_try_link "$LINENO"; then :
  11860. mhd_cv_have_epoll_create1=yes
  11861. else
  11862. mhd_cv_have_epoll_create1=no
  11863. fi
  11864. rm -f core conftest.err conftest.$ac_objext \
  11865. conftest$ac_exeext conftest.$ac_ext
  11866. fi
  11867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_epoll_create1" >&5
  11868. $as_echo "$mhd_cv_have_epoll_create1" >&6; }
  11869. if test "x$mhd_cv_have_epoll_create1" = "xyes"; then :
  11870. $as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
  11871. fi
  11872. fi
  11873. if test "x$HAVE_POSIX_THREADS" = "xyes"; then
  11874. # Check for pthread_setname_np()
  11875. SAVE_LIBS="$LIBS"
  11876. SAVE_CFLAGS="$CFLAGS"
  11877. LIBS="$PTHREAD_LIBS $LIBS"
  11878. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  11879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  11880. $as_echo_n "checking for pthread_setname_np... " >&6; }
  11881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11882. /* end confdefs.h. */
  11883. #include <pthread.h>
  11884. int
  11885. main ()
  11886. {
  11887. pthread_setname_np(pthread_self(), "name")
  11888. ;
  11889. return 0;
  11890. }
  11891. _ACEOF
  11892. if ac_fn_c_try_link "$LINENO"; then :
  11893. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  11894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11895. $as_echo "yes" >&6; }
  11896. else
  11897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11898. $as_echo "no" >&6; }
  11899. fi
  11900. rm -f core conftest.err conftest.$ac_objext \
  11901. conftest$ac_exeext conftest.$ac_ext
  11902. LIBS="$SAVE_LIBS"
  11903. CFLAGS="$SAVE_CFLAGS"
  11904. fi
  11905. # Check for headers that are ALWAYS required
  11906. for ac_header in fcntl.h math.h errno.h limits.h stdio.h locale.h sys/stat.h sys/types.h pthread.h
  11907. do :
  11908. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11909. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11910. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11911. cat >>confdefs.h <<_ACEOF
  11912. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11913. _ACEOF
  11914. else
  11915. as_fn_error $? "Compiling libmicrohttpd requires standard UNIX headers files" "$LINENO" 5
  11916. fi
  11917. done
  11918. # Check for optional headers
  11919. for ac_header in sys/types.h sys/time.h sys/msg.h netdb.h netinet/in.h netinet/tcp.h time.h sys/socket.h sys/mman.h arpa/inet.h sys/select.h search.h
  11920. do :
  11921. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11922. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11923. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11924. cat >>confdefs.h <<_ACEOF
  11925. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11926. _ACEOF
  11927. fi
  11928. done
  11929. if test "x$ac_cv_header_search_h" = "xyes"; then
  11930. HAVE_TSEARCH_TRUE=
  11931. HAVE_TSEARCH_FALSE='#'
  11932. else
  11933. HAVE_TSEARCH_TRUE='#'
  11934. HAVE_TSEARCH_FALSE=
  11935. fi
  11936. ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
  11937. #ifdef HAVE_SYS_TYPES_H
  11938. #include <sys/types.h>
  11939. #endif
  11940. #ifdef HAVE_SYS_SOCKET_H
  11941. #include <sys/socket.h>
  11942. #endif
  11943. #ifdef HAVE_NETINET_IN_H
  11944. #include <netinet/in.h>
  11945. #endif
  11946. "
  11947. if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
  11948. $as_echo "#define HAVE_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h
  11949. fi
  11950. # Check for pipe/socketpair signaling
  11951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable signaling by socketpair" >&5
  11952. $as_echo_n "checking whether to enable signaling by socketpair... " >&6; }
  11953. # Check whether --enable-socketpair was given.
  11954. if test "${enable_socketpair+set}" = set; then :
  11955. enableval=$enable_socketpair;
  11956. else
  11957. if test "x$os_is_windows" = "xyes"; then :
  11958. enable_socketpair=yes
  11959. else
  11960. enable_socketpair=no
  11961. fi
  11962. fi
  11963. if test "x$enable_socketpair" != "xno"; then :
  11964. if test "x$os_is_windows" = "xyes"; then :
  11965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced on W32" >&5
  11966. $as_echo "yes, forced on W32" >&6; }
  11967. else
  11968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11969. /* end confdefs.h. */
  11970. #ifdef HAVE_SYS_TYPES_H
  11971. #include <sys/types.h>
  11972. #endif
  11973. #ifdef HAVE_SYS_SOCKET_H
  11974. #include <sys/socket.h>
  11975. #endif
  11976. int
  11977. main ()
  11978. {
  11979. int sv[2];
  11980. if (socketpair(AF_UNIX, SOCK_STREAM, 0, sv) != 0) return 1
  11981. ;
  11982. return 0;
  11983. }
  11984. _ACEOF
  11985. if ac_fn_c_try_link "$LINENO"; then :
  11986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, socketpair in available" >&5
  11987. $as_echo "yes, socketpair in available" >&6; }
  11988. else
  11989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, socketpair in not available" >&5
  11990. $as_echo "no, socketpair in not available" >&6; }
  11991. if test "x$enable_socketpair" = "xyes"; then :
  11992. as_fn_error $? "socketpair signalling cannot be enabled." "$LINENO" 5
  11993. fi
  11994. fi
  11995. rm -f core conftest.err conftest.$ac_objext \
  11996. conftest$ac_exeext conftest.$ac_ext
  11997. fi
  11998. else
  11999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12000. $as_echo "no" >&6; }
  12001. if test "x$os_is_windows" = "xyes"; then :
  12002. as_fn_error $? "socketpair must be enabled on W32" "$LINENO" 5
  12003. fi
  12004. fi
  12005. if test "x$enable_socketpair" = "xyes"; then
  12006. $as_echo "#define MHD_DONT_USE_PIPES 1" >>confdefs.h
  12007. fi
  12008. for ac_func in $ac_func_list
  12009. do :
  12010. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12011. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12012. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12013. cat >>confdefs.h <<_ACEOF
  12014. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12015. _ACEOF
  12016. fi
  12017. done
  12018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmtime_s" >&5
  12019. $as_echo_n "checking for gmtime_s... " >&6; }
  12020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12021. /* end confdefs.h. */
  12022. #include <time.h>
  12023. int
  12024. main ()
  12025. {
  12026. struct tm now; time_t t; time (&t); gmtime_s (&now, &t)
  12027. ;
  12028. return 0;
  12029. }
  12030. _ACEOF
  12031. if ac_fn_c_try_link "$LINENO"; then :
  12032. $as_echo "#define HAVE_GMTIME_S 1" >>confdefs.h
  12033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12034. $as_echo "yes" >&6; }
  12035. else
  12036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12037. $as_echo "no" >&6; }
  12038. fi
  12039. rm -f core conftest.err conftest.$ac_objext \
  12040. conftest$ac_exeext conftest.$ac_ext
  12041. ac_fn_c_check_decl "$LINENO" "SOCK_NONBLOCK" "ac_cv_have_decl_SOCK_NONBLOCK" "
  12042. #if defined HAVE_SYS_TYPES_H
  12043. # include <sys/types.h>
  12044. #endif
  12045. #if defined HAVE_SYS_SOCKET_H
  12046. # include <sys/socket.h>
  12047. #elif defined HAVE_WINSOCK2_H
  12048. # include <winsock2.h>
  12049. #endif
  12050. "
  12051. if test "x$ac_cv_have_decl_SOCK_NONBLOCK" = xyes; then :
  12052. ac_have_decl=1
  12053. else
  12054. ac_have_decl=0
  12055. fi
  12056. cat >>confdefs.h <<_ACEOF
  12057. #define HAVE_DECL_SOCK_NONBLOCK $ac_have_decl
  12058. _ACEOF
  12059. if test $ac_have_decl = 1; then :
  12060. $as_echo "#define HAVE_SOCK_NONBLOCK 1" >>confdefs.h
  12061. fi
  12062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
  12063. $as_echo_n "checking for library containing clock_gettime... " >&6; }
  12064. if ${ac_cv_search_clock_gettime+:} false; then :
  12065. $as_echo_n "(cached) " >&6
  12066. else
  12067. ac_func_search_save_LIBS=$LIBS
  12068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12069. /* end confdefs.h. */
  12070. /* Override any GCC internal prototype to avoid an error.
  12071. Use char because int might match the return type of a GCC
  12072. builtin and then its argument prototype would still apply. */
  12073. #ifdef __cplusplus
  12074. extern "C"
  12075. #endif
  12076. char clock_gettime ();
  12077. int
  12078. main ()
  12079. {
  12080. return clock_gettime ();
  12081. ;
  12082. return 0;
  12083. }
  12084. _ACEOF
  12085. for ac_lib in '' rt; do
  12086. if test -z "$ac_lib"; then
  12087. ac_res="none required"
  12088. else
  12089. ac_res=-l$ac_lib
  12090. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12091. fi
  12092. if ac_fn_c_try_link "$LINENO"; then :
  12093. ac_cv_search_clock_gettime=$ac_res
  12094. fi
  12095. rm -f core conftest.err conftest.$ac_objext \
  12096. conftest$ac_exeext
  12097. if ${ac_cv_search_clock_gettime+:} false; then :
  12098. break
  12099. fi
  12100. done
  12101. if ${ac_cv_search_clock_gettime+:} false; then :
  12102. else
  12103. ac_cv_search_clock_gettime=no
  12104. fi
  12105. rm conftest.$ac_ext
  12106. LIBS=$ac_func_search_save_LIBS
  12107. fi
  12108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
  12109. $as_echo "$ac_cv_search_clock_gettime" >&6; }
  12110. ac_res=$ac_cv_search_clock_gettime
  12111. if test "$ac_res" != no; then :
  12112. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12113. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  12114. fi
  12115. # IPv6
  12116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6" >&5
  12117. $as_echo_n "checking for IPv6... " >&6; }
  12118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12119. /* end confdefs.h. */
  12120. #include <stdio.h>
  12121. #if HAVE_NETINET_IN_H
  12122. #include <netinet/in.h>
  12123. #endif
  12124. #if HAVE_SYS_SOCKET_H
  12125. #include <sys/socket.h>
  12126. #endif
  12127. #if HAVE_WINSOCK2_H
  12128. #include <winsock2.h>
  12129. #endif
  12130. #if HAVE_WS2TCPIP_H
  12131. #include <ws2tcpip.h>
  12132. #endif
  12133. int
  12134. main ()
  12135. {
  12136. int af=AF_INET6;
  12137. int pf=PF_INET6;
  12138. struct sockaddr_in6 sa;
  12139. printf("%d %d %p\n", af, pf, &sa);
  12140. ;
  12141. return 0;
  12142. }
  12143. _ACEOF
  12144. if ac_fn_c_try_compile "$LINENO"; then :
  12145. have_inet6=yes;
  12146. $as_echo "#define HAVE_INET6 1" >>confdefs.h
  12147. else
  12148. have_inet6=no
  12149. fi
  12150. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_inet6" >&5
  12152. $as_echo "$have_inet6" >&6; }
  12153. # TCP_CORK and TCP_NOPUSH
  12154. ac_fn_c_check_decl "$LINENO" "TCP_CORK" "ac_cv_have_decl_TCP_CORK" "#include <netinet/tcp.h>
  12155. "
  12156. if test "x$ac_cv_have_decl_TCP_CORK" = xyes; then :
  12157. ac_have_decl=1
  12158. else
  12159. ac_have_decl=0
  12160. fi
  12161. cat >>confdefs.h <<_ACEOF
  12162. #define HAVE_DECL_TCP_CORK $ac_have_decl
  12163. _ACEOF
  12164. ac_fn_c_check_decl "$LINENO" "TCP_NOPUSH" "ac_cv_have_decl_TCP_NOPUSH" "#include <netinet/tcp.h>
  12165. "
  12166. if test "x$ac_cv_have_decl_TCP_NOPUSH" = xyes; then :
  12167. ac_have_decl=1
  12168. else
  12169. ac_have_decl=0
  12170. fi
  12171. cat >>confdefs.h <<_ACEOF
  12172. #define HAVE_DECL_TCP_NOPUSH $ac_have_decl
  12173. _ACEOF
  12174. HIDDEN_VISIBILITY_CFLAGS=""
  12175. case "$host" in
  12176. *-*-mingw*)
  12177. $as_echo "#define _MHD_EXTERN __attribute__((visibility(\"default\"))) __declspec(dllexport) extern" >>confdefs.h
  12178. HIDDEN_VISIBILITY_CFLAGS="-fvisibility=hidden"
  12179. ;;
  12180. *)
  12181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fvisibility=hidden" >&5
  12182. $as_echo_n "checking whether the linker accepts -fvisibility=hidden... " >&6; }
  12183. if ${ax_cv_check_ldflags___fvisibility_hidden+:} false; then :
  12184. $as_echo_n "(cached) " >&6
  12185. else
  12186. ax_check_save_flags=$LDFLAGS
  12187. LDFLAGS="$LDFLAGS -fvisibility=hidden"
  12188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12189. /* end confdefs.h. */
  12190. int
  12191. main ()
  12192. {
  12193. ;
  12194. return 0;
  12195. }
  12196. _ACEOF
  12197. if ac_fn_c_try_link "$LINENO"; then :
  12198. ax_cv_check_ldflags___fvisibility_hidden=yes
  12199. else
  12200. ax_cv_check_ldflags___fvisibility_hidden=no
  12201. fi
  12202. rm -f core conftest.err conftest.$ac_objext \
  12203. conftest$ac_exeext conftest.$ac_ext
  12204. LDFLAGS=$ax_check_save_flags
  12205. fi
  12206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fvisibility_hidden" >&5
  12207. $as_echo "$ax_cv_check_ldflags___fvisibility_hidden" >&6; }
  12208. if test x"$ax_cv_check_ldflags___fvisibility_hidden" = xyes; then :
  12209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvisibility=hidden" >&5
  12210. $as_echo_n "checking whether C compiler accepts -fvisibility=hidden... " >&6; }
  12211. if ${ax_cv_check_cflags___fvisibility_hidden+:} false; then :
  12212. $as_echo_n "(cached) " >&6
  12213. else
  12214. ax_check_save_flags=$CFLAGS
  12215. CFLAGS="$CFLAGS -fvisibility=hidden"
  12216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12217. /* end confdefs.h. */
  12218. int
  12219. main ()
  12220. {
  12221. ;
  12222. return 0;
  12223. }
  12224. _ACEOF
  12225. if ac_fn_c_try_compile "$LINENO"; then :
  12226. ax_cv_check_cflags___fvisibility_hidden=yes
  12227. else
  12228. ax_cv_check_cflags___fvisibility_hidden=no
  12229. fi
  12230. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12231. CFLAGS=$ax_check_save_flags
  12232. fi
  12233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fvisibility_hidden" >&5
  12234. $as_echo "$ax_cv_check_cflags___fvisibility_hidden" >&6; }
  12235. if test x"$ax_cv_check_cflags___fvisibility_hidden" = xyes; then :
  12236. $as_echo "#define _MHD_EXTERN __attribute__((visibility(\"default\"))) extern" >>confdefs.h
  12237. HIDDEN_VISIBILITY_CFLAGS="-fvisibility=hidden"
  12238. else
  12239. :
  12240. fi
  12241. else
  12242. :
  12243. fi
  12244. ;;
  12245. esac
  12246. # libcurl (required for testing)
  12247. # Check whether --enable-curl was given.
  12248. if test "${enable_curl+set}" = set; then :
  12249. enableval=$enable_curl; enable_curl=${enableval}
  12250. fi
  12251. curl=0
  12252. if test "$enable_curl" != "no"
  12253. then
  12254. # Check whether --with-libcurl was given.
  12255. if test "${with_libcurl+set}" = set; then :
  12256. withval=$with_libcurl; _libcurl_with=$withval
  12257. else
  12258. _libcurl_with=yes
  12259. fi
  12260. if test "$_libcurl_with" != "no" ; then
  12261. for ac_prog in gawk mawk nawk awk
  12262. do
  12263. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12264. set dummy $ac_prog; ac_word=$2
  12265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12266. $as_echo_n "checking for $ac_word... " >&6; }
  12267. if ${ac_cv_prog_AWK+:} false; then :
  12268. $as_echo_n "(cached) " >&6
  12269. else
  12270. if test -n "$AWK"; then
  12271. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  12272. else
  12273. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12274. for as_dir in $PATH
  12275. do
  12276. IFS=$as_save_IFS
  12277. test -z "$as_dir" && as_dir=.
  12278. for ac_exec_ext in '' $ac_executable_extensions; do
  12279. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12280. ac_cv_prog_AWK="$ac_prog"
  12281. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12282. break 2
  12283. fi
  12284. done
  12285. done
  12286. IFS=$as_save_IFS
  12287. fi
  12288. fi
  12289. AWK=$ac_cv_prog_AWK
  12290. if test -n "$AWK"; then
  12291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  12292. $as_echo "$AWK" >&6; }
  12293. else
  12294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12295. $as_echo "no" >&6; }
  12296. fi
  12297. test -n "$AWK" && break
  12298. done
  12299. _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
  12300. _libcurl_try_link=yes
  12301. if test -d "$_libcurl_with" ; then
  12302. LIBCURL_CPPFLAGS="-I$withval/include"
  12303. _libcurl_ldflags="-L$withval/lib"
  12304. # Extract the first word of "curl-config", so it can be a program name with args.
  12305. set dummy curl-config; ac_word=$2
  12306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12307. $as_echo_n "checking for $ac_word... " >&6; }
  12308. if ${ac_cv_path__libcurl_config+:} false; then :
  12309. $as_echo_n "(cached) " >&6
  12310. else
  12311. case $_libcurl_config in
  12312. [\\/]* | ?:[\\/]*)
  12313. ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
  12314. ;;
  12315. *)
  12316. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12317. for as_dir in "$withval/bin"
  12318. do
  12319. IFS=$as_save_IFS
  12320. test -z "$as_dir" && as_dir=.
  12321. for ac_exec_ext in '' $ac_executable_extensions; do
  12322. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12323. ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
  12324. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12325. break 2
  12326. fi
  12327. done
  12328. done
  12329. IFS=$as_save_IFS
  12330. ;;
  12331. esac
  12332. fi
  12333. _libcurl_config=$ac_cv_path__libcurl_config
  12334. if test -n "$_libcurl_config"; then
  12335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
  12336. $as_echo "$_libcurl_config" >&6; }
  12337. else
  12338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12339. $as_echo "no" >&6; }
  12340. fi
  12341. else
  12342. # Extract the first word of "curl-config", so it can be a program name with args.
  12343. set dummy curl-config; ac_word=$2
  12344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12345. $as_echo_n "checking for $ac_word... " >&6; }
  12346. if ${ac_cv_path__libcurl_config+:} false; then :
  12347. $as_echo_n "(cached) " >&6
  12348. else
  12349. case $_libcurl_config in
  12350. [\\/]* | ?:[\\/]*)
  12351. ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
  12352. ;;
  12353. *)
  12354. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12355. for as_dir in $PATH
  12356. do
  12357. IFS=$as_save_IFS
  12358. test -z "$as_dir" && as_dir=.
  12359. for ac_exec_ext in '' $ac_executable_extensions; do
  12360. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12361. ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
  12362. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12363. break 2
  12364. fi
  12365. done
  12366. done
  12367. IFS=$as_save_IFS
  12368. ;;
  12369. esac
  12370. fi
  12371. _libcurl_config=$ac_cv_path__libcurl_config
  12372. if test -n "$_libcurl_config"; then
  12373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
  12374. $as_echo "$_libcurl_config" >&6; }
  12375. else
  12376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12377. $as_echo "no" >&6; }
  12378. fi
  12379. fi
  12380. if test x$_libcurl_config != "x" ; then
  12381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5
  12382. $as_echo_n "checking for the version of libcurl... " >&6; }
  12383. if ${libcurl_cv_lib_curl_version+:} false; then :
  12384. $as_echo_n "(cached) " >&6
  12385. else
  12386. libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
  12387. fi
  12388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5
  12389. $as_echo "$libcurl_cv_lib_curl_version" >&6; }
  12390. _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
  12391. _libcurl_wanted=`echo 7.16.4 | $_libcurl_version_parse`
  12392. if test $_libcurl_wanted -gt 0 ; then
  12393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version 7.16.4" >&5
  12394. $as_echo_n "checking for libcurl >= version 7.16.4... " >&6; }
  12395. if ${libcurl_cv_lib_version_ok+:} false; then :
  12396. $as_echo_n "(cached) " >&6
  12397. else
  12398. if test $_libcurl_version -ge $_libcurl_wanted ; then
  12399. libcurl_cv_lib_version_ok=yes
  12400. else
  12401. libcurl_cv_lib_version_ok=no
  12402. fi
  12403. fi
  12404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5
  12405. $as_echo "$libcurl_cv_lib_version_ok" >&6; }
  12406. fi
  12407. if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
  12408. if test x"$LIBCURL_CPPFLAGS" = "x" ; then
  12409. LIBCURL_CPPFLAGS=`$_libcurl_config --cflags`
  12410. fi
  12411. if test x"$LIBCURL" = "x" ; then
  12412. LIBCURL=`$_libcurl_config --libs`
  12413. # This is so silly, but Apple actually has a bug in their
  12414. # curl-config script. Fixed in Tiger, but there are still
  12415. # lots of Panther installs around.
  12416. case "${host}" in
  12417. powerpc-apple-darwin7*)
  12418. LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`
  12419. ;;
  12420. esac
  12421. fi
  12422. # All curl-config scripts support --feature
  12423. _libcurl_features=`$_libcurl_config --feature`
  12424. # Is it modern enough to have --protocols? (7.12.4)
  12425. if test $_libcurl_version -ge 461828 ; then
  12426. _libcurl_protocols=`$_libcurl_config --protocols`
  12427. fi
  12428. else
  12429. _libcurl_try_link=no
  12430. fi
  12431. unset _libcurl_wanted
  12432. fi
  12433. if test $_libcurl_try_link = yes ; then
  12434. # we didn't find curl-config, so let's see if the user-supplied
  12435. # link line (or failing that, "-lcurl") is enough.
  12436. LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"}
  12437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5
  12438. $as_echo_n "checking whether libcurl is usable... " >&6; }
  12439. if ${libcurl_cv_lib_curl_usable+:} false; then :
  12440. $as_echo_n "(cached) " >&6
  12441. else
  12442. _libcurl_save_cppflags=$CPPFLAGS
  12443. CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS"
  12444. _libcurl_save_libs=$LIBS
  12445. LIBS="$LIBCURL $LIBS"
  12446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12447. /* end confdefs.h. */
  12448. #include <curl/curl.h>
  12449. int
  12450. main ()
  12451. {
  12452. /* Try and use a few common options to force a failure if we are
  12453. missing symbols or can't link. */
  12454. int x;
  12455. curl_easy_setopt(NULL,CURLOPT_URL,NULL);
  12456. x=CURL_ERROR_SIZE;
  12457. x=CURLOPT_WRITEFUNCTION;
  12458. x=CURLOPT_FILE;
  12459. x=CURLOPT_ERRORBUFFER;
  12460. x=CURLOPT_STDERR;
  12461. x=CURLOPT_VERBOSE;
  12462. if (x) ;
  12463. ;
  12464. return 0;
  12465. }
  12466. _ACEOF
  12467. if ac_fn_c_try_link "$LINENO"; then :
  12468. libcurl_cv_lib_curl_usable=yes
  12469. else
  12470. libcurl_cv_lib_curl_usable=no
  12471. fi
  12472. rm -f core conftest.err conftest.$ac_objext \
  12473. conftest$ac_exeext conftest.$ac_ext
  12474. CPPFLAGS=$_libcurl_save_cppflags
  12475. LIBS=$_libcurl_save_libs
  12476. unset _libcurl_save_cppflags
  12477. unset _libcurl_save_libs
  12478. fi
  12479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5
  12480. $as_echo "$libcurl_cv_lib_curl_usable" >&6; }
  12481. if test $libcurl_cv_lib_curl_usable = yes ; then
  12482. # Does curl_free() exist in this version of libcurl?
  12483. # If not, fake it with free()
  12484. _libcurl_save_cppflags=$CPPFLAGS
  12485. CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
  12486. _libcurl_save_libs=$LIBS
  12487. LIBS="$LIBS $LIBCURL"
  12488. ac_fn_c_check_func "$LINENO" "curl_free" "ac_cv_func_curl_free"
  12489. if test "x$ac_cv_func_curl_free" = xyes; then :
  12490. else
  12491. $as_echo "#define curl_free free" >>confdefs.h
  12492. fi
  12493. CPPFLAGS=$_libcurl_save_cppflags
  12494. LIBS=$_libcurl_save_libs
  12495. unset _libcurl_save_cppflags
  12496. unset _libcurl_save_libs
  12497. $as_echo "#define HAVE_LIBCURL 1" >>confdefs.h
  12498. for _libcurl_feature in $_libcurl_features ; do
  12499. cat >>confdefs.h <<_ACEOF
  12500. #define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
  12501. _ACEOF
  12502. eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
  12503. done
  12504. if test "x$_libcurl_protocols" = "x" ; then
  12505. # We don't have --protocols, so just assume that all
  12506. # protocols are available
  12507. _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT TFTP"
  12508. test -z "$_libcurl_version" && _libcurl_version=0
  12509. if test x$libcurl_feature_SSL = xyes ; then
  12510. _libcurl_protocols="$_libcurl_protocols HTTPS"
  12511. # FTPS wasn't standards-compliant until version
  12512. # 7.11.0 (0x070b00 == 461568)
  12513. if test $_libcurl_version -ge 461568; then
  12514. _libcurl_protocols="$_libcurl_protocols FTPS"
  12515. fi
  12516. fi
  12517. # RTSP, IMAP, POP3 and SMTP were added in
  12518. # 7.20.0 (0x071400 == 463872)
  12519. if test $_libcurl_version -ge 463872; then
  12520. _libcurl_protocols="$_libcurl_protocols RTSP IMAP POP3 SMTP"
  12521. fi
  12522. fi
  12523. for _libcurl_protocol in $_libcurl_protocols ; do
  12524. cat >>confdefs.h <<_ACEOF
  12525. #define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
  12526. _ACEOF
  12527. eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
  12528. done
  12529. else
  12530. unset LIBCURL
  12531. unset LIBCURL_CPPFLAGS
  12532. fi
  12533. fi
  12534. unset _libcurl_try_link
  12535. unset _libcurl_version_parse
  12536. unset _libcurl_config
  12537. unset _libcurl_feature
  12538. unset _libcurl_features
  12539. unset _libcurl_protocol
  12540. unset _libcurl_protocols
  12541. unset _libcurl_version
  12542. unset _libcurl_ldflags
  12543. fi
  12544. if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
  12545. # This is the IF-NO path
  12546. if test "x$enable_curl" = "xyes"; then
  12547. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cURL-based tests cannot be enabled because libcurl is missing" >&5
  12548. $as_echo "$as_me: WARNING: cURL-based tests cannot be enabled because libcurl is missing" >&2;}
  12549. fi
  12550. enable_curl=no
  12551. else
  12552. # This is the IF-YES path
  12553. enable_curl=yes
  12554. fi
  12555. unset _libcurl_with
  12556. fi
  12557. if test "$enable_curl" != "no"
  12558. then
  12559. # Lib cURL & cURL - OpenSSL versions
  12560. $as_echo "#define MHD_REQ_CURL_VERSION \"7.16.4\"" >>confdefs.h
  12561. $as_echo "#define MHD_REQ_CURL_OPENSSL_VERSION \"0.9.8\"" >>confdefs.h
  12562. $as_echo "#define MHD_REQ_CURL_GNUTLS_VERSION \"2.8.6\"" >>confdefs.h
  12563. $as_echo "#define MHD_REQ_CURL_NSS_VERSION \"3.12.0\"" >>confdefs.h
  12564. fi
  12565. if test "x$enable_curl" = "xyes"; then
  12566. HAVE_CURL_TRUE=
  12567. HAVE_CURL_FALSE='#'
  12568. else
  12569. HAVE_CURL_TRUE='#'
  12570. HAVE_CURL_FALSE=
  12571. fi
  12572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
  12573. $as_echo_n "checking for magic_open in -lmagic... " >&6; }
  12574. if ${ac_cv_lib_magic_magic_open+:} false; then :
  12575. $as_echo_n "(cached) " >&6
  12576. else
  12577. ac_check_lib_save_LIBS=$LIBS
  12578. LIBS="-lmagic $LIBS"
  12579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12580. /* end confdefs.h. */
  12581. /* Override any GCC internal prototype to avoid an error.
  12582. Use char because int might match the return type of a GCC
  12583. builtin and then its argument prototype would still apply. */
  12584. #ifdef __cplusplus
  12585. extern "C"
  12586. #endif
  12587. char magic_open ();
  12588. int
  12589. main ()
  12590. {
  12591. return magic_open ();
  12592. ;
  12593. return 0;
  12594. }
  12595. _ACEOF
  12596. if ac_fn_c_try_link "$LINENO"; then :
  12597. ac_cv_lib_magic_magic_open=yes
  12598. else
  12599. ac_cv_lib_magic_magic_open=no
  12600. fi
  12601. rm -f core conftest.err conftest.$ac_objext \
  12602. conftest$ac_exeext conftest.$ac_ext
  12603. LIBS=$ac_check_lib_save_LIBS
  12604. fi
  12605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
  12606. $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
  12607. if test "x$ac_cv_lib_magic_magic_open" = xyes; then :
  12608. for ac_header in magic.h
  12609. do :
  12610. ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
  12611. if test "x$ac_cv_header_magic_h" = xyes; then :
  12612. cat >>confdefs.h <<_ACEOF
  12613. #define HAVE_MAGIC_H 1
  12614. _ACEOF
  12615. if true; then
  12616. HAVE_MAGIC_TRUE=
  12617. HAVE_MAGIC_FALSE='#'
  12618. else
  12619. HAVE_MAGIC_TRUE='#'
  12620. HAVE_MAGIC_FALSE=
  12621. fi
  12622. else
  12623. if false; then
  12624. HAVE_MAGIC_TRUE=
  12625. HAVE_MAGIC_FALSE='#'
  12626. else
  12627. HAVE_MAGIC_TRUE='#'
  12628. HAVE_MAGIC_FALSE=
  12629. fi
  12630. fi
  12631. done
  12632. else
  12633. if false; then
  12634. HAVE_MAGIC_TRUE=
  12635. HAVE_MAGIC_FALSE='#'
  12636. else
  12637. HAVE_MAGIC_TRUE='#'
  12638. HAVE_MAGIC_FALSE=
  12639. fi
  12640. fi
  12641. # optional: libmicrospdy support. Enabled by default if not on W32
  12642. # Check whether --enable-spdy was given.
  12643. if test "${enable_spdy+set}" = set; then :
  12644. enableval=$enable_spdy; enable_spdy=${enableval}
  12645. else
  12646. if test "x$os_is_windows" = "xyes"; then :
  12647. enable_spdy=no
  12648. fi
  12649. fi
  12650. if test "$enable_spdy" != "no"
  12651. then
  12652. found=false
  12653. # Check whether --with-openssl was given.
  12654. if test "${with_openssl+set}" = set; then :
  12655. withval=$with_openssl;
  12656. case "$withval" in
  12657. "" | y | ye | yes | n | no)
  12658. as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
  12659. ;;
  12660. *) ssldirs="$withval"
  12661. ;;
  12662. esac
  12663. else
  12664. # if pkg-config is installed and openssl has installed a .pc file,
  12665. # then use that information and don't search ssldirs
  12666. # Extract the first word of "pkg-config", so it can be a program name with args.
  12667. set dummy pkg-config; ac_word=$2
  12668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12669. $as_echo_n "checking for $ac_word... " >&6; }
  12670. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  12671. $as_echo_n "(cached) " >&6
  12672. else
  12673. case $PKG_CONFIG in
  12674. [\\/]* | ?:[\\/]*)
  12675. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  12676. ;;
  12677. *)
  12678. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12679. for as_dir in $PATH
  12680. do
  12681. IFS=$as_save_IFS
  12682. test -z "$as_dir" && as_dir=.
  12683. for ac_exec_ext in '' $ac_executable_extensions; do
  12684. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12685. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  12686. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12687. break 2
  12688. fi
  12689. done
  12690. done
  12691. IFS=$as_save_IFS
  12692. ;;
  12693. esac
  12694. fi
  12695. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  12696. if test -n "$PKG_CONFIG"; then
  12697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  12698. $as_echo "$PKG_CONFIG" >&6; }
  12699. else
  12700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12701. $as_echo "no" >&6; }
  12702. fi
  12703. if test x"$PKG_CONFIG" != x""; then
  12704. OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
  12705. if test $? = 0; then
  12706. OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
  12707. OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
  12708. found=true
  12709. fi
  12710. fi
  12711. # no such luck; use some default ssldirs
  12712. if ! $found; then
  12713. ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
  12714. fi
  12715. fi
  12716. # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
  12717. # an 'openssl' subdirectory
  12718. if ! $found; then
  12719. OPENSSL_INCLUDES=
  12720. for ssldir in $ssldirs; do
  12721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
  12722. $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
  12723. if test -f "$ssldir/include/openssl/ssl.h"; then
  12724. OPENSSL_INCLUDES="-I$ssldir/include"
  12725. OPENSSL_LDFLAGS="-L$ssldir/lib"
  12726. OPENSSL_LIBS="-lssl -lcrypto"
  12727. found=true
  12728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12729. $as_echo "yes" >&6; }
  12730. break
  12731. else
  12732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12733. $as_echo "no" >&6; }
  12734. fi
  12735. done
  12736. # if the file wasn't found, well, go ahead and try the link anyway -- maybe
  12737. # it will just work!
  12738. fi
  12739. # try the preprocessor and linker with our new flags,
  12740. # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
  12741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
  12742. $as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
  12743. echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
  12744. "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
  12745. save_LIBS="$LIBS"
  12746. save_LDFLAGS="$LDFLAGS"
  12747. save_CPPFLAGS="$CPPFLAGS"
  12748. LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
  12749. LIBS="$OPENSSL_LIBS $LIBS"
  12750. CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
  12751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12752. /* end confdefs.h. */
  12753. #include <openssl/ssl.h>
  12754. int
  12755. main ()
  12756. {
  12757. SSL_new(NULL)
  12758. ;
  12759. return 0;
  12760. }
  12761. _ACEOF
  12762. if ac_fn_c_try_link "$LINENO"; then :
  12763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12764. $as_echo "yes" >&6; }
  12765. have_openssl=yes
  12766. else
  12767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12768. $as_echo "no" >&6; }
  12769. have_openssl=no
  12770. fi
  12771. rm -f core conftest.err conftest.$ac_objext \
  12772. conftest$ac_exeext conftest.$ac_ext
  12773. CPPFLAGS="$save_CPPFLAGS"
  12774. LDFLAGS="$save_LDFLAGS"
  12775. LIBS="$save_LIBS"
  12776. if test "x$have_openssl" = "xyes"
  12777. then
  12778. # check OpenSSL headers
  12779. SAVE_CPP_FLAGS="$CPPFLAGS"
  12780. CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
  12781. for ac_header in openssl/evp.h openssl/rsa.h openssl/rand.h openssl/err.h openssl/sha.h openssl/pem.h openssl/engine.h
  12782. do :
  12783. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12784. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12785. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  12786. cat >>confdefs.h <<_ACEOF
  12787. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12788. _ACEOF
  12789. have_openssl=yes
  12790. else
  12791. have_openssl=no
  12792. fi
  12793. done
  12794. if test "x$have_openssl" = "xyes"
  12795. then
  12796. # check OpenSSL libs
  12797. SAVE_LIBS="$LIBS"
  12798. SAVE_LD_FLAGS="$LDFLAGS"
  12799. LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
  12800. LIBS="$OPENSSL_LIBS $LIBS"
  12801. ac_fn_c_check_func "$LINENO" "SSL_CTX_set_next_protos_advertised_cb" "ac_cv_func_SSL_CTX_set_next_protos_advertised_cb"
  12802. if test "x$ac_cv_func_SSL_CTX_set_next_protos_advertised_cb" = xyes; then :
  12803. ac_fn_c_check_func "$LINENO" "SSL_library_init" "ac_cv_func_SSL_library_init"
  12804. if test "x$ac_cv_func_SSL_library_init" = xyes; then :
  12805. have_openssl=yes
  12806. else
  12807. have_openssl=no
  12808. fi
  12809. else
  12810. have_openssl=no
  12811. fi
  12812. LIBS="$SAVE_LIBS"
  12813. LDFLAGS="$SAVE_LD_FLAGS"
  12814. fi
  12815. CPPFLAGS="$SAVE_CPP_FLAGS"
  12816. fi
  12817. if test "x$have_openssl" = "xyes"
  12818. then
  12819. enable_spdy=yes
  12820. else
  12821. if test "x$enable_spdy" = "xyes" ; then :
  12822. as_fn_error $? "libmicrospdy cannot be enabled without OpenSSL." "$LINENO" 5
  12823. fi
  12824. have_openssl=no
  12825. enable_spdy=no
  12826. fi
  12827. else
  12828. # OpenSSL is used only for libmicrospdy
  12829. have_openssl=no
  12830. fi
  12831. if test "x$have_openssl" = "xyes"; then
  12832. HAVE_OPENSSL_TRUE=
  12833. HAVE_OPENSSL_FALSE='#'
  12834. else
  12835. HAVE_OPENSSL_TRUE='#'
  12836. HAVE_OPENSSL_FALSE=
  12837. fi
  12838. if test "$enable_spdy" = "yes"
  12839. then
  12840. $as_echo "#define SPDY_SUPPORT 1" >>confdefs.h
  12841. else
  12842. $as_echo "#define SPDY_SUPPORT 0" >>confdefs.h
  12843. fi
  12844. if test "x$enable_spdy" != "xno"; then
  12845. ENABLE_SPDY_TRUE=
  12846. ENABLE_SPDY_FALSE='#'
  12847. else
  12848. ENABLE_SPDY_TRUE='#'
  12849. ENABLE_SPDY_FALSE=
  12850. fi
  12851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have OpenSSL and thus can support libmicrospdy" >&5
  12852. $as_echo_n "checking whether we have OpenSSL and thus can support libmicrospdy... " >&6; }
  12853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_spdy" >&5
  12854. $as_echo "$enable_spdy" >&6; }
  12855. # for pkg-config
  12856. SPDY_LIBDEPS="$OPENSSL_LIBS"
  12857. SPDY_LIB_LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
  12858. SPDY_LIB_CFLAGS="$CFLAGS"
  12859. SPDY_LIB_CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
  12860. # for pkg-config
  12861. for ac_header in spdylay/spdylay.h
  12862. do :
  12863. ac_fn_c_check_header_mongrel "$LINENO" "spdylay/spdylay.h" "ac_cv_header_spdylay_spdylay_h" "$ac_includes_default"
  12864. if test "x$ac_cv_header_spdylay_spdylay_h" = xyes; then :
  12865. cat >>confdefs.h <<_ACEOF
  12866. #define HAVE_SPDYLAY_SPDYLAY_H 1
  12867. _ACEOF
  12868. have_spdylay="yes"
  12869. else
  12870. have_spdylay="no"
  12871. fi
  12872. done
  12873. if test "x$have_spdylay" = "xyes"; then
  12874. HAVE_SPDYLAY_TRUE=
  12875. HAVE_SPDYLAY_FALSE='#'
  12876. else
  12877. HAVE_SPDYLAY_TRUE='#'
  12878. HAVE_SPDYLAY_FALSE=
  12879. fi
  12880. # large file support (> 4 GB)
  12881. # Check whether --enable-largefile was given.
  12882. if test "${enable_largefile+set}" = set; then :
  12883. enableval=$enable_largefile;
  12884. fi
  12885. if test "$enable_largefile" != no; then
  12886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  12887. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  12888. if ${ac_cv_sys_largefile_CC+:} false; then :
  12889. $as_echo_n "(cached) " >&6
  12890. else
  12891. ac_cv_sys_largefile_CC=no
  12892. if test "$GCC" != yes; then
  12893. ac_save_CC=$CC
  12894. while :; do
  12895. # IRIX 6.2 and later do not support large files by default,
  12896. # so use the C compiler's -n32 option if that helps.
  12897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12898. /* end confdefs.h. */
  12899. #include <sys/types.h>
  12900. /* Check that off_t can represent 2**63 - 1 correctly.
  12901. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12902. since some C++ compilers masquerading as C compilers
  12903. incorrectly reject 9223372036854775807. */
  12904. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  12905. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12906. && LARGE_OFF_T % 2147483647 == 1)
  12907. ? 1 : -1];
  12908. int
  12909. main ()
  12910. {
  12911. ;
  12912. return 0;
  12913. }
  12914. _ACEOF
  12915. if ac_fn_c_try_compile "$LINENO"; then :
  12916. break
  12917. fi
  12918. rm -f core conftest.err conftest.$ac_objext
  12919. CC="$CC -n32"
  12920. if ac_fn_c_try_compile "$LINENO"; then :
  12921. ac_cv_sys_largefile_CC=' -n32'; break
  12922. fi
  12923. rm -f core conftest.err conftest.$ac_objext
  12924. break
  12925. done
  12926. CC=$ac_save_CC
  12927. rm -f conftest.$ac_ext
  12928. fi
  12929. fi
  12930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  12931. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  12932. if test "$ac_cv_sys_largefile_CC" != no; then
  12933. CC=$CC$ac_cv_sys_largefile_CC
  12934. fi
  12935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  12936. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  12937. if ${ac_cv_sys_file_offset_bits+:} false; then :
  12938. $as_echo_n "(cached) " >&6
  12939. else
  12940. while :; do
  12941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12942. /* end confdefs.h. */
  12943. #include <sys/types.h>
  12944. /* Check that off_t can represent 2**63 - 1 correctly.
  12945. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12946. since some C++ compilers masquerading as C compilers
  12947. incorrectly reject 9223372036854775807. */
  12948. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  12949. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12950. && LARGE_OFF_T % 2147483647 == 1)
  12951. ? 1 : -1];
  12952. int
  12953. main ()
  12954. {
  12955. ;
  12956. return 0;
  12957. }
  12958. _ACEOF
  12959. if ac_fn_c_try_compile "$LINENO"; then :
  12960. ac_cv_sys_file_offset_bits=no; break
  12961. fi
  12962. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12964. /* end confdefs.h. */
  12965. #define _FILE_OFFSET_BITS 64
  12966. #include <sys/types.h>
  12967. /* Check that off_t can represent 2**63 - 1 correctly.
  12968. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12969. since some C++ compilers masquerading as C compilers
  12970. incorrectly reject 9223372036854775807. */
  12971. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  12972. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12973. && LARGE_OFF_T % 2147483647 == 1)
  12974. ? 1 : -1];
  12975. int
  12976. main ()
  12977. {
  12978. ;
  12979. return 0;
  12980. }
  12981. _ACEOF
  12982. if ac_fn_c_try_compile "$LINENO"; then :
  12983. ac_cv_sys_file_offset_bits=64; break
  12984. fi
  12985. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12986. ac_cv_sys_file_offset_bits=unknown
  12987. break
  12988. done
  12989. fi
  12990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  12991. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  12992. case $ac_cv_sys_file_offset_bits in #(
  12993. no | unknown) ;;
  12994. *)
  12995. cat >>confdefs.h <<_ACEOF
  12996. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  12997. _ACEOF
  12998. ;;
  12999. esac
  13000. rm -rf conftest*
  13001. if test $ac_cv_sys_file_offset_bits = unknown; then
  13002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  13003. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  13004. if ${ac_cv_sys_large_files+:} false; then :
  13005. $as_echo_n "(cached) " >&6
  13006. else
  13007. while :; do
  13008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13009. /* end confdefs.h. */
  13010. #include <sys/types.h>
  13011. /* Check that off_t can represent 2**63 - 1 correctly.
  13012. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  13013. since some C++ compilers masquerading as C compilers
  13014. incorrectly reject 9223372036854775807. */
  13015. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  13016. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  13017. && LARGE_OFF_T % 2147483647 == 1)
  13018. ? 1 : -1];
  13019. int
  13020. main ()
  13021. {
  13022. ;
  13023. return 0;
  13024. }
  13025. _ACEOF
  13026. if ac_fn_c_try_compile "$LINENO"; then :
  13027. ac_cv_sys_large_files=no; break
  13028. fi
  13029. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13031. /* end confdefs.h. */
  13032. #define _LARGE_FILES 1
  13033. #include <sys/types.h>
  13034. /* Check that off_t can represent 2**63 - 1 correctly.
  13035. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  13036. since some C++ compilers masquerading as C compilers
  13037. incorrectly reject 9223372036854775807. */
  13038. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  13039. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  13040. && LARGE_OFF_T % 2147483647 == 1)
  13041. ? 1 : -1];
  13042. int
  13043. main ()
  13044. {
  13045. ;
  13046. return 0;
  13047. }
  13048. _ACEOF
  13049. if ac_fn_c_try_compile "$LINENO"; then :
  13050. ac_cv_sys_large_files=1; break
  13051. fi
  13052. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13053. ac_cv_sys_large_files=unknown
  13054. break
  13055. done
  13056. fi
  13057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  13058. $as_echo "$ac_cv_sys_large_files" >&6; }
  13059. case $ac_cv_sys_large_files in #(
  13060. no | unknown) ;;
  13061. *)
  13062. cat >>confdefs.h <<_ACEOF
  13063. #define _LARGE_FILES $ac_cv_sys_large_files
  13064. _ACEOF
  13065. ;;
  13066. esac
  13067. rm -rf conftest*
  13068. fi
  13069. fi
  13070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  13071. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  13072. if ${ac_cv_sys_largefile_source+:} false; then :
  13073. $as_echo_n "(cached) " >&6
  13074. else
  13075. while :; do
  13076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13077. /* end confdefs.h. */
  13078. #include <sys/types.h> /* for off_t */
  13079. #include <stdio.h>
  13080. int
  13081. main ()
  13082. {
  13083. int (*fp) (FILE *, off_t, int) = fseeko;
  13084. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  13085. ;
  13086. return 0;
  13087. }
  13088. _ACEOF
  13089. if ac_fn_c_try_link "$LINENO"; then :
  13090. ac_cv_sys_largefile_source=no; break
  13091. fi
  13092. rm -f core conftest.err conftest.$ac_objext \
  13093. conftest$ac_exeext conftest.$ac_ext
  13094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13095. /* end confdefs.h. */
  13096. #define _LARGEFILE_SOURCE 1
  13097. #include <sys/types.h> /* for off_t */
  13098. #include <stdio.h>
  13099. int
  13100. main ()
  13101. {
  13102. int (*fp) (FILE *, off_t, int) = fseeko;
  13103. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  13104. ;
  13105. return 0;
  13106. }
  13107. _ACEOF
  13108. if ac_fn_c_try_link "$LINENO"; then :
  13109. ac_cv_sys_largefile_source=1; break
  13110. fi
  13111. rm -f core conftest.err conftest.$ac_objext \
  13112. conftest$ac_exeext conftest.$ac_ext
  13113. ac_cv_sys_largefile_source=unknown
  13114. break
  13115. done
  13116. fi
  13117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  13118. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  13119. case $ac_cv_sys_largefile_source in #(
  13120. no | unknown) ;;
  13121. *)
  13122. cat >>confdefs.h <<_ACEOF
  13123. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  13124. _ACEOF
  13125. ;;
  13126. esac
  13127. rm -rf conftest*
  13128. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  13129. # in glibc 2.1.3, but that breaks too many other things.
  13130. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  13131. if test $ac_cv_sys_largefile_source != unknown; then
  13132. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  13133. fi
  13134. # optional: have error messages ?
  13135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to generate error messages" >&5
  13136. $as_echo_n "checking whether to generate error messages... " >&6; }
  13137. # Check whether --enable-messages was given.
  13138. if test "${enable_messages+set}" = set; then :
  13139. enableval=$enable_messages; enable_messages=${enableval}
  13140. else
  13141. enable_messages=yes
  13142. fi
  13143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_messages" >&5
  13144. $as_echo "$enable_messages" >&6; }
  13145. if test "$enable_messages" = "yes"
  13146. then
  13147. $as_echo "#define HAVE_MESSAGES 1" >>confdefs.h
  13148. else
  13149. $as_echo "#define HAVE_MESSAGES 0" >>confdefs.h
  13150. fi
  13151. # optional: have postprocessor?
  13152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable postprocessor" >&5
  13153. $as_echo_n "checking whether to enable postprocessor... " >&6; }
  13154. # Check whether --enable-postprocessor was given.
  13155. if test "${enable_postprocessor+set}" = set; then :
  13156. enableval=$enable_postprocessor; enable_postprocessor=${enableval}
  13157. else
  13158. enable_postprocessor=yes
  13159. fi
  13160. test "x$enable_postprocessor" = "xno" || enable_postprocessor=yes
  13161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_postprocessor" >&5
  13162. $as_echo "$enable_postprocessor" >&6; }
  13163. if test "x$enable_postprocessor" != "xno"; then
  13164. HAVE_POSTPROCESSOR_TRUE=
  13165. HAVE_POSTPROCESSOR_FALSE='#'
  13166. else
  13167. HAVE_POSTPROCESSOR_TRUE='#'
  13168. HAVE_POSTPROCESSOR_FALSE=
  13169. fi
  13170. if test "x$enable_postprocessor" != "xno"
  13171. then
  13172. $as_echo "#define HAVE_POSTPROCESSOR 1" >>confdefs.h
  13173. fi
  13174. # optional: have zzuf, socat?
  13175. # Extract the first word of "zzuf", so it can be a program name with args.
  13176. set dummy zzuf; ac_word=$2
  13177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13178. $as_echo_n "checking for $ac_word... " >&6; }
  13179. if ${ac_cv_prog_have_zzuf+:} false; then :
  13180. $as_echo_n "(cached) " >&6
  13181. else
  13182. if test -n "$have_zzuf"; then
  13183. ac_cv_prog_have_zzuf="$have_zzuf" # Let the user override the test.
  13184. else
  13185. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13186. for as_dir in $PATH
  13187. do
  13188. IFS=$as_save_IFS
  13189. test -z "$as_dir" && as_dir=.
  13190. for ac_exec_ext in '' $ac_executable_extensions; do
  13191. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13192. ac_cv_prog_have_zzuf="yes"
  13193. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13194. break 2
  13195. fi
  13196. done
  13197. done
  13198. IFS=$as_save_IFS
  13199. test -z "$ac_cv_prog_have_zzuf" && ac_cv_prog_have_zzuf="no"
  13200. fi
  13201. fi
  13202. have_zzuf=$ac_cv_prog_have_zzuf
  13203. if test -n "$have_zzuf"; then
  13204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_zzuf" >&5
  13205. $as_echo "$have_zzuf" >&6; }
  13206. else
  13207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13208. $as_echo "no" >&6; }
  13209. fi
  13210. # Extract the first word of "socat", so it can be a program name with args.
  13211. set dummy socat; ac_word=$2
  13212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13213. $as_echo_n "checking for $ac_word... " >&6; }
  13214. if ${ac_cv_prog_have_socat+:} false; then :
  13215. $as_echo_n "(cached) " >&6
  13216. else
  13217. if test -n "$have_socat"; then
  13218. ac_cv_prog_have_socat="$have_socat" # Let the user override the test.
  13219. else
  13220. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13221. for as_dir in $PATH
  13222. do
  13223. IFS=$as_save_IFS
  13224. test -z "$as_dir" && as_dir=.
  13225. for ac_exec_ext in '' $ac_executable_extensions; do
  13226. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13227. ac_cv_prog_have_socat="yes"
  13228. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13229. break 2
  13230. fi
  13231. done
  13232. done
  13233. IFS=$as_save_IFS
  13234. test -z "$ac_cv_prog_have_socat" && ac_cv_prog_have_socat="no"
  13235. fi
  13236. fi
  13237. have_socat=$ac_cv_prog_have_socat
  13238. if test -n "$have_socat"; then
  13239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_socat" >&5
  13240. $as_echo "$have_socat" >&6; }
  13241. else
  13242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13243. $as_echo "no" >&6; }
  13244. fi
  13245. if test "x$have_zzuf" = "xyes"; then
  13246. HAVE_ZZUF_TRUE=
  13247. HAVE_ZZUF_FALSE='#'
  13248. else
  13249. HAVE_ZZUF_TRUE='#'
  13250. HAVE_ZZUF_FALSE=
  13251. fi
  13252. if test "x$have_socat" = "xyes"; then
  13253. HAVE_SOCAT_TRUE=
  13254. HAVE_SOCAT_FALSE='#'
  13255. else
  13256. HAVE_SOCAT_TRUE='#'
  13257. HAVE_SOCAT_FALSE=
  13258. fi
  13259. # libgcrypt linkage: required for HTTPS support
  13260. # Check whether --with-libgcrypt-prefix was given.
  13261. if test "${with_libgcrypt_prefix+set}" = set; then :
  13262. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  13263. else
  13264. libgcrypt_config_prefix=""
  13265. fi
  13266. if test x$libgcrypt_config_prefix != x ; then
  13267. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  13268. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  13269. fi
  13270. fi
  13271. if test -n "$ac_tool_prefix"; then
  13272. # Extract the first word of "${ac_tool_prefix}libgcrypt-config", so it can be a program name with args.
  13273. set dummy ${ac_tool_prefix}libgcrypt-config; ac_word=$2
  13274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13275. $as_echo_n "checking for $ac_word... " >&6; }
  13276. if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
  13277. $as_echo_n "(cached) " >&6
  13278. else
  13279. case $LIBGCRYPT_CONFIG in
  13280. [\\/]* | ?:[\\/]*)
  13281. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  13282. ;;
  13283. *)
  13284. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13285. for as_dir in $PATH
  13286. do
  13287. IFS=$as_save_IFS
  13288. test -z "$as_dir" && as_dir=.
  13289. for ac_exec_ext in '' $ac_executable_extensions; do
  13290. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13291. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13292. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13293. break 2
  13294. fi
  13295. done
  13296. done
  13297. IFS=$as_save_IFS
  13298. ;;
  13299. esac
  13300. fi
  13301. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  13302. if test -n "$LIBGCRYPT_CONFIG"; then
  13303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
  13304. $as_echo "$LIBGCRYPT_CONFIG" >&6; }
  13305. else
  13306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13307. $as_echo "no" >&6; }
  13308. fi
  13309. fi
  13310. if test -z "$ac_cv_path_LIBGCRYPT_CONFIG"; then
  13311. ac_pt_LIBGCRYPT_CONFIG=$LIBGCRYPT_CONFIG
  13312. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  13313. set dummy libgcrypt-config; ac_word=$2
  13314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13315. $as_echo_n "checking for $ac_word... " >&6; }
  13316. if ${ac_cv_path_ac_pt_LIBGCRYPT_CONFIG+:} false; then :
  13317. $as_echo_n "(cached) " >&6
  13318. else
  13319. case $ac_pt_LIBGCRYPT_CONFIG in
  13320. [\\/]* | ?:[\\/]*)
  13321. ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$ac_pt_LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  13322. ;;
  13323. *)
  13324. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13325. for as_dir in $PATH
  13326. do
  13327. IFS=$as_save_IFS
  13328. test -z "$as_dir" && as_dir=.
  13329. for ac_exec_ext in '' $ac_executable_extensions; do
  13330. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13331. ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13332. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13333. break 2
  13334. fi
  13335. done
  13336. done
  13337. IFS=$as_save_IFS
  13338. ;;
  13339. esac
  13340. fi
  13341. ac_pt_LIBGCRYPT_CONFIG=$ac_cv_path_ac_pt_LIBGCRYPT_CONFIG
  13342. if test -n "$ac_pt_LIBGCRYPT_CONFIG"; then
  13343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGCRYPT_CONFIG" >&5
  13344. $as_echo "$ac_pt_LIBGCRYPT_CONFIG" >&6; }
  13345. else
  13346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13347. $as_echo "no" >&6; }
  13348. fi
  13349. if test "x$ac_pt_LIBGCRYPT_CONFIG" = x; then
  13350. LIBGCRYPT_CONFIG="no"
  13351. else
  13352. case $cross_compiling:$ac_tool_warned in
  13353. yes:)
  13354. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13355. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13356. ac_tool_warned=yes ;;
  13357. esac
  13358. LIBGCRYPT_CONFIG=$ac_pt_LIBGCRYPT_CONFIG
  13359. fi
  13360. else
  13361. LIBGCRYPT_CONFIG="$ac_cv_path_LIBGCRYPT_CONFIG"
  13362. fi
  13363. tmp=1.2.2
  13364. if echo "$tmp" | $GREP ':' >/dev/null 2>/dev/null ; then
  13365. req_libgcrypt_api=`echo "$tmp" | $SED 's/\(.*\):\(.*\)/\1/'`
  13366. min_libgcrypt_version=`echo "$tmp" | $SED 's/\(.*\):\(.*\)/\2/'`
  13367. else
  13368. req_libgcrypt_api=0
  13369. min_libgcrypt_version="$tmp"
  13370. fi
  13371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  13372. $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
  13373. ok=no
  13374. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  13375. req_major=`echo $min_libgcrypt_version | \
  13376. $SED 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  13377. req_minor=`echo $min_libgcrypt_version | \
  13378. $SED 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  13379. req_micro=`echo $min_libgcrypt_version | \
  13380. $SED 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  13381. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  13382. major=`echo $libgcrypt_config_version | \
  13383. $SED 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  13384. minor=`echo $libgcrypt_config_version | \
  13385. $SED 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  13386. micro=`echo $libgcrypt_config_version | \
  13387. $SED 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  13388. if test "$major" -gt "$req_major"; then
  13389. ok=yes
  13390. else
  13391. if test "$major" -eq "$req_major"; then
  13392. if test "$minor" -gt "$req_minor"; then
  13393. ok=yes
  13394. else
  13395. if test "$minor" -eq "$req_minor"; then
  13396. if test "$micro" -ge "$req_micro"; then
  13397. ok=yes
  13398. fi
  13399. fi
  13400. fi
  13401. fi
  13402. fi
  13403. fi
  13404. if test $ok = yes; then
  13405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
  13406. $as_echo "yes ($libgcrypt_config_version)" >&6; }
  13407. else
  13408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13409. $as_echo "no" >&6; }
  13410. fi
  13411. if test $ok = yes; then
  13412. # If we have a recent libgcrypt, we should also check that the
  13413. # API is compatible
  13414. if test "$req_libgcrypt_api" -gt 0 ; then
  13415. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  13416. if test "$tmp" -gt 0 ; then
  13417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
  13418. $as_echo_n "checking LIBGCRYPT API version... " >&6; }
  13419. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  13420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
  13421. $as_echo "okay" >&6; }
  13422. else
  13423. ok=no
  13424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  13425. $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  13426. fi
  13427. fi
  13428. fi
  13429. fi
  13430. if test $ok = yes; then
  13431. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  13432. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  13433. have_gcrypt=yes
  13434. libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
  13435. if test x"$libgcrypt_config_host" != xnone ; then
  13436. if test x"$libgcrypt_config_host" != x"$host" ; then
  13437. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
  13438. ***
  13439. *** The config script $LIBGCRYPT_CONFIG was
  13440. *** built for $libgcrypt_config_host and thus may not match the
  13441. *** used host $host.
  13442. *** You may want to use the configure option --with-libgcrypt-prefix
  13443. *** to specify a matching config script.
  13444. ***" >&5
  13445. $as_echo "$as_me: WARNING:
  13446. ***
  13447. *** The config script $LIBGCRYPT_CONFIG was
  13448. *** built for $libgcrypt_config_host and thus may not match the
  13449. *** used host $host.
  13450. *** You may want to use the configure option --with-libgcrypt-prefix
  13451. *** to specify a matching config script.
  13452. ***" >&2;}
  13453. fi
  13454. fi
  13455. else
  13456. LIBGCRYPT_CFLAGS=""
  13457. LIBGCRYPT_LIBS=""
  13458. have_gcrypt=no
  13459. fi
  13460. if test "x$have_gcrypt" = "xyes"
  13461. then
  13462. SAVE_CFLAGS="$CFLAGS"
  13463. CFLAGS="$CFLAGS $LIBGCRYPT_CFLAGS"
  13464. # LIBGCRYPT_CFLAGS can be actually a CPPFLAGS, so check them both
  13465. SAVE_CPPFLAGS="$CPPFLAGS"
  13466. CPPFLAGS="$CPPFLAGS $LIBGCRYPT_CFLAGS"
  13467. for ac_header in gcrypt.h
  13468. do :
  13469. ac_fn_c_check_header_mongrel "$LINENO" "gcrypt.h" "ac_cv_header_gcrypt_h" "$ac_includes_default"
  13470. if test "x$ac_cv_header_gcrypt_h" = xyes; then :
  13471. cat >>confdefs.h <<_ACEOF
  13472. #define HAVE_GCRYPT_H 1
  13473. _ACEOF
  13474. else
  13475. have_gcrypt=no
  13476. fi
  13477. done
  13478. CFLAGS="$SAVE_CFLAGS"
  13479. CPPFLAGS="$SAVE_CPPFLAGS"
  13480. fi
  13481. # gnutls
  13482. GNUTLS_CPPFLAGS=""
  13483. GNUTLS_LDFLAGS=""
  13484. have_gnutls=no
  13485. have_gnutls_sni=no
  13486. have_gnutls_pkgcfg=no
  13487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to find GnuTLS library" >&5
  13488. $as_echo_n "checking how to find GnuTLS library... " >&6; }
  13489. # Check whether --with-gnutls was given.
  13490. if test "${with_gnutls+set}" = set; then :
  13491. withval=$with_gnutls;
  13492. case $with_gnutls in
  13493. no)
  13494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: GnuTLS disabled" >&5
  13495. $as_echo "GnuTLS disabled" >&6; }
  13496. ;;
  13497. yes)
  13498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: automatically, forced" >&5
  13499. $as_echo "automatically, forced" >&6; }
  13500. ;;
  13501. *)
  13502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: -I$with_gnutls/include -L$with_gnutls/lib -lgnutls" >&5
  13503. $as_echo "-I$with_gnutls/include -L$with_gnutls/lib -lgnutls" >&6; }
  13504. SAVE_LDFLAGS="$LDFLAGS"
  13505. SAVE_CPPFLAGS="$CPPFLAGS"
  13506. LDFLAGS="-L$with_gnutls/lib $LDFLAGS"
  13507. CPPFLAGS="-I$with_gnutls/include $CPPFLAGS"
  13508. have_gnutls_pkgcfg=no
  13509. for ac_header in gnutls/gnutls.h
  13510. do :
  13511. ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
  13512. if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
  13513. cat >>confdefs.h <<_ACEOF
  13514. #define HAVE_GNUTLS_GNUTLS_H 1
  13515. _ACEOF
  13516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_priority_set in -lgnutls" >&5
  13517. $as_echo_n "checking for gnutls_priority_set in -lgnutls... " >&6; }
  13518. if ${ac_cv_lib_gnutls_gnutls_priority_set+:} false; then :
  13519. $as_echo_n "(cached) " >&6
  13520. else
  13521. ac_check_lib_save_LIBS=$LIBS
  13522. LIBS="-lgnutls $LIBS"
  13523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13524. /* end confdefs.h. */
  13525. /* Override any GCC internal prototype to avoid an error.
  13526. Use char because int might match the return type of a GCC
  13527. builtin and then its argument prototype would still apply. */
  13528. #ifdef __cplusplus
  13529. extern "C"
  13530. #endif
  13531. char gnutls_priority_set ();
  13532. int
  13533. main ()
  13534. {
  13535. return gnutls_priority_set ();
  13536. ;
  13537. return 0;
  13538. }
  13539. _ACEOF
  13540. if ac_fn_c_try_link "$LINENO"; then :
  13541. ac_cv_lib_gnutls_gnutls_priority_set=yes
  13542. else
  13543. ac_cv_lib_gnutls_gnutls_priority_set=no
  13544. fi
  13545. rm -f core conftest.err conftest.$ac_objext \
  13546. conftest$ac_exeext conftest.$ac_ext
  13547. LIBS=$ac_check_lib_save_LIBS
  13548. fi
  13549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_priority_set" >&5
  13550. $as_echo "$ac_cv_lib_gnutls_gnutls_priority_set" >&6; }
  13551. if test "x$ac_cv_lib_gnutls_gnutls_priority_set" = xyes; then :
  13552. GNUTLS_CPPFLAGS="-I$with_gnutls/include"
  13553. GNUTLS_LDFLAGS="-L$with_gnutls/lib"
  13554. GNUTLS_LIBS="-lgnutls"
  13555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_load_file in -lgnutls" >&5
  13556. $as_echo_n "checking for gnutls_load_file in -lgnutls... " >&6; }
  13557. if ${ac_cv_lib_gnutls_gnutls_load_file+:} false; then :
  13558. $as_echo_n "(cached) " >&6
  13559. else
  13560. ac_check_lib_save_LIBS=$LIBS
  13561. LIBS="-lgnutls $LIBS"
  13562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13563. /* end confdefs.h. */
  13564. /* Override any GCC internal prototype to avoid an error.
  13565. Use char because int might match the return type of a GCC
  13566. builtin and then its argument prototype would still apply. */
  13567. #ifdef __cplusplus
  13568. extern "C"
  13569. #endif
  13570. char gnutls_load_file ();
  13571. int
  13572. main ()
  13573. {
  13574. return gnutls_load_file ();
  13575. ;
  13576. return 0;
  13577. }
  13578. _ACEOF
  13579. if ac_fn_c_try_link "$LINENO"; then :
  13580. ac_cv_lib_gnutls_gnutls_load_file=yes
  13581. else
  13582. ac_cv_lib_gnutls_gnutls_load_file=no
  13583. fi
  13584. rm -f core conftest.err conftest.$ac_objext \
  13585. conftest$ac_exeext conftest.$ac_ext
  13586. LIBS=$ac_check_lib_save_LIBS
  13587. fi
  13588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_load_file" >&5
  13589. $as_echo "$ac_cv_lib_gnutls_gnutls_load_file" >&6; }
  13590. if test "x$ac_cv_lib_gnutls_gnutls_load_file" = xyes; then :
  13591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_privkey_import_x509_raw in -lgnutls" >&5
  13592. $as_echo_n "checking for gnutls_privkey_import_x509_raw in -lgnutls... " >&6; }
  13593. if ${ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw+:} false; then :
  13594. $as_echo_n "(cached) " >&6
  13595. else
  13596. ac_check_lib_save_LIBS=$LIBS
  13597. LIBS="-lgnutls $LIBS"
  13598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13599. /* end confdefs.h. */
  13600. /* Override any GCC internal prototype to avoid an error.
  13601. Use char because int might match the return type of a GCC
  13602. builtin and then its argument prototype would still apply. */
  13603. #ifdef __cplusplus
  13604. extern "C"
  13605. #endif
  13606. char gnutls_privkey_import_x509_raw ();
  13607. int
  13608. main ()
  13609. {
  13610. return gnutls_privkey_import_x509_raw ();
  13611. ;
  13612. return 0;
  13613. }
  13614. _ACEOF
  13615. if ac_fn_c_try_link "$LINENO"; then :
  13616. ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw=yes
  13617. else
  13618. ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw=no
  13619. fi
  13620. rm -f core conftest.err conftest.$ac_objext \
  13621. conftest$ac_exeext conftest.$ac_ext
  13622. LIBS=$ac_check_lib_save_LIBS
  13623. fi
  13624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw" >&5
  13625. $as_echo "$ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw" >&6; }
  13626. if test "x$ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw" = xyes; then :
  13627. have_gnutls_sni=yes
  13628. fi
  13629. fi
  13630. have_gnutls=yes
  13631. fi
  13632. fi
  13633. done
  13634. if test "x$have_gnutls" != "xyes"; then :
  13635. as_fn_error $? "can't find usable libgnutls at specified prefix $with_gnutls" "$LINENO" 5
  13636. fi
  13637. LDFLAGS="$SAVE_LDFLAGS"
  13638. CPPFLAGS="$SAVE_CPPFLAGS"
  13639. ;;
  13640. esac
  13641. else
  13642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: automatically" >&5
  13643. $as_echo "automatically" >&6; }
  13644. fi
  13645. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13646. if test -n "$ac_tool_prefix"; then
  13647. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13648. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13650. $as_echo_n "checking for $ac_word... " >&6; }
  13651. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13652. $as_echo_n "(cached) " >&6
  13653. else
  13654. case $PKG_CONFIG in
  13655. [\\/]* | ?:[\\/]*)
  13656. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13657. ;;
  13658. *)
  13659. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13660. for as_dir in $PATH
  13661. do
  13662. IFS=$as_save_IFS
  13663. test -z "$as_dir" && as_dir=.
  13664. for ac_exec_ext in '' $ac_executable_extensions; do
  13665. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13666. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13667. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13668. break 2
  13669. fi
  13670. done
  13671. done
  13672. IFS=$as_save_IFS
  13673. ;;
  13674. esac
  13675. fi
  13676. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13677. if test -n "$PKG_CONFIG"; then
  13678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13679. $as_echo "$PKG_CONFIG" >&6; }
  13680. else
  13681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13682. $as_echo "no" >&6; }
  13683. fi
  13684. fi
  13685. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13686. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13687. # Extract the first word of "pkg-config", so it can be a program name with args.
  13688. set dummy pkg-config; ac_word=$2
  13689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13690. $as_echo_n "checking for $ac_word... " >&6; }
  13691. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13692. $as_echo_n "(cached) " >&6
  13693. else
  13694. case $ac_pt_PKG_CONFIG in
  13695. [\\/]* | ?:[\\/]*)
  13696. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13697. ;;
  13698. *)
  13699. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13700. for as_dir in $PATH
  13701. do
  13702. IFS=$as_save_IFS
  13703. test -z "$as_dir" && as_dir=.
  13704. for ac_exec_ext in '' $ac_executable_extensions; do
  13705. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13706. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13707. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13708. break 2
  13709. fi
  13710. done
  13711. done
  13712. IFS=$as_save_IFS
  13713. ;;
  13714. esac
  13715. fi
  13716. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13717. if test -n "$ac_pt_PKG_CONFIG"; then
  13718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13719. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13720. else
  13721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13722. $as_echo "no" >&6; }
  13723. fi
  13724. if test "x$ac_pt_PKG_CONFIG" = x; then
  13725. PKG_CONFIG=""
  13726. else
  13727. case $cross_compiling:$ac_tool_warned in
  13728. yes:)
  13729. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13730. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13731. ac_tool_warned=yes ;;
  13732. esac
  13733. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13734. fi
  13735. else
  13736. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13737. fi
  13738. fi
  13739. if test -n "$PKG_CONFIG"; then
  13740. _pkg_min_version=0.9.0
  13741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13742. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13743. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13745. $as_echo "yes" >&6; }
  13746. else
  13747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13748. $as_echo "no" >&6; }
  13749. PKG_CONFIG=""
  13750. fi
  13751. fi
  13752. if test "x$with_gnutls" != "xno" && test "x$have_gnutls" != "xyes"; then :
  13753. pkg_failed=no
  13754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
  13755. $as_echo_n "checking for GNUTLS... " >&6; }
  13756. if test -n "$GNUTLS_CFLAGS"; then
  13757. pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
  13758. elif test -n "$PKG_CONFIG"; then
  13759. if test -n "$PKG_CONFIG" && \
  13760. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
  13761. ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
  13762. ac_status=$?
  13763. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13764. test $ac_status = 0; }; then
  13765. pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null`
  13766. test "x$?" != "x0" && pkg_failed=yes
  13767. else
  13768. pkg_failed=yes
  13769. fi
  13770. else
  13771. pkg_failed=untried
  13772. fi
  13773. if test -n "$GNUTLS_LIBS"; then
  13774. pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
  13775. elif test -n "$PKG_CONFIG"; then
  13776. if test -n "$PKG_CONFIG" && \
  13777. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
  13778. ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
  13779. ac_status=$?
  13780. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13781. test $ac_status = 0; }; then
  13782. pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls" 2>/dev/null`
  13783. test "x$?" != "x0" && pkg_failed=yes
  13784. else
  13785. pkg_failed=yes
  13786. fi
  13787. else
  13788. pkg_failed=untried
  13789. fi
  13790. if test $pkg_failed = yes; then
  13791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13792. $as_echo "no" >&6; }
  13793. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13794. _pkg_short_errors_supported=yes
  13795. else
  13796. _pkg_short_errors_supported=no
  13797. fi
  13798. if test $_pkg_short_errors_supported = yes; then
  13799. GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls" 2>&1`
  13800. else
  13801. GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls" 2>&1`
  13802. fi
  13803. # Put the nasty error message in config.log where it belongs
  13804. echo "$GNUTLS_PKG_ERRORS" >&5
  13805. have_gnutls_pkgcfg='no'
  13806. for ac_header in gnutls/gnutls.h
  13807. do :
  13808. ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
  13809. if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
  13810. cat >>confdefs.h <<_ACEOF
  13811. #define HAVE_GNUTLS_GNUTLS_H 1
  13812. _ACEOF
  13813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_priority_set in -lgnutls" >&5
  13814. $as_echo_n "checking for gnutls_priority_set in -lgnutls... " >&6; }
  13815. if ${ac_cv_lib_gnutls_gnutls_priority_set+:} false; then :
  13816. $as_echo_n "(cached) " >&6
  13817. else
  13818. ac_check_lib_save_LIBS=$LIBS
  13819. LIBS="-lgnutls $LIBS"
  13820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13821. /* end confdefs.h. */
  13822. /* Override any GCC internal prototype to avoid an error.
  13823. Use char because int might match the return type of a GCC
  13824. builtin and then its argument prototype would still apply. */
  13825. #ifdef __cplusplus
  13826. extern "C"
  13827. #endif
  13828. char gnutls_priority_set ();
  13829. int
  13830. main ()
  13831. {
  13832. return gnutls_priority_set ();
  13833. ;
  13834. return 0;
  13835. }
  13836. _ACEOF
  13837. if ac_fn_c_try_link "$LINENO"; then :
  13838. ac_cv_lib_gnutls_gnutls_priority_set=yes
  13839. else
  13840. ac_cv_lib_gnutls_gnutls_priority_set=no
  13841. fi
  13842. rm -f core conftest.err conftest.$ac_objext \
  13843. conftest$ac_exeext conftest.$ac_ext
  13844. LIBS=$ac_check_lib_save_LIBS
  13845. fi
  13846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_priority_set" >&5
  13847. $as_echo "$ac_cv_lib_gnutls_gnutls_priority_set" >&6; }
  13848. if test "x$ac_cv_lib_gnutls_gnutls_priority_set" = xyes; then :
  13849. GNUTLS_LIBS="-lgnutls"
  13850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_load_file in -lgnutls" >&5
  13851. $as_echo_n "checking for gnutls_load_file in -lgnutls... " >&6; }
  13852. if ${ac_cv_lib_gnutls_gnutls_load_file+:} false; then :
  13853. $as_echo_n "(cached) " >&6
  13854. else
  13855. ac_check_lib_save_LIBS=$LIBS
  13856. LIBS="-lgnutls $LIBS"
  13857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13858. /* end confdefs.h. */
  13859. /* Override any GCC internal prototype to avoid an error.
  13860. Use char because int might match the return type of a GCC
  13861. builtin and then its argument prototype would still apply. */
  13862. #ifdef __cplusplus
  13863. extern "C"
  13864. #endif
  13865. char gnutls_load_file ();
  13866. int
  13867. main ()
  13868. {
  13869. return gnutls_load_file ();
  13870. ;
  13871. return 0;
  13872. }
  13873. _ACEOF
  13874. if ac_fn_c_try_link "$LINENO"; then :
  13875. ac_cv_lib_gnutls_gnutls_load_file=yes
  13876. else
  13877. ac_cv_lib_gnutls_gnutls_load_file=no
  13878. fi
  13879. rm -f core conftest.err conftest.$ac_objext \
  13880. conftest$ac_exeext conftest.$ac_ext
  13881. LIBS=$ac_check_lib_save_LIBS
  13882. fi
  13883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_load_file" >&5
  13884. $as_echo "$ac_cv_lib_gnutls_gnutls_load_file" >&6; }
  13885. if test "x$ac_cv_lib_gnutls_gnutls_load_file" = xyes; then :
  13886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_privkey_import_x509_raw in -lgnutls" >&5
  13887. $as_echo_n "checking for gnutls_privkey_import_x509_raw in -lgnutls... " >&6; }
  13888. if ${ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw+:} false; then :
  13889. $as_echo_n "(cached) " >&6
  13890. else
  13891. ac_check_lib_save_LIBS=$LIBS
  13892. LIBS="-lgnutls $LIBS"
  13893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13894. /* end confdefs.h. */
  13895. /* Override any GCC internal prototype to avoid an error.
  13896. Use char because int might match the return type of a GCC
  13897. builtin and then its argument prototype would still apply. */
  13898. #ifdef __cplusplus
  13899. extern "C"
  13900. #endif
  13901. char gnutls_privkey_import_x509_raw ();
  13902. int
  13903. main ()
  13904. {
  13905. return gnutls_privkey_import_x509_raw ();
  13906. ;
  13907. return 0;
  13908. }
  13909. _ACEOF
  13910. if ac_fn_c_try_link "$LINENO"; then :
  13911. ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw=yes
  13912. else
  13913. ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw=no
  13914. fi
  13915. rm -f core conftest.err conftest.$ac_objext \
  13916. conftest$ac_exeext conftest.$ac_ext
  13917. LIBS=$ac_check_lib_save_LIBS
  13918. fi
  13919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw" >&5
  13920. $as_echo "$ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw" >&6; }
  13921. if test "x$ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw" = xyes; then :
  13922. have_gnutls_sni=yes
  13923. fi
  13924. fi
  13925. have_gnutls=yes
  13926. fi
  13927. fi
  13928. done
  13929. elif test $pkg_failed = untried; then
  13930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13931. $as_echo "no" >&6; }
  13932. have_gnutls_pkgcfg='no'
  13933. for ac_header in gnutls/gnutls.h
  13934. do :
  13935. ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
  13936. if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
  13937. cat >>confdefs.h <<_ACEOF
  13938. #define HAVE_GNUTLS_GNUTLS_H 1
  13939. _ACEOF
  13940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_priority_set in -lgnutls" >&5
  13941. $as_echo_n "checking for gnutls_priority_set in -lgnutls... " >&6; }
  13942. if ${ac_cv_lib_gnutls_gnutls_priority_set+:} false; then :
  13943. $as_echo_n "(cached) " >&6
  13944. else
  13945. ac_check_lib_save_LIBS=$LIBS
  13946. LIBS="-lgnutls $LIBS"
  13947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13948. /* end confdefs.h. */
  13949. /* Override any GCC internal prototype to avoid an error.
  13950. Use char because int might match the return type of a GCC
  13951. builtin and then its argument prototype would still apply. */
  13952. #ifdef __cplusplus
  13953. extern "C"
  13954. #endif
  13955. char gnutls_priority_set ();
  13956. int
  13957. main ()
  13958. {
  13959. return gnutls_priority_set ();
  13960. ;
  13961. return 0;
  13962. }
  13963. _ACEOF
  13964. if ac_fn_c_try_link "$LINENO"; then :
  13965. ac_cv_lib_gnutls_gnutls_priority_set=yes
  13966. else
  13967. ac_cv_lib_gnutls_gnutls_priority_set=no
  13968. fi
  13969. rm -f core conftest.err conftest.$ac_objext \
  13970. conftest$ac_exeext conftest.$ac_ext
  13971. LIBS=$ac_check_lib_save_LIBS
  13972. fi
  13973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_priority_set" >&5
  13974. $as_echo "$ac_cv_lib_gnutls_gnutls_priority_set" >&6; }
  13975. if test "x$ac_cv_lib_gnutls_gnutls_priority_set" = xyes; then :
  13976. GNUTLS_LIBS="-lgnutls"
  13977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_load_file in -lgnutls" >&5
  13978. $as_echo_n "checking for gnutls_load_file in -lgnutls... " >&6; }
  13979. if ${ac_cv_lib_gnutls_gnutls_load_file+:} false; then :
  13980. $as_echo_n "(cached) " >&6
  13981. else
  13982. ac_check_lib_save_LIBS=$LIBS
  13983. LIBS="-lgnutls $LIBS"
  13984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13985. /* end confdefs.h. */
  13986. /* Override any GCC internal prototype to avoid an error.
  13987. Use char because int might match the return type of a GCC
  13988. builtin and then its argument prototype would still apply. */
  13989. #ifdef __cplusplus
  13990. extern "C"
  13991. #endif
  13992. char gnutls_load_file ();
  13993. int
  13994. main ()
  13995. {
  13996. return gnutls_load_file ();
  13997. ;
  13998. return 0;
  13999. }
  14000. _ACEOF
  14001. if ac_fn_c_try_link "$LINENO"; then :
  14002. ac_cv_lib_gnutls_gnutls_load_file=yes
  14003. else
  14004. ac_cv_lib_gnutls_gnutls_load_file=no
  14005. fi
  14006. rm -f core conftest.err conftest.$ac_objext \
  14007. conftest$ac_exeext conftest.$ac_ext
  14008. LIBS=$ac_check_lib_save_LIBS
  14009. fi
  14010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_load_file" >&5
  14011. $as_echo "$ac_cv_lib_gnutls_gnutls_load_file" >&6; }
  14012. if test "x$ac_cv_lib_gnutls_gnutls_load_file" = xyes; then :
  14013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_privkey_import_x509_raw in -lgnutls" >&5
  14014. $as_echo_n "checking for gnutls_privkey_import_x509_raw in -lgnutls... " >&6; }
  14015. if ${ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw+:} false; then :
  14016. $as_echo_n "(cached) " >&6
  14017. else
  14018. ac_check_lib_save_LIBS=$LIBS
  14019. LIBS="-lgnutls $LIBS"
  14020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14021. /* end confdefs.h. */
  14022. /* Override any GCC internal prototype to avoid an error.
  14023. Use char because int might match the return type of a GCC
  14024. builtin and then its argument prototype would still apply. */
  14025. #ifdef __cplusplus
  14026. extern "C"
  14027. #endif
  14028. char gnutls_privkey_import_x509_raw ();
  14029. int
  14030. main ()
  14031. {
  14032. return gnutls_privkey_import_x509_raw ();
  14033. ;
  14034. return 0;
  14035. }
  14036. _ACEOF
  14037. if ac_fn_c_try_link "$LINENO"; then :
  14038. ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw=yes
  14039. else
  14040. ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw=no
  14041. fi
  14042. rm -f core conftest.err conftest.$ac_objext \
  14043. conftest$ac_exeext conftest.$ac_ext
  14044. LIBS=$ac_check_lib_save_LIBS
  14045. fi
  14046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw" >&5
  14047. $as_echo "$ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw" >&6; }
  14048. if test "x$ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw" = xyes; then :
  14049. have_gnutls_sni=yes
  14050. fi
  14051. fi
  14052. have_gnutls=yes
  14053. fi
  14054. fi
  14055. done
  14056. else
  14057. GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
  14058. GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
  14059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14060. $as_echo "yes" >&6; }
  14061. have_gnutls_pkgcfg='yes'
  14062. SAVE_CPPFLAGS="$CPPFLAGS"
  14063. SAVE_CFLAGS="$CFLAGS"
  14064. SAVE_LDFLAGS="$LDFLAGS"
  14065. SAVE_LIBS="$LIBS"
  14066. CPPFLAGS="$GNUTLS_CFLAGS $CPPFLAGS"
  14067. CFLAGS="$GNUTLS_CFLAGS $CFLAGS"
  14068. LDFLAGS="$GNUTLS_LIBS $LDFLAGS"
  14069. LIBS="$LIBS $GNUTLS_LIBS"
  14070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GnuTLS is usable" >&5
  14071. $as_echo_n "checking whether GnuTLS is usable... " >&6; }
  14072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14073. /* end confdefs.h. */
  14074. #include <gnutls/gnutls.h>
  14075. int
  14076. main ()
  14077. {
  14078. gnutls_session_t session;
  14079. gnutls_priority_t priorities;
  14080. gnutls_global_init();
  14081. gnutls_priority_init(&priorities, "NORMAL", NULL);
  14082. gnutls_init(&session, GNUTLS_SERVER);
  14083. gnutls_priority_set(session, priorities);
  14084. ;
  14085. return 0;
  14086. }
  14087. _ACEOF
  14088. if ac_fn_c_try_link "$LINENO"; then :
  14089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14090. $as_echo "yes" >&6; }
  14091. have_gnutls=yes
  14092. GNUTLS_CPPLAGS="$GNUTLS_CFLAGS"
  14093. GNUTLS_LDFLAGS="$GNUTLS_LIBS"
  14094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_privkey_import_x509_raw()" >&5
  14095. $as_echo_n "checking for gnutls_privkey_import_x509_raw()... " >&6; }
  14096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14097. /* end confdefs.h. */
  14098. #include <gnutls/gnutls.h>
  14099. int
  14100. main ()
  14101. {
  14102. gnutls_datum_t data;
  14103. gnutls_privkey_t key;
  14104. gnutls_load_file("key.pem", &data);
  14105. gnutls_privkey_import_x509_raw(key, &data, GNUTLS_X509_FMT_PEM, NULL, 0);
  14106. gnutls_free(data.data);
  14107. ;
  14108. return 0;
  14109. }
  14110. _ACEOF
  14111. if ac_fn_c_try_link "$LINENO"; then :
  14112. have_gnutls_sni=yes
  14113. else
  14114. have_gnutls_sni=no
  14115. fi
  14116. rm -f core conftest.err conftest.$ac_objext \
  14117. conftest$ac_exeext conftest.$ac_ext
  14118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gnutls_sni" >&5
  14119. $as_echo "$have_gnutls_sni" >&6; }
  14120. else
  14121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14122. $as_echo "no" >&6; }
  14123. have_gnutls=no
  14124. fi
  14125. rm -f core conftest.err conftest.$ac_objext \
  14126. conftest$ac_exeext conftest.$ac_ext
  14127. if test "x$have_gnutls" != "xyes"; then :
  14128. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config reports that GnuTLS is present, but GnuTLS can't be used" >&5
  14129. $as_echo "$as_me: WARNING: pkg-config reports that GnuTLS is present, but GnuTLS can't be used" >&2;}
  14130. fi
  14131. CPPFLAGS="$SAVE_CPPFLAGS"
  14132. CFLAGS="$SAVE_CFLAGS"
  14133. LDFLAGS="$SAVE_LDFLAGS"
  14134. LIBS="$SAVE_LIBS"
  14135. fi
  14136. fi
  14137. if test "x$have_gnutls" != "xyes" && test "x$with_gnutls" = "xyes"; then :
  14138. as_fn_error $? "can't find usable libgnutls" "$LINENO" 5
  14139. fi
  14140. if test "x$have_gnutls" = "xyes"; then
  14141. HAVE_GNUTLS_TRUE=
  14142. HAVE_GNUTLS_FALSE='#'
  14143. else
  14144. HAVE_GNUTLS_TRUE='#'
  14145. HAVE_GNUTLS_FALSE=
  14146. fi
  14147. if test "x$have_gnutls_sni" = "xyes"; then
  14148. HAVE_GNUTLS_SNI_TRUE=
  14149. HAVE_GNUTLS_SNI_FALSE='#'
  14150. else
  14151. HAVE_GNUTLS_SNI_TRUE='#'
  14152. HAVE_GNUTLS_SNI_FALSE=
  14153. fi
  14154. # optional: HTTPS support. Enabled by default
  14155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support HTTPS" >&5
  14156. $as_echo_n "checking whether to support HTTPS... " >&6; }
  14157. # Check whether --enable-https was given.
  14158. if test "${enable_https+set}" = set; then :
  14159. enableval=$enable_https; enable_https=${enableval}
  14160. fi
  14161. if test "x$enable_https" != "xno"
  14162. then
  14163. if test "x$have_gnutls" = "xyes" && test "x$have_gcrypt" = "xyes"; then :
  14164. $as_echo "#define HTTPS_SUPPORT 1" >>confdefs.h
  14165. MHD_LIB_CPPFLAGS="$MHD_LIB_CPPFLAGS $LIBGCRYPT_CFLAGS $GNUTLS_CPPFLAGS"
  14166. MHD_LIB_CFLAGS="$MHD_LIB_CFLAGS $LIBGCRYPT_CFLAGS $GNUTLS_CFLAGS"
  14167. MHD_LIB_LDFLAGS="$MHD_LIB_LDFLAGS $GNUTLS_LDFLAGS"
  14168. MHD_LIBDEPS="$GNUTLS_LIBS $LIBGCRYPT_LIBS $MHD_LIBDEPS"
  14169. enable_https=yes
  14170. MSG_HTTPS="yes (using libgnutls and libgcrypt)"
  14171. else
  14172. if test "x$have_gnutls" = "xyes"; then :
  14173. crypt_missing="libgrypt"
  14174. elif test "x$have_gcrypt" = "xyes"; then :
  14175. crypt_missing="libgnutls"
  14176. else
  14177. crypt_missing="libgrypt and libgnutls"
  14178. fi
  14179. if test "x$enable_https" = "xyes" ; then :
  14180. as_fn_error $? "HTTPS support cannot be enabled without $crypt_missing." "$LINENO" 5
  14181. fi
  14182. $as_echo "#define HTTPS_SUPPORT 0" >>confdefs.h
  14183. enable_https=no
  14184. MSG_HTTPS="no (lacking $crypt_missing)"
  14185. fi
  14186. else
  14187. $as_echo "#define HTTPS_SUPPORT 0" >>confdefs.h
  14188. MSG_HTTPS="no (disabled)"
  14189. fi
  14190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSG_HTTPS" >&5
  14191. $as_echo "$MSG_HTTPS" >&6; }
  14192. if test "x$enable_https" = "xyes"; then
  14193. ENABLE_HTTPS_TRUE=
  14194. ENABLE_HTTPS_FALSE='#'
  14195. else
  14196. ENABLE_HTTPS_TRUE='#'
  14197. ENABLE_HTTPS_FALSE=
  14198. fi
  14199. # optional: HTTP Basic Auth support. Enabled by default
  14200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support HTTP basic authentication" >&5
  14201. $as_echo_n "checking whether to support HTTP basic authentication... " >&6; }
  14202. # Check whether --enable-bauth was given.
  14203. if test "${enable_bauth+set}" = set; then :
  14204. enableval=$enable_bauth; enable_bauth=${enableval}
  14205. else
  14206. enable_bauth=yes
  14207. fi
  14208. if test "x$enable_bauth" != "xno"
  14209. then
  14210. enable_bauth=yes
  14211. $as_echo "#define BAUTH_SUPPORT 1" >>confdefs.h
  14212. else
  14213. $as_echo "#define BAUTH_SUPPORT 0" >>confdefs.h
  14214. fi
  14215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_bauth" >&5
  14216. $as_echo "$enable_bauth" >&6; }
  14217. if test "x$enable_bauth" != "xno"; then
  14218. ENABLE_BAUTH_TRUE=
  14219. ENABLE_BAUTH_FALSE='#'
  14220. else
  14221. ENABLE_BAUTH_TRUE='#'
  14222. ENABLE_BAUTH_FALSE=
  14223. fi
  14224. # optional: HTTP Digest Auth support. Enabled by default
  14225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support HTTP digest authentication" >&5
  14226. $as_echo_n "checking whether to support HTTP digest authentication... " >&6; }
  14227. # Check whether --enable-dauth was given.
  14228. if test "${enable_dauth+set}" = set; then :
  14229. enableval=$enable_dauth; enable_dauth=${enableval}
  14230. else
  14231. enable_dauth=yes
  14232. fi
  14233. if test "x$enable_dauth" != "xno"
  14234. then
  14235. enable_dauth=yes
  14236. $as_echo "#define DAUTH_SUPPORT 1" >>confdefs.h
  14237. else
  14238. $as_echo "#define DAUTH_SUPPORT 0" >>confdefs.h
  14239. fi
  14240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dauth" >&5
  14241. $as_echo "$enable_dauth" >&6; }
  14242. if test "x$enable_dauth" != "xno"; then
  14243. ENABLE_DAUTH_TRUE=
  14244. ENABLE_DAUTH_FALSE='#'
  14245. else
  14246. ENABLE_DAUTH_TRUE='#'
  14247. ENABLE_DAUTH_FALSE=
  14248. fi
  14249. MHD_LIB_LDFLAGS="$MHD_LIB_LDFLAGS -export-dynamic -no-undefined"
  14250. # gcov compilation
  14251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile with support for code coverage analysis" >&5
  14252. $as_echo_n "checking whether to compile with support for code coverage analysis... " >&6; }
  14253. # Check whether --enable-coverage was given.
  14254. if test "${enable_coverage+set}" = set; then :
  14255. enableval=$enable_coverage; use_gcov=${enableval}
  14256. else
  14257. use_gcov=no
  14258. fi
  14259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gcov" >&5
  14260. $as_echo "$use_gcov" >&6; }
  14261. if test "x$use_gcov" = "xyes"; then
  14262. USE_COVERAGE_TRUE=
  14263. USE_COVERAGE_FALSE='#'
  14264. else
  14265. USE_COVERAGE_TRUE='#'
  14266. USE_COVERAGE_FALSE=
  14267. fi
  14268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the number of available CPUs" >&5
  14269. $as_echo_n "checking the number of available CPUs... " >&6; }
  14270. CPU_COUNT="0"
  14271. case $host_os in #(
  14272. *darwin*) :
  14273. if test -x /usr/sbin/sysctl; then :
  14274. sysctl_a=`/usr/sbin/sysctl -a 2>/dev/null| grep -c hw.cpu`
  14275. if test sysctl_a; then :
  14276. CPU_COUNT=`/usr/sbin/sysctl -n hw.ncpu`
  14277. fi
  14278. fi ;; #(
  14279. *linux*) :
  14280. if test "x$CPU_COUNT" = "x0" -a -e /proc/cpuinfo; then :
  14281. if test "x$CPU_COUNT" = "x0" -a -e /proc/cpuinfo; then :
  14282. CPU_COUNT=`$EGREP -c '^processor' /proc/cpuinfo`
  14283. fi
  14284. fi ;; #(
  14285. *mingw*) :
  14286. if test -n "$NUMBER_OF_PROCESSORS"; then :
  14287. CPU_COUNT="$NUMBER_OF_PROCESSORS"
  14288. fi ;; #(
  14289. *cygwin*) :
  14290. if test -n "$NUMBER_OF_PROCESSORS"; then :
  14291. CPU_COUNT="$NUMBER_OF_PROCESSORS"
  14292. fi
  14293. ;; #(
  14294. *) :
  14295. ;;
  14296. esac
  14297. if test "x$CPU_COUNT" = "x0"; then :
  14298. CPU_COUNT="1"
  14299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to detect (assuming 1) " >&5
  14300. $as_echo "unable to detect (assuming 1) " >&6; }
  14301. else
  14302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT " >&5
  14303. $as_echo "$CPU_COUNT " >&6; }
  14304. fi
  14305. # for pkg-config
  14306. if test "x$enable_https" = "xyes" && test "x$have_gnutls_pkgcfg" = "xyes" ; then :
  14307. # remove GnuTLS from private libs in .pc file as it defined in Requires.private
  14308. MHD_REQ_PRIVATE='gnutls'
  14309. MHD_LIBDEPS_PKGCFG="${MHD_LIBDEPS//$GNUTLS_LIBS/}"
  14310. else
  14311. MHD_REQ_PRIVATE=''
  14312. MHD_LIBDEPS_PKGCFG="$MHD_LIBDEPS"
  14313. fi
  14314. ac_config_files="$ac_config_files libmicrohttpd.pc libmicrospdy.pc w32/VS2013/microhttpd_dll_res_vc.rc Makefile contrib/Makefile doc/Makefile doc/doxygen/Makefile doc/examples/Makefile m4/Makefile src/Makefile src/include/Makefile src/platform/Makefile src/microhttpd/Makefile src/microspdy/Makefile src/spdy2http/Makefile src/examples/Makefile src/testcurl/Makefile src/testcurl/https/Makefile src/testspdy/Makefile src/testzzuf/Makefile"
  14315. cat >confcache <<\_ACEOF
  14316. # This file is a shell script that caches the results of configure
  14317. # tests run on this system so they can be shared between configure
  14318. # scripts and configure runs, see configure's option --config-cache.
  14319. # It is not useful on other systems. If it contains results you don't
  14320. # want to keep, you may remove or edit it.
  14321. #
  14322. # config.status only pays attention to the cache file if you give it
  14323. # the --recheck option to rerun configure.
  14324. #
  14325. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14326. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14327. # following values.
  14328. _ACEOF
  14329. # The following way of writing the cache mishandles newlines in values,
  14330. # but we know of no workaround that is simple, portable, and efficient.
  14331. # So, we kill variables containing newlines.
  14332. # Ultrix sh set writes to stderr and can't be redirected directly,
  14333. # and sets the high bit in the cache file unless we assign to the vars.
  14334. (
  14335. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14336. eval ac_val=\$$ac_var
  14337. case $ac_val in #(
  14338. *${as_nl}*)
  14339. case $ac_var in #(
  14340. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14341. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14342. esac
  14343. case $ac_var in #(
  14344. _ | IFS | as_nl) ;; #(
  14345. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14346. *) { eval $ac_var=; unset $ac_var;} ;;
  14347. esac ;;
  14348. esac
  14349. done
  14350. (set) 2>&1 |
  14351. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14352. *${as_nl}ac_space=\ *)
  14353. # `set' does not quote correctly, so add quotes: double-quote
  14354. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14355. sed -n \
  14356. "s/'/'\\\\''/g;
  14357. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14358. ;; #(
  14359. *)
  14360. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14361. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14362. ;;
  14363. esac |
  14364. sort
  14365. ) |
  14366. sed '
  14367. /^ac_cv_env_/b end
  14368. t clear
  14369. :clear
  14370. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14371. t end
  14372. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14373. :end' >>confcache
  14374. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14375. if test -w "$cache_file"; then
  14376. if test "x$cache_file" != "x/dev/null"; then
  14377. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14378. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14379. if test ! -f "$cache_file" || test -h "$cache_file"; then
  14380. cat confcache >"$cache_file"
  14381. else
  14382. case $cache_file in #(
  14383. */* | ?:*)
  14384. mv -f confcache "$cache_file"$$ &&
  14385. mv -f "$cache_file"$$ "$cache_file" ;; #(
  14386. *)
  14387. mv -f confcache "$cache_file" ;;
  14388. esac
  14389. fi
  14390. fi
  14391. else
  14392. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14393. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14394. fi
  14395. fi
  14396. rm -f confcache
  14397. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14398. # Let make expand exec_prefix.
  14399. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14400. DEFS=-DHAVE_CONFIG_H
  14401. ac_libobjs=
  14402. ac_ltlibobjs=
  14403. U=
  14404. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14405. # 1. Remove the extension, and $U if already installed.
  14406. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14407. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14408. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14409. # will be set to the directory where LIBOBJS objects are built.
  14410. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14411. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14412. done
  14413. LIBOBJS=$ac_libobjs
  14414. LTLIBOBJS=$ac_ltlibobjs
  14415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  14416. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  14417. if test -n "$am_sleep_pid"; then
  14418. # Hide warnings about reused PIDs.
  14419. wait $am_sleep_pid 2>/dev/null
  14420. fi
  14421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  14422. $as_echo "done" >&6; }
  14423. if test -n "$EXEEXT"; then
  14424. am__EXEEXT_TRUE=
  14425. am__EXEEXT_FALSE='#'
  14426. else
  14427. am__EXEEXT_TRUE='#'
  14428. am__EXEEXT_FALSE=
  14429. fi
  14430. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14431. as_fn_error $? "conditional \"AMDEP\" was never defined.
  14432. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14433. fi
  14434. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14435. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14436. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14437. fi
  14438. if test -z "${HAVE_POSIX_THREADS_TRUE}" && test -z "${HAVE_POSIX_THREADS_FALSE}"; then
  14439. as_fn_error $? "conditional \"HAVE_POSIX_THREADS\" was never defined.
  14440. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14441. fi
  14442. if test -z "${USE_POSIX_THREADS_TRUE}" && test -z "${USE_POSIX_THREADS_FALSE}"; then
  14443. as_fn_error $? "conditional \"USE_POSIX_THREADS\" was never defined.
  14444. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14445. fi
  14446. if test -z "${USE_W32_THREADS_TRUE}" && test -z "${USE_W32_THREADS_FALSE}"; then
  14447. as_fn_error $? "conditional \"USE_W32_THREADS\" was never defined.
  14448. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14449. fi
  14450. if test -z "${HAVE_W32_TRUE}" && test -z "${HAVE_W32_FALSE}"; then
  14451. as_fn_error $? "conditional \"HAVE_W32\" was never defined.
  14452. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14453. fi
  14454. if test -z "${W32_SHARED_LIB_EXP_TRUE}" && test -z "${W32_SHARED_LIB_EXP_FALSE}"; then
  14455. as_fn_error $? "conditional \"W32_SHARED_LIB_EXP\" was never defined.
  14456. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14457. fi
  14458. if test -z "${USE_MS_LIB_TOOL_TRUE}" && test -z "${USE_MS_LIB_TOOL_FALSE}"; then
  14459. as_fn_error $? "conditional \"USE_MS_LIB_TOOL\" was never defined.
  14460. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14461. fi
  14462. if test -z "${HAVE_CURL_BINARY_TRUE}" && test -z "${HAVE_CURL_BINARY_FALSE}"; then
  14463. as_fn_error $? "conditional \"HAVE_CURL_BINARY\" was never defined.
  14464. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14465. fi
  14466. if test -z "${HAVE_MAKEINFO_BINARY_TRUE}" && test -z "${HAVE_MAKEINFO_BINARY_FALSE}"; then
  14467. as_fn_error $? "conditional \"HAVE_MAKEINFO_BINARY\" was never defined.
  14468. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14469. fi
  14470. if test -z "${W32_STATIC_LIB_TRUE}" && test -z "${W32_STATIC_LIB_FALSE}"; then
  14471. as_fn_error $? "conditional \"W32_STATIC_LIB\" was never defined.
  14472. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14473. fi
  14474. if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
  14475. as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
  14476. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14477. fi
  14478. if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
  14479. as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined.
  14480. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14481. fi
  14482. if test -z "${HAVE_TSEARCH_TRUE}" && test -z "${HAVE_TSEARCH_FALSE}"; then
  14483. as_fn_error $? "conditional \"HAVE_TSEARCH\" was never defined.
  14484. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14485. fi
  14486. if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then
  14487. as_fn_error $? "conditional \"HAVE_CURL\" was never defined.
  14488. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14489. fi
  14490. if test -z "${HAVE_MAGIC_TRUE}" && test -z "${HAVE_MAGIC_FALSE}"; then
  14491. as_fn_error $? "conditional \"HAVE_MAGIC\" was never defined.
  14492. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14493. fi
  14494. if test -z "${HAVE_MAGIC_TRUE}" && test -z "${HAVE_MAGIC_FALSE}"; then
  14495. as_fn_error $? "conditional \"HAVE_MAGIC\" was never defined.
  14496. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14497. fi
  14498. if test -z "${HAVE_MAGIC_TRUE}" && test -z "${HAVE_MAGIC_FALSE}"; then
  14499. as_fn_error $? "conditional \"HAVE_MAGIC\" was never defined.
  14500. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14501. fi
  14502. if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then
  14503. as_fn_error $? "conditional \"HAVE_OPENSSL\" was never defined.
  14504. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14505. fi
  14506. if test -z "${ENABLE_SPDY_TRUE}" && test -z "${ENABLE_SPDY_FALSE}"; then
  14507. as_fn_error $? "conditional \"ENABLE_SPDY\" was never defined.
  14508. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14509. fi
  14510. if test -z "${HAVE_SPDYLAY_TRUE}" && test -z "${HAVE_SPDYLAY_FALSE}"; then
  14511. as_fn_error $? "conditional \"HAVE_SPDYLAY\" was never defined.
  14512. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14513. fi
  14514. if test -z "${HAVE_POSTPROCESSOR_TRUE}" && test -z "${HAVE_POSTPROCESSOR_FALSE}"; then
  14515. as_fn_error $? "conditional \"HAVE_POSTPROCESSOR\" was never defined.
  14516. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14517. fi
  14518. if test -z "${HAVE_ZZUF_TRUE}" && test -z "${HAVE_ZZUF_FALSE}"; then
  14519. as_fn_error $? "conditional \"HAVE_ZZUF\" was never defined.
  14520. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14521. fi
  14522. if test -z "${HAVE_SOCAT_TRUE}" && test -z "${HAVE_SOCAT_FALSE}"; then
  14523. as_fn_error $? "conditional \"HAVE_SOCAT\" was never defined.
  14524. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14525. fi
  14526. if test -z "${HAVE_GNUTLS_TRUE}" && test -z "${HAVE_GNUTLS_FALSE}"; then
  14527. as_fn_error $? "conditional \"HAVE_GNUTLS\" was never defined.
  14528. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14529. fi
  14530. if test -z "${HAVE_GNUTLS_SNI_TRUE}" && test -z "${HAVE_GNUTLS_SNI_FALSE}"; then
  14531. as_fn_error $? "conditional \"HAVE_GNUTLS_SNI\" was never defined.
  14532. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14533. fi
  14534. if test -z "${ENABLE_HTTPS_TRUE}" && test -z "${ENABLE_HTTPS_FALSE}"; then
  14535. as_fn_error $? "conditional \"ENABLE_HTTPS\" was never defined.
  14536. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14537. fi
  14538. if test -z "${ENABLE_BAUTH_TRUE}" && test -z "${ENABLE_BAUTH_FALSE}"; then
  14539. as_fn_error $? "conditional \"ENABLE_BAUTH\" was never defined.
  14540. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14541. fi
  14542. if test -z "${ENABLE_DAUTH_TRUE}" && test -z "${ENABLE_DAUTH_FALSE}"; then
  14543. as_fn_error $? "conditional \"ENABLE_DAUTH\" was never defined.
  14544. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14545. fi
  14546. if test -z "${USE_COVERAGE_TRUE}" && test -z "${USE_COVERAGE_FALSE}"; then
  14547. as_fn_error $? "conditional \"USE_COVERAGE\" was never defined.
  14548. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14549. fi
  14550. : "${CONFIG_STATUS=./config.status}"
  14551. ac_write_fail=0
  14552. ac_clean_files_save=$ac_clean_files
  14553. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14554. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14555. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14556. as_write_fail=0
  14557. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14558. #! $SHELL
  14559. # Generated by $as_me.
  14560. # Run this file to recreate the current configuration.
  14561. # Compiler output produced by configure, useful for debugging
  14562. # configure, is in config.log if it exists.
  14563. debug=false
  14564. ac_cs_recheck=false
  14565. ac_cs_silent=false
  14566. SHELL=\${CONFIG_SHELL-$SHELL}
  14567. export SHELL
  14568. _ASEOF
  14569. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14570. ## -------------------- ##
  14571. ## M4sh Initialization. ##
  14572. ## -------------------- ##
  14573. # Be more Bourne compatible
  14574. DUALCASE=1; export DUALCASE # for MKS sh
  14575. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14576. emulate sh
  14577. NULLCMD=:
  14578. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14579. # is contrary to our usage. Disable this feature.
  14580. alias -g '${1+"$@"}'='"$@"'
  14581. setopt NO_GLOB_SUBST
  14582. else
  14583. case `(set -o) 2>/dev/null` in #(
  14584. *posix*) :
  14585. set -o posix ;; #(
  14586. *) :
  14587. ;;
  14588. esac
  14589. fi
  14590. as_nl='
  14591. '
  14592. export as_nl
  14593. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14594. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14595. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14596. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14597. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14598. # but without wasting forks for bash or zsh.
  14599. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14600. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14601. as_echo='print -r --'
  14602. as_echo_n='print -rn --'
  14603. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14604. as_echo='printf %s\n'
  14605. as_echo_n='printf %s'
  14606. else
  14607. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14608. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14609. as_echo_n='/usr/ucb/echo -n'
  14610. else
  14611. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14612. as_echo_n_body='eval
  14613. arg=$1;
  14614. case $arg in #(
  14615. *"$as_nl"*)
  14616. expr "X$arg" : "X\\(.*\\)$as_nl";
  14617. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14618. esac;
  14619. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14620. '
  14621. export as_echo_n_body
  14622. as_echo_n='sh -c $as_echo_n_body as_echo'
  14623. fi
  14624. export as_echo_body
  14625. as_echo='sh -c $as_echo_body as_echo'
  14626. fi
  14627. # The user is always right.
  14628. if test "${PATH_SEPARATOR+set}" != set; then
  14629. PATH_SEPARATOR=:
  14630. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14631. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14632. PATH_SEPARATOR=';'
  14633. }
  14634. fi
  14635. # IFS
  14636. # We need space, tab and new line, in precisely that order. Quoting is
  14637. # there to prevent editors from complaining about space-tab.
  14638. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14639. # splitting by setting IFS to empty value.)
  14640. IFS=" "" $as_nl"
  14641. # Find who we are. Look in the path if we contain no directory separator.
  14642. as_myself=
  14643. case $0 in #((
  14644. *[\\/]* ) as_myself=$0 ;;
  14645. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14646. for as_dir in $PATH
  14647. do
  14648. IFS=$as_save_IFS
  14649. test -z "$as_dir" && as_dir=.
  14650. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14651. done
  14652. IFS=$as_save_IFS
  14653. ;;
  14654. esac
  14655. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14656. # in which case we are not to be found in the path.
  14657. if test "x$as_myself" = x; then
  14658. as_myself=$0
  14659. fi
  14660. if test ! -f "$as_myself"; then
  14661. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14662. exit 1
  14663. fi
  14664. # Unset variables that we do not need and which cause bugs (e.g. in
  14665. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14666. # suppresses any "Segmentation fault" message there. '((' could
  14667. # trigger a bug in pdksh 5.2.14.
  14668. for as_var in BASH_ENV ENV MAIL MAILPATH
  14669. do eval test x\${$as_var+set} = xset \
  14670. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14671. done
  14672. PS1='$ '
  14673. PS2='> '
  14674. PS4='+ '
  14675. # NLS nuisances.
  14676. LC_ALL=C
  14677. export LC_ALL
  14678. LANGUAGE=C
  14679. export LANGUAGE
  14680. # CDPATH.
  14681. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14682. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14683. # ----------------------------------------
  14684. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14685. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14686. # script with STATUS, using 1 if that was 0.
  14687. as_fn_error ()
  14688. {
  14689. as_status=$1; test $as_status -eq 0 && as_status=1
  14690. if test "$4"; then
  14691. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14692. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14693. fi
  14694. $as_echo "$as_me: error: $2" >&2
  14695. as_fn_exit $as_status
  14696. } # as_fn_error
  14697. # as_fn_set_status STATUS
  14698. # -----------------------
  14699. # Set $? to STATUS, without forking.
  14700. as_fn_set_status ()
  14701. {
  14702. return $1
  14703. } # as_fn_set_status
  14704. # as_fn_exit STATUS
  14705. # -----------------
  14706. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14707. as_fn_exit ()
  14708. {
  14709. set +e
  14710. as_fn_set_status $1
  14711. exit $1
  14712. } # as_fn_exit
  14713. # as_fn_unset VAR
  14714. # ---------------
  14715. # Portably unset VAR.
  14716. as_fn_unset ()
  14717. {
  14718. { eval $1=; unset $1;}
  14719. }
  14720. as_unset=as_fn_unset
  14721. # as_fn_append VAR VALUE
  14722. # ----------------------
  14723. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14724. # advantage of any shell optimizations that allow amortized linear growth over
  14725. # repeated appends, instead of the typical quadratic growth present in naive
  14726. # implementations.
  14727. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14728. eval 'as_fn_append ()
  14729. {
  14730. eval $1+=\$2
  14731. }'
  14732. else
  14733. as_fn_append ()
  14734. {
  14735. eval $1=\$$1\$2
  14736. }
  14737. fi # as_fn_append
  14738. # as_fn_arith ARG...
  14739. # ------------------
  14740. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14741. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14742. # must be portable across $(()) and expr.
  14743. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14744. eval 'as_fn_arith ()
  14745. {
  14746. as_val=$(( $* ))
  14747. }'
  14748. else
  14749. as_fn_arith ()
  14750. {
  14751. as_val=`expr "$@" || test $? -eq 1`
  14752. }
  14753. fi # as_fn_arith
  14754. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14755. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14756. as_expr=expr
  14757. else
  14758. as_expr=false
  14759. fi
  14760. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14761. as_basename=basename
  14762. else
  14763. as_basename=false
  14764. fi
  14765. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14766. as_dirname=dirname
  14767. else
  14768. as_dirname=false
  14769. fi
  14770. as_me=`$as_basename -- "$0" ||
  14771. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14772. X"$0" : 'X\(//\)$' \| \
  14773. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14774. $as_echo X/"$0" |
  14775. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14776. s//\1/
  14777. q
  14778. }
  14779. /^X\/\(\/\/\)$/{
  14780. s//\1/
  14781. q
  14782. }
  14783. /^X\/\(\/\).*/{
  14784. s//\1/
  14785. q
  14786. }
  14787. s/.*/./; q'`
  14788. # Avoid depending upon Character Ranges.
  14789. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14790. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14791. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14792. as_cr_digits='0123456789'
  14793. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14794. ECHO_C= ECHO_N= ECHO_T=
  14795. case `echo -n x` in #(((((
  14796. -n*)
  14797. case `echo 'xy\c'` in
  14798. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14799. xy) ECHO_C='\c';;
  14800. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14801. ECHO_T=' ';;
  14802. esac;;
  14803. *)
  14804. ECHO_N='-n';;
  14805. esac
  14806. rm -f conf$$ conf$$.exe conf$$.file
  14807. if test -d conf$$.dir; then
  14808. rm -f conf$$.dir/conf$$.file
  14809. else
  14810. rm -f conf$$.dir
  14811. mkdir conf$$.dir 2>/dev/null
  14812. fi
  14813. if (echo >conf$$.file) 2>/dev/null; then
  14814. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14815. as_ln_s='ln -s'
  14816. # ... but there are two gotchas:
  14817. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14818. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14819. # In both cases, we have to default to `cp -pR'.
  14820. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14821. as_ln_s='cp -pR'
  14822. elif ln conf$$.file conf$$ 2>/dev/null; then
  14823. as_ln_s=ln
  14824. else
  14825. as_ln_s='cp -pR'
  14826. fi
  14827. else
  14828. as_ln_s='cp -pR'
  14829. fi
  14830. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14831. rmdir conf$$.dir 2>/dev/null
  14832. # as_fn_mkdir_p
  14833. # -------------
  14834. # Create "$as_dir" as a directory, including parents if necessary.
  14835. as_fn_mkdir_p ()
  14836. {
  14837. case $as_dir in #(
  14838. -*) as_dir=./$as_dir;;
  14839. esac
  14840. test -d "$as_dir" || eval $as_mkdir_p || {
  14841. as_dirs=
  14842. while :; do
  14843. case $as_dir in #(
  14844. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14845. *) as_qdir=$as_dir;;
  14846. esac
  14847. as_dirs="'$as_qdir' $as_dirs"
  14848. as_dir=`$as_dirname -- "$as_dir" ||
  14849. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14850. X"$as_dir" : 'X\(//\)[^/]' \| \
  14851. X"$as_dir" : 'X\(//\)$' \| \
  14852. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14853. $as_echo X"$as_dir" |
  14854. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14855. s//\1/
  14856. q
  14857. }
  14858. /^X\(\/\/\)[^/].*/{
  14859. s//\1/
  14860. q
  14861. }
  14862. /^X\(\/\/\)$/{
  14863. s//\1/
  14864. q
  14865. }
  14866. /^X\(\/\).*/{
  14867. s//\1/
  14868. q
  14869. }
  14870. s/.*/./; q'`
  14871. test -d "$as_dir" && break
  14872. done
  14873. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14874. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14875. } # as_fn_mkdir_p
  14876. if mkdir -p . 2>/dev/null; then
  14877. as_mkdir_p='mkdir -p "$as_dir"'
  14878. else
  14879. test -d ./-p && rmdir ./-p
  14880. as_mkdir_p=false
  14881. fi
  14882. # as_fn_executable_p FILE
  14883. # -----------------------
  14884. # Test if FILE is an executable regular file.
  14885. as_fn_executable_p ()
  14886. {
  14887. test -f "$1" && test -x "$1"
  14888. } # as_fn_executable_p
  14889. as_test_x='test -x'
  14890. as_executable_p=as_fn_executable_p
  14891. # Sed expression to map a string onto a valid CPP name.
  14892. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14893. # Sed expression to map a string onto a valid variable name.
  14894. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14895. exec 6>&1
  14896. ## ----------------------------------- ##
  14897. ## Main body of $CONFIG_STATUS script. ##
  14898. ## ----------------------------------- ##
  14899. _ASEOF
  14900. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14901. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14902. # Save the log message, to keep $0 and so on meaningful, and to
  14903. # report actual input values of CONFIG_FILES etc. instead of their
  14904. # values after options handling.
  14905. ac_log="
  14906. This file was extended by libmicrohttpd $as_me 0.9.42, which was
  14907. generated by GNU Autoconf 2.69. Invocation command line was
  14908. CONFIG_FILES = $CONFIG_FILES
  14909. CONFIG_HEADERS = $CONFIG_HEADERS
  14910. CONFIG_LINKS = $CONFIG_LINKS
  14911. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14912. $ $0 $@
  14913. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14914. "
  14915. _ACEOF
  14916. case $ac_config_files in *"
  14917. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14918. esac
  14919. case $ac_config_headers in *"
  14920. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14921. esac
  14922. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14923. # Files that config.status was made for.
  14924. config_files="$ac_config_files"
  14925. config_headers="$ac_config_headers"
  14926. config_commands="$ac_config_commands"
  14927. _ACEOF
  14928. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14929. ac_cs_usage="\
  14930. \`$as_me' instantiates files and other configuration actions
  14931. from templates according to the current configuration. Unless the files
  14932. and actions are specified as TAGs, all are instantiated by default.
  14933. Usage: $0 [OPTION]... [TAG]...
  14934. -h, --help print this help, then exit
  14935. -V, --version print version number and configuration settings, then exit
  14936. --config print configuration, then exit
  14937. -q, --quiet, --silent
  14938. do not print progress messages
  14939. -d, --debug don't remove temporary files
  14940. --recheck update $as_me by reconfiguring in the same conditions
  14941. --file=FILE[:TEMPLATE]
  14942. instantiate the configuration file FILE
  14943. --header=FILE[:TEMPLATE]
  14944. instantiate the configuration header FILE
  14945. Configuration files:
  14946. $config_files
  14947. Configuration headers:
  14948. $config_headers
  14949. Configuration commands:
  14950. $config_commands
  14951. Report bugs to <libmicrohttpd@gnu.org>."
  14952. _ACEOF
  14953. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14954. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14955. ac_cs_version="\\
  14956. libmicrohttpd config.status 0.9.42
  14957. configured by $0, generated by GNU Autoconf 2.69,
  14958. with options \\"\$ac_cs_config\\"
  14959. Copyright (C) 2012 Free Software Foundation, Inc.
  14960. This config.status script is free software; the Free Software Foundation
  14961. gives unlimited permission to copy, distribute and modify it."
  14962. ac_pwd='$ac_pwd'
  14963. srcdir='$srcdir'
  14964. INSTALL='$INSTALL'
  14965. MKDIR_P='$MKDIR_P'
  14966. AWK='$AWK'
  14967. test -n "\$AWK" || AWK=awk
  14968. _ACEOF
  14969. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14970. # The default lists apply if the user does not specify any file.
  14971. ac_need_defaults=:
  14972. while test $# != 0
  14973. do
  14974. case $1 in
  14975. --*=?*)
  14976. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14977. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14978. ac_shift=:
  14979. ;;
  14980. --*=)
  14981. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14982. ac_optarg=
  14983. ac_shift=:
  14984. ;;
  14985. *)
  14986. ac_option=$1
  14987. ac_optarg=$2
  14988. ac_shift=shift
  14989. ;;
  14990. esac
  14991. case $ac_option in
  14992. # Handling of the options.
  14993. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14994. ac_cs_recheck=: ;;
  14995. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14996. $as_echo "$ac_cs_version"; exit ;;
  14997. --config | --confi | --conf | --con | --co | --c )
  14998. $as_echo "$ac_cs_config"; exit ;;
  14999. --debug | --debu | --deb | --de | --d | -d )
  15000. debug=: ;;
  15001. --file | --fil | --fi | --f )
  15002. $ac_shift
  15003. case $ac_optarg in
  15004. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15005. '') as_fn_error $? "missing file argument" ;;
  15006. esac
  15007. as_fn_append CONFIG_FILES " '$ac_optarg'"
  15008. ac_need_defaults=false;;
  15009. --header | --heade | --head | --hea )
  15010. $ac_shift
  15011. case $ac_optarg in
  15012. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15013. esac
  15014. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  15015. ac_need_defaults=false;;
  15016. --he | --h)
  15017. # Conflict between --help and --header
  15018. as_fn_error $? "ambiguous option: \`$1'
  15019. Try \`$0 --help' for more information.";;
  15020. --help | --hel | -h )
  15021. $as_echo "$ac_cs_usage"; exit ;;
  15022. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15023. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  15024. ac_cs_silent=: ;;
  15025. # This is an error.
  15026. -*) as_fn_error $? "unrecognized option: \`$1'
  15027. Try \`$0 --help' for more information." ;;
  15028. *) as_fn_append ac_config_targets " $1"
  15029. ac_need_defaults=false ;;
  15030. esac
  15031. shift
  15032. done
  15033. ac_configure_extra_args=
  15034. if $ac_cs_silent; then
  15035. exec 6>/dev/null
  15036. ac_configure_extra_args="$ac_configure_extra_args --silent"
  15037. fi
  15038. _ACEOF
  15039. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15040. if \$ac_cs_recheck; then
  15041. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  15042. shift
  15043. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  15044. CONFIG_SHELL='$SHELL'
  15045. export CONFIG_SHELL
  15046. exec "\$@"
  15047. fi
  15048. _ACEOF
  15049. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15050. exec 5>>config.log
  15051. {
  15052. echo
  15053. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  15054. ## Running $as_me. ##
  15055. _ASBOX
  15056. $as_echo "$ac_log"
  15057. } >&5
  15058. _ACEOF
  15059. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15060. #
  15061. # INIT-COMMANDS
  15062. #
  15063. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  15064. # The HP-UX ksh and POSIX shell print the target directory to stdout
  15065. # if CDPATH is set.
  15066. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15067. sed_quote_subst='$sed_quote_subst'
  15068. double_quote_subst='$double_quote_subst'
  15069. delay_variable_subst='$delay_variable_subst'
  15070. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  15071. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  15072. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  15073. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  15074. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  15075. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  15076. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  15077. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  15078. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  15079. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  15080. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  15081. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  15082. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  15083. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  15084. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  15085. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  15086. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  15087. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  15088. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  15089. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  15090. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  15091. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  15092. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  15093. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  15094. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  15095. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  15096. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  15097. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  15098. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  15099. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  15100. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  15101. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  15102. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  15103. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  15104. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  15105. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  15106. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  15107. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  15108. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  15109. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  15110. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  15111. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  15112. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  15113. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  15114. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  15115. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  15116. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15117. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15118. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  15119. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  15120. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  15121. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  15122. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  15123. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  15124. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  15125. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  15126. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  15127. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15128. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  15129. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  15130. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  15131. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  15132. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  15133. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  15134. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  15135. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  15136. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  15137. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  15138. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  15139. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  15140. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  15141. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  15142. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  15143. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  15144. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  15145. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  15146. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15147. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  15148. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  15149. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  15150. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  15151. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  15152. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  15153. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15154. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  15155. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15156. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  15157. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15158. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  15159. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15160. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15161. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  15162. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  15163. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  15164. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  15165. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  15166. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15167. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  15168. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  15169. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  15170. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  15171. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  15172. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  15173. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  15174. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  15175. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  15176. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15177. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15178. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15179. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15180. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15181. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  15182. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15183. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  15184. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  15185. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  15186. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  15187. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  15188. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15189. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15190. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  15191. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  15192. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  15193. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  15194. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  15195. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  15196. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  15197. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  15198. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  15199. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  15200. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  15201. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  15202. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  15203. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  15204. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  15205. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  15206. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  15207. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  15208. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  15209. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  15210. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  15211. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  15212. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  15213. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  15214. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  15215. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  15216. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  15217. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  15218. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  15219. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  15220. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  15221. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  15222. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  15223. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  15224. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  15225. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  15226. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  15227. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  15228. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  15229. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  15230. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  15231. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  15232. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  15233. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  15234. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  15235. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  15236. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  15237. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  15238. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  15239. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  15240. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  15241. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  15242. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  15243. LTCC='$LTCC'
  15244. LTCFLAGS='$LTCFLAGS'
  15245. compiler='$compiler_DEFAULT'
  15246. # A function that is used when there is no print builtin or printf.
  15247. func_fallback_echo ()
  15248. {
  15249. eval 'cat <<_LTECHO_EOF
  15250. \$1
  15251. _LTECHO_EOF'
  15252. }
  15253. # Quote evaled strings.
  15254. for var in AS \
  15255. DLLTOOL \
  15256. OBJDUMP \
  15257. SHELL \
  15258. ECHO \
  15259. PATH_SEPARATOR \
  15260. SED \
  15261. GREP \
  15262. EGREP \
  15263. FGREP \
  15264. LD \
  15265. NM \
  15266. LN_S \
  15267. lt_SP2NL \
  15268. lt_NL2SP \
  15269. reload_flag \
  15270. deplibs_check_method \
  15271. file_magic_cmd \
  15272. file_magic_glob \
  15273. want_nocaseglob \
  15274. sharedlib_from_linklib_cmd \
  15275. AR \
  15276. AR_FLAGS \
  15277. archiver_list_spec \
  15278. STRIP \
  15279. RANLIB \
  15280. CC \
  15281. CFLAGS \
  15282. compiler \
  15283. lt_cv_sys_global_symbol_pipe \
  15284. lt_cv_sys_global_symbol_to_cdecl \
  15285. lt_cv_sys_global_symbol_to_c_name_address \
  15286. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15287. nm_file_list_spec \
  15288. lt_prog_compiler_no_builtin_flag \
  15289. lt_prog_compiler_pic \
  15290. lt_prog_compiler_wl \
  15291. lt_prog_compiler_static \
  15292. lt_cv_prog_compiler_c_o \
  15293. need_locks \
  15294. MANIFEST_TOOL \
  15295. DSYMUTIL \
  15296. NMEDIT \
  15297. LIPO \
  15298. OTOOL \
  15299. OTOOL64 \
  15300. shrext_cmds \
  15301. export_dynamic_flag_spec \
  15302. whole_archive_flag_spec \
  15303. compiler_needs_object \
  15304. with_gnu_ld \
  15305. allow_undefined_flag \
  15306. no_undefined_flag \
  15307. hardcode_libdir_flag_spec \
  15308. hardcode_libdir_separator \
  15309. exclude_expsyms \
  15310. include_expsyms \
  15311. file_list_spec \
  15312. variables_saved_for_relink \
  15313. libname_spec \
  15314. library_names_spec \
  15315. soname_spec \
  15316. install_override_mode \
  15317. finish_eval \
  15318. old_striplib \
  15319. striplib \
  15320. LD_RC \
  15321. reload_flag_RC \
  15322. compiler_RC \
  15323. lt_prog_compiler_no_builtin_flag_RC \
  15324. lt_prog_compiler_pic_RC \
  15325. lt_prog_compiler_wl_RC \
  15326. lt_prog_compiler_static_RC \
  15327. lt_cv_prog_compiler_c_o_RC \
  15328. export_dynamic_flag_spec_RC \
  15329. whole_archive_flag_spec_RC \
  15330. compiler_needs_object_RC \
  15331. with_gnu_ld_RC \
  15332. allow_undefined_flag_RC \
  15333. no_undefined_flag_RC \
  15334. hardcode_libdir_flag_spec_RC \
  15335. hardcode_libdir_separator_RC \
  15336. exclude_expsyms_RC \
  15337. include_expsyms_RC \
  15338. file_list_spec_RC; do
  15339. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15340. *[\\\\\\\`\\"\\\$]*)
  15341. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  15342. ;;
  15343. *)
  15344. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15345. ;;
  15346. esac
  15347. done
  15348. # Double-quote double-evaled strings.
  15349. for var in reload_cmds \
  15350. old_postinstall_cmds \
  15351. old_postuninstall_cmds \
  15352. old_archive_cmds \
  15353. extract_expsyms_cmds \
  15354. old_archive_from_new_cmds \
  15355. old_archive_from_expsyms_cmds \
  15356. archive_cmds \
  15357. archive_expsym_cmds \
  15358. module_cmds \
  15359. module_expsym_cmds \
  15360. export_symbols_cmds \
  15361. prelink_cmds \
  15362. postlink_cmds \
  15363. postinstall_cmds \
  15364. postuninstall_cmds \
  15365. finish_cmds \
  15366. sys_lib_search_path_spec \
  15367. sys_lib_dlsearch_path_spec \
  15368. reload_cmds_RC \
  15369. old_archive_cmds_RC \
  15370. old_archive_from_new_cmds_RC \
  15371. old_archive_from_expsyms_cmds_RC \
  15372. archive_cmds_RC \
  15373. archive_expsym_cmds_RC \
  15374. module_cmds_RC \
  15375. module_expsym_cmds_RC \
  15376. export_symbols_cmds_RC \
  15377. prelink_cmds_RC \
  15378. postlink_cmds_RC; do
  15379. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15380. *[\\\\\\\`\\"\\\$]*)
  15381. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  15382. ;;
  15383. *)
  15384. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15385. ;;
  15386. esac
  15387. done
  15388. ac_aux_dir='$ac_aux_dir'
  15389. xsi_shell='$xsi_shell'
  15390. lt_shell_append='$lt_shell_append'
  15391. # See if we are running on zsh, and set the options which allow our
  15392. # commands through without removal of \ escapes INIT.
  15393. if test -n "\${ZSH_VERSION+set}" ; then
  15394. setopt NO_GLOB_SUBST
  15395. fi
  15396. PACKAGE='$PACKAGE'
  15397. VERSION='$VERSION'
  15398. TIMESTAMP='$TIMESTAMP'
  15399. RM='$RM'
  15400. ofile='$ofile'
  15401. _ACEOF
  15402. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15403. # Handling of arguments.
  15404. for ac_config_target in $ac_config_targets
  15405. do
  15406. case $ac_config_target in
  15407. "MHD_config.h") CONFIG_HEADERS="$CONFIG_HEADERS MHD_config.h" ;;
  15408. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15409. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15410. "src/microhttpd/microhttpd_dll_res.rc") CONFIG_FILES="$CONFIG_FILES src/microhttpd/microhttpd_dll_res.rc" ;;
  15411. "libmicrohttpd.pc") CONFIG_FILES="$CONFIG_FILES libmicrohttpd.pc" ;;
  15412. "libmicrospdy.pc") CONFIG_FILES="$CONFIG_FILES libmicrospdy.pc" ;;
  15413. "w32/VS2013/microhttpd_dll_res_vc.rc") CONFIG_FILES="$CONFIG_FILES w32/VS2013/microhttpd_dll_res_vc.rc" ;;
  15414. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15415. "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
  15416. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  15417. "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;;
  15418. "doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;;
  15419. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  15420. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  15421. "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
  15422. "src/platform/Makefile") CONFIG_FILES="$CONFIG_FILES src/platform/Makefile" ;;
  15423. "src/microhttpd/Makefile") CONFIG_FILES="$CONFIG_FILES src/microhttpd/Makefile" ;;
  15424. "src/microspdy/Makefile") CONFIG_FILES="$CONFIG_FILES src/microspdy/Makefile" ;;
  15425. "src/spdy2http/Makefile") CONFIG_FILES="$CONFIG_FILES src/spdy2http/Makefile" ;;
  15426. "src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;;
  15427. "src/testcurl/Makefile") CONFIG_FILES="$CONFIG_FILES src/testcurl/Makefile" ;;
  15428. "src/testcurl/https/Makefile") CONFIG_FILES="$CONFIG_FILES src/testcurl/https/Makefile" ;;
  15429. "src/testspdy/Makefile") CONFIG_FILES="$CONFIG_FILES src/testspdy/Makefile" ;;
  15430. "src/testzzuf/Makefile") CONFIG_FILES="$CONFIG_FILES src/testzzuf/Makefile" ;;
  15431. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  15432. esac
  15433. done
  15434. # If the user did not use the arguments to specify the items to instantiate,
  15435. # then the envvar interface is used. Set only those that are not.
  15436. # We use the long form for the default assignment because of an extremely
  15437. # bizarre bug on SunOS 4.1.3.
  15438. if $ac_need_defaults; then
  15439. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15440. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15441. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15442. fi
  15443. # Have a temporary directory for convenience. Make it in the build tree
  15444. # simply because there is no reason against having it here, and in addition,
  15445. # creating and moving files from /tmp can sometimes cause problems.
  15446. # Hook for its removal unless debugging.
  15447. # Note that there is a small window in which the directory will not be cleaned:
  15448. # after its creation but before its name has been assigned to `$tmp'.
  15449. $debug ||
  15450. {
  15451. tmp= ac_tmp=
  15452. trap 'exit_status=$?
  15453. : "${ac_tmp:=$tmp}"
  15454. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  15455. ' 0
  15456. trap 'as_fn_exit 1' 1 2 13 15
  15457. }
  15458. # Create a (secure) tmp directory for tmp files.
  15459. {
  15460. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15461. test -d "$tmp"
  15462. } ||
  15463. {
  15464. tmp=./conf$$-$RANDOM
  15465. (umask 077 && mkdir "$tmp")
  15466. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15467. ac_tmp=$tmp
  15468. # Set up the scripts for CONFIG_FILES section.
  15469. # No need to generate them if there are no CONFIG_FILES.
  15470. # This happens for instance with `./config.status config.h'.
  15471. if test -n "$CONFIG_FILES"; then
  15472. ac_cr=`echo X | tr X '\015'`
  15473. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15474. # But we know of no other shell where ac_cr would be empty at this
  15475. # point, so we can use a bashism as a fallback.
  15476. if test "x$ac_cr" = x; then
  15477. eval ac_cr=\$\'\\r\'
  15478. fi
  15479. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15480. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15481. ac_cs_awk_cr='\\r'
  15482. else
  15483. ac_cs_awk_cr=$ac_cr
  15484. fi
  15485. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  15486. _ACEOF
  15487. {
  15488. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15489. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15490. echo "_ACEOF"
  15491. } >conf$$subs.sh ||
  15492. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15493. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15494. ac_delim='%!_!# '
  15495. for ac_last_try in false false false false false :; do
  15496. . ./conf$$subs.sh ||
  15497. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15498. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15499. if test $ac_delim_n = $ac_delim_num; then
  15500. break
  15501. elif $ac_last_try; then
  15502. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15503. else
  15504. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15505. fi
  15506. done
  15507. rm -f conf$$subs.sh
  15508. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15509. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  15510. _ACEOF
  15511. sed -n '
  15512. h
  15513. s/^/S["/; s/!.*/"]=/
  15514. p
  15515. g
  15516. s/^[^!]*!//
  15517. :repl
  15518. t repl
  15519. s/'"$ac_delim"'$//
  15520. t delim
  15521. :nl
  15522. h
  15523. s/\(.\{148\}\)..*/\1/
  15524. t more1
  15525. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15526. p
  15527. n
  15528. b repl
  15529. :more1
  15530. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15531. p
  15532. g
  15533. s/.\{148\}//
  15534. t nl
  15535. :delim
  15536. h
  15537. s/\(.\{148\}\)..*/\1/
  15538. t more2
  15539. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15540. p
  15541. b
  15542. :more2
  15543. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15544. p
  15545. g
  15546. s/.\{148\}//
  15547. t delim
  15548. ' <conf$$subs.awk | sed '
  15549. /^[^""]/{
  15550. N
  15551. s/\n//
  15552. }
  15553. ' >>$CONFIG_STATUS || ac_write_fail=1
  15554. rm -f conf$$subs.awk
  15555. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15556. _ACAWK
  15557. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  15558. for (key in S) S_is_set[key] = 1
  15559. FS = ""
  15560. }
  15561. {
  15562. line = $ 0
  15563. nfields = split(line, field, "@")
  15564. substed = 0
  15565. len = length(field[1])
  15566. for (i = 2; i < nfields; i++) {
  15567. key = field[i]
  15568. keylen = length(key)
  15569. if (S_is_set[key]) {
  15570. value = S[key]
  15571. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15572. len += length(value) + length(field[++i])
  15573. substed = 1
  15574. } else
  15575. len += 1 + keylen
  15576. }
  15577. print line
  15578. }
  15579. _ACAWK
  15580. _ACEOF
  15581. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15582. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15583. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15584. else
  15585. cat
  15586. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  15587. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15588. _ACEOF
  15589. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15590. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15591. # trailing colons and then remove the whole line if VPATH becomes empty
  15592. # (actually we leave an empty line to preserve line numbers).
  15593. if test "x$srcdir" = x.; then
  15594. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15595. h
  15596. s///
  15597. s/^/:/
  15598. s/[ ]*$/:/
  15599. s/:\$(srcdir):/:/g
  15600. s/:\${srcdir}:/:/g
  15601. s/:@srcdir@:/:/g
  15602. s/^:*//
  15603. s/:*$//
  15604. x
  15605. s/\(=[ ]*\).*/\1/
  15606. G
  15607. s/\n//
  15608. s/^[^=]*=[ ]*$//
  15609. }'
  15610. fi
  15611. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15612. fi # test -n "$CONFIG_FILES"
  15613. # Set up the scripts for CONFIG_HEADERS section.
  15614. # No need to generate them if there are no CONFIG_HEADERS.
  15615. # This happens for instance with `./config.status Makefile'.
  15616. if test -n "$CONFIG_HEADERS"; then
  15617. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  15618. BEGIN {
  15619. _ACEOF
  15620. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15621. # here-document in config.status, that substitutes the proper values into
  15622. # config.h.in to produce config.h.
  15623. # Create a delimiter string that does not exist in confdefs.h, to ease
  15624. # handling of long lines.
  15625. ac_delim='%!_!# '
  15626. for ac_last_try in false false :; do
  15627. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  15628. if test -z "$ac_tt"; then
  15629. break
  15630. elif $ac_last_try; then
  15631. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  15632. else
  15633. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15634. fi
  15635. done
  15636. # For the awk script, D is an array of macro values keyed by name,
  15637. # likewise P contains macro parameters if any. Preserve backslash
  15638. # newline sequences.
  15639. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15640. sed -n '
  15641. s/.\{148\}/&'"$ac_delim"'/g
  15642. t rset
  15643. :rset
  15644. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15645. t def
  15646. d
  15647. :def
  15648. s/\\$//
  15649. t bsnl
  15650. s/["\\]/\\&/g
  15651. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15652. D["\1"]=" \3"/p
  15653. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15654. d
  15655. :bsnl
  15656. s/["\\]/\\&/g
  15657. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15658. D["\1"]=" \3\\\\\\n"\\/p
  15659. t cont
  15660. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15661. t cont
  15662. d
  15663. :cont
  15664. n
  15665. s/.\{148\}/&'"$ac_delim"'/g
  15666. t clear
  15667. :clear
  15668. s/\\$//
  15669. t bsnlc
  15670. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15671. d
  15672. :bsnlc
  15673. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15674. b cont
  15675. ' <confdefs.h | sed '
  15676. s/'"$ac_delim"'/"\\\
  15677. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15678. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15679. for (key in D) D_is_set[key] = 1
  15680. FS = ""
  15681. }
  15682. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15683. line = \$ 0
  15684. split(line, arg, " ")
  15685. if (arg[1] == "#") {
  15686. defundef = arg[2]
  15687. mac1 = arg[3]
  15688. } else {
  15689. defundef = substr(arg[1], 2)
  15690. mac1 = arg[2]
  15691. }
  15692. split(mac1, mac2, "(") #)
  15693. macro = mac2[1]
  15694. prefix = substr(line, 1, index(line, defundef) - 1)
  15695. if (D_is_set[macro]) {
  15696. # Preserve the white space surrounding the "#".
  15697. print prefix "define", macro P[macro] D[macro]
  15698. next
  15699. } else {
  15700. # Replace #undef with comments. This is necessary, for example,
  15701. # in the case of _POSIX_SOURCE, which is predefined and required
  15702. # on some systems where configure will not decide to define it.
  15703. if (defundef == "undef") {
  15704. print "/*", prefix defundef, macro, "*/"
  15705. next
  15706. }
  15707. }
  15708. }
  15709. { print }
  15710. _ACAWK
  15711. _ACEOF
  15712. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15713. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15714. fi # test -n "$CONFIG_HEADERS"
  15715. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15716. shift
  15717. for ac_tag
  15718. do
  15719. case $ac_tag in
  15720. :[FHLC]) ac_mode=$ac_tag; continue;;
  15721. esac
  15722. case $ac_mode$ac_tag in
  15723. :[FHL]*:*);;
  15724. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15725. :[FH]-) ac_tag=-:-;;
  15726. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15727. esac
  15728. ac_save_IFS=$IFS
  15729. IFS=:
  15730. set x $ac_tag
  15731. IFS=$ac_save_IFS
  15732. shift
  15733. ac_file=$1
  15734. shift
  15735. case $ac_mode in
  15736. :L) ac_source=$1;;
  15737. :[FH])
  15738. ac_file_inputs=
  15739. for ac_f
  15740. do
  15741. case $ac_f in
  15742. -) ac_f="$ac_tmp/stdin";;
  15743. *) # Look for the file first in the build tree, then in the source tree
  15744. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15745. # because $ac_f cannot contain `:'.
  15746. test -f "$ac_f" ||
  15747. case $ac_f in
  15748. [\\/$]*) false;;
  15749. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15750. esac ||
  15751. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15752. esac
  15753. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15754. as_fn_append ac_file_inputs " '$ac_f'"
  15755. done
  15756. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15757. # use $as_me), people would be surprised to read:
  15758. # /* config.h. Generated by config.status. */
  15759. configure_input='Generated from '`
  15760. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15761. `' by configure.'
  15762. if test x"$ac_file" != x-; then
  15763. configure_input="$ac_file. $configure_input"
  15764. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15765. $as_echo "$as_me: creating $ac_file" >&6;}
  15766. fi
  15767. # Neutralize special characters interpreted by sed in replacement strings.
  15768. case $configure_input in #(
  15769. *\&* | *\|* | *\\* )
  15770. ac_sed_conf_input=`$as_echo "$configure_input" |
  15771. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15772. *) ac_sed_conf_input=$configure_input;;
  15773. esac
  15774. case $ac_tag in
  15775. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  15776. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15777. esac
  15778. ;;
  15779. esac
  15780. ac_dir=`$as_dirname -- "$ac_file" ||
  15781. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15782. X"$ac_file" : 'X\(//\)[^/]' \| \
  15783. X"$ac_file" : 'X\(//\)$' \| \
  15784. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15785. $as_echo X"$ac_file" |
  15786. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15787. s//\1/
  15788. q
  15789. }
  15790. /^X\(\/\/\)[^/].*/{
  15791. s//\1/
  15792. q
  15793. }
  15794. /^X\(\/\/\)$/{
  15795. s//\1/
  15796. q
  15797. }
  15798. /^X\(\/\).*/{
  15799. s//\1/
  15800. q
  15801. }
  15802. s/.*/./; q'`
  15803. as_dir="$ac_dir"; as_fn_mkdir_p
  15804. ac_builddir=.
  15805. case "$ac_dir" in
  15806. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15807. *)
  15808. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15809. # A ".." for each directory in $ac_dir_suffix.
  15810. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15811. case $ac_top_builddir_sub in
  15812. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15813. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15814. esac ;;
  15815. esac
  15816. ac_abs_top_builddir=$ac_pwd
  15817. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15818. # for backward compatibility:
  15819. ac_top_builddir=$ac_top_build_prefix
  15820. case $srcdir in
  15821. .) # We are building in place.
  15822. ac_srcdir=.
  15823. ac_top_srcdir=$ac_top_builddir_sub
  15824. ac_abs_top_srcdir=$ac_pwd ;;
  15825. [\\/]* | ?:[\\/]* ) # Absolute name.
  15826. ac_srcdir=$srcdir$ac_dir_suffix;
  15827. ac_top_srcdir=$srcdir
  15828. ac_abs_top_srcdir=$srcdir ;;
  15829. *) # Relative name.
  15830. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15831. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15832. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15833. esac
  15834. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15835. case $ac_mode in
  15836. :F)
  15837. #
  15838. # CONFIG_FILE
  15839. #
  15840. case $INSTALL in
  15841. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15842. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15843. esac
  15844. ac_MKDIR_P=$MKDIR_P
  15845. case $MKDIR_P in
  15846. [\\/$]* | ?:[\\/]* ) ;;
  15847. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15848. esac
  15849. _ACEOF
  15850. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15851. # If the template does not know about datarootdir, expand it.
  15852. # FIXME: This hack should be removed a few years after 2.60.
  15853. ac_datarootdir_hack=; ac_datarootdir_seen=
  15854. ac_sed_dataroot='
  15855. /datarootdir/ {
  15856. p
  15857. q
  15858. }
  15859. /@datadir@/p
  15860. /@docdir@/p
  15861. /@infodir@/p
  15862. /@localedir@/p
  15863. /@mandir@/p'
  15864. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15865. *datarootdir*) ac_datarootdir_seen=yes;;
  15866. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15867. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15868. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15869. _ACEOF
  15870. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15871. ac_datarootdir_hack='
  15872. s&@datadir@&$datadir&g
  15873. s&@docdir@&$docdir&g
  15874. s&@infodir@&$infodir&g
  15875. s&@localedir@&$localedir&g
  15876. s&@mandir@&$mandir&g
  15877. s&\\\${datarootdir}&$datarootdir&g' ;;
  15878. esac
  15879. _ACEOF
  15880. # Neutralize VPATH when `$srcdir' = `.'.
  15881. # Shell code in configure.ac might set extrasub.
  15882. # FIXME: do we really want to maintain this feature?
  15883. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15884. ac_sed_extra="$ac_vpsub
  15885. $extrasub
  15886. _ACEOF
  15887. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15888. :t
  15889. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15890. s|@configure_input@|$ac_sed_conf_input|;t t
  15891. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15892. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15893. s&@srcdir@&$ac_srcdir&;t t
  15894. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15895. s&@top_srcdir@&$ac_top_srcdir&;t t
  15896. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15897. s&@builddir@&$ac_builddir&;t t
  15898. s&@abs_builddir@&$ac_abs_builddir&;t t
  15899. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15900. s&@INSTALL@&$ac_INSTALL&;t t
  15901. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15902. $ac_datarootdir_hack
  15903. "
  15904. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  15905. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15906. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15907. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  15908. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  15909. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  15910. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15911. which seems to be undefined. Please make sure it is defined" >&5
  15912. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15913. which seems to be undefined. Please make sure it is defined" >&2;}
  15914. rm -f "$ac_tmp/stdin"
  15915. case $ac_file in
  15916. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  15917. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  15918. esac \
  15919. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15920. ;;
  15921. :H)
  15922. #
  15923. # CONFIG_HEADER
  15924. #
  15925. if test x"$ac_file" != x-; then
  15926. {
  15927. $as_echo "/* $configure_input */" \
  15928. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  15929. } >"$ac_tmp/config.h" \
  15930. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15931. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  15932. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  15933. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  15934. else
  15935. rm -f "$ac_file"
  15936. mv "$ac_tmp/config.h" "$ac_file" \
  15937. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15938. fi
  15939. else
  15940. $as_echo "/* $configure_input */" \
  15941. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  15942. || as_fn_error $? "could not create -" "$LINENO" 5
  15943. fi
  15944. # Compute "$ac_file"'s index in $config_headers.
  15945. _am_arg="$ac_file"
  15946. _am_stamp_count=1
  15947. for _am_header in $config_headers :; do
  15948. case $_am_header in
  15949. $_am_arg | $_am_arg:* )
  15950. break ;;
  15951. * )
  15952. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  15953. esac
  15954. done
  15955. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  15956. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15957. X"$_am_arg" : 'X\(//\)[^/]' \| \
  15958. X"$_am_arg" : 'X\(//\)$' \| \
  15959. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  15960. $as_echo X"$_am_arg" |
  15961. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15962. s//\1/
  15963. q
  15964. }
  15965. /^X\(\/\/\)[^/].*/{
  15966. s//\1/
  15967. q
  15968. }
  15969. /^X\(\/\/\)$/{
  15970. s//\1/
  15971. q
  15972. }
  15973. /^X\(\/\).*/{
  15974. s//\1/
  15975. q
  15976. }
  15977. s/.*/./; q'`/stamp-h$_am_stamp_count
  15978. ;;
  15979. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15980. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15981. ;;
  15982. esac
  15983. case $ac_file$ac_mode in
  15984. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15985. # Older Autoconf quotes --file arguments for eval, but not when files
  15986. # are listed without --file. Let's play safe and only enable the eval
  15987. # if we detect the quoting.
  15988. case $CONFIG_FILES in
  15989. *\'*) eval set x "$CONFIG_FILES" ;;
  15990. *) set x $CONFIG_FILES ;;
  15991. esac
  15992. shift
  15993. for mf
  15994. do
  15995. # Strip MF so we end up with the name of the file.
  15996. mf=`echo "$mf" | sed -e 's/:.*$//'`
  15997. # Check whether this is an Automake generated Makefile or not.
  15998. # We used to match only the files named 'Makefile.in', but
  15999. # some people rename them; so instead we look at the file content.
  16000. # Grep'ing the first line is not enough: some people post-process
  16001. # each Makefile.in and add a new line on top of each file to say so.
  16002. # Grep'ing the whole file is not good either: AIX grep has a line
  16003. # limit of 2048, but all sed's we know have understand at least 4000.
  16004. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  16005. dirpart=`$as_dirname -- "$mf" ||
  16006. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16007. X"$mf" : 'X\(//\)[^/]' \| \
  16008. X"$mf" : 'X\(//\)$' \| \
  16009. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  16010. $as_echo X"$mf" |
  16011. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16012. s//\1/
  16013. q
  16014. }
  16015. /^X\(\/\/\)[^/].*/{
  16016. s//\1/
  16017. q
  16018. }
  16019. /^X\(\/\/\)$/{
  16020. s//\1/
  16021. q
  16022. }
  16023. /^X\(\/\).*/{
  16024. s//\1/
  16025. q
  16026. }
  16027. s/.*/./; q'`
  16028. else
  16029. continue
  16030. fi
  16031. # Extract the definition of DEPDIR, am__include, and am__quote
  16032. # from the Makefile without running 'make'.
  16033. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  16034. test -z "$DEPDIR" && continue
  16035. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  16036. test -z "$am__include" && continue
  16037. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  16038. # Find all dependency output files, they are included files with
  16039. # $(DEPDIR) in their names. We invoke sed twice because it is the
  16040. # simplest approach to changing $(DEPDIR) to its actual value in the
  16041. # expansion.
  16042. for file in `sed -n "
  16043. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  16044. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  16045. # Make sure the directory exists.
  16046. test -f "$dirpart/$file" && continue
  16047. fdir=`$as_dirname -- "$file" ||
  16048. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16049. X"$file" : 'X\(//\)[^/]' \| \
  16050. X"$file" : 'X\(//\)$' \| \
  16051. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  16052. $as_echo X"$file" |
  16053. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16054. s//\1/
  16055. q
  16056. }
  16057. /^X\(\/\/\)[^/].*/{
  16058. s//\1/
  16059. q
  16060. }
  16061. /^X\(\/\/\)$/{
  16062. s//\1/
  16063. q
  16064. }
  16065. /^X\(\/\).*/{
  16066. s//\1/
  16067. q
  16068. }
  16069. s/.*/./; q'`
  16070. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  16071. # echo "creating $dirpart/$file"
  16072. echo '# dummy' > "$dirpart/$file"
  16073. done
  16074. done
  16075. }
  16076. ;;
  16077. "libtool":C)
  16078. # See if we are running on zsh, and set the options which allow our
  16079. # commands through without removal of \ escapes.
  16080. if test -n "${ZSH_VERSION+set}" ; then
  16081. setopt NO_GLOB_SUBST
  16082. fi
  16083. cfgfile="${ofile}T"
  16084. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  16085. $RM "$cfgfile"
  16086. cat <<_LT_EOF >> "$cfgfile"
  16087. #! $SHELL
  16088. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  16089. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  16090. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16091. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  16092. #
  16093. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  16094. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  16095. # Foundation, Inc.
  16096. # Written by Gordon Matzigkeit, 1996
  16097. #
  16098. # This file is part of GNU Libtool.
  16099. #
  16100. # GNU Libtool is free software; you can redistribute it and/or
  16101. # modify it under the terms of the GNU General Public License as
  16102. # published by the Free Software Foundation; either version 2 of
  16103. # the License, or (at your option) any later version.
  16104. #
  16105. # As a special exception to the GNU General Public License,
  16106. # if you distribute this file as part of a program or library that
  16107. # is built using GNU Libtool, you may include this file under the
  16108. # same distribution terms that you use for the rest of that program.
  16109. #
  16110. # GNU Libtool is distributed in the hope that it will be useful,
  16111. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16112. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16113. # GNU General Public License for more details.
  16114. #
  16115. # You should have received a copy of the GNU General Public License
  16116. # along with GNU Libtool; see the file COPYING. If not, a copy
  16117. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  16118. # obtained by writing to the Free Software Foundation, Inc.,
  16119. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16120. # The names of the tagged configurations supported by this script.
  16121. available_tags="RC "
  16122. # ### BEGIN LIBTOOL CONFIG
  16123. # Which release of libtool.m4 was used?
  16124. macro_version=$macro_version
  16125. macro_revision=$macro_revision
  16126. # Assembler program.
  16127. AS=$lt_AS
  16128. # DLL creation program.
  16129. DLLTOOL=$lt_DLLTOOL
  16130. # Object dumper program.
  16131. OBJDUMP=$lt_OBJDUMP
  16132. # Whether or not to build shared libraries.
  16133. build_libtool_libs=$enable_shared
  16134. # Whether or not to build static libraries.
  16135. build_old_libs=$enable_static
  16136. # What type of objects to build.
  16137. pic_mode=$pic_mode
  16138. # Whether or not to optimize for fast installation.
  16139. fast_install=$enable_fast_install
  16140. # Shell to use when invoking shell scripts.
  16141. SHELL=$lt_SHELL
  16142. # An echo program that protects backslashes.
  16143. ECHO=$lt_ECHO
  16144. # The PATH separator for the build system.
  16145. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  16146. # The host system.
  16147. host_alias=$host_alias
  16148. host=$host
  16149. host_os=$host_os
  16150. # The build system.
  16151. build_alias=$build_alias
  16152. build=$build
  16153. build_os=$build_os
  16154. # A sed program that does not truncate output.
  16155. SED=$lt_SED
  16156. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  16157. Xsed="\$SED -e 1s/^X//"
  16158. # A grep program that handles long lines.
  16159. GREP=$lt_GREP
  16160. # An ERE matcher.
  16161. EGREP=$lt_EGREP
  16162. # A literal string matcher.
  16163. FGREP=$lt_FGREP
  16164. # A BSD- or MS-compatible name lister.
  16165. NM=$lt_NM
  16166. # Whether we need soft or hard links.
  16167. LN_S=$lt_LN_S
  16168. # What is the maximum length of a command?
  16169. max_cmd_len=$max_cmd_len
  16170. # Object file suffix (normally "o").
  16171. objext=$ac_objext
  16172. # Executable file suffix (normally "").
  16173. exeext=$exeext
  16174. # whether the shell understands "unset".
  16175. lt_unset=$lt_unset
  16176. # turn spaces into newlines.
  16177. SP2NL=$lt_lt_SP2NL
  16178. # turn newlines into spaces.
  16179. NL2SP=$lt_lt_NL2SP
  16180. # convert \$build file names to \$host format.
  16181. to_host_file_cmd=$lt_cv_to_host_file_cmd
  16182. # convert \$build files to toolchain format.
  16183. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  16184. # Method to check whether dependent libraries are shared objects.
  16185. deplibs_check_method=$lt_deplibs_check_method
  16186. # Command to use when deplibs_check_method = "file_magic".
  16187. file_magic_cmd=$lt_file_magic_cmd
  16188. # How to find potential files when deplibs_check_method = "file_magic".
  16189. file_magic_glob=$lt_file_magic_glob
  16190. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  16191. want_nocaseglob=$lt_want_nocaseglob
  16192. # Command to associate shared and link libraries.
  16193. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  16194. # The archiver.
  16195. AR=$lt_AR
  16196. # Flags to create an archive.
  16197. AR_FLAGS=$lt_AR_FLAGS
  16198. # How to feed a file listing to the archiver.
  16199. archiver_list_spec=$lt_archiver_list_spec
  16200. # A symbol stripping program.
  16201. STRIP=$lt_STRIP
  16202. # Commands used to install an old-style archive.
  16203. RANLIB=$lt_RANLIB
  16204. old_postinstall_cmds=$lt_old_postinstall_cmds
  16205. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16206. # Whether to use a lock for old archive extraction.
  16207. lock_old_archive_extraction=$lock_old_archive_extraction
  16208. # A C compiler.
  16209. LTCC=$lt_CC
  16210. # LTCC compiler flags.
  16211. LTCFLAGS=$lt_CFLAGS
  16212. # Take the output of nm and produce a listing of raw symbols and C names.
  16213. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16214. # Transform the output of nm in a proper C declaration.
  16215. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16216. # Transform the output of nm in a C name address pair.
  16217. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16218. # Transform the output of nm in a C name address pair when lib prefix is needed.
  16219. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16220. # Specify filename containing input files for \$NM.
  16221. nm_file_list_spec=$lt_nm_file_list_spec
  16222. # The root where to search for dependent libraries,and in which our libraries should be installed.
  16223. lt_sysroot=$lt_sysroot
  16224. # The name of the directory that contains temporary libtool files.
  16225. objdir=$objdir
  16226. # Used to examine libraries when file_magic_cmd begins with "file".
  16227. MAGIC_CMD=$MAGIC_CMD
  16228. # Must we lock files when doing compilation?
  16229. need_locks=$lt_need_locks
  16230. # Manifest tool.
  16231. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  16232. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16233. DSYMUTIL=$lt_DSYMUTIL
  16234. # Tool to change global to local symbols on Mac OS X.
  16235. NMEDIT=$lt_NMEDIT
  16236. # Tool to manipulate fat objects and archives on Mac OS X.
  16237. LIPO=$lt_LIPO
  16238. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16239. OTOOL=$lt_OTOOL
  16240. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16241. OTOOL64=$lt_OTOOL64
  16242. # Old archive suffix (normally "a").
  16243. libext=$libext
  16244. # Shared library suffix (normally ".so").
  16245. shrext_cmds=$lt_shrext_cmds
  16246. # The commands to extract the exported symbol list from a shared archive.
  16247. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16248. # Variables whose values should be saved in libtool wrapper scripts and
  16249. # restored at link time.
  16250. variables_saved_for_relink=$lt_variables_saved_for_relink
  16251. # Do we need the "lib" prefix for modules?
  16252. need_lib_prefix=$need_lib_prefix
  16253. # Do we need a version for libraries?
  16254. need_version=$need_version
  16255. # Library versioning type.
  16256. version_type=$version_type
  16257. # Shared library runtime path variable.
  16258. runpath_var=$runpath_var
  16259. # Shared library path variable.
  16260. shlibpath_var=$shlibpath_var
  16261. # Is shlibpath searched before the hard-coded library search path?
  16262. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16263. # Format of library name prefix.
  16264. libname_spec=$lt_libname_spec
  16265. # List of archive names. First name is the real one, the rest are links.
  16266. # The last name is the one that the linker finds with -lNAME
  16267. library_names_spec=$lt_library_names_spec
  16268. # The coded name of the library, if different from the real name.
  16269. soname_spec=$lt_soname_spec
  16270. # Permission mode override for installation of shared libraries.
  16271. install_override_mode=$lt_install_override_mode
  16272. # Command to use after installation of a shared archive.
  16273. postinstall_cmds=$lt_postinstall_cmds
  16274. # Command to use after uninstallation of a shared archive.
  16275. postuninstall_cmds=$lt_postuninstall_cmds
  16276. # Commands used to finish a libtool library installation in a directory.
  16277. finish_cmds=$lt_finish_cmds
  16278. # As "finish_cmds", except a single script fragment to be evaled but
  16279. # not shown.
  16280. finish_eval=$lt_finish_eval
  16281. # Whether we should hardcode library paths into libraries.
  16282. hardcode_into_libs=$hardcode_into_libs
  16283. # Compile-time system search path for libraries.
  16284. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16285. # Run-time system search path for libraries.
  16286. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16287. # Whether dlopen is supported.
  16288. dlopen_support=$enable_dlopen
  16289. # Whether dlopen of programs is supported.
  16290. dlopen_self=$enable_dlopen_self
  16291. # Whether dlopen of statically linked programs is supported.
  16292. dlopen_self_static=$enable_dlopen_self_static
  16293. # Commands to strip libraries.
  16294. old_striplib=$lt_old_striplib
  16295. striplib=$lt_striplib
  16296. # The linker used to build libraries.
  16297. LD=$lt_LD
  16298. # How to create reloadable object files.
  16299. reload_flag=$lt_reload_flag
  16300. reload_cmds=$lt_reload_cmds
  16301. # Commands used to build an old-style archive.
  16302. old_archive_cmds=$lt_old_archive_cmds
  16303. # A language specific compiler.
  16304. CC=$lt_compiler
  16305. # Is the compiler the GNU compiler?
  16306. with_gcc=$GCC
  16307. # Compiler flag to turn off builtin functions.
  16308. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16309. # Additional compiler flags for building library objects.
  16310. pic_flag=$lt_lt_prog_compiler_pic
  16311. # How to pass a linker flag through the compiler.
  16312. wl=$lt_lt_prog_compiler_wl
  16313. # Compiler flag to prevent dynamic linking.
  16314. link_static_flag=$lt_lt_prog_compiler_static
  16315. # Does compiler simultaneously support -c and -o options?
  16316. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16317. # Whether or not to add -lc for building shared libraries.
  16318. build_libtool_need_lc=$archive_cmds_need_lc
  16319. # Whether or not to disallow shared libs when runtime libs are static.
  16320. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16321. # Compiler flag to allow reflexive dlopens.
  16322. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16323. # Compiler flag to generate shared objects directly from archives.
  16324. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16325. # Whether the compiler copes with passing no objects directly.
  16326. compiler_needs_object=$lt_compiler_needs_object
  16327. # Create an old-style archive from a shared archive.
  16328. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16329. # Create a temporary old-style archive to link instead of a shared archive.
  16330. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16331. # Commands used to build a shared archive.
  16332. archive_cmds=$lt_archive_cmds
  16333. archive_expsym_cmds=$lt_archive_expsym_cmds
  16334. # Commands used to build a loadable module if different from building
  16335. # a shared archive.
  16336. module_cmds=$lt_module_cmds
  16337. module_expsym_cmds=$lt_module_expsym_cmds
  16338. # Whether we are building with GNU ld or not.
  16339. with_gnu_ld=$lt_with_gnu_ld
  16340. # Flag that allows shared libraries with undefined symbols to be built.
  16341. allow_undefined_flag=$lt_allow_undefined_flag
  16342. # Flag that enforces no undefined symbols.
  16343. no_undefined_flag=$lt_no_undefined_flag
  16344. # Flag to hardcode \$libdir into a binary during linking.
  16345. # This must work even if \$libdir does not exist
  16346. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16347. # Whether we need a single "-rpath" flag with a separated argument.
  16348. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16349. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16350. # DIR into the resulting binary.
  16351. hardcode_direct=$hardcode_direct
  16352. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16353. # DIR into the resulting binary and the resulting library dependency is
  16354. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16355. # library is relocated.
  16356. hardcode_direct_absolute=$hardcode_direct_absolute
  16357. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16358. # into the resulting binary.
  16359. hardcode_minus_L=$hardcode_minus_L
  16360. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16361. # into the resulting binary.
  16362. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16363. # Set to "yes" if building a shared library automatically hardcodes DIR
  16364. # into the library and all subsequent libraries and executables linked
  16365. # against it.
  16366. hardcode_automatic=$hardcode_automatic
  16367. # Set to yes if linker adds runtime paths of dependent libraries
  16368. # to runtime path list.
  16369. inherit_rpath=$inherit_rpath
  16370. # Whether libtool must link a program against all its dependency libraries.
  16371. link_all_deplibs=$link_all_deplibs
  16372. # Set to "yes" if exported symbols are required.
  16373. always_export_symbols=$always_export_symbols
  16374. # The commands to list exported symbols.
  16375. export_symbols_cmds=$lt_export_symbols_cmds
  16376. # Symbols that should not be listed in the preloaded symbols.
  16377. exclude_expsyms=$lt_exclude_expsyms
  16378. # Symbols that must always be exported.
  16379. include_expsyms=$lt_include_expsyms
  16380. # Commands necessary for linking programs (against libraries) with templates.
  16381. prelink_cmds=$lt_prelink_cmds
  16382. # Commands necessary for finishing linking programs.
  16383. postlink_cmds=$lt_postlink_cmds
  16384. # Specify filename containing input files.
  16385. file_list_spec=$lt_file_list_spec
  16386. # How to hardcode a shared library path into an executable.
  16387. hardcode_action=$hardcode_action
  16388. # ### END LIBTOOL CONFIG
  16389. _LT_EOF
  16390. case $host_os in
  16391. aix3*)
  16392. cat <<\_LT_EOF >> "$cfgfile"
  16393. # AIX sometimes has problems with the GCC collect2 program. For some
  16394. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16395. # vanish in a puff of smoke.
  16396. if test "X${COLLECT_NAMES+set}" != Xset; then
  16397. COLLECT_NAMES=
  16398. export COLLECT_NAMES
  16399. fi
  16400. _LT_EOF
  16401. ;;
  16402. esac
  16403. ltmain="$ac_aux_dir/ltmain.sh"
  16404. # We use sed instead of cat because bash on DJGPP gets confused if
  16405. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16406. # text mode, it properly converts lines to CR/LF. This bash problem
  16407. # is reportedly fixed, but why not run on old versions too?
  16408. sed '$q' "$ltmain" >> "$cfgfile" \
  16409. || (rm -f "$cfgfile"; exit 1)
  16410. if test x"$xsi_shell" = xyes; then
  16411. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  16412. func_dirname ()\
  16413. {\
  16414. \ case ${1} in\
  16415. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16416. \ * ) func_dirname_result="${3}" ;;\
  16417. \ esac\
  16418. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  16419. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16420. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16421. test 0 -eq $? || _lt_function_replace_fail=:
  16422. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  16423. func_basename ()\
  16424. {\
  16425. \ func_basename_result="${1##*/}"\
  16426. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16427. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16428. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16429. test 0 -eq $? || _lt_function_replace_fail=:
  16430. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  16431. func_dirname_and_basename ()\
  16432. {\
  16433. \ case ${1} in\
  16434. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16435. \ * ) func_dirname_result="${3}" ;;\
  16436. \ esac\
  16437. \ func_basename_result="${1##*/}"\
  16438. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16439. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16440. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16441. test 0 -eq $? || _lt_function_replace_fail=:
  16442. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  16443. func_stripname ()\
  16444. {\
  16445. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  16446. \ # positional parameters, so assign one to ordinary parameter first.\
  16447. \ func_stripname_result=${3}\
  16448. \ func_stripname_result=${func_stripname_result#"${1}"}\
  16449. \ func_stripname_result=${func_stripname_result%"${2}"}\
  16450. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  16451. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16452. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16453. test 0 -eq $? || _lt_function_replace_fail=:
  16454. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  16455. func_split_long_opt ()\
  16456. {\
  16457. \ func_split_long_opt_name=${1%%=*}\
  16458. \ func_split_long_opt_arg=${1#*=}\
  16459. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16460. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16461. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16462. test 0 -eq $? || _lt_function_replace_fail=:
  16463. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  16464. func_split_short_opt ()\
  16465. {\
  16466. \ func_split_short_opt_arg=${1#??}\
  16467. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  16468. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16469. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16470. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16471. test 0 -eq $? || _lt_function_replace_fail=:
  16472. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  16473. func_lo2o ()\
  16474. {\
  16475. \ case ${1} in\
  16476. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  16477. \ *) func_lo2o_result=${1} ;;\
  16478. \ esac\
  16479. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  16480. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16481. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16482. test 0 -eq $? || _lt_function_replace_fail=:
  16483. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  16484. func_xform ()\
  16485. {\
  16486. func_xform_result=${1%.*}.lo\
  16487. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  16488. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16489. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16490. test 0 -eq $? || _lt_function_replace_fail=:
  16491. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  16492. func_arith ()\
  16493. {\
  16494. func_arith_result=$(( $* ))\
  16495. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  16496. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16497. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16498. test 0 -eq $? || _lt_function_replace_fail=:
  16499. sed -e '/^func_len ()$/,/^} # func_len /c\
  16500. func_len ()\
  16501. {\
  16502. func_len_result=${#1}\
  16503. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  16504. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16505. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16506. test 0 -eq $? || _lt_function_replace_fail=:
  16507. fi
  16508. if test x"$lt_shell_append" = xyes; then
  16509. sed -e '/^func_append ()$/,/^} # func_append /c\
  16510. func_append ()\
  16511. {\
  16512. eval "${1}+=\\${2}"\
  16513. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  16514. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16515. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16516. test 0 -eq $? || _lt_function_replace_fail=:
  16517. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  16518. func_append_quoted ()\
  16519. {\
  16520. \ func_quote_for_eval "${2}"\
  16521. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  16522. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  16523. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16524. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16525. test 0 -eq $? || _lt_function_replace_fail=:
  16526. # Save a `func_append' function call where possible by direct use of '+='
  16527. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  16528. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16529. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16530. test 0 -eq $? || _lt_function_replace_fail=:
  16531. else
  16532. # Save a `func_append' function call even when '+=' is not available
  16533. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  16534. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16535. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16536. test 0 -eq $? || _lt_function_replace_fail=:
  16537. fi
  16538. if test x"$_lt_function_replace_fail" = x":"; then
  16539. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  16540. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  16541. fi
  16542. mv -f "$cfgfile" "$ofile" ||
  16543. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16544. chmod +x "$ofile"
  16545. cat <<_LT_EOF >> "$ofile"
  16546. # ### BEGIN LIBTOOL TAG CONFIG: RC
  16547. # The linker used to build libraries.
  16548. LD=$lt_LD_RC
  16549. # How to create reloadable object files.
  16550. reload_flag=$lt_reload_flag_RC
  16551. reload_cmds=$lt_reload_cmds_RC
  16552. # Commands used to build an old-style archive.
  16553. old_archive_cmds=$lt_old_archive_cmds_RC
  16554. # A language specific compiler.
  16555. CC=$lt_compiler_RC
  16556. # Is the compiler the GNU compiler?
  16557. with_gcc=$GCC_RC
  16558. # Compiler flag to turn off builtin functions.
  16559. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  16560. # Additional compiler flags for building library objects.
  16561. pic_flag=$lt_lt_prog_compiler_pic_RC
  16562. # How to pass a linker flag through the compiler.
  16563. wl=$lt_lt_prog_compiler_wl_RC
  16564. # Compiler flag to prevent dynamic linking.
  16565. link_static_flag=$lt_lt_prog_compiler_static_RC
  16566. # Does compiler simultaneously support -c and -o options?
  16567. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  16568. # Whether or not to add -lc for building shared libraries.
  16569. build_libtool_need_lc=$archive_cmds_need_lc_RC
  16570. # Whether or not to disallow shared libs when runtime libs are static.
  16571. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  16572. # Compiler flag to allow reflexive dlopens.
  16573. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  16574. # Compiler flag to generate shared objects directly from archives.
  16575. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  16576. # Whether the compiler copes with passing no objects directly.
  16577. compiler_needs_object=$lt_compiler_needs_object_RC
  16578. # Create an old-style archive from a shared archive.
  16579. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  16580. # Create a temporary old-style archive to link instead of a shared archive.
  16581. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  16582. # Commands used to build a shared archive.
  16583. archive_cmds=$lt_archive_cmds_RC
  16584. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  16585. # Commands used to build a loadable module if different from building
  16586. # a shared archive.
  16587. module_cmds=$lt_module_cmds_RC
  16588. module_expsym_cmds=$lt_module_expsym_cmds_RC
  16589. # Whether we are building with GNU ld or not.
  16590. with_gnu_ld=$lt_with_gnu_ld_RC
  16591. # Flag that allows shared libraries with undefined symbols to be built.
  16592. allow_undefined_flag=$lt_allow_undefined_flag_RC
  16593. # Flag that enforces no undefined symbols.
  16594. no_undefined_flag=$lt_no_undefined_flag_RC
  16595. # Flag to hardcode \$libdir into a binary during linking.
  16596. # This must work even if \$libdir does not exist
  16597. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  16598. # Whether we need a single "-rpath" flag with a separated argument.
  16599. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  16600. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16601. # DIR into the resulting binary.
  16602. hardcode_direct=$hardcode_direct_RC
  16603. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16604. # DIR into the resulting binary and the resulting library dependency is
  16605. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16606. # library is relocated.
  16607. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  16608. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16609. # into the resulting binary.
  16610. hardcode_minus_L=$hardcode_minus_L_RC
  16611. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16612. # into the resulting binary.
  16613. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  16614. # Set to "yes" if building a shared library automatically hardcodes DIR
  16615. # into the library and all subsequent libraries and executables linked
  16616. # against it.
  16617. hardcode_automatic=$hardcode_automatic_RC
  16618. # Set to yes if linker adds runtime paths of dependent libraries
  16619. # to runtime path list.
  16620. inherit_rpath=$inherit_rpath_RC
  16621. # Whether libtool must link a program against all its dependency libraries.
  16622. link_all_deplibs=$link_all_deplibs_RC
  16623. # Set to "yes" if exported symbols are required.
  16624. always_export_symbols=$always_export_symbols_RC
  16625. # The commands to list exported symbols.
  16626. export_symbols_cmds=$lt_export_symbols_cmds_RC
  16627. # Symbols that should not be listed in the preloaded symbols.
  16628. exclude_expsyms=$lt_exclude_expsyms_RC
  16629. # Symbols that must always be exported.
  16630. include_expsyms=$lt_include_expsyms_RC
  16631. # Commands necessary for linking programs (against libraries) with templates.
  16632. prelink_cmds=$lt_prelink_cmds_RC
  16633. # Commands necessary for finishing linking programs.
  16634. postlink_cmds=$lt_postlink_cmds_RC
  16635. # Specify filename containing input files.
  16636. file_list_spec=$lt_file_list_spec_RC
  16637. # How to hardcode a shared library path into an executable.
  16638. hardcode_action=$hardcode_action_RC
  16639. # ### END LIBTOOL TAG CONFIG: RC
  16640. _LT_EOF
  16641. ;;
  16642. esac
  16643. done # for ac_tag
  16644. as_fn_exit 0
  16645. _ACEOF
  16646. ac_clean_files=$ac_clean_files_save
  16647. test $ac_write_fail = 0 ||
  16648. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16649. # configure is writing to config.log, and then calls config.status.
  16650. # config.status does its own redirection, appending to config.log.
  16651. # Unfortunately, on DOS this fails, as config.log is still kept open
  16652. # by configure, so config.status won't be able to write to it; its
  16653. # output is simply discarded. So we exec the FD to /dev/null,
  16654. # effectively closing config.log, so it can be properly (re)opened and
  16655. # appended to by config.status. When coming back to configure, we
  16656. # need to make the FD available again.
  16657. if test "$no_create" != yes; then
  16658. ac_cs_success=:
  16659. ac_config_status_args=
  16660. test "$silent" = yes &&
  16661. ac_config_status_args="$ac_config_status_args --quiet"
  16662. exec 5>/dev/null
  16663. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16664. exec 5>>config.log
  16665. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16666. # would make configure fail if this is the last instruction.
  16667. $ac_cs_success || as_fn_exit 1
  16668. fi
  16669. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16670. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16671. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16672. fi
  16673. # Finally: summary
  16674. if test "x$enable_curl" != "xyes"; then
  16675. MSG_CURL="no, many unit tests will not run"
  16676. else
  16677. MSG_CURL="yes"
  16678. fi
  16679. { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration Summary:
  16680. Operating System: ${host_os}
  16681. Threading lib: ${USE_THREADS}
  16682. libcurl (testing): ${MSG_CURL}
  16683. Target directory: ${prefix}
  16684. Messages: ${enable_messages}
  16685. Basic auth.: ${enable_bauth}
  16686. Digest auth.: ${enable_dauth}
  16687. Postproc: ${enable_postprocessor}
  16688. HTTPS support: ${MSG_HTTPS}
  16689. poll support: ${enable_poll=no}
  16690. epoll support: ${enable_epoll=no}
  16691. build docs: ${enable_doc}
  16692. build examples: ${enable_examples}
  16693. libmicrospdy: ${enable_spdy}
  16694. spdylay (testing): ${have_spdylay}
  16695. " >&5
  16696. $as_echo "$as_me: Configuration Summary:
  16697. Operating System: ${host_os}
  16698. Threading lib: ${USE_THREADS}
  16699. libcurl (testing): ${MSG_CURL}
  16700. Target directory: ${prefix}
  16701. Messages: ${enable_messages}
  16702. Basic auth.: ${enable_bauth}
  16703. Digest auth.: ${enable_dauth}
  16704. Postproc: ${enable_postprocessor}
  16705. HTTPS support: ${MSG_HTTPS}
  16706. poll support: ${enable_poll=no}
  16707. epoll support: ${enable_epoll=no}
  16708. build docs: ${enable_doc}
  16709. build examples: ${enable_examples}
  16710. libmicrospdy: ${enable_spdy}
  16711. spdylay (testing): ${have_spdylay}
  16712. " >&6;}
  16713. if test "x$enable_https" = "xyes"
  16714. then
  16715. { $as_echo "$as_me:${as_lineno-$LINENO}: HTTPS subsystem configuration:
  16716. License : LGPL only
  16717. " >&5
  16718. $as_echo "$as_me: HTTPS subsystem configuration:
  16719. License : LGPL only
  16720. " >&6;}
  16721. else
  16722. { $as_echo "$as_me:${as_lineno-$LINENO}:
  16723. License : LGPL or eCos
  16724. " >&5
  16725. $as_echo "$as_me:
  16726. License : LGPL or eCos
  16727. " >&6;}
  16728. fi
  16729. if test "x$enable_bauth" != "xyes" -o \
  16730. "x$enable_dauth" != "xyes" -o \
  16731. "x$enable_postprocessor" != "xyes"
  16732. then
  16733. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will be a custom build with missing symbols. Do NOT use this build in a distribution. Building with these kinds of configure options is only for custom builds for embedded systems." >&5
  16734. $as_echo "$as_me: WARNING: This will be a custom build with missing symbols. Do NOT use this build in a distribution. Building with these kinds of configure options is only for custom builds for embedded systems." >&6;}
  16735. fi