configure 666 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for lighttpd 1.4.64.
  4. #
  5. # Report bugs to <https://redmine.lighttpd.net/projects/lighttpd/boards/2>.
  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 \$(( 1 + 1 )) = 2 || exit 1
  188. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  189. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  192. PATH=/empty FPATH=/empty; export PATH FPATH
  193. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  194. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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: https://redmine.lighttpd.net/projects/lighttpd/boards/2
  260. $0: about your system, including any error possibly output
  261. $0: before this message. Then install a modern shell, or
  262. $0: manually run the script under such a shell if you do
  263. $0: have one."
  264. fi
  265. exit 1
  266. fi
  267. fi
  268. fi
  269. SHELL=${CONFIG_SHELL-/bin/sh}
  270. export SHELL
  271. # Unset more variables known to interfere with behavior of common tools.
  272. CLICOLOR_FORCE= GREP_OPTIONS=
  273. unset CLICOLOR_FORCE GREP_OPTIONS
  274. ## --------------------- ##
  275. ## M4sh Shell Functions. ##
  276. ## --------------------- ##
  277. # as_fn_unset VAR
  278. # ---------------
  279. # Portably unset VAR.
  280. as_fn_unset ()
  281. {
  282. { eval $1=; unset $1;}
  283. }
  284. as_unset=as_fn_unset
  285. # as_fn_set_status STATUS
  286. # -----------------------
  287. # Set $? to STATUS, without forking.
  288. as_fn_set_status ()
  289. {
  290. return $1
  291. } # as_fn_set_status
  292. # as_fn_exit STATUS
  293. # -----------------
  294. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  295. as_fn_exit ()
  296. {
  297. set +e
  298. as_fn_set_status $1
  299. exit $1
  300. } # as_fn_exit
  301. # as_fn_mkdir_p
  302. # -------------
  303. # Create "$as_dir" as a directory, including parents if necessary.
  304. as_fn_mkdir_p ()
  305. {
  306. case $as_dir in #(
  307. -*) as_dir=./$as_dir;;
  308. esac
  309. test -d "$as_dir" || eval $as_mkdir_p || {
  310. as_dirs=
  311. while :; do
  312. case $as_dir in #(
  313. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  314. *) as_qdir=$as_dir;;
  315. esac
  316. as_dirs="'$as_qdir' $as_dirs"
  317. as_dir=`$as_dirname -- "$as_dir" ||
  318. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  319. X"$as_dir" : 'X\(//\)[^/]' \| \
  320. X"$as_dir" : 'X\(//\)$' \| \
  321. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  322. $as_echo X"$as_dir" |
  323. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)[^/].*/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\/\)$/{
  332. s//\1/
  333. q
  334. }
  335. /^X\(\/\).*/{
  336. s//\1/
  337. q
  338. }
  339. s/.*/./; q'`
  340. test -d "$as_dir" && break
  341. done
  342. test -z "$as_dirs" || eval "mkdir $as_dirs"
  343. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  344. } # as_fn_mkdir_p
  345. # as_fn_executable_p FILE
  346. # -----------------------
  347. # Test if FILE is an executable regular file.
  348. as_fn_executable_p ()
  349. {
  350. test -f "$1" && test -x "$1"
  351. } # as_fn_executable_p
  352. # as_fn_append VAR VALUE
  353. # ----------------------
  354. # Append the text in VALUE to the end of the definition contained in VAR. Take
  355. # advantage of any shell optimizations that allow amortized linear growth over
  356. # repeated appends, instead of the typical quadratic growth present in naive
  357. # implementations.
  358. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  359. eval 'as_fn_append ()
  360. {
  361. eval $1+=\$2
  362. }'
  363. else
  364. as_fn_append ()
  365. {
  366. eval $1=\$$1\$2
  367. }
  368. fi # as_fn_append
  369. # as_fn_arith ARG...
  370. # ------------------
  371. # Perform arithmetic evaluation on the ARGs, and store the result in the
  372. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  373. # must be portable across $(()) and expr.
  374. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  375. eval 'as_fn_arith ()
  376. {
  377. as_val=$(( $* ))
  378. }'
  379. else
  380. as_fn_arith ()
  381. {
  382. as_val=`expr "$@" || test $? -eq 1`
  383. }
  384. fi # as_fn_arith
  385. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  386. # ----------------------------------------
  387. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  388. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  389. # script with STATUS, using 1 if that was 0.
  390. as_fn_error ()
  391. {
  392. as_status=$1; test $as_status -eq 0 && as_status=1
  393. if test "$4"; then
  394. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  395. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  396. fi
  397. $as_echo "$as_me: error: $2" >&2
  398. as_fn_exit $as_status
  399. } # as_fn_error
  400. if expr a : '\(a\)' >/dev/null 2>&1 &&
  401. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  402. as_expr=expr
  403. else
  404. as_expr=false
  405. fi
  406. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  407. as_basename=basename
  408. else
  409. as_basename=false
  410. fi
  411. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  412. as_dirname=dirname
  413. else
  414. as_dirname=false
  415. fi
  416. as_me=`$as_basename -- "$0" ||
  417. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  418. X"$0" : 'X\(//\)$' \| \
  419. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  420. $as_echo X/"$0" |
  421. sed '/^.*\/\([^/][^/]*\)\/*$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\/\)$/{
  426. s//\1/
  427. q
  428. }
  429. /^X\/\(\/\).*/{
  430. s//\1/
  431. q
  432. }
  433. s/.*/./; q'`
  434. # Avoid depending upon Character Ranges.
  435. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  436. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  437. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  438. as_cr_digits='0123456789'
  439. as_cr_alnum=$as_cr_Letters$as_cr_digits
  440. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  441. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  442. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  443. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  444. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  445. sed -n '
  446. p
  447. /[$]LINENO/=
  448. ' <$as_myself |
  449. sed '
  450. s/[$]LINENO.*/&-/
  451. t lineno
  452. b
  453. :lineno
  454. N
  455. :loop
  456. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  457. t loop
  458. s/-\n.*//
  459. ' >$as_me.lineno &&
  460. chmod +x "$as_me.lineno" ||
  461. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  462. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  463. # already done that, so ensure we don't try to do so again and fall
  464. # in an infinite loop. This has already happened in practice.
  465. _as_can_reexec=no; export _as_can_reexec
  466. # Don't try to exec as it changes $[0], causing all sort of problems
  467. # (the dirname of $[0] is not the place where we might find the
  468. # original and so on. Autoconf is especially sensitive to this).
  469. . "./$as_me.lineno"
  470. # Exit status is that of the last command.
  471. exit
  472. }
  473. ECHO_C= ECHO_N= ECHO_T=
  474. case `echo -n x` in #(((((
  475. -n*)
  476. case `echo 'xy\c'` in
  477. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  478. xy) ECHO_C='\c';;
  479. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  480. ECHO_T=' ';;
  481. esac;;
  482. *)
  483. ECHO_N='-n';;
  484. esac
  485. rm -f conf$$ conf$$.exe conf$$.file
  486. if test -d conf$$.dir; then
  487. rm -f conf$$.dir/conf$$.file
  488. else
  489. rm -f conf$$.dir
  490. mkdir conf$$.dir 2>/dev/null
  491. fi
  492. if (echo >conf$$.file) 2>/dev/null; then
  493. if ln -s conf$$.file conf$$ 2>/dev/null; then
  494. as_ln_s='ln -s'
  495. # ... but there are two gotchas:
  496. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  497. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  498. # In both cases, we have to default to `cp -pR'.
  499. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  500. as_ln_s='cp -pR'
  501. elif ln conf$$.file conf$$ 2>/dev/null; then
  502. as_ln_s=ln
  503. else
  504. as_ln_s='cp -pR'
  505. fi
  506. else
  507. as_ln_s='cp -pR'
  508. fi
  509. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  510. rmdir conf$$.dir 2>/dev/null
  511. if mkdir -p . 2>/dev/null; then
  512. as_mkdir_p='mkdir -p "$as_dir"'
  513. else
  514. test -d ./-p && rmdir ./-p
  515. as_mkdir_p=false
  516. fi
  517. as_test_x='test -x'
  518. as_executable_p=as_fn_executable_p
  519. # Sed expression to map a string onto a valid CPP name.
  520. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  521. # Sed expression to map a string onto a valid variable name.
  522. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  523. SHELL=${CONFIG_SHELL-/bin/sh}
  524. test -n "$DJDIR" || exec 7<&0 </dev/null
  525. exec 6>&1
  526. # Name of the host.
  527. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  528. # so uname gets run too.
  529. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  530. #
  531. # Initializations.
  532. #
  533. ac_default_prefix=/usr/local
  534. ac_clean_files=
  535. ac_config_libobj_dir=.
  536. LIBOBJS=
  537. cross_compiling=no
  538. subdirs=
  539. MFLAGS=
  540. MAKEFLAGS=
  541. # Identity of this package.
  542. PACKAGE_NAME='lighttpd'
  543. PACKAGE_TARNAME='lighttpd'
  544. PACKAGE_VERSION='1.4.64'
  545. PACKAGE_STRING='lighttpd 1.4.64'
  546. PACKAGE_BUGREPORT='https://redmine.lighttpd.net/projects/lighttpd/boards/2'
  547. PACKAGE_URL='https://www.lighttpd.net/'
  548. ac_unique_file="src/server.c"
  549. # Factoring default headers for most tests.
  550. ac_includes_default="\
  551. #include <stdio.h>
  552. #ifdef HAVE_SYS_TYPES_H
  553. # include <sys/types.h>
  554. #endif
  555. #ifdef HAVE_SYS_STAT_H
  556. # include <sys/stat.h>
  557. #endif
  558. #ifdef STDC_HEADERS
  559. # include <stdlib.h>
  560. # include <stddef.h>
  561. #else
  562. # ifdef HAVE_STDLIB_H
  563. # include <stdlib.h>
  564. # endif
  565. #endif
  566. #ifdef HAVE_STRING_H
  567. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  568. # include <memory.h>
  569. # endif
  570. # include <string.h>
  571. #endif
  572. #ifdef HAVE_STRINGS_H
  573. # include <strings.h>
  574. #endif
  575. #ifdef HAVE_INTTYPES_H
  576. # include <inttypes.h>
  577. #endif
  578. #ifdef HAVE_STDINT_H
  579. # include <stdint.h>
  580. #endif
  581. #ifdef HAVE_UNISTD_H
  582. # include <unistd.h>
  583. #endif"
  584. ac_subst_vars='am__EXEEXT_FALSE
  585. am__EXEEXT_TRUE
  586. LTLIBOBJS
  587. LIBOBJS
  588. SENDFILE_LIB
  589. CRYPT_LIB
  590. BUILD_WITH_LUA_FALSE
  591. BUILD_WITH_LUA_TRUE
  592. LUA_LIBS
  593. LUA_CFLAGS
  594. BUILD_WITH_MAXMINDDB_FALSE
  595. BUILD_WITH_MAXMINDDB_TRUE
  596. MAXMINDDB_LIB
  597. XXHASH_LIBS
  598. XXHASH_CFLAGS
  599. UUID_LIBS
  600. SQLITE_LIBS
  601. SQLITE_CFLAGS
  602. XML_LIBS
  603. XML_CFLAGS
  604. FAM_LIBS
  605. FAM_CFLAGS
  606. BROTLI_LIBS
  607. BROTLI_CFLAGS
  608. BZ_LIB
  609. ZSTD_LIB
  610. Z_LIB
  611. PCRECONFIG
  612. PCRE_LIB
  613. PCRE2CONFIG
  614. PCRE2_LIBS
  615. PCRE2_CFLAGS
  616. NSPR_LIBS
  617. NSPR_CFLAGS
  618. NSS_LIBS
  619. NSS_CFLAGS
  620. BUILD_WITH_NSS_FALSE
  621. BUILD_WITH_NSS_TRUE
  622. GNUTLS_LIBS
  623. GNUTLS_CFLAGS
  624. BUILD_WITH_GNUTLS_FALSE
  625. BUILD_WITH_GNUTLS_TRUE
  626. MTLS_LIBS
  627. BUILD_WITH_MBEDTLS_FALSE
  628. BUILD_WITH_MBEDTLS_TRUE
  629. WOLFSSL_LIBS
  630. WOLFSSL_CFLAGS
  631. BUILD_WITH_WOLFSSL_FALSE
  632. BUILD_WITH_WOLFSSL_TRUE
  633. CRYPTO_LIB
  634. OPENSSL_LIBS
  635. OPENSSL_CFLAGS
  636. BUILD_WITH_OPENSSL_FALSE
  637. BUILD_WITH_OPENSSL_TRUE
  638. KRB5_LIB
  639. BUILD_WITH_KRB5_FALSE
  640. BUILD_WITH_KRB5_TRUE
  641. LIBUNWIND_LIBS
  642. LIBUNWIND_CFLAGS
  643. ATTR_LIB
  644. BUILD_WITH_PAM_FALSE
  645. BUILD_WITH_PAM_TRUE
  646. PAM_LIB
  647. BUILD_WITH_LDAP_FALSE
  648. BUILD_WITH_LDAP_TRUE
  649. LBER_LIB
  650. LDAP_LIB
  651. SASL_CFLAGS
  652. SASL_LIBS
  653. BUILD_WITH_SASL_FALSE
  654. BUILD_WITH_SASL_TRUE
  655. DBI_CFLAGS
  656. DBI_LIBS
  657. BUILD_WITH_DBI_FALSE
  658. BUILD_WITH_DBI_TRUE
  659. BUILD_WITH_PGSQL_FALSE
  660. BUILD_WITH_PGSQL_TRUE
  661. PGSQL_CONFIG
  662. PGSQL_LIBS
  663. PGSQL_CFLAGS
  664. BUILD_WITH_MYSQL_FALSE
  665. BUILD_WITH_MYSQL_TRUE
  666. MYSQL_CONFIG
  667. MYSQL_LIBS
  668. MYSQL_CFLAGS
  669. LIBEV_LIBS
  670. LIBEV_CFLAGS
  671. PKG_CONFIG_LIBDIR
  672. PKG_CONFIG_PATH
  673. PKG_CONFIG
  674. DL_LIB
  675. ELFTC_LIB
  676. LT_SYS_LIBRARY_PATH
  677. OTOOL64
  678. OTOOL
  679. LIPO
  680. NMEDIT
  681. DSYMUTIL
  682. MANIFEST_TOOL
  683. RANLIB
  684. DLLTOOL
  685. OBJDUMP
  686. LN_S
  687. NM
  688. ac_ct_DUMPBIN
  689. DUMPBIN
  690. LIBTOOL
  691. LIGHTTPD_STATIC_FALSE
  692. LIGHTTPD_STATIC_TRUE
  693. NO_RDYNAMIC_FALSE
  694. NO_RDYNAMIC_TRUE
  695. ac_ct_AR
  696. AR
  697. LD
  698. FGREP
  699. EGREP
  700. GREP
  701. SED
  702. LDFLAGS_FOR_BUILD
  703. CPPFLAGS_FOR_BUILD
  704. CFLAGS_FOR_BUILD
  705. BUILD_OBJEXT
  706. BUILD_EXEEXT
  707. CPP_FOR_BUILD
  708. ac_ct_CC_FOR_BUILD
  709. CC_FOR_BUILD
  710. CPP
  711. am__fastdepCC_FALSE
  712. am__fastdepCC_TRUE
  713. CCDEPMODE
  714. am__nodep
  715. AMDEPBACKSLASH
  716. AMDEP_FALSE
  717. AMDEP_TRUE
  718. am__include
  719. DEPDIR
  720. OBJEXT
  721. EXEEXT
  722. ac_ct_CC
  723. CPPFLAGS
  724. LDFLAGS
  725. CFLAGS
  726. CC
  727. AM_BACKSLASH
  728. AM_DEFAULT_VERBOSITY
  729. AM_DEFAULT_V
  730. AM_V
  731. am__untar
  732. am__tar
  733. AMTAR
  734. am__leading_dot
  735. SET_MAKE
  736. AWK
  737. mkdir_p
  738. MKDIR_P
  739. INSTALL_STRIP_PROGRAM
  740. STRIP
  741. install_sh
  742. MAKEINFO
  743. AUTOHEADER
  744. AUTOMAKE
  745. AUTOCONF
  746. ACLOCAL
  747. VERSION
  748. PACKAGE
  749. CYGPATH_W
  750. am__isrc
  751. INSTALL_DATA
  752. INSTALL_SCRIPT
  753. INSTALL_PROGRAM
  754. host_os
  755. host_vendor
  756. host_cpu
  757. host
  758. build_os
  759. build_vendor
  760. build_cpu
  761. build
  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. runstatedir
  782. localstatedir
  783. sharedstatedir
  784. sysconfdir
  785. datadir
  786. datarootdir
  787. libexecdir
  788. sbindir
  789. bindir
  790. program_transform_name
  791. prefix
  792. exec_prefix
  793. PACKAGE_URL
  794. PACKAGE_BUGREPORT
  795. PACKAGE_STRING
  796. PACKAGE_VERSION
  797. PACKAGE_TARNAME
  798. PACKAGE_NAME
  799. PATH_SEPARATOR
  800. SHELL
  801. am__quote'
  802. ac_subst_files=''
  803. ac_user_opts='
  804. enable_option_checking
  805. enable_silent_rules
  806. enable_dependency_tracking
  807. with_gnu_ld
  808. enable_static
  809. enable_shared
  810. with_pic
  811. enable_fast_install
  812. with_aix_soname
  813. with_sysroot
  814. enable_libtool_lock
  815. with_libev
  816. with_mysql
  817. with_pgsql
  818. with_dbi
  819. with_sasl
  820. with_ldap
  821. with_pam
  822. with_attr
  823. with_valgrind
  824. with_libunwind
  825. with_krb5
  826. with_krb5_includes
  827. with_krb5_libs
  828. with_openssl
  829. with_openssl_includes
  830. with_openssl_libs
  831. with_wolfssl
  832. with_mbedtls
  833. with_nettle
  834. with_gnutls
  835. with_nss
  836. with_pcre
  837. with_pcre2
  838. with_zlib
  839. with_zstd
  840. with_bzip2
  841. with_brotli
  842. with_fam
  843. with_webdav_props
  844. with_libxml
  845. with_sqlite
  846. with_webdav_locks
  847. with_uuid
  848. with_xxhash
  849. with_maxminddb
  850. with_lua
  851. enable_lfs
  852. enable_largefile
  853. enable_ipv6
  854. enable_mmap
  855. enable_extra_warnings
  856. '
  857. ac_precious_vars='build_alias
  858. host_alias
  859. target_alias
  860. CC
  861. CFLAGS
  862. LDFLAGS
  863. LIBS
  864. CPPFLAGS
  865. CPP
  866. LT_SYS_LIBRARY_PATH
  867. PKG_CONFIG
  868. PKG_CONFIG_PATH
  869. PKG_CONFIG_LIBDIR
  870. LIBEV_CFLAGS
  871. LIBEV_LIBS
  872. MYSQL_CFLAGS
  873. MYSQL_LIBS
  874. PGSQL_CFLAGS
  875. PGSQL_LIBS
  876. LIBUNWIND_CFLAGS
  877. LIBUNWIND_LIBS
  878. WOLFSSL_CFLAGS
  879. WOLFSSL_LIBS
  880. GNUTLS_CFLAGS
  881. GNUTLS_LIBS
  882. NSS_CFLAGS
  883. NSS_LIBS
  884. NSPR_CFLAGS
  885. NSPR_LIBS
  886. PCRE2_CFLAGS
  887. PCRE2_LIBS
  888. BROTLI_CFLAGS
  889. BROTLI_LIBS
  890. FAM_CFLAGS
  891. FAM_LIBS
  892. XML_CFLAGS
  893. XML_LIBS
  894. SQLITE_CFLAGS
  895. SQLITE_LIBS
  896. XXHASH_CFLAGS
  897. XXHASH_LIBS
  898. LUA_CFLAGS
  899. LUA_LIBS'
  900. # Initialize some variables set by options.
  901. ac_init_help=
  902. ac_init_version=false
  903. ac_unrecognized_opts=
  904. ac_unrecognized_sep=
  905. # The variables have the same names as the options, with
  906. # dashes changed to underlines.
  907. cache_file=/dev/null
  908. exec_prefix=NONE
  909. no_create=
  910. no_recursion=
  911. prefix=NONE
  912. program_prefix=NONE
  913. program_suffix=NONE
  914. program_transform_name=s,x,x,
  915. silent=
  916. site=
  917. srcdir=
  918. verbose=
  919. x_includes=NONE
  920. x_libraries=NONE
  921. # Installation directory options.
  922. # These are left unexpanded so users can "make install exec_prefix=/foo"
  923. # and all the variables that are supposed to be based on exec_prefix
  924. # by default will actually change.
  925. # Use braces instead of parens because sh, perl, etc. also accept them.
  926. # (The list follows the same order as the GNU Coding Standards.)
  927. bindir='${exec_prefix}/bin'
  928. sbindir='${exec_prefix}/sbin'
  929. libexecdir='${exec_prefix}/libexec'
  930. datarootdir='${prefix}/share'
  931. datadir='${datarootdir}'
  932. sysconfdir='${prefix}/etc'
  933. sharedstatedir='${prefix}/com'
  934. localstatedir='${prefix}/var'
  935. runstatedir='${localstatedir}/run'
  936. includedir='${prefix}/include'
  937. oldincludedir='/usr/include'
  938. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  939. infodir='${datarootdir}/info'
  940. htmldir='${docdir}'
  941. dvidir='${docdir}'
  942. pdfdir='${docdir}'
  943. psdir='${docdir}'
  944. libdir='${exec_prefix}/lib'
  945. localedir='${datarootdir}/locale'
  946. mandir='${datarootdir}/man'
  947. ac_prev=
  948. ac_dashdash=
  949. for ac_option
  950. do
  951. # If the previous option needs an argument, assign it.
  952. if test -n "$ac_prev"; then
  953. eval $ac_prev=\$ac_option
  954. ac_prev=
  955. continue
  956. fi
  957. case $ac_option in
  958. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  959. *=) ac_optarg= ;;
  960. *) ac_optarg=yes ;;
  961. esac
  962. # Accept the important Cygnus configure options, so we can diagnose typos.
  963. case $ac_dashdash$ac_option in
  964. --)
  965. ac_dashdash=yes ;;
  966. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  967. ac_prev=bindir ;;
  968. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  969. bindir=$ac_optarg ;;
  970. -build | --build | --buil | --bui | --bu)
  971. ac_prev=build_alias ;;
  972. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  973. build_alias=$ac_optarg ;;
  974. -cache-file | --cache-file | --cache-fil | --cache-fi \
  975. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  976. ac_prev=cache_file ;;
  977. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  978. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  979. cache_file=$ac_optarg ;;
  980. --config-cache | -C)
  981. cache_file=config.cache ;;
  982. -datadir | --datadir | --datadi | --datad)
  983. ac_prev=datadir ;;
  984. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  985. datadir=$ac_optarg ;;
  986. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  987. | --dataroo | --dataro | --datar)
  988. ac_prev=datarootdir ;;
  989. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  990. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  991. datarootdir=$ac_optarg ;;
  992. -disable-* | --disable-*)
  993. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  994. # Reject names that are not valid shell variable names.
  995. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  996. as_fn_error $? "invalid feature name: $ac_useropt"
  997. ac_useropt_orig=$ac_useropt
  998. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  999. case $ac_user_opts in
  1000. *"
  1001. "enable_$ac_useropt"
  1002. "*) ;;
  1003. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1004. ac_unrecognized_sep=', ';;
  1005. esac
  1006. eval enable_$ac_useropt=no ;;
  1007. -docdir | --docdir | --docdi | --doc | --do)
  1008. ac_prev=docdir ;;
  1009. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1010. docdir=$ac_optarg ;;
  1011. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1012. ac_prev=dvidir ;;
  1013. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1014. dvidir=$ac_optarg ;;
  1015. -enable-* | --enable-*)
  1016. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1017. # Reject names that are not valid shell variable names.
  1018. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1019. as_fn_error $? "invalid feature name: $ac_useropt"
  1020. ac_useropt_orig=$ac_useropt
  1021. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1022. case $ac_user_opts in
  1023. *"
  1024. "enable_$ac_useropt"
  1025. "*) ;;
  1026. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1027. ac_unrecognized_sep=', ';;
  1028. esac
  1029. eval enable_$ac_useropt=\$ac_optarg ;;
  1030. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1031. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1032. | --exec | --exe | --ex)
  1033. ac_prev=exec_prefix ;;
  1034. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1035. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1036. | --exec=* | --exe=* | --ex=*)
  1037. exec_prefix=$ac_optarg ;;
  1038. -gas | --gas | --ga | --g)
  1039. # Obsolete; use --with-gas.
  1040. with_gas=yes ;;
  1041. -help | --help | --hel | --he | -h)
  1042. ac_init_help=long ;;
  1043. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1044. ac_init_help=recursive ;;
  1045. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1046. ac_init_help=short ;;
  1047. -host | --host | --hos | --ho)
  1048. ac_prev=host_alias ;;
  1049. -host=* | --host=* | --hos=* | --ho=*)
  1050. host_alias=$ac_optarg ;;
  1051. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1052. ac_prev=htmldir ;;
  1053. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1054. | --ht=*)
  1055. htmldir=$ac_optarg ;;
  1056. -includedir | --includedir | --includedi | --included | --include \
  1057. | --includ | --inclu | --incl | --inc)
  1058. ac_prev=includedir ;;
  1059. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1060. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1061. includedir=$ac_optarg ;;
  1062. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1063. ac_prev=infodir ;;
  1064. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1065. infodir=$ac_optarg ;;
  1066. -libdir | --libdir | --libdi | --libd)
  1067. ac_prev=libdir ;;
  1068. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1069. libdir=$ac_optarg ;;
  1070. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1071. | --libexe | --libex | --libe)
  1072. ac_prev=libexecdir ;;
  1073. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1074. | --libexe=* | --libex=* | --libe=*)
  1075. libexecdir=$ac_optarg ;;
  1076. -localedir | --localedir | --localedi | --localed | --locale)
  1077. ac_prev=localedir ;;
  1078. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1079. localedir=$ac_optarg ;;
  1080. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1081. | --localstate | --localstat | --localsta | --localst | --locals)
  1082. ac_prev=localstatedir ;;
  1083. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1084. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1085. localstatedir=$ac_optarg ;;
  1086. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1087. ac_prev=mandir ;;
  1088. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1089. mandir=$ac_optarg ;;
  1090. -nfp | --nfp | --nf)
  1091. # Obsolete; use --without-fp.
  1092. with_fp=no ;;
  1093. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1094. | --no-cr | --no-c | -n)
  1095. no_create=yes ;;
  1096. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1097. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1098. no_recursion=yes ;;
  1099. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1100. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1101. | --oldin | --oldi | --old | --ol | --o)
  1102. ac_prev=oldincludedir ;;
  1103. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1104. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1105. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1106. oldincludedir=$ac_optarg ;;
  1107. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1108. ac_prev=prefix ;;
  1109. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1110. prefix=$ac_optarg ;;
  1111. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1112. | --program-pre | --program-pr | --program-p)
  1113. ac_prev=program_prefix ;;
  1114. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1115. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1116. program_prefix=$ac_optarg ;;
  1117. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1118. | --program-suf | --program-su | --program-s)
  1119. ac_prev=program_suffix ;;
  1120. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1121. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1122. program_suffix=$ac_optarg ;;
  1123. -program-transform-name | --program-transform-name \
  1124. | --program-transform-nam | --program-transform-na \
  1125. | --program-transform-n | --program-transform- \
  1126. | --program-transform | --program-transfor \
  1127. | --program-transfo | --program-transf \
  1128. | --program-trans | --program-tran \
  1129. | --progr-tra | --program-tr | --program-t)
  1130. ac_prev=program_transform_name ;;
  1131. -program-transform-name=* | --program-transform-name=* \
  1132. | --program-transform-nam=* | --program-transform-na=* \
  1133. | --program-transform-n=* | --program-transform-=* \
  1134. | --program-transform=* | --program-transfor=* \
  1135. | --program-transfo=* | --program-transf=* \
  1136. | --program-trans=* | --program-tran=* \
  1137. | --progr-tra=* | --program-tr=* | --program-t=*)
  1138. program_transform_name=$ac_optarg ;;
  1139. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1140. ac_prev=pdfdir ;;
  1141. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1142. pdfdir=$ac_optarg ;;
  1143. -psdir | --psdir | --psdi | --psd | --ps)
  1144. ac_prev=psdir ;;
  1145. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1146. psdir=$ac_optarg ;;
  1147. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1148. | -silent | --silent | --silen | --sile | --sil)
  1149. silent=yes ;;
  1150. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1151. | --runstate | --runstat | --runsta | --runst | --runs \
  1152. | --run | --ru | --r)
  1153. ac_prev=runstatedir ;;
  1154. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1155. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1156. | --run=* | --ru=* | --r=*)
  1157. runstatedir=$ac_optarg ;;
  1158. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1159. ac_prev=sbindir ;;
  1160. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1161. | --sbi=* | --sb=*)
  1162. sbindir=$ac_optarg ;;
  1163. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1164. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1165. | --sharedst | --shareds | --shared | --share | --shar \
  1166. | --sha | --sh)
  1167. ac_prev=sharedstatedir ;;
  1168. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1169. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1170. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1171. | --sha=* | --sh=*)
  1172. sharedstatedir=$ac_optarg ;;
  1173. -site | --site | --sit)
  1174. ac_prev=site ;;
  1175. -site=* | --site=* | --sit=*)
  1176. site=$ac_optarg ;;
  1177. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1178. ac_prev=srcdir ;;
  1179. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1180. srcdir=$ac_optarg ;;
  1181. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1182. | --syscon | --sysco | --sysc | --sys | --sy)
  1183. ac_prev=sysconfdir ;;
  1184. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1185. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1186. sysconfdir=$ac_optarg ;;
  1187. -target | --target | --targe | --targ | --tar | --ta | --t)
  1188. ac_prev=target_alias ;;
  1189. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1190. target_alias=$ac_optarg ;;
  1191. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1192. verbose=yes ;;
  1193. -version | --version | --versio | --versi | --vers | -V)
  1194. ac_init_version=: ;;
  1195. -with-* | --with-*)
  1196. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1197. # Reject names that are not valid shell variable names.
  1198. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1199. as_fn_error $? "invalid package name: $ac_useropt"
  1200. ac_useropt_orig=$ac_useropt
  1201. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1202. case $ac_user_opts in
  1203. *"
  1204. "with_$ac_useropt"
  1205. "*) ;;
  1206. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1207. ac_unrecognized_sep=', ';;
  1208. esac
  1209. eval with_$ac_useropt=\$ac_optarg ;;
  1210. -without-* | --without-*)
  1211. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1212. # Reject names that are not valid shell variable names.
  1213. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1214. as_fn_error $? "invalid package name: $ac_useropt"
  1215. ac_useropt_orig=$ac_useropt
  1216. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1217. case $ac_user_opts in
  1218. *"
  1219. "with_$ac_useropt"
  1220. "*) ;;
  1221. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1222. ac_unrecognized_sep=', ';;
  1223. esac
  1224. eval with_$ac_useropt=no ;;
  1225. --x)
  1226. # Obsolete; use --with-x.
  1227. with_x=yes ;;
  1228. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1229. | --x-incl | --x-inc | --x-in | --x-i)
  1230. ac_prev=x_includes ;;
  1231. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1232. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1233. x_includes=$ac_optarg ;;
  1234. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1235. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1236. ac_prev=x_libraries ;;
  1237. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1238. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1239. x_libraries=$ac_optarg ;;
  1240. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1241. Try \`$0 --help' for more information"
  1242. ;;
  1243. *=*)
  1244. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1245. # Reject names that are not valid shell variable names.
  1246. case $ac_envvar in #(
  1247. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1248. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1249. esac
  1250. eval $ac_envvar=\$ac_optarg
  1251. export $ac_envvar ;;
  1252. *)
  1253. # FIXME: should be removed in autoconf 3.0.
  1254. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1255. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1256. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1257. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1258. ;;
  1259. esac
  1260. done
  1261. if test -n "$ac_prev"; then
  1262. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1263. as_fn_error $? "missing argument to $ac_option"
  1264. fi
  1265. if test -n "$ac_unrecognized_opts"; then
  1266. case $enable_option_checking in
  1267. no) ;;
  1268. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1269. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1270. esac
  1271. fi
  1272. # Check all directory arguments for consistency.
  1273. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1274. datadir sysconfdir sharedstatedir localstatedir includedir \
  1275. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1276. libdir localedir mandir runstatedir
  1277. do
  1278. eval ac_val=\$$ac_var
  1279. # Remove trailing slashes.
  1280. case $ac_val in
  1281. */ )
  1282. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1283. eval $ac_var=\$ac_val;;
  1284. esac
  1285. # Be sure to have absolute directory names.
  1286. case $ac_val in
  1287. [\\/$]* | ?:[\\/]* ) continue;;
  1288. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1289. esac
  1290. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1291. done
  1292. # There might be people who depend on the old broken behavior: `$host'
  1293. # used to hold the argument of --host etc.
  1294. # FIXME: To remove some day.
  1295. build=$build_alias
  1296. host=$host_alias
  1297. target=$target_alias
  1298. # FIXME: To remove some day.
  1299. if test "x$host_alias" != x; then
  1300. if test "x$build_alias" = x; then
  1301. cross_compiling=maybe
  1302. elif test "x$build_alias" != "x$host_alias"; then
  1303. cross_compiling=yes
  1304. fi
  1305. fi
  1306. ac_tool_prefix=
  1307. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1308. test "$silent" = yes && exec 6>/dev/null
  1309. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1310. ac_ls_di=`ls -di .` &&
  1311. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1312. as_fn_error $? "working directory cannot be determined"
  1313. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1314. as_fn_error $? "pwd does not report name of working directory"
  1315. # Find the source files, if location was not specified.
  1316. if test -z "$srcdir"; then
  1317. ac_srcdir_defaulted=yes
  1318. # Try the directory containing this script, then the parent directory.
  1319. ac_confdir=`$as_dirname -- "$as_myself" ||
  1320. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1321. X"$as_myself" : 'X\(//\)[^/]' \| \
  1322. X"$as_myself" : 'X\(//\)$' \| \
  1323. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1324. $as_echo X"$as_myself" |
  1325. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1326. s//\1/
  1327. q
  1328. }
  1329. /^X\(\/\/\)[^/].*/{
  1330. s//\1/
  1331. q
  1332. }
  1333. /^X\(\/\/\)$/{
  1334. s//\1/
  1335. q
  1336. }
  1337. /^X\(\/\).*/{
  1338. s//\1/
  1339. q
  1340. }
  1341. s/.*/./; q'`
  1342. srcdir=$ac_confdir
  1343. if test ! -r "$srcdir/$ac_unique_file"; then
  1344. srcdir=..
  1345. fi
  1346. else
  1347. ac_srcdir_defaulted=no
  1348. fi
  1349. if test ! -r "$srcdir/$ac_unique_file"; then
  1350. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1351. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1352. fi
  1353. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1354. ac_abs_confdir=`(
  1355. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1356. pwd)`
  1357. # When building in place, set srcdir=.
  1358. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1359. srcdir=.
  1360. fi
  1361. # Remove unnecessary trailing slashes from srcdir.
  1362. # Double slashes in file names in object file debugging info
  1363. # mess up M-x gdb in Emacs.
  1364. case $srcdir in
  1365. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1366. esac
  1367. for ac_var in $ac_precious_vars; do
  1368. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1369. eval ac_env_${ac_var}_value=\$${ac_var}
  1370. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1371. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1372. done
  1373. #
  1374. # Report the --help message.
  1375. #
  1376. if test "$ac_init_help" = "long"; then
  1377. # Omit some internal or obsolete options to make the list less imposing.
  1378. # This message is too long to be a string in the A/UX 3.1 sh.
  1379. cat <<_ACEOF
  1380. \`configure' configures lighttpd 1.4.64 to adapt to many kinds of systems.
  1381. Usage: $0 [OPTION]... [VAR=VALUE]...
  1382. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1383. VAR=VALUE. See below for descriptions of some of the useful variables.
  1384. Defaults for the options are specified in brackets.
  1385. Configuration:
  1386. -h, --help display this help and exit
  1387. --help=short display options specific to this package
  1388. --help=recursive display the short help of all the included packages
  1389. -V, --version display version information and exit
  1390. -q, --quiet, --silent do not print \`checking ...' messages
  1391. --cache-file=FILE cache test results in FILE [disabled]
  1392. -C, --config-cache alias for \`--cache-file=config.cache'
  1393. -n, --no-create do not create output files
  1394. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1395. Installation directories:
  1396. --prefix=PREFIX install architecture-independent files in PREFIX
  1397. [$ac_default_prefix]
  1398. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1399. [PREFIX]
  1400. By default, \`make install' will install all the files in
  1401. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1402. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1403. for instance \`--prefix=\$HOME'.
  1404. For better control, use the options below.
  1405. Fine tuning of the installation directories:
  1406. --bindir=DIR user executables [EPREFIX/bin]
  1407. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1408. --libexecdir=DIR program executables [EPREFIX/libexec]
  1409. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1410. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1411. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1412. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1413. --libdir=DIR object code libraries [EPREFIX/lib]
  1414. --includedir=DIR C header files [PREFIX/include]
  1415. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1416. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1417. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1418. --infodir=DIR info documentation [DATAROOTDIR/info]
  1419. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1420. --mandir=DIR man documentation [DATAROOTDIR/man]
  1421. --docdir=DIR documentation root [DATAROOTDIR/doc/lighttpd]
  1422. --htmldir=DIR html documentation [DOCDIR]
  1423. --dvidir=DIR dvi documentation [DOCDIR]
  1424. --pdfdir=DIR pdf documentation [DOCDIR]
  1425. --psdir=DIR ps documentation [DOCDIR]
  1426. _ACEOF
  1427. cat <<\_ACEOF
  1428. Program names:
  1429. --program-prefix=PREFIX prepend PREFIX to installed program names
  1430. --program-suffix=SUFFIX append SUFFIX to installed program names
  1431. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1432. System types:
  1433. --build=BUILD configure for building on BUILD [guessed]
  1434. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1435. _ACEOF
  1436. fi
  1437. if test -n "$ac_init_help"; then
  1438. case $ac_init_help in
  1439. short | recursive ) echo "Configuration of lighttpd 1.4.64:";;
  1440. esac
  1441. cat <<\_ACEOF
  1442. Optional Features:
  1443. --disable-option-checking ignore unrecognized --enable/--with options
  1444. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1445. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1446. --enable-silent-rules less verbose build output (undo: "make V=1")
  1447. --disable-silent-rules verbose build output (undo: "make V=0")
  1448. --enable-dependency-tracking
  1449. do not reject slow dependency extractors
  1450. --disable-dependency-tracking
  1451. speeds up one-time build
  1452. --enable-static[=PKGS] build static libraries [default=no]
  1453. --enable-shared[=PKGS] build shared libraries [default=yes]
  1454. --enable-fast-install[=PKGS]
  1455. optimize for fast installation [default=yes]
  1456. --disable-libtool-lock avoid locking (might break parallel builds)
  1457. --enable-lfs Turn on Large File System (default)
  1458. --disable-largefile omit support for large files
  1459. --disable-ipv6 disable IPv6 support
  1460. --enable-mmap use mmap if available
  1461. --enable-extra-warnings enable extra warnings (gcc specific)
  1462. Optional Packages:
  1463. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1464. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1465. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1466. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1467. both]
  1468. --with-aix-soname=aix|svr4|both
  1469. shared library versioning (aka "SONAME") variant to
  1470. provide on AIX, [default=aix].
  1471. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1472. compiler's sysroot if not specified).
  1473. --with-libev[=PATH] Include libev support for fdevent handlers in
  1474. PATH/include and PATH/lib
  1475. --with-mysql[=PATH] Include MySQL support. PATH is the path to
  1476. 'mysql_config'
  1477. --with-pgsql[=PATH] Include PgSQL support. PATH is the path to
  1478. 'pg_config'
  1479. --with-dbi[=PATH] Include DBI support in PATH/include/dbi.h and
  1480. PATH/lib
  1481. --with-sasl[=PATH] Include SASL support in PATH/include/sasl/sasl.h and
  1482. PATH/lib
  1483. --with-ldap enable LDAP support
  1484. --with-pam enable PAM support
  1485. --with-attr enable extended attribute support
  1486. --with-valgrind enable internal support for valgrind
  1487. --with-libunwind Include libunwind support for backtraces on assert
  1488. failures
  1489. --with-krb5[=DIR] Use Kerberos 5
  1490. --with-krb5-includes=DIR
  1491. Kerberos includes
  1492. --with-krb5-libs=DIR Kerberos libraries
  1493. --with-openssl[=DIR] Include openssl support (default no)
  1494. --with-openssl-includes=DIR
  1495. OpenSSL includes
  1496. --with-openssl-libs=DIR OpenSSL libraries
  1497. --with-wolfssl[=DIR] Include wolfSSL support (default no)
  1498. --with-mbedtls[=DIR] Include mbedTLS support. DIR points to the
  1499. installation root. (default no)
  1500. --with-nettle[=DIR] Include Nettle support (default no)
  1501. --with-gnutls[=DIR] Include GnuTLS support. DIR points to the
  1502. installation root. (default no)
  1503. --with-nss[=DIR] Include NSS support. DIR points to the installation
  1504. root. (default no)
  1505. --with-pcre Enable pcre support (default no)
  1506. --with-pcre2 Enable pcre2 support (default yes)
  1507. --with-zlib Enable zlib support for mod_deflate
  1508. --with-zstd Enable zstd support for mod_deflate
  1509. --with-bzip2 Enable bzip2 support for mod_deflate
  1510. --with-brotli Enable brotli support for mod_deflate
  1511. --with-fam fam/gamin for reducing number of stat() calls
  1512. --with-webdav-props properties in mod_webdav
  1513. --with-libxml libxml2 for properties in mod_webdav
  1514. --with-sqlite sqlite for properties in mod_webdav
  1515. --with-webdav-locks locks in mod_webdav (requires webdav properties)
  1516. --with-uuid uuid for locks in mod_webdav
  1517. --with-xxhash Enable system-provided xxhash
  1518. --with-maxminddb IP-based geolocation lookup
  1519. --with-lua lua engine for mod_magnet
  1520. Some influential environment variables:
  1521. CC C compiler command
  1522. CFLAGS C compiler flags
  1523. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1524. nonstandard directory <lib dir>
  1525. LIBS libraries to pass to the linker, e.g. -l<library>
  1526. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1527. you have headers in a nonstandard directory <include dir>
  1528. CPP C preprocessor
  1529. LT_SYS_LIBRARY_PATH
  1530. User-defined run-time library search path.
  1531. PKG_CONFIG path to pkg-config utility
  1532. PKG_CONFIG_PATH
  1533. directories to add to pkg-config's search path
  1534. PKG_CONFIG_LIBDIR
  1535. path overriding pkg-config's built-in search path
  1536. LIBEV_CFLAGS
  1537. C compiler flags for LIBEV, overriding pkg-config
  1538. LIBEV_LIBS linker flags for LIBEV, overriding pkg-config
  1539. MYSQL_CFLAGS
  1540. C compiler flags for MYSQL, overriding pkg-config
  1541. MYSQL_LIBS linker flags for MYSQL, overriding pkg-config
  1542. PGSQL_CFLAGS
  1543. C compiler flags for PGSQL, overriding pkg-config
  1544. PGSQL_LIBS linker flags for PGSQL, overriding pkg-config
  1545. LIBUNWIND_CFLAGS
  1546. C compiler flags for LIBUNWIND, overriding pkg-config
  1547. LIBUNWIND_LIBS
  1548. linker flags for LIBUNWIND, overriding pkg-config
  1549. WOLFSSL_CFLAGS
  1550. C compiler flags for WOLFSSL, overriding pkg-config
  1551. WOLFSSL_LIBS
  1552. linker flags for WOLFSSL, overriding pkg-config
  1553. GNUTLS_CFLAGS
  1554. C compiler flags for GNUTLS, overriding pkg-config
  1555. GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
  1556. NSS_CFLAGS C compiler flags for NSS, overriding pkg-config
  1557. NSS_LIBS linker flags for NSS, overriding pkg-config
  1558. NSPR_CFLAGS C compiler flags for NSPR, overriding pkg-config
  1559. NSPR_LIBS linker flags for NSPR, overriding pkg-config
  1560. PCRE2_CFLAGS
  1561. C compiler flags for PCRE2, overriding pkg-config
  1562. PCRE2_LIBS linker flags for PCRE2, overriding pkg-config
  1563. BROTLI_CFLAGS
  1564. C compiler flags for BROTLI, overriding pkg-config
  1565. BROTLI_LIBS linker flags for BROTLI, overriding pkg-config
  1566. FAM_CFLAGS C compiler flags for FAM, overriding pkg-config
  1567. FAM_LIBS linker flags for FAM, overriding pkg-config
  1568. XML_CFLAGS C compiler flags for XML, overriding pkg-config
  1569. XML_LIBS linker flags for XML, overriding pkg-config
  1570. SQLITE_CFLAGS
  1571. C compiler flags for SQLITE, overriding pkg-config
  1572. SQLITE_LIBS linker flags for SQLITE, overriding pkg-config
  1573. XXHASH_CFLAGS
  1574. C compiler flags for XXHASH, overriding pkg-config
  1575. XXHASH_LIBS linker flags for XXHASH, overriding pkg-config
  1576. LUA_CFLAGS C compiler flags for LUA, overriding pkg-config
  1577. LUA_LIBS linker flags for LUA, overriding pkg-config
  1578. Use these variables to override the choices made by `configure' or to help
  1579. it to find libraries and programs with nonstandard names/locations.
  1580. Report bugs to <https://redmine.lighttpd.net/projects/lighttpd/boards/2>.
  1581. lighttpd home page: <https://www.lighttpd.net/>.
  1582. _ACEOF
  1583. ac_status=$?
  1584. fi
  1585. if test "$ac_init_help" = "recursive"; then
  1586. # If there are subdirs, report their specific --help.
  1587. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1588. test -d "$ac_dir" ||
  1589. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1590. continue
  1591. ac_builddir=.
  1592. case "$ac_dir" in
  1593. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1594. *)
  1595. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1596. # A ".." for each directory in $ac_dir_suffix.
  1597. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1598. case $ac_top_builddir_sub in
  1599. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1600. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1601. esac ;;
  1602. esac
  1603. ac_abs_top_builddir=$ac_pwd
  1604. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1605. # for backward compatibility:
  1606. ac_top_builddir=$ac_top_build_prefix
  1607. case $srcdir in
  1608. .) # We are building in place.
  1609. ac_srcdir=.
  1610. ac_top_srcdir=$ac_top_builddir_sub
  1611. ac_abs_top_srcdir=$ac_pwd ;;
  1612. [\\/]* | ?:[\\/]* ) # Absolute name.
  1613. ac_srcdir=$srcdir$ac_dir_suffix;
  1614. ac_top_srcdir=$srcdir
  1615. ac_abs_top_srcdir=$srcdir ;;
  1616. *) # Relative name.
  1617. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1618. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1619. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1620. esac
  1621. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1622. cd "$ac_dir" || { ac_status=$?; continue; }
  1623. # Check for guested configure.
  1624. if test -f "$ac_srcdir/configure.gnu"; then
  1625. echo &&
  1626. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1627. elif test -f "$ac_srcdir/configure"; then
  1628. echo &&
  1629. $SHELL "$ac_srcdir/configure" --help=recursive
  1630. else
  1631. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1632. fi || ac_status=$?
  1633. cd "$ac_pwd" || { ac_status=$?; break; }
  1634. done
  1635. fi
  1636. test -n "$ac_init_help" && exit $ac_status
  1637. if $ac_init_version; then
  1638. cat <<\_ACEOF
  1639. lighttpd configure 1.4.64
  1640. generated by GNU Autoconf 2.69
  1641. Copyright (C) 2012 Free Software Foundation, Inc.
  1642. This configure script is free software; the Free Software Foundation
  1643. gives unlimited permission to copy, distribute and modify it.
  1644. _ACEOF
  1645. exit
  1646. fi
  1647. ## ------------------------ ##
  1648. ## Autoconf initialization. ##
  1649. ## ------------------------ ##
  1650. # ac_fn_c_try_compile LINENO
  1651. # --------------------------
  1652. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1653. ac_fn_c_try_compile ()
  1654. {
  1655. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1656. rm -f conftest.$ac_objext
  1657. if { { ac_try="$ac_compile"
  1658. case "(($ac_try" in
  1659. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1660. *) ac_try_echo=$ac_try;;
  1661. esac
  1662. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1663. $as_echo "$ac_try_echo"; } >&5
  1664. (eval "$ac_compile") 2>conftest.err
  1665. ac_status=$?
  1666. if test -s conftest.err; then
  1667. grep -v '^ *+' conftest.err >conftest.er1
  1668. cat conftest.er1 >&5
  1669. mv -f conftest.er1 conftest.err
  1670. fi
  1671. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1672. test $ac_status = 0; } && {
  1673. test -z "$ac_c_werror_flag" ||
  1674. test ! -s conftest.err
  1675. } && test -s conftest.$ac_objext; then :
  1676. ac_retval=0
  1677. else
  1678. $as_echo "$as_me: failed program was:" >&5
  1679. sed 's/^/| /' conftest.$ac_ext >&5
  1680. ac_retval=1
  1681. fi
  1682. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1683. as_fn_set_status $ac_retval
  1684. } # ac_fn_c_try_compile
  1685. # ac_fn_c_try_cpp LINENO
  1686. # ----------------------
  1687. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1688. ac_fn_c_try_cpp ()
  1689. {
  1690. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1691. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1692. case "(($ac_try" in
  1693. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1694. *) ac_try_echo=$ac_try;;
  1695. esac
  1696. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1697. $as_echo "$ac_try_echo"; } >&5
  1698. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1699. ac_status=$?
  1700. if test -s conftest.err; then
  1701. grep -v '^ *+' conftest.err >conftest.er1
  1702. cat conftest.er1 >&5
  1703. mv -f conftest.er1 conftest.err
  1704. fi
  1705. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1706. test $ac_status = 0; } > conftest.i && {
  1707. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1708. test ! -s conftest.err
  1709. }; then :
  1710. ac_retval=0
  1711. else
  1712. $as_echo "$as_me: failed program was:" >&5
  1713. sed 's/^/| /' conftest.$ac_ext >&5
  1714. ac_retval=1
  1715. fi
  1716. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1717. as_fn_set_status $ac_retval
  1718. } # ac_fn_c_try_cpp
  1719. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1720. # -------------------------------------------------------
  1721. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1722. # the include files in INCLUDES and setting the cache variable VAR
  1723. # accordingly.
  1724. ac_fn_c_check_header_mongrel ()
  1725. {
  1726. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1727. if eval \${$3+:} false; then :
  1728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1729. $as_echo_n "checking for $2... " >&6; }
  1730. if eval \${$3+:} false; then :
  1731. $as_echo_n "(cached) " >&6
  1732. fi
  1733. eval ac_res=\$$3
  1734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1735. $as_echo "$ac_res" >&6; }
  1736. else
  1737. # Is the header compilable?
  1738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1739. $as_echo_n "checking $2 usability... " >&6; }
  1740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1741. /* end confdefs.h. */
  1742. $4
  1743. #include <$2>
  1744. _ACEOF
  1745. if ac_fn_c_try_compile "$LINENO"; then :
  1746. ac_header_compiler=yes
  1747. else
  1748. ac_header_compiler=no
  1749. fi
  1750. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1752. $as_echo "$ac_header_compiler" >&6; }
  1753. # Is the header present?
  1754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1755. $as_echo_n "checking $2 presence... " >&6; }
  1756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1757. /* end confdefs.h. */
  1758. #include <$2>
  1759. _ACEOF
  1760. if ac_fn_c_try_cpp "$LINENO"; then :
  1761. ac_header_preproc=yes
  1762. else
  1763. ac_header_preproc=no
  1764. fi
  1765. rm -f conftest.err conftest.i conftest.$ac_ext
  1766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1767. $as_echo "$ac_header_preproc" >&6; }
  1768. # So? What about this header?
  1769. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1770. yes:no: )
  1771. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1772. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1773. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1774. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1775. ;;
  1776. no:yes:* )
  1777. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1778. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1779. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1780. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1781. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1782. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1783. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1784. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1785. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1786. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1787. ( $as_echo "## ---------------------------------------------------------------------- ##
  1788. ## Report this to https://redmine.lighttpd.net/projects/lighttpd/boards/2 ##
  1789. ## ---------------------------------------------------------------------- ##"
  1790. ) | sed "s/^/$as_me: WARNING: /" >&2
  1791. ;;
  1792. esac
  1793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1794. $as_echo_n "checking for $2... " >&6; }
  1795. if eval \${$3+:} false; then :
  1796. $as_echo_n "(cached) " >&6
  1797. else
  1798. eval "$3=\$ac_header_compiler"
  1799. fi
  1800. eval ac_res=\$$3
  1801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1802. $as_echo "$ac_res" >&6; }
  1803. fi
  1804. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1805. } # ac_fn_c_check_header_mongrel
  1806. # ac_fn_c_try_run LINENO
  1807. # ----------------------
  1808. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1809. # that executables *can* be run.
  1810. ac_fn_c_try_run ()
  1811. {
  1812. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1813. if { { ac_try="$ac_link"
  1814. case "(($ac_try" in
  1815. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1816. *) ac_try_echo=$ac_try;;
  1817. esac
  1818. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1819. $as_echo "$ac_try_echo"; } >&5
  1820. (eval "$ac_link") 2>&5
  1821. ac_status=$?
  1822. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1823. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1824. { { case "(($ac_try" in
  1825. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1826. *) ac_try_echo=$ac_try;;
  1827. esac
  1828. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1829. $as_echo "$ac_try_echo"; } >&5
  1830. (eval "$ac_try") 2>&5
  1831. ac_status=$?
  1832. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1833. test $ac_status = 0; }; }; then :
  1834. ac_retval=0
  1835. else
  1836. $as_echo "$as_me: program exited with status $ac_status" >&5
  1837. $as_echo "$as_me: failed program was:" >&5
  1838. sed 's/^/| /' conftest.$ac_ext >&5
  1839. ac_retval=$ac_status
  1840. fi
  1841. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1842. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1843. as_fn_set_status $ac_retval
  1844. } # ac_fn_c_try_run
  1845. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1846. # -------------------------------------------------------
  1847. # Tests whether HEADER exists and can be compiled using the include files in
  1848. # INCLUDES, setting the cache variable VAR accordingly.
  1849. ac_fn_c_check_header_compile ()
  1850. {
  1851. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1853. $as_echo_n "checking for $2... " >&6; }
  1854. if eval \${$3+:} false; then :
  1855. $as_echo_n "(cached) " >&6
  1856. else
  1857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1858. /* end confdefs.h. */
  1859. $4
  1860. #include <$2>
  1861. _ACEOF
  1862. if ac_fn_c_try_compile "$LINENO"; then :
  1863. eval "$3=yes"
  1864. else
  1865. eval "$3=no"
  1866. fi
  1867. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1868. fi
  1869. eval ac_res=\$$3
  1870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1871. $as_echo "$ac_res" >&6; }
  1872. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1873. } # ac_fn_c_check_header_compile
  1874. # ac_fn_c_try_link LINENO
  1875. # -----------------------
  1876. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1877. ac_fn_c_try_link ()
  1878. {
  1879. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1880. rm -f conftest.$ac_objext conftest$ac_exeext
  1881. if { { ac_try="$ac_link"
  1882. case "(($ac_try" in
  1883. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1884. *) ac_try_echo=$ac_try;;
  1885. esac
  1886. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1887. $as_echo "$ac_try_echo"; } >&5
  1888. (eval "$ac_link") 2>conftest.err
  1889. ac_status=$?
  1890. if test -s conftest.err; then
  1891. grep -v '^ *+' conftest.err >conftest.er1
  1892. cat conftest.er1 >&5
  1893. mv -f conftest.er1 conftest.err
  1894. fi
  1895. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1896. test $ac_status = 0; } && {
  1897. test -z "$ac_c_werror_flag" ||
  1898. test ! -s conftest.err
  1899. } && test -s conftest$ac_exeext && {
  1900. test "$cross_compiling" = yes ||
  1901. test -x conftest$ac_exeext
  1902. }; then :
  1903. ac_retval=0
  1904. else
  1905. $as_echo "$as_me: failed program was:" >&5
  1906. sed 's/^/| /' conftest.$ac_ext >&5
  1907. ac_retval=1
  1908. fi
  1909. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1910. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1911. # interfere with the next link command; also delete a directory that is
  1912. # left behind by Apple's compiler. We do this before executing the actions.
  1913. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1914. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1915. as_fn_set_status $ac_retval
  1916. } # ac_fn_c_try_link
  1917. # ac_fn_c_check_func LINENO FUNC VAR
  1918. # ----------------------------------
  1919. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1920. ac_fn_c_check_func ()
  1921. {
  1922. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1924. $as_echo_n "checking for $2... " >&6; }
  1925. if eval \${$3+:} false; then :
  1926. $as_echo_n "(cached) " >&6
  1927. else
  1928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1929. /* end confdefs.h. */
  1930. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1931. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1932. #define $2 innocuous_$2
  1933. /* System header to define __stub macros and hopefully few prototypes,
  1934. which can conflict with char $2 (); below.
  1935. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1936. <limits.h> exists even on freestanding compilers. */
  1937. #ifdef __STDC__
  1938. # include <limits.h>
  1939. #else
  1940. # include <assert.h>
  1941. #endif
  1942. #undef $2
  1943. /* Override any GCC internal prototype to avoid an error.
  1944. Use char because int might match the return type of a GCC
  1945. builtin and then its argument prototype would still apply. */
  1946. #ifdef __cplusplus
  1947. extern "C"
  1948. #endif
  1949. char $2 ();
  1950. /* The GNU C library defines this for functions which it implements
  1951. to always fail with ENOSYS. Some functions are actually named
  1952. something starting with __ and the normal name is an alias. */
  1953. #if defined __stub_$2 || defined __stub___$2
  1954. choke me
  1955. #endif
  1956. int
  1957. main ()
  1958. {
  1959. return $2 ();
  1960. ;
  1961. return 0;
  1962. }
  1963. _ACEOF
  1964. if ac_fn_c_try_link "$LINENO"; then :
  1965. eval "$3=yes"
  1966. else
  1967. eval "$3=no"
  1968. fi
  1969. rm -f core conftest.err conftest.$ac_objext \
  1970. conftest$ac_exeext conftest.$ac_ext
  1971. fi
  1972. eval ac_res=\$$3
  1973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1974. $as_echo "$ac_res" >&6; }
  1975. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1976. } # ac_fn_c_check_func
  1977. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1978. # -------------------------------------------
  1979. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1980. # variable VAR accordingly.
  1981. ac_fn_c_check_type ()
  1982. {
  1983. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1985. $as_echo_n "checking for $2... " >&6; }
  1986. if eval \${$3+:} false; then :
  1987. $as_echo_n "(cached) " >&6
  1988. else
  1989. eval "$3=no"
  1990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1991. /* end confdefs.h. */
  1992. $4
  1993. int
  1994. main ()
  1995. {
  1996. if (sizeof ($2))
  1997. return 0;
  1998. ;
  1999. return 0;
  2000. }
  2001. _ACEOF
  2002. if ac_fn_c_try_compile "$LINENO"; then :
  2003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2004. /* end confdefs.h. */
  2005. $4
  2006. int
  2007. main ()
  2008. {
  2009. if (sizeof (($2)))
  2010. return 0;
  2011. ;
  2012. return 0;
  2013. }
  2014. _ACEOF
  2015. if ac_fn_c_try_compile "$LINENO"; then :
  2016. else
  2017. eval "$3=yes"
  2018. fi
  2019. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2020. fi
  2021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2022. fi
  2023. eval ac_res=\$$3
  2024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2025. $as_echo "$ac_res" >&6; }
  2026. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2027. } # ac_fn_c_check_type
  2028. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2029. # ----------------------------------------------------
  2030. # Tries to find if the field MEMBER exists in type AGGR, after including
  2031. # INCLUDES, setting cache variable VAR accordingly.
  2032. ac_fn_c_check_member ()
  2033. {
  2034. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2036. $as_echo_n "checking for $2.$3... " >&6; }
  2037. if eval \${$4+:} false; then :
  2038. $as_echo_n "(cached) " >&6
  2039. else
  2040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2041. /* end confdefs.h. */
  2042. $5
  2043. int
  2044. main ()
  2045. {
  2046. static $2 ac_aggr;
  2047. if (ac_aggr.$3)
  2048. return 0;
  2049. ;
  2050. return 0;
  2051. }
  2052. _ACEOF
  2053. if ac_fn_c_try_compile "$LINENO"; then :
  2054. eval "$4=yes"
  2055. else
  2056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2057. /* end confdefs.h. */
  2058. $5
  2059. int
  2060. main ()
  2061. {
  2062. static $2 ac_aggr;
  2063. if (sizeof ac_aggr.$3)
  2064. return 0;
  2065. ;
  2066. return 0;
  2067. }
  2068. _ACEOF
  2069. if ac_fn_c_try_compile "$LINENO"; then :
  2070. eval "$4=yes"
  2071. else
  2072. eval "$4=no"
  2073. fi
  2074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2075. fi
  2076. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2077. fi
  2078. eval ac_res=\$$4
  2079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2080. $as_echo "$ac_res" >&6; }
  2081. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2082. } # ac_fn_c_check_member
  2083. cat >config.log <<_ACEOF
  2084. This file contains any messages produced by compilers while
  2085. running configure, to aid debugging if configure makes a mistake.
  2086. It was created by lighttpd $as_me 1.4.64, which was
  2087. generated by GNU Autoconf 2.69. Invocation command line was
  2088. $ $0 $@
  2089. _ACEOF
  2090. exec 5>>config.log
  2091. {
  2092. cat <<_ASUNAME
  2093. ## --------- ##
  2094. ## Platform. ##
  2095. ## --------- ##
  2096. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2097. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2098. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2099. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2100. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2101. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2102. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2103. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2104. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2105. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2106. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2107. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2108. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2109. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2110. _ASUNAME
  2111. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2112. for as_dir in $PATH
  2113. do
  2114. IFS=$as_save_IFS
  2115. test -z "$as_dir" && as_dir=.
  2116. $as_echo "PATH: $as_dir"
  2117. done
  2118. IFS=$as_save_IFS
  2119. } >&5
  2120. cat >&5 <<_ACEOF
  2121. ## ----------- ##
  2122. ## Core tests. ##
  2123. ## ----------- ##
  2124. _ACEOF
  2125. # Keep a trace of the command line.
  2126. # Strip out --no-create and --no-recursion so they do not pile up.
  2127. # Strip out --silent because we don't want to record it for future runs.
  2128. # Also quote any args containing shell meta-characters.
  2129. # Make two passes to allow for proper duplicate-argument suppression.
  2130. ac_configure_args=
  2131. ac_configure_args0=
  2132. ac_configure_args1=
  2133. ac_must_keep_next=false
  2134. for ac_pass in 1 2
  2135. do
  2136. for ac_arg
  2137. do
  2138. case $ac_arg in
  2139. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2140. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2141. | -silent | --silent | --silen | --sile | --sil)
  2142. continue ;;
  2143. *\'*)
  2144. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2145. esac
  2146. case $ac_pass in
  2147. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2148. 2)
  2149. as_fn_append ac_configure_args1 " '$ac_arg'"
  2150. if test $ac_must_keep_next = true; then
  2151. ac_must_keep_next=false # Got value, back to normal.
  2152. else
  2153. case $ac_arg in
  2154. *=* | --config-cache | -C | -disable-* | --disable-* \
  2155. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2156. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2157. | -with-* | --with-* | -without-* | --without-* | --x)
  2158. case "$ac_configure_args0 " in
  2159. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2160. esac
  2161. ;;
  2162. -* ) ac_must_keep_next=true ;;
  2163. esac
  2164. fi
  2165. as_fn_append ac_configure_args " '$ac_arg'"
  2166. ;;
  2167. esac
  2168. done
  2169. done
  2170. { ac_configure_args0=; unset ac_configure_args0;}
  2171. { ac_configure_args1=; unset ac_configure_args1;}
  2172. # When interrupted or exit'd, cleanup temporary files, and complete
  2173. # config.log. We remove comments because anyway the quotes in there
  2174. # would cause problems or look ugly.
  2175. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2176. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2177. trap 'exit_status=$?
  2178. # Save into config.log some information that might help in debugging.
  2179. {
  2180. echo
  2181. $as_echo "## ---------------- ##
  2182. ## Cache variables. ##
  2183. ## ---------------- ##"
  2184. echo
  2185. # The following way of writing the cache mishandles newlines in values,
  2186. (
  2187. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2188. eval ac_val=\$$ac_var
  2189. case $ac_val in #(
  2190. *${as_nl}*)
  2191. case $ac_var in #(
  2192. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2193. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2194. esac
  2195. case $ac_var in #(
  2196. _ | IFS | as_nl) ;; #(
  2197. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2198. *) { eval $ac_var=; unset $ac_var;} ;;
  2199. esac ;;
  2200. esac
  2201. done
  2202. (set) 2>&1 |
  2203. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2204. *${as_nl}ac_space=\ *)
  2205. sed -n \
  2206. "s/'\''/'\''\\\\'\'''\''/g;
  2207. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2208. ;; #(
  2209. *)
  2210. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2211. ;;
  2212. esac |
  2213. sort
  2214. )
  2215. echo
  2216. $as_echo "## ----------------- ##
  2217. ## Output variables. ##
  2218. ## ----------------- ##"
  2219. echo
  2220. for ac_var in $ac_subst_vars
  2221. do
  2222. eval ac_val=\$$ac_var
  2223. case $ac_val in
  2224. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2225. esac
  2226. $as_echo "$ac_var='\''$ac_val'\''"
  2227. done | sort
  2228. echo
  2229. if test -n "$ac_subst_files"; then
  2230. $as_echo "## ------------------- ##
  2231. ## File substitutions. ##
  2232. ## ------------------- ##"
  2233. echo
  2234. for ac_var in $ac_subst_files
  2235. do
  2236. eval ac_val=\$$ac_var
  2237. case $ac_val in
  2238. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2239. esac
  2240. $as_echo "$ac_var='\''$ac_val'\''"
  2241. done | sort
  2242. echo
  2243. fi
  2244. if test -s confdefs.h; then
  2245. $as_echo "## ----------- ##
  2246. ## confdefs.h. ##
  2247. ## ----------- ##"
  2248. echo
  2249. cat confdefs.h
  2250. echo
  2251. fi
  2252. test "$ac_signal" != 0 &&
  2253. $as_echo "$as_me: caught signal $ac_signal"
  2254. $as_echo "$as_me: exit $exit_status"
  2255. } >&5
  2256. rm -f core *.core core.conftest.* &&
  2257. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2258. exit $exit_status
  2259. ' 0
  2260. for ac_signal in 1 2 13 15; do
  2261. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2262. done
  2263. ac_signal=0
  2264. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2265. rm -f -r conftest* confdefs.h
  2266. $as_echo "/* confdefs.h */" > confdefs.h
  2267. # Predefined preprocessor variables.
  2268. cat >>confdefs.h <<_ACEOF
  2269. #define PACKAGE_NAME "$PACKAGE_NAME"
  2270. _ACEOF
  2271. cat >>confdefs.h <<_ACEOF
  2272. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2273. _ACEOF
  2274. cat >>confdefs.h <<_ACEOF
  2275. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2276. _ACEOF
  2277. cat >>confdefs.h <<_ACEOF
  2278. #define PACKAGE_STRING "$PACKAGE_STRING"
  2279. _ACEOF
  2280. cat >>confdefs.h <<_ACEOF
  2281. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2282. _ACEOF
  2283. cat >>confdefs.h <<_ACEOF
  2284. #define PACKAGE_URL "$PACKAGE_URL"
  2285. _ACEOF
  2286. # Let the site file select an alternate cache file if it wants to.
  2287. # Prefer an explicitly selected file to automatically selected ones.
  2288. ac_site_file1=NONE
  2289. ac_site_file2=NONE
  2290. if test -n "$CONFIG_SITE"; then
  2291. # We do not want a PATH search for config.site.
  2292. case $CONFIG_SITE in #((
  2293. -*) ac_site_file1=./$CONFIG_SITE;;
  2294. */*) ac_site_file1=$CONFIG_SITE;;
  2295. *) ac_site_file1=./$CONFIG_SITE;;
  2296. esac
  2297. elif test "x$prefix" != xNONE; then
  2298. ac_site_file1=$prefix/share/config.site
  2299. ac_site_file2=$prefix/etc/config.site
  2300. else
  2301. ac_site_file1=$ac_default_prefix/share/config.site
  2302. ac_site_file2=$ac_default_prefix/etc/config.site
  2303. fi
  2304. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2305. do
  2306. test "x$ac_site_file" = xNONE && continue
  2307. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2308. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2309. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2310. sed 's/^/| /' "$ac_site_file" >&5
  2311. . "$ac_site_file" \
  2312. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2313. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2314. as_fn_error $? "failed to load site script $ac_site_file
  2315. See \`config.log' for more details" "$LINENO" 5; }
  2316. fi
  2317. done
  2318. if test -r "$cache_file"; then
  2319. # Some versions of bash will fail to source /dev/null (special files
  2320. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2321. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2322. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2323. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2324. case $cache_file in
  2325. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2326. *) . "./$cache_file";;
  2327. esac
  2328. fi
  2329. else
  2330. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2331. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2332. >$cache_file
  2333. fi
  2334. # Check that the precious variables saved in the cache have kept the same
  2335. # value.
  2336. ac_cache_corrupted=false
  2337. for ac_var in $ac_precious_vars; do
  2338. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2339. eval ac_new_set=\$ac_env_${ac_var}_set
  2340. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2341. eval ac_new_val=\$ac_env_${ac_var}_value
  2342. case $ac_old_set,$ac_new_set in
  2343. set,)
  2344. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2345. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2346. ac_cache_corrupted=: ;;
  2347. ,set)
  2348. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2349. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2350. ac_cache_corrupted=: ;;
  2351. ,);;
  2352. *)
  2353. if test "x$ac_old_val" != "x$ac_new_val"; then
  2354. # differences in whitespace do not lead to failure.
  2355. ac_old_val_w=`echo x $ac_old_val`
  2356. ac_new_val_w=`echo x $ac_new_val`
  2357. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2358. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2359. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2360. ac_cache_corrupted=:
  2361. else
  2362. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2363. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2364. eval $ac_var=\$ac_old_val
  2365. fi
  2366. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2367. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2368. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2369. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2370. fi;;
  2371. esac
  2372. # Pass precious variables to config.status.
  2373. if test "$ac_new_set" = set; then
  2374. case $ac_new_val in
  2375. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2376. *) ac_arg=$ac_var=$ac_new_val ;;
  2377. esac
  2378. case " $ac_configure_args " in
  2379. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2380. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2381. esac
  2382. fi
  2383. done
  2384. if $ac_cache_corrupted; then
  2385. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2386. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2387. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2388. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2389. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2390. fi
  2391. ## -------------------- ##
  2392. ## Main body of script. ##
  2393. ## -------------------- ##
  2394. ac_ext=c
  2395. ac_cpp='$CPP $CPPFLAGS'
  2396. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2397. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2398. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2399. ac_config_headers="$ac_config_headers config.h"
  2400. ac_aux_dir=
  2401. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2402. if test -f "$ac_dir/install-sh"; then
  2403. ac_aux_dir=$ac_dir
  2404. ac_install_sh="$ac_aux_dir/install-sh -c"
  2405. break
  2406. elif test -f "$ac_dir/install.sh"; then
  2407. ac_aux_dir=$ac_dir
  2408. ac_install_sh="$ac_aux_dir/install.sh -c"
  2409. break
  2410. elif test -f "$ac_dir/shtool"; then
  2411. ac_aux_dir=$ac_dir
  2412. ac_install_sh="$ac_aux_dir/shtool install -c"
  2413. break
  2414. fi
  2415. done
  2416. if test -z "$ac_aux_dir"; then
  2417. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2418. fi
  2419. # These three variables are undocumented and unsupported,
  2420. # and are intended to be withdrawn in a future Autoconf release.
  2421. # They can cause serious problems if a builder's source tree is in a directory
  2422. # whose full name contains unusual characters.
  2423. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2424. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2425. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2426. # Make sure we can run config.sub.
  2427. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2428. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2430. $as_echo_n "checking build system type... " >&6; }
  2431. if ${ac_cv_build+:} false; then :
  2432. $as_echo_n "(cached) " >&6
  2433. else
  2434. ac_build_alias=$build_alias
  2435. test "x$ac_build_alias" = x &&
  2436. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2437. test "x$ac_build_alias" = x &&
  2438. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2439. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2440. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2441. fi
  2442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2443. $as_echo "$ac_cv_build" >&6; }
  2444. case $ac_cv_build in
  2445. *-*-*) ;;
  2446. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2447. esac
  2448. build=$ac_cv_build
  2449. ac_save_IFS=$IFS; IFS='-'
  2450. set x $ac_cv_build
  2451. shift
  2452. build_cpu=$1
  2453. build_vendor=$2
  2454. shift; shift
  2455. # Remember, the first character of IFS is used to create $*,
  2456. # except with old shells:
  2457. build_os=$*
  2458. IFS=$ac_save_IFS
  2459. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2461. $as_echo_n "checking host system type... " >&6; }
  2462. if ${ac_cv_host+:} false; then :
  2463. $as_echo_n "(cached) " >&6
  2464. else
  2465. if test "x$host_alias" = x; then
  2466. ac_cv_host=$ac_cv_build
  2467. else
  2468. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2469. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2470. fi
  2471. fi
  2472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2473. $as_echo "$ac_cv_host" >&6; }
  2474. case $ac_cv_host in
  2475. *-*-*) ;;
  2476. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2477. esac
  2478. host=$ac_cv_host
  2479. ac_save_IFS=$IFS; IFS='-'
  2480. set x $ac_cv_host
  2481. shift
  2482. host_cpu=$1
  2483. host_vendor=$2
  2484. shift; shift
  2485. # Remember, the first character of IFS is used to create $*,
  2486. # except with old shells:
  2487. host_os=$*
  2488. IFS=$ac_save_IFS
  2489. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2490. am__api_version='1.16'
  2491. # Find a good install program. We prefer a C program (faster),
  2492. # so one script is as good as another. But avoid the broken or
  2493. # incompatible versions:
  2494. # SysV /etc/install, /usr/sbin/install
  2495. # SunOS /usr/etc/install
  2496. # IRIX /sbin/install
  2497. # AIX /bin/install
  2498. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2499. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2500. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2501. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2502. # OS/2's system install, which has a completely different semantic
  2503. # ./install, which can be erroneously created by make from ./install.sh.
  2504. # Reject install programs that cannot install multiple files.
  2505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2506. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2507. if test -z "$INSTALL"; then
  2508. if ${ac_cv_path_install+:} false; then :
  2509. $as_echo_n "(cached) " >&6
  2510. else
  2511. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2512. for as_dir in $PATH
  2513. do
  2514. IFS=$as_save_IFS
  2515. test -z "$as_dir" && as_dir=.
  2516. # Account for people who put trailing slashes in PATH elements.
  2517. case $as_dir/ in #((
  2518. ./ | .// | /[cC]/* | \
  2519. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2520. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2521. /usr/ucb/* ) ;;
  2522. *)
  2523. # OSF1 and SCO ODT 3.0 have their own names for install.
  2524. # Don't use installbsd from OSF since it installs stuff as root
  2525. # by default.
  2526. for ac_prog in ginstall scoinst install; do
  2527. for ac_exec_ext in '' $ac_executable_extensions; do
  2528. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2529. if test $ac_prog = install &&
  2530. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2531. # AIX install. It has an incompatible calling convention.
  2532. :
  2533. elif test $ac_prog = install &&
  2534. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2535. # program-specific install script used by HP pwplus--don't use.
  2536. :
  2537. else
  2538. rm -rf conftest.one conftest.two conftest.dir
  2539. echo one > conftest.one
  2540. echo two > conftest.two
  2541. mkdir conftest.dir
  2542. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2543. test -s conftest.one && test -s conftest.two &&
  2544. test -s conftest.dir/conftest.one &&
  2545. test -s conftest.dir/conftest.two
  2546. then
  2547. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2548. break 3
  2549. fi
  2550. fi
  2551. fi
  2552. done
  2553. done
  2554. ;;
  2555. esac
  2556. done
  2557. IFS=$as_save_IFS
  2558. rm -rf conftest.one conftest.two conftest.dir
  2559. fi
  2560. if test "${ac_cv_path_install+set}" = set; then
  2561. INSTALL=$ac_cv_path_install
  2562. else
  2563. # As a last resort, use the slow shell script. Don't cache a
  2564. # value for INSTALL within a source directory, because that will
  2565. # break other packages using the cache if that directory is
  2566. # removed, or if the value is a relative name.
  2567. INSTALL=$ac_install_sh
  2568. fi
  2569. fi
  2570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2571. $as_echo "$INSTALL" >&6; }
  2572. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2573. # It thinks the first close brace ends the variable substitution.
  2574. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2575. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2576. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2578. $as_echo_n "checking whether build environment is sane... " >&6; }
  2579. # Reject unsafe characters in $srcdir or the absolute working directory
  2580. # name. Accept space and tab only in the latter.
  2581. am_lf='
  2582. '
  2583. case `pwd` in
  2584. *[\\\"\#\$\&\'\`$am_lf]*)
  2585. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2586. esac
  2587. case $srcdir in
  2588. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2589. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2590. esac
  2591. # Do 'set' in a subshell so we don't clobber the current shell's
  2592. # arguments. Must try -L first in case configure is actually a
  2593. # symlink; some systems play weird games with the mod time of symlinks
  2594. # (eg FreeBSD returns the mod time of the symlink's containing
  2595. # directory).
  2596. if (
  2597. am_has_slept=no
  2598. for am_try in 1 2; do
  2599. echo "timestamp, slept: $am_has_slept" > conftest.file
  2600. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2601. if test "$*" = "X"; then
  2602. # -L didn't work.
  2603. set X `ls -t "$srcdir/configure" conftest.file`
  2604. fi
  2605. if test "$*" != "X $srcdir/configure conftest.file" \
  2606. && test "$*" != "X conftest.file $srcdir/configure"; then
  2607. # If neither matched, then we have a broken ls. This can happen
  2608. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2609. # broken ls alias from the environment. This has actually
  2610. # happened. Such a system could not be considered "sane".
  2611. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2612. alias in your environment" "$LINENO" 5
  2613. fi
  2614. if test "$2" = conftest.file || test $am_try -eq 2; then
  2615. break
  2616. fi
  2617. # Just in case.
  2618. sleep 1
  2619. am_has_slept=yes
  2620. done
  2621. test "$2" = conftest.file
  2622. )
  2623. then
  2624. # Ok.
  2625. :
  2626. else
  2627. as_fn_error $? "newly created file is older than distributed files!
  2628. Check your system clock" "$LINENO" 5
  2629. fi
  2630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2631. $as_echo "yes" >&6; }
  2632. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2633. # generated files are strictly newer.
  2634. am_sleep_pid=
  2635. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2636. ( sleep 1 ) &
  2637. am_sleep_pid=$!
  2638. fi
  2639. rm -f conftest.file
  2640. test "$program_prefix" != NONE &&
  2641. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2642. # Use a double $ so make ignores it.
  2643. test "$program_suffix" != NONE &&
  2644. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2645. # Double any \ or $.
  2646. # By default was `s,x,x', remove it if useless.
  2647. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2648. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2649. # Expand $ac_aux_dir to an absolute path.
  2650. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2651. if test x"${MISSING+set}" != xset; then
  2652. case $am_aux_dir in
  2653. *\ * | *\ *)
  2654. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2655. *)
  2656. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2657. esac
  2658. fi
  2659. # Use eval to expand $SHELL
  2660. if eval "$MISSING --is-lightweight"; then
  2661. am_missing_run="$MISSING "
  2662. else
  2663. am_missing_run=
  2664. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2665. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2666. fi
  2667. if test x"${install_sh+set}" != xset; then
  2668. case $am_aux_dir in
  2669. *\ * | *\ *)
  2670. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2671. *)
  2672. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2673. esac
  2674. fi
  2675. # Installed binaries are usually stripped using 'strip' when the user
  2676. # run "make install-strip". However 'strip' might not be the right
  2677. # tool to use in cross-compilation environments, therefore Automake
  2678. # will honor the 'STRIP' environment variable to overrule this program.
  2679. if test "$cross_compiling" != no; then
  2680. if test -n "$ac_tool_prefix"; then
  2681. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2682. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2684. $as_echo_n "checking for $ac_word... " >&6; }
  2685. if ${ac_cv_prog_STRIP+:} false; then :
  2686. $as_echo_n "(cached) " >&6
  2687. else
  2688. if test -n "$STRIP"; then
  2689. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2690. else
  2691. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2692. for as_dir in $PATH
  2693. do
  2694. IFS=$as_save_IFS
  2695. test -z "$as_dir" && as_dir=.
  2696. for ac_exec_ext in '' $ac_executable_extensions; do
  2697. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2698. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2699. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2700. break 2
  2701. fi
  2702. done
  2703. done
  2704. IFS=$as_save_IFS
  2705. fi
  2706. fi
  2707. STRIP=$ac_cv_prog_STRIP
  2708. if test -n "$STRIP"; then
  2709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2710. $as_echo "$STRIP" >&6; }
  2711. else
  2712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2713. $as_echo "no" >&6; }
  2714. fi
  2715. fi
  2716. if test -z "$ac_cv_prog_STRIP"; then
  2717. ac_ct_STRIP=$STRIP
  2718. # Extract the first word of "strip", so it can be a program name with args.
  2719. set dummy strip; ac_word=$2
  2720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2721. $as_echo_n "checking for $ac_word... " >&6; }
  2722. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2723. $as_echo_n "(cached) " >&6
  2724. else
  2725. if test -n "$ac_ct_STRIP"; then
  2726. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2727. else
  2728. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2729. for as_dir in $PATH
  2730. do
  2731. IFS=$as_save_IFS
  2732. test -z "$as_dir" && as_dir=.
  2733. for ac_exec_ext in '' $ac_executable_extensions; do
  2734. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2735. ac_cv_prog_ac_ct_STRIP="strip"
  2736. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2737. break 2
  2738. fi
  2739. done
  2740. done
  2741. IFS=$as_save_IFS
  2742. fi
  2743. fi
  2744. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2745. if test -n "$ac_ct_STRIP"; then
  2746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2747. $as_echo "$ac_ct_STRIP" >&6; }
  2748. else
  2749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2750. $as_echo "no" >&6; }
  2751. fi
  2752. if test "x$ac_ct_STRIP" = x; then
  2753. STRIP=":"
  2754. else
  2755. case $cross_compiling:$ac_tool_warned in
  2756. yes:)
  2757. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2758. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2759. ac_tool_warned=yes ;;
  2760. esac
  2761. STRIP=$ac_ct_STRIP
  2762. fi
  2763. else
  2764. STRIP="$ac_cv_prog_STRIP"
  2765. fi
  2766. fi
  2767. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2769. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2770. if test -z "$MKDIR_P"; then
  2771. if ${ac_cv_path_mkdir+:} false; then :
  2772. $as_echo_n "(cached) " >&6
  2773. else
  2774. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2775. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2776. do
  2777. IFS=$as_save_IFS
  2778. test -z "$as_dir" && as_dir=.
  2779. for ac_prog in mkdir gmkdir; do
  2780. for ac_exec_ext in '' $ac_executable_extensions; do
  2781. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2782. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2783. 'mkdir (GNU coreutils) '* | \
  2784. 'mkdir (coreutils) '* | \
  2785. 'mkdir (fileutils) '4.1*)
  2786. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2787. break 3;;
  2788. esac
  2789. done
  2790. done
  2791. done
  2792. IFS=$as_save_IFS
  2793. fi
  2794. test -d ./--version && rmdir ./--version
  2795. if test "${ac_cv_path_mkdir+set}" = set; then
  2796. MKDIR_P="$ac_cv_path_mkdir -p"
  2797. else
  2798. # As a last resort, use the slow shell script. Don't cache a
  2799. # value for MKDIR_P within a source directory, because that will
  2800. # break other packages using the cache if that directory is
  2801. # removed, or if the value is a relative name.
  2802. MKDIR_P="$ac_install_sh -d"
  2803. fi
  2804. fi
  2805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2806. $as_echo "$MKDIR_P" >&6; }
  2807. for ac_prog in gawk mawk nawk awk
  2808. do
  2809. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2810. set dummy $ac_prog; ac_word=$2
  2811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2812. $as_echo_n "checking for $ac_word... " >&6; }
  2813. if ${ac_cv_prog_AWK+:} false; then :
  2814. $as_echo_n "(cached) " >&6
  2815. else
  2816. if test -n "$AWK"; then
  2817. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2818. else
  2819. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2820. for as_dir in $PATH
  2821. do
  2822. IFS=$as_save_IFS
  2823. test -z "$as_dir" && as_dir=.
  2824. for ac_exec_ext in '' $ac_executable_extensions; do
  2825. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2826. ac_cv_prog_AWK="$ac_prog"
  2827. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2828. break 2
  2829. fi
  2830. done
  2831. done
  2832. IFS=$as_save_IFS
  2833. fi
  2834. fi
  2835. AWK=$ac_cv_prog_AWK
  2836. if test -n "$AWK"; then
  2837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2838. $as_echo "$AWK" >&6; }
  2839. else
  2840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2841. $as_echo "no" >&6; }
  2842. fi
  2843. test -n "$AWK" && break
  2844. done
  2845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2846. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2847. set x ${MAKE-make}
  2848. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2849. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2850. $as_echo_n "(cached) " >&6
  2851. else
  2852. cat >conftest.make <<\_ACEOF
  2853. SHELL = /bin/sh
  2854. all:
  2855. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2856. _ACEOF
  2857. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2858. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2859. *@@@%%%=?*=@@@%%%*)
  2860. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2861. *)
  2862. eval ac_cv_prog_make_${ac_make}_set=no;;
  2863. esac
  2864. rm -f conftest.make
  2865. fi
  2866. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2868. $as_echo "yes" >&6; }
  2869. SET_MAKE=
  2870. else
  2871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2872. $as_echo "no" >&6; }
  2873. SET_MAKE="MAKE=${MAKE-make}"
  2874. fi
  2875. rm -rf .tst 2>/dev/null
  2876. mkdir .tst 2>/dev/null
  2877. if test -d .tst; then
  2878. am__leading_dot=.
  2879. else
  2880. am__leading_dot=_
  2881. fi
  2882. rmdir .tst 2>/dev/null
  2883. # Check whether --enable-silent-rules was given.
  2884. if test "${enable_silent_rules+set}" = set; then :
  2885. enableval=$enable_silent_rules;
  2886. fi
  2887. case $enable_silent_rules in # (((
  2888. yes) AM_DEFAULT_VERBOSITY=0;;
  2889. no) AM_DEFAULT_VERBOSITY=1;;
  2890. *) AM_DEFAULT_VERBOSITY=1;;
  2891. esac
  2892. am_make=${MAKE-make}
  2893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2894. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2895. if ${am_cv_make_support_nested_variables+:} false; then :
  2896. $as_echo_n "(cached) " >&6
  2897. else
  2898. if $as_echo 'TRUE=$(BAR$(V))
  2899. BAR0=false
  2900. BAR1=true
  2901. V=1
  2902. am__doit:
  2903. @$(TRUE)
  2904. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2905. am_cv_make_support_nested_variables=yes
  2906. else
  2907. am_cv_make_support_nested_variables=no
  2908. fi
  2909. fi
  2910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2911. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2912. if test $am_cv_make_support_nested_variables = yes; then
  2913. AM_V='$(V)'
  2914. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2915. else
  2916. AM_V=$AM_DEFAULT_VERBOSITY
  2917. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2918. fi
  2919. AM_BACKSLASH='\'
  2920. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2921. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2922. # is not polluted with repeated "-I."
  2923. am__isrc=' -I$(srcdir)'
  2924. # test to see if srcdir already configured
  2925. if test -f $srcdir/config.status; then
  2926. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2927. fi
  2928. fi
  2929. # test whether we have cygpath
  2930. if test -z "$CYGPATH_W"; then
  2931. if (cygpath --version) >/dev/null 2>/dev/null; then
  2932. CYGPATH_W='cygpath -w'
  2933. else
  2934. CYGPATH_W=echo
  2935. fi
  2936. fi
  2937. # Define the identity of the package.
  2938. PACKAGE='lighttpd'
  2939. VERSION='1.4.64'
  2940. cat >>confdefs.h <<_ACEOF
  2941. #define PACKAGE "$PACKAGE"
  2942. _ACEOF
  2943. cat >>confdefs.h <<_ACEOF
  2944. #define VERSION "$VERSION"
  2945. _ACEOF
  2946. # Some tools Automake needs.
  2947. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2948. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2949. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2950. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2951. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2952. # For better backward compatibility. To be removed once Automake 1.9.x
  2953. # dies out for good. For more background, see:
  2954. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2955. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2956. mkdir_p='$(MKDIR_P)'
  2957. # We need awk for the "check" target (and possibly the TAP driver). The
  2958. # system "awk" is bad on some platforms.
  2959. # Always define AMTAR for backward compatibility. Yes, it's still used
  2960. # in the wild :-( We should find a proper way to deprecate it ...
  2961. AMTAR='$${TAR-tar}'
  2962. # We'll loop over all known methods to create a tar archive until one works.
  2963. _am_tools='gnutar plaintar pax cpio none'
  2964. # The POSIX 1988 'ustar' format is defined with fixed-size fields.
  2965. # There is notably a 21 bits limit for the UID and the GID. In fact,
  2966. # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
  2967. # and bug#13588).
  2968. am_max_uid=2097151 # 2^21 - 1
  2969. am_max_gid=$am_max_uid
  2970. # The $UID and $GID variables are not portable, so we need to resort
  2971. # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
  2972. # below are definitely unexpected, so allow the users to see them
  2973. # (that is, avoid stderr redirection).
  2974. am_uid=`id -u || echo unknown`
  2975. am_gid=`id -g || echo unknown`
  2976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
  2977. $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
  2978. if test $am_uid -le $am_max_uid; then
  2979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2980. $as_echo "yes" >&6; }
  2981. else
  2982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2983. $as_echo "no" >&6; }
  2984. _am_tools=none
  2985. fi
  2986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
  2987. $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
  2988. if test $am_gid -le $am_max_gid; then
  2989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2990. $as_echo "yes" >&6; }
  2991. else
  2992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2993. $as_echo "no" >&6; }
  2994. _am_tools=none
  2995. fi
  2996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
  2997. $as_echo_n "checking how to create a ustar tar archive... " >&6; }
  2998. # Go ahead even if we have the value already cached. We do so because we
  2999. # need to set the values for the 'am__tar' and 'am__untar' variables.
  3000. _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
  3001. for _am_tool in $_am_tools; do
  3002. case $_am_tool in
  3003. gnutar)
  3004. for _am_tar in tar gnutar gtar; do
  3005. { echo "$as_me:$LINENO: $_am_tar --version" >&5
  3006. ($_am_tar --version) >&5 2>&5
  3007. ac_status=$?
  3008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3009. (exit $ac_status); } && break
  3010. done
  3011. am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
  3012. am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
  3013. am__untar="$_am_tar -xf -"
  3014. ;;
  3015. plaintar)
  3016. # Must skip GNU tar: if it does not support --format= it doesn't create
  3017. # ustar tarball either.
  3018. (tar --version) >/dev/null 2>&1 && continue
  3019. am__tar='tar chf - "$$tardir"'
  3020. am__tar_='tar chf - "$tardir"'
  3021. am__untar='tar xf -'
  3022. ;;
  3023. pax)
  3024. am__tar='pax -L -x ustar -w "$$tardir"'
  3025. am__tar_='pax -L -x ustar -w "$tardir"'
  3026. am__untar='pax -r'
  3027. ;;
  3028. cpio)
  3029. am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
  3030. am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
  3031. am__untar='cpio -i -H ustar -d'
  3032. ;;
  3033. none)
  3034. am__tar=false
  3035. am__tar_=false
  3036. am__untar=false
  3037. ;;
  3038. esac
  3039. # If the value was cached, stop now. We just wanted to have am__tar
  3040. # and am__untar set.
  3041. test -n "${am_cv_prog_tar_ustar}" && break
  3042. # tar/untar a dummy directory, and stop if the command works.
  3043. rm -rf conftest.dir
  3044. mkdir conftest.dir
  3045. echo GrepMe > conftest.dir/file
  3046. { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
  3047. (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
  3048. ac_status=$?
  3049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3050. (exit $ac_status); }
  3051. rm -rf conftest.dir
  3052. if test -s conftest.tar; then
  3053. { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
  3054. ($am__untar <conftest.tar) >&5 2>&5
  3055. ac_status=$?
  3056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3057. (exit $ac_status); }
  3058. { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
  3059. (cat conftest.dir/file) >&5 2>&5
  3060. ac_status=$?
  3061. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3062. (exit $ac_status); }
  3063. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  3064. fi
  3065. done
  3066. rm -rf conftest.dir
  3067. if ${am_cv_prog_tar_ustar+:} false; then :
  3068. $as_echo_n "(cached) " >&6
  3069. else
  3070. am_cv_prog_tar_ustar=$_am_tool
  3071. fi
  3072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
  3073. $as_echo "$am_cv_prog_tar_ustar" >&6; }
  3074. # POSIX will say in a future version that running "rm -f" with no argument
  3075. # is OK; and we want to be able to make that assumption in our Makefile
  3076. # recipes. So use an aggressive probe to check that the usage we want is
  3077. # actually supported "in the wild" to an acceptable degree.
  3078. # See automake bug#10828.
  3079. # To make any issue more visible, cause the running configure to be aborted
  3080. # by default if the 'rm' program in use doesn't match our expectations; the
  3081. # user can still override this though.
  3082. if rm -f && rm -fr && rm -rf; then : OK; else
  3083. cat >&2 <<'END'
  3084. Oops!
  3085. Your 'rm' program seems unable to run without file operands specified
  3086. on the command line, even when the '-f' option is present. This is contrary
  3087. to the behaviour of most rm programs out there, and not conforming with
  3088. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3089. Please tell bug-automake@gnu.org about your system, including the value
  3090. of your $PATH and any error possibly output before this message. This
  3091. can help us improve future automake versions.
  3092. END
  3093. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3094. echo 'Configuration will proceed anyway, since you have set the' >&2
  3095. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3096. echo >&2
  3097. else
  3098. cat >&2 <<'END'
  3099. Aborting the configuration process, to ensure you take notice of the issue.
  3100. You can download and install GNU coreutils to get an 'rm' implementation
  3101. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  3102. If you want to complete the configuration process using your problematic
  3103. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3104. to "yes", and re-run configure.
  3105. END
  3106. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3107. fi
  3108. fi
  3109. ac_ext=c
  3110. ac_cpp='$CPP $CPPFLAGS'
  3111. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3112. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3113. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3114. if test -n "$ac_tool_prefix"; then
  3115. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3116. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3118. $as_echo_n "checking for $ac_word... " >&6; }
  3119. if ${ac_cv_prog_CC+:} false; then :
  3120. $as_echo_n "(cached) " >&6
  3121. else
  3122. if test -n "$CC"; then
  3123. ac_cv_prog_CC="$CC" # Let the user override the test.
  3124. else
  3125. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3126. for as_dir in $PATH
  3127. do
  3128. IFS=$as_save_IFS
  3129. test -z "$as_dir" && as_dir=.
  3130. for ac_exec_ext in '' $ac_executable_extensions; do
  3131. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3132. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3133. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3134. break 2
  3135. fi
  3136. done
  3137. done
  3138. IFS=$as_save_IFS
  3139. fi
  3140. fi
  3141. CC=$ac_cv_prog_CC
  3142. if test -n "$CC"; then
  3143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3144. $as_echo "$CC" >&6; }
  3145. else
  3146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3147. $as_echo "no" >&6; }
  3148. fi
  3149. fi
  3150. if test -z "$ac_cv_prog_CC"; then
  3151. ac_ct_CC=$CC
  3152. # Extract the first word of "gcc", so it can be a program name with args.
  3153. set dummy gcc; ac_word=$2
  3154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3155. $as_echo_n "checking for $ac_word... " >&6; }
  3156. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3157. $as_echo_n "(cached) " >&6
  3158. else
  3159. if test -n "$ac_ct_CC"; then
  3160. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3161. else
  3162. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3163. for as_dir in $PATH
  3164. do
  3165. IFS=$as_save_IFS
  3166. test -z "$as_dir" && as_dir=.
  3167. for ac_exec_ext in '' $ac_executable_extensions; do
  3168. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3169. ac_cv_prog_ac_ct_CC="gcc"
  3170. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3171. break 2
  3172. fi
  3173. done
  3174. done
  3175. IFS=$as_save_IFS
  3176. fi
  3177. fi
  3178. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3179. if test -n "$ac_ct_CC"; then
  3180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3181. $as_echo "$ac_ct_CC" >&6; }
  3182. else
  3183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3184. $as_echo "no" >&6; }
  3185. fi
  3186. if test "x$ac_ct_CC" = x; then
  3187. CC=""
  3188. else
  3189. case $cross_compiling:$ac_tool_warned in
  3190. yes:)
  3191. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3192. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3193. ac_tool_warned=yes ;;
  3194. esac
  3195. CC=$ac_ct_CC
  3196. fi
  3197. else
  3198. CC="$ac_cv_prog_CC"
  3199. fi
  3200. if test -z "$CC"; then
  3201. if test -n "$ac_tool_prefix"; then
  3202. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3203. set dummy ${ac_tool_prefix}cc; 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}cc"
  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. fi
  3237. fi
  3238. if test -z "$CC"; then
  3239. # Extract the first word of "cc", so it can be a program name with args.
  3240. set dummy cc; ac_word=$2
  3241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3242. $as_echo_n "checking for $ac_word... " >&6; }
  3243. if ${ac_cv_prog_CC+:} false; then :
  3244. $as_echo_n "(cached) " >&6
  3245. else
  3246. if test -n "$CC"; then
  3247. ac_cv_prog_CC="$CC" # Let the user override the test.
  3248. else
  3249. ac_prog_rejected=no
  3250. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3251. for as_dir in $PATH
  3252. do
  3253. IFS=$as_save_IFS
  3254. test -z "$as_dir" && as_dir=.
  3255. for ac_exec_ext in '' $ac_executable_extensions; do
  3256. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3257. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3258. ac_prog_rejected=yes
  3259. continue
  3260. fi
  3261. ac_cv_prog_CC="cc"
  3262. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3263. break 2
  3264. fi
  3265. done
  3266. done
  3267. IFS=$as_save_IFS
  3268. if test $ac_prog_rejected = yes; then
  3269. # We found a bogon in the path, so make sure we never use it.
  3270. set dummy $ac_cv_prog_CC
  3271. shift
  3272. if test $# != 0; then
  3273. # We chose a different compiler from the bogus one.
  3274. # However, it has the same basename, so the bogon will be chosen
  3275. # first if we set CC to just the basename; use the full file name.
  3276. shift
  3277. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3278. fi
  3279. fi
  3280. fi
  3281. fi
  3282. CC=$ac_cv_prog_CC
  3283. if test -n "$CC"; then
  3284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3285. $as_echo "$CC" >&6; }
  3286. else
  3287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3288. $as_echo "no" >&6; }
  3289. fi
  3290. fi
  3291. if test -z "$CC"; then
  3292. if test -n "$ac_tool_prefix"; then
  3293. for ac_prog in cl.exe
  3294. do
  3295. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3296. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3298. $as_echo_n "checking for $ac_word... " >&6; }
  3299. if ${ac_cv_prog_CC+:} false; then :
  3300. $as_echo_n "(cached) " >&6
  3301. else
  3302. if test -n "$CC"; then
  3303. ac_cv_prog_CC="$CC" # Let the user override the test.
  3304. else
  3305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3306. for as_dir in $PATH
  3307. do
  3308. IFS=$as_save_IFS
  3309. test -z "$as_dir" && as_dir=.
  3310. for ac_exec_ext in '' $ac_executable_extensions; do
  3311. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3312. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3313. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3314. break 2
  3315. fi
  3316. done
  3317. done
  3318. IFS=$as_save_IFS
  3319. fi
  3320. fi
  3321. CC=$ac_cv_prog_CC
  3322. if test -n "$CC"; then
  3323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3324. $as_echo "$CC" >&6; }
  3325. else
  3326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3327. $as_echo "no" >&6; }
  3328. fi
  3329. test -n "$CC" && break
  3330. done
  3331. fi
  3332. if test -z "$CC"; then
  3333. ac_ct_CC=$CC
  3334. for ac_prog in cl.exe
  3335. do
  3336. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3337. set dummy $ac_prog; ac_word=$2
  3338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3339. $as_echo_n "checking for $ac_word... " >&6; }
  3340. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3341. $as_echo_n "(cached) " >&6
  3342. else
  3343. if test -n "$ac_ct_CC"; then
  3344. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3345. else
  3346. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3347. for as_dir in $PATH
  3348. do
  3349. IFS=$as_save_IFS
  3350. test -z "$as_dir" && as_dir=.
  3351. for ac_exec_ext in '' $ac_executable_extensions; do
  3352. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3353. ac_cv_prog_ac_ct_CC="$ac_prog"
  3354. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3355. break 2
  3356. fi
  3357. done
  3358. done
  3359. IFS=$as_save_IFS
  3360. fi
  3361. fi
  3362. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3363. if test -n "$ac_ct_CC"; then
  3364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3365. $as_echo "$ac_ct_CC" >&6; }
  3366. else
  3367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3368. $as_echo "no" >&6; }
  3369. fi
  3370. test -n "$ac_ct_CC" && break
  3371. done
  3372. if test "x$ac_ct_CC" = x; then
  3373. CC=""
  3374. else
  3375. case $cross_compiling:$ac_tool_warned in
  3376. yes:)
  3377. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3378. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3379. ac_tool_warned=yes ;;
  3380. esac
  3381. CC=$ac_ct_CC
  3382. fi
  3383. fi
  3384. fi
  3385. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3386. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3387. as_fn_error $? "no acceptable C compiler found in \$PATH
  3388. See \`config.log' for more details" "$LINENO" 5; }
  3389. # Provide some information about the compiler.
  3390. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3391. set X $ac_compile
  3392. ac_compiler=$2
  3393. for ac_option in --version -v -V -qversion; do
  3394. { { ac_try="$ac_compiler $ac_option >&5"
  3395. case "(($ac_try" in
  3396. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3397. *) ac_try_echo=$ac_try;;
  3398. esac
  3399. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3400. $as_echo "$ac_try_echo"; } >&5
  3401. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3402. ac_status=$?
  3403. if test -s conftest.err; then
  3404. sed '10a\
  3405. ... rest of stderr output deleted ...
  3406. 10q' conftest.err >conftest.er1
  3407. cat conftest.er1 >&5
  3408. fi
  3409. rm -f conftest.er1 conftest.err
  3410. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3411. test $ac_status = 0; }
  3412. done
  3413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3414. /* end confdefs.h. */
  3415. int
  3416. main ()
  3417. {
  3418. ;
  3419. return 0;
  3420. }
  3421. _ACEOF
  3422. ac_clean_files_save=$ac_clean_files
  3423. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3424. # Try to create an executable without -o first, disregard a.out.
  3425. # It will help us diagnose broken compilers, and finding out an intuition
  3426. # of exeext.
  3427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3428. $as_echo_n "checking whether the C compiler works... " >&6; }
  3429. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3430. # The possible output files:
  3431. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3432. ac_rmfiles=
  3433. for ac_file in $ac_files
  3434. do
  3435. case $ac_file in
  3436. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3437. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3438. esac
  3439. done
  3440. rm -f $ac_rmfiles
  3441. if { { ac_try="$ac_link_default"
  3442. case "(($ac_try" in
  3443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3444. *) ac_try_echo=$ac_try;;
  3445. esac
  3446. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3447. $as_echo "$ac_try_echo"; } >&5
  3448. (eval "$ac_link_default") 2>&5
  3449. ac_status=$?
  3450. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3451. test $ac_status = 0; }; then :
  3452. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3453. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3454. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3455. # so that the user can short-circuit this test for compilers unknown to
  3456. # Autoconf.
  3457. for ac_file in $ac_files ''
  3458. do
  3459. test -f "$ac_file" || continue
  3460. case $ac_file in
  3461. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3462. ;;
  3463. [ab].out )
  3464. # We found the default executable, but exeext='' is most
  3465. # certainly right.
  3466. break;;
  3467. *.* )
  3468. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3469. then :; else
  3470. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3471. fi
  3472. # We set ac_cv_exeext here because the later test for it is not
  3473. # safe: cross compilers may not add the suffix if given an `-o'
  3474. # argument, so we may need to know it at that point already.
  3475. # Even if this section looks crufty: it has the advantage of
  3476. # actually working.
  3477. break;;
  3478. * )
  3479. break;;
  3480. esac
  3481. done
  3482. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3483. else
  3484. ac_file=''
  3485. fi
  3486. if test -z "$ac_file"; then :
  3487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3488. $as_echo "no" >&6; }
  3489. $as_echo "$as_me: failed program was:" >&5
  3490. sed 's/^/| /' conftest.$ac_ext >&5
  3491. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3492. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3493. as_fn_error 77 "C compiler cannot create executables
  3494. See \`config.log' for more details" "$LINENO" 5; }
  3495. else
  3496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3497. $as_echo "yes" >&6; }
  3498. fi
  3499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3500. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3502. $as_echo "$ac_file" >&6; }
  3503. ac_exeext=$ac_cv_exeext
  3504. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3505. ac_clean_files=$ac_clean_files_save
  3506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3507. $as_echo_n "checking for suffix of executables... " >&6; }
  3508. if { { ac_try="$ac_link"
  3509. case "(($ac_try" in
  3510. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3511. *) ac_try_echo=$ac_try;;
  3512. esac
  3513. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3514. $as_echo "$ac_try_echo"; } >&5
  3515. (eval "$ac_link") 2>&5
  3516. ac_status=$?
  3517. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3518. test $ac_status = 0; }; then :
  3519. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3520. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3521. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3522. # `rm'.
  3523. for ac_file in conftest.exe conftest conftest.*; do
  3524. test -f "$ac_file" || continue
  3525. case $ac_file in
  3526. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3527. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3528. break;;
  3529. * ) break;;
  3530. esac
  3531. done
  3532. else
  3533. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3534. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3535. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3536. See \`config.log' for more details" "$LINENO" 5; }
  3537. fi
  3538. rm -f conftest conftest$ac_cv_exeext
  3539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3540. $as_echo "$ac_cv_exeext" >&6; }
  3541. rm -f conftest.$ac_ext
  3542. EXEEXT=$ac_cv_exeext
  3543. ac_exeext=$EXEEXT
  3544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3545. /* end confdefs.h. */
  3546. #include <stdio.h>
  3547. int
  3548. main ()
  3549. {
  3550. FILE *f = fopen ("conftest.out", "w");
  3551. return ferror (f) || fclose (f) != 0;
  3552. ;
  3553. return 0;
  3554. }
  3555. _ACEOF
  3556. ac_clean_files="$ac_clean_files conftest.out"
  3557. # Check that the compiler produces executables we can run. If not, either
  3558. # the compiler is broken, or we cross compile.
  3559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3560. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3561. if test "$cross_compiling" != yes; then
  3562. { { ac_try="$ac_link"
  3563. case "(($ac_try" in
  3564. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3565. *) ac_try_echo=$ac_try;;
  3566. esac
  3567. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3568. $as_echo "$ac_try_echo"; } >&5
  3569. (eval "$ac_link") 2>&5
  3570. ac_status=$?
  3571. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3572. test $ac_status = 0; }
  3573. if { ac_try='./conftest$ac_cv_exeext'
  3574. { { case "(($ac_try" in
  3575. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3576. *) ac_try_echo=$ac_try;;
  3577. esac
  3578. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3579. $as_echo "$ac_try_echo"; } >&5
  3580. (eval "$ac_try") 2>&5
  3581. ac_status=$?
  3582. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3583. test $ac_status = 0; }; }; then
  3584. cross_compiling=no
  3585. else
  3586. if test "$cross_compiling" = maybe; then
  3587. cross_compiling=yes
  3588. else
  3589. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3590. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3591. as_fn_error $? "cannot run C compiled programs.
  3592. If you meant to cross compile, use \`--host'.
  3593. See \`config.log' for more details" "$LINENO" 5; }
  3594. fi
  3595. fi
  3596. fi
  3597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3598. $as_echo "$cross_compiling" >&6; }
  3599. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3600. ac_clean_files=$ac_clean_files_save
  3601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3602. $as_echo_n "checking for suffix of object files... " >&6; }
  3603. if ${ac_cv_objext+:} false; then :
  3604. $as_echo_n "(cached) " >&6
  3605. else
  3606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3607. /* end confdefs.h. */
  3608. int
  3609. main ()
  3610. {
  3611. ;
  3612. return 0;
  3613. }
  3614. _ACEOF
  3615. rm -f conftest.o conftest.obj
  3616. if { { ac_try="$ac_compile"
  3617. case "(($ac_try" in
  3618. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3619. *) ac_try_echo=$ac_try;;
  3620. esac
  3621. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3622. $as_echo "$ac_try_echo"; } >&5
  3623. (eval "$ac_compile") 2>&5
  3624. ac_status=$?
  3625. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3626. test $ac_status = 0; }; then :
  3627. for ac_file in conftest.o conftest.obj conftest.*; do
  3628. test -f "$ac_file" || continue;
  3629. case $ac_file in
  3630. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3631. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3632. break;;
  3633. esac
  3634. done
  3635. else
  3636. $as_echo "$as_me: failed program was:" >&5
  3637. sed 's/^/| /' conftest.$ac_ext >&5
  3638. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3639. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3640. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3641. See \`config.log' for more details" "$LINENO" 5; }
  3642. fi
  3643. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3644. fi
  3645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3646. $as_echo "$ac_cv_objext" >&6; }
  3647. OBJEXT=$ac_cv_objext
  3648. ac_objext=$OBJEXT
  3649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3650. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3651. if ${ac_cv_c_compiler_gnu+:} false; then :
  3652. $as_echo_n "(cached) " >&6
  3653. else
  3654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3655. /* end confdefs.h. */
  3656. int
  3657. main ()
  3658. {
  3659. #ifndef __GNUC__
  3660. choke me
  3661. #endif
  3662. ;
  3663. return 0;
  3664. }
  3665. _ACEOF
  3666. if ac_fn_c_try_compile "$LINENO"; then :
  3667. ac_compiler_gnu=yes
  3668. else
  3669. ac_compiler_gnu=no
  3670. fi
  3671. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3672. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3673. fi
  3674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3675. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3676. if test $ac_compiler_gnu = yes; then
  3677. GCC=yes
  3678. else
  3679. GCC=
  3680. fi
  3681. ac_test_CFLAGS=${CFLAGS+set}
  3682. ac_save_CFLAGS=$CFLAGS
  3683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3684. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3685. if ${ac_cv_prog_cc_g+:} false; then :
  3686. $as_echo_n "(cached) " >&6
  3687. else
  3688. ac_save_c_werror_flag=$ac_c_werror_flag
  3689. ac_c_werror_flag=yes
  3690. ac_cv_prog_cc_g=no
  3691. CFLAGS="-g"
  3692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3693. /* end confdefs.h. */
  3694. int
  3695. main ()
  3696. {
  3697. ;
  3698. return 0;
  3699. }
  3700. _ACEOF
  3701. if ac_fn_c_try_compile "$LINENO"; then :
  3702. ac_cv_prog_cc_g=yes
  3703. else
  3704. CFLAGS=""
  3705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3706. /* end confdefs.h. */
  3707. int
  3708. main ()
  3709. {
  3710. ;
  3711. return 0;
  3712. }
  3713. _ACEOF
  3714. if ac_fn_c_try_compile "$LINENO"; then :
  3715. else
  3716. ac_c_werror_flag=$ac_save_c_werror_flag
  3717. CFLAGS="-g"
  3718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3719. /* end confdefs.h. */
  3720. int
  3721. main ()
  3722. {
  3723. ;
  3724. return 0;
  3725. }
  3726. _ACEOF
  3727. if ac_fn_c_try_compile "$LINENO"; then :
  3728. ac_cv_prog_cc_g=yes
  3729. fi
  3730. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3731. fi
  3732. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3733. fi
  3734. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3735. ac_c_werror_flag=$ac_save_c_werror_flag
  3736. fi
  3737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3738. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3739. if test "$ac_test_CFLAGS" = set; then
  3740. CFLAGS=$ac_save_CFLAGS
  3741. elif test $ac_cv_prog_cc_g = yes; then
  3742. if test "$GCC" = yes; then
  3743. CFLAGS="-g -O2"
  3744. else
  3745. CFLAGS="-g"
  3746. fi
  3747. else
  3748. if test "$GCC" = yes; then
  3749. CFLAGS="-O2"
  3750. else
  3751. CFLAGS=
  3752. fi
  3753. fi
  3754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3755. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3756. if ${ac_cv_prog_cc_c89+:} false; then :
  3757. $as_echo_n "(cached) " >&6
  3758. else
  3759. ac_cv_prog_cc_c89=no
  3760. ac_save_CC=$CC
  3761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3762. /* end confdefs.h. */
  3763. #include <stdarg.h>
  3764. #include <stdio.h>
  3765. struct stat;
  3766. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3767. struct buf { int x; };
  3768. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3769. static char *e (p, i)
  3770. char **p;
  3771. int i;
  3772. {
  3773. return p[i];
  3774. }
  3775. static char *f (char * (*g) (char **, int), char **p, ...)
  3776. {
  3777. char *s;
  3778. va_list v;
  3779. va_start (v,p);
  3780. s = g (p, va_arg (v,int));
  3781. va_end (v);
  3782. return s;
  3783. }
  3784. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3785. function prototypes and stuff, but not '\xHH' hex character constants.
  3786. These don't provoke an error unfortunately, instead are silently treated
  3787. as 'x'. The following induces an error, until -std is added to get
  3788. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3789. array size at least. It's necessary to write '\x00'==0 to get something
  3790. that's true only with -std. */
  3791. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3792. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3793. inside strings and character constants. */
  3794. #define FOO(x) 'x'
  3795. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3796. int test (int i, double x);
  3797. struct s1 {int (*f) (int a);};
  3798. struct s2 {int (*f) (double a);};
  3799. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3800. int argc;
  3801. char **argv;
  3802. int
  3803. main ()
  3804. {
  3805. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3806. ;
  3807. return 0;
  3808. }
  3809. _ACEOF
  3810. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3811. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3812. do
  3813. CC="$ac_save_CC $ac_arg"
  3814. if ac_fn_c_try_compile "$LINENO"; then :
  3815. ac_cv_prog_cc_c89=$ac_arg
  3816. fi
  3817. rm -f core conftest.err conftest.$ac_objext
  3818. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3819. done
  3820. rm -f conftest.$ac_ext
  3821. CC=$ac_save_CC
  3822. fi
  3823. # AC_CACHE_VAL
  3824. case "x$ac_cv_prog_cc_c89" in
  3825. x)
  3826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3827. $as_echo "none needed" >&6; } ;;
  3828. xno)
  3829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3830. $as_echo "unsupported" >&6; } ;;
  3831. *)
  3832. CC="$CC $ac_cv_prog_cc_c89"
  3833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3834. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3835. esac
  3836. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3837. fi
  3838. ac_ext=c
  3839. ac_cpp='$CPP $CPPFLAGS'
  3840. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3841. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3842. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3843. ac_ext=c
  3844. ac_cpp='$CPP $CPPFLAGS'
  3845. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3846. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3847. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3849. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3850. if ${am_cv_prog_cc_c_o+:} false; then :
  3851. $as_echo_n "(cached) " >&6
  3852. else
  3853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3854. /* end confdefs.h. */
  3855. int
  3856. main ()
  3857. {
  3858. ;
  3859. return 0;
  3860. }
  3861. _ACEOF
  3862. # Make sure it works both with $CC and with simple cc.
  3863. # Following AC_PROG_CC_C_O, we do the test twice because some
  3864. # compilers refuse to overwrite an existing .o file with -o,
  3865. # though they will create one.
  3866. am_cv_prog_cc_c_o=yes
  3867. for am_i in 1 2; do
  3868. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3869. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3870. ac_status=$?
  3871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3872. (exit $ac_status); } \
  3873. && test -f conftest2.$ac_objext; then
  3874. : OK
  3875. else
  3876. am_cv_prog_cc_c_o=no
  3877. break
  3878. fi
  3879. done
  3880. rm -f core conftest*
  3881. unset am_i
  3882. fi
  3883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3884. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3885. if test "$am_cv_prog_cc_c_o" != yes; then
  3886. # Losing compiler, so override with the script.
  3887. # FIXME: It is wrong to rewrite CC.
  3888. # But if we don't then we get into trouble of one sort or another.
  3889. # A longer-term fix would be to have automake use am__CC in this case,
  3890. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3891. CC="$am_aux_dir/compile $CC"
  3892. fi
  3893. ac_ext=c
  3894. ac_cpp='$CPP $CPPFLAGS'
  3895. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3896. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3897. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3898. DEPDIR="${am__leading_dot}deps"
  3899. ac_config_commands="$ac_config_commands depfiles"
  3900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  3901. $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
  3902. cat > confinc.mk << 'END'
  3903. am__doit:
  3904. @echo this is the am__doit target >confinc.out
  3905. .PHONY: am__doit
  3906. END
  3907. am__include="#"
  3908. am__quote=
  3909. # BSD make does it like this.
  3910. echo '.include "confinc.mk" # ignored' > confmf.BSD
  3911. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  3912. echo 'include confinc.mk # ignored' > confmf.GNU
  3913. _am_result=no
  3914. for s in GNU BSD; do
  3915. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  3916. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  3917. ac_status=$?
  3918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3919. (exit $ac_status); }
  3920. case $?:`cat confinc.out 2>/dev/null` in #(
  3921. '0:this is the am__doit target') :
  3922. case $s in #(
  3923. BSD) :
  3924. am__include='.include' am__quote='"' ;; #(
  3925. *) :
  3926. am__include='include' am__quote='' ;;
  3927. esac ;; #(
  3928. *) :
  3929. ;;
  3930. esac
  3931. if test "$am__include" != "#"; then
  3932. _am_result="yes ($s style)"
  3933. break
  3934. fi
  3935. done
  3936. rm -f confinc.* confmf.*
  3937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  3938. $as_echo "${_am_result}" >&6; }
  3939. # Check whether --enable-dependency-tracking was given.
  3940. if test "${enable_dependency_tracking+set}" = set; then :
  3941. enableval=$enable_dependency_tracking;
  3942. fi
  3943. if test "x$enable_dependency_tracking" != xno; then
  3944. am_depcomp="$ac_aux_dir/depcomp"
  3945. AMDEPBACKSLASH='\'
  3946. am__nodep='_no'
  3947. fi
  3948. if test "x$enable_dependency_tracking" != xno; then
  3949. AMDEP_TRUE=
  3950. AMDEP_FALSE='#'
  3951. else
  3952. AMDEP_TRUE='#'
  3953. AMDEP_FALSE=
  3954. fi
  3955. depcc="$CC" am_compiler_list=
  3956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3957. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3958. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3959. $as_echo_n "(cached) " >&6
  3960. else
  3961. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3962. # We make a subdir and do the tests there. Otherwise we can end up
  3963. # making bogus files that we don't know about and never remove. For
  3964. # instance it was reported that on HP-UX the gcc test will end up
  3965. # making a dummy file named 'D' -- because '-MD' means "put the output
  3966. # in D".
  3967. rm -rf conftest.dir
  3968. mkdir conftest.dir
  3969. # Copy depcomp to subdir because otherwise we won't find it if we're
  3970. # using a relative directory.
  3971. cp "$am_depcomp" conftest.dir
  3972. cd conftest.dir
  3973. # We will build objects and dependencies in a subdirectory because
  3974. # it helps to detect inapplicable dependency modes. For instance
  3975. # both Tru64's cc and ICC support -MD to output dependencies as a
  3976. # side effect of compilation, but ICC will put the dependencies in
  3977. # the current directory while Tru64 will put them in the object
  3978. # directory.
  3979. mkdir sub
  3980. am_cv_CC_dependencies_compiler_type=none
  3981. if test "$am_compiler_list" = ""; then
  3982. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3983. fi
  3984. am__universal=false
  3985. case " $depcc " in #(
  3986. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3987. esac
  3988. for depmode in $am_compiler_list; do
  3989. # Setup a source with many dependencies, because some compilers
  3990. # like to wrap large dependency lists on column 80 (with \), and
  3991. # we should not choose a depcomp mode which is confused by this.
  3992. #
  3993. # We need to recreate these files for each test, as the compiler may
  3994. # overwrite some of them when testing with obscure command lines.
  3995. # This happens at least with the AIX C compiler.
  3996. : > sub/conftest.c
  3997. for i in 1 2 3 4 5 6; do
  3998. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3999. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4000. # Solaris 10 /bin/sh.
  4001. echo '/* dummy */' > sub/conftst$i.h
  4002. done
  4003. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4004. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4005. # mode. It turns out that the SunPro C++ compiler does not properly
  4006. # handle '-M -o', and we need to detect this. Also, some Intel
  4007. # versions had trouble with output in subdirs.
  4008. am__obj=sub/conftest.${OBJEXT-o}
  4009. am__minus_obj="-o $am__obj"
  4010. case $depmode in
  4011. gcc)
  4012. # This depmode causes a compiler race in universal mode.
  4013. test "$am__universal" = false || continue
  4014. ;;
  4015. nosideeffect)
  4016. # After this tag, mechanisms are not by side-effect, so they'll
  4017. # only be used when explicitly requested.
  4018. if test "x$enable_dependency_tracking" = xyes; then
  4019. continue
  4020. else
  4021. break
  4022. fi
  4023. ;;
  4024. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4025. # This compiler won't grok '-c -o', but also, the minuso test has
  4026. # not run yet. These depmodes are late enough in the game, and
  4027. # so weak that their functioning should not be impacted.
  4028. am__obj=conftest.${OBJEXT-o}
  4029. am__minus_obj=
  4030. ;;
  4031. none) break ;;
  4032. esac
  4033. if depmode=$depmode \
  4034. source=sub/conftest.c object=$am__obj \
  4035. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4036. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4037. >/dev/null 2>conftest.err &&
  4038. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4039. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4040. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4041. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4042. # icc doesn't choke on unknown options, it will just issue warnings
  4043. # or remarks (even with -Werror). So we grep stderr for any message
  4044. # that says an option was ignored or not supported.
  4045. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4046. # icc: Command line warning: ignoring option '-M'; no argument required
  4047. # The diagnosis changed in icc 8.0:
  4048. # icc: Command line remark: option '-MP' not supported
  4049. if (grep 'ignoring option' conftest.err ||
  4050. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4051. am_cv_CC_dependencies_compiler_type=$depmode
  4052. break
  4053. fi
  4054. fi
  4055. done
  4056. cd ..
  4057. rm -rf conftest.dir
  4058. else
  4059. am_cv_CC_dependencies_compiler_type=none
  4060. fi
  4061. fi
  4062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4063. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4064. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4065. if
  4066. test "x$enable_dependency_tracking" != xno \
  4067. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4068. am__fastdepCC_TRUE=
  4069. am__fastdepCC_FALSE='#'
  4070. else
  4071. am__fastdepCC_TRUE='#'
  4072. am__fastdepCC_FALSE=
  4073. fi
  4074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  4075. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  4076. if ${ac_cv_prog_cc_c99+:} false; then :
  4077. $as_echo_n "(cached) " >&6
  4078. else
  4079. ac_cv_prog_cc_c99=no
  4080. ac_save_CC=$CC
  4081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4082. /* end confdefs.h. */
  4083. #include <stdarg.h>
  4084. #include <stdbool.h>
  4085. #include <stdlib.h>
  4086. #include <wchar.h>
  4087. #include <stdio.h>
  4088. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  4089. #define debug(...) fprintf (stderr, __VA_ARGS__)
  4090. #define showlist(...) puts (#__VA_ARGS__)
  4091. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  4092. static void
  4093. test_varargs_macros (void)
  4094. {
  4095. int x = 1234;
  4096. int y = 5678;
  4097. debug ("Flag");
  4098. debug ("X = %d\n", x);
  4099. showlist (The first, second, and third items.);
  4100. report (x>y, "x is %d but y is %d", x, y);
  4101. }
  4102. // Check long long types.
  4103. #define BIG64 18446744073709551615ull
  4104. #define BIG32 4294967295ul
  4105. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  4106. #if !BIG_OK
  4107. your preprocessor is broken;
  4108. #endif
  4109. #if BIG_OK
  4110. #else
  4111. your preprocessor is broken;
  4112. #endif
  4113. static long long int bignum = -9223372036854775807LL;
  4114. static unsigned long long int ubignum = BIG64;
  4115. struct incomplete_array
  4116. {
  4117. int datasize;
  4118. double data[];
  4119. };
  4120. struct named_init {
  4121. int number;
  4122. const wchar_t *name;
  4123. double average;
  4124. };
  4125. typedef const char *ccp;
  4126. static inline int
  4127. test_restrict (ccp restrict text)
  4128. {
  4129. // See if C++-style comments work.
  4130. // Iterate through items via the restricted pointer.
  4131. // Also check for declarations in for loops.
  4132. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  4133. continue;
  4134. return 0;
  4135. }
  4136. // Check varargs and va_copy.
  4137. static void
  4138. test_varargs (const char *format, ...)
  4139. {
  4140. va_list args;
  4141. va_start (args, format);
  4142. va_list args_copy;
  4143. va_copy (args_copy, args);
  4144. const char *str;
  4145. int number;
  4146. float fnumber;
  4147. while (*format)
  4148. {
  4149. switch (*format++)
  4150. {
  4151. case 's': // string
  4152. str = va_arg (args_copy, const char *);
  4153. break;
  4154. case 'd': // int
  4155. number = va_arg (args_copy, int);
  4156. break;
  4157. case 'f': // float
  4158. fnumber = va_arg (args_copy, double);
  4159. break;
  4160. default:
  4161. break;
  4162. }
  4163. }
  4164. va_end (args_copy);
  4165. va_end (args);
  4166. }
  4167. int
  4168. main ()
  4169. {
  4170. // Check bool.
  4171. _Bool success = false;
  4172. // Check restrict.
  4173. if (test_restrict ("String literal") == 0)
  4174. success = true;
  4175. char *restrict newvar = "Another string";
  4176. // Check varargs.
  4177. test_varargs ("s, d' f .", "string", 65, 34.234);
  4178. test_varargs_macros ();
  4179. // Check flexible array members.
  4180. struct incomplete_array *ia =
  4181. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  4182. ia->datasize = 10;
  4183. for (int i = 0; i < ia->datasize; ++i)
  4184. ia->data[i] = i * 1.234;
  4185. // Check named initializers.
  4186. struct named_init ni = {
  4187. .number = 34,
  4188. .name = L"Test wide string",
  4189. .average = 543.34343,
  4190. };
  4191. ni.number = 58;
  4192. int dynamic_array[ni.number];
  4193. dynamic_array[ni.number - 1] = 543;
  4194. // work around unused variable warnings
  4195. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  4196. || dynamic_array[ni.number - 1] != 543);
  4197. ;
  4198. return 0;
  4199. }
  4200. _ACEOF
  4201. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  4202. do
  4203. CC="$ac_save_CC $ac_arg"
  4204. if ac_fn_c_try_compile "$LINENO"; then :
  4205. ac_cv_prog_cc_c99=$ac_arg
  4206. fi
  4207. rm -f core conftest.err conftest.$ac_objext
  4208. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4209. done
  4210. rm -f conftest.$ac_ext
  4211. CC=$ac_save_CC
  4212. fi
  4213. # AC_CACHE_VAL
  4214. case "x$ac_cv_prog_cc_c99" in
  4215. x)
  4216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4217. $as_echo "none needed" >&6; } ;;
  4218. xno)
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4220. $as_echo "unsupported" >&6; } ;;
  4221. *)
  4222. CC="$CC $ac_cv_prog_cc_c99"
  4223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4224. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  4225. esac
  4226. if test "x$ac_cv_prog_cc_c99" != xno; then :
  4227. fi
  4228. ac_ext=c
  4229. ac_cpp='$CPP $CPPFLAGS'
  4230. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4231. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4232. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4234. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4235. # On Suns, sometimes $CPP names a directory.
  4236. if test -n "$CPP" && test -d "$CPP"; then
  4237. CPP=
  4238. fi
  4239. if test -z "$CPP"; then
  4240. if ${ac_cv_prog_CPP+:} false; then :
  4241. $as_echo_n "(cached) " >&6
  4242. else
  4243. # Double quotes because CPP needs to be expanded
  4244. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4245. do
  4246. ac_preproc_ok=false
  4247. for ac_c_preproc_warn_flag in '' yes
  4248. do
  4249. # Use a header file that comes with gcc, so configuring glibc
  4250. # with a fresh cross-compiler works.
  4251. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4252. # <limits.h> exists even on freestanding compilers.
  4253. # On the NeXT, cc -E runs the code through the compiler's parser,
  4254. # not just through cpp. "Syntax error" is here to catch this case.
  4255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4256. /* end confdefs.h. */
  4257. #ifdef __STDC__
  4258. # include <limits.h>
  4259. #else
  4260. # include <assert.h>
  4261. #endif
  4262. Syntax error
  4263. _ACEOF
  4264. if ac_fn_c_try_cpp "$LINENO"; then :
  4265. else
  4266. # Broken: fails on valid input.
  4267. continue
  4268. fi
  4269. rm -f conftest.err conftest.i conftest.$ac_ext
  4270. # OK, works on sane cases. Now check whether nonexistent headers
  4271. # can be detected and how.
  4272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4273. /* end confdefs.h. */
  4274. #include <ac_nonexistent.h>
  4275. _ACEOF
  4276. if ac_fn_c_try_cpp "$LINENO"; then :
  4277. # Broken: success on invalid input.
  4278. continue
  4279. else
  4280. # Passes both tests.
  4281. ac_preproc_ok=:
  4282. break
  4283. fi
  4284. rm -f conftest.err conftest.i conftest.$ac_ext
  4285. done
  4286. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4287. rm -f conftest.i conftest.err conftest.$ac_ext
  4288. if $ac_preproc_ok; then :
  4289. break
  4290. fi
  4291. done
  4292. ac_cv_prog_CPP=$CPP
  4293. fi
  4294. CPP=$ac_cv_prog_CPP
  4295. else
  4296. ac_cv_prog_CPP=$CPP
  4297. fi
  4298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4299. $as_echo "$CPP" >&6; }
  4300. ac_preproc_ok=false
  4301. for ac_c_preproc_warn_flag in '' yes
  4302. do
  4303. # Use a header file that comes with gcc, so configuring glibc
  4304. # with a fresh cross-compiler works.
  4305. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4306. # <limits.h> exists even on freestanding compilers.
  4307. # On the NeXT, cc -E runs the code through the compiler's parser,
  4308. # not just through cpp. "Syntax error" is here to catch this case.
  4309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4310. /* end confdefs.h. */
  4311. #ifdef __STDC__
  4312. # include <limits.h>
  4313. #else
  4314. # include <assert.h>
  4315. #endif
  4316. Syntax error
  4317. _ACEOF
  4318. if ac_fn_c_try_cpp "$LINENO"; then :
  4319. else
  4320. # Broken: fails on valid input.
  4321. continue
  4322. fi
  4323. rm -f conftest.err conftest.i conftest.$ac_ext
  4324. # OK, works on sane cases. Now check whether nonexistent headers
  4325. # can be detected and how.
  4326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4327. /* end confdefs.h. */
  4328. #include <ac_nonexistent.h>
  4329. _ACEOF
  4330. if ac_fn_c_try_cpp "$LINENO"; then :
  4331. # Broken: success on invalid input.
  4332. continue
  4333. else
  4334. # Passes both tests.
  4335. ac_preproc_ok=:
  4336. break
  4337. fi
  4338. rm -f conftest.err conftest.i conftest.$ac_ext
  4339. done
  4340. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4341. rm -f conftest.i conftest.err conftest.$ac_ext
  4342. if $ac_preproc_ok; then :
  4343. else
  4344. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4345. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4346. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4347. See \`config.log' for more details" "$LINENO" 5; }
  4348. fi
  4349. ac_ext=c
  4350. ac_cpp='$CPP $CPPFLAGS'
  4351. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4352. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4353. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4354. cross_compiling_build=no
  4355. ac_build_tool_prefix=
  4356. if test -n "$build"; then :
  4357. ac_build_tool_prefix="$build-"
  4358. elif test -n "$build_alias"; then :
  4359. ac_build_tool_prefix="$build_alias-"
  4360. fi
  4361. ac_ext=c
  4362. ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  4363. ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  4364. ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
  4365. ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
  4366. was_set_ac_cv_c_compiler_gnu=${ac_cv_c_compiler_gnu+y}
  4367. if test ${was_set_ac_cv_c_compiler_gnu}; then :
  4368. saved_ac_cv_c_compiler_gnu=$ac_cv_c_compiler_gnu
  4369. { ac_cv_c_compiler_gnu=; unset ac_cv_c_compiler_gnu;}
  4370. fi
  4371. ac_ext=c
  4372. ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  4373. ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  4374. ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
  4375. ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
  4376. if test -n "$ac_build_tool_prefix"; then
  4377. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4378. set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
  4379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4380. $as_echo_n "checking for $ac_word... " >&6; }
  4381. if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
  4382. $as_echo_n "(cached) " >&6
  4383. else
  4384. if test -n "$CC_FOR_BUILD"; then
  4385. ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  4386. else
  4387. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4388. for as_dir in $PATH
  4389. do
  4390. IFS=$as_save_IFS
  4391. test -z "$as_dir" && as_dir=.
  4392. for ac_exec_ext in '' $ac_executable_extensions; do
  4393. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4394. ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
  4395. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4396. break 2
  4397. fi
  4398. done
  4399. done
  4400. IFS=$as_save_IFS
  4401. fi
  4402. fi
  4403. CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  4404. if test -n "$CC_FOR_BUILD"; then
  4405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
  4406. $as_echo "$CC_FOR_BUILD" >&6; }
  4407. else
  4408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4409. $as_echo "no" >&6; }
  4410. fi
  4411. fi
  4412. if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
  4413. ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
  4414. # Extract the first word of "gcc", so it can be a program name with args.
  4415. set dummy gcc; ac_word=$2
  4416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4417. $as_echo_n "checking for $ac_word... " >&6; }
  4418. if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
  4419. $as_echo_n "(cached) " >&6
  4420. else
  4421. if test -n "$ac_ct_CC_FOR_BUILD"; then
  4422. ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
  4423. else
  4424. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4425. for as_dir in $PATH
  4426. do
  4427. IFS=$as_save_IFS
  4428. test -z "$as_dir" && as_dir=.
  4429. for ac_exec_ext in '' $ac_executable_extensions; do
  4430. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4431. ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
  4432. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4433. break 2
  4434. fi
  4435. done
  4436. done
  4437. IFS=$as_save_IFS
  4438. fi
  4439. fi
  4440. ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
  4441. if test -n "$ac_ct_CC_FOR_BUILD"; then
  4442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
  4443. $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
  4444. else
  4445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4446. $as_echo "no" >&6; }
  4447. fi
  4448. if test "x$ac_ct_CC_FOR_BUILD" = x; then
  4449. CC_FOR_BUILD=""
  4450. else
  4451. case $cross_compiling_build:$ac_tool_warned in
  4452. yes:)
  4453. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
  4454. $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
  4455. ac_tool_warned=yes ;;
  4456. esac
  4457. CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
  4458. fi
  4459. else
  4460. CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
  4461. fi
  4462. if test -z "$CC_FOR_BUILD"; then
  4463. if test -n "$ac_build_tool_prefix"; then
  4464. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4465. set dummy ${ac_build_tool_prefix}cc; ac_word=$2
  4466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4467. $as_echo_n "checking for $ac_word... " >&6; }
  4468. if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
  4469. $as_echo_n "(cached) " >&6
  4470. else
  4471. if test -n "$CC_FOR_BUILD"; then
  4472. ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  4473. else
  4474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4475. for as_dir in $PATH
  4476. do
  4477. IFS=$as_save_IFS
  4478. test -z "$as_dir" && as_dir=.
  4479. for ac_exec_ext in '' $ac_executable_extensions; do
  4480. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4481. ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
  4482. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4483. break 2
  4484. fi
  4485. done
  4486. done
  4487. IFS=$as_save_IFS
  4488. fi
  4489. fi
  4490. CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  4491. if test -n "$CC_FOR_BUILD"; then
  4492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
  4493. $as_echo "$CC_FOR_BUILD" >&6; }
  4494. else
  4495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4496. $as_echo "no" >&6; }
  4497. fi
  4498. fi
  4499. fi
  4500. if test -z "$CC_FOR_BUILD"; then
  4501. # Extract the first word of "cc", so it can be a program name with args.
  4502. set dummy cc; ac_word=$2
  4503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4504. $as_echo_n "checking for $ac_word... " >&6; }
  4505. if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
  4506. $as_echo_n "(cached) " >&6
  4507. else
  4508. if test -n "$CC_FOR_BUILD"; then
  4509. ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  4510. else
  4511. ac_prog_rejected=no
  4512. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4513. for as_dir in $PATH
  4514. do
  4515. IFS=$as_save_IFS
  4516. test -z "$as_dir" && as_dir=.
  4517. for ac_exec_ext in '' $ac_executable_extensions; do
  4518. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4519. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4520. ac_prog_rejected=yes
  4521. continue
  4522. fi
  4523. ac_cv_prog_CC_FOR_BUILD="cc"
  4524. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4525. break 2
  4526. fi
  4527. done
  4528. done
  4529. IFS=$as_save_IFS
  4530. if test $ac_prog_rejected = yes; then
  4531. # We found a bogon in the path, so make sure we never use it.
  4532. set dummy $ac_cv_prog_CC_FOR_BUILD
  4533. shift
  4534. if test $# != 0; then
  4535. # We chose a different compiler from the bogus one.
  4536. # However, it has the same basename, so the bogon will be chosen
  4537. # first if we set CC_FOR_BUILD to just the basename; use the full file name.
  4538. shift
  4539. ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
  4540. fi
  4541. fi
  4542. fi
  4543. fi
  4544. CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  4545. if test -n "$CC_FOR_BUILD"; then
  4546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
  4547. $as_echo "$CC_FOR_BUILD" >&6; }
  4548. else
  4549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4550. $as_echo "no" >&6; }
  4551. fi
  4552. fi
  4553. if test -z "$CC_FOR_BUILD"; then
  4554. if test -n "$ac_build_tool_prefix"; then
  4555. for ac_prog in cl.exe
  4556. do
  4557. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4558. set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
  4559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4560. $as_echo_n "checking for $ac_word... " >&6; }
  4561. if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
  4562. $as_echo_n "(cached) " >&6
  4563. else
  4564. if test -n "$CC_FOR_BUILD"; then
  4565. ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  4566. else
  4567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4568. for as_dir in $PATH
  4569. do
  4570. IFS=$as_save_IFS
  4571. test -z "$as_dir" && as_dir=.
  4572. for ac_exec_ext in '' $ac_executable_extensions; do
  4573. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4574. ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
  4575. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4576. break 2
  4577. fi
  4578. done
  4579. done
  4580. IFS=$as_save_IFS
  4581. fi
  4582. fi
  4583. CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  4584. if test -n "$CC_FOR_BUILD"; then
  4585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
  4586. $as_echo "$CC_FOR_BUILD" >&6; }
  4587. else
  4588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4589. $as_echo "no" >&6; }
  4590. fi
  4591. test -n "$CC_FOR_BUILD" && break
  4592. done
  4593. fi
  4594. if test -z "$CC_FOR_BUILD"; then
  4595. ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
  4596. for ac_prog in cl.exe
  4597. do
  4598. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4599. set dummy $ac_prog; ac_word=$2
  4600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4601. $as_echo_n "checking for $ac_word... " >&6; }
  4602. if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
  4603. $as_echo_n "(cached) " >&6
  4604. else
  4605. if test -n "$ac_ct_CC_FOR_BUILD"; then
  4606. ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
  4607. else
  4608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4609. for as_dir in $PATH
  4610. do
  4611. IFS=$as_save_IFS
  4612. test -z "$as_dir" && as_dir=.
  4613. for ac_exec_ext in '' $ac_executable_extensions; do
  4614. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4615. ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
  4616. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4617. break 2
  4618. fi
  4619. done
  4620. done
  4621. IFS=$as_save_IFS
  4622. fi
  4623. fi
  4624. ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
  4625. if test -n "$ac_ct_CC_FOR_BUILD"; then
  4626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
  4627. $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
  4628. else
  4629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4630. $as_echo "no" >&6; }
  4631. fi
  4632. test -n "$ac_ct_CC_FOR_BUILD" && break
  4633. done
  4634. if test "x$ac_ct_CC_FOR_BUILD" = x; then
  4635. CC_FOR_BUILD=""
  4636. else
  4637. case $cross_compiling_build:$ac_tool_warned in
  4638. yes:)
  4639. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
  4640. $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
  4641. ac_tool_warned=yes ;;
  4642. esac
  4643. CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
  4644. fi
  4645. fi
  4646. fi
  4647. test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4648. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4649. as_fn_error $? "no acceptable C compiler found in \$PATH
  4650. See \`config.log' for more details" "$LINENO" 5; }
  4651. # Provide some information about the compiler.
  4652. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4653. set X $ac_compile
  4654. ac_compiler=$2
  4655. for ac_option in --version -v -V -qversion; do
  4656. { { ac_try="$ac_compiler $ac_option >&5"
  4657. case "(($ac_try" in
  4658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4659. *) ac_try_echo=$ac_try;;
  4660. esac
  4661. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4662. $as_echo "$ac_try_echo"; } >&5
  4663. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4664. ac_status=$?
  4665. if test -s conftest.err; then
  4666. sed '10a\
  4667. ... rest of stderr output deleted ...
  4668. 10q' conftest.err >conftest.er1
  4669. cat conftest.er1 >&5
  4670. fi
  4671. rm -f conftest.er1 conftest.err
  4672. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4673. test $ac_status = 0; }
  4674. done
  4675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4676. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4677. if ${ac_cv_c_compiler_gnu+:} false; then :
  4678. $as_echo_n "(cached) " >&6
  4679. else
  4680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4681. /* end confdefs.h. */
  4682. int
  4683. main ()
  4684. {
  4685. #ifndef __GNUC__
  4686. choke me
  4687. #endif
  4688. ;
  4689. return 0;
  4690. }
  4691. _ACEOF
  4692. if ac_fn_c_try_compile "$LINENO"; then :
  4693. ac_compiler_gnu=yes
  4694. else
  4695. ac_compiler_gnu=no
  4696. fi
  4697. rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  4698. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4699. fi
  4700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4701. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4702. if test $ac_compiler_gnu = yes; then
  4703. GCC_FOR_BUILD=yes
  4704. else
  4705. GCC_FOR_BUILD=
  4706. fi
  4707. ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
  4708. ac_save_CFLAGS=$CFLAGS_FOR_BUILD
  4709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
  4710. $as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
  4711. if ${ac_cv_build_prog_cc_g+:} false; then :
  4712. $as_echo_n "(cached) " >&6
  4713. else
  4714. ac_save_c_werror_flag=$ac_c_werror_flag
  4715. ac_c_werror_flag=yes
  4716. ac_cv_build_prog_cc_g=no
  4717. CFLAGS_FOR_BUILD="-g"
  4718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4719. /* end confdefs.h. */
  4720. int
  4721. main ()
  4722. {
  4723. ;
  4724. return 0;
  4725. }
  4726. _ACEOF
  4727. if ac_fn_c_try_compile "$LINENO"; then :
  4728. ac_cv_build_prog_cc_g=yes
  4729. else
  4730. CFLAGS_FOR_BUILD=""
  4731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4732. /* end confdefs.h. */
  4733. int
  4734. main ()
  4735. {
  4736. ;
  4737. return 0;
  4738. }
  4739. _ACEOF
  4740. if ac_fn_c_try_compile "$LINENO"; then :
  4741. else
  4742. ac_c_werror_flag=$ac_save_c_werror_flag
  4743. CFLAGS_FOR_BUILD="-g"
  4744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4745. /* end confdefs.h. */
  4746. int
  4747. main ()
  4748. {
  4749. ;
  4750. return 0;
  4751. }
  4752. _ACEOF
  4753. if ac_fn_c_try_compile "$LINENO"; then :
  4754. ac_cv_build_prog_cc_g=yes
  4755. fi
  4756. rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  4757. fi
  4758. rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  4759. fi
  4760. rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  4761. ac_c_werror_flag=$ac_save_c_werror_flag
  4762. fi
  4763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
  4764. $as_echo "$ac_cv_build_prog_cc_g" >&6; }
  4765. if test "$ac_test_CFLAGS" = set; then
  4766. CFLAGS_FOR_BUILD=$ac_save_CFLAGS
  4767. elif test $ac_cv_build_prog_cc_g = yes; then
  4768. if test "$GCC_FOR_BUILD" = yes; then
  4769. CFLAGS_FOR_BUILD="-g -O2"
  4770. else
  4771. CFLAGS_FOR_BUILD="-g"
  4772. fi
  4773. else
  4774. if test "$GCC_FOR_BUILD" = yes; then
  4775. CFLAGS_FOR_BUILD="-O2"
  4776. else
  4777. CFLAGS_FOR_BUILD=
  4778. fi
  4779. fi
  4780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
  4781. $as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; }
  4782. if ${ac_cv_build_prog_cc_c89+:} false; then :
  4783. $as_echo_n "(cached) " >&6
  4784. else
  4785. ac_cv_build_prog_cc_c89=no
  4786. ac_save_CC=$CC_FOR_BUILD
  4787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4788. /* end confdefs.h. */
  4789. #include <stdarg.h>
  4790. #include <stdio.h>
  4791. struct stat;
  4792. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4793. struct buf { int x; };
  4794. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4795. static char *e (p, i)
  4796. char **p;
  4797. int i;
  4798. {
  4799. return p[i];
  4800. }
  4801. static char *f (char * (*g) (char **, int), char **p, ...)
  4802. {
  4803. char *s;
  4804. va_list v;
  4805. va_start (v,p);
  4806. s = g (p, va_arg (v,int));
  4807. va_end (v);
  4808. return s;
  4809. }
  4810. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4811. function prototypes and stuff, but not '\xHH' hex character constants.
  4812. These don't provoke an error unfortunately, instead are silently treated
  4813. as 'x'. The following induces an error, until -std is added to get
  4814. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4815. array size at least. It's necessary to write '\x00'==0 to get something
  4816. that's true only with -std. */
  4817. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4818. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4819. inside strings and character constants. */
  4820. #define FOO(x) 'x'
  4821. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4822. int test (int i, double x);
  4823. struct s1 {int (*f) (int a);};
  4824. struct s2 {int (*f) (double a);};
  4825. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4826. int argc;
  4827. char **argv;
  4828. int
  4829. main ()
  4830. {
  4831. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4832. ;
  4833. return 0;
  4834. }
  4835. _ACEOF
  4836. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4837. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4838. do
  4839. CC_FOR_BUILD="$ac_save_CC $ac_arg"
  4840. if ac_fn_c_try_compile "$LINENO"; then :
  4841. ac_cv_build_prog_cc_c89=$ac_arg
  4842. fi
  4843. rm -f core conftest.err conftest.$ac_build_objext
  4844. test "x$ac_cv_build_prog_cc_c89" != "xno" && break
  4845. done
  4846. rm -f conftest.$ac_ext
  4847. CC_FOR_BUILD=$ac_save_CC
  4848. fi
  4849. # AC_CACHE_VAL
  4850. case "x$ac_cv_build_prog_cc_c89" in
  4851. x)
  4852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4853. $as_echo "none needed" >&6; } ;;
  4854. xno)
  4855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4856. $as_echo "unsupported" >&6; } ;;
  4857. *)
  4858. CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_c89"
  4859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c89" >&5
  4860. $as_echo "$ac_cv_build_prog_cc_c89" >&6; } ;;
  4861. esac
  4862. if test "x$ac_cv_build_prog_cc_c89" != xno; then :
  4863. fi
  4864. ac_ext=c
  4865. ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  4866. ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  4867. ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
  4868. ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
  4869. ac_ext=c
  4870. ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  4871. ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  4872. ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
  4873. ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
  4874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5
  4875. $as_echo_n "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; }
  4876. if ${am_cv_build_prog_cc_c_o+:} false; then :
  4877. $as_echo_n "(cached) " >&6
  4878. else
  4879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4880. /* end confdefs.h. */
  4881. int
  4882. main ()
  4883. {
  4884. ;
  4885. return 0;
  4886. }
  4887. _ACEOF
  4888. # Make sure it works both with $CC and with simple cc.
  4889. # Following AC_PROG_CC_C_O, we do the test twice because some
  4890. # compilers refuse to overwrite an existing .o file with -o,
  4891. # though they will create one.
  4892. am_cv_build_prog_cc_c_o=yes
  4893. for am_i in 1 2; do
  4894. if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5
  4895. ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5
  4896. ac_status=$?
  4897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4898. (exit $ac_status); } \
  4899. && test -f conftest2.$ac_build_objext; then
  4900. : OK
  4901. else
  4902. am_cv_build_prog_cc_c_o=no
  4903. break
  4904. fi
  4905. done
  4906. rm -f core conftest*
  4907. unset am_i
  4908. fi
  4909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_build_prog_cc_c_o" >&5
  4910. $as_echo "$am_cv_build_prog_cc_c_o" >&6; }
  4911. if test "$am_cv_build_prog_cc_c_o" != yes; then
  4912. # Losing compiler, so override with the script.
  4913. # FIXME: It is wrong to rewrite CC.
  4914. # But if we don't then we get into trouble of one sort or another.
  4915. # A longer-term fix would be to have automake use am__CC in this case,
  4916. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4917. CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD"
  4918. fi
  4919. ac_ext=c
  4920. ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  4921. ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  4922. ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
  4923. ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
  4924. depcc="$CC_FOR_BUILD" am_compiler_list=
  4925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4926. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4927. if ${am_cv_build_CC_dependencies_compiler_type+:} false; then :
  4928. $as_echo_n "(cached) " >&6
  4929. else
  4930. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4931. # We make a subdir and do the tests there. Otherwise we can end up
  4932. # making bogus files that we don't know about and never remove. For
  4933. # instance it was reported that on HP-UX the gcc test will end up
  4934. # making a dummy file named 'D' -- because '-MD' means "put the output
  4935. # in D".
  4936. rm -rf conftest.dir
  4937. mkdir conftest.dir
  4938. # Copy depcomp to subdir because otherwise we won't find it if we're
  4939. # using a relative directory.
  4940. cp "$am_depcomp" conftest.dir
  4941. cd conftest.dir
  4942. # We will build objects and dependencies in a subdirectory because
  4943. # it helps to detect inapplicable dependency modes. For instance
  4944. # both Tru64's cc and ICC support -MD to output dependencies as a
  4945. # side effect of compilation, but ICC will put the dependencies in
  4946. # the current directory while Tru64 will put them in the object
  4947. # directory.
  4948. mkdir sub
  4949. am_cv_build_CC_dependencies_compiler_type=none
  4950. if test "$am_compiler_list" = ""; then
  4951. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4952. fi
  4953. am__universal=false
  4954. case " $depcc " in #(
  4955. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4956. esac
  4957. for depmode in $am_compiler_list; do
  4958. # Setup a source with many dependencies, because some compilers
  4959. # like to wrap large dependency lists on column 80 (with \), and
  4960. # we should not choose a depcomp mode which is confused by this.
  4961. #
  4962. # We need to recreate these files for each test, as the compiler may
  4963. # overwrite some of them when testing with obscure command lines.
  4964. # This happens at least with the AIX C compiler.
  4965. : > sub/conftest.c
  4966. for i in 1 2 3 4 5 6; do
  4967. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4968. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4969. # Solaris 10 /bin/sh.
  4970. echo '/* dummy */' > sub/conftst$i.h
  4971. done
  4972. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4973. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4974. # mode. It turns out that the SunPro C++ compiler does not properly
  4975. # handle '-M -o', and we need to detect this. Also, some Intel
  4976. # versions had trouble with output in subdirs.
  4977. am__obj=sub/conftest.${BUILD_OBJEXT-o}
  4978. am__minus_obj="-o $am__obj"
  4979. case $depmode in
  4980. gcc)
  4981. # This depmode causes a compiler race in universal mode.
  4982. test "$am__universal" = false || continue
  4983. ;;
  4984. nosideeffect)
  4985. # After this tag, mechanisms are not by side-effect, so they'll
  4986. # only be used when explicitly requested.
  4987. if test "x$enable_dependency_tracking" = xyes; then
  4988. continue
  4989. else
  4990. break
  4991. fi
  4992. ;;
  4993. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4994. # This compiler won't grok '-c -o', but also, the minuso test has
  4995. # not run yet. These depmodes are late enough in the game, and
  4996. # so weak that their functioning should not be impacted.
  4997. am__obj=conftest.${BUILD_OBJEXT-o}
  4998. am__minus_obj=
  4999. ;;
  5000. none) break ;;
  5001. esac
  5002. if depmode=$depmode \
  5003. source=sub/conftest.c object=$am__obj \
  5004. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5005. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5006. >/dev/null 2>conftest.err &&
  5007. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5008. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5009. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5010. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5011. # icc doesn't choke on unknown options, it will just issue warnings
  5012. # or remarks (even with -Werror). So we grep stderr for any message
  5013. # that says an option was ignored or not supported.
  5014. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5015. # icc: Command line warning: ignoring option '-M'; no argument required
  5016. # The diagnosis changed in icc 8.0:
  5017. # icc: Command line remark: option '-MP' not supported
  5018. if (grep 'ignoring option' conftest.err ||
  5019. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5020. am_cv_build_CC_dependencies_compiler_type=$depmode
  5021. break
  5022. fi
  5023. fi
  5024. done
  5025. cd ..
  5026. rm -rf conftest.dir
  5027. else
  5028. am_cv_build_CC_dependencies_compiler_type=none
  5029. fi
  5030. fi
  5031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_build_CC_dependencies_compiler_type" >&5
  5032. $as_echo "$am_cv_build_CC_dependencies_compiler_type" >&6; }
  5033. CCDEPMODE=depmode=$am_cv_build_CC_dependencies_compiler_type
  5034. if
  5035. test "x$enable_dependency_tracking" != xno \
  5036. && test "$am_cv_build_CC_dependencies_compiler_type" = gcc3; then
  5037. am__fastdepCC_TRUE=
  5038. am__fastdepCC_FALSE='#'
  5039. else
  5040. am__fastdepCC_TRUE='#'
  5041. am__fastdepCC_FALSE=
  5042. fi
  5043. if test ${was_set_ac_cv_c_compiler_gnu}; then :
  5044. ac_cv_c_compiler_gnu=saved_ac_cv_c_compiler_gnu
  5045. fi
  5046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5047. /* end confdefs.h. */
  5048. int
  5049. main ()
  5050. {
  5051. ;
  5052. return 0;
  5053. }
  5054. _ACEOF
  5055. ac_clean_files_save=$ac_clean_files
  5056. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  5057. # Try to create an executable without -o first, disregard a.out.
  5058. # It will help us diagnose broken compilers, and finding out an intuition
  5059. # of exeext.
  5060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  5061. $as_echo_n "checking whether the C compiler works... " >&6; }
  5062. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  5063. # The possible output files:
  5064. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  5065. ac_rmfiles=
  5066. for ac_file in $ac_files
  5067. do
  5068. case $ac_file in
  5069. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  5070. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  5071. esac
  5072. done
  5073. rm -f $ac_rmfiles
  5074. if { { ac_try="$ac_link_default"
  5075. case "(($ac_try" in
  5076. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5077. *) ac_try_echo=$ac_try;;
  5078. esac
  5079. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5080. $as_echo "$ac_try_echo"; } >&5
  5081. (eval "$ac_link_default") 2>&5
  5082. ac_status=$?
  5083. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5084. test $ac_status = 0; }; then :
  5085. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  5086. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  5087. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  5088. # so that the user can short-circuit this test for compilers unknown to
  5089. # Autoconf.
  5090. for ac_file in $ac_files ''
  5091. do
  5092. test -f "$ac_file" || continue
  5093. case $ac_file in
  5094. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  5095. ;;
  5096. [ab].out )
  5097. # We found the default executable, but exeext='' is most
  5098. # certainly right.
  5099. break;;
  5100. *.* )
  5101. if test "${ac_cv_build_exeext+set}" = set && test "$ac_cv_build_exeext" != no;
  5102. then :; else
  5103. ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  5104. fi
  5105. # We set ac_cv_exeext here because the later test for it is not
  5106. # safe: cross compilers may not add the suffix if given an `-o'
  5107. # argument, so we may need to know it at that point already.
  5108. # Even if this section looks crufty: it has the advantage of
  5109. # actually working.
  5110. break;;
  5111. * )
  5112. break;;
  5113. esac
  5114. done
  5115. test "$ac_cv_build_exeext" = no && ac_cv_build_exeext=
  5116. else
  5117. ac_file=''
  5118. fi
  5119. if test -z "$ac_file"; then :
  5120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5121. $as_echo "no" >&6; }
  5122. $as_echo "$as_me: failed program was:" >&5
  5123. sed 's/^/| /' conftest.$ac_ext >&5
  5124. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5125. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5126. as_fn_error 77 "C compiler cannot create executables
  5127. See \`config.log' for more details" "$LINENO" 5; }
  5128. else
  5129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5130. $as_echo "yes" >&6; }
  5131. fi
  5132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  5133. $as_echo_n "checking for C compiler default output file name... " >&6; }
  5134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  5135. $as_echo "$ac_file" >&6; }
  5136. ac_build_exeext=$ac_cv_build_exeext
  5137. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out
  5138. ac_clean_files=$ac_clean_files_save
  5139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  5140. $as_echo_n "checking for suffix of executables... " >&6; }
  5141. if { { ac_try="$ac_link"
  5142. case "(($ac_try" in
  5143. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5144. *) ac_try_echo=$ac_try;;
  5145. esac
  5146. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5147. $as_echo "$ac_try_echo"; } >&5
  5148. (eval "$ac_link") 2>&5
  5149. ac_status=$?
  5150. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5151. test $ac_status = 0; }; then :
  5152. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  5153. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  5154. # work properly (i.e., refer to `conftest.exe'), while it won't with
  5155. # `rm'.
  5156. for ac_file in conftest.exe conftest conftest.*; do
  5157. test -f "$ac_file" || continue
  5158. case $ac_file in
  5159. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  5160. *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  5161. break;;
  5162. * ) break;;
  5163. esac
  5164. done
  5165. else
  5166. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5167. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5168. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  5169. See \`config.log' for more details" "$LINENO" 5; }
  5170. fi
  5171. rm -f conftest conftest$ac_cv_build_exeext
  5172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5
  5173. $as_echo "$ac_cv_build_exeext" >&6; }
  5174. rm -f conftest.$ac_ext
  5175. BUILD_EXEEXT=$ac_cv_build_exeext
  5176. ac_build_exeext=$BUILD_EXEEXT
  5177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5178. /* end confdefs.h. */
  5179. #include <stdio.h>
  5180. int
  5181. main ()
  5182. {
  5183. FILE *f = fopen ("conftest.out", "w");
  5184. return ferror (f) || fclose (f) != 0;
  5185. ;
  5186. return 0;
  5187. }
  5188. _ACEOF
  5189. ac_clean_files="$ac_clean_files conftest.out"
  5190. # Check that the compiler produces executables we can run. If not, either
  5191. # the compiler is broken, or we cross compile.
  5192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  5193. $as_echo_n "checking whether we are cross compiling... " >&6; }
  5194. if test "$cross_compiling_build" != yes; then
  5195. { { ac_try="$ac_link"
  5196. case "(($ac_try" in
  5197. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5198. *) ac_try_echo=$ac_try;;
  5199. esac
  5200. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5201. $as_echo "$ac_try_echo"; } >&5
  5202. (eval "$ac_link") 2>&5
  5203. ac_status=$?
  5204. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5205. test $ac_status = 0; }
  5206. if { ac_try='./conftest$ac_cv_build_exeext'
  5207. { { case "(($ac_try" in
  5208. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5209. *) ac_try_echo=$ac_try;;
  5210. esac
  5211. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5212. $as_echo "$ac_try_echo"; } >&5
  5213. (eval "$ac_try") 2>&5
  5214. ac_status=$?
  5215. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5216. test $ac_status = 0; }; }; then
  5217. cross_compiling_build=no
  5218. else
  5219. if test "$cross_compiling_build" = maybe; then
  5220. cross_compiling_build=yes
  5221. else
  5222. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5223. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5224. as_fn_error $? "cannot run C compiled programs.
  5225. If you meant to cross compile, use \`--build'.
  5226. See \`config.log' for more details" "$LINENO" 5; }
  5227. fi
  5228. fi
  5229. fi
  5230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling_build" >&5
  5231. $as_echo "$cross_compiling_build" >&6; }
  5232. rm -f conftest.$ac_ext conftest$ac_cv_build_exeext conftest.out
  5233. ac_clean_files=$ac_clean_files_save
  5234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  5235. $as_echo_n "checking for suffix of object files... " >&6; }
  5236. if ${ac_cv_build_objext+:} false; then :
  5237. $as_echo_n "(cached) " >&6
  5238. else
  5239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5240. /* end confdefs.h. */
  5241. int
  5242. main ()
  5243. {
  5244. ;
  5245. return 0;
  5246. }
  5247. _ACEOF
  5248. rm -f conftest.o conftest.obj
  5249. if { { ac_try="$ac_compile"
  5250. case "(($ac_try" in
  5251. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5252. *) ac_try_echo=$ac_try;;
  5253. esac
  5254. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5255. $as_echo "$ac_try_echo"; } >&5
  5256. (eval "$ac_compile") 2>&5
  5257. ac_status=$?
  5258. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5259. test $ac_status = 0; }; then :
  5260. for ac_file in conftest.o conftest.obj conftest.*; do
  5261. test -f "$ac_file" || continue;
  5262. case $ac_file in
  5263. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  5264. *) ac_cv_build_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  5265. break;;
  5266. esac
  5267. done
  5268. else
  5269. $as_echo "$as_me: failed program was:" >&5
  5270. sed 's/^/| /' conftest.$ac_ext >&5
  5271. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5272. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5273. as_fn_error $? "cannot compute suffix of object files: cannot compile
  5274. See \`config.log' for more details" "$LINENO" 5; }
  5275. fi
  5276. rm -f conftest.$ac_cv_build_objext conftest.$ac_ext
  5277. fi
  5278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_objext" >&5
  5279. $as_echo "$ac_cv_build_objext" >&6; }
  5280. BUILD_OBJEXT=$ac_cv_build_objext
  5281. ac_build_objext=$BUILD_OBJEXT
  5282. ac_ext=c
  5283. ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  5284. ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  5285. ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
  5286. ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
  5287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5288. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5289. # On Suns, sometimes $CPP names a directory.
  5290. if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
  5291. CPP_FOR_BUILD=
  5292. fi
  5293. if test -z "$CPP_FOR_BUILD"; then
  5294. if ${ac_cv_build_prog_CPP+:} false; then :
  5295. $as_echo_n "(cached) " >&6
  5296. else
  5297. # Double quotes because CPP needs to be expanded
  5298. for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
  5299. do
  5300. ac_preproc_ok=false
  5301. for ac_c_preproc_warn_flag in '' yes
  5302. do
  5303. # Use a header file that comes with gcc, so configuring glibc
  5304. # with a fresh cross-compiler works.
  5305. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5306. # <limits.h> exists even on freestanding compilers.
  5307. # On the NeXT, cc -E runs the code through the compiler's parser,
  5308. # not just through cpp. "Syntax error" is here to catch this case.
  5309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5310. /* end confdefs.h. */
  5311. #ifdef __STDC__
  5312. # include <limits.h>
  5313. #else
  5314. # include <assert.h>
  5315. #endif
  5316. Syntax error
  5317. _ACEOF
  5318. if ac_fn_c_try_cpp "$LINENO"; then :
  5319. else
  5320. # Broken: fails on valid input.
  5321. continue
  5322. fi
  5323. rm -f conftest.err conftest.i conftest.$ac_ext
  5324. # OK, works on sane cases. Now check whether nonexistent headers
  5325. # can be detected and how.
  5326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5327. /* end confdefs.h. */
  5328. #include <ac_nonexistent.h>
  5329. _ACEOF
  5330. if ac_fn_c_try_cpp "$LINENO"; then :
  5331. # Broken: success on invalid input.
  5332. continue
  5333. else
  5334. # Passes both tests.
  5335. ac_preproc_ok=:
  5336. break
  5337. fi
  5338. rm -f conftest.err conftest.i conftest.$ac_ext
  5339. done
  5340. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5341. rm -f conftest.i conftest.err conftest.$ac_ext
  5342. if $ac_preproc_ok; then :
  5343. break
  5344. fi
  5345. done
  5346. ac_cv_build_prog_CPP=$CPP_FOR_BUILD
  5347. fi
  5348. CPP_FOR_BUILD=$ac_cv_build_prog_CPP
  5349. else
  5350. ac_cv_build_prog_CPP=$CPP_FOR_BUILD
  5351. fi
  5352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
  5353. $as_echo "$CPP_FOR_BUILD" >&6; }
  5354. ac_preproc_ok=false
  5355. for ac_c_preproc_warn_flag in '' yes
  5356. do
  5357. # Use a header file that comes with gcc, so configuring glibc
  5358. # with a fresh cross-compiler works.
  5359. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5360. # <limits.h> exists even on freestanding compilers.
  5361. # On the NeXT, cc -E runs the code through the compiler's parser,
  5362. # not just through cpp. "Syntax error" is here to catch this case.
  5363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5364. /* end confdefs.h. */
  5365. #ifdef __STDC__
  5366. # include <limits.h>
  5367. #else
  5368. # include <assert.h>
  5369. #endif
  5370. Syntax error
  5371. _ACEOF
  5372. if ac_fn_c_try_cpp "$LINENO"; then :
  5373. else
  5374. # Broken: fails on valid input.
  5375. continue
  5376. fi
  5377. rm -f conftest.err conftest.i conftest.$ac_ext
  5378. # OK, works on sane cases. Now check whether nonexistent headers
  5379. # can be detected and how.
  5380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5381. /* end confdefs.h. */
  5382. #include <ac_nonexistent.h>
  5383. _ACEOF
  5384. if ac_fn_c_try_cpp "$LINENO"; then :
  5385. # Broken: success on invalid input.
  5386. continue
  5387. else
  5388. # Passes both tests.
  5389. ac_preproc_ok=:
  5390. break
  5391. fi
  5392. rm -f conftest.err conftest.i conftest.$ac_ext
  5393. done
  5394. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5395. rm -f conftest.i conftest.err conftest.$ac_ext
  5396. if $ac_preproc_ok; then :
  5397. else
  5398. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5399. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5400. as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
  5401. See \`config.log' for more details" "$LINENO" 5; }
  5402. fi
  5403. ac_ext=c
  5404. ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  5405. ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  5406. ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
  5407. ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
  5408. ac_ext=c
  5409. ac_cpp='$CPP $CPPFLAGS'
  5410. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5411. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5412. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5414. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5415. if ${ac_cv_path_SED+:} false; then :
  5416. $as_echo_n "(cached) " >&6
  5417. else
  5418. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5419. for ac_i in 1 2 3 4 5 6 7; do
  5420. ac_script="$ac_script$as_nl$ac_script"
  5421. done
  5422. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5423. { ac_script=; unset ac_script;}
  5424. if test -z "$SED"; then
  5425. ac_path_SED_found=false
  5426. # Loop through the user's path and test for each of PROGNAME-LIST
  5427. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5428. for as_dir in $PATH
  5429. do
  5430. IFS=$as_save_IFS
  5431. test -z "$as_dir" && as_dir=.
  5432. for ac_prog in sed gsed; do
  5433. for ac_exec_ext in '' $ac_executable_extensions; do
  5434. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5435. as_fn_executable_p "$ac_path_SED" || continue
  5436. # Check for GNU ac_path_SED and select it if it is found.
  5437. # Check for GNU $ac_path_SED
  5438. case `"$ac_path_SED" --version 2>&1` in
  5439. *GNU*)
  5440. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5441. *)
  5442. ac_count=0
  5443. $as_echo_n 0123456789 >"conftest.in"
  5444. while :
  5445. do
  5446. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5447. mv "conftest.tmp" "conftest.in"
  5448. cp "conftest.in" "conftest.nl"
  5449. $as_echo '' >> "conftest.nl"
  5450. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5451. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5452. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5453. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5454. # Best one so far, save it but keep looking for a better one
  5455. ac_cv_path_SED="$ac_path_SED"
  5456. ac_path_SED_max=$ac_count
  5457. fi
  5458. # 10*(2^10) chars as input seems more than enough
  5459. test $ac_count -gt 10 && break
  5460. done
  5461. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5462. esac
  5463. $ac_path_SED_found && break 3
  5464. done
  5465. done
  5466. done
  5467. IFS=$as_save_IFS
  5468. if test -z "$ac_cv_path_SED"; then
  5469. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5470. fi
  5471. else
  5472. ac_cv_path_SED=$SED
  5473. fi
  5474. fi
  5475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5476. $as_echo "$ac_cv_path_SED" >&6; }
  5477. SED="$ac_cv_path_SED"
  5478. rm -f conftest.sed
  5479. test -z "$SED" && SED=sed
  5480. Xsed="$SED -e 1s/^X//"
  5481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  5482. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  5483. if ${ac_cv_path_GREP+:} false; then :
  5484. $as_echo_n "(cached) " >&6
  5485. else
  5486. if test -z "$GREP"; then
  5487. ac_path_GREP_found=false
  5488. # Loop through the user's path and test for each of PROGNAME-LIST
  5489. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5490. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5491. do
  5492. IFS=$as_save_IFS
  5493. test -z "$as_dir" && as_dir=.
  5494. for ac_prog in grep ggrep; do
  5495. for ac_exec_ext in '' $ac_executable_extensions; do
  5496. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5497. as_fn_executable_p "$ac_path_GREP" || continue
  5498. # Check for GNU ac_path_GREP and select it if it is found.
  5499. # Check for GNU $ac_path_GREP
  5500. case `"$ac_path_GREP" --version 2>&1` in
  5501. *GNU*)
  5502. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5503. *)
  5504. ac_count=0
  5505. $as_echo_n 0123456789 >"conftest.in"
  5506. while :
  5507. do
  5508. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5509. mv "conftest.tmp" "conftest.in"
  5510. cp "conftest.in" "conftest.nl"
  5511. $as_echo 'GREP' >> "conftest.nl"
  5512. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5513. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5514. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5515. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5516. # Best one so far, save it but keep looking for a better one
  5517. ac_cv_path_GREP="$ac_path_GREP"
  5518. ac_path_GREP_max=$ac_count
  5519. fi
  5520. # 10*(2^10) chars as input seems more than enough
  5521. test $ac_count -gt 10 && break
  5522. done
  5523. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5524. esac
  5525. $ac_path_GREP_found && break 3
  5526. done
  5527. done
  5528. done
  5529. IFS=$as_save_IFS
  5530. if test -z "$ac_cv_path_GREP"; then
  5531. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5532. fi
  5533. else
  5534. ac_cv_path_GREP=$GREP
  5535. fi
  5536. fi
  5537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5538. $as_echo "$ac_cv_path_GREP" >&6; }
  5539. GREP="$ac_cv_path_GREP"
  5540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5541. $as_echo_n "checking for egrep... " >&6; }
  5542. if ${ac_cv_path_EGREP+:} false; then :
  5543. $as_echo_n "(cached) " >&6
  5544. else
  5545. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5546. then ac_cv_path_EGREP="$GREP -E"
  5547. else
  5548. if test -z "$EGREP"; then
  5549. ac_path_EGREP_found=false
  5550. # Loop through the user's path and test for each of PROGNAME-LIST
  5551. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5552. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5553. do
  5554. IFS=$as_save_IFS
  5555. test -z "$as_dir" && as_dir=.
  5556. for ac_prog in egrep; do
  5557. for ac_exec_ext in '' $ac_executable_extensions; do
  5558. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5559. as_fn_executable_p "$ac_path_EGREP" || continue
  5560. # Check for GNU ac_path_EGREP and select it if it is found.
  5561. # Check for GNU $ac_path_EGREP
  5562. case `"$ac_path_EGREP" --version 2>&1` in
  5563. *GNU*)
  5564. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5565. *)
  5566. ac_count=0
  5567. $as_echo_n 0123456789 >"conftest.in"
  5568. while :
  5569. do
  5570. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5571. mv "conftest.tmp" "conftest.in"
  5572. cp "conftest.in" "conftest.nl"
  5573. $as_echo 'EGREP' >> "conftest.nl"
  5574. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5575. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5576. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5577. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5578. # Best one so far, save it but keep looking for a better one
  5579. ac_cv_path_EGREP="$ac_path_EGREP"
  5580. ac_path_EGREP_max=$ac_count
  5581. fi
  5582. # 10*(2^10) chars as input seems more than enough
  5583. test $ac_count -gt 10 && break
  5584. done
  5585. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5586. esac
  5587. $ac_path_EGREP_found && break 3
  5588. done
  5589. done
  5590. done
  5591. IFS=$as_save_IFS
  5592. if test -z "$ac_cv_path_EGREP"; then
  5593. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5594. fi
  5595. else
  5596. ac_cv_path_EGREP=$EGREP
  5597. fi
  5598. fi
  5599. fi
  5600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5601. $as_echo "$ac_cv_path_EGREP" >&6; }
  5602. EGREP="$ac_cv_path_EGREP"
  5603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5604. $as_echo_n "checking for fgrep... " >&6; }
  5605. if ${ac_cv_path_FGREP+:} false; then :
  5606. $as_echo_n "(cached) " >&6
  5607. else
  5608. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5609. then ac_cv_path_FGREP="$GREP -F"
  5610. else
  5611. if test -z "$FGREP"; then
  5612. ac_path_FGREP_found=false
  5613. # Loop through the user's path and test for each of PROGNAME-LIST
  5614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5615. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5616. do
  5617. IFS=$as_save_IFS
  5618. test -z "$as_dir" && as_dir=.
  5619. for ac_prog in fgrep; do
  5620. for ac_exec_ext in '' $ac_executable_extensions; do
  5621. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5622. as_fn_executable_p "$ac_path_FGREP" || continue
  5623. # Check for GNU ac_path_FGREP and select it if it is found.
  5624. # Check for GNU $ac_path_FGREP
  5625. case `"$ac_path_FGREP" --version 2>&1` in
  5626. *GNU*)
  5627. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5628. *)
  5629. ac_count=0
  5630. $as_echo_n 0123456789 >"conftest.in"
  5631. while :
  5632. do
  5633. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5634. mv "conftest.tmp" "conftest.in"
  5635. cp "conftest.in" "conftest.nl"
  5636. $as_echo 'FGREP' >> "conftest.nl"
  5637. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5638. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5639. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5640. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5641. # Best one so far, save it but keep looking for a better one
  5642. ac_cv_path_FGREP="$ac_path_FGREP"
  5643. ac_path_FGREP_max=$ac_count
  5644. fi
  5645. # 10*(2^10) chars as input seems more than enough
  5646. test $ac_count -gt 10 && break
  5647. done
  5648. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5649. esac
  5650. $ac_path_FGREP_found && break 3
  5651. done
  5652. done
  5653. done
  5654. IFS=$as_save_IFS
  5655. if test -z "$ac_cv_path_FGREP"; then
  5656. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5657. fi
  5658. else
  5659. ac_cv_path_FGREP=$FGREP
  5660. fi
  5661. fi
  5662. fi
  5663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5664. $as_echo "$ac_cv_path_FGREP" >&6; }
  5665. FGREP="$ac_cv_path_FGREP"
  5666. test -z "$GREP" && GREP=grep
  5667. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5668. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  5669. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  5670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  5671. $as_echo_n "checking how to print strings... " >&6; }
  5672. # Test print first, because it will be a builtin if present.
  5673. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  5674. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  5675. ECHO='print -r --'
  5676. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  5677. ECHO='printf %s\n'
  5678. else
  5679. # Use this function as a fallback that always works.
  5680. func_fallback_echo ()
  5681. {
  5682. eval 'cat <<_LTECHO_EOF
  5683. $1
  5684. _LTECHO_EOF'
  5685. }
  5686. ECHO='func_fallback_echo'
  5687. fi
  5688. # func_echo_all arg...
  5689. # Invoke $ECHO with all args, space-separated.
  5690. func_echo_all ()
  5691. {
  5692. $ECHO ""
  5693. }
  5694. case $ECHO in
  5695. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  5696. $as_echo "printf" >&6; } ;;
  5697. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  5698. $as_echo "print -r" >&6; } ;;
  5699. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  5700. $as_echo "cat" >&6; } ;;
  5701. esac
  5702. # Check whether --with-gnu-ld was given.
  5703. if test "${with_gnu_ld+set}" = set; then :
  5704. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  5705. else
  5706. with_gnu_ld=no
  5707. fi
  5708. ac_prog=ld
  5709. if test yes = "$GCC"; then
  5710. # Check if gcc -print-prog-name=ld gives a path.
  5711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5712. $as_echo_n "checking for ld used by $CC... " >&6; }
  5713. case $host in
  5714. *-*-mingw*)
  5715. # gcc leaves a trailing carriage return, which upsets mingw
  5716. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5717. *)
  5718. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5719. esac
  5720. case $ac_prog in
  5721. # Accept absolute paths.
  5722. [\\/]* | ?:[\\/]*)
  5723. re_direlt='/[^/][^/]*/\.\./'
  5724. # Canonicalize the pathname of ld
  5725. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5726. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5727. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5728. done
  5729. test -z "$LD" && LD=$ac_prog
  5730. ;;
  5731. "")
  5732. # If it fails, then pretend we aren't using GCC.
  5733. ac_prog=ld
  5734. ;;
  5735. *)
  5736. # If it is relative, then search for the first ld in PATH.
  5737. with_gnu_ld=unknown
  5738. ;;
  5739. esac
  5740. elif test yes = "$with_gnu_ld"; then
  5741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5742. $as_echo_n "checking for GNU ld... " >&6; }
  5743. else
  5744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5745. $as_echo_n "checking for non-GNU ld... " >&6; }
  5746. fi
  5747. if ${lt_cv_path_LD+:} false; then :
  5748. $as_echo_n "(cached) " >&6
  5749. else
  5750. if test -z "$LD"; then
  5751. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5752. for ac_dir in $PATH; do
  5753. IFS=$lt_save_ifs
  5754. test -z "$ac_dir" && ac_dir=.
  5755. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5756. lt_cv_path_LD=$ac_dir/$ac_prog
  5757. # Check to see if the program is GNU ld. I'd rather use --version,
  5758. # but apparently some variants of GNU ld only accept -v.
  5759. # Break only if it was the GNU/non-GNU ld that we prefer.
  5760. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5761. *GNU* | *'with BFD'*)
  5762. test no != "$with_gnu_ld" && break
  5763. ;;
  5764. *)
  5765. test yes != "$with_gnu_ld" && break
  5766. ;;
  5767. esac
  5768. fi
  5769. done
  5770. IFS=$lt_save_ifs
  5771. else
  5772. lt_cv_path_LD=$LD # Let the user override the test with a path.
  5773. fi
  5774. fi
  5775. LD=$lt_cv_path_LD
  5776. if test -n "$LD"; then
  5777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5778. $as_echo "$LD" >&6; }
  5779. else
  5780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5781. $as_echo "no" >&6; }
  5782. fi
  5783. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5785. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5786. if ${lt_cv_prog_gnu_ld+:} false; then :
  5787. $as_echo_n "(cached) " >&6
  5788. else
  5789. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5790. case `$LD -v 2>&1 </dev/null` in
  5791. *GNU* | *'with BFD'*)
  5792. lt_cv_prog_gnu_ld=yes
  5793. ;;
  5794. *)
  5795. lt_cv_prog_gnu_ld=no
  5796. ;;
  5797. esac
  5798. fi
  5799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5800. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5801. with_gnu_ld=$lt_cv_prog_gnu_ld
  5802. ac_ext=c
  5803. ac_cpp='$CPP $CPPFLAGS'
  5804. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5805. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5806. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5808. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5809. # On Suns, sometimes $CPP names a directory.
  5810. if test -n "$CPP" && test -d "$CPP"; then
  5811. CPP=
  5812. fi
  5813. if test -z "$CPP"; then
  5814. if ${ac_cv_prog_CPP+:} false; then :
  5815. $as_echo_n "(cached) " >&6
  5816. else
  5817. # Double quotes because CPP needs to be expanded
  5818. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5819. do
  5820. ac_preproc_ok=false
  5821. for ac_c_preproc_warn_flag in '' yes
  5822. do
  5823. # Use a header file that comes with gcc, so configuring glibc
  5824. # with a fresh cross-compiler works.
  5825. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5826. # <limits.h> exists even on freestanding compilers.
  5827. # On the NeXT, cc -E runs the code through the compiler's parser,
  5828. # not just through cpp. "Syntax error" is here to catch this case.
  5829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5830. /* end confdefs.h. */
  5831. #ifdef __STDC__
  5832. # include <limits.h>
  5833. #else
  5834. # include <assert.h>
  5835. #endif
  5836. Syntax error
  5837. _ACEOF
  5838. if ac_fn_c_try_cpp "$LINENO"; then :
  5839. else
  5840. # Broken: fails on valid input.
  5841. continue
  5842. fi
  5843. rm -f conftest.err conftest.i conftest.$ac_ext
  5844. # OK, works on sane cases. Now check whether nonexistent headers
  5845. # can be detected and how.
  5846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5847. /* end confdefs.h. */
  5848. #include <ac_nonexistent.h>
  5849. _ACEOF
  5850. if ac_fn_c_try_cpp "$LINENO"; then :
  5851. # Broken: success on invalid input.
  5852. continue
  5853. else
  5854. # Passes both tests.
  5855. ac_preproc_ok=:
  5856. break
  5857. fi
  5858. rm -f conftest.err conftest.i conftest.$ac_ext
  5859. done
  5860. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5861. rm -f conftest.i conftest.err conftest.$ac_ext
  5862. if $ac_preproc_ok; then :
  5863. break
  5864. fi
  5865. done
  5866. ac_cv_prog_CPP=$CPP
  5867. fi
  5868. CPP=$ac_cv_prog_CPP
  5869. else
  5870. ac_cv_prog_CPP=$CPP
  5871. fi
  5872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5873. $as_echo "$CPP" >&6; }
  5874. ac_preproc_ok=false
  5875. for ac_c_preproc_warn_flag in '' yes
  5876. do
  5877. # Use a header file that comes with gcc, so configuring glibc
  5878. # with a fresh cross-compiler works.
  5879. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5880. # <limits.h> exists even on freestanding compilers.
  5881. # On the NeXT, cc -E runs the code through the compiler's parser,
  5882. # not just through cpp. "Syntax error" is here to catch this case.
  5883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5884. /* end confdefs.h. */
  5885. #ifdef __STDC__
  5886. # include <limits.h>
  5887. #else
  5888. # include <assert.h>
  5889. #endif
  5890. Syntax error
  5891. _ACEOF
  5892. if ac_fn_c_try_cpp "$LINENO"; then :
  5893. else
  5894. # Broken: fails on valid input.
  5895. continue
  5896. fi
  5897. rm -f conftest.err conftest.i conftest.$ac_ext
  5898. # OK, works on sane cases. Now check whether nonexistent headers
  5899. # can be detected and how.
  5900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5901. /* end confdefs.h. */
  5902. #include <ac_nonexistent.h>
  5903. _ACEOF
  5904. if ac_fn_c_try_cpp "$LINENO"; then :
  5905. # Broken: success on invalid input.
  5906. continue
  5907. else
  5908. # Passes both tests.
  5909. ac_preproc_ok=:
  5910. break
  5911. fi
  5912. rm -f conftest.err conftest.i conftest.$ac_ext
  5913. done
  5914. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5915. rm -f conftest.i conftest.err conftest.$ac_ext
  5916. if $ac_preproc_ok; then :
  5917. else
  5918. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5919. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5920. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  5921. See \`config.log' for more details" "$LINENO" 5; }
  5922. fi
  5923. ac_ext=c
  5924. ac_cpp='$CPP $CPPFLAGS'
  5925. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5926. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5927. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  5929. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  5930. set x ${MAKE-make}
  5931. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  5932. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  5933. $as_echo_n "(cached) " >&6
  5934. else
  5935. cat >conftest.make <<\_ACEOF
  5936. SHELL = /bin/sh
  5937. all:
  5938. @echo '@@@%%%=$(MAKE)=@@@%%%'
  5939. _ACEOF
  5940. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  5941. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  5942. *@@@%%%=?*=@@@%%%*)
  5943. eval ac_cv_prog_make_${ac_make}_set=yes;;
  5944. *)
  5945. eval ac_cv_prog_make_${ac_make}_set=no;;
  5946. esac
  5947. rm -f conftest.make
  5948. fi
  5949. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  5950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5951. $as_echo "yes" >&6; }
  5952. SET_MAKE=
  5953. else
  5954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5955. $as_echo "no" >&6; }
  5956. SET_MAKE="MAKE=${MAKE-make}"
  5957. fi
  5958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  5959. $as_echo_n "checking for ANSI C header files... " >&6; }
  5960. if ${ac_cv_header_stdc+:} false; then :
  5961. $as_echo_n "(cached) " >&6
  5962. else
  5963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5964. /* end confdefs.h. */
  5965. #include <stdlib.h>
  5966. #include <stdarg.h>
  5967. #include <string.h>
  5968. #include <float.h>
  5969. int
  5970. main ()
  5971. {
  5972. ;
  5973. return 0;
  5974. }
  5975. _ACEOF
  5976. if ac_fn_c_try_compile "$LINENO"; then :
  5977. ac_cv_header_stdc=yes
  5978. else
  5979. ac_cv_header_stdc=no
  5980. fi
  5981. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5982. if test $ac_cv_header_stdc = yes; then
  5983. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5985. /* end confdefs.h. */
  5986. #include <string.h>
  5987. _ACEOF
  5988. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5989. $EGREP "memchr" >/dev/null 2>&1; then :
  5990. else
  5991. ac_cv_header_stdc=no
  5992. fi
  5993. rm -f conftest*
  5994. fi
  5995. if test $ac_cv_header_stdc = yes; then
  5996. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5998. /* end confdefs.h. */
  5999. #include <stdlib.h>
  6000. _ACEOF
  6001. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6002. $EGREP "free" >/dev/null 2>&1; then :
  6003. else
  6004. ac_cv_header_stdc=no
  6005. fi
  6006. rm -f conftest*
  6007. fi
  6008. if test $ac_cv_header_stdc = yes; then
  6009. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6010. if test "$cross_compiling" = yes; then :
  6011. :
  6012. else
  6013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6014. /* end confdefs.h. */
  6015. #include <ctype.h>
  6016. #include <stdlib.h>
  6017. #if ((' ' & 0x0FF) == 0x020)
  6018. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6019. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6020. #else
  6021. # define ISLOWER(c) \
  6022. (('a' <= (c) && (c) <= 'i') \
  6023. || ('j' <= (c) && (c) <= 'r') \
  6024. || ('s' <= (c) && (c) <= 'z'))
  6025. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6026. #endif
  6027. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6028. int
  6029. main ()
  6030. {
  6031. int i;
  6032. for (i = 0; i < 256; i++)
  6033. if (XOR (islower (i), ISLOWER (i))
  6034. || toupper (i) != TOUPPER (i))
  6035. return 2;
  6036. return 0;
  6037. }
  6038. _ACEOF
  6039. if ac_fn_c_try_run "$LINENO"; then :
  6040. else
  6041. ac_cv_header_stdc=no
  6042. fi
  6043. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6044. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6045. fi
  6046. fi
  6047. fi
  6048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6049. $as_echo "$ac_cv_header_stdc" >&6; }
  6050. if test $ac_cv_header_stdc = yes; then
  6051. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6052. fi
  6053. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6054. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6055. inttypes.h stdint.h unistd.h
  6056. do :
  6057. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6058. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6059. "
  6060. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6061. cat >>confdefs.h <<_ACEOF
  6062. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6063. _ACEOF
  6064. fi
  6065. done
  6066. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  6067. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  6068. MINIX=yes
  6069. else
  6070. MINIX=
  6071. fi
  6072. if test "$MINIX" = yes; then
  6073. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  6074. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  6075. $as_echo "#define _MINIX 1" >>confdefs.h
  6076. fi
  6077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  6078. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  6079. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  6080. $as_echo_n "(cached) " >&6
  6081. else
  6082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6083. /* end confdefs.h. */
  6084. # define __EXTENSIONS__ 1
  6085. $ac_includes_default
  6086. int
  6087. main ()
  6088. {
  6089. ;
  6090. return 0;
  6091. }
  6092. _ACEOF
  6093. if ac_fn_c_try_compile "$LINENO"; then :
  6094. ac_cv_safe_to_define___extensions__=yes
  6095. else
  6096. ac_cv_safe_to_define___extensions__=no
  6097. fi
  6098. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6099. fi
  6100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  6101. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  6102. test $ac_cv_safe_to_define___extensions__ = yes &&
  6103. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  6104. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  6105. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  6106. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  6107. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  6108. if test -n "$ac_tool_prefix"; then
  6109. for ac_prog in ar lib "link -lib"
  6110. do
  6111. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6112. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6114. $as_echo_n "checking for $ac_word... " >&6; }
  6115. if ${ac_cv_prog_AR+:} false; then :
  6116. $as_echo_n "(cached) " >&6
  6117. else
  6118. if test -n "$AR"; then
  6119. ac_cv_prog_AR="$AR" # Let the user override the test.
  6120. else
  6121. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6122. for as_dir in $PATH
  6123. do
  6124. IFS=$as_save_IFS
  6125. test -z "$as_dir" && as_dir=.
  6126. for ac_exec_ext in '' $ac_executable_extensions; do
  6127. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6128. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6129. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6130. break 2
  6131. fi
  6132. done
  6133. done
  6134. IFS=$as_save_IFS
  6135. fi
  6136. fi
  6137. AR=$ac_cv_prog_AR
  6138. if test -n "$AR"; then
  6139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6140. $as_echo "$AR" >&6; }
  6141. else
  6142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6143. $as_echo "no" >&6; }
  6144. fi
  6145. test -n "$AR" && break
  6146. done
  6147. fi
  6148. if test -z "$AR"; then
  6149. ac_ct_AR=$AR
  6150. for ac_prog in ar lib "link -lib"
  6151. do
  6152. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6153. set dummy $ac_prog; ac_word=$2
  6154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6155. $as_echo_n "checking for $ac_word... " >&6; }
  6156. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6157. $as_echo_n "(cached) " >&6
  6158. else
  6159. if test -n "$ac_ct_AR"; then
  6160. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6161. else
  6162. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6163. for as_dir in $PATH
  6164. do
  6165. IFS=$as_save_IFS
  6166. test -z "$as_dir" && as_dir=.
  6167. for ac_exec_ext in '' $ac_executable_extensions; do
  6168. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6169. ac_cv_prog_ac_ct_AR="$ac_prog"
  6170. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6171. break 2
  6172. fi
  6173. done
  6174. done
  6175. IFS=$as_save_IFS
  6176. fi
  6177. fi
  6178. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6179. if test -n "$ac_ct_AR"; then
  6180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6181. $as_echo "$ac_ct_AR" >&6; }
  6182. else
  6183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6184. $as_echo "no" >&6; }
  6185. fi
  6186. test -n "$ac_ct_AR" && break
  6187. done
  6188. if test "x$ac_ct_AR" = x; then
  6189. AR="false"
  6190. else
  6191. case $cross_compiling:$ac_tool_warned in
  6192. yes:)
  6193. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6194. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6195. ac_tool_warned=yes ;;
  6196. esac
  6197. AR=$ac_ct_AR
  6198. fi
  6199. fi
  6200. : ${AR=ar}
  6201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  6202. $as_echo_n "checking the archiver ($AR) interface... " >&6; }
  6203. if ${am_cv_ar_interface+:} false; then :
  6204. $as_echo_n "(cached) " >&6
  6205. else
  6206. ac_ext=c
  6207. ac_cpp='$CPP $CPPFLAGS'
  6208. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6209. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6210. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6211. am_cv_ar_interface=ar
  6212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6213. /* end confdefs.h. */
  6214. int some_variable = 0;
  6215. _ACEOF
  6216. if ac_fn_c_try_compile "$LINENO"; then :
  6217. am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  6218. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  6219. (eval $am_ar_try) 2>&5
  6220. ac_status=$?
  6221. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6222. test $ac_status = 0; }
  6223. if test "$ac_status" -eq 0; then
  6224. am_cv_ar_interface=ar
  6225. else
  6226. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  6227. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  6228. (eval $am_ar_try) 2>&5
  6229. ac_status=$?
  6230. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6231. test $ac_status = 0; }
  6232. if test "$ac_status" -eq 0; then
  6233. am_cv_ar_interface=lib
  6234. else
  6235. am_cv_ar_interface=unknown
  6236. fi
  6237. fi
  6238. rm -f conftest.lib libconftest.a
  6239. fi
  6240. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6241. ac_ext=c
  6242. ac_cpp='$CPP $CPPFLAGS'
  6243. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6244. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6245. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6246. fi
  6247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  6248. $as_echo "$am_cv_ar_interface" >&6; }
  6249. case $am_cv_ar_interface in
  6250. ar)
  6251. ;;
  6252. lib)
  6253. # Microsoft lib, so override with the ar-lib wrapper script.
  6254. # FIXME: It is wrong to rewrite AR.
  6255. # But if we don't then we get into trouble of one sort or another.
  6256. # A longer-term fix would be to have automake use am__AR in this case,
  6257. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  6258. # similar.
  6259. AR="$am_aux_dir/ar-lib $AR"
  6260. ;;
  6261. unknown)
  6262. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  6263. ;;
  6264. esac
  6265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  6266. $as_echo_n "checking for inline... " >&6; }
  6267. if ${ac_cv_c_inline+:} false; then :
  6268. $as_echo_n "(cached) " >&6
  6269. else
  6270. ac_cv_c_inline=no
  6271. for ac_kw in inline __inline__ __inline; do
  6272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6273. /* end confdefs.h. */
  6274. #ifndef __cplusplus
  6275. typedef int foo_t;
  6276. static $ac_kw foo_t static_foo () {return 0; }
  6277. $ac_kw foo_t foo () {return 0; }
  6278. #endif
  6279. _ACEOF
  6280. if ac_fn_c_try_compile "$LINENO"; then :
  6281. ac_cv_c_inline=$ac_kw
  6282. fi
  6283. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6284. test "$ac_cv_c_inline" != no && break
  6285. done
  6286. fi
  6287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  6288. $as_echo "$ac_cv_c_inline" >&6; }
  6289. case $ac_cv_c_inline in
  6290. inline | yes) ;;
  6291. *)
  6292. case $ac_cv_c_inline in
  6293. no) ac_val=;;
  6294. *) ac_val=$ac_cv_c_inline;;
  6295. esac
  6296. cat >>confdefs.h <<_ACEOF
  6297. #ifndef __cplusplus
  6298. #define inline $ac_val
  6299. #endif
  6300. _ACEOF
  6301. ;;
  6302. esac
  6303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
  6304. $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
  6305. if ${ac_cv_c_restrict+:} false; then :
  6306. $as_echo_n "(cached) " >&6
  6307. else
  6308. ac_cv_c_restrict=no
  6309. # The order here caters to the fact that C++ does not require restrict.
  6310. for ac_kw in __restrict __restrict__ _Restrict restrict; do
  6311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6312. /* end confdefs.h. */
  6313. typedef int * int_ptr;
  6314. int foo (int_ptr $ac_kw ip) {
  6315. return ip[0];
  6316. }
  6317. int
  6318. main ()
  6319. {
  6320. int s[1];
  6321. int * $ac_kw t = s;
  6322. t[0] = 0;
  6323. return foo(t)
  6324. ;
  6325. return 0;
  6326. }
  6327. _ACEOF
  6328. if ac_fn_c_try_compile "$LINENO"; then :
  6329. ac_cv_c_restrict=$ac_kw
  6330. fi
  6331. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6332. test "$ac_cv_c_restrict" != no && break
  6333. done
  6334. fi
  6335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
  6336. $as_echo "$ac_cv_c_restrict" >&6; }
  6337. case $ac_cv_c_restrict in
  6338. restrict) ;;
  6339. no) $as_echo "#define restrict /**/" >>confdefs.h
  6340. ;;
  6341. *) cat >>confdefs.h <<_ACEOF
  6342. #define restrict $ac_cv_c_restrict
  6343. _ACEOF
  6344. ;;
  6345. esac
  6346. case "$host_os" in
  6347. *darwin*|*cygwin*|*aix*|*mingw*|*midipix* ) NO_RDYNAMIC=yes ;;
  6348. * ) NO_RDYNAMIC=no ;;
  6349. esac
  6350. if test "$NO_RDYNAMIC" = yes; then
  6351. NO_RDYNAMIC_TRUE=
  6352. NO_RDYNAMIC_FALSE='#'
  6353. else
  6354. NO_RDYNAMIC_TRUE='#'
  6355. NO_RDYNAMIC_FALSE=
  6356. fi
  6357. if test "$LIGHTTPD_STATIC" = yes; then
  6358. LIGHTTPD_STATIC_TRUE=
  6359. LIGHTTPD_STATIC_FALSE='#'
  6360. else
  6361. LIGHTTPD_STATIC_TRUE='#'
  6362. LIGHTTPD_STATIC_FALSE=
  6363. fi
  6364. case `pwd` in
  6365. *\ * | *\ *)
  6366. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  6367. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  6368. esac
  6369. macro_version='2.4.6'
  6370. macro_revision='2.4.6'
  6371. ltmain=$ac_aux_dir/ltmain.sh
  6372. # Backslashify metacharacters that are still active within
  6373. # double-quoted strings.
  6374. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6375. # Same as above, but do not quote variable references.
  6376. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6377. # Sed substitution to delay expansion of an escaped shell variable in a
  6378. # double_quote_subst'ed string.
  6379. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6380. # Sed substitution to delay expansion of an escaped single quote.
  6381. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6382. # Sed substitution to avoid accidental globbing in evaled expressions
  6383. no_glob_subst='s/\*/\\\*/g'
  6384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  6385. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  6386. if ${lt_cv_path_NM+:} false; then :
  6387. $as_echo_n "(cached) " >&6
  6388. else
  6389. if test -n "$NM"; then
  6390. # Let the user override the test.
  6391. lt_cv_path_NM=$NM
  6392. else
  6393. lt_nm_to_check=${ac_tool_prefix}nm
  6394. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  6395. lt_nm_to_check="$lt_nm_to_check nm"
  6396. fi
  6397. for lt_tmp_nm in $lt_nm_to_check; do
  6398. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  6399. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  6400. IFS=$lt_save_ifs
  6401. test -z "$ac_dir" && ac_dir=.
  6402. tmp_nm=$ac_dir/$lt_tmp_nm
  6403. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  6404. # Check to see if the nm accepts a BSD-compat flag.
  6405. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  6406. # nm: unknown option "B" ignored
  6407. # Tru64's nm complains that /dev/null is an invalid object file
  6408. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  6409. case $build_os in
  6410. mingw*) lt_bad_file=conftest.nm/nofile ;;
  6411. *) lt_bad_file=/dev/null ;;
  6412. esac
  6413. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  6414. *$lt_bad_file* | *'Invalid file or object type'*)
  6415. lt_cv_path_NM="$tmp_nm -B"
  6416. break 2
  6417. ;;
  6418. *)
  6419. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  6420. */dev/null*)
  6421. lt_cv_path_NM="$tmp_nm -p"
  6422. break 2
  6423. ;;
  6424. *)
  6425. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  6426. continue # so that we can try to find one that supports BSD flags
  6427. ;;
  6428. esac
  6429. ;;
  6430. esac
  6431. fi
  6432. done
  6433. IFS=$lt_save_ifs
  6434. done
  6435. : ${lt_cv_path_NM=no}
  6436. fi
  6437. fi
  6438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  6439. $as_echo "$lt_cv_path_NM" >&6; }
  6440. if test no != "$lt_cv_path_NM"; then
  6441. NM=$lt_cv_path_NM
  6442. else
  6443. # Didn't find any BSD compatible name lister, look for dumpbin.
  6444. if test -n "$DUMPBIN"; then :
  6445. # Let the user override the test.
  6446. else
  6447. if test -n "$ac_tool_prefix"; then
  6448. for ac_prog in dumpbin "link -dump"
  6449. do
  6450. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6451. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6453. $as_echo_n "checking for $ac_word... " >&6; }
  6454. if ${ac_cv_prog_DUMPBIN+:} false; then :
  6455. $as_echo_n "(cached) " >&6
  6456. else
  6457. if test -n "$DUMPBIN"; then
  6458. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  6459. else
  6460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6461. for as_dir in $PATH
  6462. do
  6463. IFS=$as_save_IFS
  6464. test -z "$as_dir" && as_dir=.
  6465. for ac_exec_ext in '' $ac_executable_extensions; do
  6466. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6467. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  6468. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6469. break 2
  6470. fi
  6471. done
  6472. done
  6473. IFS=$as_save_IFS
  6474. fi
  6475. fi
  6476. DUMPBIN=$ac_cv_prog_DUMPBIN
  6477. if test -n "$DUMPBIN"; then
  6478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  6479. $as_echo "$DUMPBIN" >&6; }
  6480. else
  6481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6482. $as_echo "no" >&6; }
  6483. fi
  6484. test -n "$DUMPBIN" && break
  6485. done
  6486. fi
  6487. if test -z "$DUMPBIN"; then
  6488. ac_ct_DUMPBIN=$DUMPBIN
  6489. for ac_prog in dumpbin "link -dump"
  6490. do
  6491. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6492. set dummy $ac_prog; ac_word=$2
  6493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6494. $as_echo_n "checking for $ac_word... " >&6; }
  6495. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  6496. $as_echo_n "(cached) " >&6
  6497. else
  6498. if test -n "$ac_ct_DUMPBIN"; then
  6499. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  6500. else
  6501. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6502. for as_dir in $PATH
  6503. do
  6504. IFS=$as_save_IFS
  6505. test -z "$as_dir" && as_dir=.
  6506. for ac_exec_ext in '' $ac_executable_extensions; do
  6507. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6508. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  6509. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6510. break 2
  6511. fi
  6512. done
  6513. done
  6514. IFS=$as_save_IFS
  6515. fi
  6516. fi
  6517. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  6518. if test -n "$ac_ct_DUMPBIN"; then
  6519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  6520. $as_echo "$ac_ct_DUMPBIN" >&6; }
  6521. else
  6522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6523. $as_echo "no" >&6; }
  6524. fi
  6525. test -n "$ac_ct_DUMPBIN" && break
  6526. done
  6527. if test "x$ac_ct_DUMPBIN" = x; then
  6528. DUMPBIN=":"
  6529. else
  6530. case $cross_compiling:$ac_tool_warned in
  6531. yes:)
  6532. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6533. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6534. ac_tool_warned=yes ;;
  6535. esac
  6536. DUMPBIN=$ac_ct_DUMPBIN
  6537. fi
  6538. fi
  6539. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  6540. *COFF*)
  6541. DUMPBIN="$DUMPBIN -symbols -headers"
  6542. ;;
  6543. *)
  6544. DUMPBIN=:
  6545. ;;
  6546. esac
  6547. fi
  6548. if test : != "$DUMPBIN"; then
  6549. NM=$DUMPBIN
  6550. fi
  6551. fi
  6552. test -z "$NM" && NM=nm
  6553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  6554. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  6555. if ${lt_cv_nm_interface+:} false; then :
  6556. $as_echo_n "(cached) " >&6
  6557. else
  6558. lt_cv_nm_interface="BSD nm"
  6559. echo "int some_variable = 0;" > conftest.$ac_ext
  6560. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  6561. (eval "$ac_compile" 2>conftest.err)
  6562. cat conftest.err >&5
  6563. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  6564. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  6565. cat conftest.err >&5
  6566. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  6567. cat conftest.out >&5
  6568. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  6569. lt_cv_nm_interface="MS dumpbin"
  6570. fi
  6571. rm -f conftest*
  6572. fi
  6573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  6574. $as_echo "$lt_cv_nm_interface" >&6; }
  6575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  6576. $as_echo_n "checking whether ln -s works... " >&6; }
  6577. LN_S=$as_ln_s
  6578. if test "$LN_S" = "ln -s"; then
  6579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6580. $as_echo "yes" >&6; }
  6581. else
  6582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  6583. $as_echo "no, using $LN_S" >&6; }
  6584. fi
  6585. # find the maximum length of command line arguments
  6586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  6587. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  6588. if ${lt_cv_sys_max_cmd_len+:} false; then :
  6589. $as_echo_n "(cached) " >&6
  6590. else
  6591. i=0
  6592. teststring=ABCD
  6593. case $build_os in
  6594. msdosdjgpp*)
  6595. # On DJGPP, this test can blow up pretty badly due to problems in libc
  6596. # (any single argument exceeding 2000 bytes causes a buffer overrun
  6597. # during glob expansion). Even if it were fixed, the result of this
  6598. # check would be larger than it should be.
  6599. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  6600. ;;
  6601. gnu*)
  6602. # Under GNU Hurd, this test is not required because there is
  6603. # no limit to the length of command line arguments.
  6604. # Libtool will interpret -1 as no limit whatsoever
  6605. lt_cv_sys_max_cmd_len=-1;
  6606. ;;
  6607. cygwin* | mingw* | cegcc*)
  6608. # On Win9x/ME, this test blows up -- it succeeds, but takes
  6609. # about 5 minutes as the teststring grows exponentially.
  6610. # Worse, since 9x/ME are not pre-emptively multitasking,
  6611. # you end up with a "frozen" computer, even though with patience
  6612. # the test eventually succeeds (with a max line length of 256k).
  6613. # Instead, let's just punt: use the minimum linelength reported by
  6614. # all of the supported platforms: 8192 (on NT/2K/XP).
  6615. lt_cv_sys_max_cmd_len=8192;
  6616. ;;
  6617. mint*)
  6618. # On MiNT this can take a long time and run out of memory.
  6619. lt_cv_sys_max_cmd_len=8192;
  6620. ;;
  6621. amigaos*)
  6622. # On AmigaOS with pdksh, this test takes hours, literally.
  6623. # So we just punt and use a minimum line length of 8192.
  6624. lt_cv_sys_max_cmd_len=8192;
  6625. ;;
  6626. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  6627. # This has been around since 386BSD, at least. Likely further.
  6628. if test -x /sbin/sysctl; then
  6629. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  6630. elif test -x /usr/sbin/sysctl; then
  6631. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  6632. else
  6633. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  6634. fi
  6635. # And add a safety zone
  6636. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6637. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6638. ;;
  6639. interix*)
  6640. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  6641. lt_cv_sys_max_cmd_len=196608
  6642. ;;
  6643. os2*)
  6644. # The test takes a long time on OS/2.
  6645. lt_cv_sys_max_cmd_len=8192
  6646. ;;
  6647. osf*)
  6648. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  6649. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  6650. # nice to cause kernel panics so lets avoid the loop below.
  6651. # First set a reasonable default.
  6652. lt_cv_sys_max_cmd_len=16384
  6653. #
  6654. if test -x /sbin/sysconfig; then
  6655. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  6656. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  6657. esac
  6658. fi
  6659. ;;
  6660. sco3.2v5*)
  6661. lt_cv_sys_max_cmd_len=102400
  6662. ;;
  6663. sysv5* | sco5v6* | sysv4.2uw2*)
  6664. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  6665. if test -n "$kargmax"; then
  6666. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  6667. else
  6668. lt_cv_sys_max_cmd_len=32768
  6669. fi
  6670. ;;
  6671. *)
  6672. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  6673. if test -n "$lt_cv_sys_max_cmd_len" && \
  6674. test undefined != "$lt_cv_sys_max_cmd_len"; then
  6675. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6676. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6677. else
  6678. # Make teststring a little bigger before we do anything with it.
  6679. # a 1K string should be a reasonable start.
  6680. for i in 1 2 3 4 5 6 7 8; do
  6681. teststring=$teststring$teststring
  6682. done
  6683. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  6684. # If test is not a shell built-in, we'll probably end up computing a
  6685. # maximum length that is only half of the actual maximum length, but
  6686. # we can't tell.
  6687. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  6688. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  6689. test 17 != "$i" # 1/2 MB should be enough
  6690. do
  6691. i=`expr $i + 1`
  6692. teststring=$teststring$teststring
  6693. done
  6694. # Only check the string length outside the loop.
  6695. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  6696. teststring=
  6697. # Add a significant safety factor because C++ compilers can tack on
  6698. # massive amounts of additional arguments before passing them to the
  6699. # linker. It appears as though 1/2 is a usable value.
  6700. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  6701. fi
  6702. ;;
  6703. esac
  6704. fi
  6705. if test -n "$lt_cv_sys_max_cmd_len"; then
  6706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  6707. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  6708. else
  6709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  6710. $as_echo "none" >&6; }
  6711. fi
  6712. max_cmd_len=$lt_cv_sys_max_cmd_len
  6713. : ${CP="cp -f"}
  6714. : ${MV="mv -f"}
  6715. : ${RM="rm -f"}
  6716. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  6717. lt_unset=unset
  6718. else
  6719. lt_unset=false
  6720. fi
  6721. # test EBCDIC or ASCII
  6722. case `echo X|tr X '\101'` in
  6723. A) # ASCII based system
  6724. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  6725. lt_SP2NL='tr \040 \012'
  6726. lt_NL2SP='tr \015\012 \040\040'
  6727. ;;
  6728. *) # EBCDIC based system
  6729. lt_SP2NL='tr \100 \n'
  6730. lt_NL2SP='tr \r\n \100\100'
  6731. ;;
  6732. esac
  6733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  6734. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  6735. if ${lt_cv_to_host_file_cmd+:} false; then :
  6736. $as_echo_n "(cached) " >&6
  6737. else
  6738. case $host in
  6739. *-*-mingw* )
  6740. case $build in
  6741. *-*-mingw* ) # actually msys
  6742. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  6743. ;;
  6744. *-*-cygwin* )
  6745. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  6746. ;;
  6747. * ) # otherwise, assume *nix
  6748. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  6749. ;;
  6750. esac
  6751. ;;
  6752. *-*-cygwin* )
  6753. case $build in
  6754. *-*-mingw* ) # actually msys
  6755. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  6756. ;;
  6757. *-*-cygwin* )
  6758. lt_cv_to_host_file_cmd=func_convert_file_noop
  6759. ;;
  6760. * ) # otherwise, assume *nix
  6761. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  6762. ;;
  6763. esac
  6764. ;;
  6765. * ) # unhandled hosts (and "normal" native builds)
  6766. lt_cv_to_host_file_cmd=func_convert_file_noop
  6767. ;;
  6768. esac
  6769. fi
  6770. to_host_file_cmd=$lt_cv_to_host_file_cmd
  6771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  6772. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  6773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  6774. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  6775. if ${lt_cv_to_tool_file_cmd+:} false; then :
  6776. $as_echo_n "(cached) " >&6
  6777. else
  6778. #assume ordinary cross tools, or native build.
  6779. lt_cv_to_tool_file_cmd=func_convert_file_noop
  6780. case $host in
  6781. *-*-mingw* )
  6782. case $build in
  6783. *-*-mingw* ) # actually msys
  6784. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  6785. ;;
  6786. esac
  6787. ;;
  6788. esac
  6789. fi
  6790. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  6791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  6792. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  6793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  6794. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  6795. if ${lt_cv_ld_reload_flag+:} false; then :
  6796. $as_echo_n "(cached) " >&6
  6797. else
  6798. lt_cv_ld_reload_flag='-r'
  6799. fi
  6800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  6801. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  6802. reload_flag=$lt_cv_ld_reload_flag
  6803. case $reload_flag in
  6804. "" | " "*) ;;
  6805. *) reload_flag=" $reload_flag" ;;
  6806. esac
  6807. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6808. case $host_os in
  6809. cygwin* | mingw* | pw32* | cegcc*)
  6810. if test yes != "$GCC"; then
  6811. reload_cmds=false
  6812. fi
  6813. ;;
  6814. darwin*)
  6815. if test yes = "$GCC"; then
  6816. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  6817. else
  6818. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6819. fi
  6820. ;;
  6821. esac
  6822. if test -n "$ac_tool_prefix"; then
  6823. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6824. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6826. $as_echo_n "checking for $ac_word... " >&6; }
  6827. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6828. $as_echo_n "(cached) " >&6
  6829. else
  6830. if test -n "$OBJDUMP"; then
  6831. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6832. else
  6833. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6834. for as_dir in $PATH
  6835. do
  6836. IFS=$as_save_IFS
  6837. test -z "$as_dir" && as_dir=.
  6838. for ac_exec_ext in '' $ac_executable_extensions; do
  6839. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6840. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6841. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6842. break 2
  6843. fi
  6844. done
  6845. done
  6846. IFS=$as_save_IFS
  6847. fi
  6848. fi
  6849. OBJDUMP=$ac_cv_prog_OBJDUMP
  6850. if test -n "$OBJDUMP"; then
  6851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6852. $as_echo "$OBJDUMP" >&6; }
  6853. else
  6854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6855. $as_echo "no" >&6; }
  6856. fi
  6857. fi
  6858. if test -z "$ac_cv_prog_OBJDUMP"; then
  6859. ac_ct_OBJDUMP=$OBJDUMP
  6860. # Extract the first word of "objdump", so it can be a program name with args.
  6861. set dummy objdump; ac_word=$2
  6862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6863. $as_echo_n "checking for $ac_word... " >&6; }
  6864. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6865. $as_echo_n "(cached) " >&6
  6866. else
  6867. if test -n "$ac_ct_OBJDUMP"; then
  6868. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6869. else
  6870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6871. for as_dir in $PATH
  6872. do
  6873. IFS=$as_save_IFS
  6874. test -z "$as_dir" && as_dir=.
  6875. for ac_exec_ext in '' $ac_executable_extensions; do
  6876. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6877. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6878. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6879. break 2
  6880. fi
  6881. done
  6882. done
  6883. IFS=$as_save_IFS
  6884. fi
  6885. fi
  6886. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6887. if test -n "$ac_ct_OBJDUMP"; then
  6888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6889. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6890. else
  6891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6892. $as_echo "no" >&6; }
  6893. fi
  6894. if test "x$ac_ct_OBJDUMP" = x; then
  6895. OBJDUMP="false"
  6896. else
  6897. case $cross_compiling:$ac_tool_warned in
  6898. yes:)
  6899. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6900. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6901. ac_tool_warned=yes ;;
  6902. esac
  6903. OBJDUMP=$ac_ct_OBJDUMP
  6904. fi
  6905. else
  6906. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6907. fi
  6908. test -z "$OBJDUMP" && OBJDUMP=objdump
  6909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  6910. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  6911. if ${lt_cv_deplibs_check_method+:} false; then :
  6912. $as_echo_n "(cached) " >&6
  6913. else
  6914. lt_cv_file_magic_cmd='$MAGIC_CMD'
  6915. lt_cv_file_magic_test_file=
  6916. lt_cv_deplibs_check_method='unknown'
  6917. # Need to set the preceding variable on all platforms that support
  6918. # interlibrary dependencies.
  6919. # 'none' -- dependencies not supported.
  6920. # 'unknown' -- same as none, but documents that we really don't know.
  6921. # 'pass_all' -- all dependencies passed with no checks.
  6922. # 'test_compile' -- check by making test program.
  6923. # 'file_magic [[regex]]' -- check by looking for files in library path
  6924. # that responds to the $file_magic_cmd with a given extended regex.
  6925. # If you have 'file' or equivalent on your system and you're not sure
  6926. # whether 'pass_all' will *always* work, you probably want this one.
  6927. case $host_os in
  6928. aix[4-9]*)
  6929. lt_cv_deplibs_check_method=pass_all
  6930. ;;
  6931. beos*)
  6932. lt_cv_deplibs_check_method=pass_all
  6933. ;;
  6934. bsdi[45]*)
  6935. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  6936. lt_cv_file_magic_cmd='/usr/bin/file -L'
  6937. lt_cv_file_magic_test_file=/shlib/libc.so
  6938. ;;
  6939. cygwin*)
  6940. # func_win32_libid is a shell function defined in ltmain.sh
  6941. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6942. lt_cv_file_magic_cmd='func_win32_libid'
  6943. ;;
  6944. mingw* | pw32*)
  6945. # Base MSYS/MinGW do not provide the 'file' command needed by
  6946. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  6947. # unless we find 'file', for example because we are cross-compiling.
  6948. if ( file / ) >/dev/null 2>&1; then
  6949. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6950. lt_cv_file_magic_cmd='func_win32_libid'
  6951. else
  6952. # Keep this pattern in sync with the one in func_win32_libid.
  6953. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  6954. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6955. fi
  6956. ;;
  6957. cegcc*)
  6958. # use the weaker test based on 'objdump'. See mingw*.
  6959. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  6960. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6961. ;;
  6962. darwin* | rhapsody*)
  6963. lt_cv_deplibs_check_method=pass_all
  6964. ;;
  6965. freebsd* | dragonfly*)
  6966. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6967. case $host_cpu in
  6968. i*86 )
  6969. # Not sure whether the presence of OpenBSD here was a mistake.
  6970. # Let's accept both of them until this is cleared up.
  6971. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  6972. lt_cv_file_magic_cmd=/usr/bin/file
  6973. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6974. ;;
  6975. esac
  6976. else
  6977. lt_cv_deplibs_check_method=pass_all
  6978. fi
  6979. ;;
  6980. haiku*)
  6981. lt_cv_deplibs_check_method=pass_all
  6982. ;;
  6983. hpux10.20* | hpux11*)
  6984. lt_cv_file_magic_cmd=/usr/bin/file
  6985. case $host_cpu in
  6986. ia64*)
  6987. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  6988. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6989. ;;
  6990. hppa*64*)
  6991. 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]'
  6992. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6993. ;;
  6994. *)
  6995. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  6996. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6997. ;;
  6998. esac
  6999. ;;
  7000. interix[3-9]*)
  7001. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  7002. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  7003. ;;
  7004. irix5* | irix6* | nonstopux*)
  7005. case $LD in
  7006. *-32|*"-32 ") libmagic=32-bit;;
  7007. *-n32|*"-n32 ") libmagic=N32;;
  7008. *-64|*"-64 ") libmagic=64-bit;;
  7009. *) libmagic=never-match;;
  7010. esac
  7011. lt_cv_deplibs_check_method=pass_all
  7012. ;;
  7013. # This must be glibc/ELF.
  7014. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7015. lt_cv_deplibs_check_method=pass_all
  7016. ;;
  7017. netbsd*)
  7018. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  7019. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  7020. else
  7021. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  7022. fi
  7023. ;;
  7024. newos6*)
  7025. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  7026. lt_cv_file_magic_cmd=/usr/bin/file
  7027. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  7028. ;;
  7029. *nto* | *qnx*)
  7030. lt_cv_deplibs_check_method=pass_all
  7031. ;;
  7032. openbsd* | bitrig*)
  7033. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  7034. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  7035. else
  7036. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  7037. fi
  7038. ;;
  7039. osf3* | osf4* | osf5*)
  7040. lt_cv_deplibs_check_method=pass_all
  7041. ;;
  7042. rdos*)
  7043. lt_cv_deplibs_check_method=pass_all
  7044. ;;
  7045. solaris*)
  7046. lt_cv_deplibs_check_method=pass_all
  7047. ;;
  7048. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  7049. lt_cv_deplibs_check_method=pass_all
  7050. ;;
  7051. sysv4 | sysv4.3*)
  7052. case $host_vendor in
  7053. motorola)
  7054. 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]'
  7055. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  7056. ;;
  7057. ncr)
  7058. lt_cv_deplibs_check_method=pass_all
  7059. ;;
  7060. sequent)
  7061. lt_cv_file_magic_cmd='/bin/file'
  7062. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  7063. ;;
  7064. sni)
  7065. lt_cv_file_magic_cmd='/bin/file'
  7066. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  7067. lt_cv_file_magic_test_file=/lib/libc.so
  7068. ;;
  7069. siemens)
  7070. lt_cv_deplibs_check_method=pass_all
  7071. ;;
  7072. pc)
  7073. lt_cv_deplibs_check_method=pass_all
  7074. ;;
  7075. esac
  7076. ;;
  7077. tpf*)
  7078. lt_cv_deplibs_check_method=pass_all
  7079. ;;
  7080. os2*)
  7081. lt_cv_deplibs_check_method=pass_all
  7082. ;;
  7083. esac
  7084. fi
  7085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  7086. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  7087. file_magic_glob=
  7088. want_nocaseglob=no
  7089. if test "$build" = "$host"; then
  7090. case $host_os in
  7091. mingw* | pw32*)
  7092. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  7093. want_nocaseglob=yes
  7094. else
  7095. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  7096. fi
  7097. ;;
  7098. esac
  7099. fi
  7100. file_magic_cmd=$lt_cv_file_magic_cmd
  7101. deplibs_check_method=$lt_cv_deplibs_check_method
  7102. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  7103. if test -n "$ac_tool_prefix"; then
  7104. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7105. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7107. $as_echo_n "checking for $ac_word... " >&6; }
  7108. if ${ac_cv_prog_DLLTOOL+:} false; then :
  7109. $as_echo_n "(cached) " >&6
  7110. else
  7111. if test -n "$DLLTOOL"; then
  7112. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7113. else
  7114. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7115. for as_dir in $PATH
  7116. do
  7117. IFS=$as_save_IFS
  7118. test -z "$as_dir" && as_dir=.
  7119. for ac_exec_ext in '' $ac_executable_extensions; do
  7120. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7121. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7122. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7123. break 2
  7124. fi
  7125. done
  7126. done
  7127. IFS=$as_save_IFS
  7128. fi
  7129. fi
  7130. DLLTOOL=$ac_cv_prog_DLLTOOL
  7131. if test -n "$DLLTOOL"; then
  7132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7133. $as_echo "$DLLTOOL" >&6; }
  7134. else
  7135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7136. $as_echo "no" >&6; }
  7137. fi
  7138. fi
  7139. if test -z "$ac_cv_prog_DLLTOOL"; then
  7140. ac_ct_DLLTOOL=$DLLTOOL
  7141. # Extract the first word of "dlltool", so it can be a program name with args.
  7142. set dummy dlltool; ac_word=$2
  7143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7144. $as_echo_n "checking for $ac_word... " >&6; }
  7145. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  7146. $as_echo_n "(cached) " >&6
  7147. else
  7148. if test -n "$ac_ct_DLLTOOL"; then
  7149. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7150. else
  7151. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7152. for as_dir in $PATH
  7153. do
  7154. IFS=$as_save_IFS
  7155. test -z "$as_dir" && as_dir=.
  7156. for ac_exec_ext in '' $ac_executable_extensions; do
  7157. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7158. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7159. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7160. break 2
  7161. fi
  7162. done
  7163. done
  7164. IFS=$as_save_IFS
  7165. fi
  7166. fi
  7167. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7168. if test -n "$ac_ct_DLLTOOL"; then
  7169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7170. $as_echo "$ac_ct_DLLTOOL" >&6; }
  7171. else
  7172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7173. $as_echo "no" >&6; }
  7174. fi
  7175. if test "x$ac_ct_DLLTOOL" = x; then
  7176. DLLTOOL="false"
  7177. else
  7178. case $cross_compiling:$ac_tool_warned in
  7179. yes:)
  7180. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7181. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7182. ac_tool_warned=yes ;;
  7183. esac
  7184. DLLTOOL=$ac_ct_DLLTOOL
  7185. fi
  7186. else
  7187. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7188. fi
  7189. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  7191. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  7192. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  7193. $as_echo_n "(cached) " >&6
  7194. else
  7195. lt_cv_sharedlib_from_linklib_cmd='unknown'
  7196. case $host_os in
  7197. cygwin* | mingw* | pw32* | cegcc*)
  7198. # two different shell functions defined in ltmain.sh;
  7199. # decide which one to use based on capabilities of $DLLTOOL
  7200. case `$DLLTOOL --help 2>&1` in
  7201. *--identify-strict*)
  7202. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  7203. ;;
  7204. *)
  7205. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  7206. ;;
  7207. esac
  7208. ;;
  7209. *)
  7210. # fallback: assume linklib IS sharedlib
  7211. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  7212. ;;
  7213. esac
  7214. fi
  7215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  7216. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  7217. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  7218. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  7219. if test -n "$ac_tool_prefix"; then
  7220. for ac_prog in ar
  7221. do
  7222. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7223. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7225. $as_echo_n "checking for $ac_word... " >&6; }
  7226. if ${ac_cv_prog_AR+:} false; then :
  7227. $as_echo_n "(cached) " >&6
  7228. else
  7229. if test -n "$AR"; then
  7230. ac_cv_prog_AR="$AR" # Let the user override the test.
  7231. else
  7232. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7233. for as_dir in $PATH
  7234. do
  7235. IFS=$as_save_IFS
  7236. test -z "$as_dir" && as_dir=.
  7237. for ac_exec_ext in '' $ac_executable_extensions; do
  7238. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7239. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  7240. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7241. break 2
  7242. fi
  7243. done
  7244. done
  7245. IFS=$as_save_IFS
  7246. fi
  7247. fi
  7248. AR=$ac_cv_prog_AR
  7249. if test -n "$AR"; then
  7250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7251. $as_echo "$AR" >&6; }
  7252. else
  7253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7254. $as_echo "no" >&6; }
  7255. fi
  7256. test -n "$AR" && break
  7257. done
  7258. fi
  7259. if test -z "$AR"; then
  7260. ac_ct_AR=$AR
  7261. for ac_prog in ar
  7262. do
  7263. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7264. set dummy $ac_prog; ac_word=$2
  7265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7266. $as_echo_n "checking for $ac_word... " >&6; }
  7267. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  7268. $as_echo_n "(cached) " >&6
  7269. else
  7270. if test -n "$ac_ct_AR"; then
  7271. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  7272. else
  7273. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7274. for as_dir in $PATH
  7275. do
  7276. IFS=$as_save_IFS
  7277. test -z "$as_dir" && as_dir=.
  7278. for ac_exec_ext in '' $ac_executable_extensions; do
  7279. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7280. ac_cv_prog_ac_ct_AR="$ac_prog"
  7281. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7282. break 2
  7283. fi
  7284. done
  7285. done
  7286. IFS=$as_save_IFS
  7287. fi
  7288. fi
  7289. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  7290. if test -n "$ac_ct_AR"; then
  7291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  7292. $as_echo "$ac_ct_AR" >&6; }
  7293. else
  7294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7295. $as_echo "no" >&6; }
  7296. fi
  7297. test -n "$ac_ct_AR" && break
  7298. done
  7299. if test "x$ac_ct_AR" = x; then
  7300. AR="false"
  7301. else
  7302. case $cross_compiling:$ac_tool_warned in
  7303. yes:)
  7304. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7305. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7306. ac_tool_warned=yes ;;
  7307. esac
  7308. AR=$ac_ct_AR
  7309. fi
  7310. fi
  7311. : ${AR=ar}
  7312. : ${AR_FLAGS=cru}
  7313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  7314. $as_echo_n "checking for archiver @FILE support... " >&6; }
  7315. if ${lt_cv_ar_at_file+:} false; then :
  7316. $as_echo_n "(cached) " >&6
  7317. else
  7318. lt_cv_ar_at_file=no
  7319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7320. /* end confdefs.h. */
  7321. int
  7322. main ()
  7323. {
  7324. ;
  7325. return 0;
  7326. }
  7327. _ACEOF
  7328. if ac_fn_c_try_compile "$LINENO"; then :
  7329. echo conftest.$ac_objext > conftest.lst
  7330. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  7331. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  7332. (eval $lt_ar_try) 2>&5
  7333. ac_status=$?
  7334. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7335. test $ac_status = 0; }
  7336. if test 0 -eq "$ac_status"; then
  7337. # Ensure the archiver fails upon bogus file names.
  7338. rm -f conftest.$ac_objext libconftest.a
  7339. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  7340. (eval $lt_ar_try) 2>&5
  7341. ac_status=$?
  7342. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7343. test $ac_status = 0; }
  7344. if test 0 -ne "$ac_status"; then
  7345. lt_cv_ar_at_file=@
  7346. fi
  7347. fi
  7348. rm -f conftest.* libconftest.a
  7349. fi
  7350. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7351. fi
  7352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  7353. $as_echo "$lt_cv_ar_at_file" >&6; }
  7354. if test no = "$lt_cv_ar_at_file"; then
  7355. archiver_list_spec=
  7356. else
  7357. archiver_list_spec=$lt_cv_ar_at_file
  7358. fi
  7359. if test -n "$ac_tool_prefix"; then
  7360. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  7361. set dummy ${ac_tool_prefix}strip; ac_word=$2
  7362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7363. $as_echo_n "checking for $ac_word... " >&6; }
  7364. if ${ac_cv_prog_STRIP+:} false; then :
  7365. $as_echo_n "(cached) " >&6
  7366. else
  7367. if test -n "$STRIP"; then
  7368. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  7369. else
  7370. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7371. for as_dir in $PATH
  7372. do
  7373. IFS=$as_save_IFS
  7374. test -z "$as_dir" && as_dir=.
  7375. for ac_exec_ext in '' $ac_executable_extensions; do
  7376. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7377. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  7378. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7379. break 2
  7380. fi
  7381. done
  7382. done
  7383. IFS=$as_save_IFS
  7384. fi
  7385. fi
  7386. STRIP=$ac_cv_prog_STRIP
  7387. if test -n "$STRIP"; then
  7388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  7389. $as_echo "$STRIP" >&6; }
  7390. else
  7391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7392. $as_echo "no" >&6; }
  7393. fi
  7394. fi
  7395. if test -z "$ac_cv_prog_STRIP"; then
  7396. ac_ct_STRIP=$STRIP
  7397. # Extract the first word of "strip", so it can be a program name with args.
  7398. set dummy strip; ac_word=$2
  7399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7400. $as_echo_n "checking for $ac_word... " >&6; }
  7401. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  7402. $as_echo_n "(cached) " >&6
  7403. else
  7404. if test -n "$ac_ct_STRIP"; then
  7405. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  7406. else
  7407. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7408. for as_dir in $PATH
  7409. do
  7410. IFS=$as_save_IFS
  7411. test -z "$as_dir" && as_dir=.
  7412. for ac_exec_ext in '' $ac_executable_extensions; do
  7413. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7414. ac_cv_prog_ac_ct_STRIP="strip"
  7415. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7416. break 2
  7417. fi
  7418. done
  7419. done
  7420. IFS=$as_save_IFS
  7421. fi
  7422. fi
  7423. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  7424. if test -n "$ac_ct_STRIP"; then
  7425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  7426. $as_echo "$ac_ct_STRIP" >&6; }
  7427. else
  7428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7429. $as_echo "no" >&6; }
  7430. fi
  7431. if test "x$ac_ct_STRIP" = x; then
  7432. STRIP=":"
  7433. else
  7434. case $cross_compiling:$ac_tool_warned in
  7435. yes:)
  7436. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7437. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7438. ac_tool_warned=yes ;;
  7439. esac
  7440. STRIP=$ac_ct_STRIP
  7441. fi
  7442. else
  7443. STRIP="$ac_cv_prog_STRIP"
  7444. fi
  7445. test -z "$STRIP" && STRIP=:
  7446. if test -n "$ac_tool_prefix"; then
  7447. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  7448. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  7449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7450. $as_echo_n "checking for $ac_word... " >&6; }
  7451. if ${ac_cv_prog_RANLIB+:} false; then :
  7452. $as_echo_n "(cached) " >&6
  7453. else
  7454. if test -n "$RANLIB"; then
  7455. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7456. else
  7457. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7458. for as_dir in $PATH
  7459. do
  7460. IFS=$as_save_IFS
  7461. test -z "$as_dir" && as_dir=.
  7462. for ac_exec_ext in '' $ac_executable_extensions; do
  7463. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7464. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  7465. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7466. break 2
  7467. fi
  7468. done
  7469. done
  7470. IFS=$as_save_IFS
  7471. fi
  7472. fi
  7473. RANLIB=$ac_cv_prog_RANLIB
  7474. if test -n "$RANLIB"; then
  7475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  7476. $as_echo "$RANLIB" >&6; }
  7477. else
  7478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7479. $as_echo "no" >&6; }
  7480. fi
  7481. fi
  7482. if test -z "$ac_cv_prog_RANLIB"; then
  7483. ac_ct_RANLIB=$RANLIB
  7484. # Extract the first word of "ranlib", so it can be a program name with args.
  7485. set dummy ranlib; ac_word=$2
  7486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7487. $as_echo_n "checking for $ac_word... " >&6; }
  7488. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  7489. $as_echo_n "(cached) " >&6
  7490. else
  7491. if test -n "$ac_ct_RANLIB"; then
  7492. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  7493. else
  7494. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7495. for as_dir in $PATH
  7496. do
  7497. IFS=$as_save_IFS
  7498. test -z "$as_dir" && as_dir=.
  7499. for ac_exec_ext in '' $ac_executable_extensions; do
  7500. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7501. ac_cv_prog_ac_ct_RANLIB="ranlib"
  7502. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7503. break 2
  7504. fi
  7505. done
  7506. done
  7507. IFS=$as_save_IFS
  7508. fi
  7509. fi
  7510. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  7511. if test -n "$ac_ct_RANLIB"; then
  7512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  7513. $as_echo "$ac_ct_RANLIB" >&6; }
  7514. else
  7515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7516. $as_echo "no" >&6; }
  7517. fi
  7518. if test "x$ac_ct_RANLIB" = x; then
  7519. RANLIB=":"
  7520. else
  7521. case $cross_compiling:$ac_tool_warned in
  7522. yes:)
  7523. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7524. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7525. ac_tool_warned=yes ;;
  7526. esac
  7527. RANLIB=$ac_ct_RANLIB
  7528. fi
  7529. else
  7530. RANLIB="$ac_cv_prog_RANLIB"
  7531. fi
  7532. test -z "$RANLIB" && RANLIB=:
  7533. # Determine commands to create old-style static archives.
  7534. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  7535. old_postinstall_cmds='chmod 644 $oldlib'
  7536. old_postuninstall_cmds=
  7537. if test -n "$RANLIB"; then
  7538. case $host_os in
  7539. bitrig* | openbsd*)
  7540. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  7541. ;;
  7542. *)
  7543. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  7544. ;;
  7545. esac
  7546. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  7547. fi
  7548. case $host_os in
  7549. darwin*)
  7550. lock_old_archive_extraction=yes ;;
  7551. *)
  7552. lock_old_archive_extraction=no ;;
  7553. esac
  7554. # If no C compiler was specified, use CC.
  7555. LTCC=${LTCC-"$CC"}
  7556. # If no C compiler flags were specified, use CFLAGS.
  7557. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7558. # Allow CC to be a program name with arguments.
  7559. compiler=$CC
  7560. # Check for command to grab the raw symbol name followed by C symbol from nm.
  7561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  7562. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  7563. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  7564. $as_echo_n "(cached) " >&6
  7565. else
  7566. # These are sane defaults that work on at least a few old systems.
  7567. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  7568. # Character class describing NM global symbol codes.
  7569. symcode='[BCDEGRST]'
  7570. # Regexp to match symbols that can be accessed directly from C.
  7571. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  7572. # Define system-specific variables.
  7573. case $host_os in
  7574. aix*)
  7575. symcode='[BCDT]'
  7576. ;;
  7577. cygwin* | mingw* | pw32* | cegcc*)
  7578. symcode='[ABCDGISTW]'
  7579. ;;
  7580. hpux*)
  7581. if test ia64 = "$host_cpu"; then
  7582. symcode='[ABCDEGRST]'
  7583. fi
  7584. ;;
  7585. irix* | nonstopux*)
  7586. symcode='[BCDEGRST]'
  7587. ;;
  7588. osf*)
  7589. symcode='[BCDEGQRST]'
  7590. ;;
  7591. solaris*)
  7592. symcode='[BDRT]'
  7593. ;;
  7594. sco3.2v5*)
  7595. symcode='[DT]'
  7596. ;;
  7597. sysv4.2uw2*)
  7598. symcode='[DT]'
  7599. ;;
  7600. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  7601. symcode='[ABDT]'
  7602. ;;
  7603. sysv4)
  7604. symcode='[DFNSTU]'
  7605. ;;
  7606. esac
  7607. # If we're using GNU nm, then use its standard symbol codes.
  7608. case `$NM -V 2>&1` in
  7609. *GNU* | *'with BFD'*)
  7610. symcode='[ABCDGIRSTW]' ;;
  7611. esac
  7612. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7613. # Gets list of data symbols to import.
  7614. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  7615. # Adjust the below global symbol transforms to fixup imported variables.
  7616. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  7617. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  7618. lt_c_name_lib_hook="\
  7619. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  7620. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  7621. else
  7622. # Disable hooks by default.
  7623. lt_cv_sys_global_symbol_to_import=
  7624. lt_cdecl_hook=
  7625. lt_c_name_hook=
  7626. lt_c_name_lib_hook=
  7627. fi
  7628. # Transform an extracted symbol line into a proper C declaration.
  7629. # Some systems (esp. on ia64) link data and code symbols differently,
  7630. # so use this general approach.
  7631. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  7632. $lt_cdecl_hook\
  7633. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  7634. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  7635. # Transform an extracted symbol line into symbol name and symbol address
  7636. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  7637. $lt_c_name_hook\
  7638. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  7639. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  7640. # Transform an extracted symbol line into symbol name with lib prefix and
  7641. # symbol address.
  7642. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  7643. $lt_c_name_lib_hook\
  7644. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  7645. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  7646. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  7647. # Handle CRLF in mingw tool chain
  7648. opt_cr=
  7649. case $build_os in
  7650. mingw*)
  7651. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  7652. ;;
  7653. esac
  7654. # Try without a prefix underscore, then with it.
  7655. for ac_symprfx in "" "_"; do
  7656. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  7657. symxfrm="\\1 $ac_symprfx\\2 \\2"
  7658. # Write the raw and C identifiers.
  7659. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7660. # Fake it for dumpbin and say T for any non-static function,
  7661. # D for any global variable and I for any imported variable.
  7662. # Also find C++ and __fastcall symbols from MSVC++,
  7663. # which start with @ or ?.
  7664. lt_cv_sys_global_symbol_pipe="$AWK '"\
  7665. " {last_section=section; section=\$ 3};"\
  7666. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  7667. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  7668. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  7669. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  7670. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  7671. " \$ 0!~/External *\|/{next};"\
  7672. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  7673. " {if(hide[section]) next};"\
  7674. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  7675. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  7676. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  7677. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  7678. " ' prfx=^$ac_symprfx"
  7679. else
  7680. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  7681. fi
  7682. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  7683. # Check to see that the pipe works correctly.
  7684. pipe_works=no
  7685. rm -f conftest*
  7686. cat > conftest.$ac_ext <<_LT_EOF
  7687. #ifdef __cplusplus
  7688. extern "C" {
  7689. #endif
  7690. char nm_test_var;
  7691. void nm_test_func(void);
  7692. void nm_test_func(void){}
  7693. #ifdef __cplusplus
  7694. }
  7695. #endif
  7696. int main(){nm_test_var='a';nm_test_func();return(0);}
  7697. _LT_EOF
  7698. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7699. (eval $ac_compile) 2>&5
  7700. ac_status=$?
  7701. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7702. test $ac_status = 0; }; then
  7703. # Now try to grab the symbols.
  7704. nlist=conftest.nm
  7705. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  7706. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  7707. ac_status=$?
  7708. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7709. test $ac_status = 0; } && test -s "$nlist"; then
  7710. # Try sorting and uniquifying the output.
  7711. if sort "$nlist" | uniq > "$nlist"T; then
  7712. mv -f "$nlist"T "$nlist"
  7713. else
  7714. rm -f "$nlist"T
  7715. fi
  7716. # Make sure that we snagged all the symbols we need.
  7717. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  7718. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  7719. cat <<_LT_EOF > conftest.$ac_ext
  7720. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  7721. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  7722. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  7723. relocations are performed -- see ld's documentation on pseudo-relocs. */
  7724. # define LT_DLSYM_CONST
  7725. #elif defined __osf__
  7726. /* This system does not cope well with relocations in const data. */
  7727. # define LT_DLSYM_CONST
  7728. #else
  7729. # define LT_DLSYM_CONST const
  7730. #endif
  7731. #ifdef __cplusplus
  7732. extern "C" {
  7733. #endif
  7734. _LT_EOF
  7735. # Now generate the symbol file.
  7736. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  7737. cat <<_LT_EOF >> conftest.$ac_ext
  7738. /* The mapping between symbol names and symbols. */
  7739. LT_DLSYM_CONST struct {
  7740. const char *name;
  7741. void *address;
  7742. }
  7743. lt__PROGRAM__LTX_preloaded_symbols[] =
  7744. {
  7745. { "@PROGRAM@", (void *) 0 },
  7746. _LT_EOF
  7747. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  7748. cat <<\_LT_EOF >> conftest.$ac_ext
  7749. {0, (void *) 0}
  7750. };
  7751. /* This works around a problem in FreeBSD linker */
  7752. #ifdef FREEBSD_WORKAROUND
  7753. static const void *lt_preloaded_setup() {
  7754. return lt__PROGRAM__LTX_preloaded_symbols;
  7755. }
  7756. #endif
  7757. #ifdef __cplusplus
  7758. }
  7759. #endif
  7760. _LT_EOF
  7761. # Now try linking the two files.
  7762. mv conftest.$ac_objext conftstm.$ac_objext
  7763. lt_globsym_save_LIBS=$LIBS
  7764. lt_globsym_save_CFLAGS=$CFLAGS
  7765. LIBS=conftstm.$ac_objext
  7766. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  7767. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  7768. (eval $ac_link) 2>&5
  7769. ac_status=$?
  7770. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7771. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  7772. pipe_works=yes
  7773. fi
  7774. LIBS=$lt_globsym_save_LIBS
  7775. CFLAGS=$lt_globsym_save_CFLAGS
  7776. else
  7777. echo "cannot find nm_test_func in $nlist" >&5
  7778. fi
  7779. else
  7780. echo "cannot find nm_test_var in $nlist" >&5
  7781. fi
  7782. else
  7783. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  7784. fi
  7785. else
  7786. echo "$progname: failed program was:" >&5
  7787. cat conftest.$ac_ext >&5
  7788. fi
  7789. rm -rf conftest* conftst*
  7790. # Do not use the global_symbol_pipe unless it works.
  7791. if test yes = "$pipe_works"; then
  7792. break
  7793. else
  7794. lt_cv_sys_global_symbol_pipe=
  7795. fi
  7796. done
  7797. fi
  7798. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  7799. lt_cv_sys_global_symbol_to_cdecl=
  7800. fi
  7801. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  7802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  7803. $as_echo "failed" >&6; }
  7804. else
  7805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  7806. $as_echo "ok" >&6; }
  7807. fi
  7808. # Response file support.
  7809. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7810. nm_file_list_spec='@'
  7811. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  7812. nm_file_list_spec='@'
  7813. fi
  7814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  7815. $as_echo_n "checking for sysroot... " >&6; }
  7816. # Check whether --with-sysroot was given.
  7817. if test "${with_sysroot+set}" = set; then :
  7818. withval=$with_sysroot;
  7819. else
  7820. with_sysroot=no
  7821. fi
  7822. lt_sysroot=
  7823. case $with_sysroot in #(
  7824. yes)
  7825. if test yes = "$GCC"; then
  7826. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  7827. fi
  7828. ;; #(
  7829. /*)
  7830. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  7831. ;; #(
  7832. no|'')
  7833. ;; #(
  7834. *)
  7835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  7836. $as_echo "$with_sysroot" >&6; }
  7837. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  7838. ;;
  7839. esac
  7840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  7841. $as_echo "${lt_sysroot:-no}" >&6; }
  7842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  7843. $as_echo_n "checking for a working dd... " >&6; }
  7844. if ${ac_cv_path_lt_DD+:} false; then :
  7845. $as_echo_n "(cached) " >&6
  7846. else
  7847. printf 0123456789abcdef0123456789abcdef >conftest.i
  7848. cat conftest.i conftest.i >conftest2.i
  7849. : ${lt_DD:=$DD}
  7850. if test -z "$lt_DD"; then
  7851. ac_path_lt_DD_found=false
  7852. # Loop through the user's path and test for each of PROGNAME-LIST
  7853. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7854. for as_dir in $PATH
  7855. do
  7856. IFS=$as_save_IFS
  7857. test -z "$as_dir" && as_dir=.
  7858. for ac_prog in dd; do
  7859. for ac_exec_ext in '' $ac_executable_extensions; do
  7860. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  7861. as_fn_executable_p "$ac_path_lt_DD" || continue
  7862. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  7863. cmp -s conftest.i conftest.out \
  7864. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  7865. fi
  7866. $ac_path_lt_DD_found && break 3
  7867. done
  7868. done
  7869. done
  7870. IFS=$as_save_IFS
  7871. if test -z "$ac_cv_path_lt_DD"; then
  7872. :
  7873. fi
  7874. else
  7875. ac_cv_path_lt_DD=$lt_DD
  7876. fi
  7877. rm -f conftest.i conftest2.i conftest.out
  7878. fi
  7879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  7880. $as_echo "$ac_cv_path_lt_DD" >&6; }
  7881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  7882. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  7883. if ${lt_cv_truncate_bin+:} false; then :
  7884. $as_echo_n "(cached) " >&6
  7885. else
  7886. printf 0123456789abcdef0123456789abcdef >conftest.i
  7887. cat conftest.i conftest.i >conftest2.i
  7888. lt_cv_truncate_bin=
  7889. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  7890. cmp -s conftest.i conftest.out \
  7891. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  7892. fi
  7893. rm -f conftest.i conftest2.i conftest.out
  7894. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  7895. fi
  7896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  7897. $as_echo "$lt_cv_truncate_bin" >&6; }
  7898. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  7899. func_cc_basename ()
  7900. {
  7901. for cc_temp in $*""; do
  7902. case $cc_temp in
  7903. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7904. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7905. \-*) ;;
  7906. *) break;;
  7907. esac
  7908. done
  7909. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7910. }
  7911. # Check whether --enable-libtool-lock was given.
  7912. if test "${enable_libtool_lock+set}" = set; then :
  7913. enableval=$enable_libtool_lock;
  7914. fi
  7915. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  7916. # Some flags need to be propagated to the compiler or linker for good
  7917. # libtool support.
  7918. case $host in
  7919. ia64-*-hpux*)
  7920. # Find out what ABI is being produced by ac_compile, and set mode
  7921. # options accordingly.
  7922. echo 'int i;' > conftest.$ac_ext
  7923. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7924. (eval $ac_compile) 2>&5
  7925. ac_status=$?
  7926. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7927. test $ac_status = 0; }; then
  7928. case `/usr/bin/file conftest.$ac_objext` in
  7929. *ELF-32*)
  7930. HPUX_IA64_MODE=32
  7931. ;;
  7932. *ELF-64*)
  7933. HPUX_IA64_MODE=64
  7934. ;;
  7935. esac
  7936. fi
  7937. rm -rf conftest*
  7938. ;;
  7939. *-*-irix6*)
  7940. # Find out what ABI is being produced by ac_compile, and set linker
  7941. # options accordingly.
  7942. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7943. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7944. (eval $ac_compile) 2>&5
  7945. ac_status=$?
  7946. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7947. test $ac_status = 0; }; then
  7948. if test yes = "$lt_cv_prog_gnu_ld"; then
  7949. case `/usr/bin/file conftest.$ac_objext` in
  7950. *32-bit*)
  7951. LD="${LD-ld} -melf32bsmip"
  7952. ;;
  7953. *N32*)
  7954. LD="${LD-ld} -melf32bmipn32"
  7955. ;;
  7956. *64-bit*)
  7957. LD="${LD-ld} -melf64bmip"
  7958. ;;
  7959. esac
  7960. else
  7961. case `/usr/bin/file conftest.$ac_objext` in
  7962. *32-bit*)
  7963. LD="${LD-ld} -32"
  7964. ;;
  7965. *N32*)
  7966. LD="${LD-ld} -n32"
  7967. ;;
  7968. *64-bit*)
  7969. LD="${LD-ld} -64"
  7970. ;;
  7971. esac
  7972. fi
  7973. fi
  7974. rm -rf conftest*
  7975. ;;
  7976. mips64*-*linux*)
  7977. # Find out what ABI is being produced by ac_compile, and set linker
  7978. # options accordingly.
  7979. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7980. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7981. (eval $ac_compile) 2>&5
  7982. ac_status=$?
  7983. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7984. test $ac_status = 0; }; then
  7985. emul=elf
  7986. case `/usr/bin/file conftest.$ac_objext` in
  7987. *32-bit*)
  7988. emul="${emul}32"
  7989. ;;
  7990. *64-bit*)
  7991. emul="${emul}64"
  7992. ;;
  7993. esac
  7994. case `/usr/bin/file conftest.$ac_objext` in
  7995. *MSB*)
  7996. emul="${emul}btsmip"
  7997. ;;
  7998. *LSB*)
  7999. emul="${emul}ltsmip"
  8000. ;;
  8001. esac
  8002. case `/usr/bin/file conftest.$ac_objext` in
  8003. *N32*)
  8004. emul="${emul}n32"
  8005. ;;
  8006. esac
  8007. LD="${LD-ld} -m $emul"
  8008. fi
  8009. rm -rf conftest*
  8010. ;;
  8011. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  8012. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  8013. # Find out what ABI is being produced by ac_compile, and set linker
  8014. # options accordingly. Note that the listed cases only cover the
  8015. # situations where additional linker options are needed (such as when
  8016. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  8017. # vice versa); the common cases where no linker options are needed do
  8018. # not appear in the list.
  8019. echo 'int i;' > conftest.$ac_ext
  8020. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8021. (eval $ac_compile) 2>&5
  8022. ac_status=$?
  8023. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8024. test $ac_status = 0; }; then
  8025. case `/usr/bin/file conftest.o` in
  8026. *32-bit*)
  8027. case $host in
  8028. x86_64-*kfreebsd*-gnu)
  8029. LD="${LD-ld} -m elf_i386_fbsd"
  8030. ;;
  8031. x86_64-*linux*)
  8032. case `/usr/bin/file conftest.o` in
  8033. *x86-64*)
  8034. LD="${LD-ld} -m elf32_x86_64"
  8035. ;;
  8036. *)
  8037. LD="${LD-ld} -m elf_i386"
  8038. ;;
  8039. esac
  8040. ;;
  8041. powerpc64le-*linux*)
  8042. LD="${LD-ld} -m elf32lppclinux"
  8043. ;;
  8044. powerpc64-*linux*)
  8045. LD="${LD-ld} -m elf32ppclinux"
  8046. ;;
  8047. s390x-*linux*)
  8048. LD="${LD-ld} -m elf_s390"
  8049. ;;
  8050. sparc64-*linux*)
  8051. LD="${LD-ld} -m elf32_sparc"
  8052. ;;
  8053. esac
  8054. ;;
  8055. *64-bit*)
  8056. case $host in
  8057. x86_64-*kfreebsd*-gnu)
  8058. LD="${LD-ld} -m elf_x86_64_fbsd"
  8059. ;;
  8060. x86_64-*linux*)
  8061. LD="${LD-ld} -m elf_x86_64"
  8062. ;;
  8063. powerpcle-*linux*)
  8064. LD="${LD-ld} -m elf64lppc"
  8065. ;;
  8066. powerpc-*linux*)
  8067. LD="${LD-ld} -m elf64ppc"
  8068. ;;
  8069. s390*-*linux*|s390*-*tpf*)
  8070. LD="${LD-ld} -m elf64_s390"
  8071. ;;
  8072. sparc*-*linux*)
  8073. LD="${LD-ld} -m elf64_sparc"
  8074. ;;
  8075. esac
  8076. ;;
  8077. esac
  8078. fi
  8079. rm -rf conftest*
  8080. ;;
  8081. *-*-sco3.2v5*)
  8082. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  8083. SAVE_CFLAGS=$CFLAGS
  8084. CFLAGS="$CFLAGS -belf"
  8085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  8086. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  8087. if ${lt_cv_cc_needs_belf+:} false; then :
  8088. $as_echo_n "(cached) " >&6
  8089. else
  8090. ac_ext=c
  8091. ac_cpp='$CPP $CPPFLAGS'
  8092. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8093. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8094. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8096. /* end confdefs.h. */
  8097. int
  8098. main ()
  8099. {
  8100. ;
  8101. return 0;
  8102. }
  8103. _ACEOF
  8104. if ac_fn_c_try_link "$LINENO"; then :
  8105. lt_cv_cc_needs_belf=yes
  8106. else
  8107. lt_cv_cc_needs_belf=no
  8108. fi
  8109. rm -f core conftest.err conftest.$ac_objext \
  8110. conftest$ac_exeext conftest.$ac_ext
  8111. ac_ext=c
  8112. ac_cpp='$CPP $CPPFLAGS'
  8113. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8114. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8115. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8116. fi
  8117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  8118. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  8119. if test yes != "$lt_cv_cc_needs_belf"; then
  8120. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  8121. CFLAGS=$SAVE_CFLAGS
  8122. fi
  8123. ;;
  8124. *-*solaris*)
  8125. # Find out what ABI is being produced by ac_compile, and set linker
  8126. # options accordingly.
  8127. echo 'int i;' > conftest.$ac_ext
  8128. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8129. (eval $ac_compile) 2>&5
  8130. ac_status=$?
  8131. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8132. test $ac_status = 0; }; then
  8133. case `/usr/bin/file conftest.o` in
  8134. *64-bit*)
  8135. case $lt_cv_prog_gnu_ld in
  8136. yes*)
  8137. case $host in
  8138. i?86-*-solaris*|x86_64-*-solaris*)
  8139. LD="${LD-ld} -m elf_x86_64"
  8140. ;;
  8141. sparc*-*-solaris*)
  8142. LD="${LD-ld} -m elf64_sparc"
  8143. ;;
  8144. esac
  8145. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  8146. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  8147. LD=${LD-ld}_sol2
  8148. fi
  8149. ;;
  8150. *)
  8151. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  8152. LD="${LD-ld} -64"
  8153. fi
  8154. ;;
  8155. esac
  8156. ;;
  8157. esac
  8158. fi
  8159. rm -rf conftest*
  8160. ;;
  8161. esac
  8162. need_locks=$enable_libtool_lock
  8163. if test -n "$ac_tool_prefix"; then
  8164. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  8165. set dummy ${ac_tool_prefix}mt; ac_word=$2
  8166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8167. $as_echo_n "checking for $ac_word... " >&6; }
  8168. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  8169. $as_echo_n "(cached) " >&6
  8170. else
  8171. if test -n "$MANIFEST_TOOL"; then
  8172. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  8173. else
  8174. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8175. for as_dir in $PATH
  8176. do
  8177. IFS=$as_save_IFS
  8178. test -z "$as_dir" && as_dir=.
  8179. for ac_exec_ext in '' $ac_executable_extensions; do
  8180. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8181. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  8182. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8183. break 2
  8184. fi
  8185. done
  8186. done
  8187. IFS=$as_save_IFS
  8188. fi
  8189. fi
  8190. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  8191. if test -n "$MANIFEST_TOOL"; then
  8192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  8193. $as_echo "$MANIFEST_TOOL" >&6; }
  8194. else
  8195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8196. $as_echo "no" >&6; }
  8197. fi
  8198. fi
  8199. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  8200. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  8201. # Extract the first word of "mt", so it can be a program name with args.
  8202. set dummy mt; ac_word=$2
  8203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8204. $as_echo_n "checking for $ac_word... " >&6; }
  8205. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  8206. $as_echo_n "(cached) " >&6
  8207. else
  8208. if test -n "$ac_ct_MANIFEST_TOOL"; then
  8209. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  8210. else
  8211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8212. for as_dir in $PATH
  8213. do
  8214. IFS=$as_save_IFS
  8215. test -z "$as_dir" && as_dir=.
  8216. for ac_exec_ext in '' $ac_executable_extensions; do
  8217. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8218. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  8219. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8220. break 2
  8221. fi
  8222. done
  8223. done
  8224. IFS=$as_save_IFS
  8225. fi
  8226. fi
  8227. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  8228. if test -n "$ac_ct_MANIFEST_TOOL"; then
  8229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  8230. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  8231. else
  8232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8233. $as_echo "no" >&6; }
  8234. fi
  8235. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  8236. MANIFEST_TOOL=":"
  8237. else
  8238. case $cross_compiling:$ac_tool_warned in
  8239. yes:)
  8240. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8241. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8242. ac_tool_warned=yes ;;
  8243. esac
  8244. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  8245. fi
  8246. else
  8247. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  8248. fi
  8249. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  8250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  8251. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  8252. if ${lt_cv_path_mainfest_tool+:} false; then :
  8253. $as_echo_n "(cached) " >&6
  8254. else
  8255. lt_cv_path_mainfest_tool=no
  8256. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  8257. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  8258. cat conftest.err >&5
  8259. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  8260. lt_cv_path_mainfest_tool=yes
  8261. fi
  8262. rm -f conftest*
  8263. fi
  8264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  8265. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  8266. if test yes != "$lt_cv_path_mainfest_tool"; then
  8267. MANIFEST_TOOL=:
  8268. fi
  8269. case $host_os in
  8270. rhapsody* | darwin*)
  8271. if test -n "$ac_tool_prefix"; then
  8272. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  8273. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  8274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8275. $as_echo_n "checking for $ac_word... " >&6; }
  8276. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  8277. $as_echo_n "(cached) " >&6
  8278. else
  8279. if test -n "$DSYMUTIL"; then
  8280. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  8281. else
  8282. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8283. for as_dir in $PATH
  8284. do
  8285. IFS=$as_save_IFS
  8286. test -z "$as_dir" && as_dir=.
  8287. for ac_exec_ext in '' $ac_executable_extensions; do
  8288. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8289. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  8290. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8291. break 2
  8292. fi
  8293. done
  8294. done
  8295. IFS=$as_save_IFS
  8296. fi
  8297. fi
  8298. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  8299. if test -n "$DSYMUTIL"; then
  8300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  8301. $as_echo "$DSYMUTIL" >&6; }
  8302. else
  8303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8304. $as_echo "no" >&6; }
  8305. fi
  8306. fi
  8307. if test -z "$ac_cv_prog_DSYMUTIL"; then
  8308. ac_ct_DSYMUTIL=$DSYMUTIL
  8309. # Extract the first word of "dsymutil", so it can be a program name with args.
  8310. set dummy dsymutil; ac_word=$2
  8311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8312. $as_echo_n "checking for $ac_word... " >&6; }
  8313. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  8314. $as_echo_n "(cached) " >&6
  8315. else
  8316. if test -n "$ac_ct_DSYMUTIL"; then
  8317. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  8318. else
  8319. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8320. for as_dir in $PATH
  8321. do
  8322. IFS=$as_save_IFS
  8323. test -z "$as_dir" && as_dir=.
  8324. for ac_exec_ext in '' $ac_executable_extensions; do
  8325. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8326. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  8327. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8328. break 2
  8329. fi
  8330. done
  8331. done
  8332. IFS=$as_save_IFS
  8333. fi
  8334. fi
  8335. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  8336. if test -n "$ac_ct_DSYMUTIL"; then
  8337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  8338. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  8339. else
  8340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8341. $as_echo "no" >&6; }
  8342. fi
  8343. if test "x$ac_ct_DSYMUTIL" = x; then
  8344. DSYMUTIL=":"
  8345. else
  8346. case $cross_compiling:$ac_tool_warned in
  8347. yes:)
  8348. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8349. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8350. ac_tool_warned=yes ;;
  8351. esac
  8352. DSYMUTIL=$ac_ct_DSYMUTIL
  8353. fi
  8354. else
  8355. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  8356. fi
  8357. if test -n "$ac_tool_prefix"; then
  8358. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  8359. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  8360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8361. $as_echo_n "checking for $ac_word... " >&6; }
  8362. if ${ac_cv_prog_NMEDIT+:} false; then :
  8363. $as_echo_n "(cached) " >&6
  8364. else
  8365. if test -n "$NMEDIT"; then
  8366. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  8367. else
  8368. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8369. for as_dir in $PATH
  8370. do
  8371. IFS=$as_save_IFS
  8372. test -z "$as_dir" && as_dir=.
  8373. for ac_exec_ext in '' $ac_executable_extensions; do
  8374. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8375. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  8376. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8377. break 2
  8378. fi
  8379. done
  8380. done
  8381. IFS=$as_save_IFS
  8382. fi
  8383. fi
  8384. NMEDIT=$ac_cv_prog_NMEDIT
  8385. if test -n "$NMEDIT"; then
  8386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  8387. $as_echo "$NMEDIT" >&6; }
  8388. else
  8389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8390. $as_echo "no" >&6; }
  8391. fi
  8392. fi
  8393. if test -z "$ac_cv_prog_NMEDIT"; then
  8394. ac_ct_NMEDIT=$NMEDIT
  8395. # Extract the first word of "nmedit", so it can be a program name with args.
  8396. set dummy nmedit; ac_word=$2
  8397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8398. $as_echo_n "checking for $ac_word... " >&6; }
  8399. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  8400. $as_echo_n "(cached) " >&6
  8401. else
  8402. if test -n "$ac_ct_NMEDIT"; then
  8403. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  8404. else
  8405. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8406. for as_dir in $PATH
  8407. do
  8408. IFS=$as_save_IFS
  8409. test -z "$as_dir" && as_dir=.
  8410. for ac_exec_ext in '' $ac_executable_extensions; do
  8411. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8412. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  8413. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8414. break 2
  8415. fi
  8416. done
  8417. done
  8418. IFS=$as_save_IFS
  8419. fi
  8420. fi
  8421. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  8422. if test -n "$ac_ct_NMEDIT"; then
  8423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  8424. $as_echo "$ac_ct_NMEDIT" >&6; }
  8425. else
  8426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8427. $as_echo "no" >&6; }
  8428. fi
  8429. if test "x$ac_ct_NMEDIT" = x; then
  8430. NMEDIT=":"
  8431. else
  8432. case $cross_compiling:$ac_tool_warned in
  8433. yes:)
  8434. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8435. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8436. ac_tool_warned=yes ;;
  8437. esac
  8438. NMEDIT=$ac_ct_NMEDIT
  8439. fi
  8440. else
  8441. NMEDIT="$ac_cv_prog_NMEDIT"
  8442. fi
  8443. if test -n "$ac_tool_prefix"; then
  8444. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  8445. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  8446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8447. $as_echo_n "checking for $ac_word... " >&6; }
  8448. if ${ac_cv_prog_LIPO+:} false; then :
  8449. $as_echo_n "(cached) " >&6
  8450. else
  8451. if test -n "$LIPO"; then
  8452. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  8453. else
  8454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8455. for as_dir in $PATH
  8456. do
  8457. IFS=$as_save_IFS
  8458. test -z "$as_dir" && as_dir=.
  8459. for ac_exec_ext in '' $ac_executable_extensions; do
  8460. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8461. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  8462. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8463. break 2
  8464. fi
  8465. done
  8466. done
  8467. IFS=$as_save_IFS
  8468. fi
  8469. fi
  8470. LIPO=$ac_cv_prog_LIPO
  8471. if test -n "$LIPO"; then
  8472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  8473. $as_echo "$LIPO" >&6; }
  8474. else
  8475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8476. $as_echo "no" >&6; }
  8477. fi
  8478. fi
  8479. if test -z "$ac_cv_prog_LIPO"; then
  8480. ac_ct_LIPO=$LIPO
  8481. # Extract the first word of "lipo", so it can be a program name with args.
  8482. set dummy lipo; ac_word=$2
  8483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8484. $as_echo_n "checking for $ac_word... " >&6; }
  8485. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  8486. $as_echo_n "(cached) " >&6
  8487. else
  8488. if test -n "$ac_ct_LIPO"; then
  8489. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  8490. else
  8491. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8492. for as_dir in $PATH
  8493. do
  8494. IFS=$as_save_IFS
  8495. test -z "$as_dir" && as_dir=.
  8496. for ac_exec_ext in '' $ac_executable_extensions; do
  8497. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8498. ac_cv_prog_ac_ct_LIPO="lipo"
  8499. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8500. break 2
  8501. fi
  8502. done
  8503. done
  8504. IFS=$as_save_IFS
  8505. fi
  8506. fi
  8507. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  8508. if test -n "$ac_ct_LIPO"; then
  8509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  8510. $as_echo "$ac_ct_LIPO" >&6; }
  8511. else
  8512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8513. $as_echo "no" >&6; }
  8514. fi
  8515. if test "x$ac_ct_LIPO" = x; then
  8516. LIPO=":"
  8517. else
  8518. case $cross_compiling:$ac_tool_warned in
  8519. yes:)
  8520. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8521. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8522. ac_tool_warned=yes ;;
  8523. esac
  8524. LIPO=$ac_ct_LIPO
  8525. fi
  8526. else
  8527. LIPO="$ac_cv_prog_LIPO"
  8528. fi
  8529. if test -n "$ac_tool_prefix"; then
  8530. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  8531. set dummy ${ac_tool_prefix}otool; ac_word=$2
  8532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8533. $as_echo_n "checking for $ac_word... " >&6; }
  8534. if ${ac_cv_prog_OTOOL+:} false; then :
  8535. $as_echo_n "(cached) " >&6
  8536. else
  8537. if test -n "$OTOOL"; then
  8538. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  8539. else
  8540. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8541. for as_dir in $PATH
  8542. do
  8543. IFS=$as_save_IFS
  8544. test -z "$as_dir" && as_dir=.
  8545. for ac_exec_ext in '' $ac_executable_extensions; do
  8546. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8547. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  8548. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8549. break 2
  8550. fi
  8551. done
  8552. done
  8553. IFS=$as_save_IFS
  8554. fi
  8555. fi
  8556. OTOOL=$ac_cv_prog_OTOOL
  8557. if test -n "$OTOOL"; then
  8558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  8559. $as_echo "$OTOOL" >&6; }
  8560. else
  8561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8562. $as_echo "no" >&6; }
  8563. fi
  8564. fi
  8565. if test -z "$ac_cv_prog_OTOOL"; then
  8566. ac_ct_OTOOL=$OTOOL
  8567. # Extract the first word of "otool", so it can be a program name with args.
  8568. set dummy otool; ac_word=$2
  8569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8570. $as_echo_n "checking for $ac_word... " >&6; }
  8571. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  8572. $as_echo_n "(cached) " >&6
  8573. else
  8574. if test -n "$ac_ct_OTOOL"; then
  8575. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  8576. else
  8577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8578. for as_dir in $PATH
  8579. do
  8580. IFS=$as_save_IFS
  8581. test -z "$as_dir" && as_dir=.
  8582. for ac_exec_ext in '' $ac_executable_extensions; do
  8583. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8584. ac_cv_prog_ac_ct_OTOOL="otool"
  8585. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8586. break 2
  8587. fi
  8588. done
  8589. done
  8590. IFS=$as_save_IFS
  8591. fi
  8592. fi
  8593. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  8594. if test -n "$ac_ct_OTOOL"; then
  8595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  8596. $as_echo "$ac_ct_OTOOL" >&6; }
  8597. else
  8598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8599. $as_echo "no" >&6; }
  8600. fi
  8601. if test "x$ac_ct_OTOOL" = x; then
  8602. OTOOL=":"
  8603. else
  8604. case $cross_compiling:$ac_tool_warned in
  8605. yes:)
  8606. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8607. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8608. ac_tool_warned=yes ;;
  8609. esac
  8610. OTOOL=$ac_ct_OTOOL
  8611. fi
  8612. else
  8613. OTOOL="$ac_cv_prog_OTOOL"
  8614. fi
  8615. if test -n "$ac_tool_prefix"; then
  8616. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  8617. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  8618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8619. $as_echo_n "checking for $ac_word... " >&6; }
  8620. if ${ac_cv_prog_OTOOL64+:} false; then :
  8621. $as_echo_n "(cached) " >&6
  8622. else
  8623. if test -n "$OTOOL64"; then
  8624. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  8625. else
  8626. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8627. for as_dir in $PATH
  8628. do
  8629. IFS=$as_save_IFS
  8630. test -z "$as_dir" && as_dir=.
  8631. for ac_exec_ext in '' $ac_executable_extensions; do
  8632. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8633. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  8634. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8635. break 2
  8636. fi
  8637. done
  8638. done
  8639. IFS=$as_save_IFS
  8640. fi
  8641. fi
  8642. OTOOL64=$ac_cv_prog_OTOOL64
  8643. if test -n "$OTOOL64"; then
  8644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  8645. $as_echo "$OTOOL64" >&6; }
  8646. else
  8647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8648. $as_echo "no" >&6; }
  8649. fi
  8650. fi
  8651. if test -z "$ac_cv_prog_OTOOL64"; then
  8652. ac_ct_OTOOL64=$OTOOL64
  8653. # Extract the first word of "otool64", so it can be a program name with args.
  8654. set dummy otool64; ac_word=$2
  8655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8656. $as_echo_n "checking for $ac_word... " >&6; }
  8657. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  8658. $as_echo_n "(cached) " >&6
  8659. else
  8660. if test -n "$ac_ct_OTOOL64"; then
  8661. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  8662. else
  8663. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8664. for as_dir in $PATH
  8665. do
  8666. IFS=$as_save_IFS
  8667. test -z "$as_dir" && as_dir=.
  8668. for ac_exec_ext in '' $ac_executable_extensions; do
  8669. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8670. ac_cv_prog_ac_ct_OTOOL64="otool64"
  8671. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8672. break 2
  8673. fi
  8674. done
  8675. done
  8676. IFS=$as_save_IFS
  8677. fi
  8678. fi
  8679. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  8680. if test -n "$ac_ct_OTOOL64"; then
  8681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  8682. $as_echo "$ac_ct_OTOOL64" >&6; }
  8683. else
  8684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8685. $as_echo "no" >&6; }
  8686. fi
  8687. if test "x$ac_ct_OTOOL64" = x; then
  8688. OTOOL64=":"
  8689. else
  8690. case $cross_compiling:$ac_tool_warned in
  8691. yes:)
  8692. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8693. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8694. ac_tool_warned=yes ;;
  8695. esac
  8696. OTOOL64=$ac_ct_OTOOL64
  8697. fi
  8698. else
  8699. OTOOL64="$ac_cv_prog_OTOOL64"
  8700. fi
  8701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  8702. $as_echo_n "checking for -single_module linker flag... " >&6; }
  8703. if ${lt_cv_apple_cc_single_mod+:} false; then :
  8704. $as_echo_n "(cached) " >&6
  8705. else
  8706. lt_cv_apple_cc_single_mod=no
  8707. if test -z "$LT_MULTI_MODULE"; then
  8708. # By default we will add the -single_module flag. You can override
  8709. # by either setting the environment variable LT_MULTI_MODULE
  8710. # non-empty at configure time, or by adding -multi_module to the
  8711. # link flags.
  8712. rm -rf libconftest.dylib*
  8713. echo "int foo(void){return 1;}" > conftest.c
  8714. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8715. -dynamiclib -Wl,-single_module conftest.c" >&5
  8716. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8717. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  8718. _lt_result=$?
  8719. # If there is a non-empty error log, and "single_module"
  8720. # appears in it, assume the flag caused a linker warning
  8721. if test -s conftest.err && $GREP single_module conftest.err; then
  8722. cat conftest.err >&5
  8723. # Otherwise, if the output was created with a 0 exit code from
  8724. # the compiler, it worked.
  8725. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  8726. lt_cv_apple_cc_single_mod=yes
  8727. else
  8728. cat conftest.err >&5
  8729. fi
  8730. rm -rf libconftest.dylib*
  8731. rm -f conftest.*
  8732. fi
  8733. fi
  8734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  8735. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  8736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  8737. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  8738. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  8739. $as_echo_n "(cached) " >&6
  8740. else
  8741. lt_cv_ld_exported_symbols_list=no
  8742. save_LDFLAGS=$LDFLAGS
  8743. echo "_main" > conftest.sym
  8744. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  8745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8746. /* end confdefs.h. */
  8747. int
  8748. main ()
  8749. {
  8750. ;
  8751. return 0;
  8752. }
  8753. _ACEOF
  8754. if ac_fn_c_try_link "$LINENO"; then :
  8755. lt_cv_ld_exported_symbols_list=yes
  8756. else
  8757. lt_cv_ld_exported_symbols_list=no
  8758. fi
  8759. rm -f core conftest.err conftest.$ac_objext \
  8760. conftest$ac_exeext conftest.$ac_ext
  8761. LDFLAGS=$save_LDFLAGS
  8762. fi
  8763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  8764. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  8765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  8766. $as_echo_n "checking for -force_load linker flag... " >&6; }
  8767. if ${lt_cv_ld_force_load+:} false; then :
  8768. $as_echo_n "(cached) " >&6
  8769. else
  8770. lt_cv_ld_force_load=no
  8771. cat > conftest.c << _LT_EOF
  8772. int forced_loaded() { return 2;}
  8773. _LT_EOF
  8774. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  8775. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  8776. echo "$AR cru libconftest.a conftest.o" >&5
  8777. $AR cru libconftest.a conftest.o 2>&5
  8778. echo "$RANLIB libconftest.a" >&5
  8779. $RANLIB libconftest.a 2>&5
  8780. cat > conftest.c << _LT_EOF
  8781. int main() { return 0;}
  8782. _LT_EOF
  8783. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  8784. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  8785. _lt_result=$?
  8786. if test -s conftest.err && $GREP force_load conftest.err; then
  8787. cat conftest.err >&5
  8788. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  8789. lt_cv_ld_force_load=yes
  8790. else
  8791. cat conftest.err >&5
  8792. fi
  8793. rm -f conftest.err libconftest.a conftest conftest.c
  8794. rm -rf conftest.dSYM
  8795. fi
  8796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  8797. $as_echo "$lt_cv_ld_force_load" >&6; }
  8798. case $host_os in
  8799. rhapsody* | darwin1.[012])
  8800. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  8801. darwin1.*)
  8802. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  8803. darwin*) # darwin 5.x on
  8804. # if running on 10.5 or later, the deployment target defaults
  8805. # to the OS version, if on x86, and 10.4, the deployment
  8806. # target defaults to 10.4. Don't you love it?
  8807. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  8808. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  8809. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  8810. 10.[012][,.]*)
  8811. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  8812. 10.*)
  8813. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  8814. esac
  8815. ;;
  8816. esac
  8817. if test yes = "$lt_cv_apple_cc_single_mod"; then
  8818. _lt_dar_single_mod='$single_module'
  8819. fi
  8820. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  8821. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  8822. else
  8823. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  8824. fi
  8825. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  8826. _lt_dsymutil='~$DSYMUTIL $lib || :'
  8827. else
  8828. _lt_dsymutil=
  8829. fi
  8830. ;;
  8831. esac
  8832. # func_munge_path_list VARIABLE PATH
  8833. # -----------------------------------
  8834. # VARIABLE is name of variable containing _space_ separated list of
  8835. # directories to be munged by the contents of PATH, which is string
  8836. # having a format:
  8837. # "DIR[:DIR]:"
  8838. # string "DIR[ DIR]" will be prepended to VARIABLE
  8839. # ":DIR[:DIR]"
  8840. # string "DIR[ DIR]" will be appended to VARIABLE
  8841. # "DIRP[:DIRP]::[DIRA:]DIRA"
  8842. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  8843. # "DIRA[ DIRA]" will be appended to VARIABLE
  8844. # "DIR[:DIR]"
  8845. # VARIABLE will be replaced by "DIR[ DIR]"
  8846. func_munge_path_list ()
  8847. {
  8848. case x$2 in
  8849. x)
  8850. ;;
  8851. *:)
  8852. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  8853. ;;
  8854. x:*)
  8855. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  8856. ;;
  8857. *::*)
  8858. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  8859. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  8860. ;;
  8861. *)
  8862. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  8863. ;;
  8864. esac
  8865. }
  8866. for ac_header in dlfcn.h
  8867. do :
  8868. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  8869. "
  8870. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  8871. cat >>confdefs.h <<_ACEOF
  8872. #define HAVE_DLFCN_H 1
  8873. _ACEOF
  8874. fi
  8875. done
  8876. # Set options
  8877. enable_dlopen=yes
  8878. # Check whether --enable-static was given.
  8879. if test "${enable_static+set}" = set; then :
  8880. enableval=$enable_static; p=${PACKAGE-default}
  8881. case $enableval in
  8882. yes) enable_static=yes ;;
  8883. no) enable_static=no ;;
  8884. *)
  8885. enable_static=no
  8886. # Look at the argument we got. We use all the common list separators.
  8887. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8888. for pkg in $enableval; do
  8889. IFS=$lt_save_ifs
  8890. if test "X$pkg" = "X$p"; then
  8891. enable_static=yes
  8892. fi
  8893. done
  8894. IFS=$lt_save_ifs
  8895. ;;
  8896. esac
  8897. else
  8898. enable_static=no
  8899. fi
  8900. # Check whether --enable-shared was given.
  8901. if test "${enable_shared+set}" = set; then :
  8902. enableval=$enable_shared; p=${PACKAGE-default}
  8903. case $enableval in
  8904. yes) enable_shared=yes ;;
  8905. no) enable_shared=no ;;
  8906. *)
  8907. enable_shared=no
  8908. # Look at the argument we got. We use all the common list separators.
  8909. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8910. for pkg in $enableval; do
  8911. IFS=$lt_save_ifs
  8912. if test "X$pkg" = "X$p"; then
  8913. enable_shared=yes
  8914. fi
  8915. done
  8916. IFS=$lt_save_ifs
  8917. ;;
  8918. esac
  8919. else
  8920. enable_shared=yes
  8921. fi
  8922. enable_win32_dll=no
  8923. # Check whether --with-pic was given.
  8924. if test "${with_pic+set}" = set; then :
  8925. withval=$with_pic; lt_p=${PACKAGE-default}
  8926. case $withval in
  8927. yes|no) pic_mode=$withval ;;
  8928. *)
  8929. pic_mode=default
  8930. # Look at the argument we got. We use all the common list separators.
  8931. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8932. for lt_pkg in $withval; do
  8933. IFS=$lt_save_ifs
  8934. if test "X$lt_pkg" = "X$lt_p"; then
  8935. pic_mode=yes
  8936. fi
  8937. done
  8938. IFS=$lt_save_ifs
  8939. ;;
  8940. esac
  8941. else
  8942. pic_mode=default
  8943. fi
  8944. # Check whether --enable-fast-install was given.
  8945. if test "${enable_fast_install+set}" = set; then :
  8946. enableval=$enable_fast_install; p=${PACKAGE-default}
  8947. case $enableval in
  8948. yes) enable_fast_install=yes ;;
  8949. no) enable_fast_install=no ;;
  8950. *)
  8951. enable_fast_install=no
  8952. # Look at the argument we got. We use all the common list separators.
  8953. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8954. for pkg in $enableval; do
  8955. IFS=$lt_save_ifs
  8956. if test "X$pkg" = "X$p"; then
  8957. enable_fast_install=yes
  8958. fi
  8959. done
  8960. IFS=$lt_save_ifs
  8961. ;;
  8962. esac
  8963. else
  8964. enable_fast_install=yes
  8965. fi
  8966. shared_archive_member_spec=
  8967. case $host,$enable_shared in
  8968. power*-*-aix[5-9]*,yes)
  8969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  8970. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  8971. # Check whether --with-aix-soname was given.
  8972. if test "${with_aix_soname+set}" = set; then :
  8973. withval=$with_aix_soname; case $withval in
  8974. aix|svr4|both)
  8975. ;;
  8976. *)
  8977. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  8978. ;;
  8979. esac
  8980. lt_cv_with_aix_soname=$with_aix_soname
  8981. else
  8982. if ${lt_cv_with_aix_soname+:} false; then :
  8983. $as_echo_n "(cached) " >&6
  8984. else
  8985. lt_cv_with_aix_soname=aix
  8986. fi
  8987. with_aix_soname=$lt_cv_with_aix_soname
  8988. fi
  8989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  8990. $as_echo "$with_aix_soname" >&6; }
  8991. if test aix != "$with_aix_soname"; then
  8992. # For the AIX way of multilib, we name the shared archive member
  8993. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  8994. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  8995. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  8996. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  8997. if test 64 = "${OBJECT_MODE-32}"; then
  8998. shared_archive_member_spec=shr_64
  8999. else
  9000. shared_archive_member_spec=shr
  9001. fi
  9002. fi
  9003. ;;
  9004. *)
  9005. with_aix_soname=aix
  9006. ;;
  9007. esac
  9008. # This can be used to rebuild libtool when needed
  9009. LIBTOOL_DEPS=$ltmain
  9010. # Always use our own libtool.
  9011. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  9012. test -z "$LN_S" && LN_S="ln -s"
  9013. if test -n "${ZSH_VERSION+set}"; then
  9014. setopt NO_GLOB_SUBST
  9015. fi
  9016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  9017. $as_echo_n "checking for objdir... " >&6; }
  9018. if ${lt_cv_objdir+:} false; then :
  9019. $as_echo_n "(cached) " >&6
  9020. else
  9021. rm -f .libs 2>/dev/null
  9022. mkdir .libs 2>/dev/null
  9023. if test -d .libs; then
  9024. lt_cv_objdir=.libs
  9025. else
  9026. # MS-DOS does not allow filenames that begin with a dot.
  9027. lt_cv_objdir=_libs
  9028. fi
  9029. rmdir .libs 2>/dev/null
  9030. fi
  9031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  9032. $as_echo "$lt_cv_objdir" >&6; }
  9033. objdir=$lt_cv_objdir
  9034. cat >>confdefs.h <<_ACEOF
  9035. #define LT_OBJDIR "$lt_cv_objdir/"
  9036. _ACEOF
  9037. case $host_os in
  9038. aix3*)
  9039. # AIX sometimes has problems with the GCC collect2 program. For some
  9040. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9041. # vanish in a puff of smoke.
  9042. if test set != "${COLLECT_NAMES+set}"; then
  9043. COLLECT_NAMES=
  9044. export COLLECT_NAMES
  9045. fi
  9046. ;;
  9047. esac
  9048. # Global variables:
  9049. ofile=libtool
  9050. can_build_shared=yes
  9051. # All known linkers require a '.a' archive for static linking (except MSVC,
  9052. # which needs '.lib').
  9053. libext=a
  9054. with_gnu_ld=$lt_cv_prog_gnu_ld
  9055. old_CC=$CC
  9056. old_CFLAGS=$CFLAGS
  9057. # Set sane defaults for various variables
  9058. test -z "$CC" && CC=cc
  9059. test -z "$LTCC" && LTCC=$CC
  9060. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  9061. test -z "$LD" && LD=ld
  9062. test -z "$ac_objext" && ac_objext=o
  9063. func_cc_basename $compiler
  9064. cc_basename=$func_cc_basename_result
  9065. # Only perform the check for file, if the check method requires it
  9066. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  9067. case $deplibs_check_method in
  9068. file_magic*)
  9069. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  9070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  9071. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  9072. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  9073. $as_echo_n "(cached) " >&6
  9074. else
  9075. case $MAGIC_CMD in
  9076. [\\/*] | ?:[\\/]*)
  9077. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  9078. ;;
  9079. *)
  9080. lt_save_MAGIC_CMD=$MAGIC_CMD
  9081. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  9082. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  9083. for ac_dir in $ac_dummy; do
  9084. IFS=$lt_save_ifs
  9085. test -z "$ac_dir" && ac_dir=.
  9086. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  9087. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  9088. if test -n "$file_magic_test_file"; then
  9089. case $deplibs_check_method in
  9090. "file_magic "*)
  9091. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  9092. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9093. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  9094. $EGREP "$file_magic_regex" > /dev/null; then
  9095. :
  9096. else
  9097. cat <<_LT_EOF 1>&2
  9098. *** Warning: the command libtool uses to detect shared libraries,
  9099. *** $file_magic_cmd, produces output that libtool cannot recognize.
  9100. *** The result is that libtool may fail to recognize shared libraries
  9101. *** as such. This will affect the creation of libtool libraries that
  9102. *** depend on shared libraries, but programs linked with such libtool
  9103. *** libraries will work regardless of this problem. Nevertheless, you
  9104. *** may want to report the problem to your system manager and/or to
  9105. *** bug-libtool@gnu.org
  9106. _LT_EOF
  9107. fi ;;
  9108. esac
  9109. fi
  9110. break
  9111. fi
  9112. done
  9113. IFS=$lt_save_ifs
  9114. MAGIC_CMD=$lt_save_MAGIC_CMD
  9115. ;;
  9116. esac
  9117. fi
  9118. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9119. if test -n "$MAGIC_CMD"; then
  9120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  9121. $as_echo "$MAGIC_CMD" >&6; }
  9122. else
  9123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9124. $as_echo "no" >&6; }
  9125. fi
  9126. if test -z "$lt_cv_path_MAGIC_CMD"; then
  9127. if test -n "$ac_tool_prefix"; then
  9128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  9129. $as_echo_n "checking for file... " >&6; }
  9130. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  9131. $as_echo_n "(cached) " >&6
  9132. else
  9133. case $MAGIC_CMD in
  9134. [\\/*] | ?:[\\/]*)
  9135. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  9136. ;;
  9137. *)
  9138. lt_save_MAGIC_CMD=$MAGIC_CMD
  9139. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  9140. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  9141. for ac_dir in $ac_dummy; do
  9142. IFS=$lt_save_ifs
  9143. test -z "$ac_dir" && ac_dir=.
  9144. if test -f "$ac_dir/file"; then
  9145. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  9146. if test -n "$file_magic_test_file"; then
  9147. case $deplibs_check_method in
  9148. "file_magic "*)
  9149. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  9150. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9151. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  9152. $EGREP "$file_magic_regex" > /dev/null; then
  9153. :
  9154. else
  9155. cat <<_LT_EOF 1>&2
  9156. *** Warning: the command libtool uses to detect shared libraries,
  9157. *** $file_magic_cmd, produces output that libtool cannot recognize.
  9158. *** The result is that libtool may fail to recognize shared libraries
  9159. *** as such. This will affect the creation of libtool libraries that
  9160. *** depend on shared libraries, but programs linked with such libtool
  9161. *** libraries will work regardless of this problem. Nevertheless, you
  9162. *** may want to report the problem to your system manager and/or to
  9163. *** bug-libtool@gnu.org
  9164. _LT_EOF
  9165. fi ;;
  9166. esac
  9167. fi
  9168. break
  9169. fi
  9170. done
  9171. IFS=$lt_save_ifs
  9172. MAGIC_CMD=$lt_save_MAGIC_CMD
  9173. ;;
  9174. esac
  9175. fi
  9176. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9177. if test -n "$MAGIC_CMD"; then
  9178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  9179. $as_echo "$MAGIC_CMD" >&6; }
  9180. else
  9181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9182. $as_echo "no" >&6; }
  9183. fi
  9184. else
  9185. MAGIC_CMD=:
  9186. fi
  9187. fi
  9188. fi
  9189. ;;
  9190. esac
  9191. # Use C for the default configuration in the libtool script
  9192. lt_save_CC=$CC
  9193. ac_ext=c
  9194. ac_cpp='$CPP $CPPFLAGS'
  9195. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9196. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9197. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9198. # Source file extension for C test sources.
  9199. ac_ext=c
  9200. # Object file extension for compiled C test sources.
  9201. objext=o
  9202. objext=$objext
  9203. # Code to be used in simple compile tests
  9204. lt_simple_compile_test_code="int some_variable = 0;"
  9205. # Code to be used in simple link tests
  9206. lt_simple_link_test_code='int main(){return(0);}'
  9207. # If no C compiler was specified, use CC.
  9208. LTCC=${LTCC-"$CC"}
  9209. # If no C compiler flags were specified, use CFLAGS.
  9210. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9211. # Allow CC to be a program name with arguments.
  9212. compiler=$CC
  9213. # Save the default compiler, since it gets overwritten when the other
  9214. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  9215. compiler_DEFAULT=$CC
  9216. # save warnings/boilerplate of simple test code
  9217. ac_outfile=conftest.$ac_objext
  9218. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9219. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9220. _lt_compiler_boilerplate=`cat conftest.err`
  9221. $RM conftest*
  9222. ac_outfile=conftest.$ac_objext
  9223. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9224. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9225. _lt_linker_boilerplate=`cat conftest.err`
  9226. $RM -r conftest*
  9227. ## CAVEAT EMPTOR:
  9228. ## There is no encapsulation within the following macros, do not change
  9229. ## the running order or otherwise move them around unless you know exactly
  9230. ## what you are doing...
  9231. if test -n "$compiler"; then
  9232. lt_prog_compiler_no_builtin_flag=
  9233. if test yes = "$GCC"; then
  9234. case $cc_basename in
  9235. nvcc*)
  9236. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  9237. *)
  9238. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  9239. esac
  9240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  9241. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  9242. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  9243. $as_echo_n "(cached) " >&6
  9244. else
  9245. lt_cv_prog_compiler_rtti_exceptions=no
  9246. ac_outfile=conftest.$ac_objext
  9247. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9248. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  9249. # Insert the option either (1) after the last *FLAGS variable, or
  9250. # (2) before a word containing "conftest.", or (3) at the end.
  9251. # Note that $ac_compile itself does not contain backslashes and begins
  9252. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9253. # The option is referenced via a variable to avoid confusing sed.
  9254. lt_compile=`echo "$ac_compile" | $SED \
  9255. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9256. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9257. -e 's:$: $lt_compiler_flag:'`
  9258. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9259. (eval "$lt_compile" 2>conftest.err)
  9260. ac_status=$?
  9261. cat conftest.err >&5
  9262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9263. if (exit $ac_status) && test -s "$ac_outfile"; then
  9264. # The compiler can only warn and ignore the option if not recognized
  9265. # So say no if there are warnings other than the usual output.
  9266. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9267. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9268. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9269. lt_cv_prog_compiler_rtti_exceptions=yes
  9270. fi
  9271. fi
  9272. $RM conftest*
  9273. fi
  9274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  9275. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  9276. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  9277. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  9278. else
  9279. :
  9280. fi
  9281. fi
  9282. lt_prog_compiler_wl=
  9283. lt_prog_compiler_pic=
  9284. lt_prog_compiler_static=
  9285. if test yes = "$GCC"; then
  9286. lt_prog_compiler_wl='-Wl,'
  9287. lt_prog_compiler_static='-static'
  9288. case $host_os in
  9289. aix*)
  9290. # All AIX code is PIC.
  9291. if test ia64 = "$host_cpu"; then
  9292. # AIX 5 now supports IA64 processor
  9293. lt_prog_compiler_static='-Bstatic'
  9294. fi
  9295. lt_prog_compiler_pic='-fPIC'
  9296. ;;
  9297. amigaos*)
  9298. case $host_cpu in
  9299. powerpc)
  9300. # see comment about AmigaOS4 .so support
  9301. lt_prog_compiler_pic='-fPIC'
  9302. ;;
  9303. m68k)
  9304. # FIXME: we need at least 68020 code to build shared libraries, but
  9305. # adding the '-m68020' flag to GCC prevents building anything better,
  9306. # like '-m68040'.
  9307. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  9308. ;;
  9309. esac
  9310. ;;
  9311. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  9312. # PIC is the default for these OSes.
  9313. ;;
  9314. mingw* | cygwin* | pw32* | os2* | cegcc*)
  9315. # This hack is so that the source file can tell whether it is being
  9316. # built for inclusion in a dll (and should export symbols for example).
  9317. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  9318. # (--disable-auto-import) libraries
  9319. lt_prog_compiler_pic='-DDLL_EXPORT'
  9320. case $host_os in
  9321. os2*)
  9322. lt_prog_compiler_static='$wl-static'
  9323. ;;
  9324. esac
  9325. ;;
  9326. darwin* | rhapsody*)
  9327. # PIC is the default on this platform
  9328. # Common symbols not allowed in MH_DYLIB files
  9329. lt_prog_compiler_pic='-fno-common'
  9330. ;;
  9331. haiku*)
  9332. # PIC is the default for Haiku.
  9333. # The "-static" flag exists, but is broken.
  9334. lt_prog_compiler_static=
  9335. ;;
  9336. hpux*)
  9337. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  9338. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  9339. # sets the default TLS model and affects inlining.
  9340. case $host_cpu in
  9341. hppa*64*)
  9342. # +Z the default
  9343. ;;
  9344. *)
  9345. lt_prog_compiler_pic='-fPIC'
  9346. ;;
  9347. esac
  9348. ;;
  9349. interix[3-9]*)
  9350. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  9351. # Instead, we relocate shared libraries at runtime.
  9352. ;;
  9353. msdosdjgpp*)
  9354. # Just because we use GCC doesn't mean we suddenly get shared libraries
  9355. # on systems that don't support them.
  9356. lt_prog_compiler_can_build_shared=no
  9357. enable_shared=no
  9358. ;;
  9359. *nto* | *qnx*)
  9360. # QNX uses GNU C++, but need to define -shared option too, otherwise
  9361. # it will coredump.
  9362. lt_prog_compiler_pic='-fPIC -shared'
  9363. ;;
  9364. sysv4*MP*)
  9365. if test -d /usr/nec; then
  9366. lt_prog_compiler_pic=-Kconform_pic
  9367. fi
  9368. ;;
  9369. *)
  9370. lt_prog_compiler_pic='-fPIC'
  9371. ;;
  9372. esac
  9373. case $cc_basename in
  9374. nvcc*) # Cuda Compiler Driver 2.2
  9375. lt_prog_compiler_wl='-Xlinker '
  9376. if test -n "$lt_prog_compiler_pic"; then
  9377. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  9378. fi
  9379. ;;
  9380. esac
  9381. else
  9382. # PORTME Check for flag to pass linker flags through the system compiler.
  9383. case $host_os in
  9384. aix*)
  9385. lt_prog_compiler_wl='-Wl,'
  9386. if test ia64 = "$host_cpu"; then
  9387. # AIX 5 now supports IA64 processor
  9388. lt_prog_compiler_static='-Bstatic'
  9389. else
  9390. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  9391. fi
  9392. ;;
  9393. darwin* | rhapsody*)
  9394. # PIC is the default on this platform
  9395. # Common symbols not allowed in MH_DYLIB files
  9396. lt_prog_compiler_pic='-fno-common'
  9397. case $cc_basename in
  9398. nagfor*)
  9399. # NAG Fortran compiler
  9400. lt_prog_compiler_wl='-Wl,-Wl,,'
  9401. lt_prog_compiler_pic='-PIC'
  9402. lt_prog_compiler_static='-Bstatic'
  9403. ;;
  9404. esac
  9405. ;;
  9406. mingw* | cygwin* | pw32* | os2* | cegcc*)
  9407. # This hack is so that the source file can tell whether it is being
  9408. # built for inclusion in a dll (and should export symbols for example).
  9409. lt_prog_compiler_pic='-DDLL_EXPORT'
  9410. case $host_os in
  9411. os2*)
  9412. lt_prog_compiler_static='$wl-static'
  9413. ;;
  9414. esac
  9415. ;;
  9416. hpux9* | hpux10* | hpux11*)
  9417. lt_prog_compiler_wl='-Wl,'
  9418. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9419. # not for PA HP-UX.
  9420. case $host_cpu in
  9421. hppa*64*|ia64*)
  9422. # +Z the default
  9423. ;;
  9424. *)
  9425. lt_prog_compiler_pic='+Z'
  9426. ;;
  9427. esac
  9428. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  9429. lt_prog_compiler_static='$wl-a ${wl}archive'
  9430. ;;
  9431. irix5* | irix6* | nonstopux*)
  9432. lt_prog_compiler_wl='-Wl,'
  9433. # PIC (with -KPIC) is the default.
  9434. lt_prog_compiler_static='-non_shared'
  9435. ;;
  9436. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9437. case $cc_basename in
  9438. # old Intel for x86_64, which still supported -KPIC.
  9439. ecc*)
  9440. lt_prog_compiler_wl='-Wl,'
  9441. lt_prog_compiler_pic='-KPIC'
  9442. lt_prog_compiler_static='-static'
  9443. ;;
  9444. # icc used to be incompatible with GCC.
  9445. # ICC 10 doesn't accept -KPIC any more.
  9446. icc* | ifort*)
  9447. lt_prog_compiler_wl='-Wl,'
  9448. lt_prog_compiler_pic='-fPIC'
  9449. lt_prog_compiler_static='-static'
  9450. ;;
  9451. # Lahey Fortran 8.1.
  9452. lf95*)
  9453. lt_prog_compiler_wl='-Wl,'
  9454. lt_prog_compiler_pic='--shared'
  9455. lt_prog_compiler_static='--static'
  9456. ;;
  9457. nagfor*)
  9458. # NAG Fortran compiler
  9459. lt_prog_compiler_wl='-Wl,-Wl,,'
  9460. lt_prog_compiler_pic='-PIC'
  9461. lt_prog_compiler_static='-Bstatic'
  9462. ;;
  9463. tcc*)
  9464. # Fabrice Bellard et al's Tiny C Compiler
  9465. lt_prog_compiler_wl='-Wl,'
  9466. lt_prog_compiler_pic='-fPIC'
  9467. lt_prog_compiler_static='-static'
  9468. ;;
  9469. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  9470. # Portland Group compilers (*not* the Pentium gcc compiler,
  9471. # which looks to be a dead project)
  9472. lt_prog_compiler_wl='-Wl,'
  9473. lt_prog_compiler_pic='-fpic'
  9474. lt_prog_compiler_static='-Bstatic'
  9475. ;;
  9476. ccc*)
  9477. lt_prog_compiler_wl='-Wl,'
  9478. # All Alpha code is PIC.
  9479. lt_prog_compiler_static='-non_shared'
  9480. ;;
  9481. xl* | bgxl* | bgf* | mpixl*)
  9482. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  9483. lt_prog_compiler_wl='-Wl,'
  9484. lt_prog_compiler_pic='-qpic'
  9485. lt_prog_compiler_static='-qstaticlink'
  9486. ;;
  9487. *)
  9488. case `$CC -V 2>&1 | sed 5q` in
  9489. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  9490. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  9491. lt_prog_compiler_pic='-KPIC'
  9492. lt_prog_compiler_static='-Bstatic'
  9493. lt_prog_compiler_wl=''
  9494. ;;
  9495. *Sun\ F* | *Sun*Fortran*)
  9496. lt_prog_compiler_pic='-KPIC'
  9497. lt_prog_compiler_static='-Bstatic'
  9498. lt_prog_compiler_wl='-Qoption ld '
  9499. ;;
  9500. *Sun\ C*)
  9501. # Sun C 5.9
  9502. lt_prog_compiler_pic='-KPIC'
  9503. lt_prog_compiler_static='-Bstatic'
  9504. lt_prog_compiler_wl='-Wl,'
  9505. ;;
  9506. *Intel*\ [CF]*Compiler*)
  9507. lt_prog_compiler_wl='-Wl,'
  9508. lt_prog_compiler_pic='-fPIC'
  9509. lt_prog_compiler_static='-static'
  9510. ;;
  9511. *Portland\ Group*)
  9512. lt_prog_compiler_wl='-Wl,'
  9513. lt_prog_compiler_pic='-fpic'
  9514. lt_prog_compiler_static='-Bstatic'
  9515. ;;
  9516. esac
  9517. ;;
  9518. esac
  9519. ;;
  9520. newsos6)
  9521. lt_prog_compiler_pic='-KPIC'
  9522. lt_prog_compiler_static='-Bstatic'
  9523. ;;
  9524. *nto* | *qnx*)
  9525. # QNX uses GNU C++, but need to define -shared option too, otherwise
  9526. # it will coredump.
  9527. lt_prog_compiler_pic='-fPIC -shared'
  9528. ;;
  9529. osf3* | osf4* | osf5*)
  9530. lt_prog_compiler_wl='-Wl,'
  9531. # All OSF/1 code is PIC.
  9532. lt_prog_compiler_static='-non_shared'
  9533. ;;
  9534. rdos*)
  9535. lt_prog_compiler_static='-non_shared'
  9536. ;;
  9537. solaris*)
  9538. lt_prog_compiler_pic='-KPIC'
  9539. lt_prog_compiler_static='-Bstatic'
  9540. case $cc_basename in
  9541. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  9542. lt_prog_compiler_wl='-Qoption ld ';;
  9543. *)
  9544. lt_prog_compiler_wl='-Wl,';;
  9545. esac
  9546. ;;
  9547. sunos4*)
  9548. lt_prog_compiler_wl='-Qoption ld '
  9549. lt_prog_compiler_pic='-PIC'
  9550. lt_prog_compiler_static='-Bstatic'
  9551. ;;
  9552. sysv4 | sysv4.2uw2* | sysv4.3*)
  9553. lt_prog_compiler_wl='-Wl,'
  9554. lt_prog_compiler_pic='-KPIC'
  9555. lt_prog_compiler_static='-Bstatic'
  9556. ;;
  9557. sysv4*MP*)
  9558. if test -d /usr/nec; then
  9559. lt_prog_compiler_pic='-Kconform_pic'
  9560. lt_prog_compiler_static='-Bstatic'
  9561. fi
  9562. ;;
  9563. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  9564. lt_prog_compiler_wl='-Wl,'
  9565. lt_prog_compiler_pic='-KPIC'
  9566. lt_prog_compiler_static='-Bstatic'
  9567. ;;
  9568. unicos*)
  9569. lt_prog_compiler_wl='-Wl,'
  9570. lt_prog_compiler_can_build_shared=no
  9571. ;;
  9572. uts4*)
  9573. lt_prog_compiler_pic='-pic'
  9574. lt_prog_compiler_static='-Bstatic'
  9575. ;;
  9576. *)
  9577. lt_prog_compiler_can_build_shared=no
  9578. ;;
  9579. esac
  9580. fi
  9581. case $host_os in
  9582. # For platforms that do not support PIC, -DPIC is meaningless:
  9583. *djgpp*)
  9584. lt_prog_compiler_pic=
  9585. ;;
  9586. *)
  9587. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  9588. ;;
  9589. esac
  9590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  9591. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  9592. if ${lt_cv_prog_compiler_pic+:} false; then :
  9593. $as_echo_n "(cached) " >&6
  9594. else
  9595. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  9596. fi
  9597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  9598. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  9599. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  9600. #
  9601. # Check to make sure the PIC flag actually works.
  9602. #
  9603. if test -n "$lt_prog_compiler_pic"; then
  9604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  9605. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  9606. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  9607. $as_echo_n "(cached) " >&6
  9608. else
  9609. lt_cv_prog_compiler_pic_works=no
  9610. ac_outfile=conftest.$ac_objext
  9611. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9612. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  9613. # Insert the option either (1) after the last *FLAGS variable, or
  9614. # (2) before a word containing "conftest.", or (3) at the end.
  9615. # Note that $ac_compile itself does not contain backslashes and begins
  9616. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9617. # The option is referenced via a variable to avoid confusing sed.
  9618. lt_compile=`echo "$ac_compile" | $SED \
  9619. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9620. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9621. -e 's:$: $lt_compiler_flag:'`
  9622. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9623. (eval "$lt_compile" 2>conftest.err)
  9624. ac_status=$?
  9625. cat conftest.err >&5
  9626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9627. if (exit $ac_status) && test -s "$ac_outfile"; then
  9628. # The compiler can only warn and ignore the option if not recognized
  9629. # So say no if there are warnings other than the usual output.
  9630. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9631. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9632. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9633. lt_cv_prog_compiler_pic_works=yes
  9634. fi
  9635. fi
  9636. $RM conftest*
  9637. fi
  9638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  9639. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  9640. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  9641. case $lt_prog_compiler_pic in
  9642. "" | " "*) ;;
  9643. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  9644. esac
  9645. else
  9646. lt_prog_compiler_pic=
  9647. lt_prog_compiler_can_build_shared=no
  9648. fi
  9649. fi
  9650. #
  9651. # Check to make sure the static flag actually works.
  9652. #
  9653. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  9654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  9655. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  9656. if ${lt_cv_prog_compiler_static_works+:} false; then :
  9657. $as_echo_n "(cached) " >&6
  9658. else
  9659. lt_cv_prog_compiler_static_works=no
  9660. save_LDFLAGS=$LDFLAGS
  9661. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  9662. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9663. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9664. # The linker can only warn and ignore the option if not recognized
  9665. # So say no if there are warnings
  9666. if test -s conftest.err; then
  9667. # Append any errors to the config.log.
  9668. cat conftest.err 1>&5
  9669. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9670. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9671. if diff conftest.exp conftest.er2 >/dev/null; then
  9672. lt_cv_prog_compiler_static_works=yes
  9673. fi
  9674. else
  9675. lt_cv_prog_compiler_static_works=yes
  9676. fi
  9677. fi
  9678. $RM -r conftest*
  9679. LDFLAGS=$save_LDFLAGS
  9680. fi
  9681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  9682. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  9683. if test yes = "$lt_cv_prog_compiler_static_works"; then
  9684. :
  9685. else
  9686. lt_prog_compiler_static=
  9687. fi
  9688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9689. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9690. if ${lt_cv_prog_compiler_c_o+:} false; then :
  9691. $as_echo_n "(cached) " >&6
  9692. else
  9693. lt_cv_prog_compiler_c_o=no
  9694. $RM -r conftest 2>/dev/null
  9695. mkdir conftest
  9696. cd conftest
  9697. mkdir out
  9698. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9699. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9700. # Insert the option either (1) after the last *FLAGS variable, or
  9701. # (2) before a word containing "conftest.", or (3) at the end.
  9702. # Note that $ac_compile itself does not contain backslashes and begins
  9703. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9704. lt_compile=`echo "$ac_compile" | $SED \
  9705. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9706. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9707. -e 's:$: $lt_compiler_flag:'`
  9708. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9709. (eval "$lt_compile" 2>out/conftest.err)
  9710. ac_status=$?
  9711. cat out/conftest.err >&5
  9712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9713. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9714. then
  9715. # The compiler can only warn and ignore the option if not recognized
  9716. # So say no if there are warnings
  9717. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9718. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9719. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9720. lt_cv_prog_compiler_c_o=yes
  9721. fi
  9722. fi
  9723. chmod u+w . 2>&5
  9724. $RM conftest*
  9725. # SGI C++ compiler will create directory out/ii_files/ for
  9726. # template instantiation
  9727. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9728. $RM out/* && rmdir out
  9729. cd ..
  9730. $RM -r conftest
  9731. $RM conftest*
  9732. fi
  9733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9734. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  9735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9736. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9737. if ${lt_cv_prog_compiler_c_o+:} false; then :
  9738. $as_echo_n "(cached) " >&6
  9739. else
  9740. lt_cv_prog_compiler_c_o=no
  9741. $RM -r conftest 2>/dev/null
  9742. mkdir conftest
  9743. cd conftest
  9744. mkdir out
  9745. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9746. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9747. # Insert the option either (1) after the last *FLAGS variable, or
  9748. # (2) before a word containing "conftest.", or (3) at the end.
  9749. # Note that $ac_compile itself does not contain backslashes and begins
  9750. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9751. lt_compile=`echo "$ac_compile" | $SED \
  9752. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9753. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9754. -e 's:$: $lt_compiler_flag:'`
  9755. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9756. (eval "$lt_compile" 2>out/conftest.err)
  9757. ac_status=$?
  9758. cat out/conftest.err >&5
  9759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9760. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9761. then
  9762. # The compiler can only warn and ignore the option if not recognized
  9763. # So say no if there are warnings
  9764. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9765. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9766. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9767. lt_cv_prog_compiler_c_o=yes
  9768. fi
  9769. fi
  9770. chmod u+w . 2>&5
  9771. $RM conftest*
  9772. # SGI C++ compiler will create directory out/ii_files/ for
  9773. # template instantiation
  9774. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9775. $RM out/* && rmdir out
  9776. cd ..
  9777. $RM -r conftest
  9778. $RM conftest*
  9779. fi
  9780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9781. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  9782. hard_links=nottested
  9783. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  9784. # do not overwrite the value of need_locks provided by the user
  9785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  9786. $as_echo_n "checking if we can lock with hard links... " >&6; }
  9787. hard_links=yes
  9788. $RM conftest*
  9789. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9790. touch conftest.a
  9791. ln conftest.a conftest.b 2>&5 || hard_links=no
  9792. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  9794. $as_echo "$hard_links" >&6; }
  9795. if test no = "$hard_links"; then
  9796. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  9797. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  9798. need_locks=warn
  9799. fi
  9800. else
  9801. need_locks=no
  9802. fi
  9803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9804. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  9805. runpath_var=
  9806. allow_undefined_flag=
  9807. always_export_symbols=no
  9808. archive_cmds=
  9809. archive_expsym_cmds=
  9810. compiler_needs_object=no
  9811. enable_shared_with_static_runtimes=no
  9812. export_dynamic_flag_spec=
  9813. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9814. hardcode_automatic=no
  9815. hardcode_direct=no
  9816. hardcode_direct_absolute=no
  9817. hardcode_libdir_flag_spec=
  9818. hardcode_libdir_separator=
  9819. hardcode_minus_L=no
  9820. hardcode_shlibpath_var=unsupported
  9821. inherit_rpath=no
  9822. link_all_deplibs=unknown
  9823. module_cmds=
  9824. module_expsym_cmds=
  9825. old_archive_from_new_cmds=
  9826. old_archive_from_expsyms_cmds=
  9827. thread_safe_flag_spec=
  9828. whole_archive_flag_spec=
  9829. # include_expsyms should be a list of space-separated symbols to be *always*
  9830. # included in the symbol list
  9831. include_expsyms=
  9832. # exclude_expsyms can be an extended regexp of symbols to exclude
  9833. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  9834. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  9835. # as well as any symbol that contains 'd'.
  9836. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  9837. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9838. # platforms (ab)use it in PIC code, but their linkers get confused if
  9839. # the symbol is explicitly referenced. Since portable code cannot
  9840. # rely on this symbol name, it's probably fine to never include it in
  9841. # preloaded symbol tables.
  9842. # Exclude shared library initialization/finalization symbols.
  9843. extract_expsyms_cmds=
  9844. case $host_os in
  9845. cygwin* | mingw* | pw32* | cegcc*)
  9846. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  9847. # When not using gcc, we currently assume that we are using
  9848. # Microsoft Visual C++.
  9849. if test yes != "$GCC"; then
  9850. with_gnu_ld=no
  9851. fi
  9852. ;;
  9853. interix*)
  9854. # we just hope/assume this is gcc and not c89 (= MSVC++)
  9855. with_gnu_ld=yes
  9856. ;;
  9857. openbsd* | bitrig*)
  9858. with_gnu_ld=no
  9859. ;;
  9860. esac
  9861. ld_shlibs=yes
  9862. # On some targets, GNU ld is compatible enough with the native linker
  9863. # that we're better off using the native interface for both.
  9864. lt_use_gnu_ld_interface=no
  9865. if test yes = "$with_gnu_ld"; then
  9866. case $host_os in
  9867. aix*)
  9868. # The AIX port of GNU ld has always aspired to compatibility
  9869. # with the native linker. However, as the warning in the GNU ld
  9870. # block says, versions before 2.19.5* couldn't really create working
  9871. # shared libraries, regardless of the interface used.
  9872. case `$LD -v 2>&1` in
  9873. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  9874. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  9875. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  9876. *)
  9877. lt_use_gnu_ld_interface=yes
  9878. ;;
  9879. esac
  9880. ;;
  9881. *)
  9882. lt_use_gnu_ld_interface=yes
  9883. ;;
  9884. esac
  9885. fi
  9886. if test yes = "$lt_use_gnu_ld_interface"; then
  9887. # If archive_cmds runs LD, not CC, wlarc should be empty
  9888. wlarc='$wl'
  9889. # Set some defaults for GNU ld with shared library support. These
  9890. # are reset later if shared libraries are not supported. Putting them
  9891. # here allows them to be overridden if necessary.
  9892. runpath_var=LD_RUN_PATH
  9893. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9894. export_dynamic_flag_spec='$wl--export-dynamic'
  9895. # ancient GNU ld didn't support --whole-archive et. al.
  9896. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  9897. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  9898. else
  9899. whole_archive_flag_spec=
  9900. fi
  9901. supports_anon_versioning=no
  9902. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  9903. *GNU\ gold*) supports_anon_versioning=yes ;;
  9904. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  9905. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9906. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9907. *\ 2.11.*) ;; # other 2.11 versions
  9908. *) supports_anon_versioning=yes ;;
  9909. esac
  9910. # See if GNU ld supports shared libraries.
  9911. case $host_os in
  9912. aix[3-9]*)
  9913. # On AIX/PPC, the GNU linker is very broken
  9914. if test ia64 != "$host_cpu"; then
  9915. ld_shlibs=no
  9916. cat <<_LT_EOF 1>&2
  9917. *** Warning: the GNU linker, at least up to release 2.19, is reported
  9918. *** to be unable to reliably create shared libraries on AIX.
  9919. *** Therefore, libtool is disabling shared libraries support. If you
  9920. *** really care for shared libraries, you may want to install binutils
  9921. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  9922. *** You will then need to restart the configuration process.
  9923. _LT_EOF
  9924. fi
  9925. ;;
  9926. amigaos*)
  9927. case $host_cpu in
  9928. powerpc)
  9929. # see comment about AmigaOS4 .so support
  9930. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9931. archive_expsym_cmds=''
  9932. ;;
  9933. m68k)
  9934. 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)'
  9935. hardcode_libdir_flag_spec='-L$libdir'
  9936. hardcode_minus_L=yes
  9937. ;;
  9938. esac
  9939. ;;
  9940. beos*)
  9941. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9942. allow_undefined_flag=unsupported
  9943. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9944. # support --undefined. This deserves some investigation. FIXME
  9945. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9946. else
  9947. ld_shlibs=no
  9948. fi
  9949. ;;
  9950. cygwin* | mingw* | pw32* | cegcc*)
  9951. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9952. # as there is no search path for DLLs.
  9953. hardcode_libdir_flag_spec='-L$libdir'
  9954. export_dynamic_flag_spec='$wl--export-all-symbols'
  9955. allow_undefined_flag=unsupported
  9956. always_export_symbols=no
  9957. enable_shared_with_static_runtimes=yes
  9958. 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'
  9959. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  9960. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9961. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9962. # If the export-symbols file already is a .def file, use it as
  9963. # is; otherwise, prepend EXPORTS...
  9964. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9965. cp $export_symbols $output_objdir/$soname.def;
  9966. else
  9967. echo EXPORTS > $output_objdir/$soname.def;
  9968. cat $export_symbols >> $output_objdir/$soname.def;
  9969. fi~
  9970. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9971. else
  9972. ld_shlibs=no
  9973. fi
  9974. ;;
  9975. haiku*)
  9976. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9977. link_all_deplibs=yes
  9978. ;;
  9979. os2*)
  9980. hardcode_libdir_flag_spec='-L$libdir'
  9981. hardcode_minus_L=yes
  9982. allow_undefined_flag=unsupported
  9983. shrext_cmds=.dll
  9984. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9985. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9986. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9987. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9988. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9989. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9990. emximp -o $lib $output_objdir/$libname.def'
  9991. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9992. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9993. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9994. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9995. prefix_cmds="$SED"~
  9996. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9997. prefix_cmds="$prefix_cmds -e 1d";
  9998. fi~
  9999. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  10000. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  10001. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10002. emximp -o $lib $output_objdir/$libname.def'
  10003. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  10004. enable_shared_with_static_runtimes=yes
  10005. ;;
  10006. interix[3-9]*)
  10007. hardcode_direct=no
  10008. hardcode_shlibpath_var=no
  10009. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10010. export_dynamic_flag_spec='$wl-E'
  10011. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10012. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10013. # default) and relocated if they conflict, which is a slow very memory
  10014. # consuming and fragmenting process. To avoid this, we pick a random,
  10015. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10016. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10017. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10018. 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'
  10019. ;;
  10020. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  10021. tmp_diet=no
  10022. if test linux-dietlibc = "$host_os"; then
  10023. case $cc_basename in
  10024. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  10025. esac
  10026. fi
  10027. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  10028. && test no = "$tmp_diet"
  10029. then
  10030. tmp_addflag=' $pic_flag'
  10031. tmp_sharedflag='-shared'
  10032. case $cc_basename,$host_cpu in
  10033. pgcc*) # Portland Group C compiler
  10034. 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'
  10035. tmp_addflag=' $pic_flag'
  10036. ;;
  10037. pgf77* | pgf90* | pgf95* | pgfortran*)
  10038. # Portland Group f77 and f90 compilers
  10039. 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'
  10040. tmp_addflag=' $pic_flag -Mnomain' ;;
  10041. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  10042. tmp_addflag=' -i_dynamic' ;;
  10043. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  10044. tmp_addflag=' -i_dynamic -nofor_main' ;;
  10045. ifc* | ifort*) # Intel Fortran compiler
  10046. tmp_addflag=' -nofor_main' ;;
  10047. lf95*) # Lahey Fortran 8.1
  10048. whole_archive_flag_spec=
  10049. tmp_sharedflag='--shared' ;;
  10050. nagfor*) # NAGFOR 5.3
  10051. tmp_sharedflag='-Wl,-shared' ;;
  10052. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  10053. tmp_sharedflag='-qmkshrobj'
  10054. tmp_addflag= ;;
  10055. nvcc*) # Cuda Compiler Driver 2.2
  10056. 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'
  10057. compiler_needs_object=yes
  10058. ;;
  10059. esac
  10060. case `$CC -V 2>&1 | sed 5q` in
  10061. *Sun\ C*) # Sun C 5.9
  10062. 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'
  10063. compiler_needs_object=yes
  10064. tmp_sharedflag='-G' ;;
  10065. *Sun\ F*) # Sun Fortran 8.3
  10066. tmp_sharedflag='-G' ;;
  10067. esac
  10068. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10069. if test yes = "$supports_anon_versioning"; then
  10070. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  10071. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10072. echo "local: *; };" >> $output_objdir/$libname.ver~
  10073. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  10074. fi
  10075. case $cc_basename in
  10076. tcc*)
  10077. export_dynamic_flag_spec='-rdynamic'
  10078. ;;
  10079. xlf* | bgf* | bgxlf* | mpixlf*)
  10080. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  10081. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  10082. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10083. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  10084. if test yes = "$supports_anon_versioning"; then
  10085. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  10086. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10087. echo "local: *; };" >> $output_objdir/$libname.ver~
  10088. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  10089. fi
  10090. ;;
  10091. esac
  10092. else
  10093. ld_shlibs=no
  10094. fi
  10095. ;;
  10096. netbsd*)
  10097. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10098. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  10099. wlarc=
  10100. else
  10101. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10102. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10103. fi
  10104. ;;
  10105. solaris*)
  10106. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  10107. ld_shlibs=no
  10108. cat <<_LT_EOF 1>&2
  10109. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  10110. *** create shared libraries on Solaris systems. Therefore, libtool
  10111. *** is disabling shared libraries support. We urge you to upgrade GNU
  10112. *** binutils to release 2.9.1 or newer. Another option is to modify
  10113. *** your PATH or compiler configuration so that the native linker is
  10114. *** used, and then restart.
  10115. _LT_EOF
  10116. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10117. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10118. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10119. else
  10120. ld_shlibs=no
  10121. fi
  10122. ;;
  10123. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  10124. case `$LD -v 2>&1` in
  10125. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  10126. ld_shlibs=no
  10127. cat <<_LT_EOF 1>&2
  10128. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  10129. *** reliably create shared libraries on SCO systems. Therefore, libtool
  10130. *** is disabling shared libraries support. We urge you to upgrade GNU
  10131. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  10132. *** your PATH or compiler configuration so that the native linker is
  10133. *** used, and then restart.
  10134. _LT_EOF
  10135. ;;
  10136. *)
  10137. # For security reasons, it is highly recommended that you always
  10138. # use absolute paths for naming shared libraries, and exclude the
  10139. # DT_RUNPATH tag from executables and libraries. But doing so
  10140. # requires that you compile everything twice, which is a pain.
  10141. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10142. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10143. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10144. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10145. else
  10146. ld_shlibs=no
  10147. fi
  10148. ;;
  10149. esac
  10150. ;;
  10151. sunos4*)
  10152. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10153. wlarc=
  10154. hardcode_direct=yes
  10155. hardcode_shlibpath_var=no
  10156. ;;
  10157. *)
  10158. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10159. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10160. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10161. else
  10162. ld_shlibs=no
  10163. fi
  10164. ;;
  10165. esac
  10166. if test no = "$ld_shlibs"; then
  10167. runpath_var=
  10168. hardcode_libdir_flag_spec=
  10169. export_dynamic_flag_spec=
  10170. whole_archive_flag_spec=
  10171. fi
  10172. else
  10173. # PORTME fill in a description of your system's linker (not GNU ld)
  10174. case $host_os in
  10175. aix3*)
  10176. allow_undefined_flag=unsupported
  10177. always_export_symbols=yes
  10178. 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'
  10179. # Note: this linker hardcodes the directories in LIBPATH if there
  10180. # are no directories specified by -L.
  10181. hardcode_minus_L=yes
  10182. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  10183. # Neither direct hardcoding nor static linking is supported with a
  10184. # broken collect2.
  10185. hardcode_direct=unsupported
  10186. fi
  10187. ;;
  10188. aix[4-9]*)
  10189. if test ia64 = "$host_cpu"; then
  10190. # On IA64, the linker does run time linking by default, so we don't
  10191. # have to do anything special.
  10192. aix_use_runtimelinking=no
  10193. exp_sym_flag='-Bexport'
  10194. no_entry_flag=
  10195. else
  10196. # If we're using GNU nm, then we don't want the "-C" option.
  10197. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  10198. # Without the "-l" option, or with the "-B" option, AIX nm treats
  10199. # weak defined symbols like other global defined symbols, whereas
  10200. # GNU nm marks them as "W".
  10201. # While the 'weak' keyword is ignored in the Export File, we need
  10202. # it in the Import File for the 'aix-soname' feature, so we have
  10203. # to replace the "-B" option with "-P" for AIX nm.
  10204. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  10205. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  10206. else
  10207. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  10208. fi
  10209. aix_use_runtimelinking=no
  10210. # Test if we are trying to use run time linking or normal
  10211. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10212. # have runtime linking enabled, and use it for executables.
  10213. # For shared libraries, we enable/disable runtime linking
  10214. # depending on the kind of the shared library created -
  10215. # when "with_aix_soname,aix_use_runtimelinking" is:
  10216. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  10217. # "aix,yes" lib.so shared, rtl:yes, for executables
  10218. # lib.a static archive
  10219. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  10220. # lib.a(lib.so.V) shared, rtl:no, for executables
  10221. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  10222. # lib.a(lib.so.V) shared, rtl:no
  10223. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  10224. # lib.a static archive
  10225. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10226. for ld_flag in $LDFLAGS; do
  10227. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  10228. aix_use_runtimelinking=yes
  10229. break
  10230. fi
  10231. done
  10232. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  10233. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  10234. # so we don't have lib.a shared libs to link our executables.
  10235. # We have to force runtime linking in this case.
  10236. aix_use_runtimelinking=yes
  10237. LDFLAGS="$LDFLAGS -Wl,-brtl"
  10238. fi
  10239. ;;
  10240. esac
  10241. exp_sym_flag='-bexport'
  10242. no_entry_flag='-bnoentry'
  10243. fi
  10244. # When large executables or shared objects are built, AIX ld can
  10245. # have problems creating the table of contents. If linking a library
  10246. # or program results in "error TOC overflow" add -mminimal-toc to
  10247. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10248. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10249. archive_cmds=''
  10250. hardcode_direct=yes
  10251. hardcode_direct_absolute=yes
  10252. hardcode_libdir_separator=':'
  10253. link_all_deplibs=yes
  10254. file_list_spec='$wl-f,'
  10255. case $with_aix_soname,$aix_use_runtimelinking in
  10256. aix,*) ;; # traditional, no import file
  10257. svr4,* | *,yes) # use import file
  10258. # The Import File defines what to hardcode.
  10259. hardcode_direct=no
  10260. hardcode_direct_absolute=no
  10261. ;;
  10262. esac
  10263. if test yes = "$GCC"; then
  10264. case $host_os in aix4.[012]|aix4.[012].*)
  10265. # We only want to do this on AIX 4.2 and lower, the check
  10266. # below for broken collect2 doesn't work under 4.3+
  10267. collect2name=`$CC -print-prog-name=collect2`
  10268. if test -f "$collect2name" &&
  10269. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10270. then
  10271. # We have reworked collect2
  10272. :
  10273. else
  10274. # We have old collect2
  10275. hardcode_direct=unsupported
  10276. # It fails to find uninstalled libraries when the uninstalled
  10277. # path is not listed in the libpath. Setting hardcode_minus_L
  10278. # to unsupported forces relinking
  10279. hardcode_minus_L=yes
  10280. hardcode_libdir_flag_spec='-L$libdir'
  10281. hardcode_libdir_separator=
  10282. fi
  10283. ;;
  10284. esac
  10285. shared_flag='-shared'
  10286. if test yes = "$aix_use_runtimelinking"; then
  10287. shared_flag="$shared_flag "'$wl-G'
  10288. fi
  10289. # Need to ensure runtime linking is disabled for the traditional
  10290. # shared library, or the linker may eventually find shared libraries
  10291. # /with/ Import File - we do not want to mix them.
  10292. shared_flag_aix='-shared'
  10293. shared_flag_svr4='-shared $wl-G'
  10294. else
  10295. # not using gcc
  10296. if test ia64 = "$host_cpu"; then
  10297. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10298. # chokes on -Wl,-G. The following line is correct:
  10299. shared_flag='-G'
  10300. else
  10301. if test yes = "$aix_use_runtimelinking"; then
  10302. shared_flag='$wl-G'
  10303. else
  10304. shared_flag='$wl-bM:SRE'
  10305. fi
  10306. shared_flag_aix='$wl-bM:SRE'
  10307. shared_flag_svr4='$wl-G'
  10308. fi
  10309. fi
  10310. export_dynamic_flag_spec='$wl-bexpall'
  10311. # It seems that -bexpall does not export symbols beginning with
  10312. # underscore (_), so it is better to generate a list of symbols to export.
  10313. always_export_symbols=yes
  10314. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  10315. # Warning - without using the other runtime loading flags (-brtl),
  10316. # -berok will link without error, but may produce a broken library.
  10317. allow_undefined_flag='-berok'
  10318. # Determine the default libpath from the value encoded in an
  10319. # empty executable.
  10320. if test set = "${lt_cv_aix_libpath+set}"; then
  10321. aix_libpath=$lt_cv_aix_libpath
  10322. else
  10323. if ${lt_cv_aix_libpath_+:} false; then :
  10324. $as_echo_n "(cached) " >&6
  10325. else
  10326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10327. /* end confdefs.h. */
  10328. int
  10329. main ()
  10330. {
  10331. ;
  10332. return 0;
  10333. }
  10334. _ACEOF
  10335. if ac_fn_c_try_link "$LINENO"; then :
  10336. lt_aix_libpath_sed='
  10337. /Import File Strings/,/^$/ {
  10338. /^0/ {
  10339. s/^0 *\([^ ]*\) *$/\1/
  10340. p
  10341. }
  10342. }'
  10343. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10344. # Check for a 64-bit object if we didn't find anything.
  10345. if test -z "$lt_cv_aix_libpath_"; then
  10346. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10347. fi
  10348. fi
  10349. rm -f core conftest.err conftest.$ac_objext \
  10350. conftest$ac_exeext conftest.$ac_ext
  10351. if test -z "$lt_cv_aix_libpath_"; then
  10352. lt_cv_aix_libpath_=/usr/lib:/lib
  10353. fi
  10354. fi
  10355. aix_libpath=$lt_cv_aix_libpath_
  10356. fi
  10357. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  10358. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  10359. else
  10360. if test ia64 = "$host_cpu"; then
  10361. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  10362. allow_undefined_flag="-z nodefs"
  10363. 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"
  10364. else
  10365. # Determine the default libpath from the value encoded in an
  10366. # empty executable.
  10367. if test set = "${lt_cv_aix_libpath+set}"; then
  10368. aix_libpath=$lt_cv_aix_libpath
  10369. else
  10370. if ${lt_cv_aix_libpath_+:} false; then :
  10371. $as_echo_n "(cached) " >&6
  10372. else
  10373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10374. /* end confdefs.h. */
  10375. int
  10376. main ()
  10377. {
  10378. ;
  10379. return 0;
  10380. }
  10381. _ACEOF
  10382. if ac_fn_c_try_link "$LINENO"; then :
  10383. lt_aix_libpath_sed='
  10384. /Import File Strings/,/^$/ {
  10385. /^0/ {
  10386. s/^0 *\([^ ]*\) *$/\1/
  10387. p
  10388. }
  10389. }'
  10390. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10391. # Check for a 64-bit object if we didn't find anything.
  10392. if test -z "$lt_cv_aix_libpath_"; then
  10393. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10394. fi
  10395. fi
  10396. rm -f core conftest.err conftest.$ac_objext \
  10397. conftest$ac_exeext conftest.$ac_ext
  10398. if test -z "$lt_cv_aix_libpath_"; then
  10399. lt_cv_aix_libpath_=/usr/lib:/lib
  10400. fi
  10401. fi
  10402. aix_libpath=$lt_cv_aix_libpath_
  10403. fi
  10404. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  10405. # Warning - without using the other run time loading flags,
  10406. # -berok will link without error, but may produce a broken library.
  10407. no_undefined_flag=' $wl-bernotok'
  10408. allow_undefined_flag=' $wl-berok'
  10409. if test yes = "$with_gnu_ld"; then
  10410. # We only use this code for GNU lds that support --whole-archive.
  10411. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  10412. else
  10413. # Exported symbols can be pulled into shared objects from archives
  10414. whole_archive_flag_spec='$convenience'
  10415. fi
  10416. archive_cmds_need_lc=yes
  10417. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  10418. # -brtl affects multiple linker settings, -berok does not and is overridden later
  10419. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  10420. if test svr4 != "$with_aix_soname"; then
  10421. # This is similar to how AIX traditionally builds its shared libraries.
  10422. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  10423. fi
  10424. if test aix != "$with_aix_soname"; then
  10425. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  10426. else
  10427. # used by -dlpreopen to get the symbols
  10428. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  10429. fi
  10430. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  10431. fi
  10432. fi
  10433. ;;
  10434. amigaos*)
  10435. case $host_cpu in
  10436. powerpc)
  10437. # see comment about AmigaOS4 .so support
  10438. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10439. archive_expsym_cmds=''
  10440. ;;
  10441. m68k)
  10442. 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)'
  10443. hardcode_libdir_flag_spec='-L$libdir'
  10444. hardcode_minus_L=yes
  10445. ;;
  10446. esac
  10447. ;;
  10448. bsdi[45]*)
  10449. export_dynamic_flag_spec=-rdynamic
  10450. ;;
  10451. cygwin* | mingw* | pw32* | cegcc*)
  10452. # When not using gcc, we currently assume that we are using
  10453. # Microsoft Visual C++.
  10454. # hardcode_libdir_flag_spec is actually meaningless, as there is
  10455. # no search path for DLLs.
  10456. case $cc_basename in
  10457. cl*)
  10458. # Native MSVC
  10459. hardcode_libdir_flag_spec=' '
  10460. allow_undefined_flag=unsupported
  10461. always_export_symbols=yes
  10462. file_list_spec='@'
  10463. # Tell ltmain to make .lib files, not .a files.
  10464. libext=lib
  10465. # Tell ltmain to make .dll files, not .so files.
  10466. shrext_cmds=.dll
  10467. # FIXME: Setting linknames here is a bad hack.
  10468. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  10469. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  10470. cp "$export_symbols" "$output_objdir/$soname.def";
  10471. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  10472. else
  10473. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  10474. fi~
  10475. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  10476. linknames='
  10477. # The linker will not automatically build a static lib if we build a DLL.
  10478. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  10479. enable_shared_with_static_runtimes=yes
  10480. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  10481. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  10482. # Don't use ranlib
  10483. old_postinstall_cmds='chmod 644 $oldlib'
  10484. postlink_cmds='lt_outputfile="@OUTPUT@"~
  10485. lt_tool_outputfile="@TOOL_OUTPUT@"~
  10486. case $lt_outputfile in
  10487. *.exe|*.EXE) ;;
  10488. *)
  10489. lt_outputfile=$lt_outputfile.exe
  10490. lt_tool_outputfile=$lt_tool_outputfile.exe
  10491. ;;
  10492. esac~
  10493. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  10494. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  10495. $RM "$lt_outputfile.manifest";
  10496. fi'
  10497. ;;
  10498. *)
  10499. # Assume MSVC wrapper
  10500. hardcode_libdir_flag_spec=' '
  10501. allow_undefined_flag=unsupported
  10502. # Tell ltmain to make .lib files, not .a files.
  10503. libext=lib
  10504. # Tell ltmain to make .dll files, not .so files.
  10505. shrext_cmds=.dll
  10506. # FIXME: Setting linknames here is a bad hack.
  10507. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  10508. # The linker will automatically build a .lib file if we build a DLL.
  10509. old_archive_from_new_cmds='true'
  10510. # FIXME: Should let the user specify the lib program.
  10511. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  10512. enable_shared_with_static_runtimes=yes
  10513. ;;
  10514. esac
  10515. ;;
  10516. darwin* | rhapsody*)
  10517. archive_cmds_need_lc=no
  10518. hardcode_direct=no
  10519. hardcode_automatic=yes
  10520. hardcode_shlibpath_var=unsupported
  10521. if test yes = "$lt_cv_ld_force_load"; then
  10522. 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\"`'
  10523. else
  10524. whole_archive_flag_spec=''
  10525. fi
  10526. link_all_deplibs=yes
  10527. allow_undefined_flag=$_lt_dar_allow_undefined
  10528. case $cc_basename in
  10529. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  10530. *) _lt_dar_can_shared=$GCC ;;
  10531. esac
  10532. if test yes = "$_lt_dar_can_shared"; then
  10533. output_verbose_link_cmd=func_echo_all
  10534. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  10535. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  10536. 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"
  10537. 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"
  10538. else
  10539. ld_shlibs=no
  10540. fi
  10541. ;;
  10542. dgux*)
  10543. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10544. hardcode_libdir_flag_spec='-L$libdir'
  10545. hardcode_shlibpath_var=no
  10546. ;;
  10547. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  10548. # support. Future versions do this automatically, but an explicit c++rt0.o
  10549. # does not break anything, and helps significantly (at the cost of a little
  10550. # extra space).
  10551. freebsd2.2*)
  10552. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  10553. hardcode_libdir_flag_spec='-R$libdir'
  10554. hardcode_direct=yes
  10555. hardcode_shlibpath_var=no
  10556. ;;
  10557. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  10558. freebsd2.*)
  10559. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10560. hardcode_direct=yes
  10561. hardcode_minus_L=yes
  10562. hardcode_shlibpath_var=no
  10563. ;;
  10564. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  10565. freebsd* | dragonfly*)
  10566. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10567. hardcode_libdir_flag_spec='-R$libdir'
  10568. hardcode_direct=yes
  10569. hardcode_shlibpath_var=no
  10570. ;;
  10571. hpux9*)
  10572. if test yes = "$GCC"; then
  10573. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  10574. else
  10575. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  10576. fi
  10577. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10578. hardcode_libdir_separator=:
  10579. hardcode_direct=yes
  10580. # hardcode_minus_L: Not really in the search PATH,
  10581. # but as the default location of the library.
  10582. hardcode_minus_L=yes
  10583. export_dynamic_flag_spec='$wl-E'
  10584. ;;
  10585. hpux10*)
  10586. if test yes,no = "$GCC,$with_gnu_ld"; then
  10587. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10588. else
  10589. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10590. fi
  10591. if test no = "$with_gnu_ld"; then
  10592. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10593. hardcode_libdir_separator=:
  10594. hardcode_direct=yes
  10595. hardcode_direct_absolute=yes
  10596. export_dynamic_flag_spec='$wl-E'
  10597. # hardcode_minus_L: Not really in the search PATH,
  10598. # but as the default location of the library.
  10599. hardcode_minus_L=yes
  10600. fi
  10601. ;;
  10602. hpux11*)
  10603. if test yes,no = "$GCC,$with_gnu_ld"; then
  10604. case $host_cpu in
  10605. hppa*64*)
  10606. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10607. ;;
  10608. ia64*)
  10609. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10610. ;;
  10611. *)
  10612. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10613. ;;
  10614. esac
  10615. else
  10616. case $host_cpu in
  10617. hppa*64*)
  10618. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10619. ;;
  10620. ia64*)
  10621. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10622. ;;
  10623. *)
  10624. # Older versions of the 11.00 compiler do not understand -b yet
  10625. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  10626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  10627. $as_echo_n "checking if $CC understands -b... " >&6; }
  10628. if ${lt_cv_prog_compiler__b+:} false; then :
  10629. $as_echo_n "(cached) " >&6
  10630. else
  10631. lt_cv_prog_compiler__b=no
  10632. save_LDFLAGS=$LDFLAGS
  10633. LDFLAGS="$LDFLAGS -b"
  10634. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10635. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10636. # The linker can only warn and ignore the option if not recognized
  10637. # So say no if there are warnings
  10638. if test -s conftest.err; then
  10639. # Append any errors to the config.log.
  10640. cat conftest.err 1>&5
  10641. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10642. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10643. if diff conftest.exp conftest.er2 >/dev/null; then
  10644. lt_cv_prog_compiler__b=yes
  10645. fi
  10646. else
  10647. lt_cv_prog_compiler__b=yes
  10648. fi
  10649. fi
  10650. $RM -r conftest*
  10651. LDFLAGS=$save_LDFLAGS
  10652. fi
  10653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  10654. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  10655. if test yes = "$lt_cv_prog_compiler__b"; then
  10656. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10657. else
  10658. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10659. fi
  10660. ;;
  10661. esac
  10662. fi
  10663. if test no = "$with_gnu_ld"; then
  10664. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10665. hardcode_libdir_separator=:
  10666. case $host_cpu in
  10667. hppa*64*|ia64*)
  10668. hardcode_direct=no
  10669. hardcode_shlibpath_var=no
  10670. ;;
  10671. *)
  10672. hardcode_direct=yes
  10673. hardcode_direct_absolute=yes
  10674. export_dynamic_flag_spec='$wl-E'
  10675. # hardcode_minus_L: Not really in the search PATH,
  10676. # but as the default location of the library.
  10677. hardcode_minus_L=yes
  10678. ;;
  10679. esac
  10680. fi
  10681. ;;
  10682. irix5* | irix6* | nonstopux*)
  10683. if test yes = "$GCC"; then
  10684. 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'
  10685. # Try to use the -exported_symbol ld option, if it does not
  10686. # work, assume that -exports_file does not work either and
  10687. # implicitly export all symbols.
  10688. # This should be the same for all languages, so no per-tag cache variable.
  10689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  10690. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  10691. if ${lt_cv_irix_exported_symbol+:} false; then :
  10692. $as_echo_n "(cached) " >&6
  10693. else
  10694. save_LDFLAGS=$LDFLAGS
  10695. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  10696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10697. /* end confdefs.h. */
  10698. int foo (void) { return 0; }
  10699. _ACEOF
  10700. if ac_fn_c_try_link "$LINENO"; then :
  10701. lt_cv_irix_exported_symbol=yes
  10702. else
  10703. lt_cv_irix_exported_symbol=no
  10704. fi
  10705. rm -f core conftest.err conftest.$ac_objext \
  10706. conftest$ac_exeext conftest.$ac_ext
  10707. LDFLAGS=$save_LDFLAGS
  10708. fi
  10709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  10710. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  10711. if test yes = "$lt_cv_irix_exported_symbol"; then
  10712. 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'
  10713. fi
  10714. else
  10715. 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'
  10716. 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'
  10717. fi
  10718. archive_cmds_need_lc='no'
  10719. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10720. hardcode_libdir_separator=:
  10721. inherit_rpath=yes
  10722. link_all_deplibs=yes
  10723. ;;
  10724. linux*)
  10725. case $cc_basename in
  10726. tcc*)
  10727. # Fabrice Bellard et al's Tiny C Compiler
  10728. ld_shlibs=yes
  10729. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10730. ;;
  10731. esac
  10732. ;;
  10733. netbsd*)
  10734. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10735. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  10736. else
  10737. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  10738. fi
  10739. hardcode_libdir_flag_spec='-R$libdir'
  10740. hardcode_direct=yes
  10741. hardcode_shlibpath_var=no
  10742. ;;
  10743. newsos6)
  10744. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10745. hardcode_direct=yes
  10746. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10747. hardcode_libdir_separator=:
  10748. hardcode_shlibpath_var=no
  10749. ;;
  10750. *nto* | *qnx*)
  10751. ;;
  10752. openbsd* | bitrig*)
  10753. if test -f /usr/libexec/ld.so; then
  10754. hardcode_direct=yes
  10755. hardcode_shlibpath_var=no
  10756. hardcode_direct_absolute=yes
  10757. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10758. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10759. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  10760. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10761. export_dynamic_flag_spec='$wl-E'
  10762. else
  10763. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10764. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10765. fi
  10766. else
  10767. ld_shlibs=no
  10768. fi
  10769. ;;
  10770. os2*)
  10771. hardcode_libdir_flag_spec='-L$libdir'
  10772. hardcode_minus_L=yes
  10773. allow_undefined_flag=unsupported
  10774. shrext_cmds=.dll
  10775. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10776. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10777. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10778. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10779. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  10780. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10781. emximp -o $lib $output_objdir/$libname.def'
  10782. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10783. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10784. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10785. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10786. prefix_cmds="$SED"~
  10787. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  10788. prefix_cmds="$prefix_cmds -e 1d";
  10789. fi~
  10790. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  10791. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  10792. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10793. emximp -o $lib $output_objdir/$libname.def'
  10794. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  10795. enable_shared_with_static_runtimes=yes
  10796. ;;
  10797. osf3*)
  10798. if test yes = "$GCC"; then
  10799. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10800. 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'
  10801. else
  10802. allow_undefined_flag=' -expect_unresolved \*'
  10803. 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'
  10804. fi
  10805. archive_cmds_need_lc='no'
  10806. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10807. hardcode_libdir_separator=:
  10808. ;;
  10809. osf4* | osf5*) # as osf3* with the addition of -msym flag
  10810. if test yes = "$GCC"; then
  10811. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10812. 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'
  10813. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10814. else
  10815. allow_undefined_flag=' -expect_unresolved \*'
  10816. 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'
  10817. 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~
  10818. $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'
  10819. # Both c and cxx compiler support -rpath directly
  10820. hardcode_libdir_flag_spec='-rpath $libdir'
  10821. fi
  10822. archive_cmds_need_lc='no'
  10823. hardcode_libdir_separator=:
  10824. ;;
  10825. solaris*)
  10826. no_undefined_flag=' -z defs'
  10827. if test yes = "$GCC"; then
  10828. wlarc='$wl'
  10829. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10830. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10831. $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'
  10832. else
  10833. case `$CC -V 2>&1` in
  10834. *"Compilers 5.0"*)
  10835. wlarc=''
  10836. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10837. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10838. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  10839. ;;
  10840. *)
  10841. wlarc='$wl'
  10842. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10843. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10844. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10845. ;;
  10846. esac
  10847. fi
  10848. hardcode_libdir_flag_spec='-R$libdir'
  10849. hardcode_shlibpath_var=no
  10850. case $host_os in
  10851. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10852. *)
  10853. # The compiler driver will combine and reorder linker options,
  10854. # but understands '-z linker_flag'. GCC discards it without '$wl',
  10855. # but is careful enough not to reorder.
  10856. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10857. if test yes = "$GCC"; then
  10858. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  10859. else
  10860. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  10861. fi
  10862. ;;
  10863. esac
  10864. link_all_deplibs=yes
  10865. ;;
  10866. sunos4*)
  10867. if test sequent = "$host_vendor"; then
  10868. # Use $CC to link under sequent, because it throws in some extra .o
  10869. # files that make .init and .fini sections work.
  10870. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10871. else
  10872. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10873. fi
  10874. hardcode_libdir_flag_spec='-L$libdir'
  10875. hardcode_direct=yes
  10876. hardcode_minus_L=yes
  10877. hardcode_shlibpath_var=no
  10878. ;;
  10879. sysv4)
  10880. case $host_vendor in
  10881. sni)
  10882. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10883. hardcode_direct=yes # is this really true???
  10884. ;;
  10885. siemens)
  10886. ## LD is ld it makes a PLAMLIB
  10887. ## CC just makes a GrossModule.
  10888. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10889. reload_cmds='$CC -r -o $output$reload_objs'
  10890. hardcode_direct=no
  10891. ;;
  10892. motorola)
  10893. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10894. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  10895. ;;
  10896. esac
  10897. runpath_var='LD_RUN_PATH'
  10898. hardcode_shlibpath_var=no
  10899. ;;
  10900. sysv4.3*)
  10901. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10902. hardcode_shlibpath_var=no
  10903. export_dynamic_flag_spec='-Bexport'
  10904. ;;
  10905. sysv4*MP*)
  10906. if test -d /usr/nec; then
  10907. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10908. hardcode_shlibpath_var=no
  10909. runpath_var=LD_RUN_PATH
  10910. hardcode_runpath_var=yes
  10911. ld_shlibs=yes
  10912. fi
  10913. ;;
  10914. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10915. no_undefined_flag='$wl-z,text'
  10916. archive_cmds_need_lc=no
  10917. hardcode_shlibpath_var=no
  10918. runpath_var='LD_RUN_PATH'
  10919. if test yes = "$GCC"; then
  10920. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10921. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10922. else
  10923. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10924. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10925. fi
  10926. ;;
  10927. sysv5* | sco3.2v5* | sco5v6*)
  10928. # Note: We CANNOT use -z defs as we might desire, because we do not
  10929. # link with -lc, and that would cause any symbols used from libc to
  10930. # always be unresolved, which means just about no library would
  10931. # ever link correctly. If we're not using GNU ld we use -z text
  10932. # though, which does catch some bad symbols but isn't as heavy-handed
  10933. # as -z defs.
  10934. no_undefined_flag='$wl-z,text'
  10935. allow_undefined_flag='$wl-z,nodefs'
  10936. archive_cmds_need_lc=no
  10937. hardcode_shlibpath_var=no
  10938. hardcode_libdir_flag_spec='$wl-R,$libdir'
  10939. hardcode_libdir_separator=':'
  10940. link_all_deplibs=yes
  10941. export_dynamic_flag_spec='$wl-Bexport'
  10942. runpath_var='LD_RUN_PATH'
  10943. if test yes = "$GCC"; then
  10944. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10945. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10946. else
  10947. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10948. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10949. fi
  10950. ;;
  10951. uts4*)
  10952. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10953. hardcode_libdir_flag_spec='-L$libdir'
  10954. hardcode_shlibpath_var=no
  10955. ;;
  10956. *)
  10957. ld_shlibs=no
  10958. ;;
  10959. esac
  10960. if test sni = "$host_vendor"; then
  10961. case $host in
  10962. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10963. export_dynamic_flag_spec='$wl-Blargedynsym'
  10964. ;;
  10965. esac
  10966. fi
  10967. fi
  10968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  10969. $as_echo "$ld_shlibs" >&6; }
  10970. test no = "$ld_shlibs" && can_build_shared=no
  10971. with_gnu_ld=$with_gnu_ld
  10972. #
  10973. # Do we need to explicitly link libc?
  10974. #
  10975. case "x$archive_cmds_need_lc" in
  10976. x|xyes)
  10977. # Assume -lc should be added
  10978. archive_cmds_need_lc=yes
  10979. if test yes,yes = "$GCC,$enable_shared"; then
  10980. case $archive_cmds in
  10981. *'~'*)
  10982. # FIXME: we may have to deal with multi-command sequences.
  10983. ;;
  10984. '$CC '*)
  10985. # Test whether the compiler implicitly links with -lc since on some
  10986. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10987. # to ld, don't add -lc before -lgcc.
  10988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  10989. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  10990. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  10991. $as_echo_n "(cached) " >&6
  10992. else
  10993. $RM conftest*
  10994. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10995. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10996. (eval $ac_compile) 2>&5
  10997. ac_status=$?
  10998. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10999. test $ac_status = 0; } 2>conftest.err; then
  11000. soname=conftest
  11001. lib=conftest
  11002. libobjs=conftest.$ac_objext
  11003. deplibs=
  11004. wl=$lt_prog_compiler_wl
  11005. pic_flag=$lt_prog_compiler_pic
  11006. compiler_flags=-v
  11007. linker_flags=-v
  11008. verstring=
  11009. output_objdir=.
  11010. libname=conftest
  11011. lt_save_allow_undefined_flag=$allow_undefined_flag
  11012. allow_undefined_flag=
  11013. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11014. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11015. ac_status=$?
  11016. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11017. test $ac_status = 0; }
  11018. then
  11019. lt_cv_archive_cmds_need_lc=no
  11020. else
  11021. lt_cv_archive_cmds_need_lc=yes
  11022. fi
  11023. allow_undefined_flag=$lt_save_allow_undefined_flag
  11024. else
  11025. cat conftest.err 1>&5
  11026. fi
  11027. $RM conftest*
  11028. fi
  11029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  11030. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  11031. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  11032. ;;
  11033. esac
  11034. fi
  11035. ;;
  11036. esac
  11037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11038. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11039. if test yes = "$GCC"; then
  11040. case $host_os in
  11041. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  11042. *) lt_awk_arg='/^libraries:/' ;;
  11043. esac
  11044. case $host_os in
  11045. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  11046. *) lt_sed_strip_eq='s|=/|/|g' ;;
  11047. esac
  11048. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  11049. case $lt_search_path_spec in
  11050. *\;*)
  11051. # if the path contains ";" then we assume it to be the separator
  11052. # otherwise default to the standard path separator (i.e. ":") - it is
  11053. # assumed that no part of a normal pathname contains ";" but that should
  11054. # okay in the real world where ";" in dirpaths is itself problematic.
  11055. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  11056. ;;
  11057. *)
  11058. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  11059. ;;
  11060. esac
  11061. # Ok, now we have the path, separated by spaces, we can step through it
  11062. # and add multilib dir if necessary...
  11063. lt_tmp_lt_search_path_spec=
  11064. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  11065. # ...but if some path component already ends with the multilib dir we assume
  11066. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  11067. case "$lt_multi_os_dir; $lt_search_path_spec " in
  11068. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  11069. lt_multi_os_dir=
  11070. ;;
  11071. esac
  11072. for lt_sys_path in $lt_search_path_spec; do
  11073. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  11074. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  11075. elif test -n "$lt_multi_os_dir"; then
  11076. test -d "$lt_sys_path" && \
  11077. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  11078. fi
  11079. done
  11080. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  11081. BEGIN {RS = " "; FS = "/|\n";} {
  11082. lt_foo = "";
  11083. lt_count = 0;
  11084. for (lt_i = NF; lt_i > 0; lt_i--) {
  11085. if ($lt_i != "" && $lt_i != ".") {
  11086. if ($lt_i == "..") {
  11087. lt_count++;
  11088. } else {
  11089. if (lt_count == 0) {
  11090. lt_foo = "/" $lt_i lt_foo;
  11091. } else {
  11092. lt_count--;
  11093. }
  11094. }
  11095. }
  11096. }
  11097. if (lt_foo != "") { lt_freq[lt_foo]++; }
  11098. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  11099. }'`
  11100. # AWK program above erroneously prepends '/' to C:/dos/paths
  11101. # for these hosts.
  11102. case $host_os in
  11103. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  11104. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  11105. esac
  11106. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  11107. else
  11108. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11109. fi
  11110. library_names_spec=
  11111. libname_spec='lib$name'
  11112. soname_spec=
  11113. shrext_cmds=.so
  11114. postinstall_cmds=
  11115. postuninstall_cmds=
  11116. finish_cmds=
  11117. finish_eval=
  11118. shlibpath_var=
  11119. shlibpath_overrides_runpath=unknown
  11120. version_type=none
  11121. dynamic_linker="$host_os ld.so"
  11122. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11123. need_lib_prefix=unknown
  11124. hardcode_into_libs=no
  11125. # when you set need_version to no, make sure it does not cause -set_version
  11126. # flags to be left without arguments
  11127. need_version=unknown
  11128. case $host_os in
  11129. aix3*)
  11130. version_type=linux # correct to gnu/linux during the next big refactor
  11131. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  11132. shlibpath_var=LIBPATH
  11133. # AIX 3 has no versioning support, so we append a major version to the name.
  11134. soname_spec='$libname$release$shared_ext$major'
  11135. ;;
  11136. aix[4-9]*)
  11137. version_type=linux # correct to gnu/linux during the next big refactor
  11138. need_lib_prefix=no
  11139. need_version=no
  11140. hardcode_into_libs=yes
  11141. if test ia64 = "$host_cpu"; then
  11142. # AIX 5 supports IA64
  11143. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  11144. shlibpath_var=LD_LIBRARY_PATH
  11145. else
  11146. # With GCC up to 2.95.x, collect2 would create an import file
  11147. # for dependence libraries. The import file would start with
  11148. # the line '#! .'. This would cause the generated library to
  11149. # depend on '.', always an invalid library. This was fixed in
  11150. # development snapshots of GCC prior to 3.0.
  11151. case $host_os in
  11152. aix4 | aix4.[01] | aix4.[01].*)
  11153. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11154. echo ' yes '
  11155. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  11156. :
  11157. else
  11158. can_build_shared=no
  11159. fi
  11160. ;;
  11161. esac
  11162. # Using Import Files as archive members, it is possible to support
  11163. # filename-based versioning of shared library archives on AIX. While
  11164. # this would work for both with and without runtime linking, it will
  11165. # prevent static linking of such archives. So we do filename-based
  11166. # shared library versioning with .so extension only, which is used
  11167. # when both runtime linking and shared linking is enabled.
  11168. # Unfortunately, runtime linking may impact performance, so we do
  11169. # not want this to be the default eventually. Also, we use the
  11170. # versioned .so libs for executables only if there is the -brtl
  11171. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  11172. # To allow for filename-based versioning support, we need to create
  11173. # libNAME.so.V as an archive file, containing:
  11174. # *) an Import File, referring to the versioned filename of the
  11175. # archive as well as the shared archive member, telling the
  11176. # bitwidth (32 or 64) of that shared object, and providing the
  11177. # list of exported symbols of that shared object, eventually
  11178. # decorated with the 'weak' keyword
  11179. # *) the shared object with the F_LOADONLY flag set, to really avoid
  11180. # it being seen by the linker.
  11181. # At run time we better use the real file rather than another symlink,
  11182. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  11183. case $with_aix_soname,$aix_use_runtimelinking in
  11184. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  11185. # soname into executable. Probably we can add versioning support to
  11186. # collect2, so additional links can be useful in future.
  11187. aix,yes) # traditional libtool
  11188. dynamic_linker='AIX unversionable lib.so'
  11189. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11190. # instead of lib<name>.a to let people know that these are not
  11191. # typical AIX shared libraries.
  11192. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11193. ;;
  11194. aix,no) # traditional AIX only
  11195. dynamic_linker='AIX lib.a(lib.so.V)'
  11196. # We preserve .a as extension for shared libraries through AIX4.2
  11197. # and later when we are not doing run time linking.
  11198. library_names_spec='$libname$release.a $libname.a'
  11199. soname_spec='$libname$release$shared_ext$major'
  11200. ;;
  11201. svr4,*) # full svr4 only
  11202. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  11203. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  11204. # We do not specify a path in Import Files, so LIBPATH fires.
  11205. shlibpath_overrides_runpath=yes
  11206. ;;
  11207. *,yes) # both, prefer svr4
  11208. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  11209. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  11210. # unpreferred sharedlib libNAME.a needs extra handling
  11211. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  11212. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  11213. # We do not specify a path in Import Files, so LIBPATH fires.
  11214. shlibpath_overrides_runpath=yes
  11215. ;;
  11216. *,no) # both, prefer aix
  11217. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  11218. library_names_spec='$libname$release.a $libname.a'
  11219. soname_spec='$libname$release$shared_ext$major'
  11220. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  11221. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  11222. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  11223. ;;
  11224. esac
  11225. shlibpath_var=LIBPATH
  11226. fi
  11227. ;;
  11228. amigaos*)
  11229. case $host_cpu in
  11230. powerpc)
  11231. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11232. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11233. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11234. ;;
  11235. m68k)
  11236. library_names_spec='$libname.ixlibrary $libname.a'
  11237. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11238. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  11239. ;;
  11240. esac
  11241. ;;
  11242. beos*)
  11243. library_names_spec='$libname$shared_ext'
  11244. dynamic_linker="$host_os ld.so"
  11245. shlibpath_var=LIBRARY_PATH
  11246. ;;
  11247. bsdi[45]*)
  11248. version_type=linux # correct to gnu/linux during the next big refactor
  11249. need_version=no
  11250. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11251. soname_spec='$libname$release$shared_ext$major'
  11252. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11253. shlibpath_var=LD_LIBRARY_PATH
  11254. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11255. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11256. # the default ld.so.conf also contains /usr/contrib/lib and
  11257. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11258. # libtool to hard-code these into programs
  11259. ;;
  11260. cygwin* | mingw* | pw32* | cegcc*)
  11261. version_type=windows
  11262. shrext_cmds=.dll
  11263. need_version=no
  11264. need_lib_prefix=no
  11265. case $GCC,$cc_basename in
  11266. yes,*)
  11267. # gcc
  11268. library_names_spec='$libname.dll.a'
  11269. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11270. postinstall_cmds='base_file=`basename \$file`~
  11271. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  11272. dldir=$destdir/`dirname \$dlpath`~
  11273. test -d \$dldir || mkdir -p \$dldir~
  11274. $install_prog $dir/$dlname \$dldir/$dlname~
  11275. chmod a+x \$dldir/$dlname~
  11276. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11277. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11278. fi'
  11279. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11280. dlpath=$dir/\$dldll~
  11281. $RM \$dlpath'
  11282. shlibpath_overrides_runpath=yes
  11283. case $host_os in
  11284. cygwin*)
  11285. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11286. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  11287. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  11288. ;;
  11289. mingw* | cegcc*)
  11290. # MinGW DLLs use traditional 'lib' prefix
  11291. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  11292. ;;
  11293. pw32*)
  11294. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11295. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  11296. ;;
  11297. esac
  11298. dynamic_linker='Win32 ld.exe'
  11299. ;;
  11300. *,cl*)
  11301. # Native MSVC
  11302. libname_spec='$name'
  11303. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  11304. library_names_spec='$libname.dll.lib'
  11305. case $build_os in
  11306. mingw*)
  11307. sys_lib_search_path_spec=
  11308. lt_save_ifs=$IFS
  11309. IFS=';'
  11310. for lt_path in $LIB
  11311. do
  11312. IFS=$lt_save_ifs
  11313. # Let DOS variable expansion print the short 8.3 style file name.
  11314. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  11315. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  11316. done
  11317. IFS=$lt_save_ifs
  11318. # Convert to MSYS style.
  11319. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  11320. ;;
  11321. cygwin*)
  11322. # Convert to unix form, then to dos form, then back to unix form
  11323. # but this time dos style (no spaces!) so that the unix form looks
  11324. # like /cygdrive/c/PROGRA~1:/cygdr...
  11325. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  11326. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  11327. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11328. ;;
  11329. *)
  11330. sys_lib_search_path_spec=$LIB
  11331. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  11332. # It is most probably a Windows format PATH.
  11333. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11334. else
  11335. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11336. fi
  11337. # FIXME: find the short name or the path components, as spaces are
  11338. # common. (e.g. "Program Files" -> "PROGRA~1")
  11339. ;;
  11340. esac
  11341. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11342. postinstall_cmds='base_file=`basename \$file`~
  11343. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  11344. dldir=$destdir/`dirname \$dlpath`~
  11345. test -d \$dldir || mkdir -p \$dldir~
  11346. $install_prog $dir/$dlname \$dldir/$dlname'
  11347. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11348. dlpath=$dir/\$dldll~
  11349. $RM \$dlpath'
  11350. shlibpath_overrides_runpath=yes
  11351. dynamic_linker='Win32 link.exe'
  11352. ;;
  11353. *)
  11354. # Assume MSVC wrapper
  11355. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  11356. dynamic_linker='Win32 ld.exe'
  11357. ;;
  11358. esac
  11359. # FIXME: first we should search . and the directory the executable is in
  11360. shlibpath_var=PATH
  11361. ;;
  11362. darwin* | rhapsody*)
  11363. dynamic_linker="$host_os dyld"
  11364. version_type=darwin
  11365. need_lib_prefix=no
  11366. need_version=no
  11367. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  11368. soname_spec='$libname$release$major$shared_ext'
  11369. shlibpath_overrides_runpath=yes
  11370. shlibpath_var=DYLD_LIBRARY_PATH
  11371. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11372. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  11373. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11374. ;;
  11375. dgux*)
  11376. version_type=linux # correct to gnu/linux during the next big refactor
  11377. need_lib_prefix=no
  11378. need_version=no
  11379. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11380. soname_spec='$libname$release$shared_ext$major'
  11381. shlibpath_var=LD_LIBRARY_PATH
  11382. ;;
  11383. freebsd* | dragonfly*)
  11384. # DragonFly does not have aout. When/if they implement a new
  11385. # versioning mechanism, adjust this.
  11386. if test -x /usr/bin/objformat; then
  11387. objformat=`/usr/bin/objformat`
  11388. else
  11389. case $host_os in
  11390. freebsd[23].*) objformat=aout ;;
  11391. *) objformat=elf ;;
  11392. esac
  11393. fi
  11394. version_type=freebsd-$objformat
  11395. case $version_type in
  11396. freebsd-elf*)
  11397. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11398. soname_spec='$libname$release$shared_ext$major'
  11399. need_version=no
  11400. need_lib_prefix=no
  11401. ;;
  11402. freebsd-*)
  11403. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11404. need_version=yes
  11405. ;;
  11406. esac
  11407. shlibpath_var=LD_LIBRARY_PATH
  11408. case $host_os in
  11409. freebsd2.*)
  11410. shlibpath_overrides_runpath=yes
  11411. ;;
  11412. freebsd3.[01]* | freebsdelf3.[01]*)
  11413. shlibpath_overrides_runpath=yes
  11414. hardcode_into_libs=yes
  11415. ;;
  11416. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11417. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11418. shlibpath_overrides_runpath=no
  11419. hardcode_into_libs=yes
  11420. ;;
  11421. *) # from 4.6 on, and DragonFly
  11422. shlibpath_overrides_runpath=yes
  11423. hardcode_into_libs=yes
  11424. ;;
  11425. esac
  11426. ;;
  11427. haiku*)
  11428. version_type=linux # correct to gnu/linux during the next big refactor
  11429. need_lib_prefix=no
  11430. need_version=no
  11431. dynamic_linker="$host_os runtime_loader"
  11432. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11433. soname_spec='$libname$release$shared_ext$major'
  11434. shlibpath_var=LIBRARY_PATH
  11435. shlibpath_overrides_runpath=no
  11436. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  11437. hardcode_into_libs=yes
  11438. ;;
  11439. hpux9* | hpux10* | hpux11*)
  11440. # Give a soname corresponding to the major version so that dld.sl refuses to
  11441. # link against other versions.
  11442. version_type=sunos
  11443. need_lib_prefix=no
  11444. need_version=no
  11445. case $host_cpu in
  11446. ia64*)
  11447. shrext_cmds='.so'
  11448. hardcode_into_libs=yes
  11449. dynamic_linker="$host_os dld.so"
  11450. shlibpath_var=LD_LIBRARY_PATH
  11451. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11452. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11453. soname_spec='$libname$release$shared_ext$major'
  11454. if test 32 = "$HPUX_IA64_MODE"; then
  11455. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11456. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  11457. else
  11458. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11459. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  11460. fi
  11461. ;;
  11462. hppa*64*)
  11463. shrext_cmds='.sl'
  11464. hardcode_into_libs=yes
  11465. dynamic_linker="$host_os dld.sl"
  11466. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11467. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11468. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11469. soname_spec='$libname$release$shared_ext$major'
  11470. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11471. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11472. ;;
  11473. *)
  11474. shrext_cmds='.sl'
  11475. dynamic_linker="$host_os dld.sl"
  11476. shlibpath_var=SHLIB_PATH
  11477. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11478. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11479. soname_spec='$libname$release$shared_ext$major'
  11480. ;;
  11481. esac
  11482. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  11483. postinstall_cmds='chmod 555 $lib'
  11484. # or fails outright, so override atomically:
  11485. install_override_mode=555
  11486. ;;
  11487. interix[3-9]*)
  11488. version_type=linux # correct to gnu/linux during the next big refactor
  11489. need_lib_prefix=no
  11490. need_version=no
  11491. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11492. soname_spec='$libname$release$shared_ext$major'
  11493. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11494. shlibpath_var=LD_LIBRARY_PATH
  11495. shlibpath_overrides_runpath=no
  11496. hardcode_into_libs=yes
  11497. ;;
  11498. irix5* | irix6* | nonstopux*)
  11499. case $host_os in
  11500. nonstopux*) version_type=nonstopux ;;
  11501. *)
  11502. if test yes = "$lt_cv_prog_gnu_ld"; then
  11503. version_type=linux # correct to gnu/linux during the next big refactor
  11504. else
  11505. version_type=irix
  11506. fi ;;
  11507. esac
  11508. need_lib_prefix=no
  11509. need_version=no
  11510. soname_spec='$libname$release$shared_ext$major'
  11511. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  11512. case $host_os in
  11513. irix5* | nonstopux*)
  11514. libsuff= shlibsuff=
  11515. ;;
  11516. *)
  11517. case $LD in # libtool.m4 will add one of these switches to LD
  11518. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11519. libsuff= shlibsuff= libmagic=32-bit;;
  11520. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11521. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11522. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11523. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11524. *) libsuff= shlibsuff= libmagic=never-match;;
  11525. esac
  11526. ;;
  11527. esac
  11528. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11529. shlibpath_overrides_runpath=no
  11530. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  11531. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  11532. hardcode_into_libs=yes
  11533. ;;
  11534. # No shared lib support for Linux oldld, aout, or coff.
  11535. linux*oldld* | linux*aout* | linux*coff*)
  11536. dynamic_linker=no
  11537. ;;
  11538. linux*android*)
  11539. version_type=none # Android doesn't support versioned libraries.
  11540. need_lib_prefix=no
  11541. need_version=no
  11542. library_names_spec='$libname$release$shared_ext'
  11543. soname_spec='$libname$release$shared_ext'
  11544. finish_cmds=
  11545. shlibpath_var=LD_LIBRARY_PATH
  11546. shlibpath_overrides_runpath=yes
  11547. # This implies no fast_install, which is unacceptable.
  11548. # Some rework will be needed to allow for fast_install
  11549. # before this can be enabled.
  11550. hardcode_into_libs=yes
  11551. dynamic_linker='Android linker'
  11552. # Don't embed -rpath directories since the linker doesn't support them.
  11553. hardcode_libdir_flag_spec='-L$libdir'
  11554. ;;
  11555. # This must be glibc/ELF.
  11556. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  11557. version_type=linux # correct to gnu/linux during the next big refactor
  11558. need_lib_prefix=no
  11559. need_version=no
  11560. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11561. soname_spec='$libname$release$shared_ext$major'
  11562. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11563. shlibpath_var=LD_LIBRARY_PATH
  11564. shlibpath_overrides_runpath=no
  11565. # Some binutils ld are patched to set DT_RUNPATH
  11566. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  11567. $as_echo_n "(cached) " >&6
  11568. else
  11569. lt_cv_shlibpath_overrides_runpath=no
  11570. save_LDFLAGS=$LDFLAGS
  11571. save_libdir=$libdir
  11572. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  11573. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  11574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11575. /* end confdefs.h. */
  11576. int
  11577. main ()
  11578. {
  11579. ;
  11580. return 0;
  11581. }
  11582. _ACEOF
  11583. if ac_fn_c_try_link "$LINENO"; then :
  11584. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  11585. lt_cv_shlibpath_overrides_runpath=yes
  11586. fi
  11587. fi
  11588. rm -f core conftest.err conftest.$ac_objext \
  11589. conftest$ac_exeext conftest.$ac_ext
  11590. LDFLAGS=$save_LDFLAGS
  11591. libdir=$save_libdir
  11592. fi
  11593. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  11594. # This implies no fast_install, which is unacceptable.
  11595. # Some rework will be needed to allow for fast_install
  11596. # before this can be enabled.
  11597. hardcode_into_libs=yes
  11598. # Add ABI-specific directories to the system library path.
  11599. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  11600. # Ideally, we could use ldconfig to report *all* directores which are
  11601. # searched for libraries, however this is still not possible. Aside from not
  11602. # being certain /sbin/ldconfig is available, command
  11603. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  11604. # even though it is searched at run-time. Try to do the best guess by
  11605. # appending ld.so.conf contents (and includes) to the search path.
  11606. if test -f /etc/ld.so.conf; then
  11607. 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' ' '`
  11608. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  11609. fi
  11610. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11611. # powerpc, because MkLinux only supported shared libraries with the
  11612. # GNU dynamic linker. Since this was broken with cross compilers,
  11613. # most powerpc-linux boxes support dynamic linking these days and
  11614. # people can always --disable-shared, the test was removed, and we
  11615. # assume the GNU/Linux dynamic linker is in use.
  11616. dynamic_linker='GNU/Linux ld.so'
  11617. ;;
  11618. netbsd*)
  11619. version_type=sunos
  11620. need_lib_prefix=no
  11621. need_version=no
  11622. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11623. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11624. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11625. dynamic_linker='NetBSD (a.out) ld.so'
  11626. else
  11627. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11628. soname_spec='$libname$release$shared_ext$major'
  11629. dynamic_linker='NetBSD ld.elf_so'
  11630. fi
  11631. shlibpath_var=LD_LIBRARY_PATH
  11632. shlibpath_overrides_runpath=yes
  11633. hardcode_into_libs=yes
  11634. ;;
  11635. newsos6)
  11636. version_type=linux # correct to gnu/linux during the next big refactor
  11637. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11638. shlibpath_var=LD_LIBRARY_PATH
  11639. shlibpath_overrides_runpath=yes
  11640. ;;
  11641. *nto* | *qnx*)
  11642. version_type=qnx
  11643. need_lib_prefix=no
  11644. need_version=no
  11645. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11646. soname_spec='$libname$release$shared_ext$major'
  11647. shlibpath_var=LD_LIBRARY_PATH
  11648. shlibpath_overrides_runpath=no
  11649. hardcode_into_libs=yes
  11650. dynamic_linker='ldqnx.so'
  11651. ;;
  11652. openbsd* | bitrig*)
  11653. version_type=sunos
  11654. sys_lib_dlsearch_path_spec=/usr/lib
  11655. need_lib_prefix=no
  11656. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  11657. need_version=no
  11658. else
  11659. need_version=yes
  11660. fi
  11661. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11662. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11663. shlibpath_var=LD_LIBRARY_PATH
  11664. shlibpath_overrides_runpath=yes
  11665. ;;
  11666. os2*)
  11667. libname_spec='$name'
  11668. version_type=windows
  11669. shrext_cmds=.dll
  11670. need_version=no
  11671. need_lib_prefix=no
  11672. # OS/2 can only load a DLL with a base name of 8 characters or less.
  11673. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  11674. v=$($ECHO $release$versuffix | tr -d .-);
  11675. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  11676. $ECHO $n$v`$shared_ext'
  11677. library_names_spec='${libname}_dll.$libext'
  11678. dynamic_linker='OS/2 ld.exe'
  11679. shlibpath_var=BEGINLIBPATH
  11680. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11681. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11682. postinstall_cmds='base_file=`basename \$file`~
  11683. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  11684. dldir=$destdir/`dirname \$dlpath`~
  11685. test -d \$dldir || mkdir -p \$dldir~
  11686. $install_prog $dir/$dlname \$dldir/$dlname~
  11687. chmod a+x \$dldir/$dlname~
  11688. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11689. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11690. fi'
  11691. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  11692. dlpath=$dir/\$dldll~
  11693. $RM \$dlpath'
  11694. ;;
  11695. osf3* | osf4* | osf5*)
  11696. version_type=osf
  11697. need_lib_prefix=no
  11698. need_version=no
  11699. soname_spec='$libname$release$shared_ext$major'
  11700. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11701. shlibpath_var=LD_LIBRARY_PATH
  11702. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11703. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11704. ;;
  11705. rdos*)
  11706. dynamic_linker=no
  11707. ;;
  11708. solaris*)
  11709. version_type=linux # correct to gnu/linux during the next big refactor
  11710. need_lib_prefix=no
  11711. need_version=no
  11712. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11713. soname_spec='$libname$release$shared_ext$major'
  11714. shlibpath_var=LD_LIBRARY_PATH
  11715. shlibpath_overrides_runpath=yes
  11716. hardcode_into_libs=yes
  11717. # ldd complains unless libraries are executable
  11718. postinstall_cmds='chmod +x $lib'
  11719. ;;
  11720. sunos4*)
  11721. version_type=sunos
  11722. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11723. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11724. shlibpath_var=LD_LIBRARY_PATH
  11725. shlibpath_overrides_runpath=yes
  11726. if test yes = "$with_gnu_ld"; then
  11727. need_lib_prefix=no
  11728. fi
  11729. need_version=yes
  11730. ;;
  11731. sysv4 | sysv4.3*)
  11732. version_type=linux # correct to gnu/linux during the next big refactor
  11733. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11734. soname_spec='$libname$release$shared_ext$major'
  11735. shlibpath_var=LD_LIBRARY_PATH
  11736. case $host_vendor in
  11737. sni)
  11738. shlibpath_overrides_runpath=no
  11739. need_lib_prefix=no
  11740. runpath_var=LD_RUN_PATH
  11741. ;;
  11742. siemens)
  11743. need_lib_prefix=no
  11744. ;;
  11745. motorola)
  11746. need_lib_prefix=no
  11747. need_version=no
  11748. shlibpath_overrides_runpath=no
  11749. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11750. ;;
  11751. esac
  11752. ;;
  11753. sysv4*MP*)
  11754. if test -d /usr/nec; then
  11755. version_type=linux # correct to gnu/linux during the next big refactor
  11756. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  11757. soname_spec='$libname$shared_ext.$major'
  11758. shlibpath_var=LD_LIBRARY_PATH
  11759. fi
  11760. ;;
  11761. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11762. version_type=sco
  11763. need_lib_prefix=no
  11764. need_version=no
  11765. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  11766. soname_spec='$libname$release$shared_ext$major'
  11767. shlibpath_var=LD_LIBRARY_PATH
  11768. shlibpath_overrides_runpath=yes
  11769. hardcode_into_libs=yes
  11770. if test yes = "$with_gnu_ld"; then
  11771. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11772. else
  11773. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11774. case $host_os in
  11775. sco3.2v5*)
  11776. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11777. ;;
  11778. esac
  11779. fi
  11780. sys_lib_dlsearch_path_spec='/usr/lib'
  11781. ;;
  11782. tpf*)
  11783. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  11784. version_type=linux # correct to gnu/linux during the next big refactor
  11785. need_lib_prefix=no
  11786. need_version=no
  11787. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11788. shlibpath_var=LD_LIBRARY_PATH
  11789. shlibpath_overrides_runpath=no
  11790. hardcode_into_libs=yes
  11791. ;;
  11792. uts4*)
  11793. version_type=linux # correct to gnu/linux during the next big refactor
  11794. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11795. soname_spec='$libname$release$shared_ext$major'
  11796. shlibpath_var=LD_LIBRARY_PATH
  11797. ;;
  11798. *)
  11799. dynamic_linker=no
  11800. ;;
  11801. esac
  11802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  11803. $as_echo "$dynamic_linker" >&6; }
  11804. test no = "$dynamic_linker" && can_build_shared=no
  11805. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11806. if test yes = "$GCC"; then
  11807. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11808. fi
  11809. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  11810. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  11811. fi
  11812. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  11813. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  11814. fi
  11815. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  11816. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  11817. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  11818. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  11819. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  11820. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  11821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11822. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  11823. hardcode_action=
  11824. if test -n "$hardcode_libdir_flag_spec" ||
  11825. test -n "$runpath_var" ||
  11826. test yes = "$hardcode_automatic"; then
  11827. # We can hardcode non-existent directories.
  11828. if test no != "$hardcode_direct" &&
  11829. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11830. # have to relink, otherwise we might link with an installed library
  11831. # when we should be linking with a yet-to-be-installed one
  11832. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  11833. test no != "$hardcode_minus_L"; then
  11834. # Linking always hardcodes the temporary library directory.
  11835. hardcode_action=relink
  11836. else
  11837. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11838. hardcode_action=immediate
  11839. fi
  11840. else
  11841. # We cannot hardcode anything, or else we can only hardcode existing
  11842. # directories.
  11843. hardcode_action=unsupported
  11844. fi
  11845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  11846. $as_echo "$hardcode_action" >&6; }
  11847. if test relink = "$hardcode_action" ||
  11848. test yes = "$inherit_rpath"; then
  11849. # Fast installation is not supported
  11850. enable_fast_install=no
  11851. elif test yes = "$shlibpath_overrides_runpath" ||
  11852. test no = "$enable_shared"; then
  11853. # Fast installation is not necessary
  11854. enable_fast_install=needless
  11855. fi
  11856. if test yes != "$enable_dlopen"; then
  11857. enable_dlopen=unknown
  11858. enable_dlopen_self=unknown
  11859. enable_dlopen_self_static=unknown
  11860. else
  11861. lt_cv_dlopen=no
  11862. lt_cv_dlopen_libs=
  11863. case $host_os in
  11864. beos*)
  11865. lt_cv_dlopen=load_add_on
  11866. lt_cv_dlopen_libs=
  11867. lt_cv_dlopen_self=yes
  11868. ;;
  11869. mingw* | pw32* | cegcc*)
  11870. lt_cv_dlopen=LoadLibrary
  11871. lt_cv_dlopen_libs=
  11872. ;;
  11873. cygwin*)
  11874. lt_cv_dlopen=dlopen
  11875. lt_cv_dlopen_libs=
  11876. ;;
  11877. darwin*)
  11878. # if libdl is installed we need to link against it
  11879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11880. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11881. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11882. $as_echo_n "(cached) " >&6
  11883. else
  11884. ac_check_lib_save_LIBS=$LIBS
  11885. LIBS="-ldl $LIBS"
  11886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11887. /* end confdefs.h. */
  11888. /* Override any GCC internal prototype to avoid an error.
  11889. Use char because int might match the return type of a GCC
  11890. builtin and then its argument prototype would still apply. */
  11891. #ifdef __cplusplus
  11892. extern "C"
  11893. #endif
  11894. char dlopen ();
  11895. int
  11896. main ()
  11897. {
  11898. return dlopen ();
  11899. ;
  11900. return 0;
  11901. }
  11902. _ACEOF
  11903. if ac_fn_c_try_link "$LINENO"; then :
  11904. ac_cv_lib_dl_dlopen=yes
  11905. else
  11906. ac_cv_lib_dl_dlopen=no
  11907. fi
  11908. rm -f core conftest.err conftest.$ac_objext \
  11909. conftest$ac_exeext conftest.$ac_ext
  11910. LIBS=$ac_check_lib_save_LIBS
  11911. fi
  11912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11913. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11914. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11915. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11916. else
  11917. lt_cv_dlopen=dyld
  11918. lt_cv_dlopen_libs=
  11919. lt_cv_dlopen_self=yes
  11920. fi
  11921. ;;
  11922. tpf*)
  11923. # Don't try to run any link tests for TPF. We know it's impossible
  11924. # because TPF is a cross-compiler, and we know how we open DSOs.
  11925. lt_cv_dlopen=dlopen
  11926. lt_cv_dlopen_libs=
  11927. lt_cv_dlopen_self=no
  11928. ;;
  11929. *)
  11930. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  11931. if test "x$ac_cv_func_shl_load" = xyes; then :
  11932. lt_cv_dlopen=shl_load
  11933. else
  11934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  11935. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  11936. if ${ac_cv_lib_dld_shl_load+:} false; then :
  11937. $as_echo_n "(cached) " >&6
  11938. else
  11939. ac_check_lib_save_LIBS=$LIBS
  11940. LIBS="-ldld $LIBS"
  11941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11942. /* end confdefs.h. */
  11943. /* Override any GCC internal prototype to avoid an error.
  11944. Use char because int might match the return type of a GCC
  11945. builtin and then its argument prototype would still apply. */
  11946. #ifdef __cplusplus
  11947. extern "C"
  11948. #endif
  11949. char shl_load ();
  11950. int
  11951. main ()
  11952. {
  11953. return shl_load ();
  11954. ;
  11955. return 0;
  11956. }
  11957. _ACEOF
  11958. if ac_fn_c_try_link "$LINENO"; then :
  11959. ac_cv_lib_dld_shl_load=yes
  11960. else
  11961. ac_cv_lib_dld_shl_load=no
  11962. fi
  11963. rm -f core conftest.err conftest.$ac_objext \
  11964. conftest$ac_exeext conftest.$ac_ext
  11965. LIBS=$ac_check_lib_save_LIBS
  11966. fi
  11967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  11968. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  11969. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  11970. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  11971. else
  11972. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  11973. if test "x$ac_cv_func_dlopen" = xyes; then :
  11974. lt_cv_dlopen=dlopen
  11975. else
  11976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11977. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11978. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11979. $as_echo_n "(cached) " >&6
  11980. else
  11981. ac_check_lib_save_LIBS=$LIBS
  11982. LIBS="-ldl $LIBS"
  11983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11984. /* end confdefs.h. */
  11985. /* Override any GCC internal prototype to avoid an error.
  11986. Use char because int might match the return type of a GCC
  11987. builtin and then its argument prototype would still apply. */
  11988. #ifdef __cplusplus
  11989. extern "C"
  11990. #endif
  11991. char dlopen ();
  11992. int
  11993. main ()
  11994. {
  11995. return dlopen ();
  11996. ;
  11997. return 0;
  11998. }
  11999. _ACEOF
  12000. if ac_fn_c_try_link "$LINENO"; then :
  12001. ac_cv_lib_dl_dlopen=yes
  12002. else
  12003. ac_cv_lib_dl_dlopen=no
  12004. fi
  12005. rm -f core conftest.err conftest.$ac_objext \
  12006. conftest$ac_exeext conftest.$ac_ext
  12007. LIBS=$ac_check_lib_save_LIBS
  12008. fi
  12009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  12010. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  12011. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  12012. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  12013. else
  12014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  12015. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  12016. if ${ac_cv_lib_svld_dlopen+:} false; then :
  12017. $as_echo_n "(cached) " >&6
  12018. else
  12019. ac_check_lib_save_LIBS=$LIBS
  12020. LIBS="-lsvld $LIBS"
  12021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12022. /* end confdefs.h. */
  12023. /* Override any GCC internal prototype to avoid an error.
  12024. Use char because int might match the return type of a GCC
  12025. builtin and then its argument prototype would still apply. */
  12026. #ifdef __cplusplus
  12027. extern "C"
  12028. #endif
  12029. char dlopen ();
  12030. int
  12031. main ()
  12032. {
  12033. return dlopen ();
  12034. ;
  12035. return 0;
  12036. }
  12037. _ACEOF
  12038. if ac_fn_c_try_link "$LINENO"; then :
  12039. ac_cv_lib_svld_dlopen=yes
  12040. else
  12041. ac_cv_lib_svld_dlopen=no
  12042. fi
  12043. rm -f core conftest.err conftest.$ac_objext \
  12044. conftest$ac_exeext conftest.$ac_ext
  12045. LIBS=$ac_check_lib_save_LIBS
  12046. fi
  12047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  12048. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  12049. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  12050. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  12051. else
  12052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  12053. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  12054. if ${ac_cv_lib_dld_dld_link+:} false; then :
  12055. $as_echo_n "(cached) " >&6
  12056. else
  12057. ac_check_lib_save_LIBS=$LIBS
  12058. LIBS="-ldld $LIBS"
  12059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12060. /* end confdefs.h. */
  12061. /* Override any GCC internal prototype to avoid an error.
  12062. Use char because int might match the return type of a GCC
  12063. builtin and then its argument prototype would still apply. */
  12064. #ifdef __cplusplus
  12065. extern "C"
  12066. #endif
  12067. char dld_link ();
  12068. int
  12069. main ()
  12070. {
  12071. return dld_link ();
  12072. ;
  12073. return 0;
  12074. }
  12075. _ACEOF
  12076. if ac_fn_c_try_link "$LINENO"; then :
  12077. ac_cv_lib_dld_dld_link=yes
  12078. else
  12079. ac_cv_lib_dld_dld_link=no
  12080. fi
  12081. rm -f core conftest.err conftest.$ac_objext \
  12082. conftest$ac_exeext conftest.$ac_ext
  12083. LIBS=$ac_check_lib_save_LIBS
  12084. fi
  12085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  12086. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  12087. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  12088. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  12089. fi
  12090. fi
  12091. fi
  12092. fi
  12093. fi
  12094. fi
  12095. ;;
  12096. esac
  12097. if test no = "$lt_cv_dlopen"; then
  12098. enable_dlopen=no
  12099. else
  12100. enable_dlopen=yes
  12101. fi
  12102. case $lt_cv_dlopen in
  12103. dlopen)
  12104. save_CPPFLAGS=$CPPFLAGS
  12105. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  12106. save_LDFLAGS=$LDFLAGS
  12107. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  12108. save_LIBS=$LIBS
  12109. LIBS="$lt_cv_dlopen_libs $LIBS"
  12110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  12111. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  12112. if ${lt_cv_dlopen_self+:} false; then :
  12113. $as_echo_n "(cached) " >&6
  12114. else
  12115. if test yes = "$cross_compiling"; then :
  12116. lt_cv_dlopen_self=cross
  12117. else
  12118. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12119. lt_status=$lt_dlunknown
  12120. cat > conftest.$ac_ext <<_LT_EOF
  12121. #line $LINENO "configure"
  12122. #include "confdefs.h"
  12123. #if HAVE_DLFCN_H
  12124. #include <dlfcn.h>
  12125. #endif
  12126. #include <stdio.h>
  12127. #ifdef RTLD_GLOBAL
  12128. # define LT_DLGLOBAL RTLD_GLOBAL
  12129. #else
  12130. # ifdef DL_GLOBAL
  12131. # define LT_DLGLOBAL DL_GLOBAL
  12132. # else
  12133. # define LT_DLGLOBAL 0
  12134. # endif
  12135. #endif
  12136. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12137. find out it does not work in some platform. */
  12138. #ifndef LT_DLLAZY_OR_NOW
  12139. # ifdef RTLD_LAZY
  12140. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12141. # else
  12142. # ifdef DL_LAZY
  12143. # define LT_DLLAZY_OR_NOW DL_LAZY
  12144. # else
  12145. # ifdef RTLD_NOW
  12146. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12147. # else
  12148. # ifdef DL_NOW
  12149. # define LT_DLLAZY_OR_NOW DL_NOW
  12150. # else
  12151. # define LT_DLLAZY_OR_NOW 0
  12152. # endif
  12153. # endif
  12154. # endif
  12155. # endif
  12156. #endif
  12157. /* When -fvisibility=hidden is used, assume the code has been annotated
  12158. correspondingly for the symbols needed. */
  12159. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  12160. int fnord () __attribute__((visibility("default")));
  12161. #endif
  12162. int fnord () { return 42; }
  12163. int main ()
  12164. {
  12165. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12166. int status = $lt_dlunknown;
  12167. if (self)
  12168. {
  12169. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12170. else
  12171. {
  12172. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12173. else puts (dlerror ());
  12174. }
  12175. /* dlclose (self); */
  12176. }
  12177. else
  12178. puts (dlerror ());
  12179. return status;
  12180. }
  12181. _LT_EOF
  12182. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12183. (eval $ac_link) 2>&5
  12184. ac_status=$?
  12185. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12186. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  12187. (./conftest; exit; ) >&5 2>/dev/null
  12188. lt_status=$?
  12189. case x$lt_status in
  12190. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  12191. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  12192. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  12193. esac
  12194. else :
  12195. # compilation failed
  12196. lt_cv_dlopen_self=no
  12197. fi
  12198. fi
  12199. rm -fr conftest*
  12200. fi
  12201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  12202. $as_echo "$lt_cv_dlopen_self" >&6; }
  12203. if test yes = "$lt_cv_dlopen_self"; then
  12204. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  12205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  12206. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  12207. if ${lt_cv_dlopen_self_static+:} false; then :
  12208. $as_echo_n "(cached) " >&6
  12209. else
  12210. if test yes = "$cross_compiling"; then :
  12211. lt_cv_dlopen_self_static=cross
  12212. else
  12213. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12214. lt_status=$lt_dlunknown
  12215. cat > conftest.$ac_ext <<_LT_EOF
  12216. #line $LINENO "configure"
  12217. #include "confdefs.h"
  12218. #if HAVE_DLFCN_H
  12219. #include <dlfcn.h>
  12220. #endif
  12221. #include <stdio.h>
  12222. #ifdef RTLD_GLOBAL
  12223. # define LT_DLGLOBAL RTLD_GLOBAL
  12224. #else
  12225. # ifdef DL_GLOBAL
  12226. # define LT_DLGLOBAL DL_GLOBAL
  12227. # else
  12228. # define LT_DLGLOBAL 0
  12229. # endif
  12230. #endif
  12231. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12232. find out it does not work in some platform. */
  12233. #ifndef LT_DLLAZY_OR_NOW
  12234. # ifdef RTLD_LAZY
  12235. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12236. # else
  12237. # ifdef DL_LAZY
  12238. # define LT_DLLAZY_OR_NOW DL_LAZY
  12239. # else
  12240. # ifdef RTLD_NOW
  12241. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12242. # else
  12243. # ifdef DL_NOW
  12244. # define LT_DLLAZY_OR_NOW DL_NOW
  12245. # else
  12246. # define LT_DLLAZY_OR_NOW 0
  12247. # endif
  12248. # endif
  12249. # endif
  12250. # endif
  12251. #endif
  12252. /* When -fvisibility=hidden is used, assume the code has been annotated
  12253. correspondingly for the symbols needed. */
  12254. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  12255. int fnord () __attribute__((visibility("default")));
  12256. #endif
  12257. int fnord () { return 42; }
  12258. int main ()
  12259. {
  12260. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12261. int status = $lt_dlunknown;
  12262. if (self)
  12263. {
  12264. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12265. else
  12266. {
  12267. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12268. else puts (dlerror ());
  12269. }
  12270. /* dlclose (self); */
  12271. }
  12272. else
  12273. puts (dlerror ());
  12274. return status;
  12275. }
  12276. _LT_EOF
  12277. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12278. (eval $ac_link) 2>&5
  12279. ac_status=$?
  12280. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12281. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  12282. (./conftest; exit; ) >&5 2>/dev/null
  12283. lt_status=$?
  12284. case x$lt_status in
  12285. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  12286. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  12287. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  12288. esac
  12289. else :
  12290. # compilation failed
  12291. lt_cv_dlopen_self_static=no
  12292. fi
  12293. fi
  12294. rm -fr conftest*
  12295. fi
  12296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  12297. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  12298. fi
  12299. CPPFLAGS=$save_CPPFLAGS
  12300. LDFLAGS=$save_LDFLAGS
  12301. LIBS=$save_LIBS
  12302. ;;
  12303. esac
  12304. case $lt_cv_dlopen_self in
  12305. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  12306. *) enable_dlopen_self=unknown ;;
  12307. esac
  12308. case $lt_cv_dlopen_self_static in
  12309. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  12310. *) enable_dlopen_self_static=unknown ;;
  12311. esac
  12312. fi
  12313. striplib=
  12314. old_striplib=
  12315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  12316. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  12317. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  12318. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  12319. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  12320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12321. $as_echo "yes" >&6; }
  12322. else
  12323. # FIXME - insert some real tests, host_os isn't really good enough
  12324. case $host_os in
  12325. darwin*)
  12326. if test -n "$STRIP"; then
  12327. striplib="$STRIP -x"
  12328. old_striplib="$STRIP -S"
  12329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12330. $as_echo "yes" >&6; }
  12331. else
  12332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12333. $as_echo "no" >&6; }
  12334. fi
  12335. ;;
  12336. *)
  12337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12338. $as_echo "no" >&6; }
  12339. ;;
  12340. esac
  12341. fi
  12342. # Report what library types will actually be built
  12343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  12344. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  12345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  12346. $as_echo "$can_build_shared" >&6; }
  12347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  12348. $as_echo_n "checking whether to build shared libraries... " >&6; }
  12349. test no = "$can_build_shared" && enable_shared=no
  12350. # On AIX, shared libraries and static libraries use the same namespace, and
  12351. # are all built from PIC.
  12352. case $host_os in
  12353. aix3*)
  12354. test yes = "$enable_shared" && enable_static=no
  12355. if test -n "$RANLIB"; then
  12356. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12357. postinstall_cmds='$RANLIB $lib'
  12358. fi
  12359. ;;
  12360. aix[4-9]*)
  12361. if test ia64 != "$host_cpu"; then
  12362. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  12363. yes,aix,yes) ;; # shared object as lib.so file only
  12364. yes,svr4,*) ;; # shared object as lib.so archive member only
  12365. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  12366. esac
  12367. fi
  12368. ;;
  12369. esac
  12370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  12371. $as_echo "$enable_shared" >&6; }
  12372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  12373. $as_echo_n "checking whether to build static libraries... " >&6; }
  12374. # Make sure either enable_shared or enable_static is yes.
  12375. test yes = "$enable_shared" || enable_static=yes
  12376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  12377. $as_echo "$enable_static" >&6; }
  12378. fi
  12379. ac_ext=c
  12380. ac_cpp='$CPP $CPPFLAGS'
  12381. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12382. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12383. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12384. CC=$lt_save_CC
  12385. ac_config_commands="$ac_config_commands libtool"
  12386. # Only expand once:
  12387. CPPFLAGS="${CPPFLAGS} -D_REENTRANT"
  12388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  12389. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  12390. if ${ac_cv_header_sys_wait_h+:} false; then :
  12391. $as_echo_n "(cached) " >&6
  12392. else
  12393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12394. /* end confdefs.h. */
  12395. #include <sys/types.h>
  12396. #include <sys/wait.h>
  12397. #ifndef WEXITSTATUS
  12398. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  12399. #endif
  12400. #ifndef WIFEXITED
  12401. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  12402. #endif
  12403. int
  12404. main ()
  12405. {
  12406. int s;
  12407. wait (&s);
  12408. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  12409. ;
  12410. return 0;
  12411. }
  12412. _ACEOF
  12413. if ac_fn_c_try_compile "$LINENO"; then :
  12414. ac_cv_header_sys_wait_h=yes
  12415. else
  12416. ac_cv_header_sys_wait_h=no
  12417. fi
  12418. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12419. fi
  12420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  12421. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  12422. if test $ac_cv_header_sys_wait_h = yes; then
  12423. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  12424. fi
  12425. for ac_header in \
  12426. getopt.h \
  12427. inttypes.h \
  12428. poll.h \
  12429. pwd.h \
  12430. stdlib.h \
  12431. stdint.h \
  12432. strings.h \
  12433. sys/inotify.h \
  12434. sys/loadavg.h \
  12435. sys/poll.h \
  12436. sys/prctl.h \
  12437. sys/procctl.h \
  12438. sys/sendfile.h \
  12439. sys/time.h \
  12440. sys/uio.h \
  12441. sys/un.h \
  12442. syslog.h \
  12443. uuid/uuid.h \
  12444. do :
  12445. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12446. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12447. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  12448. cat >>confdefs.h <<_ACEOF
  12449. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12450. _ACEOF
  12451. fi
  12452. done
  12453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  12454. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  12455. if ${ac_cv_c_const+:} false; then :
  12456. $as_echo_n "(cached) " >&6
  12457. else
  12458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12459. /* end confdefs.h. */
  12460. int
  12461. main ()
  12462. {
  12463. #ifndef __cplusplus
  12464. /* Ultrix mips cc rejects this sort of thing. */
  12465. typedef int charset[2];
  12466. const charset cs = { 0, 0 };
  12467. /* SunOS 4.1.1 cc rejects this. */
  12468. char const *const *pcpcc;
  12469. char **ppc;
  12470. /* NEC SVR4.0.2 mips cc rejects this. */
  12471. struct point {int x, y;};
  12472. static struct point const zero = {0,0};
  12473. /* AIX XL C 1.02.0.0 rejects this.
  12474. It does not let you subtract one const X* pointer from another in
  12475. an arm of an if-expression whose if-part is not a constant
  12476. expression */
  12477. const char *g = "string";
  12478. pcpcc = &g + (g ? g-g : 0);
  12479. /* HPUX 7.0 cc rejects these. */
  12480. ++pcpcc;
  12481. ppc = (char**) pcpcc;
  12482. pcpcc = (char const *const *) ppc;
  12483. { /* SCO 3.2v4 cc rejects this sort of thing. */
  12484. char tx;
  12485. char *t = &tx;
  12486. char const *s = 0 ? (char *) 0 : (char const *) 0;
  12487. *t++ = 0;
  12488. if (s) return 0;
  12489. }
  12490. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  12491. int x[] = {25, 17};
  12492. const int *foo = &x[0];
  12493. ++foo;
  12494. }
  12495. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  12496. typedef const int *iptr;
  12497. iptr p = 0;
  12498. ++p;
  12499. }
  12500. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  12501. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  12502. struct s { int j; const int *ap[3]; } bx;
  12503. struct s *b = &bx; b->j = 5;
  12504. }
  12505. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  12506. const int foo = 10;
  12507. if (!foo) return 0;
  12508. }
  12509. return !cs[0] && !zero.x;
  12510. #endif
  12511. ;
  12512. return 0;
  12513. }
  12514. _ACEOF
  12515. if ac_fn_c_try_compile "$LINENO"; then :
  12516. ac_cv_c_const=yes
  12517. else
  12518. ac_cv_c_const=no
  12519. fi
  12520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12521. fi
  12522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  12523. $as_echo "$ac_cv_c_const" >&6; }
  12524. if test $ac_cv_c_const = no; then
  12525. $as_echo "#define const /**/" >>confdefs.h
  12526. fi
  12527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  12528. $as_echo_n "checking for inline... " >&6; }
  12529. if ${ac_cv_c_inline+:} false; then :
  12530. $as_echo_n "(cached) " >&6
  12531. else
  12532. ac_cv_c_inline=no
  12533. for ac_kw in inline __inline__ __inline; do
  12534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12535. /* end confdefs.h. */
  12536. #ifndef __cplusplus
  12537. typedef int foo_t;
  12538. static $ac_kw foo_t static_foo () {return 0; }
  12539. $ac_kw foo_t foo () {return 0; }
  12540. #endif
  12541. _ACEOF
  12542. if ac_fn_c_try_compile "$LINENO"; then :
  12543. ac_cv_c_inline=$ac_kw
  12544. fi
  12545. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12546. test "$ac_cv_c_inline" != no && break
  12547. done
  12548. fi
  12549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  12550. $as_echo "$ac_cv_c_inline" >&6; }
  12551. case $ac_cv_c_inline in
  12552. inline | yes) ;;
  12553. *)
  12554. case $ac_cv_c_inline in
  12555. no) ac_val=;;
  12556. *) ac_val=$ac_cv_c_inline;;
  12557. esac
  12558. cat >>confdefs.h <<_ACEOF
  12559. #ifndef __cplusplus
  12560. #define inline $ac_val
  12561. #endif
  12562. _ACEOF
  12563. ;;
  12564. esac
  12565. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  12566. if test "x$ac_cv_type_off_t" = xyes; then :
  12567. else
  12568. cat >>confdefs.h <<_ACEOF
  12569. #define off_t long int
  12570. _ACEOF
  12571. fi
  12572. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  12573. if test "x$ac_cv_type_pid_t" = xyes; then :
  12574. else
  12575. cat >>confdefs.h <<_ACEOF
  12576. #define pid_t int
  12577. _ACEOF
  12578. fi
  12579. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  12580. if test "x$ac_cv_type_size_t" = xyes; then :
  12581. else
  12582. cat >>confdefs.h <<_ACEOF
  12583. #define size_t unsigned int
  12584. _ACEOF
  12585. fi
  12586. ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
  12587. "
  12588. if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
  12589. $as_echo "#define HAVE_STRUCT_TM_GMTOFF 1" >>confdefs.h
  12590. fi
  12591. ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
  12592. #include <sys/types.h>
  12593. #include <sys/socket.h>
  12594. "
  12595. if test "x$ac_cv_type_socklen_t" = xyes; then :
  12596. cat >>confdefs.h <<_ACEOF
  12597. #define HAVE_SOCKLEN_T 1
  12598. _ACEOF
  12599. fi
  12600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
  12601. $as_echo_n "checking for library containing socket... " >&6; }
  12602. if ${ac_cv_search_socket+:} false; then :
  12603. $as_echo_n "(cached) " >&6
  12604. else
  12605. ac_func_search_save_LIBS=$LIBS
  12606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12607. /* end confdefs.h. */
  12608. /* Override any GCC internal prototype to avoid an error.
  12609. Use char because int might match the return type of a GCC
  12610. builtin and then its argument prototype would still apply. */
  12611. #ifdef __cplusplus
  12612. extern "C"
  12613. #endif
  12614. char socket ();
  12615. int
  12616. main ()
  12617. {
  12618. return socket ();
  12619. ;
  12620. return 0;
  12621. }
  12622. _ACEOF
  12623. for ac_lib in '' socket network; do
  12624. if test -z "$ac_lib"; then
  12625. ac_res="none required"
  12626. else
  12627. ac_res=-l$ac_lib
  12628. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12629. fi
  12630. if ac_fn_c_try_link "$LINENO"; then :
  12631. ac_cv_search_socket=$ac_res
  12632. fi
  12633. rm -f core conftest.err conftest.$ac_objext \
  12634. conftest$ac_exeext
  12635. if ${ac_cv_search_socket+:} false; then :
  12636. break
  12637. fi
  12638. done
  12639. if ${ac_cv_search_socket+:} false; then :
  12640. else
  12641. ac_cv_search_socket=no
  12642. fi
  12643. rm conftest.$ac_ext
  12644. LIBS=$ac_func_search_save_LIBS
  12645. fi
  12646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
  12647. $as_echo "$ac_cv_search_socket" >&6; }
  12648. ac_res=$ac_cv_search_socket
  12649. if test "$ac_res" != no; then :
  12650. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12651. fi
  12652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
  12653. $as_echo_n "checking for library containing gethostbyname... " >&6; }
  12654. if ${ac_cv_search_gethostbyname+:} false; then :
  12655. $as_echo_n "(cached) " >&6
  12656. else
  12657. ac_func_search_save_LIBS=$LIBS
  12658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12659. /* end confdefs.h. */
  12660. /* Override any GCC internal prototype to avoid an error.
  12661. Use char because int might match the return type of a GCC
  12662. builtin and then its argument prototype would still apply. */
  12663. #ifdef __cplusplus
  12664. extern "C"
  12665. #endif
  12666. char gethostbyname ();
  12667. int
  12668. main ()
  12669. {
  12670. return gethostbyname ();
  12671. ;
  12672. return 0;
  12673. }
  12674. _ACEOF
  12675. for ac_lib in '' nsl socket network; do
  12676. if test -z "$ac_lib"; then
  12677. ac_res="none required"
  12678. else
  12679. ac_res=-l$ac_lib
  12680. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12681. fi
  12682. if ac_fn_c_try_link "$LINENO"; then :
  12683. ac_cv_search_gethostbyname=$ac_res
  12684. fi
  12685. rm -f core conftest.err conftest.$ac_objext \
  12686. conftest$ac_exeext
  12687. if ${ac_cv_search_gethostbyname+:} false; then :
  12688. break
  12689. fi
  12690. done
  12691. if ${ac_cv_search_gethostbyname+:} false; then :
  12692. else
  12693. ac_cv_search_gethostbyname=no
  12694. fi
  12695. rm conftest.$ac_ext
  12696. LIBS=$ac_func_search_save_LIBS
  12697. fi
  12698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
  12699. $as_echo "$ac_cv_search_gethostbyname" >&6; }
  12700. ac_res=$ac_cv_search_gethostbyname
  12701. if test "$ac_res" != no; then :
  12702. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12703. fi
  12704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
  12705. $as_echo_n "checking for library containing clock_gettime... " >&6; }
  12706. if ${ac_cv_search_clock_gettime+:} false; then :
  12707. $as_echo_n "(cached) " >&6
  12708. else
  12709. ac_func_search_save_LIBS=$LIBS
  12710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12711. /* end confdefs.h. */
  12712. /* Override any GCC internal prototype to avoid an error.
  12713. Use char because int might match the return type of a GCC
  12714. builtin and then its argument prototype would still apply. */
  12715. #ifdef __cplusplus
  12716. extern "C"
  12717. #endif
  12718. char clock_gettime ();
  12719. int
  12720. main ()
  12721. {
  12722. return clock_gettime ();
  12723. ;
  12724. return 0;
  12725. }
  12726. _ACEOF
  12727. for ac_lib in '' rt; do
  12728. if test -z "$ac_lib"; then
  12729. ac_res="none required"
  12730. else
  12731. ac_res=-l$ac_lib
  12732. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12733. fi
  12734. if ac_fn_c_try_link "$LINENO"; then :
  12735. ac_cv_search_clock_gettime=$ac_res
  12736. fi
  12737. rm -f core conftest.err conftest.$ac_objext \
  12738. conftest$ac_exeext
  12739. if ${ac_cv_search_clock_gettime+:} false; then :
  12740. break
  12741. fi
  12742. done
  12743. if ${ac_cv_search_clock_gettime+:} false; then :
  12744. else
  12745. ac_cv_search_clock_gettime=no
  12746. fi
  12747. rm conftest.$ac_ext
  12748. LIBS=$ac_func_search_save_LIBS
  12749. fi
  12750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
  12751. $as_echo "$ac_cv_search_clock_gettime" >&6; }
  12752. ac_res=$ac_cv_search_clock_gettime
  12753. if test "$ac_res" != no; then :
  12754. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12755. fi
  12756. save_LIBS=$LIBS
  12757. LIBS=
  12758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing elftc_copyfile" >&5
  12759. $as_echo_n "checking for library containing elftc_copyfile... " >&6; }
  12760. if ${ac_cv_search_elftc_copyfile+:} false; then :
  12761. $as_echo_n "(cached) " >&6
  12762. else
  12763. ac_func_search_save_LIBS=$LIBS
  12764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12765. /* end confdefs.h. */
  12766. /* Override any GCC internal prototype to avoid an error.
  12767. Use char because int might match the return type of a GCC
  12768. builtin and then its argument prototype would still apply. */
  12769. #ifdef __cplusplus
  12770. extern "C"
  12771. #endif
  12772. char elftc_copyfile ();
  12773. int
  12774. main ()
  12775. {
  12776. return elftc_copyfile ();
  12777. ;
  12778. return 0;
  12779. }
  12780. _ACEOF
  12781. for ac_lib in '' elftc; do
  12782. if test -z "$ac_lib"; then
  12783. ac_res="none required"
  12784. else
  12785. ac_res=-l$ac_lib
  12786. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12787. fi
  12788. if ac_fn_c_try_link "$LINENO"; then :
  12789. ac_cv_search_elftc_copyfile=$ac_res
  12790. fi
  12791. rm -f core conftest.err conftest.$ac_objext \
  12792. conftest$ac_exeext
  12793. if ${ac_cv_search_elftc_copyfile+:} false; then :
  12794. break
  12795. fi
  12796. done
  12797. if ${ac_cv_search_elftc_copyfile+:} false; then :
  12798. else
  12799. ac_cv_search_elftc_copyfile=no
  12800. fi
  12801. rm conftest.$ac_ext
  12802. LIBS=$ac_func_search_save_LIBS
  12803. fi
  12804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_elftc_copyfile" >&5
  12805. $as_echo "$ac_cv_search_elftc_copyfile" >&6; }
  12806. ac_res=$ac_cv_search_elftc_copyfile
  12807. if test "$ac_res" != no; then :
  12808. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12809. for ac_header in libelftc.h
  12810. do :
  12811. ac_fn_c_check_header_mongrel "$LINENO" "libelftc.h" "ac_cv_header_libelftc_h" "$ac_includes_default"
  12812. if test "x$ac_cv_header_libelftc_h" = xyes; then :
  12813. cat >>confdefs.h <<_ACEOF
  12814. #define HAVE_LIBELFTC_H 1
  12815. _ACEOF
  12816. ELFTC_LIB=$LIBS
  12817. $as_echo "#define HAVE_LIBELFTC 1" >>confdefs.h
  12818. $as_echo "#define HAVE_ELFTC_COPYFILE 1" >>confdefs.h
  12819. fi
  12820. done
  12821. fi
  12822. LIBS=$save_LIBS
  12823. save_LIBS=$LIBS
  12824. LIBS=
  12825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  12826. $as_echo_n "checking for library containing dlopen... " >&6; }
  12827. if ${ac_cv_search_dlopen+:} false; then :
  12828. $as_echo_n "(cached) " >&6
  12829. else
  12830. ac_func_search_save_LIBS=$LIBS
  12831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12832. /* end confdefs.h. */
  12833. /* Override any GCC internal prototype to avoid an error.
  12834. Use char because int might match the return type of a GCC
  12835. builtin and then its argument prototype would still apply. */
  12836. #ifdef __cplusplus
  12837. extern "C"
  12838. #endif
  12839. char dlopen ();
  12840. int
  12841. main ()
  12842. {
  12843. return dlopen ();
  12844. ;
  12845. return 0;
  12846. }
  12847. _ACEOF
  12848. for ac_lib in '' dl; do
  12849. if test -z "$ac_lib"; then
  12850. ac_res="none required"
  12851. else
  12852. ac_res=-l$ac_lib
  12853. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12854. fi
  12855. if ac_fn_c_try_link "$LINENO"; then :
  12856. ac_cv_search_dlopen=$ac_res
  12857. fi
  12858. rm -f core conftest.err conftest.$ac_objext \
  12859. conftest$ac_exeext
  12860. if ${ac_cv_search_dlopen+:} false; then :
  12861. break
  12862. fi
  12863. done
  12864. if ${ac_cv_search_dlopen+:} false; then :
  12865. else
  12866. ac_cv_search_dlopen=no
  12867. fi
  12868. rm conftest.$ac_ext
  12869. LIBS=$ac_func_search_save_LIBS
  12870. fi
  12871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  12872. $as_echo "$ac_cv_search_dlopen" >&6; }
  12873. ac_res=$ac_cv_search_dlopen
  12874. if test "$ac_res" != no; then :
  12875. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12876. for ac_header in dlfcn.h
  12877. do :
  12878. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  12879. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  12880. cat >>confdefs.h <<_ACEOF
  12881. #define HAVE_DLFCN_H 1
  12882. _ACEOF
  12883. DL_LIB=$LIBS
  12884. $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
  12885. $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
  12886. fi
  12887. done
  12888. fi
  12889. LIBS=$save_LIBS
  12890. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  12891. if test -n "$ac_tool_prefix"; then
  12892. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  12893. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  12894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12895. $as_echo_n "checking for $ac_word... " >&6; }
  12896. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  12897. $as_echo_n "(cached) " >&6
  12898. else
  12899. case $PKG_CONFIG in
  12900. [\\/]* | ?:[\\/]*)
  12901. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  12902. ;;
  12903. *)
  12904. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12905. for as_dir in $PATH
  12906. do
  12907. IFS=$as_save_IFS
  12908. test -z "$as_dir" && as_dir=.
  12909. for ac_exec_ext in '' $ac_executable_extensions; do
  12910. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12911. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  12912. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12913. break 2
  12914. fi
  12915. done
  12916. done
  12917. IFS=$as_save_IFS
  12918. ;;
  12919. esac
  12920. fi
  12921. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  12922. if test -n "$PKG_CONFIG"; then
  12923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  12924. $as_echo "$PKG_CONFIG" >&6; }
  12925. else
  12926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12927. $as_echo "no" >&6; }
  12928. fi
  12929. fi
  12930. if test -z "$ac_cv_path_PKG_CONFIG"; then
  12931. ac_pt_PKG_CONFIG=$PKG_CONFIG
  12932. # Extract the first word of "pkg-config", so it can be a program name with args.
  12933. set dummy pkg-config; ac_word=$2
  12934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12935. $as_echo_n "checking for $ac_word... " >&6; }
  12936. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  12937. $as_echo_n "(cached) " >&6
  12938. else
  12939. case $ac_pt_PKG_CONFIG in
  12940. [\\/]* | ?:[\\/]*)
  12941. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  12942. ;;
  12943. *)
  12944. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12945. for as_dir in $PATH
  12946. do
  12947. IFS=$as_save_IFS
  12948. test -z "$as_dir" && as_dir=.
  12949. for ac_exec_ext in '' $ac_executable_extensions; do
  12950. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12951. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  12952. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12953. break 2
  12954. fi
  12955. done
  12956. done
  12957. IFS=$as_save_IFS
  12958. ;;
  12959. esac
  12960. fi
  12961. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  12962. if test -n "$ac_pt_PKG_CONFIG"; then
  12963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  12964. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  12965. else
  12966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12967. $as_echo "no" >&6; }
  12968. fi
  12969. if test "x$ac_pt_PKG_CONFIG" = x; then
  12970. PKG_CONFIG=""
  12971. else
  12972. case $cross_compiling:$ac_tool_warned in
  12973. yes:)
  12974. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12975. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12976. ac_tool_warned=yes ;;
  12977. esac
  12978. PKG_CONFIG=$ac_pt_PKG_CONFIG
  12979. fi
  12980. else
  12981. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  12982. fi
  12983. fi
  12984. if test -n "$PKG_CONFIG"; then
  12985. _pkg_min_version=0.9.0
  12986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  12987. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  12988. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  12989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12990. $as_echo "yes" >&6; }
  12991. else
  12992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12993. $as_echo "no" >&6; }
  12994. PKG_CONFIG=""
  12995. fi
  12996. fi
  12997. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  12998. $as_echo "$as_me: ----------------------------------------" >&6;}
  12999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libev support" >&5
  13000. $as_echo_n "checking for libev support... " >&6; }
  13001. # Check whether --with-libev was given.
  13002. if test "${with_libev+set}" = set; then :
  13003. withval=$with_libev; WITH_LIBEV=$withval
  13004. else
  13005. WITH_LIBEV=no
  13006. fi
  13007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_LIBEV" >&5
  13008. $as_echo "$WITH_LIBEV" >&6; }
  13009. LIBEV_CFLAGS=
  13010. LIBEV_LIBS=
  13011. if test "$WITH_LIBEV" != no; then
  13012. pkg_failed=no
  13013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEV" >&5
  13014. $as_echo_n "checking for LIBEV... " >&6; }
  13015. if test -n "$LIBEV_CFLAGS"; then
  13016. pkg_cv_LIBEV_CFLAGS="$LIBEV_CFLAGS"
  13017. elif test -n "$PKG_CONFIG"; then
  13018. if test -n "$PKG_CONFIG" && \
  13019. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libev\""; } >&5
  13020. ($PKG_CONFIG --exists --print-errors "libev") 2>&5
  13021. ac_status=$?
  13022. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13023. test $ac_status = 0; }; then
  13024. pkg_cv_LIBEV_CFLAGS=`$PKG_CONFIG --cflags "libev" 2>/dev/null`
  13025. test "x$?" != "x0" && pkg_failed=yes
  13026. else
  13027. pkg_failed=yes
  13028. fi
  13029. else
  13030. pkg_failed=untried
  13031. fi
  13032. if test -n "$LIBEV_LIBS"; then
  13033. pkg_cv_LIBEV_LIBS="$LIBEV_LIBS"
  13034. elif test -n "$PKG_CONFIG"; then
  13035. if test -n "$PKG_CONFIG" && \
  13036. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libev\""; } >&5
  13037. ($PKG_CONFIG --exists --print-errors "libev") 2>&5
  13038. ac_status=$?
  13039. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13040. test $ac_status = 0; }; then
  13041. pkg_cv_LIBEV_LIBS=`$PKG_CONFIG --libs "libev" 2>/dev/null`
  13042. test "x$?" != "x0" && pkg_failed=yes
  13043. else
  13044. pkg_failed=yes
  13045. fi
  13046. else
  13047. pkg_failed=untried
  13048. fi
  13049. if test $pkg_failed = yes; then
  13050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13051. $as_echo "no" >&6; }
  13052. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13053. _pkg_short_errors_supported=yes
  13054. else
  13055. _pkg_short_errors_supported=no
  13056. fi
  13057. if test $_pkg_short_errors_supported = yes; then
  13058. LIBEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libev" 2>&1`
  13059. else
  13060. LIBEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libev" 2>&1`
  13061. fi
  13062. # Put the nasty error message in config.log where it belongs
  13063. echo "$LIBEV_PKG_ERRORS" >&5
  13064. if test "$WITH_LIBEV" != yes; then
  13065. LIBEV_CFLAGS="-I$WITH_LIBEV/include"
  13066. LIBEV_LIBS="-L$WITH_LIBEV/lib -lev"
  13067. else
  13068. for ac_header in ev.h
  13069. do :
  13070. ac_fn_c_check_header_mongrel "$LINENO" "ev.h" "ac_cv_header_ev_h" "$ac_includes_default"
  13071. if test "x$ac_cv_header_ev_h" = xyes; then :
  13072. cat >>confdefs.h <<_ACEOF
  13073. #define HAVE_EV_H 1
  13074. _ACEOF
  13075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ev_time in -lev" >&5
  13076. $as_echo_n "checking for ev_time in -lev... " >&6; }
  13077. if ${ac_cv_lib_ev_ev_time+:} false; then :
  13078. $as_echo_n "(cached) " >&6
  13079. else
  13080. ac_check_lib_save_LIBS=$LIBS
  13081. LIBS="-lev $LIBS"
  13082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13083. /* end confdefs.h. */
  13084. /* Override any GCC internal prototype to avoid an error.
  13085. Use char because int might match the return type of a GCC
  13086. builtin and then its argument prototype would still apply. */
  13087. #ifdef __cplusplus
  13088. extern "C"
  13089. #endif
  13090. char ev_time ();
  13091. int
  13092. main ()
  13093. {
  13094. return ev_time ();
  13095. ;
  13096. return 0;
  13097. }
  13098. _ACEOF
  13099. if ac_fn_c_try_link "$LINENO"; then :
  13100. ac_cv_lib_ev_ev_time=yes
  13101. else
  13102. ac_cv_lib_ev_ev_time=no
  13103. fi
  13104. rm -f core conftest.err conftest.$ac_objext \
  13105. conftest$ac_exeext conftest.$ac_ext
  13106. LIBS=$ac_check_lib_save_LIBS
  13107. fi
  13108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ev_ev_time" >&5
  13109. $as_echo "$ac_cv_lib_ev_ev_time" >&6; }
  13110. if test "x$ac_cv_lib_ev_ev_time" = xyes; then :
  13111. LIBEV_CFLAGS=
  13112. LIBEV_LIBS="-lev"
  13113. else
  13114. as_fn_error $? "libev not found" "$LINENO" 5
  13115. fi
  13116. else
  13117. as_fn_error $? "libev header not found" "$LINENO" 5
  13118. fi
  13119. done
  13120. fi
  13121. elif test $pkg_failed = untried; then
  13122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13123. $as_echo "no" >&6; }
  13124. if test "$WITH_LIBEV" != yes; then
  13125. LIBEV_CFLAGS="-I$WITH_LIBEV/include"
  13126. LIBEV_LIBS="-L$WITH_LIBEV/lib -lev"
  13127. else
  13128. for ac_header in ev.h
  13129. do :
  13130. ac_fn_c_check_header_mongrel "$LINENO" "ev.h" "ac_cv_header_ev_h" "$ac_includes_default"
  13131. if test "x$ac_cv_header_ev_h" = xyes; then :
  13132. cat >>confdefs.h <<_ACEOF
  13133. #define HAVE_EV_H 1
  13134. _ACEOF
  13135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ev_time in -lev" >&5
  13136. $as_echo_n "checking for ev_time in -lev... " >&6; }
  13137. if ${ac_cv_lib_ev_ev_time+:} false; then :
  13138. $as_echo_n "(cached) " >&6
  13139. else
  13140. ac_check_lib_save_LIBS=$LIBS
  13141. LIBS="-lev $LIBS"
  13142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13143. /* end confdefs.h. */
  13144. /* Override any GCC internal prototype to avoid an error.
  13145. Use char because int might match the return type of a GCC
  13146. builtin and then its argument prototype would still apply. */
  13147. #ifdef __cplusplus
  13148. extern "C"
  13149. #endif
  13150. char ev_time ();
  13151. int
  13152. main ()
  13153. {
  13154. return ev_time ();
  13155. ;
  13156. return 0;
  13157. }
  13158. _ACEOF
  13159. if ac_fn_c_try_link "$LINENO"; then :
  13160. ac_cv_lib_ev_ev_time=yes
  13161. else
  13162. ac_cv_lib_ev_ev_time=no
  13163. fi
  13164. rm -f core conftest.err conftest.$ac_objext \
  13165. conftest$ac_exeext conftest.$ac_ext
  13166. LIBS=$ac_check_lib_save_LIBS
  13167. fi
  13168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ev_ev_time" >&5
  13169. $as_echo "$ac_cv_lib_ev_ev_time" >&6; }
  13170. if test "x$ac_cv_lib_ev_ev_time" = xyes; then :
  13171. LIBEV_CFLAGS=
  13172. LIBEV_LIBS="-lev"
  13173. else
  13174. as_fn_error $? "libev not found" "$LINENO" 5
  13175. fi
  13176. else
  13177. as_fn_error $? "libev header not found" "$LINENO" 5
  13178. fi
  13179. done
  13180. fi
  13181. else
  13182. LIBEV_CFLAGS=$pkg_cv_LIBEV_CFLAGS
  13183. LIBEV_LIBS=$pkg_cv_LIBEV_LIBS
  13184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13185. $as_echo "yes" >&6; }
  13186. fi
  13187. $as_echo "#define HAVE_LIBEV 1" >>confdefs.h
  13188. fi
  13189. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  13190. $as_echo "$as_me: ----------------------------------------" >&6;}
  13191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
  13192. $as_echo_n "checking for MySQL support... " >&6; }
  13193. # Check whether --with-mysql was given.
  13194. if test "${with_mysql+set}" = set; then :
  13195. withval=$with_mysql; WITH_MYSQL=$withval
  13196. else
  13197. WITH_MYSQL=no
  13198. fi
  13199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_MYSQL" >&5
  13200. $as_echo "$WITH_MYSQL" >&6; }
  13201. MYSQL_CFLAGS=
  13202. MYSQL_LIBS=
  13203. if test "$WITH_MYSQL" != no; then
  13204. if test "$WITH_MYSQL" = yes; then
  13205. pkg_failed=no
  13206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MYSQL" >&5
  13207. $as_echo_n "checking for MYSQL... " >&6; }
  13208. if test -n "$MYSQL_CFLAGS"; then
  13209. pkg_cv_MYSQL_CFLAGS="$MYSQL_CFLAGS"
  13210. elif test -n "$PKG_CONFIG"; then
  13211. if test -n "$PKG_CONFIG" && \
  13212. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mariadb\""; } >&5
  13213. ($PKG_CONFIG --exists --print-errors "mariadb") 2>&5
  13214. ac_status=$?
  13215. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13216. test $ac_status = 0; }; then
  13217. pkg_cv_MYSQL_CFLAGS=`$PKG_CONFIG --cflags "mariadb" 2>/dev/null`
  13218. test "x$?" != "x0" && pkg_failed=yes
  13219. else
  13220. pkg_failed=yes
  13221. fi
  13222. else
  13223. pkg_failed=untried
  13224. fi
  13225. if test -n "$MYSQL_LIBS"; then
  13226. pkg_cv_MYSQL_LIBS="$MYSQL_LIBS"
  13227. elif test -n "$PKG_CONFIG"; then
  13228. if test -n "$PKG_CONFIG" && \
  13229. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mariadb\""; } >&5
  13230. ($PKG_CONFIG --exists --print-errors "mariadb") 2>&5
  13231. ac_status=$?
  13232. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13233. test $ac_status = 0; }; then
  13234. pkg_cv_MYSQL_LIBS=`$PKG_CONFIG --libs "mariadb" 2>/dev/null`
  13235. test "x$?" != "x0" && pkg_failed=yes
  13236. else
  13237. pkg_failed=yes
  13238. fi
  13239. else
  13240. pkg_failed=untried
  13241. fi
  13242. if test $pkg_failed = yes; then
  13243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13244. $as_echo "no" >&6; }
  13245. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13246. _pkg_short_errors_supported=yes
  13247. else
  13248. _pkg_short_errors_supported=no
  13249. fi
  13250. if test $_pkg_short_errors_supported = yes; then
  13251. MYSQL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mariadb" 2>&1`
  13252. else
  13253. MYSQL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mariadb" 2>&1`
  13254. fi
  13255. # Put the nasty error message in config.log where it belongs
  13256. echo "$MYSQL_PKG_ERRORS" >&5
  13257. pkg_failed=no
  13258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MYSQL" >&5
  13259. $as_echo_n "checking for MYSQL... " >&6; }
  13260. if test -n "$MYSQL_CFLAGS"; then
  13261. pkg_cv_MYSQL_CFLAGS="$MYSQL_CFLAGS"
  13262. elif test -n "$PKG_CONFIG"; then
  13263. if test -n "$PKG_CONFIG" && \
  13264. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mysqlclient\""; } >&5
  13265. ($PKG_CONFIG --exists --print-errors "mysqlclient") 2>&5
  13266. ac_status=$?
  13267. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13268. test $ac_status = 0; }; then
  13269. pkg_cv_MYSQL_CFLAGS=`$PKG_CONFIG --cflags "mysqlclient" 2>/dev/null`
  13270. test "x$?" != "x0" && pkg_failed=yes
  13271. else
  13272. pkg_failed=yes
  13273. fi
  13274. else
  13275. pkg_failed=untried
  13276. fi
  13277. if test -n "$MYSQL_LIBS"; then
  13278. pkg_cv_MYSQL_LIBS="$MYSQL_LIBS"
  13279. elif test -n "$PKG_CONFIG"; then
  13280. if test -n "$PKG_CONFIG" && \
  13281. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mysqlclient\""; } >&5
  13282. ($PKG_CONFIG --exists --print-errors "mysqlclient") 2>&5
  13283. ac_status=$?
  13284. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13285. test $ac_status = 0; }; then
  13286. pkg_cv_MYSQL_LIBS=`$PKG_CONFIG --libs "mysqlclient" 2>/dev/null`
  13287. test "x$?" != "x0" && pkg_failed=yes
  13288. else
  13289. pkg_failed=yes
  13290. fi
  13291. else
  13292. pkg_failed=untried
  13293. fi
  13294. if test $pkg_failed = yes; then
  13295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13296. $as_echo "no" >&6; }
  13297. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13298. _pkg_short_errors_supported=yes
  13299. else
  13300. _pkg_short_errors_supported=no
  13301. fi
  13302. if test $_pkg_short_errors_supported = yes; then
  13303. MYSQL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mysqlclient" 2>&1`
  13304. else
  13305. MYSQL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mysqlclient" 2>&1`
  13306. fi
  13307. # Put the nasty error message in config.log where it belongs
  13308. echo "$MYSQL_PKG_ERRORS" >&5
  13309. # Extract the first word of "mysql_config", so it can be a program name with args.
  13310. set dummy mysql_config; ac_word=$2
  13311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13312. $as_echo_n "checking for $ac_word... " >&6; }
  13313. if ${ac_cv_path_MYSQL_CONFIG+:} false; then :
  13314. $as_echo_n "(cached) " >&6
  13315. else
  13316. case $MYSQL_CONFIG in
  13317. [\\/]* | ?:[\\/]*)
  13318. ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
  13319. ;;
  13320. *)
  13321. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13322. for as_dir in $PATH
  13323. do
  13324. IFS=$as_save_IFS
  13325. test -z "$as_dir" && as_dir=.
  13326. for ac_exec_ext in '' $ac_executable_extensions; do
  13327. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13328. ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13329. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13330. break 2
  13331. fi
  13332. done
  13333. done
  13334. IFS=$as_save_IFS
  13335. ;;
  13336. esac
  13337. fi
  13338. MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
  13339. if test -n "$MYSQL_CONFIG"; then
  13340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
  13341. $as_echo "$MYSQL_CONFIG" >&6; }
  13342. else
  13343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13344. $as_echo "no" >&6; }
  13345. fi
  13346. elif test $pkg_failed = untried; then
  13347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13348. $as_echo "no" >&6; }
  13349. # Extract the first word of "mysql_config", so it can be a program name with args.
  13350. set dummy mysql_config; ac_word=$2
  13351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13352. $as_echo_n "checking for $ac_word... " >&6; }
  13353. if ${ac_cv_path_MYSQL_CONFIG+:} false; then :
  13354. $as_echo_n "(cached) " >&6
  13355. else
  13356. case $MYSQL_CONFIG in
  13357. [\\/]* | ?:[\\/]*)
  13358. ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
  13359. ;;
  13360. *)
  13361. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13362. for as_dir in $PATH
  13363. do
  13364. IFS=$as_save_IFS
  13365. test -z "$as_dir" && as_dir=.
  13366. for ac_exec_ext in '' $ac_executable_extensions; do
  13367. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13368. ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13369. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13370. break 2
  13371. fi
  13372. done
  13373. done
  13374. IFS=$as_save_IFS
  13375. ;;
  13376. esac
  13377. fi
  13378. MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
  13379. if test -n "$MYSQL_CONFIG"; then
  13380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
  13381. $as_echo "$MYSQL_CONFIG" >&6; }
  13382. else
  13383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13384. $as_echo "no" >&6; }
  13385. fi
  13386. else
  13387. MYSQL_CFLAGS=$pkg_cv_MYSQL_CFLAGS
  13388. MYSQL_LIBS=$pkg_cv_MYSQL_LIBS
  13389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13390. $as_echo "yes" >&6; }
  13391. MYSQL_CONFIG=$PKG_CONFIG
  13392. fi
  13393. elif test $pkg_failed = untried; then
  13394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13395. $as_echo "no" >&6; }
  13396. pkg_failed=no
  13397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MYSQL" >&5
  13398. $as_echo_n "checking for MYSQL... " >&6; }
  13399. if test -n "$MYSQL_CFLAGS"; then
  13400. pkg_cv_MYSQL_CFLAGS="$MYSQL_CFLAGS"
  13401. elif test -n "$PKG_CONFIG"; then
  13402. if test -n "$PKG_CONFIG" && \
  13403. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mysqlclient\""; } >&5
  13404. ($PKG_CONFIG --exists --print-errors "mysqlclient") 2>&5
  13405. ac_status=$?
  13406. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13407. test $ac_status = 0; }; then
  13408. pkg_cv_MYSQL_CFLAGS=`$PKG_CONFIG --cflags "mysqlclient" 2>/dev/null`
  13409. test "x$?" != "x0" && pkg_failed=yes
  13410. else
  13411. pkg_failed=yes
  13412. fi
  13413. else
  13414. pkg_failed=untried
  13415. fi
  13416. if test -n "$MYSQL_LIBS"; then
  13417. pkg_cv_MYSQL_LIBS="$MYSQL_LIBS"
  13418. elif test -n "$PKG_CONFIG"; then
  13419. if test -n "$PKG_CONFIG" && \
  13420. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mysqlclient\""; } >&5
  13421. ($PKG_CONFIG --exists --print-errors "mysqlclient") 2>&5
  13422. ac_status=$?
  13423. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13424. test $ac_status = 0; }; then
  13425. pkg_cv_MYSQL_LIBS=`$PKG_CONFIG --libs "mysqlclient" 2>/dev/null`
  13426. test "x$?" != "x0" && pkg_failed=yes
  13427. else
  13428. pkg_failed=yes
  13429. fi
  13430. else
  13431. pkg_failed=untried
  13432. fi
  13433. if test $pkg_failed = yes; then
  13434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13435. $as_echo "no" >&6; }
  13436. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13437. _pkg_short_errors_supported=yes
  13438. else
  13439. _pkg_short_errors_supported=no
  13440. fi
  13441. if test $_pkg_short_errors_supported = yes; then
  13442. MYSQL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mysqlclient" 2>&1`
  13443. else
  13444. MYSQL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mysqlclient" 2>&1`
  13445. fi
  13446. # Put the nasty error message in config.log where it belongs
  13447. echo "$MYSQL_PKG_ERRORS" >&5
  13448. # Extract the first word of "mysql_config", so it can be a program name with args.
  13449. set dummy mysql_config; ac_word=$2
  13450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13451. $as_echo_n "checking for $ac_word... " >&6; }
  13452. if ${ac_cv_path_MYSQL_CONFIG+:} false; then :
  13453. $as_echo_n "(cached) " >&6
  13454. else
  13455. case $MYSQL_CONFIG in
  13456. [\\/]* | ?:[\\/]*)
  13457. ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
  13458. ;;
  13459. *)
  13460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13461. for as_dir in $PATH
  13462. do
  13463. IFS=$as_save_IFS
  13464. test -z "$as_dir" && as_dir=.
  13465. for ac_exec_ext in '' $ac_executable_extensions; do
  13466. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13467. ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13468. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13469. break 2
  13470. fi
  13471. done
  13472. done
  13473. IFS=$as_save_IFS
  13474. ;;
  13475. esac
  13476. fi
  13477. MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
  13478. if test -n "$MYSQL_CONFIG"; then
  13479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
  13480. $as_echo "$MYSQL_CONFIG" >&6; }
  13481. else
  13482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13483. $as_echo "no" >&6; }
  13484. fi
  13485. elif test $pkg_failed = untried; then
  13486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13487. $as_echo "no" >&6; }
  13488. # Extract the first word of "mysql_config", so it can be a program name with args.
  13489. set dummy mysql_config; ac_word=$2
  13490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13491. $as_echo_n "checking for $ac_word... " >&6; }
  13492. if ${ac_cv_path_MYSQL_CONFIG+:} false; then :
  13493. $as_echo_n "(cached) " >&6
  13494. else
  13495. case $MYSQL_CONFIG in
  13496. [\\/]* | ?:[\\/]*)
  13497. ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
  13498. ;;
  13499. *)
  13500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13501. for as_dir in $PATH
  13502. do
  13503. IFS=$as_save_IFS
  13504. test -z "$as_dir" && as_dir=.
  13505. for ac_exec_ext in '' $ac_executable_extensions; do
  13506. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13507. ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13508. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13509. break 2
  13510. fi
  13511. done
  13512. done
  13513. IFS=$as_save_IFS
  13514. ;;
  13515. esac
  13516. fi
  13517. MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
  13518. if test -n "$MYSQL_CONFIG"; then
  13519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
  13520. $as_echo "$MYSQL_CONFIG" >&6; }
  13521. else
  13522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13523. $as_echo "no" >&6; }
  13524. fi
  13525. else
  13526. MYSQL_CFLAGS=$pkg_cv_MYSQL_CFLAGS
  13527. MYSQL_LIBS=$pkg_cv_MYSQL_LIBS
  13528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13529. $as_echo "yes" >&6; }
  13530. MYSQL_CONFIG=$PKG_CONFIG
  13531. fi
  13532. else
  13533. MYSQL_CFLAGS=$pkg_cv_MYSQL_CFLAGS
  13534. MYSQL_LIBS=$pkg_cv_MYSQL_LIBS
  13535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13536. $as_echo "yes" >&6; }
  13537. MYSQL_CONFIG=$PKG_CONFIG
  13538. fi
  13539. else
  13540. MYSQL_CONFIG=$WITH_MYSQL
  13541. fi
  13542. if test "$MYSQL_CONFIG" != "$PKG_CONFIG"; then
  13543. if test -z "$MYSQL_CONFIG"; then
  13544. as_fn_error $? "mysql_config is not found" "$LINENO" 5
  13545. fi
  13546. if test ! -x "$MYSQL_CONFIG"; then
  13547. as_fn_error $? "mysql_config not exists or not executable, use --with-mysql=path-to-mysql_config" "$LINENO" 5
  13548. fi
  13549. if "$MYSQL_CONFIG" | grep -- '--include' > /dev/null ; then
  13550. MYSQL_CFLAGS=`"$MYSQL_CONFIG" --include | sed s/\'//g`
  13551. else
  13552. MYSQL_CFLAGS=`"$MYSQL_CONFIG" --cflags | sed s/\'//g`
  13553. fi
  13554. MYSQL_LIBS=`"$MYSQL_CONFIG" --libs | sed s/\'//g`
  13555. fi
  13556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL includes at" >&5
  13557. $as_echo_n "checking for MySQL includes at... " >&6; }
  13558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CFLAGS" >&5
  13559. $as_echo "$MYSQL_CFLAGS" >&6; }
  13560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL libraries at" >&5
  13561. $as_echo_n "checking for MySQL libraries at... " >&6; }
  13562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_LIBS" >&5
  13563. $as_echo "$MYSQL_LIBS" >&6; }
  13564. $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
  13565. fi
  13566. if test "$WITH_MYSQL" != no; then
  13567. BUILD_WITH_MYSQL_TRUE=
  13568. BUILD_WITH_MYSQL_FALSE='#'
  13569. else
  13570. BUILD_WITH_MYSQL_TRUE='#'
  13571. BUILD_WITH_MYSQL_FALSE=
  13572. fi
  13573. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  13574. $as_echo "$as_me: ----------------------------------------" >&6;}
  13575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PgSQL support" >&5
  13576. $as_echo_n "checking for PgSQL support... " >&6; }
  13577. # Check whether --with-pgsql was given.
  13578. if test "${with_pgsql+set}" = set; then :
  13579. withval=$with_pgsql; WITH_PGSQL=$withval
  13580. else
  13581. WITH_PGSQL=no
  13582. fi
  13583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_PGSQL" >&5
  13584. $as_echo "$WITH_PGSQL" >&6; }
  13585. PGSQL_CFLAGS=
  13586. PGSQL_LIBS=
  13587. if test "$WITH_PGSQL" != no; then
  13588. if test "$WITH_PGSQL" = yes; then
  13589. pkg_failed=no
  13590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PGSQL" >&5
  13591. $as_echo_n "checking for PGSQL... " >&6; }
  13592. if test -n "$PGSQL_CFLAGS"; then
  13593. pkg_cv_PGSQL_CFLAGS="$PGSQL_CFLAGS"
  13594. elif test -n "$PKG_CONFIG"; then
  13595. if test -n "$PKG_CONFIG" && \
  13596. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpq\""; } >&5
  13597. ($PKG_CONFIG --exists --print-errors "libpq") 2>&5
  13598. ac_status=$?
  13599. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13600. test $ac_status = 0; }; then
  13601. pkg_cv_PGSQL_CFLAGS=`$PKG_CONFIG --cflags "libpq" 2>/dev/null`
  13602. test "x$?" != "x0" && pkg_failed=yes
  13603. else
  13604. pkg_failed=yes
  13605. fi
  13606. else
  13607. pkg_failed=untried
  13608. fi
  13609. if test -n "$PGSQL_LIBS"; then
  13610. pkg_cv_PGSQL_LIBS="$PGSQL_LIBS"
  13611. elif test -n "$PKG_CONFIG"; then
  13612. if test -n "$PKG_CONFIG" && \
  13613. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpq\""; } >&5
  13614. ($PKG_CONFIG --exists --print-errors "libpq") 2>&5
  13615. ac_status=$?
  13616. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13617. test $ac_status = 0; }; then
  13618. pkg_cv_PGSQL_LIBS=`$PKG_CONFIG --libs "libpq" 2>/dev/null`
  13619. test "x$?" != "x0" && pkg_failed=yes
  13620. else
  13621. pkg_failed=yes
  13622. fi
  13623. else
  13624. pkg_failed=untried
  13625. fi
  13626. if test $pkg_failed = yes; then
  13627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13628. $as_echo "no" >&6; }
  13629. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13630. _pkg_short_errors_supported=yes
  13631. else
  13632. _pkg_short_errors_supported=no
  13633. fi
  13634. if test $_pkg_short_errors_supported = yes; then
  13635. PGSQL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpq" 2>&1`
  13636. else
  13637. PGSQL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpq" 2>&1`
  13638. fi
  13639. # Put the nasty error message in config.log where it belongs
  13640. echo "$PGSQL_PKG_ERRORS" >&5
  13641. # Extract the first word of "pg_config", so it can be a program name with args.
  13642. set dummy pg_config; ac_word=$2
  13643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13644. $as_echo_n "checking for $ac_word... " >&6; }
  13645. if ${ac_cv_path_PGSQL_CONFIG+:} false; then :
  13646. $as_echo_n "(cached) " >&6
  13647. else
  13648. case $PGSQL_CONFIG in
  13649. [\\/]* | ?:[\\/]*)
  13650. ac_cv_path_PGSQL_CONFIG="$PGSQL_CONFIG" # Let the user override the test with a path.
  13651. ;;
  13652. *)
  13653. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13654. for as_dir in $PATH
  13655. do
  13656. IFS=$as_save_IFS
  13657. test -z "$as_dir" && as_dir=.
  13658. for ac_exec_ext in '' $ac_executable_extensions; do
  13659. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13660. ac_cv_path_PGSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13661. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13662. break 2
  13663. fi
  13664. done
  13665. done
  13666. IFS=$as_save_IFS
  13667. ;;
  13668. esac
  13669. fi
  13670. PGSQL_CONFIG=$ac_cv_path_PGSQL_CONFIG
  13671. if test -n "$PGSQL_CONFIG"; then
  13672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGSQL_CONFIG" >&5
  13673. $as_echo "$PGSQL_CONFIG" >&6; }
  13674. else
  13675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13676. $as_echo "no" >&6; }
  13677. fi
  13678. elif test $pkg_failed = untried; then
  13679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13680. $as_echo "no" >&6; }
  13681. # Extract the first word of "pg_config", so it can be a program name with args.
  13682. set dummy pg_config; ac_word=$2
  13683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13684. $as_echo_n "checking for $ac_word... " >&6; }
  13685. if ${ac_cv_path_PGSQL_CONFIG+:} false; then :
  13686. $as_echo_n "(cached) " >&6
  13687. else
  13688. case $PGSQL_CONFIG in
  13689. [\\/]* | ?:[\\/]*)
  13690. ac_cv_path_PGSQL_CONFIG="$PGSQL_CONFIG" # Let the user override the test with a path.
  13691. ;;
  13692. *)
  13693. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13694. for as_dir in $PATH
  13695. do
  13696. IFS=$as_save_IFS
  13697. test -z "$as_dir" && as_dir=.
  13698. for ac_exec_ext in '' $ac_executable_extensions; do
  13699. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13700. ac_cv_path_PGSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13701. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13702. break 2
  13703. fi
  13704. done
  13705. done
  13706. IFS=$as_save_IFS
  13707. ;;
  13708. esac
  13709. fi
  13710. PGSQL_CONFIG=$ac_cv_path_PGSQL_CONFIG
  13711. if test -n "$PGSQL_CONFIG"; then
  13712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGSQL_CONFIG" >&5
  13713. $as_echo "$PGSQL_CONFIG" >&6; }
  13714. else
  13715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13716. $as_echo "no" >&6; }
  13717. fi
  13718. else
  13719. PGSQL_CFLAGS=$pkg_cv_PGSQL_CFLAGS
  13720. PGSQL_LIBS=$pkg_cv_PGSQL_LIBS
  13721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13722. $as_echo "yes" >&6; }
  13723. PGSQL_CONFIG=$PKG_CONFIG
  13724. fi
  13725. else
  13726. PGSQL_CONFIG=$WITH_PGSQL
  13727. fi
  13728. if test "$PGSQL_CONFIG" != "$PKG_CONFIG"; then
  13729. if test -z "$PGSQL_CONFIG"; then
  13730. as_fn_error $? "pg_config is not found" "$LINENO" 5
  13731. fi
  13732. if test ! -x "$PGSQL_CONFIG"; then
  13733. as_fn_error $? "pg_config not exists or not executable, use --with-pgsql=path-to-pg_config" "$LINENO" 5
  13734. fi
  13735. PGSQL_CFLAGS="-I`"$PGSQL_CONFIG" --includedir`"
  13736. PGSQL_LIBS="-L`"$PGSQL_CONFIG" --libdir` -lpq"
  13737. fi
  13738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PgSQL includes at" >&5
  13739. $as_echo_n "checking for PgSQL includes at... " >&6; }
  13740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGSQL_CFLAGS" >&5
  13741. $as_echo "$PGSQL_CFLAGS" >&6; }
  13742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PgSQL libraries at" >&5
  13743. $as_echo_n "checking for PgSQL libraries at... " >&6; }
  13744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGSQL_LIBS" >&5
  13745. $as_echo "$PGSQL_LIBS" >&6; }
  13746. $as_echo "#define HAVE_PGSQL 1" >>confdefs.h
  13747. fi
  13748. if test "$WITH_PGSQL" != no; then
  13749. BUILD_WITH_PGSQL_TRUE=
  13750. BUILD_WITH_PGSQL_FALSE='#'
  13751. else
  13752. BUILD_WITH_PGSQL_TRUE='#'
  13753. BUILD_WITH_PGSQL_FALSE=
  13754. fi
  13755. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  13756. $as_echo "$as_me: ----------------------------------------" >&6;}
  13757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibDBI support" >&5
  13758. $as_echo_n "checking for LibDBI support... " >&6; }
  13759. # Check whether --with-dbi was given.
  13760. if test "${with_dbi+set}" = set; then :
  13761. withval=$with_dbi; WITH_DBI=$withval
  13762. else
  13763. WITH_DBI=no
  13764. fi
  13765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_DBI" >&5
  13766. $as_echo "$WITH_DBI" >&6; }
  13767. DBI_INCLUDE=
  13768. DBI_LIBS=
  13769. if test "$WITH_DBI" != no; then
  13770. if test "$WITH_DBI" != yes; then
  13771. DBI_CFLAGS="-I$WITH_DBI/include"
  13772. DBI_LIBS="-L$WITH_DBI/lib -ldbi"
  13773. else
  13774. for ac_header in dbi/dbi.h
  13775. do :
  13776. ac_fn_c_check_header_mongrel "$LINENO" "dbi/dbi.h" "ac_cv_header_dbi_dbi_h" "$ac_includes_default"
  13777. if test "x$ac_cv_header_dbi_dbi_h" = xyes; then :
  13778. cat >>confdefs.h <<_ACEOF
  13779. #define HAVE_DBI_DBI_H 1
  13780. _ACEOF
  13781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbi_version in -ldbi" >&5
  13782. $as_echo_n "checking for dbi_version in -ldbi... " >&6; }
  13783. if ${ac_cv_lib_dbi_dbi_version+:} false; then :
  13784. $as_echo_n "(cached) " >&6
  13785. else
  13786. ac_check_lib_save_LIBS=$LIBS
  13787. LIBS="-ldbi $LIBS"
  13788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13789. /* end confdefs.h. */
  13790. /* Override any GCC internal prototype to avoid an error.
  13791. Use char because int might match the return type of a GCC
  13792. builtin and then its argument prototype would still apply. */
  13793. #ifdef __cplusplus
  13794. extern "C"
  13795. #endif
  13796. char dbi_version ();
  13797. int
  13798. main ()
  13799. {
  13800. return dbi_version ();
  13801. ;
  13802. return 0;
  13803. }
  13804. _ACEOF
  13805. if ac_fn_c_try_link "$LINENO"; then :
  13806. ac_cv_lib_dbi_dbi_version=yes
  13807. else
  13808. ac_cv_lib_dbi_dbi_version=no
  13809. fi
  13810. rm -f core conftest.err conftest.$ac_objext \
  13811. conftest$ac_exeext conftest.$ac_ext
  13812. LIBS=$ac_check_lib_save_LIBS
  13813. fi
  13814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbi_dbi_version" >&5
  13815. $as_echo "$ac_cv_lib_dbi_dbi_version" >&6; }
  13816. if test "x$ac_cv_lib_dbi_dbi_version" = xyes; then :
  13817. DBI_CFLAGS=
  13818. DBI_LIBS="-ldbi"
  13819. else
  13820. as_fn_error $? "LibDBI not found" "$LINENO" 5
  13821. fi
  13822. else
  13823. as_fn_error $? "LibDBI header not found" "$LINENO" 5
  13824. fi
  13825. done
  13826. fi
  13827. $as_echo "#define HAVE_DBI 1" >>confdefs.h
  13828. fi
  13829. if test "$WITH_DBI" != no; then
  13830. BUILD_WITH_DBI_TRUE=
  13831. BUILD_WITH_DBI_FALSE='#'
  13832. else
  13833. BUILD_WITH_DBI_TRUE='#'
  13834. BUILD_WITH_DBI_FALSE=
  13835. fi
  13836. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  13837. $as_echo "$as_me: ----------------------------------------" >&6;}
  13838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibSASL support" >&5
  13839. $as_echo_n "checking for LibSASL support... " >&6; }
  13840. # Check whether --with-sasl was given.
  13841. if test "${with_sasl+set}" = set; then :
  13842. withval=$with_sasl; WITH_SASL=$withval
  13843. else
  13844. WITH_SASL=no
  13845. fi
  13846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_SASL" >&5
  13847. $as_echo "$WITH_SASL" >&6; }
  13848. SASL_INCLUDE=
  13849. SASL_LIBS=
  13850. if test "$WITH_SASL" != no; then
  13851. if test "$WITH_SASL" != yes; then
  13852. SASL_CFLAGS="-I$WITH_SASL/include"
  13853. SASL_LIBS="-L$WITH_SASL/lib -lsasl2"
  13854. else
  13855. for ac_header in sasl/sasl.h
  13856. do :
  13857. ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
  13858. if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
  13859. cat >>confdefs.h <<_ACEOF
  13860. #define HAVE_SASL_SASL_H 1
  13861. _ACEOF
  13862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_server_init in -lsasl2" >&5
  13863. $as_echo_n "checking for sasl_server_init in -lsasl2... " >&6; }
  13864. if ${ac_cv_lib_sasl2_sasl_server_init+:} false; then :
  13865. $as_echo_n "(cached) " >&6
  13866. else
  13867. ac_check_lib_save_LIBS=$LIBS
  13868. LIBS="-lsasl2 $LIBS"
  13869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13870. /* end confdefs.h. */
  13871. /* Override any GCC internal prototype to avoid an error.
  13872. Use char because int might match the return type of a GCC
  13873. builtin and then its argument prototype would still apply. */
  13874. #ifdef __cplusplus
  13875. extern "C"
  13876. #endif
  13877. char sasl_server_init ();
  13878. int
  13879. main ()
  13880. {
  13881. return sasl_server_init ();
  13882. ;
  13883. return 0;
  13884. }
  13885. _ACEOF
  13886. if ac_fn_c_try_link "$LINENO"; then :
  13887. ac_cv_lib_sasl2_sasl_server_init=yes
  13888. else
  13889. ac_cv_lib_sasl2_sasl_server_init=no
  13890. fi
  13891. rm -f core conftest.err conftest.$ac_objext \
  13892. conftest$ac_exeext conftest.$ac_ext
  13893. LIBS=$ac_check_lib_save_LIBS
  13894. fi
  13895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_server_init" >&5
  13896. $as_echo "$ac_cv_lib_sasl2_sasl_server_init" >&6; }
  13897. if test "x$ac_cv_lib_sasl2_sasl_server_init" = xyes; then :
  13898. SASL_CFLAGS=
  13899. SASL_LIBS="-lsasl2"
  13900. else
  13901. as_fn_error $? "libsasl2 not found" "$LINENO" 5
  13902. fi
  13903. else
  13904. as_fn_error $? "SASL header not found" "$LINENO" 5
  13905. fi
  13906. done
  13907. fi
  13908. $as_echo "#define HAVE_SASL 1" >>confdefs.h
  13909. fi
  13910. if test "$WITH_SASL" != no; then
  13911. BUILD_WITH_SASL_TRUE=
  13912. BUILD_WITH_SASL_FALSE='#'
  13913. else
  13914. BUILD_WITH_SASL_TRUE='#'
  13915. BUILD_WITH_SASL_FALSE=
  13916. fi
  13917. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  13918. $as_echo "$as_me: ----------------------------------------" >&6;}
  13919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP support" >&5
  13920. $as_echo_n "checking for LDAP support... " >&6; }
  13921. # Check whether --with-ldap was given.
  13922. if test "${with_ldap+set}" = set; then :
  13923. withval=$with_ldap; WITH_LDAP=$withval
  13924. else
  13925. WITH_LDAP=no
  13926. fi
  13927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_LDAP" >&5
  13928. $as_echo "$WITH_LDAP" >&6; }
  13929. if test "$WITH_LDAP" != no; then
  13930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sasl_bind_s in -lldap" >&5
  13931. $as_echo_n "checking for ldap_sasl_bind_s in -lldap... " >&6; }
  13932. if ${ac_cv_lib_ldap_ldap_sasl_bind_s+:} false; then :
  13933. $as_echo_n "(cached) " >&6
  13934. else
  13935. ac_check_lib_save_LIBS=$LIBS
  13936. LIBS="-lldap $LIBS"
  13937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13938. /* end confdefs.h. */
  13939. /* Override any GCC internal prototype to avoid an error.
  13940. Use char because int might match the return type of a GCC
  13941. builtin and then its argument prototype would still apply. */
  13942. #ifdef __cplusplus
  13943. extern "C"
  13944. #endif
  13945. char ldap_sasl_bind_s ();
  13946. int
  13947. main ()
  13948. {
  13949. return ldap_sasl_bind_s ();
  13950. ;
  13951. return 0;
  13952. }
  13953. _ACEOF
  13954. if ac_fn_c_try_link "$LINENO"; then :
  13955. ac_cv_lib_ldap_ldap_sasl_bind_s=yes
  13956. else
  13957. ac_cv_lib_ldap_ldap_sasl_bind_s=no
  13958. fi
  13959. rm -f core conftest.err conftest.$ac_objext \
  13960. conftest$ac_exeext conftest.$ac_ext
  13961. LIBS=$ac_check_lib_save_LIBS
  13962. fi
  13963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_sasl_bind_s" >&5
  13964. $as_echo "$ac_cv_lib_ldap_ldap_sasl_bind_s" >&6; }
  13965. if test "x$ac_cv_lib_ldap_ldap_sasl_bind_s" = xyes; then :
  13966. for ac_header in ldap.h
  13967. do :
  13968. ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
  13969. if test "x$ac_cv_header_ldap_h" = xyes; then :
  13970. cat >>confdefs.h <<_ACEOF
  13971. #define HAVE_LDAP_H 1
  13972. _ACEOF
  13973. LDAP_LIB=-lldap
  13974. $as_echo "#define HAVE_LIBLDAP 1" >>confdefs.h
  13975. $as_echo "#define HAVE_LDAP_H 1" >>confdefs.h
  13976. else
  13977. as_fn_error $? "ldap headers not found, install them or build without --with-ldap" "$LINENO" 5
  13978. fi
  13979. done
  13980. else
  13981. as_fn_error $? "ldap library not found, install it or build without --with-ldap" "$LINENO" 5
  13982. fi
  13983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_printf in -llber" >&5
  13984. $as_echo_n "checking for ber_printf in -llber... " >&6; }
  13985. if ${ac_cv_lib_lber_ber_printf+:} false; then :
  13986. $as_echo_n "(cached) " >&6
  13987. else
  13988. ac_check_lib_save_LIBS=$LIBS
  13989. LIBS="-llber $LIBS"
  13990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13991. /* end confdefs.h. */
  13992. /* Override any GCC internal prototype to avoid an error.
  13993. Use char because int might match the return type of a GCC
  13994. builtin and then its argument prototype would still apply. */
  13995. #ifdef __cplusplus
  13996. extern "C"
  13997. #endif
  13998. char ber_printf ();
  13999. int
  14000. main ()
  14001. {
  14002. return ber_printf ();
  14003. ;
  14004. return 0;
  14005. }
  14006. _ACEOF
  14007. if ac_fn_c_try_link "$LINENO"; then :
  14008. ac_cv_lib_lber_ber_printf=yes
  14009. else
  14010. ac_cv_lib_lber_ber_printf=no
  14011. fi
  14012. rm -f core conftest.err conftest.$ac_objext \
  14013. conftest$ac_exeext conftest.$ac_ext
  14014. LIBS=$ac_check_lib_save_LIBS
  14015. fi
  14016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_printf" >&5
  14017. $as_echo "$ac_cv_lib_lber_ber_printf" >&6; }
  14018. if test "x$ac_cv_lib_lber_ber_printf" = xyes; then :
  14019. for ac_header in lber.h
  14020. do :
  14021. ac_fn_c_check_header_mongrel "$LINENO" "lber.h" "ac_cv_header_lber_h" "$ac_includes_default"
  14022. if test "x$ac_cv_header_lber_h" = xyes; then :
  14023. cat >>confdefs.h <<_ACEOF
  14024. #define HAVE_LBER_H 1
  14025. _ACEOF
  14026. LBER_LIB=-llber
  14027. $as_echo "#define HAVE_LIBLBER 1" >>confdefs.h
  14028. $as_echo "#define HAVE_LBER_H 1" >>confdefs.h
  14029. else
  14030. as_fn_error $? "lber headers not found, install them or build without --with-ldap" "$LINENO" 5
  14031. fi
  14032. done
  14033. else
  14034. as_fn_error $? "lber library not found, install it or build without --with-ldap" "$LINENO" 5
  14035. fi
  14036. fi
  14037. if test "$WITH_LDAP" != no; then
  14038. BUILD_WITH_LDAP_TRUE=
  14039. BUILD_WITH_LDAP_FALSE='#'
  14040. else
  14041. BUILD_WITH_LDAP_TRUE='#'
  14042. BUILD_WITH_LDAP_FALSE=
  14043. fi
  14044. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  14045. $as_echo "$as_me: ----------------------------------------" >&6;}
  14046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAM support" >&5
  14047. $as_echo_n "checking for PAM support... " >&6; }
  14048. # Check whether --with-pam was given.
  14049. if test "${with_pam+set}" = set; then :
  14050. withval=$with_pam; WITH_PAM=$withval
  14051. else
  14052. WITH_PAM=no
  14053. fi
  14054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  14055. $as_echo "$withval" >&6; }
  14056. if test "$WITH_PAM" != "no"; then
  14057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
  14058. $as_echo_n "checking for pam_start in -lpam... " >&6; }
  14059. if ${ac_cv_lib_pam_pam_start+:} false; then :
  14060. $as_echo_n "(cached) " >&6
  14061. else
  14062. ac_check_lib_save_LIBS=$LIBS
  14063. LIBS="-lpam $LIBS"
  14064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14065. /* end confdefs.h. */
  14066. /* Override any GCC internal prototype to avoid an error.
  14067. Use char because int might match the return type of a GCC
  14068. builtin and then its argument prototype would still apply. */
  14069. #ifdef __cplusplus
  14070. extern "C"
  14071. #endif
  14072. char pam_start ();
  14073. int
  14074. main ()
  14075. {
  14076. return pam_start ();
  14077. ;
  14078. return 0;
  14079. }
  14080. _ACEOF
  14081. if ac_fn_c_try_link "$LINENO"; then :
  14082. ac_cv_lib_pam_pam_start=yes
  14083. else
  14084. ac_cv_lib_pam_pam_start=no
  14085. fi
  14086. rm -f core conftest.err conftest.$ac_objext \
  14087. conftest$ac_exeext conftest.$ac_ext
  14088. LIBS=$ac_check_lib_save_LIBS
  14089. fi
  14090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
  14091. $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
  14092. if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
  14093. for ac_header in security/pam_appl.h
  14094. do :
  14095. ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
  14096. if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
  14097. cat >>confdefs.h <<_ACEOF
  14098. #define HAVE_SECURITY_PAM_APPL_H 1
  14099. _ACEOF
  14100. PAM_LIB=-lpam
  14101. $as_echo "#define HAVE_PAM 1" >>confdefs.h
  14102. $as_echo "#define HAVE_SECURITY_PAM_APPL_H 1" >>confdefs.h
  14103. else
  14104. as_fn_error $? "pam headers not found, install them or build without --with-pam" "$LINENO" 5
  14105. fi
  14106. done
  14107. else
  14108. as_fn_error $? "pam library not found, install it or build without --with-pam" "$LINENO" 5
  14109. fi
  14110. fi
  14111. if test "$WITH_PAM" != no; then
  14112. BUILD_WITH_PAM_TRUE=
  14113. BUILD_WITH_PAM_FALSE='#'
  14114. else
  14115. BUILD_WITH_PAM_TRUE='#'
  14116. BUILD_WITH_PAM_FALSE=
  14117. fi
  14118. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  14119. $as_echo "$as_me: ----------------------------------------" >&6;}
  14120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended attributes support" >&5
  14121. $as_echo_n "checking for extended attributes support... " >&6; }
  14122. # Check whether --with-attr was given.
  14123. if test "${with_attr+set}" = set; then :
  14124. withval=$with_attr; WITH_ATTR=$withval
  14125. else
  14126. WITH_ATTR=no
  14127. fi
  14128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_ATTR" >&5
  14129. $as_echo "$WITH_ATTR" >&6; }
  14130. if test "$WITH_ATTR" != no; then
  14131. have_xattr=no
  14132. # Linux getxattr
  14133. ac_fn_c_check_func "$LINENO" "getxattr" "ac_cv_func_getxattr"
  14134. if test "x$ac_cv_func_getxattr" = xyes; then :
  14135. for ac_header in sys/xattr.h
  14136. do :
  14137. ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
  14138. if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
  14139. cat >>confdefs.h <<_ACEOF
  14140. #define HAVE_SYS_XATTR_H 1
  14141. _ACEOF
  14142. $as_echo "#define HAVE_XATTR 1" >>confdefs.h
  14143. $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
  14144. have_xattr=yes
  14145. fi
  14146. done
  14147. fi
  14148. # (Free)BSD extattr
  14149. ac_fn_c_check_func "$LINENO" "extattr_get_file" "ac_cv_func_extattr_get_file"
  14150. if test "x$ac_cv_func_extattr_get_file" = xyes; then :
  14151. for ac_header in sys/extattr.h
  14152. do :
  14153. ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
  14154. if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
  14155. cat >>confdefs.h <<_ACEOF
  14156. #define HAVE_SYS_EXTATTR_H 1
  14157. _ACEOF
  14158. $as_echo "#define HAVE_EXTATTR 1" >>confdefs.h
  14159. $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
  14160. have_xattr=yes
  14161. fi
  14162. done
  14163. fi
  14164. # libattr (linux only?)
  14165. if test "$have_xattr" = no; then
  14166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for attr_get in -lattr" >&5
  14167. $as_echo_n "checking for attr_get in -lattr... " >&6; }
  14168. if ${ac_cv_lib_attr_attr_get+:} false; then :
  14169. $as_echo_n "(cached) " >&6
  14170. else
  14171. ac_check_lib_save_LIBS=$LIBS
  14172. LIBS="-lattr $LIBS"
  14173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14174. /* end confdefs.h. */
  14175. /* Override any GCC internal prototype to avoid an error.
  14176. Use char because int might match the return type of a GCC
  14177. builtin and then its argument prototype would still apply. */
  14178. #ifdef __cplusplus
  14179. extern "C"
  14180. #endif
  14181. char attr_get ();
  14182. int
  14183. main ()
  14184. {
  14185. return attr_get ();
  14186. ;
  14187. return 0;
  14188. }
  14189. _ACEOF
  14190. if ac_fn_c_try_link "$LINENO"; then :
  14191. ac_cv_lib_attr_attr_get=yes
  14192. else
  14193. ac_cv_lib_attr_attr_get=no
  14194. fi
  14195. rm -f core conftest.err conftest.$ac_objext \
  14196. conftest$ac_exeext conftest.$ac_ext
  14197. LIBS=$ac_check_lib_save_LIBS
  14198. fi
  14199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_attr_get" >&5
  14200. $as_echo "$ac_cv_lib_attr_attr_get" >&6; }
  14201. if test "x$ac_cv_lib_attr_attr_get" = xyes; then :
  14202. for ac_header in attr/attributes.h
  14203. do :
  14204. ac_fn_c_check_header_mongrel "$LINENO" "attr/attributes.h" "ac_cv_header_attr_attributes_h" "$ac_includes_default"
  14205. if test "x$ac_cv_header_attr_attributes_h" = xyes; then :
  14206. cat >>confdefs.h <<_ACEOF
  14207. #define HAVE_ATTR_ATTRIBUTES_H 1
  14208. _ACEOF
  14209. ATTR_LIB=-lattr
  14210. $as_echo "#define HAVE_XATTR 1" >>confdefs.h
  14211. $as_echo "#define HAVE_ATTR_ATTRIBUTES_H 1" >>confdefs.h
  14212. have_xattr=yes
  14213. fi
  14214. done
  14215. fi
  14216. fi
  14217. if test "$have_xattr" = no; then
  14218. as_fn_error $? "no backend found implementing extended attributes" "$LINENO" 5
  14219. fi
  14220. fi
  14221. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  14222. $as_echo "$as_me: ----------------------------------------" >&6;}
  14223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for valgrind" >&5
  14224. $as_echo_n "checking for valgrind... " >&6; }
  14225. # Check whether --with-valgrind was given.
  14226. if test "${with_valgrind+set}" = set; then :
  14227. withval=$with_valgrind; WITH_VALGRIND=$withval
  14228. else
  14229. WITH_VALGRIND=no
  14230. fi
  14231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_VALGRIND" >&5
  14232. $as_echo "$WITH_VALGRIND" >&6; }
  14233. if test "$WITH_VALGRIND" != no; then
  14234. for ac_header in valgrind/valgrind.h
  14235. do :
  14236. ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
  14237. if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then :
  14238. cat >>confdefs.h <<_ACEOF
  14239. #define HAVE_VALGRIND_VALGRIND_H 1
  14240. _ACEOF
  14241. else
  14242. as_fn_error $? "valgrind headers not found. install them or build without --with-valgrind" "$LINENO" 5
  14243. fi
  14244. done
  14245. fi
  14246. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  14247. $as_echo "$as_me: ----------------------------------------" >&6;}
  14248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunwind" >&5
  14249. $as_echo_n "checking for libunwind... " >&6; }
  14250. # Check whether --with-libunwind was given.
  14251. if test "${with_libunwind+set}" = set; then :
  14252. withval=$with_libunwind; WITH_LIBUNWIND=$withval
  14253. else
  14254. WITH_LIBUNWIND=no
  14255. fi
  14256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_LIBUNWIND" >&5
  14257. $as_echo "$WITH_LIBUNWIND" >&6; }
  14258. if test "$WITH_LIBUNWIND" != no; then
  14259. pkg_failed=no
  14260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUNWIND" >&5
  14261. $as_echo_n "checking for LIBUNWIND... " >&6; }
  14262. if test -n "$LIBUNWIND_CFLAGS"; then
  14263. pkg_cv_LIBUNWIND_CFLAGS="$LIBUNWIND_CFLAGS"
  14264. elif test -n "$PKG_CONFIG"; then
  14265. if test -n "$PKG_CONFIG" && \
  14266. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5
  14267. ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5
  14268. ac_status=$?
  14269. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14270. test $ac_status = 0; }; then
  14271. pkg_cv_LIBUNWIND_CFLAGS=`$PKG_CONFIG --cflags "libunwind" 2>/dev/null`
  14272. test "x$?" != "x0" && pkg_failed=yes
  14273. else
  14274. pkg_failed=yes
  14275. fi
  14276. else
  14277. pkg_failed=untried
  14278. fi
  14279. if test -n "$LIBUNWIND_LIBS"; then
  14280. pkg_cv_LIBUNWIND_LIBS="$LIBUNWIND_LIBS"
  14281. elif test -n "$PKG_CONFIG"; then
  14282. if test -n "$PKG_CONFIG" && \
  14283. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5
  14284. ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5
  14285. ac_status=$?
  14286. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14287. test $ac_status = 0; }; then
  14288. pkg_cv_LIBUNWIND_LIBS=`$PKG_CONFIG --libs "libunwind" 2>/dev/null`
  14289. test "x$?" != "x0" && pkg_failed=yes
  14290. else
  14291. pkg_failed=yes
  14292. fi
  14293. else
  14294. pkg_failed=untried
  14295. fi
  14296. if test $pkg_failed = yes; then
  14297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14298. $as_echo "no" >&6; }
  14299. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14300. _pkg_short_errors_supported=yes
  14301. else
  14302. _pkg_short_errors_supported=no
  14303. fi
  14304. if test $_pkg_short_errors_supported = yes; then
  14305. LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libunwind" 2>&1`
  14306. else
  14307. LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libunwind" 2>&1`
  14308. fi
  14309. # Put the nasty error message in config.log where it belongs
  14310. echo "$LIBUNWIND_PKG_ERRORS" >&5
  14311. as_fn_error $? "libunwind not found. install it or build without --with-libunwind" "$LINENO" 5
  14312. elif test $pkg_failed = untried; then
  14313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14314. $as_echo "no" >&6; }
  14315. as_fn_error $? "libunwind not found. install it or build without --with-libunwind" "$LINENO" 5
  14316. else
  14317. LIBUNWIND_CFLAGS=$pkg_cv_LIBUNWIND_CFLAGS
  14318. LIBUNWIND_LIBS=$pkg_cv_LIBUNWIND_LIBS
  14319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14320. $as_echo "yes" >&6; }
  14321. fi
  14322. $as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
  14323. fi
  14324. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  14325. $as_echo "$as_me: ----------------------------------------" >&6;}
  14326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberos5" >&5
  14327. $as_echo_n "checking for kerberos5... " >&6; }
  14328. # Check whether --with-krb5 was given.
  14329. if test "${with_krb5+set}" = set; then :
  14330. withval=$with_krb5; WITH_KRB5=$withval
  14331. else
  14332. WITH_KRB5=no
  14333. fi
  14334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_KRB5" >&5
  14335. $as_echo "$WITH_KRB5" >&6; }
  14336. if test "$WITH_KRB5" != no; then
  14337. if test "$WITH_KRB5" != yes; then
  14338. krb5_append_CPPFLAGS=" -I$WITH_KRB5/include"
  14339. krb5_append_LDFLAGS=" -L$WITH_KRB5/lib"
  14340. fi
  14341. fi
  14342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking custom include directory for kerberos5" >&5
  14343. $as_echo_n "checking custom include directory for kerberos5... " >&6; }
  14344. # Check whether --with-krb5-includes was given.
  14345. if test "${with_krb5_includes+set}" = set; then :
  14346. withval=$with_krb5_includes;
  14347. if test "$WITH_KRB5" = no; then
  14348. as_fn_error $? "build --with-krb5 to use --with-krb5-includes" "$LINENO" 5
  14349. fi
  14350. krb5_append_CPPFLAGS=" -I$withval"
  14351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  14352. $as_echo "$withval" >&6; }
  14353. else
  14354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14355. $as_echo "no" >&6; }
  14356. fi
  14357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking custom lib directory for kerberos5" >&5
  14358. $as_echo_n "checking custom lib directory for kerberos5... " >&6; }
  14359. # Check whether --with-krb5-libs was given.
  14360. if test "${with_krb5_libs+set}" = set; then :
  14361. withval=$with_krb5_libs;
  14362. if test "$WITH_KRB5" = no; then
  14363. as_fn_error $? "build --with-krb5 to use --with-krb5-libs" "$LINENO" 5
  14364. fi
  14365. krb5_append_LDFLAGS=" -L$withval"
  14366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  14367. $as_echo "$withval" >&6; }
  14368. else
  14369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14370. $as_echo "no" >&6; }
  14371. fi
  14372. if test "$WITH_KRB5" != no; then
  14373. CPPFLAGS="${CPPFLAGS}${krb5_append_CPPFLAGS}"
  14374. LDFLAGS="${LDFLAGS}${krb5_append_LDFLAGS}"
  14375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_acquire_cred in -lgssapi_krb5" >&5
  14376. $as_echo_n "checking for gss_acquire_cred in -lgssapi_krb5... " >&6; }
  14377. if ${ac_cv_lib_gssapi_krb5_gss_acquire_cred+:} false; then :
  14378. $as_echo_n "(cached) " >&6
  14379. else
  14380. ac_check_lib_save_LIBS=$LIBS
  14381. LIBS="-lgssapi_krb5 $LIBS"
  14382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14383. /* end confdefs.h. */
  14384. /* Override any GCC internal prototype to avoid an error.
  14385. Use char because int might match the return type of a GCC
  14386. builtin and then its argument prototype would still apply. */
  14387. #ifdef __cplusplus
  14388. extern "C"
  14389. #endif
  14390. char gss_acquire_cred ();
  14391. int
  14392. main ()
  14393. {
  14394. return gss_acquire_cred ();
  14395. ;
  14396. return 0;
  14397. }
  14398. _ACEOF
  14399. if ac_fn_c_try_link "$LINENO"; then :
  14400. ac_cv_lib_gssapi_krb5_gss_acquire_cred=yes
  14401. else
  14402. ac_cv_lib_gssapi_krb5_gss_acquire_cred=no
  14403. fi
  14404. rm -f core conftest.err conftest.$ac_objext \
  14405. conftest$ac_exeext conftest.$ac_ext
  14406. LIBS=$ac_check_lib_save_LIBS
  14407. fi
  14408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_acquire_cred" >&5
  14409. $as_echo "$ac_cv_lib_gssapi_krb5_gss_acquire_cred" >&6; }
  14410. if test "x$ac_cv_lib_gssapi_krb5_gss_acquire_cred" = xyes; then :
  14411. for ac_header in gssapi/gssapi_krb5.h
  14412. do :
  14413. ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_krb5.h" "ac_cv_header_gssapi_gssapi_krb5_h" "$ac_includes_default"
  14414. if test "x$ac_cv_header_gssapi_gssapi_krb5_h" = xyes; then :
  14415. cat >>confdefs.h <<_ACEOF
  14416. #define HAVE_GSSAPI_GSSAPI_KRB5_H 1
  14417. _ACEOF
  14418. KRB5_LIB="-lkrb5 -lgssapi_krb5"
  14419. $as_echo "#define HAVE_KRB5 1" >>confdefs.h
  14420. else
  14421. as_fn_error $? "gssapi_krb5 headers were not found, install them or build without --with-krb5" "$LINENO" 5
  14422. fi
  14423. done
  14424. else
  14425. as_fn_error $? "gssapi_krb5 libs were not found, install them or build without --with-krb5" "$LINENO" 5
  14426. fi
  14427. case "$host_os" in
  14428. *darwin*|*cygwin* ) KRB5_LIB="$KRB5_LIB -lcom_err" ;;
  14429. * ) ;;
  14430. esac
  14431. fi
  14432. if test "$WITH_KRB5" != no; then
  14433. BUILD_WITH_KRB5_TRUE=
  14434. BUILD_WITH_KRB5_FALSE='#'
  14435. else
  14436. BUILD_WITH_KRB5_TRUE='#'
  14437. BUILD_WITH_KRB5_FALSE=
  14438. fi
  14439. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  14440. $as_echo "$as_me: ----------------------------------------" >&6;}
  14441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
  14442. $as_echo_n "checking for OpenSSL... " >&6; }
  14443. # Check whether --with-openssl was given.
  14444. if test "${with_openssl+set}" = set; then :
  14445. withval=$with_openssl; WITH_OPENSSL=$withval
  14446. else
  14447. WITH_OPENSSL=no
  14448. fi
  14449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_OPENSSL" >&5
  14450. $as_echo "$WITH_OPENSSL" >&6; }
  14451. if test ! "$WITH_OPENSSL" = no; then
  14452. BUILD_WITH_OPENSSL_TRUE=
  14453. BUILD_WITH_OPENSSL_FALSE='#'
  14454. else
  14455. BUILD_WITH_OPENSSL_TRUE='#'
  14456. BUILD_WITH_OPENSSL_FALSE=
  14457. fi
  14458. if test "$WITH_OPENSSL" != no; then
  14459. if test "$WITH_OPENSSL" != yes; then
  14460. openssl_append_CPPFLAGS=" -I$WITH_OPENSSL/include"
  14461. openssl_append_LDFLAGS=" -L$WITH_OPENSSL/lib"
  14462. fi
  14463. fi
  14464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking custom include directory for openssl" >&5
  14465. $as_echo_n "checking custom include directory for openssl... " >&6; }
  14466. # Check whether --with-openssl-includes was given.
  14467. if test "${with_openssl_includes+set}" = set; then :
  14468. withval=$with_openssl_includes;
  14469. if test "$WITH_OPENSSL" = no; then
  14470. as_fn_error $? "build --with-openssl to use --with-openssl-includes" "$LINENO" 5
  14471. fi
  14472. openssl_append_CPPFLAGS=" -I$withval"
  14473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  14474. $as_echo "$withval" >&6; }
  14475. else
  14476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14477. $as_echo "no" >&6; }
  14478. fi
  14479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking custom lib directory for openssl" >&5
  14480. $as_echo_n "checking custom lib directory for openssl... " >&6; }
  14481. # Check whether --with-openssl-libs was given.
  14482. if test "${with_openssl_libs+set}" = set; then :
  14483. withval=$with_openssl_libs;
  14484. if test "$WITH_OPENSSL" = no; then
  14485. as_fn_error $? "build --with-openssl to use --with-openssl-libs" "$LINENO" 5
  14486. fi
  14487. openssl_append_LDFLAGS=" -L$withval"
  14488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  14489. $as_echo "$withval" >&6; }
  14490. else
  14491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14492. $as_echo "no" >&6; }
  14493. fi
  14494. if test "$WITH_OPENSSL" != no; then
  14495. if test "$WITH_KRB5" != no; then
  14496. $as_echo "#define USE_OPENSSL_KERBEROS 1" >>confdefs.h
  14497. fi
  14498. CPPFLAGS="${CPPFLAGS}${openssl_append_CPPFLAGS}"
  14499. LDFLAGS="${LDFLAGS}${openssl_append_LDFLAGS}"
  14500. for ac_header in openssl/ssl.h
  14501. do :
  14502. ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
  14503. if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
  14504. cat >>confdefs.h <<_ACEOF
  14505. #define HAVE_OPENSSL_SSL_H 1
  14506. _ACEOF
  14507. else
  14508. as_fn_error $? "openssl headers not found. install them or build without --with-openssl" "$LINENO" 5
  14509. fi
  14510. done
  14511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_bytes in -lcrypto" >&5
  14512. $as_echo_n "checking for RAND_bytes in -lcrypto... " >&6; }
  14513. if ${ac_cv_lib_crypto_RAND_bytes+:} false; then :
  14514. $as_echo_n "(cached) " >&6
  14515. else
  14516. ac_check_lib_save_LIBS=$LIBS
  14517. LIBS="-lcrypto $LIBS"
  14518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14519. /* end confdefs.h. */
  14520. /* Override any GCC internal prototype to avoid an error.
  14521. Use char because int might match the return type of a GCC
  14522. builtin and then its argument prototype would still apply. */
  14523. #ifdef __cplusplus
  14524. extern "C"
  14525. #endif
  14526. char RAND_bytes ();
  14527. int
  14528. main ()
  14529. {
  14530. return RAND_bytes ();
  14531. ;
  14532. return 0;
  14533. }
  14534. _ACEOF
  14535. if ac_fn_c_try_link "$LINENO"; then :
  14536. ac_cv_lib_crypto_RAND_bytes=yes
  14537. else
  14538. ac_cv_lib_crypto_RAND_bytes=no
  14539. fi
  14540. rm -f core conftest.err conftest.$ac_objext \
  14541. conftest$ac_exeext conftest.$ac_ext
  14542. LIBS=$ac_check_lib_save_LIBS
  14543. fi
  14544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_bytes" >&5
  14545. $as_echo "$ac_cv_lib_crypto_RAND_bytes" >&6; }
  14546. if test "x$ac_cv_lib_crypto_RAND_bytes" = xyes; then :
  14547. CRYPTO_LIB="-lcrypto"
  14548. else
  14549. as_fn_error $? "openssl crypto library not found. install it or build without --with-openssl" "$LINENO" 5
  14550. fi
  14551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
  14552. $as_echo_n "checking for SSL_new in -lssl... " >&6; }
  14553. if ${ac_cv_lib_ssl_SSL_new+:} false; then :
  14554. $as_echo_n "(cached) " >&6
  14555. else
  14556. ac_check_lib_save_LIBS=$LIBS
  14557. LIBS="-lssl -lcrypto "$DL_LIB"
  14558. $LIBS"
  14559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14560. /* end confdefs.h. */
  14561. /* Override any GCC internal prototype to avoid an error.
  14562. Use char because int might match the return type of a GCC
  14563. builtin and then its argument prototype would still apply. */
  14564. #ifdef __cplusplus
  14565. extern "C"
  14566. #endif
  14567. char SSL_new ();
  14568. int
  14569. main ()
  14570. {
  14571. return SSL_new ();
  14572. ;
  14573. return 0;
  14574. }
  14575. _ACEOF
  14576. if ac_fn_c_try_link "$LINENO"; then :
  14577. ac_cv_lib_ssl_SSL_new=yes
  14578. else
  14579. ac_cv_lib_ssl_SSL_new=no
  14580. fi
  14581. rm -f core conftest.err conftest.$ac_objext \
  14582. conftest$ac_exeext conftest.$ac_ext
  14583. LIBS=$ac_check_lib_save_LIBS
  14584. fi
  14585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
  14586. $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
  14587. if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
  14588. OPENSSL_LIBS="${openssl_append_LDFLAGS} -lssl -lcrypto"
  14589. else
  14590. as_fn_error $? "openssl ssl library not found. install it or build without --with-openssl" "$LINENO" 5
  14591. fi
  14592. $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
  14593. OPENSSL_CFLAGS="${openssl_append_CPPFLAGS}"
  14594. fi
  14595. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  14596. $as_echo "$as_me: ----------------------------------------" >&6;}
  14597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wolfSSL" >&5
  14598. $as_echo_n "checking for wolfSSL... " >&6; }
  14599. # Check whether --with-wolfssl was given.
  14600. if test "${with_wolfssl+set}" = set; then :
  14601. withval=$with_wolfssl; WITH_WOLFSSL=$withval
  14602. else
  14603. WITH_WOLFSSL=no
  14604. fi
  14605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_WOLFSSL" >&5
  14606. $as_echo "$WITH_WOLFSSL" >&6; }
  14607. if test ! "$WITH_WOLFSSL" = no; then
  14608. BUILD_WITH_WOLFSSL_TRUE=
  14609. BUILD_WITH_WOLFSSL_FALSE='#'
  14610. else
  14611. BUILD_WITH_WOLFSSL_TRUE='#'
  14612. BUILD_WITH_WOLFSSL_FALSE=
  14613. fi
  14614. if test "$WITH_WOLFSSL" != no; then
  14615. CPPFLAGS_SAVE="${CPPFLAGS}"
  14616. LDFLAGS_SAVE="${LDFLAGS}"
  14617. if test "$WITH_WOLFSSL" != yes; then
  14618. WOLFSSL_CFLAGS="-I$WITH_WOLFSSL/include -I$WITH_WOLFSSL/include/wolfssl"
  14619. WOLFSSL_LIBS="-L$WITH_WOLFSSL/lib -lwolfssl"
  14620. LDFLAGS="${LDFLAGS} -L$WITH_WOLFSSL/lib"
  14621. else
  14622. pkg_failed=no
  14623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WOLFSSL" >&5
  14624. $as_echo_n "checking for WOLFSSL... " >&6; }
  14625. if test -n "$WOLFSSL_CFLAGS"; then
  14626. pkg_cv_WOLFSSL_CFLAGS="$WOLFSSL_CFLAGS"
  14627. elif test -n "$PKG_CONFIG"; then
  14628. if test -n "$PKG_CONFIG" && \
  14629. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wolfssl\""; } >&5
  14630. ($PKG_CONFIG --exists --print-errors "wolfssl") 2>&5
  14631. ac_status=$?
  14632. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14633. test $ac_status = 0; }; then
  14634. pkg_cv_WOLFSSL_CFLAGS=`$PKG_CONFIG --cflags "wolfssl" 2>/dev/null`
  14635. test "x$?" != "x0" && pkg_failed=yes
  14636. else
  14637. pkg_failed=yes
  14638. fi
  14639. else
  14640. pkg_failed=untried
  14641. fi
  14642. if test -n "$WOLFSSL_LIBS"; then
  14643. pkg_cv_WOLFSSL_LIBS="$WOLFSSL_LIBS"
  14644. elif test -n "$PKG_CONFIG"; then
  14645. if test -n "$PKG_CONFIG" && \
  14646. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wolfssl\""; } >&5
  14647. ($PKG_CONFIG --exists --print-errors "wolfssl") 2>&5
  14648. ac_status=$?
  14649. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14650. test $ac_status = 0; }; then
  14651. pkg_cv_WOLFSSL_LIBS=`$PKG_CONFIG --libs "wolfssl" 2>/dev/null`
  14652. test "x$?" != "x0" && pkg_failed=yes
  14653. else
  14654. pkg_failed=yes
  14655. fi
  14656. else
  14657. pkg_failed=untried
  14658. fi
  14659. if test $pkg_failed = yes; then
  14660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14661. $as_echo "no" >&6; }
  14662. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14663. _pkg_short_errors_supported=yes
  14664. else
  14665. _pkg_short_errors_supported=no
  14666. fi
  14667. if test $_pkg_short_errors_supported = yes; then
  14668. WOLFSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wolfssl" 2>&1`
  14669. else
  14670. WOLFSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wolfssl" 2>&1`
  14671. fi
  14672. # Put the nasty error message in config.log where it belongs
  14673. echo "$WOLFSSL_PKG_ERRORS" >&5
  14674. as_fn_error $? "wolfssl not found, install it or build without --with-wolfssl" "$LINENO" 5
  14675. elif test $pkg_failed = untried; then
  14676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14677. $as_echo "no" >&6; }
  14678. as_fn_error $? "wolfssl not found, install it or build without --with-wolfssl" "$LINENO" 5
  14679. else
  14680. WOLFSSL_CFLAGS=$pkg_cv_WOLFSSL_CFLAGS
  14681. WOLFSSL_LIBS=$pkg_cv_WOLFSSL_LIBS
  14682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14683. $as_echo "yes" >&6; }
  14684. fi
  14685. if test "$WOLFSSL_LIBS" != "-lwolfssl"; then
  14686. LDFLAGS="${LDFLAGS} ${WOLFSSL_LIBS% -lwolfssl}"
  14687. fi
  14688. fi
  14689. CPPFLAGS="${CPPFLAGS} $WOLFSSL_CFLAGS"
  14690. for ac_header in wolfssl/ssl.h
  14691. do :
  14692. ac_fn_c_check_header_mongrel "$LINENO" "wolfssl/ssl.h" "ac_cv_header_wolfssl_ssl_h" "$ac_includes_default"
  14693. if test "x$ac_cv_header_wolfssl_ssl_h" = xyes; then :
  14694. cat >>confdefs.h <<_ACEOF
  14695. #define HAVE_WOLFSSL_SSL_H 1
  14696. _ACEOF
  14697. else
  14698. as_fn_error $? "wolfssl headers not found. install them or build without --with-wolfssl" "$LINENO" 5
  14699. fi
  14700. done
  14701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wolfSSL_Init in -lwolfssl" >&5
  14702. $as_echo_n "checking for wolfSSL_Init in -lwolfssl... " >&6; }
  14703. if ${ac_cv_lib_wolfssl_wolfSSL_Init+:} false; then :
  14704. $as_echo_n "(cached) " >&6
  14705. else
  14706. ac_check_lib_save_LIBS=$LIBS
  14707. LIBS="-lwolfssl $LIBS"
  14708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14709. /* end confdefs.h. */
  14710. /* Override any GCC internal prototype to avoid an error.
  14711. Use char because int might match the return type of a GCC
  14712. builtin and then its argument prototype would still apply. */
  14713. #ifdef __cplusplus
  14714. extern "C"
  14715. #endif
  14716. char wolfSSL_Init ();
  14717. int
  14718. main ()
  14719. {
  14720. return wolfSSL_Init ();
  14721. ;
  14722. return 0;
  14723. }
  14724. _ACEOF
  14725. if ac_fn_c_try_link "$LINENO"; then :
  14726. ac_cv_lib_wolfssl_wolfSSL_Init=yes
  14727. else
  14728. ac_cv_lib_wolfssl_wolfSSL_Init=no
  14729. fi
  14730. rm -f core conftest.err conftest.$ac_objext \
  14731. conftest$ac_exeext conftest.$ac_ext
  14732. LIBS=$ac_check_lib_save_LIBS
  14733. fi
  14734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wolfssl_wolfSSL_Init" >&5
  14735. $as_echo "$ac_cv_lib_wolfssl_wolfSSL_Init" >&6; }
  14736. if test "x$ac_cv_lib_wolfssl_wolfSSL_Init" = xyes; then :
  14737. WOLFSSL_CRYPTO_LIB="-lwolfssl"
  14738. else
  14739. as_fn_error $? "wolfssl crypto library not found. install it or build without --with-wolfssl" "$LINENO" 5
  14740. fi
  14741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14742. /* end confdefs.h. */
  14743. #include <wolfssl/options.h>
  14744. #if !defined(HAVE_LIGHTY) && !defined(OPENSSL_EXTRA)
  14745. #error HAVE_LIGHTY macro not defined
  14746. #endif
  14747. _ACEOF
  14748. if ac_fn_c_try_compile "$LINENO"; then :
  14749. else
  14750. as_fn_error $? "wolfssl must be built with ./configure --enable-lighty" "$LINENO" 5
  14751. fi
  14752. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14753. if test "$WITH_OPENSSL" = no; then
  14754. CRYPTO_LIB="$WOLFSSL_CRYPTO_LIB"
  14755. else
  14756. CPPFLAGS="${CPPFLAGS_SAVE}"
  14757. LDFLAGS="${LDFLAGS_SAVE}"
  14758. fi
  14759. fi
  14760. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  14761. $as_echo "$as_me: ----------------------------------------" >&6;}
  14762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedTLS" >&5
  14763. $as_echo_n "checking for mbedTLS... " >&6; }
  14764. # Check whether --with-mbedtls was given.
  14765. if test "${with_mbedtls+set}" = set; then :
  14766. withval=$with_mbedtls; WITH_MBEDTLS=$withval
  14767. else
  14768. WITH_MBEDTLS=no
  14769. fi
  14770. if test "$WITH_MBEDTLS" != "no"; then
  14771. use_mbedtls=yes
  14772. if test "$WITH_MBEDTLS" != "yes"; then
  14773. CPPFLAGS="$CPPFLAGS -I$WITH_MBEDTLS/include"
  14774. LDFLAGS="$LDFLAGS -L$WITH_MBEDTLS/lib"
  14775. fi
  14776. else
  14777. use_mbedtls=no
  14778. fi
  14779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_mbedtls" >&5
  14780. $as_echo "$use_mbedtls" >&6; }
  14781. if test ! $WITH_MBEDTLS = no; then
  14782. BUILD_WITH_MBEDTLS_TRUE=
  14783. BUILD_WITH_MBEDTLS_FALSE='#'
  14784. else
  14785. BUILD_WITH_MBEDTLS_TRUE='#'
  14786. BUILD_WITH_MBEDTLS_FALSE=
  14787. fi
  14788. if test "x$use_mbedtls" = "xyes"; then
  14789. for ac_header in mbedtls/ssl.h
  14790. do :
  14791. ac_fn_c_check_header_mongrel "$LINENO" "mbedtls/ssl.h" "ac_cv_header_mbedtls_ssl_h" "$ac_includes_default"
  14792. if test "x$ac_cv_header_mbedtls_ssl_h" = xyes; then :
  14793. cat >>confdefs.h <<_ACEOF
  14794. #define HAVE_MBEDTLS_SSL_H 1
  14795. _ACEOF
  14796. fi
  14797. done
  14798. OLDLIBS="$LIBS"
  14799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_base64_encode in -lmbedcrypto" >&5
  14800. $as_echo_n "checking for mbedtls_base64_encode in -lmbedcrypto... " >&6; }
  14801. if ${ac_cv_lib_mbedcrypto_mbedtls_base64_encode+:} false; then :
  14802. $as_echo_n "(cached) " >&6
  14803. else
  14804. ac_check_lib_save_LIBS=$LIBS
  14805. LIBS="-lmbedcrypto $LIBS"
  14806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14807. /* end confdefs.h. */
  14808. /* Override any GCC internal prototype to avoid an error.
  14809. Use char because int might match the return type of a GCC
  14810. builtin and then its argument prototype would still apply. */
  14811. #ifdef __cplusplus
  14812. extern "C"
  14813. #endif
  14814. char mbedtls_base64_encode ();
  14815. int
  14816. main ()
  14817. {
  14818. return mbedtls_base64_encode ();
  14819. ;
  14820. return 0;
  14821. }
  14822. _ACEOF
  14823. if ac_fn_c_try_link "$LINENO"; then :
  14824. ac_cv_lib_mbedcrypto_mbedtls_base64_encode=yes
  14825. else
  14826. ac_cv_lib_mbedcrypto_mbedtls_base64_encode=no
  14827. fi
  14828. rm -f core conftest.err conftest.$ac_objext \
  14829. conftest$ac_exeext conftest.$ac_ext
  14830. LIBS=$ac_check_lib_save_LIBS
  14831. fi
  14832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedcrypto_mbedtls_base64_encode" >&5
  14833. $as_echo "$ac_cv_lib_mbedcrypto_mbedtls_base64_encode" >&6; }
  14834. if test "x$ac_cv_lib_mbedcrypto_mbedtls_base64_encode" = xyes; then :
  14835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_x509_get_name in -lmbedx509" >&5
  14836. $as_echo_n "checking for mbedtls_x509_get_name in -lmbedx509... " >&6; }
  14837. if ${ac_cv_lib_mbedx509_mbedtls_x509_get_name+:} false; then :
  14838. $as_echo_n "(cached) " >&6
  14839. else
  14840. ac_check_lib_save_LIBS=$LIBS
  14841. LIBS="-lmbedx509 -lmbedcrypto "$DL_LIB" $LIBS"
  14842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14843. /* end confdefs.h. */
  14844. /* Override any GCC internal prototype to avoid an error.
  14845. Use char because int might match the return type of a GCC
  14846. builtin and then its argument prototype would still apply. */
  14847. #ifdef __cplusplus
  14848. extern "C"
  14849. #endif
  14850. char mbedtls_x509_get_name ();
  14851. int
  14852. main ()
  14853. {
  14854. return mbedtls_x509_get_name ();
  14855. ;
  14856. return 0;
  14857. }
  14858. _ACEOF
  14859. if ac_fn_c_try_link "$LINENO"; then :
  14860. ac_cv_lib_mbedx509_mbedtls_x509_get_name=yes
  14861. else
  14862. ac_cv_lib_mbedx509_mbedtls_x509_get_name=no
  14863. fi
  14864. rm -f core conftest.err conftest.$ac_objext \
  14865. conftest$ac_exeext conftest.$ac_ext
  14866. LIBS=$ac_check_lib_save_LIBS
  14867. fi
  14868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedx509_mbedtls_x509_get_name" >&5
  14869. $as_echo "$ac_cv_lib_mbedx509_mbedtls_x509_get_name" >&6; }
  14870. if test "x$ac_cv_lib_mbedx509_mbedtls_x509_get_name" = xyes; then :
  14871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
  14872. $as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
  14873. if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then :
  14874. $as_echo_n "(cached) " >&6
  14875. else
  14876. ac_check_lib_save_LIBS=$LIBS
  14877. LIBS="-lmbedtls -lmbedcrypto "$DL_LIB" $LIBS"
  14878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14879. /* end confdefs.h. */
  14880. /* Override any GCC internal prototype to avoid an error.
  14881. Use char because int might match the return type of a GCC
  14882. builtin and then its argument prototype would still apply. */
  14883. #ifdef __cplusplus
  14884. extern "C"
  14885. #endif
  14886. char mbedtls_ssl_init ();
  14887. int
  14888. main ()
  14889. {
  14890. return mbedtls_ssl_init ();
  14891. ;
  14892. return 0;
  14893. }
  14894. _ACEOF
  14895. if ac_fn_c_try_link "$LINENO"; then :
  14896. ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
  14897. else
  14898. ac_cv_lib_mbedtls_mbedtls_ssl_init=no
  14899. fi
  14900. rm -f core conftest.err conftest.$ac_objext \
  14901. conftest$ac_exeext conftest.$ac_ext
  14902. LIBS=$ac_check_lib_save_LIBS
  14903. fi
  14904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
  14905. $as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
  14906. if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then :
  14907. MTLS_LIBS="-lmbedtls -lmbedx509 -lmbedcrypto"
  14908. CRYPTO_LIB="-lmbedcrypto"
  14909. $as_echo "#define HAVE_LIBMBEDTLS 1" >>confdefs.h
  14910. $as_echo "#define HAVE_LIBMBEDX509 1" >>confdefs.h
  14911. $as_echo "#define HAVE_LIBMBEDCRYPTO 1" >>confdefs.h
  14912. fi
  14913. fi
  14914. fi
  14915. LIBS="$OLDLIBS"
  14916. fi
  14917. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  14918. $as_echo "$as_me: ----------------------------------------" >&6;}
  14919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Nettle" >&5
  14920. $as_echo_n "checking for Nettle... " >&6; }
  14921. # Check whether --with-nettle was given.
  14922. if test "${with_nettle+set}" = set; then :
  14923. withval=$with_nettle; WITH_NETTLE=$withval
  14924. else
  14925. WITH_NETTLE=no
  14926. fi
  14927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_NETTLE" >&5
  14928. $as_echo "$WITH_NETTLE" >&6; }
  14929. if test "$WITH_NETTLE" != no; then
  14930. if test "$WITH_NETTLE" != yes; then
  14931. CPPFLAGS="${CPPFLAGS} -I$WITH_NETTLE/include"
  14932. LDFLAGS="${LDFLAGS} -L$WITH_NETTLE/lib"
  14933. fi
  14934. for ac_header in nettle/nettle-types.h
  14935. do :
  14936. ac_fn_c_check_header_mongrel "$LINENO" "nettle/nettle-types.h" "ac_cv_header_nettle_nettle_types_h" "$ac_includes_default"
  14937. if test "x$ac_cv_header_nettle_nettle_types_h" = xyes; then :
  14938. cat >>confdefs.h <<_ACEOF
  14939. #define HAVE_NETTLE_NETTLE_TYPES_H 1
  14940. _ACEOF
  14941. else
  14942. as_fn_error $? "nettle headers not found. install them or build without --with-nettle" "$LINENO" 5
  14943. fi
  14944. done
  14945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_md5_init in -lnettle" >&5
  14946. $as_echo_n "checking for nettle_md5_init in -lnettle... " >&6; }
  14947. if ${ac_cv_lib_nettle_nettle_md5_init+:} false; then :
  14948. $as_echo_n "(cached) " >&6
  14949. else
  14950. ac_check_lib_save_LIBS=$LIBS
  14951. LIBS="-lnettle $LIBS"
  14952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14953. /* end confdefs.h. */
  14954. /* Override any GCC internal prototype to avoid an error.
  14955. Use char because int might match the return type of a GCC
  14956. builtin and then its argument prototype would still apply. */
  14957. #ifdef __cplusplus
  14958. extern "C"
  14959. #endif
  14960. char nettle_md5_init ();
  14961. int
  14962. main ()
  14963. {
  14964. return nettle_md5_init ();
  14965. ;
  14966. return 0;
  14967. }
  14968. _ACEOF
  14969. if ac_fn_c_try_link "$LINENO"; then :
  14970. ac_cv_lib_nettle_nettle_md5_init=yes
  14971. else
  14972. ac_cv_lib_nettle_nettle_md5_init=no
  14973. fi
  14974. rm -f core conftest.err conftest.$ac_objext \
  14975. conftest$ac_exeext conftest.$ac_ext
  14976. LIBS=$ac_check_lib_save_LIBS
  14977. fi
  14978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_md5_init" >&5
  14979. $as_echo "$ac_cv_lib_nettle_nettle_md5_init" >&6; }
  14980. if test "x$ac_cv_lib_nettle_nettle_md5_init" = xyes; then :
  14981. CRYPTO_LIB="-lnettle"
  14982. else
  14983. as_fn_error $? "nettle crypto library not found. install it or build without --with-nettle" "$LINENO" 5
  14984. fi
  14985. fi
  14986. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  14987. $as_echo "$as_me: ----------------------------------------" >&6;}
  14988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS" >&5
  14989. $as_echo_n "checking for GnuTLS... " >&6; }
  14990. # Check whether --with-gnutls was given.
  14991. if test "${with_gnutls+set}" = set; then :
  14992. withval=$with_gnutls; WITH_GNUTLS=$withval
  14993. else
  14994. WITH_GNUTLS=no
  14995. fi
  14996. if test "$WITH_GNUTLS" != "no"; then
  14997. use_gnutls=yes
  14998. else
  14999. use_gnutls=no
  15000. fi
  15001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnutls" >&5
  15002. $as_echo "$use_gnutls" >&6; }
  15003. if test ! $WITH_GNUTLS = no; then
  15004. BUILD_WITH_GNUTLS_TRUE=
  15005. BUILD_WITH_GNUTLS_FALSE='#'
  15006. else
  15007. BUILD_WITH_GNUTLS_TRUE='#'
  15008. BUILD_WITH_GNUTLS_FALSE=
  15009. fi
  15010. GNUTLS_CFLAGS=
  15011. GNUTLS_LIBS=
  15012. if test "x$use_gnutls" = "xyes"; then
  15013. if test "$WITH_GNUTLS" != "yes"; then
  15014. GNUTLS_CFLAGS="-I$WITH_GNUTLS/include"
  15015. GNUTLS_LIBS="-L$WITH_GNUTLS/lib -lgnutls"
  15016. else
  15017. pkg_failed=no
  15018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
  15019. $as_echo_n "checking for GNUTLS... " >&6; }
  15020. if test -n "$GNUTLS_CFLAGS"; then
  15021. pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
  15022. elif test -n "$PKG_CONFIG"; then
  15023. if test -n "$PKG_CONFIG" && \
  15024. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 3.3.0\""; } >&5
  15025. ($PKG_CONFIG --exists --print-errors "gnutls >= 3.3.0") 2>&5
  15026. ac_status=$?
  15027. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15028. test $ac_status = 0; }; then
  15029. pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 3.3.0" 2>/dev/null`
  15030. test "x$?" != "x0" && pkg_failed=yes
  15031. else
  15032. pkg_failed=yes
  15033. fi
  15034. else
  15035. pkg_failed=untried
  15036. fi
  15037. if test -n "$GNUTLS_LIBS"; then
  15038. pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
  15039. elif test -n "$PKG_CONFIG"; then
  15040. if test -n "$PKG_CONFIG" && \
  15041. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 3.3.0\""; } >&5
  15042. ($PKG_CONFIG --exists --print-errors "gnutls >= 3.3.0") 2>&5
  15043. ac_status=$?
  15044. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15045. test $ac_status = 0; }; then
  15046. pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 3.3.0" 2>/dev/null`
  15047. test "x$?" != "x0" && pkg_failed=yes
  15048. else
  15049. pkg_failed=yes
  15050. fi
  15051. else
  15052. pkg_failed=untried
  15053. fi
  15054. if test $pkg_failed = yes; then
  15055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15056. $as_echo "no" >&6; }
  15057. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15058. _pkg_short_errors_supported=yes
  15059. else
  15060. _pkg_short_errors_supported=no
  15061. fi
  15062. if test $_pkg_short_errors_supported = yes; then
  15063. GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= 3.3.0" 2>&1`
  15064. else
  15065. GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= 3.3.0" 2>&1`
  15066. fi
  15067. # Put the nasty error message in config.log where it belongs
  15068. echo "$GNUTLS_PKG_ERRORS" >&5
  15069. as_fn_error $? "Package requirements (gnutls >= 3.3.0) were not met:
  15070. $GNUTLS_PKG_ERRORS
  15071. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  15072. installed software in a non-standard prefix.
  15073. Alternatively, you may set the environment variables GNUTLS_CFLAGS
  15074. and GNUTLS_LIBS to avoid the need to call pkg-config.
  15075. See the pkg-config man page for more details." "$LINENO" 5
  15076. elif test $pkg_failed = untried; then
  15077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15078. $as_echo "no" >&6; }
  15079. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15080. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15081. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  15082. is in your PATH or set the PKG_CONFIG environment variable to the full
  15083. path to pkg-config.
  15084. Alternatively, you may set the environment variables GNUTLS_CFLAGS
  15085. and GNUTLS_LIBS to avoid the need to call pkg-config.
  15086. See the pkg-config man page for more details.
  15087. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  15088. See \`config.log' for more details" "$LINENO" 5; }
  15089. else
  15090. GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
  15091. GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
  15092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15093. $as_echo "yes" >&6; }
  15094. fi
  15095. fi
  15096. $as_echo "#define HAVE_GNUTLS_CRYPTO_H 1" >>confdefs.h
  15097. if test "$WITH_OPENSSL" = no && test "$WITH_WOLFSSL" = no && \
  15098. test "$WITH_MBEDTLS" = no && test "$WITH_NETTLE" = no; then
  15099. CRYPTO_LIB=$GNUTLS_LIBS
  15100. fi
  15101. fi
  15102. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  15103. $as_echo "$as_me: ----------------------------------------" >&6;}
  15104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
  15105. $as_echo_n "checking for NSS... " >&6; }
  15106. # Check whether --with-nss was given.
  15107. if test "${with_nss+set}" = set; then :
  15108. withval=$with_nss; WITH_NSS=$withval
  15109. else
  15110. WITH_NSS=no
  15111. fi
  15112. if test "$WITH_NSS" != "no"; then
  15113. use_nss=yes
  15114. else
  15115. use_nss=no
  15116. fi
  15117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_nss" >&5
  15118. $as_echo "$use_nss" >&6; }
  15119. if test ! $WITH_NSS = no; then
  15120. BUILD_WITH_NSS_TRUE=
  15121. BUILD_WITH_NSS_FALSE='#'
  15122. else
  15123. BUILD_WITH_NSS_TRUE='#'
  15124. BUILD_WITH_NSS_FALSE=
  15125. fi
  15126. NSS_CFLAGS=
  15127. NSS_LIBS=
  15128. if test "x$use_nss" = "xyes"; then
  15129. if test "$WITH_NSS" != "yes"; then
  15130. NSS_CFLAGS="-I$WITH_NSS/include"
  15131. NSS_LIBS="-L$WITH_NSS/lib -lnss3"
  15132. else
  15133. pkg_failed=no
  15134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
  15135. $as_echo_n "checking for NSS... " >&6; }
  15136. if test -n "$NSS_CFLAGS"; then
  15137. pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
  15138. elif test -n "$PKG_CONFIG"; then
  15139. if test -n "$PKG_CONFIG" && \
  15140. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
  15141. ($PKG_CONFIG --exists --print-errors "nss") 2>&5
  15142. ac_status=$?
  15143. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15144. test $ac_status = 0; }; then
  15145. pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "nss" 2>/dev/null`
  15146. test "x$?" != "x0" && pkg_failed=yes
  15147. else
  15148. pkg_failed=yes
  15149. fi
  15150. else
  15151. pkg_failed=untried
  15152. fi
  15153. if test -n "$NSS_LIBS"; then
  15154. pkg_cv_NSS_LIBS="$NSS_LIBS"
  15155. elif test -n "$PKG_CONFIG"; then
  15156. if test -n "$PKG_CONFIG" && \
  15157. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
  15158. ($PKG_CONFIG --exists --print-errors "nss") 2>&5
  15159. ac_status=$?
  15160. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15161. test $ac_status = 0; }; then
  15162. pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "nss" 2>/dev/null`
  15163. test "x$?" != "x0" && pkg_failed=yes
  15164. else
  15165. pkg_failed=yes
  15166. fi
  15167. else
  15168. pkg_failed=untried
  15169. fi
  15170. if test $pkg_failed = yes; then
  15171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15172. $as_echo "no" >&6; }
  15173. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15174. _pkg_short_errors_supported=yes
  15175. else
  15176. _pkg_short_errors_supported=no
  15177. fi
  15178. if test $_pkg_short_errors_supported = yes; then
  15179. NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss" 2>&1`
  15180. else
  15181. NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss" 2>&1`
  15182. fi
  15183. # Put the nasty error message in config.log where it belongs
  15184. echo "$NSS_PKG_ERRORS" >&5
  15185. as_fn_error $? "Package requirements (nss) were not met:
  15186. $NSS_PKG_ERRORS
  15187. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  15188. installed software in a non-standard prefix.
  15189. Alternatively, you may set the environment variables NSS_CFLAGS
  15190. and NSS_LIBS to avoid the need to call pkg-config.
  15191. See the pkg-config man page for more details." "$LINENO" 5
  15192. elif test $pkg_failed = untried; then
  15193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15194. $as_echo "no" >&6; }
  15195. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15196. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15197. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  15198. is in your PATH or set the PKG_CONFIG environment variable to the full
  15199. path to pkg-config.
  15200. Alternatively, you may set the environment variables NSS_CFLAGS
  15201. and NSS_LIBS to avoid the need to call pkg-config.
  15202. See the pkg-config man page for more details.
  15203. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  15204. See \`config.log' for more details" "$LINENO" 5; }
  15205. else
  15206. NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
  15207. NSS_LIBS=$pkg_cv_NSS_LIBS
  15208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15209. $as_echo "yes" >&6; }
  15210. fi
  15211. if test "x$CRYPTO_LIB" = "x"; then
  15212. pkg_failed=no
  15213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSPR" >&5
  15214. $as_echo_n "checking for NSPR... " >&6; }
  15215. if test -n "$NSPR_CFLAGS"; then
  15216. pkg_cv_NSPR_CFLAGS="$NSPR_CFLAGS"
  15217. elif test -n "$PKG_CONFIG"; then
  15218. if test -n "$PKG_CONFIG" && \
  15219. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nspr\""; } >&5
  15220. ($PKG_CONFIG --exists --print-errors "nspr") 2>&5
  15221. ac_status=$?
  15222. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15223. test $ac_status = 0; }; then
  15224. pkg_cv_NSPR_CFLAGS=`$PKG_CONFIG --cflags "nspr" 2>/dev/null`
  15225. test "x$?" != "x0" && pkg_failed=yes
  15226. else
  15227. pkg_failed=yes
  15228. fi
  15229. else
  15230. pkg_failed=untried
  15231. fi
  15232. if test -n "$NSPR_LIBS"; then
  15233. pkg_cv_NSPR_LIBS="$NSPR_LIBS"
  15234. elif test -n "$PKG_CONFIG"; then
  15235. if test -n "$PKG_CONFIG" && \
  15236. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nspr\""; } >&5
  15237. ($PKG_CONFIG --exists --print-errors "nspr") 2>&5
  15238. ac_status=$?
  15239. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15240. test $ac_status = 0; }; then
  15241. pkg_cv_NSPR_LIBS=`$PKG_CONFIG --libs "nspr" 2>/dev/null`
  15242. test "x$?" != "x0" && pkg_failed=yes
  15243. else
  15244. pkg_failed=yes
  15245. fi
  15246. else
  15247. pkg_failed=untried
  15248. fi
  15249. if test $pkg_failed = yes; then
  15250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15251. $as_echo "no" >&6; }
  15252. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15253. _pkg_short_errors_supported=yes
  15254. else
  15255. _pkg_short_errors_supported=no
  15256. fi
  15257. if test $_pkg_short_errors_supported = yes; then
  15258. NSPR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nspr" 2>&1`
  15259. else
  15260. NSPR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nspr" 2>&1`
  15261. fi
  15262. # Put the nasty error message in config.log where it belongs
  15263. echo "$NSPR_PKG_ERRORS" >&5
  15264. as_fn_error $? "Package requirements (nspr) were not met:
  15265. $NSPR_PKG_ERRORS
  15266. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  15267. installed software in a non-standard prefix.
  15268. Alternatively, you may set the environment variables NSPR_CFLAGS
  15269. and NSPR_LIBS to avoid the need to call pkg-config.
  15270. See the pkg-config man page for more details." "$LINENO" 5
  15271. elif test $pkg_failed = untried; then
  15272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15273. $as_echo "no" >&6; }
  15274. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15275. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15276. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  15277. is in your PATH or set the PKG_CONFIG environment variable to the full
  15278. path to pkg-config.
  15279. Alternatively, you may set the environment variables NSPR_CFLAGS
  15280. and NSPR_LIBS to avoid the need to call pkg-config.
  15281. See the pkg-config man page for more details.
  15282. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  15283. See \`config.log' for more details" "$LINENO" 5; }
  15284. else
  15285. NSPR_CFLAGS=$pkg_cv_NSPR_CFLAGS
  15286. NSPR_LIBS=$pkg_cv_NSPR_LIBS
  15287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15288. $as_echo "yes" >&6; }
  15289. fi
  15290. CPPFLAGS="$CPPFLAGS $NSPR_CFLAGS"
  15291. fi
  15292. fi
  15293. $as_echo "#define HAVE_NSS_NSS_H 1" >>confdefs.h
  15294. $as_echo "#define HAVE_NSS3_NSS_H 1" >>confdefs.h
  15295. if test "x$CRYPTO_LIB" = "x"; then
  15296. CRYPTO_LIB="-lnss3"
  15297. fi
  15298. fi
  15299. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  15300. $as_echo "$as_me: ----------------------------------------" >&6;}
  15301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl regular expressions support" >&5
  15302. $as_echo_n "checking for perl regular expressions support... " >&6; }
  15303. # Check whether --with-pcre was given.
  15304. if test "${with_pcre+set}" = set; then :
  15305. withval=$with_pcre; WITH_PCRE=$withval
  15306. else
  15307. WITH_PCRE=no
  15308. fi
  15309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_PCRE" >&5
  15310. $as_echo "$WITH_PCRE" >&6; }
  15311. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  15312. $as_echo "$as_me: ----------------------------------------" >&6;}
  15313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl regular expressions support" >&5
  15314. $as_echo_n "checking for perl regular expressions support... " >&6; }
  15315. # Check whether --with-pcre2 was given.
  15316. if test "${with_pcre2+set}" = set; then :
  15317. withval=$with_pcre2; WITH_PCRE2=$withval
  15318. else
  15319. WITH_PCRE2=yes
  15320. fi
  15321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_PCRE2" >&5
  15322. $as_echo "$WITH_PCRE2" >&6; }
  15323. if test "$WITH_PCRE2" != no && test "$WITH_PCRE" = "no"; then
  15324. if test "$WITH_PCRE2" != yes; then
  15325. PCRE_LIB="-L$WITH_PCRE2/lib -lpcre2-8"
  15326. CPPFLAGS="$CPPFLAGS -I$WITH_PCRE/include"
  15327. else
  15328. pkg_failed=no
  15329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE2" >&5
  15330. $as_echo_n "checking for PCRE2... " >&6; }
  15331. if test -n "$PCRE2_CFLAGS"; then
  15332. pkg_cv_PCRE2_CFLAGS="$PCRE2_CFLAGS"
  15333. elif test -n "$PKG_CONFIG"; then
  15334. if test -n "$PKG_CONFIG" && \
  15335. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre2-8\""; } >&5
  15336. ($PKG_CONFIG --exists --print-errors "libpcre2-8") 2>&5
  15337. ac_status=$?
  15338. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15339. test $ac_status = 0; }; then
  15340. pkg_cv_PCRE2_CFLAGS=`$PKG_CONFIG --cflags "libpcre2-8" 2>/dev/null`
  15341. test "x$?" != "x0" && pkg_failed=yes
  15342. else
  15343. pkg_failed=yes
  15344. fi
  15345. else
  15346. pkg_failed=untried
  15347. fi
  15348. if test -n "$PCRE2_LIBS"; then
  15349. pkg_cv_PCRE2_LIBS="$PCRE2_LIBS"
  15350. elif test -n "$PKG_CONFIG"; then
  15351. if test -n "$PKG_CONFIG" && \
  15352. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre2-8\""; } >&5
  15353. ($PKG_CONFIG --exists --print-errors "libpcre2-8") 2>&5
  15354. ac_status=$?
  15355. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15356. test $ac_status = 0; }; then
  15357. pkg_cv_PCRE2_LIBS=`$PKG_CONFIG --libs "libpcre2-8" 2>/dev/null`
  15358. test "x$?" != "x0" && pkg_failed=yes
  15359. else
  15360. pkg_failed=yes
  15361. fi
  15362. else
  15363. pkg_failed=untried
  15364. fi
  15365. if test $pkg_failed = yes; then
  15366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15367. $as_echo "no" >&6; }
  15368. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15369. _pkg_short_errors_supported=yes
  15370. else
  15371. _pkg_short_errors_supported=no
  15372. fi
  15373. if test $_pkg_short_errors_supported = yes; then
  15374. PCRE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpcre2-8" 2>&1`
  15375. else
  15376. PCRE2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpcre2-8" 2>&1`
  15377. fi
  15378. # Put the nasty error message in config.log where it belongs
  15379. echo "$PCRE2_PKG_ERRORS" >&5
  15380. # Extract the first word of "pcre2-config", so it can be a program name with args.
  15381. set dummy pcre2-config; ac_word=$2
  15382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15383. $as_echo_n "checking for $ac_word... " >&6; }
  15384. if ${ac_cv_path_PCRE2CONFIG+:} false; then :
  15385. $as_echo_n "(cached) " >&6
  15386. else
  15387. case $PCRE2CONFIG in
  15388. [\\/]* | ?:[\\/]*)
  15389. ac_cv_path_PCRE2CONFIG="$PCRE2CONFIG" # Let the user override the test with a path.
  15390. ;;
  15391. *)
  15392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15393. for as_dir in $PATH
  15394. do
  15395. IFS=$as_save_IFS
  15396. test -z "$as_dir" && as_dir=.
  15397. for ac_exec_ext in '' $ac_executable_extensions; do
  15398. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15399. ac_cv_path_PCRE2CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15400. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15401. break 2
  15402. fi
  15403. done
  15404. done
  15405. IFS=$as_save_IFS
  15406. ;;
  15407. esac
  15408. fi
  15409. PCRE2CONFIG=$ac_cv_path_PCRE2CONFIG
  15410. if test -n "$PCRE2CONFIG"; then
  15411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRE2CONFIG" >&5
  15412. $as_echo "$PCRE2CONFIG" >&6; }
  15413. else
  15414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15415. $as_echo "no" >&6; }
  15416. fi
  15417. if test -n "$PCRE2CONFIG"; then
  15418. PCRE_LIB=`"$PCRE2CONFIG" --libs8`
  15419. CPPFLAGS="$CPPFLAGS `"$PCRE2CONFIG" --cflags`"
  15420. fi
  15421. elif test $pkg_failed = untried; then
  15422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15423. $as_echo "no" >&6; }
  15424. # Extract the first word of "pcre2-config", so it can be a program name with args.
  15425. set dummy pcre2-config; ac_word=$2
  15426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15427. $as_echo_n "checking for $ac_word... " >&6; }
  15428. if ${ac_cv_path_PCRE2CONFIG+:} false; then :
  15429. $as_echo_n "(cached) " >&6
  15430. else
  15431. case $PCRE2CONFIG in
  15432. [\\/]* | ?:[\\/]*)
  15433. ac_cv_path_PCRE2CONFIG="$PCRE2CONFIG" # Let the user override the test with a path.
  15434. ;;
  15435. *)
  15436. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15437. for as_dir in $PATH
  15438. do
  15439. IFS=$as_save_IFS
  15440. test -z "$as_dir" && as_dir=.
  15441. for ac_exec_ext in '' $ac_executable_extensions; do
  15442. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15443. ac_cv_path_PCRE2CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15444. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15445. break 2
  15446. fi
  15447. done
  15448. done
  15449. IFS=$as_save_IFS
  15450. ;;
  15451. esac
  15452. fi
  15453. PCRE2CONFIG=$ac_cv_path_PCRE2CONFIG
  15454. if test -n "$PCRE2CONFIG"; then
  15455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRE2CONFIG" >&5
  15456. $as_echo "$PCRE2CONFIG" >&6; }
  15457. else
  15458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15459. $as_echo "no" >&6; }
  15460. fi
  15461. if test -n "$PCRE2CONFIG"; then
  15462. PCRE_LIB=`"$PCRE2CONFIG" --libs8`
  15463. CPPFLAGS="$CPPFLAGS `"$PCRE2CONFIG" --cflags`"
  15464. fi
  15465. else
  15466. PCRE2_CFLAGS=$pkg_cv_PCRE2_CFLAGS
  15467. PCRE2_LIBS=$pkg_cv_PCRE2_LIBS
  15468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15469. $as_echo "yes" >&6; }
  15470. PCRE_LIB="$PCRE2_LIBS"
  15471. CPPFLAGS="$CPPFLAGS $PCRE2_CFLAGS"
  15472. fi
  15473. fi
  15474. if test -z "$PCRE_LIB"; then
  15475. as_fn_error $? "pcre2-config not found, install the pcre2-devel package or build with --without-pcre2" "$LINENO" 5
  15476. fi
  15477. $as_echo "#define HAVE_PCRE 1" >>confdefs.h
  15478. $as_echo "#define HAVE_PCRE2_H 1" >>confdefs.h
  15479. fi
  15480. if test "$WITH_PCRE" != no; then
  15481. if test "$WITH_PCRE" != yes; then
  15482. PCRE_LIB="-L$WITH_PCRE/lib -lpcre"
  15483. CPPFLAGS="$CPPFLAGS -I$WITH_PCRE/include"
  15484. else
  15485. # Extract the first word of "pcre-config", so it can be a program name with args.
  15486. set dummy pcre-config; ac_word=$2
  15487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15488. $as_echo_n "checking for $ac_word... " >&6; }
  15489. if ${ac_cv_path_PCRECONFIG+:} false; then :
  15490. $as_echo_n "(cached) " >&6
  15491. else
  15492. case $PCRECONFIG in
  15493. [\\/]* | ?:[\\/]*)
  15494. ac_cv_path_PCRECONFIG="$PCRECONFIG" # Let the user override the test with a path.
  15495. ;;
  15496. *)
  15497. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15498. for as_dir in $PATH
  15499. do
  15500. IFS=$as_save_IFS
  15501. test -z "$as_dir" && as_dir=.
  15502. for ac_exec_ext in '' $ac_executable_extensions; do
  15503. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15504. ac_cv_path_PCRECONFIG="$as_dir/$ac_word$ac_exec_ext"
  15505. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15506. break 2
  15507. fi
  15508. done
  15509. done
  15510. IFS=$as_save_IFS
  15511. ;;
  15512. esac
  15513. fi
  15514. PCRECONFIG=$ac_cv_path_PCRECONFIG
  15515. if test -n "$PCRECONFIG"; then
  15516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRECONFIG" >&5
  15517. $as_echo "$PCRECONFIG" >&6; }
  15518. else
  15519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15520. $as_echo "no" >&6; }
  15521. fi
  15522. if test -n "$PCRECONFIG"; then
  15523. PCRE_LIB=`"$PCRECONFIG" --libs`
  15524. CPPFLAGS="$CPPFLAGS `"$PCRECONFIG" --cflags`"
  15525. fi
  15526. fi
  15527. if test -z "$PCRE_LIB"; then
  15528. as_fn_error $? "pcre-config not found, install the pcre-devel package or build with --without-pcre" "$LINENO" 5
  15529. fi
  15530. $as_echo "#define HAVE_PCRE 1" >>confdefs.h
  15531. $as_echo "#define HAVE_PCRE_H 1" >>confdefs.h
  15532. fi
  15533. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  15534. $as_echo "$as_me: ----------------------------------------" >&6;}
  15535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5
  15536. $as_echo_n "checking for zlib support... " >&6; }
  15537. # Check whether --with-zlib was given.
  15538. if test "${with_zlib+set}" = set; then :
  15539. withval=$with_zlib; WITH_ZLIB=$withval
  15540. else
  15541. WITH_ZLIB=yes
  15542. fi
  15543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_ZLIB" >&5
  15544. $as_echo "$WITH_ZLIB" >&6; }
  15545. if test "$WITH_ZLIB" != no; then
  15546. if test "$WITH_ZLIB" != yes; then
  15547. Z_LIB="-L$WITH_ZLIB -lz"
  15548. CPPFLAGS="$CPPFLAGS -I$WITH_ZLIB"
  15549. else
  15550. for ac_header in zlib.h
  15551. do :
  15552. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  15553. if test "x$ac_cv_header_zlib_h" = xyes; then :
  15554. cat >>confdefs.h <<_ACEOF
  15555. #define HAVE_ZLIB_H 1
  15556. _ACEOF
  15557. else
  15558. as_fn_error $? "zlib headers not found, install them or build without --with-zlib" "$LINENO" 5
  15559. fi
  15560. done
  15561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
  15562. $as_echo_n "checking for deflate in -lz... " >&6; }
  15563. if ${ac_cv_lib_z_deflate+:} false; then :
  15564. $as_echo_n "(cached) " >&6
  15565. else
  15566. ac_check_lib_save_LIBS=$LIBS
  15567. LIBS="-lz $LIBS"
  15568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15569. /* end confdefs.h. */
  15570. /* Override any GCC internal prototype to avoid an error.
  15571. Use char because int might match the return type of a GCC
  15572. builtin and then its argument prototype would still apply. */
  15573. #ifdef __cplusplus
  15574. extern "C"
  15575. #endif
  15576. char deflate ();
  15577. int
  15578. main ()
  15579. {
  15580. return deflate ();
  15581. ;
  15582. return 0;
  15583. }
  15584. _ACEOF
  15585. if ac_fn_c_try_link "$LINENO"; then :
  15586. ac_cv_lib_z_deflate=yes
  15587. else
  15588. ac_cv_lib_z_deflate=no
  15589. fi
  15590. rm -f core conftest.err conftest.$ac_objext \
  15591. conftest$ac_exeext conftest.$ac_ext
  15592. LIBS=$ac_check_lib_save_LIBS
  15593. fi
  15594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
  15595. $as_echo "$ac_cv_lib_z_deflate" >&6; }
  15596. if test "x$ac_cv_lib_z_deflate" = xyes; then :
  15597. Z_LIB=-lz
  15598. else
  15599. as_fn_error $? "zlib library not found, install it or build without --with-zlib" "$LINENO" 5
  15600. fi
  15601. fi
  15602. $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
  15603. $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
  15604. fi
  15605. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  15606. $as_echo "$as_me: ----------------------------------------" >&6;}
  15607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd support" >&5
  15608. $as_echo_n "checking for zstd support... " >&6; }
  15609. # Check whether --with-zstd was given.
  15610. if test "${with_zstd+set}" = set; then :
  15611. withval=$with_zstd; WITH_ZSTD=$withval
  15612. else
  15613. WITH_ZSTD=no
  15614. fi
  15615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_ZSTD" >&5
  15616. $as_echo "$WITH_ZSTD" >&6; }
  15617. if test "$WITH_ZSTD" != no; then
  15618. if test "$WITH_ZSTD" != yes; then
  15619. ZSTD_LIB="-L$WITH_ZSTD -lzstd"
  15620. CPPFLAGS="$CPPFLAGS -I$WITH_ZSTD"
  15621. else
  15622. for ac_header in zstd.h
  15623. do :
  15624. ac_fn_c_check_header_mongrel "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"
  15625. if test "x$ac_cv_header_zstd_h" = xyes; then :
  15626. cat >>confdefs.h <<_ACEOF
  15627. #define HAVE_ZSTD_H 1
  15628. _ACEOF
  15629. else
  15630. as_fn_error $? "zstd headers not found, install them or build without --with-zstd" "$LINENO" 5
  15631. fi
  15632. done
  15633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD_versionNumber in -lzstd" >&5
  15634. $as_echo_n "checking for ZSTD_versionNumber in -lzstd... " >&6; }
  15635. if ${ac_cv_lib_zstd_ZSTD_versionNumber+:} false; then :
  15636. $as_echo_n "(cached) " >&6
  15637. else
  15638. ac_check_lib_save_LIBS=$LIBS
  15639. LIBS="-lzstd $LIBS"
  15640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15641. /* end confdefs.h. */
  15642. /* Override any GCC internal prototype to avoid an error.
  15643. Use char because int might match the return type of a GCC
  15644. builtin and then its argument prototype would still apply. */
  15645. #ifdef __cplusplus
  15646. extern "C"
  15647. #endif
  15648. char ZSTD_versionNumber ();
  15649. int
  15650. main ()
  15651. {
  15652. return ZSTD_versionNumber ();
  15653. ;
  15654. return 0;
  15655. }
  15656. _ACEOF
  15657. if ac_fn_c_try_link "$LINENO"; then :
  15658. ac_cv_lib_zstd_ZSTD_versionNumber=yes
  15659. else
  15660. ac_cv_lib_zstd_ZSTD_versionNumber=no
  15661. fi
  15662. rm -f core conftest.err conftest.$ac_objext \
  15663. conftest$ac_exeext conftest.$ac_ext
  15664. LIBS=$ac_check_lib_save_LIBS
  15665. fi
  15666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_versionNumber" >&5
  15667. $as_echo "$ac_cv_lib_zstd_ZSTD_versionNumber" >&6; }
  15668. if test "x$ac_cv_lib_zstd_ZSTD_versionNumber" = xyes; then :
  15669. ZSTD_LIB=-lzstd
  15670. else
  15671. as_fn_error $? "zstd library not found, install it or build without --with-zstd" "$LINENO" 5
  15672. fi
  15673. fi
  15674. $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
  15675. $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
  15676. fi
  15677. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  15678. $as_echo "$as_me: ----------------------------------------" >&6;}
  15679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bzip2 support" >&5
  15680. $as_echo_n "checking for bzip2 support... " >&6; }
  15681. # Check whether --with-bzip2 was given.
  15682. if test "${with_bzip2+set}" = set; then :
  15683. withval=$with_bzip2; WITH_BZIP2=$withval
  15684. else
  15685. WITH_BZIP2=no
  15686. fi
  15687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_BZIP2" >&5
  15688. $as_echo "$WITH_BZIP2" >&6; }
  15689. if test "$WITH_BZIP2" != no; then
  15690. if test "$WITH_BZIP2" != yes; then
  15691. BZ_LIB="-L$WITH_BZIP2 -lbz2"
  15692. CPPFLAGS="$CPPFLAGS -I$WITH_BZIP2"
  15693. else
  15694. for ac_header in bzlib.h
  15695. do :
  15696. ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
  15697. if test "x$ac_cv_header_bzlib_h" = xyes; then :
  15698. cat >>confdefs.h <<_ACEOF
  15699. #define HAVE_BZLIB_H 1
  15700. _ACEOF
  15701. else
  15702. as_fn_error $? "bzip2 headers not found, install them or build without --with-bzip2" "$LINENO" 5
  15703. fi
  15704. done
  15705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompress in -lbz2" >&5
  15706. $as_echo_n "checking for BZ2_bzCompress in -lbz2... " >&6; }
  15707. if ${ac_cv_lib_bz2_BZ2_bzCompress+:} false; then :
  15708. $as_echo_n "(cached) " >&6
  15709. else
  15710. ac_check_lib_save_LIBS=$LIBS
  15711. LIBS="-lbz2 $LIBS"
  15712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15713. /* end confdefs.h. */
  15714. /* Override any GCC internal prototype to avoid an error.
  15715. Use char because int might match the return type of a GCC
  15716. builtin and then its argument prototype would still apply. */
  15717. #ifdef __cplusplus
  15718. extern "C"
  15719. #endif
  15720. char BZ2_bzCompress ();
  15721. int
  15722. main ()
  15723. {
  15724. return BZ2_bzCompress ();
  15725. ;
  15726. return 0;
  15727. }
  15728. _ACEOF
  15729. if ac_fn_c_try_link "$LINENO"; then :
  15730. ac_cv_lib_bz2_BZ2_bzCompress=yes
  15731. else
  15732. ac_cv_lib_bz2_BZ2_bzCompress=no
  15733. fi
  15734. rm -f core conftest.err conftest.$ac_objext \
  15735. conftest$ac_exeext conftest.$ac_ext
  15736. LIBS=$ac_check_lib_save_LIBS
  15737. fi
  15738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompress" >&5
  15739. $as_echo "$ac_cv_lib_bz2_BZ2_bzCompress" >&6; }
  15740. if test "x$ac_cv_lib_bz2_BZ2_bzCompress" = xyes; then :
  15741. BZ_LIB=-lbz2
  15742. else
  15743. as_fn_error $? "bzip2 library not found, install it or build without --with-bzip2" "$LINENO" 5
  15744. fi
  15745. fi
  15746. $as_echo "#define HAVE_LIBBZ2 1" >>confdefs.h
  15747. $as_echo "#define HAVE_BZLIB_H 1" >>confdefs.h
  15748. fi
  15749. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  15750. $as_echo "$as_me: ----------------------------------------" >&6;}
  15751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for brotli support" >&5
  15752. $as_echo_n "checking for brotli support... " >&6; }
  15753. # Check whether --with-brotli was given.
  15754. if test "${with_brotli+set}" = set; then :
  15755. withval=$with_brotli; WITH_BROTLI=$withval
  15756. else
  15757. WITH_BROTLI=no
  15758. fi
  15759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_BROTLI" >&5
  15760. $as_echo "$WITH_BROTLI" >&6; }
  15761. if test "$WITH_BROTLI" != no; then
  15762. if test "$WITH_BROTLI" != yes; then
  15763. BROTLI_LIBS="-L$WITH_BROTLI -lbrotlienc"
  15764. CPPFLAGS="$CPPFLAGS -I$WITH_BROTLI"
  15765. else
  15766. pkg_failed=no
  15767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BROTLI" >&5
  15768. $as_echo_n "checking for BROTLI... " >&6; }
  15769. if test -n "$BROTLI_CFLAGS"; then
  15770. pkg_cv_BROTLI_CFLAGS="$BROTLI_CFLAGS"
  15771. elif test -n "$PKG_CONFIG"; then
  15772. if test -n "$PKG_CONFIG" && \
  15773. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbrotlienc\""; } >&5
  15774. ($PKG_CONFIG --exists --print-errors "libbrotlienc") 2>&5
  15775. ac_status=$?
  15776. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15777. test $ac_status = 0; }; then
  15778. pkg_cv_BROTLI_CFLAGS=`$PKG_CONFIG --cflags "libbrotlienc" 2>/dev/null`
  15779. test "x$?" != "x0" && pkg_failed=yes
  15780. else
  15781. pkg_failed=yes
  15782. fi
  15783. else
  15784. pkg_failed=untried
  15785. fi
  15786. if test -n "$BROTLI_LIBS"; then
  15787. pkg_cv_BROTLI_LIBS="$BROTLI_LIBS"
  15788. elif test -n "$PKG_CONFIG"; then
  15789. if test -n "$PKG_CONFIG" && \
  15790. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbrotlienc\""; } >&5
  15791. ($PKG_CONFIG --exists --print-errors "libbrotlienc") 2>&5
  15792. ac_status=$?
  15793. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15794. test $ac_status = 0; }; then
  15795. pkg_cv_BROTLI_LIBS=`$PKG_CONFIG --libs "libbrotlienc" 2>/dev/null`
  15796. test "x$?" != "x0" && pkg_failed=yes
  15797. else
  15798. pkg_failed=yes
  15799. fi
  15800. else
  15801. pkg_failed=untried
  15802. fi
  15803. if test $pkg_failed = yes; then
  15804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15805. $as_echo "no" >&6; }
  15806. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15807. _pkg_short_errors_supported=yes
  15808. else
  15809. _pkg_short_errors_supported=no
  15810. fi
  15811. if test $_pkg_short_errors_supported = yes; then
  15812. BROTLI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libbrotlienc" 2>&1`
  15813. else
  15814. BROTLI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libbrotlienc" 2>&1`
  15815. fi
  15816. # Put the nasty error message in config.log where it belongs
  15817. echo "$BROTLI_PKG_ERRORS" >&5
  15818. as_fn_error $? "brotli not found, install it or build without --with-brotli" "$LINENO" 5
  15819. elif test $pkg_failed = untried; then
  15820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15821. $as_echo "no" >&6; }
  15822. as_fn_error $? "brotli not found, install it or build without --with-brotli" "$LINENO" 5
  15823. else
  15824. BROTLI_CFLAGS=$pkg_cv_BROTLI_CFLAGS
  15825. BROTLI_LIBS=$pkg_cv_BROTLI_LIBS
  15826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15827. $as_echo "yes" >&6; }
  15828. fi
  15829. fi
  15830. $as_echo "#define HAVE_BROTLI_ENCODE_H 1" >>confdefs.h
  15831. $as_echo "#define HAVE_BROTLI 1" >>confdefs.h
  15832. fi
  15833. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  15834. $as_echo "$as_me: ----------------------------------------" >&6;}
  15835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAM" >&5
  15836. $as_echo_n "checking for FAM... " >&6; }
  15837. # Check whether --with-fam was given.
  15838. if test "${with_fam+set}" = set; then :
  15839. withval=$with_fam; WITH_FAM=$withval
  15840. else
  15841. WITH_FAM=no
  15842. fi
  15843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_FAM" >&5
  15844. $as_echo "$WITH_FAM" >&6; }
  15845. case "$host_os" in
  15846. *bsd*|*darwin* ) WITH_FAM=no ;;
  15847. * ) ;;
  15848. esac
  15849. if test "$ac_cv_header_sys_inotify_h" != no; then
  15850. WITH_FAM=no
  15851. fi
  15852. if test "$WITH_FAM" != no; then
  15853. if test "$WITH_FAM" != yes; then
  15854. FAM_LIBS="-L$WITH_FAM -lfam"
  15855. CPPFLAGS="$CPPFLAGS -I$WITH_FAM"
  15856. else
  15857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAMOpen2 in -lfam" >&5
  15858. $as_echo_n "checking for FAMOpen2 in -lfam... " >&6; }
  15859. if ${ac_cv_lib_fam_FAMOpen2+:} false; then :
  15860. $as_echo_n "(cached) " >&6
  15861. else
  15862. ac_check_lib_save_LIBS=$LIBS
  15863. LIBS="-lfam $LIBS"
  15864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15865. /* end confdefs.h. */
  15866. /* Override any GCC internal prototype to avoid an error.
  15867. Use char because int might match the return type of a GCC
  15868. builtin and then its argument prototype would still apply. */
  15869. #ifdef __cplusplus
  15870. extern "C"
  15871. #endif
  15872. char FAMOpen2 ();
  15873. int
  15874. main ()
  15875. {
  15876. return FAMOpen2 ();
  15877. ;
  15878. return 0;
  15879. }
  15880. _ACEOF
  15881. if ac_fn_c_try_link "$LINENO"; then :
  15882. ac_cv_lib_fam_FAMOpen2=yes
  15883. else
  15884. ac_cv_lib_fam_FAMOpen2=no
  15885. fi
  15886. rm -f core conftest.err conftest.$ac_objext \
  15887. conftest$ac_exeext conftest.$ac_ext
  15888. LIBS=$ac_check_lib_save_LIBS
  15889. fi
  15890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fam_FAMOpen2" >&5
  15891. $as_echo "$ac_cv_lib_fam_FAMOpen2" >&6; }
  15892. if test "x$ac_cv_lib_fam_FAMOpen2" = xyes; then :
  15893. for ac_header in fam.h
  15894. do :
  15895. ac_fn_c_check_header_mongrel "$LINENO" "fam.h" "ac_cv_header_fam_h" "$ac_includes_default"
  15896. if test "x$ac_cv_header_fam_h" = xyes; then :
  15897. cat >>confdefs.h <<_ACEOF
  15898. #define HAVE_FAM_H 1
  15899. _ACEOF
  15900. FAM_LIBS=-lfam
  15901. fi
  15902. done
  15903. fi
  15904. if test -z "$FAM_LIBS"; then
  15905. pkg_failed=no
  15906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAM" >&5
  15907. $as_echo_n "checking for FAM... " >&6; }
  15908. if test -n "$FAM_CFLAGS"; then
  15909. pkg_cv_FAM_CFLAGS="$FAM_CFLAGS"
  15910. elif test -n "$PKG_CONFIG"; then
  15911. if test -n "$PKG_CONFIG" && \
  15912. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gamin >= 0.1.0\""; } >&5
  15913. ($PKG_CONFIG --exists --print-errors "gamin >= 0.1.0") 2>&5
  15914. ac_status=$?
  15915. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15916. test $ac_status = 0; }; then
  15917. pkg_cv_FAM_CFLAGS=`$PKG_CONFIG --cflags "gamin >= 0.1.0" 2>/dev/null`
  15918. test "x$?" != "x0" && pkg_failed=yes
  15919. else
  15920. pkg_failed=yes
  15921. fi
  15922. else
  15923. pkg_failed=untried
  15924. fi
  15925. if test -n "$FAM_LIBS"; then
  15926. pkg_cv_FAM_LIBS="$FAM_LIBS"
  15927. elif test -n "$PKG_CONFIG"; then
  15928. if test -n "$PKG_CONFIG" && \
  15929. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gamin >= 0.1.0\""; } >&5
  15930. ($PKG_CONFIG --exists --print-errors "gamin >= 0.1.0") 2>&5
  15931. ac_status=$?
  15932. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15933. test $ac_status = 0; }; then
  15934. pkg_cv_FAM_LIBS=`$PKG_CONFIG --libs "gamin >= 0.1.0" 2>/dev/null`
  15935. test "x$?" != "x0" && pkg_failed=yes
  15936. else
  15937. pkg_failed=yes
  15938. fi
  15939. else
  15940. pkg_failed=untried
  15941. fi
  15942. if test $pkg_failed = yes; then
  15943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15944. $as_echo "no" >&6; }
  15945. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15946. _pkg_short_errors_supported=yes
  15947. else
  15948. _pkg_short_errors_supported=no
  15949. fi
  15950. if test $_pkg_short_errors_supported = yes; then
  15951. FAM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gamin >= 0.1.0" 2>&1`
  15952. else
  15953. FAM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gamin >= 0.1.0" 2>&1`
  15954. fi
  15955. # Put the nasty error message in config.log where it belongs
  15956. echo "$FAM_PKG_ERRORS" >&5
  15957. as_fn_error $? "Package requirements (gamin >= 0.1.0) were not met:
  15958. $FAM_PKG_ERRORS
  15959. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  15960. installed software in a non-standard prefix.
  15961. Alternatively, you may set the environment variables FAM_CFLAGS
  15962. and FAM_LIBS to avoid the need to call pkg-config.
  15963. See the pkg-config man page for more details." "$LINENO" 5
  15964. elif test $pkg_failed = untried; then
  15965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15966. $as_echo "no" >&6; }
  15967. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15968. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15969. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  15970. is in your PATH or set the PKG_CONFIG environment variable to the full
  15971. path to pkg-config.
  15972. Alternatively, you may set the environment variables FAM_CFLAGS
  15973. and FAM_LIBS to avoid the need to call pkg-config.
  15974. See the pkg-config man page for more details.
  15975. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  15976. See \`config.log' for more details" "$LINENO" 5; }
  15977. else
  15978. FAM_CFLAGS=$pkg_cv_FAM_CFLAGS
  15979. FAM_LIBS=$pkg_cv_FAM_LIBS
  15980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15981. $as_echo "yes" >&6; }
  15982. fi
  15983. fi
  15984. fi
  15985. if test -z "$FAM_LIBS"; then
  15986. as_fn_error $? "fam/gamin headers and/or libs were not found, install them or build without --with-fam" "$LINENO" 5
  15987. fi
  15988. OLD_LIBS=$LIBS
  15989. LIBS=$FAM_LIBS
  15990. for ac_func in FAMNoExists
  15991. do :
  15992. ac_fn_c_check_func "$LINENO" "FAMNoExists" "ac_cv_func_FAMNoExists"
  15993. if test "x$ac_cv_func_FAMNoExists" = xyes; then :
  15994. cat >>confdefs.h <<_ACEOF
  15995. #define HAVE_FAMNOEXISTS 1
  15996. _ACEOF
  15997. fi
  15998. done
  15999. LIBS=$OLD_LIBS
  16000. $as_echo "#define HAVE_LIBFAM 1" >>confdefs.h
  16001. $as_echo "#define HAVE_FAM_H 1" >>confdefs.h
  16002. fi
  16003. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  16004. $as_echo "$as_me: ----------------------------------------" >&6;}
  16005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for properties in mod_webdav" >&5
  16006. $as_echo_n "checking for properties in mod_webdav... " >&6; }
  16007. # Check whether --with-webdav-props was given.
  16008. if test "${with_webdav_props+set}" = set; then :
  16009. withval=$with_webdav_props; WITH_WEBDAV_PROPS=$withval
  16010. else
  16011. WITH_WEBDAV_PROPS=no
  16012. fi
  16013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_WEBDAV_PROPS" >&5
  16014. $as_echo "$WITH_WEBDAV_PROPS" >&6; }
  16015. if test "$WITH_WEBDAV_PROPS" != no; then
  16016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2" >&5
  16017. $as_echo_n "checking for libxml2... " >&6; }
  16018. # Check whether --with-libxml was given.
  16019. if test "${with_libxml+set}" = set; then :
  16020. withval=$with_libxml; WITH_LIBXML=$withval
  16021. else
  16022. WITH_LIBXML=yes
  16023. fi
  16024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_LIBXML" >&5
  16025. $as_echo "$WITH_LIBXML" >&6; }
  16026. if test "$WITH_LIBXML" = no; then
  16027. as_fn_error $? "--with-webdav-props requires libxml" "$LINENO" 5
  16028. fi
  16029. if test "$WITH_LIBXML" != yes; then
  16030. XML_LIBS="-L$WITH_LIBXML/.libs -lxml2"
  16031. XML_CFLAGS="-I$WITH_LIBXML/include"
  16032. else
  16033. pkg_failed=no
  16034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
  16035. $as_echo_n "checking for XML... " >&6; }
  16036. if test -n "$XML_CFLAGS"; then
  16037. pkg_cv_XML_CFLAGS="$XML_CFLAGS"
  16038. elif test -n "$PKG_CONFIG"; then
  16039. if test -n "$PKG_CONFIG" && \
  16040. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
  16041. ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
  16042. ac_status=$?
  16043. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16044. test $ac_status = 0; }; then
  16045. pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
  16046. test "x$?" != "x0" && pkg_failed=yes
  16047. else
  16048. pkg_failed=yes
  16049. fi
  16050. else
  16051. pkg_failed=untried
  16052. fi
  16053. if test -n "$XML_LIBS"; then
  16054. pkg_cv_XML_LIBS="$XML_LIBS"
  16055. elif test -n "$PKG_CONFIG"; then
  16056. if test -n "$PKG_CONFIG" && \
  16057. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
  16058. ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
  16059. ac_status=$?
  16060. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16061. test $ac_status = 0; }; then
  16062. pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
  16063. test "x$?" != "x0" && pkg_failed=yes
  16064. else
  16065. pkg_failed=yes
  16066. fi
  16067. else
  16068. pkg_failed=untried
  16069. fi
  16070. if test $pkg_failed = yes; then
  16071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16072. $as_echo "no" >&6; }
  16073. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16074. _pkg_short_errors_supported=yes
  16075. else
  16076. _pkg_short_errors_supported=no
  16077. fi
  16078. if test $_pkg_short_errors_supported = yes; then
  16079. XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
  16080. else
  16081. XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
  16082. fi
  16083. # Put the nasty error message in config.log where it belongs
  16084. echo "$XML_PKG_ERRORS" >&5
  16085. as_fn_error $? "libxml2 not found, install it or build without --with-webdav-props" "$LINENO" 5
  16086. elif test $pkg_failed = untried; then
  16087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16088. $as_echo "no" >&6; }
  16089. as_fn_error $? "libxml2 not found, install it or build without --with-webdav-props" "$LINENO" 5
  16090. else
  16091. XML_CFLAGS=$pkg_cv_XML_CFLAGS
  16092. XML_LIBS=$pkg_cv_XML_LIBS
  16093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16094. $as_echo "yes" >&6; }
  16095. fi
  16096. fi
  16097. $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
  16098. $as_echo "#define HAVE_LIBXML_H 1" >>confdefs.h
  16099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite" >&5
  16100. $as_echo_n "checking for sqlite... " >&6; }
  16101. # Check whether --with-sqlite was given.
  16102. if test "${with_sqlite+set}" = set; then :
  16103. withval=$with_sqlite; WITH_SQLITE=$withval
  16104. else
  16105. WITH_SQLITE=yes
  16106. fi
  16107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_SQLITE" >&5
  16108. $as_echo "$WITH_SQLITE" >&6; }
  16109. if test "$WITH_SQLITE" = no; then
  16110. as_fn_error $? "--with-webdav-props requires sqlite" "$LINENO" 5
  16111. fi
  16112. if test "$WITH_SQLITE" != yes; then
  16113. SQLITE_LIBS="-L$WITH_SQLITE/.libs -lsqlite3"
  16114. SQLITE_CFLAGS="-I$WITH_SQLITE"
  16115. else
  16116. pkg_failed=no
  16117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5
  16118. $as_echo_n "checking for SQLITE... " >&6; }
  16119. if test -n "$SQLITE_CFLAGS"; then
  16120. pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
  16121. elif test -n "$PKG_CONFIG"; then
  16122. if test -n "$PKG_CONFIG" && \
  16123. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  16124. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  16125. ac_status=$?
  16126. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16127. test $ac_status = 0; }; then
  16128. pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
  16129. test "x$?" != "x0" && pkg_failed=yes
  16130. else
  16131. pkg_failed=yes
  16132. fi
  16133. else
  16134. pkg_failed=untried
  16135. fi
  16136. if test -n "$SQLITE_LIBS"; then
  16137. pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
  16138. elif test -n "$PKG_CONFIG"; then
  16139. if test -n "$PKG_CONFIG" && \
  16140. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  16141. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  16142. ac_status=$?
  16143. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16144. test $ac_status = 0; }; then
  16145. pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
  16146. test "x$?" != "x0" && pkg_failed=yes
  16147. else
  16148. pkg_failed=yes
  16149. fi
  16150. else
  16151. pkg_failed=untried
  16152. fi
  16153. if test $pkg_failed = yes; then
  16154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16155. $as_echo "no" >&6; }
  16156. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16157. _pkg_short_errors_supported=yes
  16158. else
  16159. _pkg_short_errors_supported=no
  16160. fi
  16161. if test $_pkg_short_errors_supported = yes; then
  16162. SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1`
  16163. else
  16164. SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1`
  16165. fi
  16166. # Put the nasty error message in config.log where it belongs
  16167. echo "$SQLITE_PKG_ERRORS" >&5
  16168. as_fn_error $? "sqlite3 not found, install it or build without --with-webdav-props" "$LINENO" 5
  16169. elif test $pkg_failed = untried; then
  16170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16171. $as_echo "no" >&6; }
  16172. as_fn_error $? "sqlite3 not found, install it or build without --with-webdav-props" "$LINENO" 5
  16173. else
  16174. SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
  16175. SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
  16176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16177. $as_echo "yes" >&6; }
  16178. fi
  16179. fi
  16180. $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
  16181. $as_echo "#define HAVE_SQLITE3_H 1" >>confdefs.h
  16182. fi
  16183. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  16184. $as_echo "$as_me: ----------------------------------------" >&6;}
  16185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locks in mod_webdav" >&5
  16186. $as_echo_n "checking for locks in mod_webdav... " >&6; }
  16187. # Check whether --with-webdav-locks was given.
  16188. if test "${with_webdav_locks+set}" = set; then :
  16189. withval=$with_webdav_locks; WITH_WEBDAV_LOCKS=$withval
  16190. else
  16191. WITH_WEBDAV_LOCKS=no
  16192. fi
  16193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_WEBDAV_LOCKS" >&5
  16194. $as_echo "$WITH_WEBDAV_LOCKS" >&6; }
  16195. if test "$WITH_WEBDAV_LOCKS" != no; then
  16196. if test "$WITH_WEBDAV_PROPS" = no; then
  16197. as_fn_error $? "--with-webdav-locks requires --with-webdav-props" "$LINENO" 5
  16198. fi
  16199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuuid" >&5
  16200. $as_echo_n "checking for libuuid... " >&6; }
  16201. # Check whether --with-uuid was given.
  16202. if test "${with_uuid+set}" = set; then :
  16203. withval=$with_uuid; WITH_UUID=$withval
  16204. else
  16205. WITH_UUID=yes
  16206. fi
  16207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_UUID" >&5
  16208. $as_echo "$WITH_UUID" >&6; }
  16209. if test "$WITH_UUID" = no; then
  16210. as_fn_error $? "--with-webdav-locks requires uuid" "$LINENO" 5
  16211. fi
  16212. if test "$WITH_UUID" != yes; then
  16213. UUID_LIBS="-L$WITH_UUID -luuid"
  16214. CPPFLAGS="$CPPFLAGS -I$WITH_UUID"
  16215. else
  16216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_unparse in -luuid" >&5
  16217. $as_echo_n "checking for uuid_unparse in -luuid... " >&6; }
  16218. if ${ac_cv_lib_uuid_uuid_unparse+:} false; then :
  16219. $as_echo_n "(cached) " >&6
  16220. else
  16221. ac_check_lib_save_LIBS=$LIBS
  16222. LIBS="-luuid $LIBS"
  16223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16224. /* end confdefs.h. */
  16225. /* Override any GCC internal prototype to avoid an error.
  16226. Use char because int might match the return type of a GCC
  16227. builtin and then its argument prototype would still apply. */
  16228. #ifdef __cplusplus
  16229. extern "C"
  16230. #endif
  16231. char uuid_unparse ();
  16232. int
  16233. main ()
  16234. {
  16235. return uuid_unparse ();
  16236. ;
  16237. return 0;
  16238. }
  16239. _ACEOF
  16240. if ac_fn_c_try_link "$LINENO"; then :
  16241. ac_cv_lib_uuid_uuid_unparse=yes
  16242. else
  16243. ac_cv_lib_uuid_uuid_unparse=no
  16244. fi
  16245. rm -f core conftest.err conftest.$ac_objext \
  16246. conftest$ac_exeext conftest.$ac_ext
  16247. LIBS=$ac_check_lib_save_LIBS
  16248. fi
  16249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_unparse" >&5
  16250. $as_echo "$ac_cv_lib_uuid_uuid_unparse" >&6; }
  16251. if test "x$ac_cv_lib_uuid_uuid_unparse" = xyes; then :
  16252. UUID_LIBS=-luuid
  16253. else
  16254. as_fn_error $? "uuid lib not found, install it or build without --with-webdav-locks" "$LINENO" 5
  16255. fi
  16256. for ac_header in uuid/uuid.h
  16257. do :
  16258. ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
  16259. if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
  16260. cat >>confdefs.h <<_ACEOF
  16261. #define HAVE_UUID_UUID_H 1
  16262. _ACEOF
  16263. else
  16264. as_fn_error $? "uuid headers not found, install them or build without --with-webdav-locks" "$LINENO" 5
  16265. fi
  16266. done
  16267. fi
  16268. $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
  16269. $as_echo "#define HAVE_UUID_UUID_H 1" >>confdefs.h
  16270. fi
  16271. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  16272. $as_echo "$as_me: ----------------------------------------" >&6;}
  16273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xxhash support" >&5
  16274. $as_echo_n "checking for xxhash support... " >&6; }
  16275. # Check whether --with-xxhash was given.
  16276. if test "${with_xxhash+set}" = set; then :
  16277. withval=$with_xxhash; WITH_XXHASH=$withval
  16278. else
  16279. WITH_XXHASH=no
  16280. fi
  16281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_XXHASH" >&5
  16282. $as_echo "$WITH_XXHASH" >&6; }
  16283. if test "$WITH_XXHASH" != no; then
  16284. if test "$WITH_XXHASH" != yes; then
  16285. XXHASH_LIBS="-L$WITH_XXHASH -lxxhash"
  16286. CPPFLAGS="$CPPFLAGS -I$WITH_XXHASH"
  16287. else
  16288. pkg_failed=no
  16289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XXHASH" >&5
  16290. $as_echo_n "checking for XXHASH... " >&6; }
  16291. if test -n "$XXHASH_CFLAGS"; then
  16292. pkg_cv_XXHASH_CFLAGS="$XXHASH_CFLAGS"
  16293. elif test -n "$PKG_CONFIG"; then
  16294. if test -n "$PKG_CONFIG" && \
  16295. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxxhash\""; } >&5
  16296. ($PKG_CONFIG --exists --print-errors "libxxhash") 2>&5
  16297. ac_status=$?
  16298. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16299. test $ac_status = 0; }; then
  16300. pkg_cv_XXHASH_CFLAGS=`$PKG_CONFIG --cflags "libxxhash" 2>/dev/null`
  16301. test "x$?" != "x0" && pkg_failed=yes
  16302. else
  16303. pkg_failed=yes
  16304. fi
  16305. else
  16306. pkg_failed=untried
  16307. fi
  16308. if test -n "$XXHASH_LIBS"; then
  16309. pkg_cv_XXHASH_LIBS="$XXHASH_LIBS"
  16310. elif test -n "$PKG_CONFIG"; then
  16311. if test -n "$PKG_CONFIG" && \
  16312. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxxhash\""; } >&5
  16313. ($PKG_CONFIG --exists --print-errors "libxxhash") 2>&5
  16314. ac_status=$?
  16315. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16316. test $ac_status = 0; }; then
  16317. pkg_cv_XXHASH_LIBS=`$PKG_CONFIG --libs "libxxhash" 2>/dev/null`
  16318. test "x$?" != "x0" && pkg_failed=yes
  16319. else
  16320. pkg_failed=yes
  16321. fi
  16322. else
  16323. pkg_failed=untried
  16324. fi
  16325. if test $pkg_failed = yes; then
  16326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16327. $as_echo "no" >&6; }
  16328. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16329. _pkg_short_errors_supported=yes
  16330. else
  16331. _pkg_short_errors_supported=no
  16332. fi
  16333. if test $_pkg_short_errors_supported = yes; then
  16334. XXHASH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxxhash" 2>&1`
  16335. else
  16336. XXHASH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxxhash" 2>&1`
  16337. fi
  16338. # Put the nasty error message in config.log where it belongs
  16339. echo "$XXHASH_PKG_ERRORS" >&5
  16340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XXH_versionNumber in -lxxhash" >&5
  16341. $as_echo_n "checking for XXH_versionNumber in -lxxhash... " >&6; }
  16342. if ${ac_cv_lib_xxhash_XXH_versionNumber+:} false; then :
  16343. $as_echo_n "(cached) " >&6
  16344. else
  16345. ac_check_lib_save_LIBS=$LIBS
  16346. LIBS="-lxxhash $LIBS"
  16347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16348. /* end confdefs.h. */
  16349. /* Override any GCC internal prototype to avoid an error.
  16350. Use char because int might match the return type of a GCC
  16351. builtin and then its argument prototype would still apply. */
  16352. #ifdef __cplusplus
  16353. extern "C"
  16354. #endif
  16355. char XXH_versionNumber ();
  16356. int
  16357. main ()
  16358. {
  16359. return XXH_versionNumber ();
  16360. ;
  16361. return 0;
  16362. }
  16363. _ACEOF
  16364. if ac_fn_c_try_link "$LINENO"; then :
  16365. ac_cv_lib_xxhash_XXH_versionNumber=yes
  16366. else
  16367. ac_cv_lib_xxhash_XXH_versionNumber=no
  16368. fi
  16369. rm -f core conftest.err conftest.$ac_objext \
  16370. conftest$ac_exeext conftest.$ac_ext
  16371. LIBS=$ac_check_lib_save_LIBS
  16372. fi
  16373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xxhash_XXH_versionNumber" >&5
  16374. $as_echo "$ac_cv_lib_xxhash_XXH_versionNumber" >&6; }
  16375. if test "x$ac_cv_lib_xxhash_XXH_versionNumber" = xyes; then :
  16376. XXHASH_LIBS=-lxxhash
  16377. else
  16378. as_fn_error $? "xxhash not found, install it or build without --with-xxhash" "$LINENO" 5
  16379. fi
  16380. for ac_header in xxhash.h
  16381. do :
  16382. ac_fn_c_check_header_mongrel "$LINENO" "xxhash.h" "ac_cv_header_xxhash_h" "$ac_includes_default"
  16383. if test "x$ac_cv_header_xxhash_h" = xyes; then :
  16384. cat >>confdefs.h <<_ACEOF
  16385. #define HAVE_XXHASH_H 1
  16386. _ACEOF
  16387. else
  16388. as_fn_error $? "xxhash not found, install it or build without --with-xxhash" "$LINENO" 5
  16389. fi
  16390. done
  16391. elif test $pkg_failed = untried; then
  16392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16393. $as_echo "no" >&6; }
  16394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XXH_versionNumber in -lxxhash" >&5
  16395. $as_echo_n "checking for XXH_versionNumber in -lxxhash... " >&6; }
  16396. if ${ac_cv_lib_xxhash_XXH_versionNumber+:} false; then :
  16397. $as_echo_n "(cached) " >&6
  16398. else
  16399. ac_check_lib_save_LIBS=$LIBS
  16400. LIBS="-lxxhash $LIBS"
  16401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16402. /* end confdefs.h. */
  16403. /* Override any GCC internal prototype to avoid an error.
  16404. Use char because int might match the return type of a GCC
  16405. builtin and then its argument prototype would still apply. */
  16406. #ifdef __cplusplus
  16407. extern "C"
  16408. #endif
  16409. char XXH_versionNumber ();
  16410. int
  16411. main ()
  16412. {
  16413. return XXH_versionNumber ();
  16414. ;
  16415. return 0;
  16416. }
  16417. _ACEOF
  16418. if ac_fn_c_try_link "$LINENO"; then :
  16419. ac_cv_lib_xxhash_XXH_versionNumber=yes
  16420. else
  16421. ac_cv_lib_xxhash_XXH_versionNumber=no
  16422. fi
  16423. rm -f core conftest.err conftest.$ac_objext \
  16424. conftest$ac_exeext conftest.$ac_ext
  16425. LIBS=$ac_check_lib_save_LIBS
  16426. fi
  16427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xxhash_XXH_versionNumber" >&5
  16428. $as_echo "$ac_cv_lib_xxhash_XXH_versionNumber" >&6; }
  16429. if test "x$ac_cv_lib_xxhash_XXH_versionNumber" = xyes; then :
  16430. XXHASH_LIBS=-lxxhash
  16431. else
  16432. as_fn_error $? "xxhash not found, install it or build without --with-xxhash" "$LINENO" 5
  16433. fi
  16434. for ac_header in xxhash.h
  16435. do :
  16436. ac_fn_c_check_header_mongrel "$LINENO" "xxhash.h" "ac_cv_header_xxhash_h" "$ac_includes_default"
  16437. if test "x$ac_cv_header_xxhash_h" = xyes; then :
  16438. cat >>confdefs.h <<_ACEOF
  16439. #define HAVE_XXHASH_H 1
  16440. _ACEOF
  16441. else
  16442. as_fn_error $? "xxhash not found, install it or build without --with-xxhash" "$LINENO" 5
  16443. fi
  16444. done
  16445. else
  16446. XXHASH_CFLAGS=$pkg_cv_XXHASH_CFLAGS
  16447. XXHASH_LIBS=$pkg_cv_XXHASH_LIBS
  16448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16449. $as_echo "yes" >&6; }
  16450. fi
  16451. fi
  16452. $as_echo "#define HAVE_XXHASH_H 1" >>confdefs.h
  16453. $as_echo "#define HAVE_XXHASH 1" >>confdefs.h
  16454. fi
  16455. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  16456. $as_echo "$as_me: ----------------------------------------" >&6;}
  16457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maxminddb" >&5
  16458. $as_echo_n "checking for maxminddb... " >&6; }
  16459. # Check whether --with-maxminddb was given.
  16460. if test "${with_maxminddb+set}" = set; then :
  16461. withval=$with_maxminddb; WITH_MAXMINDDB=$withval
  16462. else
  16463. WITH_MAXMINDDB=no
  16464. fi
  16465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_MAXMINDDB" >&5
  16466. $as_echo "$WITH_MAXMINDDB" >&6; }
  16467. if test "$WITH_MAXMINDDB" != no; then
  16468. if test "$WITH_MAXMINDDB" != yes; then
  16469. MAXMINDDB_LIB="-L$WITH_MAXMINDDB -lmaxminddb"
  16470. CPPFLAGS="$CPPFLAGS -I$WITH_MAXMINDDB"
  16471. else
  16472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MMDB_open in -lmaxminddb" >&5
  16473. $as_echo_n "checking for MMDB_open in -lmaxminddb... " >&6; }
  16474. if ${ac_cv_lib_maxminddb_MMDB_open+:} false; then :
  16475. $as_echo_n "(cached) " >&6
  16476. else
  16477. ac_check_lib_save_LIBS=$LIBS
  16478. LIBS="-lmaxminddb $LIBS"
  16479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16480. /* end confdefs.h. */
  16481. /* Override any GCC internal prototype to avoid an error.
  16482. Use char because int might match the return type of a GCC
  16483. builtin and then its argument prototype would still apply. */
  16484. #ifdef __cplusplus
  16485. extern "C"
  16486. #endif
  16487. char MMDB_open ();
  16488. int
  16489. main ()
  16490. {
  16491. return MMDB_open ();
  16492. ;
  16493. return 0;
  16494. }
  16495. _ACEOF
  16496. if ac_fn_c_try_link "$LINENO"; then :
  16497. ac_cv_lib_maxminddb_MMDB_open=yes
  16498. else
  16499. ac_cv_lib_maxminddb_MMDB_open=no
  16500. fi
  16501. rm -f core conftest.err conftest.$ac_objext \
  16502. conftest$ac_exeext conftest.$ac_ext
  16503. LIBS=$ac_check_lib_save_LIBS
  16504. fi
  16505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_maxminddb_MMDB_open" >&5
  16506. $as_echo "$ac_cv_lib_maxminddb_MMDB_open" >&6; }
  16507. if test "x$ac_cv_lib_maxminddb_MMDB_open" = xyes; then :
  16508. MAXMINDDB_LIB=-lmaxminddb
  16509. else
  16510. as_fn_error $? "maxminddb lib not found, install it or build without --with-maxminddb" "$LINENO" 5
  16511. fi
  16512. for ac_header in maxminddb.h
  16513. do :
  16514. ac_fn_c_check_header_mongrel "$LINENO" "maxminddb.h" "ac_cv_header_maxminddb_h" "$ac_includes_default"
  16515. if test "x$ac_cv_header_maxminddb_h" = xyes; then :
  16516. cat >>confdefs.h <<_ACEOF
  16517. #define HAVE_MAXMINDDB_H 1
  16518. _ACEOF
  16519. else
  16520. as_fn_error $? "maxminddb headers not found, install them or build without --with-maxminddb" "$LINENO" 5
  16521. fi
  16522. done
  16523. fi
  16524. $as_echo "#define HAVE_MAXMINDDB 1" >>confdefs.h
  16525. $as_echo "#define HAVE_MAXMINDDB_H 1" >>confdefs.h
  16526. fi
  16527. if test "$WITH_MAXMINDDB" != no; then
  16528. BUILD_WITH_MAXMINDDB_TRUE=
  16529. BUILD_WITH_MAXMINDDB_FALSE='#'
  16530. else
  16531. BUILD_WITH_MAXMINDDB_TRUE='#'
  16532. BUILD_WITH_MAXMINDDB_FALSE=
  16533. fi
  16534. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  16535. $as_echo "$as_me: ----------------------------------------" >&6;}
  16536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua-support is requested" >&5
  16537. $as_echo_n "checking if lua-support is requested... " >&6; }
  16538. # Check whether --with-lua was given.
  16539. if test "${with_lua+set}" = set; then :
  16540. withval=$with_lua; WITH_LUA=$withval
  16541. else
  16542. WITH_LUA=no
  16543. fi
  16544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_LUA" >&5
  16545. $as_echo "$WITH_LUA" >&6; }
  16546. if test "$WITH_LUA" != no; then
  16547. found_lua=0
  16548. if test "$WITH_LUA" != yes; then
  16549. pkg_failed=no
  16550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
  16551. $as_echo_n "checking for LUA... " >&6; }
  16552. if test -n "$LUA_CFLAGS"; then
  16553. pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
  16554. elif test -n "$PKG_CONFIG"; then
  16555. if test -n "$PKG_CONFIG" && \
  16556. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WITH_LUA >= 5.1\""; } >&5
  16557. ($PKG_CONFIG --exists --print-errors "$WITH_LUA >= 5.1") 2>&5
  16558. ac_status=$?
  16559. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16560. test $ac_status = 0; }; then
  16561. pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "$WITH_LUA >= 5.1" 2>/dev/null`
  16562. test "x$?" != "x0" && pkg_failed=yes
  16563. else
  16564. pkg_failed=yes
  16565. fi
  16566. else
  16567. pkg_failed=untried
  16568. fi
  16569. if test -n "$LUA_LIBS"; then
  16570. pkg_cv_LUA_LIBS="$LUA_LIBS"
  16571. elif test -n "$PKG_CONFIG"; then
  16572. if test -n "$PKG_CONFIG" && \
  16573. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WITH_LUA >= 5.1\""; } >&5
  16574. ($PKG_CONFIG --exists --print-errors "$WITH_LUA >= 5.1") 2>&5
  16575. ac_status=$?
  16576. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16577. test $ac_status = 0; }; then
  16578. pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "$WITH_LUA >= 5.1" 2>/dev/null`
  16579. test "x$?" != "x0" && pkg_failed=yes
  16580. else
  16581. pkg_failed=yes
  16582. fi
  16583. else
  16584. pkg_failed=untried
  16585. fi
  16586. if test $pkg_failed = yes; then
  16587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16588. $as_echo "no" >&6; }
  16589. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16590. _pkg_short_errors_supported=yes
  16591. else
  16592. _pkg_short_errors_supported=no
  16593. fi
  16594. if test $_pkg_short_errors_supported = yes; then
  16595. LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$WITH_LUA >= 5.1" 2>&1`
  16596. else
  16597. LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$WITH_LUA >= 5.1" 2>&1`
  16598. fi
  16599. # Put the nasty error message in config.log where it belongs
  16600. echo "$LUA_PKG_ERRORS" >&5
  16601. { $as_echo "$as_me:${as_lineno-$LINENO}: Couldn\'t find requested lua pkg-config module $WITH_LUA" >&5
  16602. $as_echo "$as_me: Couldn\'t find requested lua pkg-config module $WITH_LUA" >&6;}
  16603. elif test $pkg_failed = untried; then
  16604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16605. $as_echo "no" >&6; }
  16606. { $as_echo "$as_me:${as_lineno-$LINENO}: Couldn\'t find requested lua pkg-config module $WITH_LUA" >&5
  16607. $as_echo "$as_me: Couldn\'t find requested lua pkg-config module $WITH_LUA" >&6;}
  16608. else
  16609. LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
  16610. LUA_LIBS=$pkg_cv_LUA_LIBS
  16611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16612. $as_echo "yes" >&6; }
  16613. found_lua=1
  16614. fi
  16615. if test "$found_lua" = "0"; then
  16616. LUA_LIBS="-L$WITH_LUA -llua"
  16617. LUA_CFLAGS="-I$WITH_LUA"
  16618. fi
  16619. else
  16620. for luaname in lua5.4 lua-5.4 lua5.3 lua-5.3 lua5.2 lua-5.2 lua5.1 lua-5.1 lua; do
  16621. if test "$found_lua" = "0"; then
  16622. pkg_failed=no
  16623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
  16624. $as_echo_n "checking for LUA... " >&6; }
  16625. if test -n "$LUA_CFLAGS"; then
  16626. pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
  16627. elif test -n "$PKG_CONFIG"; then
  16628. if test -n "$PKG_CONFIG" && \
  16629. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$luaname >= 5.1\""; } >&5
  16630. ($PKG_CONFIG --exists --print-errors "$luaname >= 5.1") 2>&5
  16631. ac_status=$?
  16632. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16633. test $ac_status = 0; }; then
  16634. pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "$luaname >= 5.1" 2>/dev/null`
  16635. test "x$?" != "x0" && pkg_failed=yes
  16636. else
  16637. pkg_failed=yes
  16638. fi
  16639. else
  16640. pkg_failed=untried
  16641. fi
  16642. if test -n "$LUA_LIBS"; then
  16643. pkg_cv_LUA_LIBS="$LUA_LIBS"
  16644. elif test -n "$PKG_CONFIG"; then
  16645. if test -n "$PKG_CONFIG" && \
  16646. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$luaname >= 5.1\""; } >&5
  16647. ($PKG_CONFIG --exists --print-errors "$luaname >= 5.1") 2>&5
  16648. ac_status=$?
  16649. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16650. test $ac_status = 0; }; then
  16651. pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "$luaname >= 5.1" 2>/dev/null`
  16652. test "x$?" != "x0" && pkg_failed=yes
  16653. else
  16654. pkg_failed=yes
  16655. fi
  16656. else
  16657. pkg_failed=untried
  16658. fi
  16659. if test $pkg_failed = yes; then
  16660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16661. $as_echo "no" >&6; }
  16662. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16663. _pkg_short_errors_supported=yes
  16664. else
  16665. _pkg_short_errors_supported=no
  16666. fi
  16667. if test $_pkg_short_errors_supported = yes; then
  16668. LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$luaname >= 5.1" 2>&1`
  16669. else
  16670. LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$luaname >= 5.1" 2>&1`
  16671. fi
  16672. # Put the nasty error message in config.log where it belongs
  16673. echo "$LUA_PKG_ERRORS" >&5
  16674. { $as_echo "$as_me:${as_lineno-$LINENO}: Couldn\'t find $luaname" >&5
  16675. $as_echo "$as_me: Couldn\'t find $luaname" >&6;}
  16676. elif test $pkg_failed = untried; then
  16677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16678. $as_echo "no" >&6; }
  16679. { $as_echo "$as_me:${as_lineno-$LINENO}: Couldn\'t find $luaname" >&5
  16680. $as_echo "$as_me: Couldn\'t find $luaname" >&6;}
  16681. else
  16682. LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
  16683. LUA_LIBS=$pkg_cv_LUA_LIBS
  16684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16685. $as_echo "yes" >&6; }
  16686. found_lua=1
  16687. fi
  16688. fi
  16689. done
  16690. if test "$found_lua" = "0"; then
  16691. as_fn_error $? "Couldn\'t find any lua pkg-config module" "$LINENO" 5
  16692. fi
  16693. fi
  16694. $as_echo "#define HAVE_LUA_H 1" >>confdefs.h
  16695. fi
  16696. if test "$WITH_LUA" != no; then
  16697. BUILD_WITH_LUA_TRUE=
  16698. BUILD_WITH_LUA_FALSE='#'
  16699. else
  16700. BUILD_WITH_LUA_TRUE='#'
  16701. BUILD_WITH_LUA_FALSE=
  16702. fi
  16703. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  16704. $as_echo "$as_me: ----------------------------------------" >&6;}
  16705. save_LIBS=$LIBS
  16706. LIBS=
  16707. found_crypt=no
  16708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt_r" >&5
  16709. $as_echo_n "checking for library containing crypt_r... " >&6; }
  16710. if ${ac_cv_search_crypt_r+:} false; then :
  16711. $as_echo_n "(cached) " >&6
  16712. else
  16713. ac_func_search_save_LIBS=$LIBS
  16714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16715. /* end confdefs.h. */
  16716. /* Override any GCC internal prototype to avoid an error.
  16717. Use char because int might match the return type of a GCC
  16718. builtin and then its argument prototype would still apply. */
  16719. #ifdef __cplusplus
  16720. extern "C"
  16721. #endif
  16722. char crypt_r ();
  16723. int
  16724. main ()
  16725. {
  16726. return crypt_r ();
  16727. ;
  16728. return 0;
  16729. }
  16730. _ACEOF
  16731. for ac_lib in '' crypt; do
  16732. if test -z "$ac_lib"; then
  16733. ac_res="none required"
  16734. else
  16735. ac_res=-l$ac_lib
  16736. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  16737. fi
  16738. if ac_fn_c_try_link "$LINENO"; then :
  16739. ac_cv_search_crypt_r=$ac_res
  16740. fi
  16741. rm -f core conftest.err conftest.$ac_objext \
  16742. conftest$ac_exeext
  16743. if ${ac_cv_search_crypt_r+:} false; then :
  16744. break
  16745. fi
  16746. done
  16747. if ${ac_cv_search_crypt_r+:} false; then :
  16748. else
  16749. ac_cv_search_crypt_r=no
  16750. fi
  16751. rm conftest.$ac_ext
  16752. LIBS=$ac_func_search_save_LIBS
  16753. fi
  16754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt_r" >&5
  16755. $as_echo "$ac_cv_search_crypt_r" >&6; }
  16756. ac_res=$ac_cv_search_crypt_r
  16757. if test "$ac_res" != no; then :
  16758. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  16759. $as_echo "#define HAVE_CRYPT_R 1" >>confdefs.h
  16760. for ac_header in crypt.h
  16761. do :
  16762. ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
  16763. if test "x$ac_cv_header_crypt_h" = xyes; then :
  16764. cat >>confdefs.h <<_ACEOF
  16765. #define HAVE_CRYPT_H 1
  16766. _ACEOF
  16767. fi
  16768. done
  16769. CRYPT_LIB=$LIBS
  16770. found_crypt=crypt_r
  16771. else
  16772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
  16773. $as_echo_n "checking for library containing crypt... " >&6; }
  16774. if ${ac_cv_search_crypt+:} false; then :
  16775. $as_echo_n "(cached) " >&6
  16776. else
  16777. ac_func_search_save_LIBS=$LIBS
  16778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16779. /* end confdefs.h. */
  16780. /* Override any GCC internal prototype to avoid an error.
  16781. Use char because int might match the return type of a GCC
  16782. builtin and then its argument prototype would still apply. */
  16783. #ifdef __cplusplus
  16784. extern "C"
  16785. #endif
  16786. char crypt ();
  16787. int
  16788. main ()
  16789. {
  16790. return crypt ();
  16791. ;
  16792. return 0;
  16793. }
  16794. _ACEOF
  16795. for ac_lib in '' crypt; do
  16796. if test -z "$ac_lib"; then
  16797. ac_res="none required"
  16798. else
  16799. ac_res=-l$ac_lib
  16800. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  16801. fi
  16802. if ac_fn_c_try_link "$LINENO"; then :
  16803. ac_cv_search_crypt=$ac_res
  16804. fi
  16805. rm -f core conftest.err conftest.$ac_objext \
  16806. conftest$ac_exeext
  16807. if ${ac_cv_search_crypt+:} false; then :
  16808. break
  16809. fi
  16810. done
  16811. if ${ac_cv_search_crypt+:} false; then :
  16812. else
  16813. ac_cv_search_crypt=no
  16814. fi
  16815. rm conftest.$ac_ext
  16816. LIBS=$ac_func_search_save_LIBS
  16817. fi
  16818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
  16819. $as_echo "$ac_cv_search_crypt" >&6; }
  16820. ac_res=$ac_cv_search_crypt
  16821. if test "$ac_res" != no; then :
  16822. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  16823. $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
  16824. for ac_header in crypt.h
  16825. do :
  16826. ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
  16827. if test "x$ac_cv_header_crypt_h" = xyes; then :
  16828. cat >>confdefs.h <<_ACEOF
  16829. #define HAVE_CRYPT_H 1
  16830. _ACEOF
  16831. fi
  16832. done
  16833. CRYPT_LIB=$LIBS
  16834. found_crypt=crypt
  16835. fi
  16836. fi
  16837. LIBS=$save_LIBS
  16838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking crypt_r/crypt support" >&5
  16839. $as_echo_n "checking crypt_r/crypt support... " >&6; }
  16840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_crypt" >&5
  16841. $as_echo "$found_crypt" >&6; }
  16842. case "$host_os" in
  16843. *sunos*|*solaris* )
  16844. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  16845. $as_echo "$as_me: ----------------------------------------" >&6;}
  16846. save_LIBS=$LIBS
  16847. LIBS=
  16848. have_sendfilev=no
  16849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfilev" >&5
  16850. $as_echo_n "checking for library containing sendfilev... " >&6; }
  16851. if ${ac_cv_search_sendfilev+:} false; then :
  16852. $as_echo_n "(cached) " >&6
  16853. else
  16854. ac_func_search_save_LIBS=$LIBS
  16855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16856. /* end confdefs.h. */
  16857. /* Override any GCC internal prototype to avoid an error.
  16858. Use char because int might match the return type of a GCC
  16859. builtin and then its argument prototype would still apply. */
  16860. #ifdef __cplusplus
  16861. extern "C"
  16862. #endif
  16863. char sendfilev ();
  16864. int
  16865. main ()
  16866. {
  16867. return sendfilev ();
  16868. ;
  16869. return 0;
  16870. }
  16871. _ACEOF
  16872. for ac_lib in '' sendfile; do
  16873. if test -z "$ac_lib"; then
  16874. ac_res="none required"
  16875. else
  16876. ac_res=-l$ac_lib
  16877. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  16878. fi
  16879. if ac_fn_c_try_link "$LINENO"; then :
  16880. ac_cv_search_sendfilev=$ac_res
  16881. fi
  16882. rm -f core conftest.err conftest.$ac_objext \
  16883. conftest$ac_exeext
  16884. if ${ac_cv_search_sendfilev+:} false; then :
  16885. break
  16886. fi
  16887. done
  16888. if ${ac_cv_search_sendfilev+:} false; then :
  16889. else
  16890. ac_cv_search_sendfilev=no
  16891. fi
  16892. rm conftest.$ac_ext
  16893. LIBS=$ac_func_search_save_LIBS
  16894. fi
  16895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfilev" >&5
  16896. $as_echo "$ac_cv_search_sendfilev" >&6; }
  16897. ac_res=$ac_cv_search_sendfilev
  16898. if test "$ac_res" != no; then :
  16899. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  16900. if test -z "$LIBS"; then
  16901. have_sendfilev=yes
  16902. else
  16903. have_sendfilev=$LIBS
  16904. fi
  16905. SENDFILE_LIB=$LIBS
  16906. $as_echo "#define HAVE_SENDFILEV 1" >>confdefs.h
  16907. fi
  16908. LIBS=$save_LIBS
  16909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking solaris sendfilev present" >&5
  16910. $as_echo_n "checking solaris sendfilev present... " >&6; }
  16911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sendfilev" >&5
  16912. $as_echo "$have_sendfilev" >&6; }
  16913. ;;
  16914. * ) ;;
  16915. esac
  16916. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  16917. $as_echo "$as_me: ----------------------------------------" >&6;}
  16918. case "$host_os" in
  16919. *mingw* ) LIBS="$LIBS -lwsock32" ;;
  16920. * ) ;;
  16921. esac
  16922. for ac_func in \
  16923. arc4random_buf \
  16924. chroot \
  16925. clock_gettime \
  16926. copy_file_range \
  16927. explicit_bzero \
  16928. explicit_memset \
  16929. fork \
  16930. getloadavg \
  16931. getuid \
  16932. gmtime_r \
  16933. inet_aton \
  16934. inet_pton \
  16935. issetugid \
  16936. jrand48 \
  16937. localtime_r \
  16938. lstat \
  16939. madvise \
  16940. mempcpy \
  16941. memset_s \
  16942. mkostemp \
  16943. pipe2 \
  16944. poll \
  16945. pread \
  16946. pwrite \
  16947. sendfile \
  16948. sendfile64 \
  16949. splice \
  16950. srandom \
  16951. strerror_r \
  16952. timegm \
  16953. do :
  16954. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16955. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  16956. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  16957. cat >>confdefs.h <<_ACEOF
  16958. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16959. _ACEOF
  16960. fi
  16961. done
  16962. for ac_header in linux/random.h
  16963. do :
  16964. ac_fn_c_check_header_mongrel "$LINENO" "linux/random.h" "ac_cv_header_linux_random_h" "$ac_includes_default"
  16965. if test "x$ac_cv_header_linux_random_h" = xyes; then :
  16966. cat >>confdefs.h <<_ACEOF
  16967. #define HAVE_LINUX_RANDOM_H 1
  16968. _ACEOF
  16969. for ac_func in getrandom
  16970. do :
  16971. ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom"
  16972. if test "x$ac_cv_func_getrandom" = xyes; then :
  16973. cat >>confdefs.h <<_ACEOF
  16974. #define HAVE_GETRANDOM 1
  16975. _ACEOF
  16976. fi
  16977. done
  16978. fi
  16979. done
  16980. for ac_header in malloc.h
  16981. do :
  16982. ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16983. if test "x$ac_cv_header_malloc_h" = xyes; then :
  16984. cat >>confdefs.h <<_ACEOF
  16985. #define HAVE_MALLOC_H 1
  16986. _ACEOF
  16987. for ac_func in malloc_trim mallopt
  16988. do :
  16989. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16990. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  16991. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  16992. cat >>confdefs.h <<_ACEOF
  16993. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16994. _ACEOF
  16995. fi
  16996. done
  16997. fi
  16998. done
  16999. for ac_header in signal.h
  17000. do :
  17001. ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  17002. if test "x$ac_cv_header_signal_h" = xyes; then :
  17003. cat >>confdefs.h <<_ACEOF
  17004. #define HAVE_SIGNAL_H 1
  17005. _ACEOF
  17006. for ac_func in signal sigaction
  17007. do :
  17008. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17009. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17010. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17011. cat >>confdefs.h <<_ACEOF
  17012. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17013. _ACEOF
  17014. fi
  17015. done
  17016. fi
  17017. done
  17018. for ac_header in sys/epoll.h
  17019. do :
  17020. ac_fn_c_check_header_mongrel "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default"
  17021. if test "x$ac_cv_header_sys_epoll_h" = xyes; then :
  17022. cat >>confdefs.h <<_ACEOF
  17023. #define HAVE_SYS_EPOLL_H 1
  17024. _ACEOF
  17025. for ac_func in epoll_ctl
  17026. do :
  17027. ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
  17028. if test "x$ac_cv_func_epoll_ctl" = xyes; then :
  17029. cat >>confdefs.h <<_ACEOF
  17030. #define HAVE_EPOLL_CTL 1
  17031. _ACEOF
  17032. fi
  17033. done
  17034. fi
  17035. done
  17036. for ac_header in sys/event.h
  17037. do :
  17038. ac_fn_c_check_header_mongrel "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
  17039. if test "x$ac_cv_header_sys_event_h" = xyes; then :
  17040. cat >>confdefs.h <<_ACEOF
  17041. #define HAVE_SYS_EVENT_H 1
  17042. _ACEOF
  17043. for ac_func in kqueue
  17044. do :
  17045. ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
  17046. if test "x$ac_cv_func_kqueue" = xyes; then :
  17047. cat >>confdefs.h <<_ACEOF
  17048. #define HAVE_KQUEUE 1
  17049. _ACEOF
  17050. fi
  17051. done
  17052. fi
  17053. done
  17054. for ac_header in sys/mman.h
  17055. do :
  17056. ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
  17057. if test "x$ac_cv_header_sys_mman_h" = xyes; then :
  17058. cat >>confdefs.h <<_ACEOF
  17059. #define HAVE_SYS_MMAN_H 1
  17060. _ACEOF
  17061. for ac_func in mmap
  17062. do :
  17063. ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
  17064. if test "x$ac_cv_func_mmap" = xyes; then :
  17065. cat >>confdefs.h <<_ACEOF
  17066. #define HAVE_MMAP 1
  17067. _ACEOF
  17068. fi
  17069. done
  17070. fi
  17071. done
  17072. for ac_header in sys/random.h
  17073. do :
  17074. ac_fn_c_check_header_mongrel "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
  17075. if test "x$ac_cv_header_sys_random_h" = xyes; then :
  17076. cat >>confdefs.h <<_ACEOF
  17077. #define HAVE_SYS_RANDOM_H 1
  17078. _ACEOF
  17079. for ac_func in getentropy
  17080. do :
  17081. ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
  17082. if test "x$ac_cv_func_getentropy" = xyes; then :
  17083. cat >>confdefs.h <<_ACEOF
  17084. #define HAVE_GETENTROPY 1
  17085. _ACEOF
  17086. fi
  17087. done
  17088. fi
  17089. done
  17090. for ac_header in sys/resource.h
  17091. do :
  17092. ac_fn_c_check_header_mongrel "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
  17093. if test "x$ac_cv_header_sys_resource_h" = xyes; then :
  17094. cat >>confdefs.h <<_ACEOF
  17095. #define HAVE_SYS_RESOURCE_H 1
  17096. _ACEOF
  17097. for ac_func in getrlimit
  17098. do :
  17099. ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
  17100. if test "x$ac_cv_func_getrlimit" = xyes; then :
  17101. cat >>confdefs.h <<_ACEOF
  17102. #define HAVE_GETRLIMIT 1
  17103. _ACEOF
  17104. fi
  17105. done
  17106. fi
  17107. done
  17108. for ac_header in sys/uio.h
  17109. do :
  17110. ac_fn_c_check_header_mongrel "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
  17111. if test "x$ac_cv_header_sys_uio_h" = xyes; then :
  17112. cat >>confdefs.h <<_ACEOF
  17113. #define HAVE_SYS_UIO_H 1
  17114. _ACEOF
  17115. for ac_func in preadv pwritev writev
  17116. do :
  17117. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17118. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17119. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17120. cat >>confdefs.h <<_ACEOF
  17121. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17122. _ACEOF
  17123. fi
  17124. done
  17125. fi
  17126. done
  17127. if test "$ac_cv_func_poll" = no; then
  17128. for ac_header in sys/select.h
  17129. do :
  17130. ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
  17131. if test "x$ac_cv_header_sys_select_h" = xyes; then :
  17132. cat >>confdefs.h <<_ACEOF
  17133. #define HAVE_SYS_SELECT_H 1
  17134. _ACEOF
  17135. fi
  17136. done
  17137. for ac_func in select
  17138. do :
  17139. ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
  17140. if test "x$ac_cv_func_select" = xyes; then :
  17141. cat >>confdefs.h <<_ACEOF
  17142. #define HAVE_SELECT 1
  17143. _ACEOF
  17144. fi
  17145. done
  17146. fi
  17147. case "$host_os" in
  17148. *sunos*|*solaris* )
  17149. for ac_header in priv.h
  17150. do :
  17151. ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
  17152. if test "x$ac_cv_header_priv_h" = xyes; then :
  17153. cat >>confdefs.h <<_ACEOF
  17154. #define HAVE_PRIV_H 1
  17155. _ACEOF
  17156. for ac_func in setpflags
  17157. do :
  17158. ac_fn_c_check_func "$LINENO" "setpflags" "ac_cv_func_setpflags"
  17159. if test "x$ac_cv_func_setpflags" = xyes; then :
  17160. cat >>confdefs.h <<_ACEOF
  17161. #define HAVE_SETPFLAGS 1
  17162. _ACEOF
  17163. fi
  17164. done
  17165. fi
  17166. done
  17167. for ac_header in port.h
  17168. do :
  17169. ac_fn_c_check_header_mongrel "$LINENO" "port.h" "ac_cv_header_port_h" "$ac_includes_default"
  17170. if test "x$ac_cv_header_port_h" = xyes; then :
  17171. cat >>confdefs.h <<_ACEOF
  17172. #define HAVE_PORT_H 1
  17173. _ACEOF
  17174. for ac_func in port_create
  17175. do :
  17176. ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
  17177. if test "x$ac_cv_func_port_create" = xyes; then :
  17178. cat >>confdefs.h <<_ACEOF
  17179. #define HAVE_PORT_CREATE 1
  17180. _ACEOF
  17181. fi
  17182. done
  17183. fi
  17184. done
  17185. for ac_header in \
  17186. sys/devpoll.h \
  17187. sys/filio.h \
  17188. do :
  17189. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17190. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  17191. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  17192. cat >>confdefs.h <<_ACEOF
  17193. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17194. _ACEOF
  17195. fi
  17196. done
  17197. ;;
  17198. * ) ;;
  17199. esac
  17200. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  17201. $as_echo "$as_me: ----------------------------------------" >&6;}
  17202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if weak symbols are supported" >&5
  17203. $as_echo_n "checking if weak symbols are supported... " >&6; }
  17204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17205. /* end confdefs.h. */
  17206. __attribute__((weak)) void __dummy(void *x) { }
  17207. void f(void *x) { __dummy(x); }
  17208. int
  17209. main ()
  17210. {
  17211. ;
  17212. return 0;
  17213. }
  17214. _ACEOF
  17215. if ac_fn_c_try_link "$LINENO"; then :
  17216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17217. $as_echo "yes" >&6; }
  17218. $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
  17219. else
  17220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17221. $as_echo "no" >&6; }
  17222. fi
  17223. rm -f core conftest.err conftest.$ac_objext \
  17224. conftest$ac_exeext conftest.$ac_ext
  17225. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  17226. $as_echo "$as_me: ----------------------------------------" >&6;}
  17227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Large File System support" >&5
  17228. $as_echo_n "checking for Large File System support... " >&6; }
  17229. # Check whether --enable-lfs was given.
  17230. if test "${enable_lfs+set}" = set; then :
  17231. enableval=$enable_lfs;
  17232. case "${enableval}" in
  17233. yes) ENABLE_LFS=yes ;;
  17234. no) ENABLE_LFS=no ;;
  17235. *) as_fn_error $? "bad value ${enableval} for --enable-lfs" "$LINENO" 5 ;;
  17236. esac
  17237. else
  17238. ENABLE_LFS=yes
  17239. fi
  17240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_LFS" >&5
  17241. $as_echo "$ENABLE_LFS" >&6; }
  17242. if test "$ENABLE_LFS" = yes; then
  17243. CPPFLAGS="${CPPFLAGS} -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES"
  17244. # Check whether --enable-largefile was given.
  17245. if test "${enable_largefile+set}" = set; then :
  17246. enableval=$enable_largefile;
  17247. fi
  17248. if test "$enable_largefile" != no; then
  17249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  17250. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  17251. if ${ac_cv_sys_largefile_CC+:} false; then :
  17252. $as_echo_n "(cached) " >&6
  17253. else
  17254. ac_cv_sys_largefile_CC=no
  17255. if test "$GCC" != yes; then
  17256. ac_save_CC=$CC
  17257. while :; do
  17258. # IRIX 6.2 and later do not support large files by default,
  17259. # so use the C compiler's -n32 option if that helps.
  17260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17261. /* end confdefs.h. */
  17262. #include <sys/types.h>
  17263. /* Check that off_t can represent 2**63 - 1 correctly.
  17264. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  17265. since some C++ compilers masquerading as C compilers
  17266. incorrectly reject 9223372036854775807. */
  17267. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  17268. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  17269. && LARGE_OFF_T % 2147483647 == 1)
  17270. ? 1 : -1];
  17271. int
  17272. main ()
  17273. {
  17274. ;
  17275. return 0;
  17276. }
  17277. _ACEOF
  17278. if ac_fn_c_try_compile "$LINENO"; then :
  17279. break
  17280. fi
  17281. rm -f core conftest.err conftest.$ac_objext
  17282. CC="$CC -n32"
  17283. if ac_fn_c_try_compile "$LINENO"; then :
  17284. ac_cv_sys_largefile_CC=' -n32'; break
  17285. fi
  17286. rm -f core conftest.err conftest.$ac_objext
  17287. break
  17288. done
  17289. CC=$ac_save_CC
  17290. rm -f conftest.$ac_ext
  17291. fi
  17292. fi
  17293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  17294. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  17295. if test "$ac_cv_sys_largefile_CC" != no; then
  17296. CC=$CC$ac_cv_sys_largefile_CC
  17297. fi
  17298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  17299. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  17300. if ${ac_cv_sys_file_offset_bits+:} false; then :
  17301. $as_echo_n "(cached) " >&6
  17302. else
  17303. while :; do
  17304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17305. /* end confdefs.h. */
  17306. #include <sys/types.h>
  17307. /* Check that off_t can represent 2**63 - 1 correctly.
  17308. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  17309. since some C++ compilers masquerading as C compilers
  17310. incorrectly reject 9223372036854775807. */
  17311. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  17312. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  17313. && LARGE_OFF_T % 2147483647 == 1)
  17314. ? 1 : -1];
  17315. int
  17316. main ()
  17317. {
  17318. ;
  17319. return 0;
  17320. }
  17321. _ACEOF
  17322. if ac_fn_c_try_compile "$LINENO"; then :
  17323. ac_cv_sys_file_offset_bits=no; break
  17324. fi
  17325. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17327. /* end confdefs.h. */
  17328. #define _FILE_OFFSET_BITS 64
  17329. #include <sys/types.h>
  17330. /* Check that off_t can represent 2**63 - 1 correctly.
  17331. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  17332. since some C++ compilers masquerading as C compilers
  17333. incorrectly reject 9223372036854775807. */
  17334. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  17335. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  17336. && LARGE_OFF_T % 2147483647 == 1)
  17337. ? 1 : -1];
  17338. int
  17339. main ()
  17340. {
  17341. ;
  17342. return 0;
  17343. }
  17344. _ACEOF
  17345. if ac_fn_c_try_compile "$LINENO"; then :
  17346. ac_cv_sys_file_offset_bits=64; break
  17347. fi
  17348. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17349. ac_cv_sys_file_offset_bits=unknown
  17350. break
  17351. done
  17352. fi
  17353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  17354. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  17355. case $ac_cv_sys_file_offset_bits in #(
  17356. no | unknown) ;;
  17357. *)
  17358. cat >>confdefs.h <<_ACEOF
  17359. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  17360. _ACEOF
  17361. ;;
  17362. esac
  17363. rm -rf conftest*
  17364. if test $ac_cv_sys_file_offset_bits = unknown; then
  17365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  17366. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  17367. if ${ac_cv_sys_large_files+:} false; then :
  17368. $as_echo_n "(cached) " >&6
  17369. else
  17370. while :; do
  17371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17372. /* end confdefs.h. */
  17373. #include <sys/types.h>
  17374. /* Check that off_t can represent 2**63 - 1 correctly.
  17375. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  17376. since some C++ compilers masquerading as C compilers
  17377. incorrectly reject 9223372036854775807. */
  17378. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  17379. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  17380. && LARGE_OFF_T % 2147483647 == 1)
  17381. ? 1 : -1];
  17382. int
  17383. main ()
  17384. {
  17385. ;
  17386. return 0;
  17387. }
  17388. _ACEOF
  17389. if ac_fn_c_try_compile "$LINENO"; then :
  17390. ac_cv_sys_large_files=no; break
  17391. fi
  17392. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17394. /* end confdefs.h. */
  17395. #define _LARGE_FILES 1
  17396. #include <sys/types.h>
  17397. /* Check that off_t can represent 2**63 - 1 correctly.
  17398. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  17399. since some C++ compilers masquerading as C compilers
  17400. incorrectly reject 9223372036854775807. */
  17401. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  17402. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  17403. && LARGE_OFF_T % 2147483647 == 1)
  17404. ? 1 : -1];
  17405. int
  17406. main ()
  17407. {
  17408. ;
  17409. return 0;
  17410. }
  17411. _ACEOF
  17412. if ac_fn_c_try_compile "$LINENO"; then :
  17413. ac_cv_sys_large_files=1; break
  17414. fi
  17415. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17416. ac_cv_sys_large_files=unknown
  17417. break
  17418. done
  17419. fi
  17420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  17421. $as_echo "$ac_cv_sys_large_files" >&6; }
  17422. case $ac_cv_sys_large_files in #(
  17423. no | unknown) ;;
  17424. *)
  17425. cat >>confdefs.h <<_ACEOF
  17426. #define _LARGE_FILES $ac_cv_sys_large_files
  17427. _ACEOF
  17428. ;;
  17429. esac
  17430. rm -rf conftest*
  17431. fi
  17432. fi
  17433. fi
  17434. if test "$ac_cv_func_sendfile" = yes; then
  17435. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  17436. $as_echo "$as_me: ----------------------------------------" >&6;}
  17437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sendfile works" >&5
  17438. $as_echo_n "checking if sendfile works... " >&6; }
  17439. if test "$cross_compiling" = no; then
  17440. if test "$cross_compiling" = yes; then :
  17441. else
  17442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17443. /* end confdefs.h. */
  17444. #ifdef HAVE_SYS_SENDFILE_H
  17445. #include <sys/sendfile.h>
  17446. #endif /* HAVE_SYS_SENDFILE_H */
  17447. #include <errno.h>
  17448. #include <sys/types.h>
  17449. #include <sys/socket.h>
  17450. #include <sys/uio.h>
  17451. int main() {
  17452. int o = 0;
  17453. if (-1 == sendfile(-1, 0, &o, 0) && errno == ENOSYS) return -1;
  17454. return 0;
  17455. }
  17456. _ACEOF
  17457. if ac_fn_c_try_run "$LINENO"; then :
  17458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17459. $as_echo "yes" >&6; }
  17460. else
  17461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17462. $as_echo "no" >&6; }
  17463. $as_echo "#define HAVE_SENDFILE_BROKEN 1" >>confdefs.h
  17464. fi
  17465. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17466. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17467. fi
  17468. fi
  17469. fi
  17470. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  17471. $as_echo "$as_me: ----------------------------------------" >&6;}
  17472. # Check whether --enable-ipv6 was given.
  17473. if test "${enable_ipv6+set}" = set; then :
  17474. enableval=$enable_ipv6;
  17475. case "${enableval}" in
  17476. yes) ipv6=true ;;
  17477. no) ipv6=false ;;
  17478. *) as_fn_error $? "bad value ${enableval} for --enable-ipv6" "$LINENO" 5 ;;
  17479. esac
  17480. else
  17481. ipv6=true
  17482. fi
  17483. if test "$ipv6" = true; then
  17484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 support" >&5
  17485. $as_echo_n "checking for IPv6 support... " >&6; }
  17486. if ${ac_cv_ipv6_support+:} false; then :
  17487. $as_echo_n "(cached) " >&6
  17488. else
  17489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17490. /* end confdefs.h. */
  17491. #include <sys/types.h>
  17492. #include <sys/socket.h>
  17493. #include <netinet/in.h>
  17494. int
  17495. main ()
  17496. {
  17497. struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
  17498. ;
  17499. return 0;
  17500. }
  17501. _ACEOF
  17502. if ac_fn_c_try_link "$LINENO"; then :
  17503. ac_cv_ipv6_support=yes
  17504. else
  17505. ac_cv_ipv6_support=no
  17506. fi
  17507. rm -f core conftest.err conftest.$ac_objext \
  17508. conftest$ac_exeext conftest.$ac_ext
  17509. fi
  17510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ipv6_support" >&5
  17511. $as_echo "$ac_cv_ipv6_support" >&6; }
  17512. if test "$ac_cv_ipv6_support" = yes; then
  17513. $as_echo "#define HAVE_IPV6 1" >>confdefs.h
  17514. else
  17515. as_fn_error $? "IPv6 seems broken. Fix it or build with --disable-ipv6" "$LINENO" 5
  17516. fi
  17517. fi
  17518. # disable mmap by default
  17519. # lighttpd may always use mmap with files it owns (created tmp files)
  17520. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  17521. $as_echo "$as_me: ----------------------------------------" >&6;}
  17522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking use mmap if available" >&5
  17523. $as_echo_n "checking use mmap if available... " >&6; }
  17524. # Check whether --enable-mmap was given.
  17525. if test "${enable_mmap+set}" = set; then :
  17526. enableval=$enable_mmap;
  17527. case "${enableval}" in
  17528. yes) mmap=true ;;
  17529. no) mmap=false ;;
  17530. *) as_fn_error $? "bad value ${enableval} for --enable-mmap" "$LINENO" 5 ;;
  17531. esac
  17532. else
  17533. mmap=false
  17534. fi
  17535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mmap" >&5
  17536. $as_echo "$mmap" >&6; }
  17537. if test "$mmap" = true; then
  17538. $as_echo "#define ENABLE_MMAP 1" >>confdefs.h
  17539. fi
  17540. { $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------" >&5
  17541. $as_echo "$as_me: ----------------------------------------" >&6;}
  17542. if test "${GCC}" = yes; then
  17543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pipe -Wall -W -Wshadow -pedantic" >&5
  17544. $as_echo_n "checking if $CC supports -pipe -Wall -W -Wshadow -pedantic... " >&6; }
  17545. ac_ext=c
  17546. ac_cpp='$CPP $CPPFLAGS'
  17547. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17548. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17549. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17550. ac_try_cflags_saved_cflags="${CFLAGS}"
  17551. CFLAGS="${CFLAGS} -pipe -Wall -W -Wshadow -pedantic"
  17552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17553. /* end confdefs.h. */
  17554. int
  17555. main ()
  17556. {
  17557. ;
  17558. return 0;
  17559. }
  17560. _ACEOF
  17561. if ac_fn_c_try_compile "$LINENO"; then :
  17562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17563. $as_echo "yes" >&6; }
  17564. else
  17565. as_fn_error $? "no" "$LINENO" 5
  17566. CFLAGS="${ac_try_cflags_saved_cflags}"
  17567. fi
  17568. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17569. ac_ext=c
  17570. ac_cpp='$CPP $CPPFLAGS'
  17571. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17572. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17573. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17574. fi
  17575. # Check whether --enable-extra-warnings was given.
  17576. if test "${enable_extra_warnings+set}" = set; then :
  17577. enableval=$enable_extra_warnings;
  17578. case "${enableval}" in
  17579. error) extrawarnings=error ;;
  17580. yes) extrawarnings=true ;;
  17581. no) extrawarnings=false ;;
  17582. *) as_fn_error $? "bad value ${enableval} for --enable-extra-warnings" "$LINENO" 5 ;;
  17583. esac
  17584. else
  17585. extrawarnings=false
  17586. fi
  17587. if test "$extrawarnings" = true || test "$extrawarnings" = error; then
  17588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -g -O2 -g2 -Wall -Wmissing-declarations -Wcast-align -Wsign-compare -Wnested-externs -Wpointer-arith -D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security" >&5
  17589. $as_echo_n "checking if $CC supports -g -O2 -g2 -Wall -Wmissing-declarations -Wcast-align -Wsign-compare -Wnested-externs -Wpointer-arith -D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security... " >&6; }
  17590. ac_ext=c
  17591. ac_cpp='$CPP $CPPFLAGS'
  17592. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17593. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17594. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17595. ac_try_cflags_saved_cflags="${CFLAGS}"
  17596. CFLAGS="${CFLAGS} -g -O2 -g2 -Wall -Wmissing-declarations -Wcast-align -Wsign-compare -Wnested-externs -Wpointer-arith -D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security"
  17597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17598. /* end confdefs.h. */
  17599. int
  17600. main ()
  17601. {
  17602. ;
  17603. return 0;
  17604. }
  17605. _ACEOF
  17606. if ac_fn_c_try_compile "$LINENO"; then :
  17607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17608. $as_echo "yes" >&6; }
  17609. else
  17610. as_fn_error $? "no" "$LINENO" 5
  17611. CFLAGS="${ac_try_cflags_saved_cflags}"
  17612. fi
  17613. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17614. ac_ext=c
  17615. ac_cpp='$CPP $CPPFLAGS'
  17616. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17617. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17618. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fstack-protector-strong" >&5
  17620. $as_echo_n "checking if $CC supports -fstack-protector-strong... " >&6; }
  17621. ac_ext=c
  17622. ac_cpp='$CPP $CPPFLAGS'
  17623. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17624. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17625. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17626. ac_try_cflags_saved_cflags="${CFLAGS}"
  17627. CFLAGS="${CFLAGS} -fstack-protector-strong"
  17628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17629. /* end confdefs.h. */
  17630. int
  17631. main ()
  17632. {
  17633. ;
  17634. return 0;
  17635. }
  17636. _ACEOF
  17637. if ac_fn_c_try_compile "$LINENO"; then :
  17638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17639. $as_echo "yes" >&6; }
  17640. else
  17641. as_fn_error $? "no" "$LINENO" 5
  17642. CFLAGS="${ac_try_cflags_saved_cflags}"
  17643. fi
  17644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17645. ac_ext=c
  17646. ac_cpp='$CPP $CPPFLAGS'
  17647. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17648. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17649. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17650. case "$host_os" in
  17651. *darwin* ) ;;
  17652. * ) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports -Wl,--as-needed" >&5
  17653. $as_echo_n "checking if $LD supports -Wl,--as-needed... " >&6; }
  17654. ac_ext=c
  17655. ac_cpp='$CPP $CPPFLAGS'
  17656. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17657. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17658. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17659. ac_try_ldflags_saved_ldflags="${LDFLAGS}"
  17660. LDFLAGS="${LDFLAGS} -Wl,--as-needed"
  17661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17662. /* end confdefs.h. */
  17663. int
  17664. main ()
  17665. {
  17666. ;
  17667. return 0;
  17668. }
  17669. _ACEOF
  17670. if ac_fn_c_try_link "$LINENO"; then :
  17671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17672. $as_echo "yes" >&6; }
  17673. else
  17674. as_fn_error $? "no" "$LINENO" 5
  17675. LDFLAGS="${ac_try_ldflags_saved_cflags}"
  17676. fi
  17677. rm -f core conftest.err conftest.$ac_objext \
  17678. conftest$ac_exeext conftest.$ac_ext
  17679. ac_ext=c
  17680. ac_cpp='$CPP $CPPFLAGS'
  17681. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17682. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17683. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17684. ;;
  17685. esac
  17686. if test "$extrawarnings" = error; then
  17687. as_fn_append CFLAGS " -Werror"
  17688. case "$host_os" in
  17689. *darwin* ) ;;
  17690. * ) as_fn_append LDFLAGS " -Wl,--fatal-warnings" ;;
  17691. esac
  17692. fi
  17693. fi
  17694. LIGHTTPD_VERSION_ID=0x10440
  17695. cat >>confdefs.h <<_ACEOF
  17696. #define LIGHTTPD_VERSION_ID $LIGHTTPD_VERSION_ID
  17697. _ACEOF
  17698. ac_config_files="$ac_config_files distribute.sh doc/config/conf.d/Makefile doc/config/Makefile doc/config/vhosts.d/Makefile doc/Makefile doc/outdated/Makefile doc/scripts/Makefile doc/systemd/Makefile Makefile src/Makefile tests/docroot/Makefile tests/Makefile"
  17699. cat >confcache <<\_ACEOF
  17700. # This file is a shell script that caches the results of configure
  17701. # tests run on this system so they can be shared between configure
  17702. # scripts and configure runs, see configure's option --config-cache.
  17703. # It is not useful on other systems. If it contains results you don't
  17704. # want to keep, you may remove or edit it.
  17705. #
  17706. # config.status only pays attention to the cache file if you give it
  17707. # the --recheck option to rerun configure.
  17708. #
  17709. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  17710. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  17711. # following values.
  17712. _ACEOF
  17713. # The following way of writing the cache mishandles newlines in values,
  17714. # but we know of no workaround that is simple, portable, and efficient.
  17715. # So, we kill variables containing newlines.
  17716. # Ultrix sh set writes to stderr and can't be redirected directly,
  17717. # and sets the high bit in the cache file unless we assign to the vars.
  17718. (
  17719. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  17720. eval ac_val=\$$ac_var
  17721. case $ac_val in #(
  17722. *${as_nl}*)
  17723. case $ac_var in #(
  17724. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  17725. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  17726. esac
  17727. case $ac_var in #(
  17728. _ | IFS | as_nl) ;; #(
  17729. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  17730. *) { eval $ac_var=; unset $ac_var;} ;;
  17731. esac ;;
  17732. esac
  17733. done
  17734. (set) 2>&1 |
  17735. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  17736. *${as_nl}ac_space=\ *)
  17737. # `set' does not quote correctly, so add quotes: double-quote
  17738. # substitution turns \\\\ into \\, and sed turns \\ into \.
  17739. sed -n \
  17740. "s/'/'\\\\''/g;
  17741. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  17742. ;; #(
  17743. *)
  17744. # `set' quotes correctly as required by POSIX, so do not add quotes.
  17745. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  17746. ;;
  17747. esac |
  17748. sort
  17749. ) |
  17750. sed '
  17751. /^ac_cv_env_/b end
  17752. t clear
  17753. :clear
  17754. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  17755. t end
  17756. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  17757. :end' >>confcache
  17758. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  17759. if test -w "$cache_file"; then
  17760. if test "x$cache_file" != "x/dev/null"; then
  17761. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  17762. $as_echo "$as_me: updating cache $cache_file" >&6;}
  17763. if test ! -f "$cache_file" || test -h "$cache_file"; then
  17764. cat confcache >"$cache_file"
  17765. else
  17766. case $cache_file in #(
  17767. */* | ?:*)
  17768. mv -f confcache "$cache_file"$$ &&
  17769. mv -f "$cache_file"$$ "$cache_file" ;; #(
  17770. *)
  17771. mv -f confcache "$cache_file" ;;
  17772. esac
  17773. fi
  17774. fi
  17775. else
  17776. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  17777. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  17778. fi
  17779. fi
  17780. rm -f confcache
  17781. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  17782. # Let make expand exec_prefix.
  17783. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  17784. DEFS=-DHAVE_CONFIG_H
  17785. ac_libobjs=
  17786. ac_ltlibobjs=
  17787. U=
  17788. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  17789. # 1. Remove the extension, and $U if already installed.
  17790. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  17791. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  17792. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  17793. # will be set to the directory where LIBOBJS objects are built.
  17794. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  17795. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  17796. done
  17797. LIBOBJS=$ac_libobjs
  17798. LTLIBOBJS=$ac_ltlibobjs
  17799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  17800. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  17801. if test -n "$am_sleep_pid"; then
  17802. # Hide warnings about reused PIDs.
  17803. wait $am_sleep_pid 2>/dev/null
  17804. fi
  17805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  17806. $as_echo "done" >&6; }
  17807. if test -n "$EXEEXT"; then
  17808. am__EXEEXT_TRUE=
  17809. am__EXEEXT_FALSE='#'
  17810. else
  17811. am__EXEEXT_TRUE='#'
  17812. am__EXEEXT_FALSE=
  17813. fi
  17814. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  17815. as_fn_error $? "conditional \"AMDEP\" was never defined.
  17816. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17817. fi
  17818. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  17819. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  17820. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17821. fi
  17822. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  17823. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  17824. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17825. fi
  17826. if test -z "${NO_RDYNAMIC_TRUE}" && test -z "${NO_RDYNAMIC_FALSE}"; then
  17827. as_fn_error $? "conditional \"NO_RDYNAMIC\" was never defined.
  17828. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17829. fi
  17830. if test -z "${LIGHTTPD_STATIC_TRUE}" && test -z "${LIGHTTPD_STATIC_FALSE}"; then
  17831. as_fn_error $? "conditional \"LIGHTTPD_STATIC\" was never defined.
  17832. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17833. fi
  17834. if test -z "${BUILD_WITH_MYSQL_TRUE}" && test -z "${BUILD_WITH_MYSQL_FALSE}"; then
  17835. as_fn_error $? "conditional \"BUILD_WITH_MYSQL\" was never defined.
  17836. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17837. fi
  17838. if test -z "${BUILD_WITH_PGSQL_TRUE}" && test -z "${BUILD_WITH_PGSQL_FALSE}"; then
  17839. as_fn_error $? "conditional \"BUILD_WITH_PGSQL\" was never defined.
  17840. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17841. fi
  17842. if test -z "${BUILD_WITH_DBI_TRUE}" && test -z "${BUILD_WITH_DBI_FALSE}"; then
  17843. as_fn_error $? "conditional \"BUILD_WITH_DBI\" was never defined.
  17844. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17845. fi
  17846. if test -z "${BUILD_WITH_SASL_TRUE}" && test -z "${BUILD_WITH_SASL_FALSE}"; then
  17847. as_fn_error $? "conditional \"BUILD_WITH_SASL\" was never defined.
  17848. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17849. fi
  17850. if test -z "${BUILD_WITH_LDAP_TRUE}" && test -z "${BUILD_WITH_LDAP_FALSE}"; then
  17851. as_fn_error $? "conditional \"BUILD_WITH_LDAP\" was never defined.
  17852. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17853. fi
  17854. if test -z "${BUILD_WITH_PAM_TRUE}" && test -z "${BUILD_WITH_PAM_FALSE}"; then
  17855. as_fn_error $? "conditional \"BUILD_WITH_PAM\" was never defined.
  17856. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17857. fi
  17858. if test -z "${BUILD_WITH_KRB5_TRUE}" && test -z "${BUILD_WITH_KRB5_FALSE}"; then
  17859. as_fn_error $? "conditional \"BUILD_WITH_KRB5\" was never defined.
  17860. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17861. fi
  17862. if test -z "${BUILD_WITH_OPENSSL_TRUE}" && test -z "${BUILD_WITH_OPENSSL_FALSE}"; then
  17863. as_fn_error $? "conditional \"BUILD_WITH_OPENSSL\" was never defined.
  17864. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17865. fi
  17866. if test -z "${BUILD_WITH_WOLFSSL_TRUE}" && test -z "${BUILD_WITH_WOLFSSL_FALSE}"; then
  17867. as_fn_error $? "conditional \"BUILD_WITH_WOLFSSL\" was never defined.
  17868. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17869. fi
  17870. if test -z "${BUILD_WITH_MBEDTLS_TRUE}" && test -z "${BUILD_WITH_MBEDTLS_FALSE}"; then
  17871. as_fn_error $? "conditional \"BUILD_WITH_MBEDTLS\" was never defined.
  17872. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17873. fi
  17874. if test -z "${BUILD_WITH_GNUTLS_TRUE}" && test -z "${BUILD_WITH_GNUTLS_FALSE}"; then
  17875. as_fn_error $? "conditional \"BUILD_WITH_GNUTLS\" was never defined.
  17876. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17877. fi
  17878. if test -z "${BUILD_WITH_NSS_TRUE}" && test -z "${BUILD_WITH_NSS_FALSE}"; then
  17879. as_fn_error $? "conditional \"BUILD_WITH_NSS\" was never defined.
  17880. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17881. fi
  17882. if test -z "${BUILD_WITH_MAXMINDDB_TRUE}" && test -z "${BUILD_WITH_MAXMINDDB_FALSE}"; then
  17883. as_fn_error $? "conditional \"BUILD_WITH_MAXMINDDB\" was never defined.
  17884. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17885. fi
  17886. if test -z "${BUILD_WITH_LUA_TRUE}" && test -z "${BUILD_WITH_LUA_FALSE}"; then
  17887. as_fn_error $? "conditional \"BUILD_WITH_LUA\" was never defined.
  17888. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17889. fi
  17890. : "${CONFIG_STATUS=./config.status}"
  17891. ac_write_fail=0
  17892. ac_clean_files_save=$ac_clean_files
  17893. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  17894. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  17895. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  17896. as_write_fail=0
  17897. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  17898. #! $SHELL
  17899. # Generated by $as_me.
  17900. # Run this file to recreate the current configuration.
  17901. # Compiler output produced by configure, useful for debugging
  17902. # configure, is in config.log if it exists.
  17903. debug=false
  17904. ac_cs_recheck=false
  17905. ac_cs_silent=false
  17906. SHELL=\${CONFIG_SHELL-$SHELL}
  17907. export SHELL
  17908. _ASEOF
  17909. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  17910. ## -------------------- ##
  17911. ## M4sh Initialization. ##
  17912. ## -------------------- ##
  17913. # Be more Bourne compatible
  17914. DUALCASE=1; export DUALCASE # for MKS sh
  17915. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17916. emulate sh
  17917. NULLCMD=:
  17918. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  17919. # is contrary to our usage. Disable this feature.
  17920. alias -g '${1+"$@"}'='"$@"'
  17921. setopt NO_GLOB_SUBST
  17922. else
  17923. case `(set -o) 2>/dev/null` in #(
  17924. *posix*) :
  17925. set -o posix ;; #(
  17926. *) :
  17927. ;;
  17928. esac
  17929. fi
  17930. as_nl='
  17931. '
  17932. export as_nl
  17933. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  17934. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  17935. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  17936. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  17937. # Prefer a ksh shell builtin over an external printf program on Solaris,
  17938. # but without wasting forks for bash or zsh.
  17939. if test -z "$BASH_VERSION$ZSH_VERSION" \
  17940. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  17941. as_echo='print -r --'
  17942. as_echo_n='print -rn --'
  17943. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  17944. as_echo='printf %s\n'
  17945. as_echo_n='printf %s'
  17946. else
  17947. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  17948. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  17949. as_echo_n='/usr/ucb/echo -n'
  17950. else
  17951. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  17952. as_echo_n_body='eval
  17953. arg=$1;
  17954. case $arg in #(
  17955. *"$as_nl"*)
  17956. expr "X$arg" : "X\\(.*\\)$as_nl";
  17957. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  17958. esac;
  17959. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  17960. '
  17961. export as_echo_n_body
  17962. as_echo_n='sh -c $as_echo_n_body as_echo'
  17963. fi
  17964. export as_echo_body
  17965. as_echo='sh -c $as_echo_body as_echo'
  17966. fi
  17967. # The user is always right.
  17968. if test "${PATH_SEPARATOR+set}" != set; then
  17969. PATH_SEPARATOR=:
  17970. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  17971. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  17972. PATH_SEPARATOR=';'
  17973. }
  17974. fi
  17975. # IFS
  17976. # We need space, tab and new line, in precisely that order. Quoting is
  17977. # there to prevent editors from complaining about space-tab.
  17978. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  17979. # splitting by setting IFS to empty value.)
  17980. IFS=" "" $as_nl"
  17981. # Find who we are. Look in the path if we contain no directory separator.
  17982. as_myself=
  17983. case $0 in #((
  17984. *[\\/]* ) as_myself=$0 ;;
  17985. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17986. for as_dir in $PATH
  17987. do
  17988. IFS=$as_save_IFS
  17989. test -z "$as_dir" && as_dir=.
  17990. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  17991. done
  17992. IFS=$as_save_IFS
  17993. ;;
  17994. esac
  17995. # We did not find ourselves, most probably we were run as `sh COMMAND'
  17996. # in which case we are not to be found in the path.
  17997. if test "x$as_myself" = x; then
  17998. as_myself=$0
  17999. fi
  18000. if test ! -f "$as_myself"; then
  18001. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  18002. exit 1
  18003. fi
  18004. # Unset variables that we do not need and which cause bugs (e.g. in
  18005. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  18006. # suppresses any "Segmentation fault" message there. '((' could
  18007. # trigger a bug in pdksh 5.2.14.
  18008. for as_var in BASH_ENV ENV MAIL MAILPATH
  18009. do eval test x\${$as_var+set} = xset \
  18010. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  18011. done
  18012. PS1='$ '
  18013. PS2='> '
  18014. PS4='+ '
  18015. # NLS nuisances.
  18016. LC_ALL=C
  18017. export LC_ALL
  18018. LANGUAGE=C
  18019. export LANGUAGE
  18020. # CDPATH.
  18021. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18022. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  18023. # ----------------------------------------
  18024. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  18025. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  18026. # script with STATUS, using 1 if that was 0.
  18027. as_fn_error ()
  18028. {
  18029. as_status=$1; test $as_status -eq 0 && as_status=1
  18030. if test "$4"; then
  18031. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18032. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  18033. fi
  18034. $as_echo "$as_me: error: $2" >&2
  18035. as_fn_exit $as_status
  18036. } # as_fn_error
  18037. # as_fn_set_status STATUS
  18038. # -----------------------
  18039. # Set $? to STATUS, without forking.
  18040. as_fn_set_status ()
  18041. {
  18042. return $1
  18043. } # as_fn_set_status
  18044. # as_fn_exit STATUS
  18045. # -----------------
  18046. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  18047. as_fn_exit ()
  18048. {
  18049. set +e
  18050. as_fn_set_status $1
  18051. exit $1
  18052. } # as_fn_exit
  18053. # as_fn_unset VAR
  18054. # ---------------
  18055. # Portably unset VAR.
  18056. as_fn_unset ()
  18057. {
  18058. { eval $1=; unset $1;}
  18059. }
  18060. as_unset=as_fn_unset
  18061. # as_fn_append VAR VALUE
  18062. # ----------------------
  18063. # Append the text in VALUE to the end of the definition contained in VAR. Take
  18064. # advantage of any shell optimizations that allow amortized linear growth over
  18065. # repeated appends, instead of the typical quadratic growth present in naive
  18066. # implementations.
  18067. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  18068. eval 'as_fn_append ()
  18069. {
  18070. eval $1+=\$2
  18071. }'
  18072. else
  18073. as_fn_append ()
  18074. {
  18075. eval $1=\$$1\$2
  18076. }
  18077. fi # as_fn_append
  18078. # as_fn_arith ARG...
  18079. # ------------------
  18080. # Perform arithmetic evaluation on the ARGs, and store the result in the
  18081. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  18082. # must be portable across $(()) and expr.
  18083. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  18084. eval 'as_fn_arith ()
  18085. {
  18086. as_val=$(( $* ))
  18087. }'
  18088. else
  18089. as_fn_arith ()
  18090. {
  18091. as_val=`expr "$@" || test $? -eq 1`
  18092. }
  18093. fi # as_fn_arith
  18094. if expr a : '\(a\)' >/dev/null 2>&1 &&
  18095. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  18096. as_expr=expr
  18097. else
  18098. as_expr=false
  18099. fi
  18100. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  18101. as_basename=basename
  18102. else
  18103. as_basename=false
  18104. fi
  18105. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  18106. as_dirname=dirname
  18107. else
  18108. as_dirname=false
  18109. fi
  18110. as_me=`$as_basename -- "$0" ||
  18111. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  18112. X"$0" : 'X\(//\)$' \| \
  18113. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  18114. $as_echo X/"$0" |
  18115. sed '/^.*\/\([^/][^/]*\)\/*$/{
  18116. s//\1/
  18117. q
  18118. }
  18119. /^X\/\(\/\/\)$/{
  18120. s//\1/
  18121. q
  18122. }
  18123. /^X\/\(\/\).*/{
  18124. s//\1/
  18125. q
  18126. }
  18127. s/.*/./; q'`
  18128. # Avoid depending upon Character Ranges.
  18129. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  18130. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  18131. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  18132. as_cr_digits='0123456789'
  18133. as_cr_alnum=$as_cr_Letters$as_cr_digits
  18134. ECHO_C= ECHO_N= ECHO_T=
  18135. case `echo -n x` in #(((((
  18136. -n*)
  18137. case `echo 'xy\c'` in
  18138. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  18139. xy) ECHO_C='\c';;
  18140. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  18141. ECHO_T=' ';;
  18142. esac;;
  18143. *)
  18144. ECHO_N='-n';;
  18145. esac
  18146. rm -f conf$$ conf$$.exe conf$$.file
  18147. if test -d conf$$.dir; then
  18148. rm -f conf$$.dir/conf$$.file
  18149. else
  18150. rm -f conf$$.dir
  18151. mkdir conf$$.dir 2>/dev/null
  18152. fi
  18153. if (echo >conf$$.file) 2>/dev/null; then
  18154. if ln -s conf$$.file conf$$ 2>/dev/null; then
  18155. as_ln_s='ln -s'
  18156. # ... but there are two gotchas:
  18157. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  18158. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  18159. # In both cases, we have to default to `cp -pR'.
  18160. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  18161. as_ln_s='cp -pR'
  18162. elif ln conf$$.file conf$$ 2>/dev/null; then
  18163. as_ln_s=ln
  18164. else
  18165. as_ln_s='cp -pR'
  18166. fi
  18167. else
  18168. as_ln_s='cp -pR'
  18169. fi
  18170. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  18171. rmdir conf$$.dir 2>/dev/null
  18172. # as_fn_mkdir_p
  18173. # -------------
  18174. # Create "$as_dir" as a directory, including parents if necessary.
  18175. as_fn_mkdir_p ()
  18176. {
  18177. case $as_dir in #(
  18178. -*) as_dir=./$as_dir;;
  18179. esac
  18180. test -d "$as_dir" || eval $as_mkdir_p || {
  18181. as_dirs=
  18182. while :; do
  18183. case $as_dir in #(
  18184. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  18185. *) as_qdir=$as_dir;;
  18186. esac
  18187. as_dirs="'$as_qdir' $as_dirs"
  18188. as_dir=`$as_dirname -- "$as_dir" ||
  18189. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18190. X"$as_dir" : 'X\(//\)[^/]' \| \
  18191. X"$as_dir" : 'X\(//\)$' \| \
  18192. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  18193. $as_echo X"$as_dir" |
  18194. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18195. s//\1/
  18196. q
  18197. }
  18198. /^X\(\/\/\)[^/].*/{
  18199. s//\1/
  18200. q
  18201. }
  18202. /^X\(\/\/\)$/{
  18203. s//\1/
  18204. q
  18205. }
  18206. /^X\(\/\).*/{
  18207. s//\1/
  18208. q
  18209. }
  18210. s/.*/./; q'`
  18211. test -d "$as_dir" && break
  18212. done
  18213. test -z "$as_dirs" || eval "mkdir $as_dirs"
  18214. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  18215. } # as_fn_mkdir_p
  18216. if mkdir -p . 2>/dev/null; then
  18217. as_mkdir_p='mkdir -p "$as_dir"'
  18218. else
  18219. test -d ./-p && rmdir ./-p
  18220. as_mkdir_p=false
  18221. fi
  18222. # as_fn_executable_p FILE
  18223. # -----------------------
  18224. # Test if FILE is an executable regular file.
  18225. as_fn_executable_p ()
  18226. {
  18227. test -f "$1" && test -x "$1"
  18228. } # as_fn_executable_p
  18229. as_test_x='test -x'
  18230. as_executable_p=as_fn_executable_p
  18231. # Sed expression to map a string onto a valid CPP name.
  18232. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  18233. # Sed expression to map a string onto a valid variable name.
  18234. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  18235. exec 6>&1
  18236. ## ----------------------------------- ##
  18237. ## Main body of $CONFIG_STATUS script. ##
  18238. ## ----------------------------------- ##
  18239. _ASEOF
  18240. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  18241. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18242. # Save the log message, to keep $0 and so on meaningful, and to
  18243. # report actual input values of CONFIG_FILES etc. instead of their
  18244. # values after options handling.
  18245. ac_log="
  18246. This file was extended by lighttpd $as_me 1.4.64, which was
  18247. generated by GNU Autoconf 2.69. Invocation command line was
  18248. CONFIG_FILES = $CONFIG_FILES
  18249. CONFIG_HEADERS = $CONFIG_HEADERS
  18250. CONFIG_LINKS = $CONFIG_LINKS
  18251. CONFIG_COMMANDS = $CONFIG_COMMANDS
  18252. $ $0 $@
  18253. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  18254. "
  18255. _ACEOF
  18256. case $ac_config_files in *"
  18257. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  18258. esac
  18259. case $ac_config_headers in *"
  18260. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  18261. esac
  18262. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18263. # Files that config.status was made for.
  18264. config_files="$ac_config_files"
  18265. config_headers="$ac_config_headers"
  18266. config_commands="$ac_config_commands"
  18267. _ACEOF
  18268. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18269. ac_cs_usage="\
  18270. \`$as_me' instantiates files and other configuration actions
  18271. from templates according to the current configuration. Unless the files
  18272. and actions are specified as TAGs, all are instantiated by default.
  18273. Usage: $0 [OPTION]... [TAG]...
  18274. -h, --help print this help, then exit
  18275. -V, --version print version number and configuration settings, then exit
  18276. --config print configuration, then exit
  18277. -q, --quiet, --silent
  18278. do not print progress messages
  18279. -d, --debug don't remove temporary files
  18280. --recheck update $as_me by reconfiguring in the same conditions
  18281. --file=FILE[:TEMPLATE]
  18282. instantiate the configuration file FILE
  18283. --header=FILE[:TEMPLATE]
  18284. instantiate the configuration header FILE
  18285. Configuration files:
  18286. $config_files
  18287. Configuration headers:
  18288. $config_headers
  18289. Configuration commands:
  18290. $config_commands
  18291. Report bugs to <https://redmine.lighttpd.net/projects/lighttpd/boards/2>.
  18292. lighttpd home page: <https://www.lighttpd.net/>."
  18293. _ACEOF
  18294. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18295. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  18296. ac_cs_version="\\
  18297. lighttpd config.status 1.4.64
  18298. configured by $0, generated by GNU Autoconf 2.69,
  18299. with options \\"\$ac_cs_config\\"
  18300. Copyright (C) 2012 Free Software Foundation, Inc.
  18301. This config.status script is free software; the Free Software Foundation
  18302. gives unlimited permission to copy, distribute and modify it."
  18303. ac_pwd='$ac_pwd'
  18304. srcdir='$srcdir'
  18305. INSTALL='$INSTALL'
  18306. MKDIR_P='$MKDIR_P'
  18307. AWK='$AWK'
  18308. test -n "\$AWK" || AWK=awk
  18309. _ACEOF
  18310. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18311. # The default lists apply if the user does not specify any file.
  18312. ac_need_defaults=:
  18313. while test $# != 0
  18314. do
  18315. case $1 in
  18316. --*=?*)
  18317. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18318. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  18319. ac_shift=:
  18320. ;;
  18321. --*=)
  18322. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18323. ac_optarg=
  18324. ac_shift=:
  18325. ;;
  18326. *)
  18327. ac_option=$1
  18328. ac_optarg=$2
  18329. ac_shift=shift
  18330. ;;
  18331. esac
  18332. case $ac_option in
  18333. # Handling of the options.
  18334. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  18335. ac_cs_recheck=: ;;
  18336. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  18337. $as_echo "$ac_cs_version"; exit ;;
  18338. --config | --confi | --conf | --con | --co | --c )
  18339. $as_echo "$ac_cs_config"; exit ;;
  18340. --debug | --debu | --deb | --de | --d | -d )
  18341. debug=: ;;
  18342. --file | --fil | --fi | --f )
  18343. $ac_shift
  18344. case $ac_optarg in
  18345. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18346. '') as_fn_error $? "missing file argument" ;;
  18347. esac
  18348. as_fn_append CONFIG_FILES " '$ac_optarg'"
  18349. ac_need_defaults=false;;
  18350. --header | --heade | --head | --hea )
  18351. $ac_shift
  18352. case $ac_optarg in
  18353. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18354. esac
  18355. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  18356. ac_need_defaults=false;;
  18357. --he | --h)
  18358. # Conflict between --help and --header
  18359. as_fn_error $? "ambiguous option: \`$1'
  18360. Try \`$0 --help' for more information.";;
  18361. --help | --hel | -h )
  18362. $as_echo "$ac_cs_usage"; exit ;;
  18363. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  18364. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  18365. ac_cs_silent=: ;;
  18366. # This is an error.
  18367. -*) as_fn_error $? "unrecognized option: \`$1'
  18368. Try \`$0 --help' for more information." ;;
  18369. *) as_fn_append ac_config_targets " $1"
  18370. ac_need_defaults=false ;;
  18371. esac
  18372. shift
  18373. done
  18374. ac_configure_extra_args=
  18375. if $ac_cs_silent; then
  18376. exec 6>/dev/null
  18377. ac_configure_extra_args="$ac_configure_extra_args --silent"
  18378. fi
  18379. _ACEOF
  18380. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18381. if \$ac_cs_recheck; then
  18382. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  18383. shift
  18384. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  18385. CONFIG_SHELL='$SHELL'
  18386. export CONFIG_SHELL
  18387. exec "\$@"
  18388. fi
  18389. _ACEOF
  18390. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18391. exec 5>>config.log
  18392. {
  18393. echo
  18394. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  18395. ## Running $as_me. ##
  18396. _ASBOX
  18397. $as_echo "$ac_log"
  18398. } >&5
  18399. _ACEOF
  18400. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18401. #
  18402. # INIT-COMMANDS
  18403. #
  18404. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  18405. # The HP-UX ksh and POSIX shell print the target directory to stdout
  18406. # if CDPATH is set.
  18407. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18408. sed_quote_subst='$sed_quote_subst'
  18409. double_quote_subst='$double_quote_subst'
  18410. delay_variable_subst='$delay_variable_subst'
  18411. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  18412. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  18413. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  18414. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  18415. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  18416. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  18417. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  18418. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  18419. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  18420. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  18421. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  18422. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  18423. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  18424. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  18425. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  18426. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  18427. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  18428. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  18429. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  18430. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  18431. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  18432. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  18433. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  18434. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  18435. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  18436. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  18437. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  18438. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  18439. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  18440. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  18441. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  18442. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  18443. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  18444. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  18445. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  18446. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  18447. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  18448. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  18449. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  18450. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  18451. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  18452. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  18453. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  18454. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  18455. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  18456. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  18457. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  18458. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  18459. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  18460. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  18461. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  18462. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  18463. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  18464. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  18465. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  18466. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  18467. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  18468. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  18469. 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"`'
  18470. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  18471. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  18472. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  18473. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  18474. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  18475. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  18476. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  18477. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  18478. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  18479. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  18480. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  18481. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  18482. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  18483. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  18484. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  18485. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  18486. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  18487. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  18488. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  18489. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  18490. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  18491. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  18492. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  18493. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  18494. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  18495. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  18496. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  18497. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  18498. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  18499. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  18500. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  18501. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  18502. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  18503. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  18504. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  18505. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  18506. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  18507. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  18508. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  18509. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  18510. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  18511. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  18512. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  18513. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  18514. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  18515. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  18516. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  18517. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  18518. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  18519. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  18520. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  18521. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  18522. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  18523. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  18524. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  18525. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  18526. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  18527. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  18528. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  18529. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  18530. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  18531. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  18532. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  18533. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  18534. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  18535. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  18536. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  18537. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  18538. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  18539. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  18540. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  18541. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  18542. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  18543. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  18544. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  18545. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  18546. LTCC='$LTCC'
  18547. LTCFLAGS='$LTCFLAGS'
  18548. compiler='$compiler_DEFAULT'
  18549. # A function that is used when there is no print builtin or printf.
  18550. func_fallback_echo ()
  18551. {
  18552. eval 'cat <<_LTECHO_EOF
  18553. \$1
  18554. _LTECHO_EOF'
  18555. }
  18556. # Quote evaled strings.
  18557. for var in SED \
  18558. GREP \
  18559. EGREP \
  18560. FGREP \
  18561. SHELL \
  18562. ECHO \
  18563. LD \
  18564. PATH_SEPARATOR \
  18565. NM \
  18566. LN_S \
  18567. lt_SP2NL \
  18568. lt_NL2SP \
  18569. reload_flag \
  18570. OBJDUMP \
  18571. deplibs_check_method \
  18572. file_magic_cmd \
  18573. file_magic_glob \
  18574. want_nocaseglob \
  18575. DLLTOOL \
  18576. sharedlib_from_linklib_cmd \
  18577. AR \
  18578. AR_FLAGS \
  18579. archiver_list_spec \
  18580. STRIP \
  18581. RANLIB \
  18582. CC \
  18583. CFLAGS \
  18584. compiler \
  18585. lt_cv_sys_global_symbol_pipe \
  18586. lt_cv_sys_global_symbol_to_cdecl \
  18587. lt_cv_sys_global_symbol_to_import \
  18588. lt_cv_sys_global_symbol_to_c_name_address \
  18589. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  18590. lt_cv_nm_interface \
  18591. nm_file_list_spec \
  18592. lt_cv_truncate_bin \
  18593. lt_prog_compiler_no_builtin_flag \
  18594. lt_prog_compiler_pic \
  18595. lt_prog_compiler_wl \
  18596. lt_prog_compiler_static \
  18597. lt_cv_prog_compiler_c_o \
  18598. need_locks \
  18599. MANIFEST_TOOL \
  18600. DSYMUTIL \
  18601. NMEDIT \
  18602. LIPO \
  18603. OTOOL \
  18604. OTOOL64 \
  18605. shrext_cmds \
  18606. export_dynamic_flag_spec \
  18607. whole_archive_flag_spec \
  18608. compiler_needs_object \
  18609. with_gnu_ld \
  18610. allow_undefined_flag \
  18611. no_undefined_flag \
  18612. hardcode_libdir_flag_spec \
  18613. hardcode_libdir_separator \
  18614. exclude_expsyms \
  18615. include_expsyms \
  18616. file_list_spec \
  18617. variables_saved_for_relink \
  18618. libname_spec \
  18619. library_names_spec \
  18620. soname_spec \
  18621. install_override_mode \
  18622. finish_eval \
  18623. old_striplib \
  18624. striplib; do
  18625. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  18626. *[\\\\\\\`\\"\\\$]*)
  18627. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  18628. ;;
  18629. *)
  18630. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  18631. ;;
  18632. esac
  18633. done
  18634. # Double-quote double-evaled strings.
  18635. for var in reload_cmds \
  18636. old_postinstall_cmds \
  18637. old_postuninstall_cmds \
  18638. old_archive_cmds \
  18639. extract_expsyms_cmds \
  18640. old_archive_from_new_cmds \
  18641. old_archive_from_expsyms_cmds \
  18642. archive_cmds \
  18643. archive_expsym_cmds \
  18644. module_cmds \
  18645. module_expsym_cmds \
  18646. export_symbols_cmds \
  18647. prelink_cmds \
  18648. postlink_cmds \
  18649. postinstall_cmds \
  18650. postuninstall_cmds \
  18651. finish_cmds \
  18652. sys_lib_search_path_spec \
  18653. configure_time_dlsearch_path \
  18654. configure_time_lt_sys_library_path; do
  18655. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  18656. *[\\\\\\\`\\"\\\$]*)
  18657. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  18658. ;;
  18659. *)
  18660. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  18661. ;;
  18662. esac
  18663. done
  18664. ac_aux_dir='$ac_aux_dir'
  18665. # See if we are running on zsh, and set the options that allow our
  18666. # commands through without removal of \ escapes INIT.
  18667. if test -n "\${ZSH_VERSION+set}"; then
  18668. setopt NO_GLOB_SUBST
  18669. fi
  18670. PACKAGE='$PACKAGE'
  18671. VERSION='$VERSION'
  18672. RM='$RM'
  18673. ofile='$ofile'
  18674. _ACEOF
  18675. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18676. # Handling of arguments.
  18677. for ac_config_target in $ac_config_targets
  18678. do
  18679. case $ac_config_target in
  18680. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  18681. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  18682. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  18683. "distribute.sh") CONFIG_FILES="$CONFIG_FILES distribute.sh" ;;
  18684. "doc/config/conf.d/Makefile") CONFIG_FILES="$CONFIG_FILES doc/config/conf.d/Makefile" ;;
  18685. "doc/config/Makefile") CONFIG_FILES="$CONFIG_FILES doc/config/Makefile" ;;
  18686. "doc/config/vhosts.d/Makefile") CONFIG_FILES="$CONFIG_FILES doc/config/vhosts.d/Makefile" ;;
  18687. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  18688. "doc/outdated/Makefile") CONFIG_FILES="$CONFIG_FILES doc/outdated/Makefile" ;;
  18689. "doc/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES doc/scripts/Makefile" ;;
  18690. "doc/systemd/Makefile") CONFIG_FILES="$CONFIG_FILES doc/systemd/Makefile" ;;
  18691. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  18692. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  18693. "tests/docroot/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/Makefile" ;;
  18694. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  18695. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  18696. esac
  18697. done
  18698. # If the user did not use the arguments to specify the items to instantiate,
  18699. # then the envvar interface is used. Set only those that are not.
  18700. # We use the long form for the default assignment because of an extremely
  18701. # bizarre bug on SunOS 4.1.3.
  18702. if $ac_need_defaults; then
  18703. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  18704. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  18705. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  18706. fi
  18707. # Have a temporary directory for convenience. Make it in the build tree
  18708. # simply because there is no reason against having it here, and in addition,
  18709. # creating and moving files from /tmp can sometimes cause problems.
  18710. # Hook for its removal unless debugging.
  18711. # Note that there is a small window in which the directory will not be cleaned:
  18712. # after its creation but before its name has been assigned to `$tmp'.
  18713. $debug ||
  18714. {
  18715. tmp= ac_tmp=
  18716. trap 'exit_status=$?
  18717. : "${ac_tmp:=$tmp}"
  18718. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  18719. ' 0
  18720. trap 'as_fn_exit 1' 1 2 13 15
  18721. }
  18722. # Create a (secure) tmp directory for tmp files.
  18723. {
  18724. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  18725. test -d "$tmp"
  18726. } ||
  18727. {
  18728. tmp=./conf$$-$RANDOM
  18729. (umask 077 && mkdir "$tmp")
  18730. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  18731. ac_tmp=$tmp
  18732. # Set up the scripts for CONFIG_FILES section.
  18733. # No need to generate them if there are no CONFIG_FILES.
  18734. # This happens for instance with `./config.status config.h'.
  18735. if test -n "$CONFIG_FILES"; then
  18736. ac_cr=`echo X | tr X '\015'`
  18737. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  18738. # But we know of no other shell where ac_cr would be empty at this
  18739. # point, so we can use a bashism as a fallback.
  18740. if test "x$ac_cr" = x; then
  18741. eval ac_cr=\$\'\\r\'
  18742. fi
  18743. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  18744. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  18745. ac_cs_awk_cr='\\r'
  18746. else
  18747. ac_cs_awk_cr=$ac_cr
  18748. fi
  18749. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  18750. _ACEOF
  18751. {
  18752. echo "cat >conf$$subs.awk <<_ACEOF" &&
  18753. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  18754. echo "_ACEOF"
  18755. } >conf$$subs.sh ||
  18756. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18757. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  18758. ac_delim='%!_!# '
  18759. for ac_last_try in false false false false false :; do
  18760. . ./conf$$subs.sh ||
  18761. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18762. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  18763. if test $ac_delim_n = $ac_delim_num; then
  18764. break
  18765. elif $ac_last_try; then
  18766. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18767. else
  18768. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  18769. fi
  18770. done
  18771. rm -f conf$$subs.sh
  18772. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18773. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  18774. _ACEOF
  18775. sed -n '
  18776. h
  18777. s/^/S["/; s/!.*/"]=/
  18778. p
  18779. g
  18780. s/^[^!]*!//
  18781. :repl
  18782. t repl
  18783. s/'"$ac_delim"'$//
  18784. t delim
  18785. :nl
  18786. h
  18787. s/\(.\{148\}\)..*/\1/
  18788. t more1
  18789. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  18790. p
  18791. n
  18792. b repl
  18793. :more1
  18794. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  18795. p
  18796. g
  18797. s/.\{148\}//
  18798. t nl
  18799. :delim
  18800. h
  18801. s/\(.\{148\}\)..*/\1/
  18802. t more2
  18803. s/["\\]/\\&/g; s/^/"/; s/$/"/
  18804. p
  18805. b
  18806. :more2
  18807. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  18808. p
  18809. g
  18810. s/.\{148\}//
  18811. t delim
  18812. ' <conf$$subs.awk | sed '
  18813. /^[^""]/{
  18814. N
  18815. s/\n//
  18816. }
  18817. ' >>$CONFIG_STATUS || ac_write_fail=1
  18818. rm -f conf$$subs.awk
  18819. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18820. _ACAWK
  18821. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  18822. for (key in S) S_is_set[key] = 1
  18823. FS = ""
  18824. }
  18825. {
  18826. line = $ 0
  18827. nfields = split(line, field, "@")
  18828. substed = 0
  18829. len = length(field[1])
  18830. for (i = 2; i < nfields; i++) {
  18831. key = field[i]
  18832. keylen = length(key)
  18833. if (S_is_set[key]) {
  18834. value = S[key]
  18835. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  18836. len += length(value) + length(field[++i])
  18837. substed = 1
  18838. } else
  18839. len += 1 + keylen
  18840. }
  18841. print line
  18842. }
  18843. _ACAWK
  18844. _ACEOF
  18845. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18846. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  18847. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  18848. else
  18849. cat
  18850. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  18851. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  18852. _ACEOF
  18853. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  18854. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  18855. # trailing colons and then remove the whole line if VPATH becomes empty
  18856. # (actually we leave an empty line to preserve line numbers).
  18857. if test "x$srcdir" = x.; then
  18858. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  18859. h
  18860. s///
  18861. s/^/:/
  18862. s/[ ]*$/:/
  18863. s/:\$(srcdir):/:/g
  18864. s/:\${srcdir}:/:/g
  18865. s/:@srcdir@:/:/g
  18866. s/^:*//
  18867. s/:*$//
  18868. x
  18869. s/\(=[ ]*\).*/\1/
  18870. G
  18871. s/\n//
  18872. s/^[^=]*=[ ]*$//
  18873. }'
  18874. fi
  18875. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18876. fi # test -n "$CONFIG_FILES"
  18877. # Set up the scripts for CONFIG_HEADERS section.
  18878. # No need to generate them if there are no CONFIG_HEADERS.
  18879. # This happens for instance with `./config.status Makefile'.
  18880. if test -n "$CONFIG_HEADERS"; then
  18881. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  18882. BEGIN {
  18883. _ACEOF
  18884. # Transform confdefs.h into an awk script `defines.awk', embedded as
  18885. # here-document in config.status, that substitutes the proper values into
  18886. # config.h.in to produce config.h.
  18887. # Create a delimiter string that does not exist in confdefs.h, to ease
  18888. # handling of long lines.
  18889. ac_delim='%!_!# '
  18890. for ac_last_try in false false :; do
  18891. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  18892. if test -z "$ac_tt"; then
  18893. break
  18894. elif $ac_last_try; then
  18895. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  18896. else
  18897. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  18898. fi
  18899. done
  18900. # For the awk script, D is an array of macro values keyed by name,
  18901. # likewise P contains macro parameters if any. Preserve backslash
  18902. # newline sequences.
  18903. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  18904. sed -n '
  18905. s/.\{148\}/&'"$ac_delim"'/g
  18906. t rset
  18907. :rset
  18908. s/^[ ]*#[ ]*define[ ][ ]*/ /
  18909. t def
  18910. d
  18911. :def
  18912. s/\\$//
  18913. t bsnl
  18914. s/["\\]/\\&/g
  18915. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  18916. D["\1"]=" \3"/p
  18917. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  18918. d
  18919. :bsnl
  18920. s/["\\]/\\&/g
  18921. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  18922. D["\1"]=" \3\\\\\\n"\\/p
  18923. t cont
  18924. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  18925. t cont
  18926. d
  18927. :cont
  18928. n
  18929. s/.\{148\}/&'"$ac_delim"'/g
  18930. t clear
  18931. :clear
  18932. s/\\$//
  18933. t bsnlc
  18934. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  18935. d
  18936. :bsnlc
  18937. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  18938. b cont
  18939. ' <confdefs.h | sed '
  18940. s/'"$ac_delim"'/"\\\
  18941. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  18942. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18943. for (key in D) D_is_set[key] = 1
  18944. FS = ""
  18945. }
  18946. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  18947. line = \$ 0
  18948. split(line, arg, " ")
  18949. if (arg[1] == "#") {
  18950. defundef = arg[2]
  18951. mac1 = arg[3]
  18952. } else {
  18953. defundef = substr(arg[1], 2)
  18954. mac1 = arg[2]
  18955. }
  18956. split(mac1, mac2, "(") #)
  18957. macro = mac2[1]
  18958. prefix = substr(line, 1, index(line, defundef) - 1)
  18959. if (D_is_set[macro]) {
  18960. # Preserve the white space surrounding the "#".
  18961. print prefix "define", macro P[macro] D[macro]
  18962. next
  18963. } else {
  18964. # Replace #undef with comments. This is necessary, for example,
  18965. # in the case of _POSIX_SOURCE, which is predefined and required
  18966. # on some systems where configure will not decide to define it.
  18967. if (defundef == "undef") {
  18968. print "/*", prefix defundef, macro, "*/"
  18969. next
  18970. }
  18971. }
  18972. }
  18973. { print }
  18974. _ACAWK
  18975. _ACEOF
  18976. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18977. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  18978. fi # test -n "$CONFIG_HEADERS"
  18979. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  18980. shift
  18981. for ac_tag
  18982. do
  18983. case $ac_tag in
  18984. :[FHLC]) ac_mode=$ac_tag; continue;;
  18985. esac
  18986. case $ac_mode$ac_tag in
  18987. :[FHL]*:*);;
  18988. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  18989. :[FH]-) ac_tag=-:-;;
  18990. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  18991. esac
  18992. ac_save_IFS=$IFS
  18993. IFS=:
  18994. set x $ac_tag
  18995. IFS=$ac_save_IFS
  18996. shift
  18997. ac_file=$1
  18998. shift
  18999. case $ac_mode in
  19000. :L) ac_source=$1;;
  19001. :[FH])
  19002. ac_file_inputs=
  19003. for ac_f
  19004. do
  19005. case $ac_f in
  19006. -) ac_f="$ac_tmp/stdin";;
  19007. *) # Look for the file first in the build tree, then in the source tree
  19008. # (if the path is not absolute). The absolute path cannot be DOS-style,
  19009. # because $ac_f cannot contain `:'.
  19010. test -f "$ac_f" ||
  19011. case $ac_f in
  19012. [\\/$]*) false;;
  19013. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  19014. esac ||
  19015. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  19016. esac
  19017. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  19018. as_fn_append ac_file_inputs " '$ac_f'"
  19019. done
  19020. # Let's still pretend it is `configure' which instantiates (i.e., don't
  19021. # use $as_me), people would be surprised to read:
  19022. # /* config.h. Generated by config.status. */
  19023. configure_input='Generated from '`
  19024. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  19025. `' by configure.'
  19026. if test x"$ac_file" != x-; then
  19027. configure_input="$ac_file. $configure_input"
  19028. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  19029. $as_echo "$as_me: creating $ac_file" >&6;}
  19030. fi
  19031. # Neutralize special characters interpreted by sed in replacement strings.
  19032. case $configure_input in #(
  19033. *\&* | *\|* | *\\* )
  19034. ac_sed_conf_input=`$as_echo "$configure_input" |
  19035. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  19036. *) ac_sed_conf_input=$configure_input;;
  19037. esac
  19038. case $ac_tag in
  19039. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  19040. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  19041. esac
  19042. ;;
  19043. esac
  19044. ac_dir=`$as_dirname -- "$ac_file" ||
  19045. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19046. X"$ac_file" : 'X\(//\)[^/]' \| \
  19047. X"$ac_file" : 'X\(//\)$' \| \
  19048. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  19049. $as_echo X"$ac_file" |
  19050. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19051. s//\1/
  19052. q
  19053. }
  19054. /^X\(\/\/\)[^/].*/{
  19055. s//\1/
  19056. q
  19057. }
  19058. /^X\(\/\/\)$/{
  19059. s//\1/
  19060. q
  19061. }
  19062. /^X\(\/\).*/{
  19063. s//\1/
  19064. q
  19065. }
  19066. s/.*/./; q'`
  19067. as_dir="$ac_dir"; as_fn_mkdir_p
  19068. ac_builddir=.
  19069. case "$ac_dir" in
  19070. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19071. *)
  19072. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  19073. # A ".." for each directory in $ac_dir_suffix.
  19074. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  19075. case $ac_top_builddir_sub in
  19076. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19077. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  19078. esac ;;
  19079. esac
  19080. ac_abs_top_builddir=$ac_pwd
  19081. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  19082. # for backward compatibility:
  19083. ac_top_builddir=$ac_top_build_prefix
  19084. case $srcdir in
  19085. .) # We are building in place.
  19086. ac_srcdir=.
  19087. ac_top_srcdir=$ac_top_builddir_sub
  19088. ac_abs_top_srcdir=$ac_pwd ;;
  19089. [\\/]* | ?:[\\/]* ) # Absolute name.
  19090. ac_srcdir=$srcdir$ac_dir_suffix;
  19091. ac_top_srcdir=$srcdir
  19092. ac_abs_top_srcdir=$srcdir ;;
  19093. *) # Relative name.
  19094. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  19095. ac_top_srcdir=$ac_top_build_prefix$srcdir
  19096. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  19097. esac
  19098. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  19099. case $ac_mode in
  19100. :F)
  19101. #
  19102. # CONFIG_FILE
  19103. #
  19104. case $INSTALL in
  19105. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  19106. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  19107. esac
  19108. ac_MKDIR_P=$MKDIR_P
  19109. case $MKDIR_P in
  19110. [\\/$]* | ?:[\\/]* ) ;;
  19111. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  19112. esac
  19113. _ACEOF
  19114. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19115. # If the template does not know about datarootdir, expand it.
  19116. # FIXME: This hack should be removed a few years after 2.60.
  19117. ac_datarootdir_hack=; ac_datarootdir_seen=
  19118. ac_sed_dataroot='
  19119. /datarootdir/ {
  19120. p
  19121. q
  19122. }
  19123. /@datadir@/p
  19124. /@docdir@/p
  19125. /@infodir@/p
  19126. /@localedir@/p
  19127. /@mandir@/p'
  19128. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  19129. *datarootdir*) ac_datarootdir_seen=yes;;
  19130. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  19131. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  19132. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  19133. _ACEOF
  19134. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19135. ac_datarootdir_hack='
  19136. s&@datadir@&$datadir&g
  19137. s&@docdir@&$docdir&g
  19138. s&@infodir@&$infodir&g
  19139. s&@localedir@&$localedir&g
  19140. s&@mandir@&$mandir&g
  19141. s&\\\${datarootdir}&$datarootdir&g' ;;
  19142. esac
  19143. _ACEOF
  19144. # Neutralize VPATH when `$srcdir' = `.'.
  19145. # Shell code in configure.ac might set extrasub.
  19146. # FIXME: do we really want to maintain this feature?
  19147. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19148. ac_sed_extra="$ac_vpsub
  19149. $extrasub
  19150. _ACEOF
  19151. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19152. :t
  19153. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19154. s|@configure_input@|$ac_sed_conf_input|;t t
  19155. s&@top_builddir@&$ac_top_builddir_sub&;t t
  19156. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  19157. s&@srcdir@&$ac_srcdir&;t t
  19158. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  19159. s&@top_srcdir@&$ac_top_srcdir&;t t
  19160. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  19161. s&@builddir@&$ac_builddir&;t t
  19162. s&@abs_builddir@&$ac_abs_builddir&;t t
  19163. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  19164. s&@INSTALL@&$ac_INSTALL&;t t
  19165. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  19166. $ac_datarootdir_hack
  19167. "
  19168. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  19169. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19170. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  19171. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  19172. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  19173. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  19174. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19175. which seems to be undefined. Please make sure it is defined" >&5
  19176. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19177. which seems to be undefined. Please make sure it is defined" >&2;}
  19178. rm -f "$ac_tmp/stdin"
  19179. case $ac_file in
  19180. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  19181. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  19182. esac \
  19183. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19184. ;;
  19185. :H)
  19186. #
  19187. # CONFIG_HEADER
  19188. #
  19189. if test x"$ac_file" != x-; then
  19190. {
  19191. $as_echo "/* $configure_input */" \
  19192. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  19193. } >"$ac_tmp/config.h" \
  19194. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19195. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  19196. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  19197. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  19198. else
  19199. rm -f "$ac_file"
  19200. mv "$ac_tmp/config.h" "$ac_file" \
  19201. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19202. fi
  19203. else
  19204. $as_echo "/* $configure_input */" \
  19205. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  19206. || as_fn_error $? "could not create -" "$LINENO" 5
  19207. fi
  19208. # Compute "$ac_file"'s index in $config_headers.
  19209. _am_arg="$ac_file"
  19210. _am_stamp_count=1
  19211. for _am_header in $config_headers :; do
  19212. case $_am_header in
  19213. $_am_arg | $_am_arg:* )
  19214. break ;;
  19215. * )
  19216. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  19217. esac
  19218. done
  19219. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  19220. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19221. X"$_am_arg" : 'X\(//\)[^/]' \| \
  19222. X"$_am_arg" : 'X\(//\)$' \| \
  19223. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  19224. $as_echo X"$_am_arg" |
  19225. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19226. s//\1/
  19227. q
  19228. }
  19229. /^X\(\/\/\)[^/].*/{
  19230. s//\1/
  19231. q
  19232. }
  19233. /^X\(\/\/\)$/{
  19234. s//\1/
  19235. q
  19236. }
  19237. /^X\(\/\).*/{
  19238. s//\1/
  19239. q
  19240. }
  19241. s/.*/./; q'`/stamp-h$_am_stamp_count
  19242. ;;
  19243. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  19244. $as_echo "$as_me: executing $ac_file commands" >&6;}
  19245. ;;
  19246. esac
  19247. case $ac_file$ac_mode in
  19248. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  19249. # Older Autoconf quotes --file arguments for eval, but not when files
  19250. # are listed without --file. Let's play safe and only enable the eval
  19251. # if we detect the quoting.
  19252. # TODO: see whether this extra hack can be removed once we start
  19253. # requiring Autoconf 2.70 or later.
  19254. case $CONFIG_FILES in #(
  19255. *\'*) :
  19256. eval set x "$CONFIG_FILES" ;; #(
  19257. *) :
  19258. set x $CONFIG_FILES ;; #(
  19259. *) :
  19260. ;;
  19261. esac
  19262. shift
  19263. # Used to flag and report bootstrapping failures.
  19264. am_rc=0
  19265. for am_mf
  19266. do
  19267. # Strip MF so we end up with the name of the file.
  19268. am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
  19269. # Check whether this is an Automake generated Makefile which includes
  19270. # dependency-tracking related rules and includes.
  19271. # Grep'ing the whole file directly is not great: AIX grep has a line
  19272. # limit of 2048, but all sed's we know have understand at least 4000.
  19273. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  19274. || continue
  19275. am_dirpart=`$as_dirname -- "$am_mf" ||
  19276. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19277. X"$am_mf" : 'X\(//\)[^/]' \| \
  19278. X"$am_mf" : 'X\(//\)$' \| \
  19279. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  19280. $as_echo X"$am_mf" |
  19281. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19282. s//\1/
  19283. q
  19284. }
  19285. /^X\(\/\/\)[^/].*/{
  19286. s//\1/
  19287. q
  19288. }
  19289. /^X\(\/\/\)$/{
  19290. s//\1/
  19291. q
  19292. }
  19293. /^X\(\/\).*/{
  19294. s//\1/
  19295. q
  19296. }
  19297. s/.*/./; q'`
  19298. am_filepart=`$as_basename -- "$am_mf" ||
  19299. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  19300. X"$am_mf" : 'X\(//\)$' \| \
  19301. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  19302. $as_echo X/"$am_mf" |
  19303. sed '/^.*\/\([^/][^/]*\)\/*$/{
  19304. s//\1/
  19305. q
  19306. }
  19307. /^X\/\(\/\/\)$/{
  19308. s//\1/
  19309. q
  19310. }
  19311. /^X\/\(\/\).*/{
  19312. s//\1/
  19313. q
  19314. }
  19315. s/.*/./; q'`
  19316. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  19317. && sed -e '/# am--include-marker/d' "$am_filepart" \
  19318. | $MAKE -f - am--depfiles" >&5
  19319. (cd "$am_dirpart" \
  19320. && sed -e '/# am--include-marker/d' "$am_filepart" \
  19321. | $MAKE -f - am--depfiles) >&5 2>&5
  19322. ac_status=$?
  19323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19324. (exit $ac_status); } || am_rc=$?
  19325. done
  19326. if test $am_rc -ne 0; then
  19327. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19328. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19329. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  19330. for automatic dependency tracking. If GNU make was not used, consider
  19331. re-running the configure script with MAKE=\"gmake\" (or whatever is
  19332. necessary). You can also try re-running configure with the
  19333. '--disable-dependency-tracking' option to at least be able to build
  19334. the package (albeit without support for automatic dependency tracking).
  19335. See \`config.log' for more details" "$LINENO" 5; }
  19336. fi
  19337. { am_dirpart=; unset am_dirpart;}
  19338. { am_filepart=; unset am_filepart;}
  19339. { am_mf=; unset am_mf;}
  19340. { am_rc=; unset am_rc;}
  19341. rm -f conftest-deps.mk
  19342. }
  19343. ;;
  19344. "libtool":C)
  19345. # See if we are running on zsh, and set the options that allow our
  19346. # commands through without removal of \ escapes.
  19347. if test -n "${ZSH_VERSION+set}"; then
  19348. setopt NO_GLOB_SUBST
  19349. fi
  19350. cfgfile=${ofile}T
  19351. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  19352. $RM "$cfgfile"
  19353. cat <<_LT_EOF >> "$cfgfile"
  19354. #! $SHELL
  19355. # Generated automatically by $as_me ($PACKAGE) $VERSION
  19356. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  19357. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  19358. # Provide generalized library-building support services.
  19359. # Written by Gordon Matzigkeit, 1996
  19360. # Copyright (C) 2014 Free Software Foundation, Inc.
  19361. # This is free software; see the source for copying conditions. There is NO
  19362. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  19363. # GNU Libtool is free software; you can redistribute it and/or modify
  19364. # it under the terms of the GNU General Public License as published by
  19365. # the Free Software Foundation; either version 2 of of the License, or
  19366. # (at your option) any later version.
  19367. #
  19368. # As a special exception to the GNU General Public License, if you
  19369. # distribute this file as part of a program or library that is built
  19370. # using GNU Libtool, you may include this file under the same
  19371. # distribution terms that you use for the rest of that program.
  19372. #
  19373. # GNU Libtool is distributed in the hope that it will be useful, but
  19374. # WITHOUT ANY WARRANTY; without even the implied warranty of
  19375. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19376. # GNU General Public License for more details.
  19377. #
  19378. # You should have received a copy of the GNU General Public License
  19379. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  19380. # The names of the tagged configurations supported by this script.
  19381. available_tags=''
  19382. # Configured defaults for sys_lib_dlsearch_path munging.
  19383. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  19384. # ### BEGIN LIBTOOL CONFIG
  19385. # A sed program that does not truncate output.
  19386. SED=$lt_SED
  19387. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  19388. Xsed="\$SED -e 1s/^X//"
  19389. # A grep program that handles long lines.
  19390. GREP=$lt_GREP
  19391. # An ERE matcher.
  19392. EGREP=$lt_EGREP
  19393. # A literal string matcher.
  19394. FGREP=$lt_FGREP
  19395. # Shell to use when invoking shell scripts.
  19396. SHELL=$lt_SHELL
  19397. # An echo program that protects backslashes.
  19398. ECHO=$lt_ECHO
  19399. # Which release of libtool.m4 was used?
  19400. macro_version=$macro_version
  19401. macro_revision=$macro_revision
  19402. # Whether or not to build static libraries.
  19403. build_old_libs=$enable_static
  19404. # Whether or not to build shared libraries.
  19405. build_libtool_libs=$enable_shared
  19406. # What type of objects to build.
  19407. pic_mode=$pic_mode
  19408. # Whether or not to optimize for fast installation.
  19409. fast_install=$enable_fast_install
  19410. # Shared archive member basename,for filename based shared library versioning on AIX.
  19411. shared_archive_member_spec=$shared_archive_member_spec
  19412. # The PATH separator for the build system.
  19413. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  19414. # The host system.
  19415. host_alias=$host_alias
  19416. host=$host
  19417. host_os=$host_os
  19418. # The build system.
  19419. build_alias=$build_alias
  19420. build=$build
  19421. build_os=$build_os
  19422. # A BSD- or MS-compatible name lister.
  19423. NM=$lt_NM
  19424. # Whether we need soft or hard links.
  19425. LN_S=$lt_LN_S
  19426. # What is the maximum length of a command?
  19427. max_cmd_len=$max_cmd_len
  19428. # Object file suffix (normally "o").
  19429. objext=$ac_objext
  19430. # Executable file suffix (normally "").
  19431. exeext=$exeext
  19432. # whether the shell understands "unset".
  19433. lt_unset=$lt_unset
  19434. # turn spaces into newlines.
  19435. SP2NL=$lt_lt_SP2NL
  19436. # turn newlines into spaces.
  19437. NL2SP=$lt_lt_NL2SP
  19438. # convert \$build file names to \$host format.
  19439. to_host_file_cmd=$lt_cv_to_host_file_cmd
  19440. # convert \$build files to toolchain format.
  19441. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  19442. # An object symbol dumper.
  19443. OBJDUMP=$lt_OBJDUMP
  19444. # Method to check whether dependent libraries are shared objects.
  19445. deplibs_check_method=$lt_deplibs_check_method
  19446. # Command to use when deplibs_check_method = "file_magic".
  19447. file_magic_cmd=$lt_file_magic_cmd
  19448. # How to find potential files when deplibs_check_method = "file_magic".
  19449. file_magic_glob=$lt_file_magic_glob
  19450. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  19451. want_nocaseglob=$lt_want_nocaseglob
  19452. # DLL creation program.
  19453. DLLTOOL=$lt_DLLTOOL
  19454. # Command to associate shared and link libraries.
  19455. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  19456. # The archiver.
  19457. AR=$lt_AR
  19458. # Flags to create an archive.
  19459. AR_FLAGS=$lt_AR_FLAGS
  19460. # How to feed a file listing to the archiver.
  19461. archiver_list_spec=$lt_archiver_list_spec
  19462. # A symbol stripping program.
  19463. STRIP=$lt_STRIP
  19464. # Commands used to install an old-style archive.
  19465. RANLIB=$lt_RANLIB
  19466. old_postinstall_cmds=$lt_old_postinstall_cmds
  19467. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  19468. # Whether to use a lock for old archive extraction.
  19469. lock_old_archive_extraction=$lock_old_archive_extraction
  19470. # A C compiler.
  19471. LTCC=$lt_CC
  19472. # LTCC compiler flags.
  19473. LTCFLAGS=$lt_CFLAGS
  19474. # Take the output of nm and produce a listing of raw symbols and C names.
  19475. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  19476. # Transform the output of nm in a proper C declaration.
  19477. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  19478. # Transform the output of nm into a list of symbols to manually relocate.
  19479. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  19480. # Transform the output of nm in a C name address pair.
  19481. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  19482. # Transform the output of nm in a C name address pair when lib prefix is needed.
  19483. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  19484. # The name lister interface.
  19485. nm_interface=$lt_lt_cv_nm_interface
  19486. # Specify filename containing input files for \$NM.
  19487. nm_file_list_spec=$lt_nm_file_list_spec
  19488. # The root where to search for dependent libraries,and where our libraries should be installed.
  19489. lt_sysroot=$lt_sysroot
  19490. # Command to truncate a binary pipe.
  19491. lt_truncate_bin=$lt_lt_cv_truncate_bin
  19492. # The name of the directory that contains temporary libtool files.
  19493. objdir=$objdir
  19494. # Used to examine libraries when file_magic_cmd begins with "file".
  19495. MAGIC_CMD=$MAGIC_CMD
  19496. # Must we lock files when doing compilation?
  19497. need_locks=$lt_need_locks
  19498. # Manifest tool.
  19499. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  19500. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  19501. DSYMUTIL=$lt_DSYMUTIL
  19502. # Tool to change global to local symbols on Mac OS X.
  19503. NMEDIT=$lt_NMEDIT
  19504. # Tool to manipulate fat objects and archives on Mac OS X.
  19505. LIPO=$lt_LIPO
  19506. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  19507. OTOOL=$lt_OTOOL
  19508. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  19509. OTOOL64=$lt_OTOOL64
  19510. # Old archive suffix (normally "a").
  19511. libext=$libext
  19512. # Shared library suffix (normally ".so").
  19513. shrext_cmds=$lt_shrext_cmds
  19514. # The commands to extract the exported symbol list from a shared archive.
  19515. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  19516. # Variables whose values should be saved in libtool wrapper scripts and
  19517. # restored at link time.
  19518. variables_saved_for_relink=$lt_variables_saved_for_relink
  19519. # Do we need the "lib" prefix for modules?
  19520. need_lib_prefix=$need_lib_prefix
  19521. # Do we need a version for libraries?
  19522. need_version=$need_version
  19523. # Library versioning type.
  19524. version_type=$version_type
  19525. # Shared library runtime path variable.
  19526. runpath_var=$runpath_var
  19527. # Shared library path variable.
  19528. shlibpath_var=$shlibpath_var
  19529. # Is shlibpath searched before the hard-coded library search path?
  19530. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  19531. # Format of library name prefix.
  19532. libname_spec=$lt_libname_spec
  19533. # List of archive names. First name is the real one, the rest are links.
  19534. # The last name is the one that the linker finds with -lNAME
  19535. library_names_spec=$lt_library_names_spec
  19536. # The coded name of the library, if different from the real name.
  19537. soname_spec=$lt_soname_spec
  19538. # Permission mode override for installation of shared libraries.
  19539. install_override_mode=$lt_install_override_mode
  19540. # Command to use after installation of a shared archive.
  19541. postinstall_cmds=$lt_postinstall_cmds
  19542. # Command to use after uninstallation of a shared archive.
  19543. postuninstall_cmds=$lt_postuninstall_cmds
  19544. # Commands used to finish a libtool library installation in a directory.
  19545. finish_cmds=$lt_finish_cmds
  19546. # As "finish_cmds", except a single script fragment to be evaled but
  19547. # not shown.
  19548. finish_eval=$lt_finish_eval
  19549. # Whether we should hardcode library paths into libraries.
  19550. hardcode_into_libs=$hardcode_into_libs
  19551. # Compile-time system search path for libraries.
  19552. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  19553. # Detected run-time system search path for libraries.
  19554. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  19555. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  19556. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  19557. # Whether dlopen is supported.
  19558. dlopen_support=$enable_dlopen
  19559. # Whether dlopen of programs is supported.
  19560. dlopen_self=$enable_dlopen_self
  19561. # Whether dlopen of statically linked programs is supported.
  19562. dlopen_self_static=$enable_dlopen_self_static
  19563. # Commands to strip libraries.
  19564. old_striplib=$lt_old_striplib
  19565. striplib=$lt_striplib
  19566. # The linker used to build libraries.
  19567. LD=$lt_LD
  19568. # How to create reloadable object files.
  19569. reload_flag=$lt_reload_flag
  19570. reload_cmds=$lt_reload_cmds
  19571. # Commands used to build an old-style archive.
  19572. old_archive_cmds=$lt_old_archive_cmds
  19573. # A language specific compiler.
  19574. CC=$lt_compiler
  19575. # Is the compiler the GNU compiler?
  19576. with_gcc=$GCC
  19577. # Compiler flag to turn off builtin functions.
  19578. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  19579. # Additional compiler flags for building library objects.
  19580. pic_flag=$lt_lt_prog_compiler_pic
  19581. # How to pass a linker flag through the compiler.
  19582. wl=$lt_lt_prog_compiler_wl
  19583. # Compiler flag to prevent dynamic linking.
  19584. link_static_flag=$lt_lt_prog_compiler_static
  19585. # Does compiler simultaneously support -c and -o options?
  19586. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  19587. # Whether or not to add -lc for building shared libraries.
  19588. build_libtool_need_lc=$archive_cmds_need_lc
  19589. # Whether or not to disallow shared libs when runtime libs are static.
  19590. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  19591. # Compiler flag to allow reflexive dlopens.
  19592. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  19593. # Compiler flag to generate shared objects directly from archives.
  19594. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  19595. # Whether the compiler copes with passing no objects directly.
  19596. compiler_needs_object=$lt_compiler_needs_object
  19597. # Create an old-style archive from a shared archive.
  19598. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  19599. # Create a temporary old-style archive to link instead of a shared archive.
  19600. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  19601. # Commands used to build a shared archive.
  19602. archive_cmds=$lt_archive_cmds
  19603. archive_expsym_cmds=$lt_archive_expsym_cmds
  19604. # Commands used to build a loadable module if different from building
  19605. # a shared archive.
  19606. module_cmds=$lt_module_cmds
  19607. module_expsym_cmds=$lt_module_expsym_cmds
  19608. # Whether we are building with GNU ld or not.
  19609. with_gnu_ld=$lt_with_gnu_ld
  19610. # Flag that allows shared libraries with undefined symbols to be built.
  19611. allow_undefined_flag=$lt_allow_undefined_flag
  19612. # Flag that enforces no undefined symbols.
  19613. no_undefined_flag=$lt_no_undefined_flag
  19614. # Flag to hardcode \$libdir into a binary during linking.
  19615. # This must work even if \$libdir does not exist
  19616. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  19617. # Whether we need a single "-rpath" flag with a separated argument.
  19618. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  19619. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19620. # DIR into the resulting binary.
  19621. hardcode_direct=$hardcode_direct
  19622. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19623. # DIR into the resulting binary and the resulting library dependency is
  19624. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  19625. # library is relocated.
  19626. hardcode_direct_absolute=$hardcode_direct_absolute
  19627. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  19628. # into the resulting binary.
  19629. hardcode_minus_L=$hardcode_minus_L
  19630. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  19631. # into the resulting binary.
  19632. hardcode_shlibpath_var=$hardcode_shlibpath_var
  19633. # Set to "yes" if building a shared library automatically hardcodes DIR
  19634. # into the library and all subsequent libraries and executables linked
  19635. # against it.
  19636. hardcode_automatic=$hardcode_automatic
  19637. # Set to yes if linker adds runtime paths of dependent libraries
  19638. # to runtime path list.
  19639. inherit_rpath=$inherit_rpath
  19640. # Whether libtool must link a program against all its dependency libraries.
  19641. link_all_deplibs=$link_all_deplibs
  19642. # Set to "yes" if exported symbols are required.
  19643. always_export_symbols=$always_export_symbols
  19644. # The commands to list exported symbols.
  19645. export_symbols_cmds=$lt_export_symbols_cmds
  19646. # Symbols that should not be listed in the preloaded symbols.
  19647. exclude_expsyms=$lt_exclude_expsyms
  19648. # Symbols that must always be exported.
  19649. include_expsyms=$lt_include_expsyms
  19650. # Commands necessary for linking programs (against libraries) with templates.
  19651. prelink_cmds=$lt_prelink_cmds
  19652. # Commands necessary for finishing linking programs.
  19653. postlink_cmds=$lt_postlink_cmds
  19654. # Specify filename containing input files.
  19655. file_list_spec=$lt_file_list_spec
  19656. # How to hardcode a shared library path into an executable.
  19657. hardcode_action=$hardcode_action
  19658. # ### END LIBTOOL CONFIG
  19659. _LT_EOF
  19660. cat <<'_LT_EOF' >> "$cfgfile"
  19661. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  19662. # func_munge_path_list VARIABLE PATH
  19663. # -----------------------------------
  19664. # VARIABLE is name of variable containing _space_ separated list of
  19665. # directories to be munged by the contents of PATH, which is string
  19666. # having a format:
  19667. # "DIR[:DIR]:"
  19668. # string "DIR[ DIR]" will be prepended to VARIABLE
  19669. # ":DIR[:DIR]"
  19670. # string "DIR[ DIR]" will be appended to VARIABLE
  19671. # "DIRP[:DIRP]::[DIRA:]DIRA"
  19672. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  19673. # "DIRA[ DIRA]" will be appended to VARIABLE
  19674. # "DIR[:DIR]"
  19675. # VARIABLE will be replaced by "DIR[ DIR]"
  19676. func_munge_path_list ()
  19677. {
  19678. case x$2 in
  19679. x)
  19680. ;;
  19681. *:)
  19682. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  19683. ;;
  19684. x:*)
  19685. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  19686. ;;
  19687. *::*)
  19688. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  19689. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  19690. ;;
  19691. *)
  19692. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  19693. ;;
  19694. esac
  19695. }
  19696. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  19697. func_cc_basename ()
  19698. {
  19699. for cc_temp in $*""; do
  19700. case $cc_temp in
  19701. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  19702. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  19703. \-*) ;;
  19704. *) break;;
  19705. esac
  19706. done
  19707. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  19708. }
  19709. # ### END FUNCTIONS SHARED WITH CONFIGURE
  19710. _LT_EOF
  19711. case $host_os in
  19712. aix3*)
  19713. cat <<\_LT_EOF >> "$cfgfile"
  19714. # AIX sometimes has problems with the GCC collect2 program. For some
  19715. # reason, if we set the COLLECT_NAMES environment variable, the problems
  19716. # vanish in a puff of smoke.
  19717. if test set != "${COLLECT_NAMES+set}"; then
  19718. COLLECT_NAMES=
  19719. export COLLECT_NAMES
  19720. fi
  19721. _LT_EOF
  19722. ;;
  19723. esac
  19724. ltmain=$ac_aux_dir/ltmain.sh
  19725. # We use sed instead of cat because bash on DJGPP gets confused if
  19726. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  19727. # text mode, it properly converts lines to CR/LF. This bash problem
  19728. # is reportedly fixed, but why not run on old versions too?
  19729. sed '$q' "$ltmain" >> "$cfgfile" \
  19730. || (rm -f "$cfgfile"; exit 1)
  19731. mv -f "$cfgfile" "$ofile" ||
  19732. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  19733. chmod +x "$ofile"
  19734. ;;
  19735. esac
  19736. done # for ac_tag
  19737. as_fn_exit 0
  19738. _ACEOF
  19739. ac_clean_files=$ac_clean_files_save
  19740. test $ac_write_fail = 0 ||
  19741. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  19742. # configure is writing to config.log, and then calls config.status.
  19743. # config.status does its own redirection, appending to config.log.
  19744. # Unfortunately, on DOS this fails, as config.log is still kept open
  19745. # by configure, so config.status won't be able to write to it; its
  19746. # output is simply discarded. So we exec the FD to /dev/null,
  19747. # effectively closing config.log, so it can be properly (re)opened and
  19748. # appended to by config.status. When coming back to configure, we
  19749. # need to make the FD available again.
  19750. if test "$no_create" != yes; then
  19751. ac_cs_success=:
  19752. ac_config_status_args=
  19753. test "$silent" = yes &&
  19754. ac_config_status_args="$ac_config_status_args --quiet"
  19755. exec 5>/dev/null
  19756. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  19757. exec 5>>config.log
  19758. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  19759. # would make configure fail if this is the last instruction.
  19760. $ac_cs_success || as_fn_exit 1
  19761. fi
  19762. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  19763. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  19764. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  19765. fi
  19766. do_build="\
  19767. mod_access \
  19768. mod_accesslog \
  19769. mod_ajp13 \
  19770. mod_alias \
  19771. mod_auth \
  19772. mod_authn_file \
  19773. mod_cgi \
  19774. mod_deflate \
  19775. mod_dirlisting \
  19776. mod_evhost \
  19777. mod_expire \
  19778. mod_extforward \
  19779. mod_fastcgi \
  19780. mod_indexfile \
  19781. mod_proxy \
  19782. mod_redirect \
  19783. mod_rewrite \
  19784. mod_rrdtool \
  19785. mod_scgi \
  19786. mod_secdownload \
  19787. mod_setenv \
  19788. mod_simple_vhost \
  19789. mod_sockproxy \
  19790. mod_ssi \
  19791. mod_staticfile \
  19792. mod_status \
  19793. mod_userdir \
  19794. mod_usertrack \
  19795. mod_vhostdb \
  19796. mod_webdav \
  19797. mod_wstunnel \
  19798. "
  19799. lighty_track_feature() {
  19800. if eval "$3"; then
  19801. enable_feature="$enable_feature $1"
  19802. do_build="$do_build $2"
  19803. else
  19804. disable_feature="$disable_feature $1"
  19805. no_build="$no_build $2"
  19806. fi
  19807. }
  19808. lighty_track_feature "regex-conditionals" "" \
  19809. 'test "$WITH_PCRE" != no || test "$WITH_PCRE2" != no'
  19810. lighty_track_feature "mysql" "mod_vhostdb_mysql" \
  19811. 'test "$WITH_MYSQL" != no'
  19812. lighty_track_feature "postgresql" "mod_vhostdb_pgsql" \
  19813. 'test "$WITH_PGSQL" != no'
  19814. lighty_track_feature "dbi" "mod_authn_dbi mod_vhostdb_dbi" \
  19815. 'test "$WITH_DBI" != no'
  19816. lighty_track_feature "lua" "mod_magnet" \
  19817. 'test "$WITH_LUA" != no'
  19818. lighty_track_feature "maxminddb" "mod_maxminddb" \
  19819. 'test "$WITH_MAXMINDDB" != no'
  19820. lighty_track_feature "compress-gzip compress-deflate" "" \
  19821. 'test "$WITH_ZLIB" != no'
  19822. lighty_track_feature "compress-bzip2" "" \
  19823. 'test "$WITH_BZIP2" != no'
  19824. lighty_track_feature "compress-brotli" "" \
  19825. 'test "$WITH_BROTLI" != no'
  19826. lighty_track_feature "kerberos" "mod_authn_gssapi" \
  19827. 'test "$WITH_KRB5" != no'
  19828. lighty_track_feature "ldap" "mod_authn_ldap mod_vhostdb_ldap" \
  19829. 'test "$WITH_LDAP" != no'
  19830. lighty_track_feature "pam" "mod_authn_pam" \
  19831. 'test "$WITH_PAM" != no'
  19832. lighty_track_feature "network-openssl" "mod_openssl" \
  19833. 'test "$WITH_OPENSSL" != no'
  19834. lighty_track_feature "network-mbedtls" "mod_mbedtls" \
  19835. 'test "$WITH_MBEDTLS" != no'
  19836. lighty_track_feature "network-gnutls" "mod_gnutls" \
  19837. 'test "$WITH_GNUTLS" != no'
  19838. lighty_track_feature "network-nss" "mod_nss" \
  19839. 'test "$WITH_NSS" != no'
  19840. lighty_track_feature "network-wolfssl" "mod_wolfssl" \
  19841. 'test "$WITH_WOLFSSL" != no'
  19842. lighty_track_feature "auth-crypt" "" \
  19843. 'test "$found_crypt" != no'
  19844. lighty_track_feature "network-ipv6" "" \
  19845. 'test "$ac_cv_ipv6_support" != no'
  19846. lighty_track_feature "large-files" "" \
  19847. 'test "$ENABLE_LFS" = yes'
  19848. case "$host_os" in
  19849. *linux* )
  19850. lighty_track_feature "stat-cache-inotify" "" \
  19851. 'test "$ac_cv_header_sys_inotify_h" != no'
  19852. ;;
  19853. * ) ;;
  19854. esac
  19855. case "$host_os" in
  19856. *bsd*|*darwin* )
  19857. lighty_track_feature "stat-cache-kqueue" "" \
  19858. 'test "$ac_cv_func_kqueue" != no'
  19859. ;;
  19860. * ) ;;
  19861. esac
  19862. case "$host_os" in
  19863. *bsd*|*darwin*|*linux* )
  19864. ;;
  19865. * )
  19866. lighty_track_feature "stat-cache-fam" "" \
  19867. 'test "$WITH_FAM" != no'
  19868. ;;
  19869. esac
  19870. lighty_track_feature "webdav-properties" "" \
  19871. 'test "$WITH_WEBDAV_PROPS" != no'
  19872. lighty_track_feature "webdav-locks" "" \
  19873. 'test "$WITH_WEBDAV_LOCKS" != no'
  19874. $ECHO
  19875. $ECHO "Plugins:"
  19876. $ECHO
  19877. $ECHO "enabled: "
  19878. for p in $do_build; do
  19879. $ECHO " $p"
  19880. done | sort
  19881. $ECHO "disabled: "
  19882. for p in $no_build; do
  19883. $ECHO " $p"
  19884. done | sort
  19885. $ECHO
  19886. $ECHO "Features:"
  19887. $ECHO
  19888. $ECHO "enabled: "
  19889. for p in $enable_feature; do
  19890. $ECHO " $p"
  19891. done | sort
  19892. $ECHO "disabled: "
  19893. for p in $disable_feature; do
  19894. $ECHO " $p"
  19895. done | sort
  19896. $ECHO