configure 650 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.72 for neon 0.35.0.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
  7. # Inc.
  8. #
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. #
  13. # Copyright 2000-2022 Joe Orton and others
  14. # This configure script may be copied, distributed and modified under the
  15. # terms of the GNU Library General Public license; see src/COPYING.LIB for
  16. # more details.
  17. ## -------------------- ##
  18. ## M4sh Initialization. ##
  19. ## -------------------- ##
  20. # Be more Bourne compatible
  21. DUALCASE=1; export DUALCASE # for MKS sh
  22. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  23. then :
  24. emulate sh
  25. NULLCMD=:
  26. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  27. # is contrary to our usage. Disable this feature.
  28. alias -g '${1+"$@"}'='"$@"'
  29. setopt NO_GLOB_SUBST
  30. else case e in #(
  31. e) case `(set -o) 2>/dev/null` in #(
  32. *posix*) :
  33. set -o posix ;; #(
  34. *) :
  35. ;;
  36. esac ;;
  37. esac
  38. fi
  39. # Reset variables that may have inherited troublesome values from
  40. # the environment.
  41. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  42. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  43. # side effect of setting IFS to empty, thus disabling word splitting.)
  44. # Quoting is to prevent editors from complaining about space-tab.
  45. as_nl='
  46. '
  47. export as_nl
  48. IFS=" "" $as_nl"
  49. PS1='$ '
  50. PS2='> '
  51. PS4='+ '
  52. # Ensure predictable behavior from utilities with locale-dependent output.
  53. LC_ALL=C
  54. export LC_ALL
  55. LANGUAGE=C
  56. export LANGUAGE
  57. # We cannot yet rely on "unset" to work, but we need these variables
  58. # to be unset--not just set to an empty or harmless value--now, to
  59. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  60. # also avoids known problems related to "unset" and subshell syntax
  61. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  62. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  63. do eval test \${$as_var+y} \
  64. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  65. done
  66. # Ensure that fds 0, 1, and 2 are open.
  67. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  68. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  69. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  70. # The user is always right.
  71. if ${PATH_SEPARATOR+false} :; 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. # Find who we are. Look in the path if we contain no directory separator.
  79. as_myself=
  80. case $0 in #((
  81. *[\\/]* ) as_myself=$0 ;;
  82. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  83. for as_dir in $PATH
  84. do
  85. IFS=$as_save_IFS
  86. case $as_dir in #(((
  87. '') as_dir=./ ;;
  88. */) ;;
  89. *) as_dir=$as_dir/ ;;
  90. esac
  91. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as 'sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Use a proper internal environment variable to ensure we don't fall
  106. # into an infinite loop, continuously re-executing ourselves.
  107. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  108. _as_can_reexec=no; export _as_can_reexec;
  109. # We cannot yet assume a decent shell, so we have to provide a
  110. # neutralization value for shells without unset; and this also
  111. # works around shells that cannot unset nonexistent variables.
  112. # Preserve -v and -x to the replacement shell.
  113. BASH_ENV=/dev/null
  114. ENV=/dev/null
  115. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  116. case $- in # ((((
  117. *v*x* | *x*v* ) as_opts=-vx ;;
  118. *v* ) as_opts=-v ;;
  119. *x* ) as_opts=-x ;;
  120. * ) as_opts= ;;
  121. esac
  122. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  123. # Admittedly, this is quite paranoid, since all the known shells bail
  124. # out after a failed 'exec'.
  125. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  126. exit 255
  127. fi
  128. # We don't want this to propagate to other subprocesses.
  129. { _as_can_reexec=; unset _as_can_reexec;}
  130. if test "x$CONFIG_SHELL" = x; then
  131. as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  132. then :
  133. emulate sh
  134. NULLCMD=:
  135. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  136. # is contrary to our usage. Disable this feature.
  137. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  138. setopt NO_GLOB_SUBST
  139. else case e in #(
  140. e) case \`(set -o) 2>/dev/null\` in #(
  141. *posix*) :
  142. set -o posix ;; #(
  143. *) :
  144. ;;
  145. esac ;;
  146. esac
  147. fi
  148. "
  149. as_required="as_fn_return () { (exit \$1); }
  150. as_fn_success () { as_fn_return 0; }
  151. as_fn_failure () { as_fn_return 1; }
  152. as_fn_ret_success () { return 0; }
  153. as_fn_ret_failure () { return 1; }
  154. exitcode=0
  155. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  156. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  157. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  158. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  159. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  160. then :
  161. else case e in #(
  162. e) exitcode=1; echo positional parameters were not saved. ;;
  163. esac
  164. fi
  165. test x\$exitcode = x0 || exit 1
  166. blah=\$(echo \$(echo blah))
  167. test x\"\$blah\" = xblah || exit 1
  168. test -x / || exit 1"
  169. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  170. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  171. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  172. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  173. test \$(( 1 + 1 )) = 2 || exit 1
  174. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  175. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  176. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  177. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  178. PATH=/empty FPATH=/empty; export PATH FPATH
  179. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  180. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  181. if (eval "$as_required") 2>/dev/null
  182. then :
  183. as_have_required=yes
  184. else case e in #(
  185. e) as_have_required=no ;;
  186. esac
  187. fi
  188. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  189. then :
  190. else case e in #(
  191. e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  192. as_found=false
  193. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  194. do
  195. IFS=$as_save_IFS
  196. case $as_dir in #(((
  197. '') as_dir=./ ;;
  198. */) ;;
  199. *) as_dir=$as_dir/ ;;
  200. esac
  201. as_found=:
  202. case $as_dir in #(
  203. /*)
  204. for as_base in sh bash ksh sh5; do
  205. # Try only shells that exist, to save several forks.
  206. as_shell=$as_dir$as_base
  207. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  208. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  209. then :
  210. CONFIG_SHELL=$as_shell as_have_required=yes
  211. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  212. then :
  213. break 2
  214. fi
  215. fi
  216. done;;
  217. esac
  218. as_found=false
  219. done
  220. IFS=$as_save_IFS
  221. if $as_found
  222. then :
  223. else case e in #(
  224. e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  225. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  226. then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi ;;
  229. esac
  230. fi
  231. if test "x$CONFIG_SHELL" != x
  232. then :
  233. export CONFIG_SHELL
  234. # We cannot yet assume a decent shell, so we have to provide a
  235. # neutralization value for shells without unset; and this also
  236. # works around shells that cannot unset nonexistent variables.
  237. # Preserve -v and -x to the replacement shell.
  238. BASH_ENV=/dev/null
  239. ENV=/dev/null
  240. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  241. case $- in # ((((
  242. *v*x* | *x*v* ) as_opts=-vx ;;
  243. *v* ) as_opts=-v ;;
  244. *x* ) as_opts=-x ;;
  245. * ) as_opts= ;;
  246. esac
  247. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  248. # Admittedly, this is quite paranoid, since all the known shells bail
  249. # out after a failed 'exec'.
  250. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  251. exit 255
  252. fi
  253. if test x$as_have_required = xno
  254. then :
  255. printf "%s\n" "$0: This script requires a shell more modern than all"
  256. printf "%s\n" "$0: the shells that I found on your system."
  257. if test ${ZSH_VERSION+y} ; then
  258. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  259. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  260. else
  261. printf "%s\n" "$0: Please tell [email protected] about your system,
  262. $0: including any error possibly output before this
  263. $0: message. Then install a modern shell, or manually run
  264. $0: the script under such a shell if you do have one."
  265. fi
  266. exit 1
  267. fi ;;
  268. esac
  269. fi
  270. fi
  271. SHELL=${CONFIG_SHELL-/bin/sh}
  272. export SHELL
  273. # Unset more variables known to interfere with behavior of common tools.
  274. CLICOLOR_FORCE= GREP_OPTIONS=
  275. unset CLICOLOR_FORCE GREP_OPTIONS
  276. ## --------------------- ##
  277. ## M4sh Shell Functions. ##
  278. ## --------------------- ##
  279. # as_fn_unset VAR
  280. # ---------------
  281. # Portably unset VAR.
  282. as_fn_unset ()
  283. {
  284. { eval $1=; unset $1;}
  285. }
  286. as_unset=as_fn_unset
  287. # as_fn_set_status STATUS
  288. # -----------------------
  289. # Set $? to STATUS, without forking.
  290. as_fn_set_status ()
  291. {
  292. return $1
  293. } # as_fn_set_status
  294. # as_fn_exit STATUS
  295. # -----------------
  296. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  297. as_fn_exit ()
  298. {
  299. set +e
  300. as_fn_set_status $1
  301. exit $1
  302. } # as_fn_exit
  303. # as_fn_mkdir_p
  304. # -------------
  305. # Create "$as_dir" as a directory, including parents if necessary.
  306. as_fn_mkdir_p ()
  307. {
  308. case $as_dir in #(
  309. -*) as_dir=./$as_dir;;
  310. esac
  311. test -d "$as_dir" || eval $as_mkdir_p || {
  312. as_dirs=
  313. while :; do
  314. case $as_dir in #(
  315. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  316. *) as_qdir=$as_dir;;
  317. esac
  318. as_dirs="'$as_qdir' $as_dirs"
  319. as_dir=`$as_dirname -- "$as_dir" ||
  320. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  321. X"$as_dir" : 'X\(//\)[^/]' \| \
  322. X"$as_dir" : 'X\(//\)$' \| \
  323. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  324. printf "%s\n" X"$as_dir" |
  325. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  326. s//\1/
  327. q
  328. }
  329. /^X\(\/\/\)[^/].*/{
  330. s//\1/
  331. q
  332. }
  333. /^X\(\/\/\)$/{
  334. s//\1/
  335. q
  336. }
  337. /^X\(\/\).*/{
  338. s//\1/
  339. q
  340. }
  341. s/.*/./; q'`
  342. test -d "$as_dir" && break
  343. done
  344. test -z "$as_dirs" || eval "mkdir $as_dirs"
  345. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  346. } # as_fn_mkdir_p
  347. # as_fn_executable_p FILE
  348. # -----------------------
  349. # Test if FILE is an executable regular file.
  350. as_fn_executable_p ()
  351. {
  352. test -f "$1" && test -x "$1"
  353. } # as_fn_executable_p
  354. # as_fn_append VAR VALUE
  355. # ----------------------
  356. # Append the text in VALUE to the end of the definition contained in VAR. Take
  357. # advantage of any shell optimizations that allow amortized linear growth over
  358. # repeated appends, instead of the typical quadratic growth present in naive
  359. # implementations.
  360. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  361. then :
  362. eval 'as_fn_append ()
  363. {
  364. eval $1+=\$2
  365. }'
  366. else case e in #(
  367. e) as_fn_append ()
  368. {
  369. eval $1=\$$1\$2
  370. } ;;
  371. esac
  372. fi # as_fn_append
  373. # as_fn_arith ARG...
  374. # ------------------
  375. # Perform arithmetic evaluation on the ARGs, and store the result in the
  376. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  377. # must be portable across $(()) and expr.
  378. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  379. then :
  380. eval 'as_fn_arith ()
  381. {
  382. as_val=$(( $* ))
  383. }'
  384. else case e in #(
  385. e) as_fn_arith ()
  386. {
  387. as_val=`expr "$@" || test $? -eq 1`
  388. } ;;
  389. esac
  390. fi # as_fn_arith
  391. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  392. # ----------------------------------------
  393. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  394. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  395. # script with STATUS, using 1 if that was 0.
  396. as_fn_error ()
  397. {
  398. as_status=$1; test $as_status -eq 0 && as_status=1
  399. if test "$4"; then
  400. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  401. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  402. fi
  403. printf "%s\n" "$as_me: error: $2" >&2
  404. as_fn_exit $as_status
  405. } # as_fn_error
  406. if expr a : '\(a\)' >/dev/null 2>&1 &&
  407. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  408. as_expr=expr
  409. else
  410. as_expr=false
  411. fi
  412. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  413. as_basename=basename
  414. else
  415. as_basename=false
  416. fi
  417. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  418. as_dirname=dirname
  419. else
  420. as_dirname=false
  421. fi
  422. as_me=`$as_basename -- "$0" ||
  423. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  424. X"$0" : 'X\(//\)$' \| \
  425. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  426. printf "%s\n" X/"$0" |
  427. sed '/^.*\/\([^/][^/]*\)\/*$/{
  428. s//\1/
  429. q
  430. }
  431. /^X\/\(\/\/\)$/{
  432. s//\1/
  433. q
  434. }
  435. /^X\/\(\/\).*/{
  436. s//\1/
  437. q
  438. }
  439. s/.*/./; q'`
  440. # Avoid depending upon Character Ranges.
  441. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  442. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  443. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  444. as_cr_digits='0123456789'
  445. as_cr_alnum=$as_cr_Letters$as_cr_digits
  446. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  447. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  448. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  449. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  450. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  451. sed -n '
  452. p
  453. /[$]LINENO/=
  454. ' <$as_myself |
  455. sed '
  456. t clear
  457. :clear
  458. s/[$]LINENO.*/&-/
  459. t lineno
  460. b
  461. :lineno
  462. N
  463. :loop
  464. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  465. t loop
  466. s/-\n.*//
  467. ' >$as_me.lineno &&
  468. chmod +x "$as_me.lineno" ||
  469. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  470. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  471. # already done that, so ensure we don't try to do so again and fall
  472. # in an infinite loop. This has already happened in practice.
  473. _as_can_reexec=no; export _as_can_reexec
  474. # Don't try to exec as it changes $[0], causing all sort of problems
  475. # (the dirname of $[0] is not the place where we might find the
  476. # original and so on. Autoconf is especially sensitive to this).
  477. . "./$as_me.lineno"
  478. # Exit status is that of the last command.
  479. exit
  480. }
  481. # Determine whether it's possible to make 'echo' print without a newline.
  482. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  483. # for compatibility with existing Makefiles.
  484. ECHO_C= ECHO_N= ECHO_T=
  485. case `echo -n x` in #(((((
  486. -n*)
  487. case `echo 'xy\c'` in
  488. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  489. xy) ECHO_C='\c';;
  490. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  491. ECHO_T=' ';;
  492. esac;;
  493. *)
  494. ECHO_N='-n';;
  495. esac
  496. # For backward compatibility with old third-party macros, we provide
  497. # the shell variables $as_echo and $as_echo_n. New code should use
  498. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  499. as_echo='printf %s\n'
  500. as_echo_n='printf %s'
  501. rm -f conf$$ conf$$.exe conf$$.file
  502. if test -d conf$$.dir; then
  503. rm -f conf$$.dir/conf$$.file
  504. else
  505. rm -f conf$$.dir
  506. mkdir conf$$.dir 2>/dev/null
  507. fi
  508. if (echo >conf$$.file) 2>/dev/null; then
  509. if ln -s conf$$.file conf$$ 2>/dev/null; then
  510. as_ln_s='ln -s'
  511. # ... but there are two gotchas:
  512. # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
  513. # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
  514. # In both cases, we have to default to 'cp -pR'.
  515. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  516. as_ln_s='cp -pR'
  517. elif ln conf$$.file conf$$ 2>/dev/null; then
  518. as_ln_s=ln
  519. else
  520. as_ln_s='cp -pR'
  521. fi
  522. else
  523. as_ln_s='cp -pR'
  524. fi
  525. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  526. rmdir conf$$.dir 2>/dev/null
  527. if mkdir -p . 2>/dev/null; then
  528. as_mkdir_p='mkdir -p "$as_dir"'
  529. else
  530. test -d ./-p && rmdir ./-p
  531. as_mkdir_p=false
  532. fi
  533. as_test_x='test -x'
  534. as_executable_p=as_fn_executable_p
  535. # Sed expression to map a string onto a valid CPP name.
  536. as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  537. as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
  538. # Sed expression to map a string onto a valid variable name.
  539. as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  540. as_tr_sh="eval sed '$as_sed_sh'" # deprecated
  541. SHELL=${CONFIG_SHELL-/bin/sh}
  542. test -n "$DJDIR" || exec 7<&0 </dev/null
  543. exec 6>&1
  544. # Name of the host.
  545. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  546. # so uname gets run too.
  547. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  548. #
  549. # Initializations.
  550. #
  551. ac_default_prefix=/usr/local
  552. ac_clean_files=
  553. ac_config_libobj_dir=.
  554. LIBOBJS=
  555. cross_compiling=no
  556. subdirs=
  557. MFLAGS=
  558. MAKEFLAGS=
  559. # Identity of this package.
  560. PACKAGE_NAME='neon'
  561. PACKAGE_TARNAME='neon'
  562. PACKAGE_VERSION='0.35.0'
  563. PACKAGE_STRING='neon 0.35.0'
  564. PACKAGE_BUGREPORT=''
  565. PACKAGE_URL='https://notroj.github.io/neon/'
  566. ac_unique_file="src/ne_request.c"
  567. # Factoring default headers for most tests.
  568. ac_includes_default="\
  569. #include <stddef.h>
  570. #ifdef HAVE_STDIO_H
  571. # include <stdio.h>
  572. #endif
  573. #ifdef HAVE_STDLIB_H
  574. # include <stdlib.h>
  575. #endif
  576. #ifdef HAVE_STRING_H
  577. # include <string.h>
  578. #endif
  579. #ifdef HAVE_INTTYPES_H
  580. # include <inttypes.h>
  581. #endif
  582. #ifdef HAVE_STDINT_H
  583. # include <stdint.h>
  584. #endif
  585. #ifdef HAVE_STRINGS_H
  586. # include <strings.h>
  587. #endif
  588. #ifdef HAVE_SYS_TYPES_H
  589. # include <sys/types.h>
  590. #endif
  591. #ifdef HAVE_SYS_STAT_H
  592. # include <sys/stat.h>
  593. #endif
  594. #ifdef HAVE_UNISTD_H
  595. # include <unistd.h>
  596. #endif"
  597. ac_header_c_list=
  598. ac_subst_vars='LTLIBOBJS
  599. ALLOW_INSTALL
  600. TESTS
  601. HELPERS
  602. user_LDFLAGS
  603. top_builddir
  604. NEON_BUILD_BUNDLED
  605. NEON_VERSION
  606. ALL_LINGUAS
  607. HAVE_LD_VERSION_SCRIPT_FALSE
  608. HAVE_LD_VERSION_SCRIPT_TRUE
  609. NEON_PC_LIBS
  610. TEST_LDFLAGS
  611. PK12UTIL
  612. CERTUTIL
  613. OPENSSL
  614. NE_FLAG_I18N
  615. XML2_CONFIG
  616. NEON_LINK_FLAGS
  617. NEON_EXTRAOBJS
  618. NEONOBJS
  619. NEON_OBJEXT
  620. NEON_TARGET
  621. NE_FLAG_DAV
  622. LT_SYS_LIBRARY_PATH
  623. OTOOL64
  624. OTOOL
  625. LIPO
  626. NMEDIT
  627. DSYMUTIL
  628. MANIFEST_TOOL
  629. AWK
  630. RANLIB
  631. STRIP
  632. ac_ct_AR
  633. AR
  634. DLLTOOL
  635. OBJDUMP
  636. FILECMD
  637. LN_S
  638. NM
  639. ac_ct_DUMPBIN
  640. DUMPBIN
  641. LD
  642. FGREP
  643. EGREP
  644. GREP
  645. SED
  646. host_os
  647. host_vendor
  648. host_cpu
  649. host
  650. build_os
  651. build_vendor
  652. build_cpu
  653. build
  654. LIBTOOL
  655. NEON_LTLIBS
  656. NEON_LIBS
  657. NEON_CFLAGS
  658. NE_FLAG_LIBPXY
  659. NE_FLAG_GSSAPI
  660. KRB5_CONF_TOOL
  661. NEON_SUPPORTS_SSL
  662. NE_FLAG_TS_SSL
  663. GNUTLS_CONFIG
  664. NE_FLAG_SSL
  665. CPP
  666. PKG_CONFIG
  667. NE_FLAG_ZLIB
  668. NE_FLAG_IPV6
  669. LIBOBJS
  670. NE_FLAG_LFS
  671. SET_MAKE
  672. OBJEXT
  673. EXEEXT
  674. ac_ct_CC
  675. CPPFLAGS
  676. LDFLAGS
  677. CFLAGS
  678. CC
  679. INSTALL_DATA
  680. INSTALL_SCRIPT
  681. INSTALL_PROGRAM
  682. target_alias
  683. host_alias
  684. build_alias
  685. LIBS
  686. ECHO_T
  687. ECHO_N
  688. ECHO_C
  689. DEFS
  690. mandir
  691. localedir
  692. libdir
  693. psdir
  694. pdfdir
  695. dvidir
  696. htmldir
  697. infodir
  698. docdir
  699. oldincludedir
  700. includedir
  701. runstatedir
  702. localstatedir
  703. sharedstatedir
  704. sysconfdir
  705. datadir
  706. datarootdir
  707. libexecdir
  708. sbindir
  709. bindir
  710. program_transform_name
  711. prefix
  712. exec_prefix
  713. PACKAGE_URL
  714. PACKAGE_BUGREPORT
  715. PACKAGE_STRING
  716. PACKAGE_VERSION
  717. PACKAGE_TARNAME
  718. PACKAGE_NAME
  719. PATH_SEPARATOR
  720. SHELL'
  721. ac_subst_files=''
  722. ac_user_opts='
  723. enable_option_checking
  724. with_libs
  725. enable_webdav
  726. with_zlib
  727. with_ssl
  728. with_egd
  729. with_pakchois
  730. with_ca_bundle
  731. enable_threadsafe_ssl
  732. with_gssapi
  733. with_libproxy
  734. enable_shared
  735. enable_static
  736. enable_pic
  737. with_pic
  738. enable_fast_install
  739. enable_aix_soname
  740. with_aix_soname
  741. with_gnu_ld
  742. with_sysroot
  743. enable_libtool_lock
  744. with_libxml2
  745. with_expat
  746. enable_nls
  747. enable_debug
  748. enable_warnings
  749. enable_memleak
  750. enable_auto_libproxy
  751. enable_tests_install
  752. enable_ld_version_script
  753. '
  754. ac_precious_vars='build_alias
  755. host_alias
  756. target_alias
  757. CC
  758. CFLAGS
  759. LDFLAGS
  760. LIBS
  761. CPPFLAGS
  762. CPP
  763. LT_SYS_LIBRARY_PATH'
  764. # Initialize some variables set by options.
  765. ac_init_help=
  766. ac_init_version=false
  767. ac_unrecognized_opts=
  768. ac_unrecognized_sep=
  769. # The variables have the same names as the options, with
  770. # dashes changed to underlines.
  771. cache_file=/dev/null
  772. exec_prefix=NONE
  773. no_create=
  774. no_recursion=
  775. prefix=NONE
  776. program_prefix=NONE
  777. program_suffix=NONE
  778. program_transform_name=s,x,x,
  779. silent=
  780. site=
  781. srcdir=
  782. verbose=
  783. x_includes=NONE
  784. x_libraries=NONE
  785. # Installation directory options.
  786. # These are left unexpanded so users can "make install exec_prefix=/foo"
  787. # and all the variables that are supposed to be based on exec_prefix
  788. # by default will actually change.
  789. # Use braces instead of parens because sh, perl, etc. also accept them.
  790. # (The list follows the same order as the GNU Coding Standards.)
  791. bindir='${exec_prefix}/bin'
  792. sbindir='${exec_prefix}/sbin'
  793. libexecdir='${exec_prefix}/libexec'
  794. datarootdir='${prefix}/share'
  795. datadir='${datarootdir}'
  796. sysconfdir='${prefix}/etc'
  797. sharedstatedir='${prefix}/com'
  798. localstatedir='${prefix}/var'
  799. runstatedir='${localstatedir}/run'
  800. includedir='${prefix}/include'
  801. oldincludedir='/usr/include'
  802. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  803. infodir='${datarootdir}/info'
  804. htmldir='${docdir}'
  805. dvidir='${docdir}'
  806. pdfdir='${docdir}'
  807. psdir='${docdir}'
  808. libdir='${exec_prefix}/lib'
  809. localedir='${datarootdir}/locale'
  810. mandir='${datarootdir}/man'
  811. ac_prev=
  812. ac_dashdash=
  813. for ac_option
  814. do
  815. # If the previous option needs an argument, assign it.
  816. if test -n "$ac_prev"; then
  817. eval $ac_prev=\$ac_option
  818. ac_prev=
  819. continue
  820. fi
  821. case $ac_option in
  822. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  823. *=) ac_optarg= ;;
  824. *) ac_optarg=yes ;;
  825. esac
  826. case $ac_dashdash$ac_option in
  827. --)
  828. ac_dashdash=yes ;;
  829. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  830. ac_prev=bindir ;;
  831. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  832. bindir=$ac_optarg ;;
  833. -build | --build | --buil | --bui | --bu)
  834. ac_prev=build_alias ;;
  835. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  836. build_alias=$ac_optarg ;;
  837. -cache-file | --cache-file | --cache-fil | --cache-fi \
  838. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  839. ac_prev=cache_file ;;
  840. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  841. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  842. cache_file=$ac_optarg ;;
  843. --config-cache | -C)
  844. cache_file=config.cache ;;
  845. -datadir | --datadir | --datadi | --datad)
  846. ac_prev=datadir ;;
  847. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  848. datadir=$ac_optarg ;;
  849. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  850. | --dataroo | --dataro | --datar)
  851. ac_prev=datarootdir ;;
  852. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  853. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  854. datarootdir=$ac_optarg ;;
  855. -disable-* | --disable-*)
  856. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  857. # Reject names that are not valid shell variable names.
  858. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  859. as_fn_error $? "invalid feature name: '$ac_useropt'"
  860. ac_useropt_orig=$ac_useropt
  861. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  862. case $ac_user_opts in
  863. *"
  864. "enable_$ac_useropt"
  865. "*) ;;
  866. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  867. ac_unrecognized_sep=', ';;
  868. esac
  869. eval enable_$ac_useropt=no ;;
  870. -docdir | --docdir | --docdi | --doc | --do)
  871. ac_prev=docdir ;;
  872. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  873. docdir=$ac_optarg ;;
  874. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  875. ac_prev=dvidir ;;
  876. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  877. dvidir=$ac_optarg ;;
  878. -enable-* | --enable-*)
  879. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  880. # Reject names that are not valid shell variable names.
  881. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  882. as_fn_error $? "invalid feature name: '$ac_useropt'"
  883. ac_useropt_orig=$ac_useropt
  884. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  885. case $ac_user_opts in
  886. *"
  887. "enable_$ac_useropt"
  888. "*) ;;
  889. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  890. ac_unrecognized_sep=', ';;
  891. esac
  892. eval enable_$ac_useropt=\$ac_optarg ;;
  893. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  894. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  895. | --exec | --exe | --ex)
  896. ac_prev=exec_prefix ;;
  897. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  898. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  899. | --exec=* | --exe=* | --ex=*)
  900. exec_prefix=$ac_optarg ;;
  901. -gas | --gas | --ga | --g)
  902. # Obsolete; use --with-gas.
  903. with_gas=yes ;;
  904. -help | --help | --hel | --he | -h)
  905. ac_init_help=long ;;
  906. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  907. ac_init_help=recursive ;;
  908. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  909. ac_init_help=short ;;
  910. -host | --host | --hos | --ho)
  911. ac_prev=host_alias ;;
  912. -host=* | --host=* | --hos=* | --ho=*)
  913. host_alias=$ac_optarg ;;
  914. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  915. ac_prev=htmldir ;;
  916. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  917. | --ht=*)
  918. htmldir=$ac_optarg ;;
  919. -includedir | --includedir | --includedi | --included | --include \
  920. | --includ | --inclu | --incl | --inc)
  921. ac_prev=includedir ;;
  922. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  923. | --includ=* | --inclu=* | --incl=* | --inc=*)
  924. includedir=$ac_optarg ;;
  925. -infodir | --infodir | --infodi | --infod | --info | --inf)
  926. ac_prev=infodir ;;
  927. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  928. infodir=$ac_optarg ;;
  929. -libdir | --libdir | --libdi | --libd)
  930. ac_prev=libdir ;;
  931. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  932. libdir=$ac_optarg ;;
  933. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  934. | --libexe | --libex | --libe)
  935. ac_prev=libexecdir ;;
  936. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  937. | --libexe=* | --libex=* | --libe=*)
  938. libexecdir=$ac_optarg ;;
  939. -localedir | --localedir | --localedi | --localed | --locale)
  940. ac_prev=localedir ;;
  941. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  942. localedir=$ac_optarg ;;
  943. -localstatedir | --localstatedir | --localstatedi | --localstated \
  944. | --localstate | --localstat | --localsta | --localst | --locals)
  945. ac_prev=localstatedir ;;
  946. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  947. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  948. localstatedir=$ac_optarg ;;
  949. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  950. ac_prev=mandir ;;
  951. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  952. mandir=$ac_optarg ;;
  953. -nfp | --nfp | --nf)
  954. # Obsolete; use --without-fp.
  955. with_fp=no ;;
  956. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  957. | --no-cr | --no-c | -n)
  958. no_create=yes ;;
  959. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  960. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  961. no_recursion=yes ;;
  962. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  963. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  964. | --oldin | --oldi | --old | --ol | --o)
  965. ac_prev=oldincludedir ;;
  966. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  967. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  968. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  969. oldincludedir=$ac_optarg ;;
  970. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  971. ac_prev=prefix ;;
  972. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  973. prefix=$ac_optarg ;;
  974. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  975. | --program-pre | --program-pr | --program-p)
  976. ac_prev=program_prefix ;;
  977. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  978. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  979. program_prefix=$ac_optarg ;;
  980. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  981. | --program-suf | --program-su | --program-s)
  982. ac_prev=program_suffix ;;
  983. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  984. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  985. program_suffix=$ac_optarg ;;
  986. -program-transform-name | --program-transform-name \
  987. | --program-transform-nam | --program-transform-na \
  988. | --program-transform-n | --program-transform- \
  989. | --program-transform | --program-transfor \
  990. | --program-transfo | --program-transf \
  991. | --program-trans | --program-tran \
  992. | --progr-tra | --program-tr | --program-t)
  993. ac_prev=program_transform_name ;;
  994. -program-transform-name=* | --program-transform-name=* \
  995. | --program-transform-nam=* | --program-transform-na=* \
  996. | --program-transform-n=* | --program-transform-=* \
  997. | --program-transform=* | --program-transfor=* \
  998. | --program-transfo=* | --program-transf=* \
  999. | --program-trans=* | --program-tran=* \
  1000. | --progr-tra=* | --program-tr=* | --program-t=*)
  1001. program_transform_name=$ac_optarg ;;
  1002. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1003. ac_prev=pdfdir ;;
  1004. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1005. pdfdir=$ac_optarg ;;
  1006. -psdir | --psdir | --psdi | --psd | --ps)
  1007. ac_prev=psdir ;;
  1008. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1009. psdir=$ac_optarg ;;
  1010. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1011. | -silent | --silent | --silen | --sile | --sil)
  1012. silent=yes ;;
  1013. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1014. | --runstate | --runstat | --runsta | --runst | --runs \
  1015. | --run | --ru | --r)
  1016. ac_prev=runstatedir ;;
  1017. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1018. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1019. | --run=* | --ru=* | --r=*)
  1020. runstatedir=$ac_optarg ;;
  1021. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1022. ac_prev=sbindir ;;
  1023. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1024. | --sbi=* | --sb=*)
  1025. sbindir=$ac_optarg ;;
  1026. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1027. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1028. | --sharedst | --shareds | --shared | --share | --shar \
  1029. | --sha | --sh)
  1030. ac_prev=sharedstatedir ;;
  1031. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1032. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1033. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1034. | --sha=* | --sh=*)
  1035. sharedstatedir=$ac_optarg ;;
  1036. -site | --site | --sit)
  1037. ac_prev=site ;;
  1038. -site=* | --site=* | --sit=*)
  1039. site=$ac_optarg ;;
  1040. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1041. ac_prev=srcdir ;;
  1042. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1043. srcdir=$ac_optarg ;;
  1044. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1045. | --syscon | --sysco | --sysc | --sys | --sy)
  1046. ac_prev=sysconfdir ;;
  1047. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1048. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1049. sysconfdir=$ac_optarg ;;
  1050. -target | --target | --targe | --targ | --tar | --ta | --t)
  1051. ac_prev=target_alias ;;
  1052. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1053. target_alias=$ac_optarg ;;
  1054. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1055. verbose=yes ;;
  1056. -version | --version | --versio | --versi | --vers | -V)
  1057. ac_init_version=: ;;
  1058. -with-* | --with-*)
  1059. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1060. # Reject names that are not valid shell variable names.
  1061. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1062. as_fn_error $? "invalid package name: '$ac_useropt'"
  1063. ac_useropt_orig=$ac_useropt
  1064. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1065. case $ac_user_opts in
  1066. *"
  1067. "with_$ac_useropt"
  1068. "*) ;;
  1069. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1070. ac_unrecognized_sep=', ';;
  1071. esac
  1072. eval with_$ac_useropt=\$ac_optarg ;;
  1073. -without-* | --without-*)
  1074. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1075. # Reject names that are not valid shell variable names.
  1076. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1077. as_fn_error $? "invalid package name: '$ac_useropt'"
  1078. ac_useropt_orig=$ac_useropt
  1079. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1080. case $ac_user_opts in
  1081. *"
  1082. "with_$ac_useropt"
  1083. "*) ;;
  1084. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1085. ac_unrecognized_sep=', ';;
  1086. esac
  1087. eval with_$ac_useropt=no ;;
  1088. --x)
  1089. # Obsolete; use --with-x.
  1090. with_x=yes ;;
  1091. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1092. | --x-incl | --x-inc | --x-in | --x-i)
  1093. ac_prev=x_includes ;;
  1094. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1095. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1096. x_includes=$ac_optarg ;;
  1097. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1098. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1099. ac_prev=x_libraries ;;
  1100. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1101. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1102. x_libraries=$ac_optarg ;;
  1103. -*) as_fn_error $? "unrecognized option: '$ac_option'
  1104. Try '$0 --help' for more information"
  1105. ;;
  1106. *=*)
  1107. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1108. # Reject names that are not valid shell variable names.
  1109. case $ac_envvar in #(
  1110. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1111. as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
  1112. esac
  1113. eval $ac_envvar=\$ac_optarg
  1114. export $ac_envvar ;;
  1115. *)
  1116. # FIXME: should be removed in autoconf 3.0.
  1117. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1118. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1119. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1120. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1121. ;;
  1122. esac
  1123. done
  1124. if test -n "$ac_prev"; then
  1125. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1126. as_fn_error $? "missing argument to $ac_option"
  1127. fi
  1128. if test -n "$ac_unrecognized_opts"; then
  1129. case $enable_option_checking in
  1130. no) ;;
  1131. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1132. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1133. esac
  1134. fi
  1135. # Check all directory arguments for consistency.
  1136. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1137. datadir sysconfdir sharedstatedir localstatedir includedir \
  1138. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1139. libdir localedir mandir runstatedir
  1140. do
  1141. eval ac_val=\$$ac_var
  1142. # Remove trailing slashes.
  1143. case $ac_val in
  1144. */ )
  1145. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1146. eval $ac_var=\$ac_val;;
  1147. esac
  1148. # Be sure to have absolute directory names.
  1149. case $ac_val in
  1150. [\\/$]* | ?:[\\/]* ) continue;;
  1151. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1152. esac
  1153. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1154. done
  1155. # There might be people who depend on the old broken behavior: '$host'
  1156. # used to hold the argument of --host etc.
  1157. # FIXME: To remove some day.
  1158. build=$build_alias
  1159. host=$host_alias
  1160. target=$target_alias
  1161. # FIXME: To remove some day.
  1162. if test "x$host_alias" != x; then
  1163. if test "x$build_alias" = x; then
  1164. cross_compiling=maybe
  1165. elif test "x$build_alias" != "x$host_alias"; then
  1166. cross_compiling=yes
  1167. fi
  1168. fi
  1169. ac_tool_prefix=
  1170. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1171. test "$silent" = yes && exec 6>/dev/null
  1172. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1173. ac_ls_di=`ls -di .` &&
  1174. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1175. as_fn_error $? "working directory cannot be determined"
  1176. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1177. as_fn_error $? "pwd does not report name of working directory"
  1178. # Find the source files, if location was not specified.
  1179. if test -z "$srcdir"; then
  1180. ac_srcdir_defaulted=yes
  1181. # Try the directory containing this script, then the parent directory.
  1182. ac_confdir=`$as_dirname -- "$as_myself" ||
  1183. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1184. X"$as_myself" : 'X\(//\)[^/]' \| \
  1185. X"$as_myself" : 'X\(//\)$' \| \
  1186. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1187. printf "%s\n" X"$as_myself" |
  1188. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1189. s//\1/
  1190. q
  1191. }
  1192. /^X\(\/\/\)[^/].*/{
  1193. s//\1/
  1194. q
  1195. }
  1196. /^X\(\/\/\)$/{
  1197. s//\1/
  1198. q
  1199. }
  1200. /^X\(\/\).*/{
  1201. s//\1/
  1202. q
  1203. }
  1204. s/.*/./; q'`
  1205. srcdir=$ac_confdir
  1206. if test ! -r "$srcdir/$ac_unique_file"; then
  1207. srcdir=..
  1208. fi
  1209. else
  1210. ac_srcdir_defaulted=no
  1211. fi
  1212. if test ! -r "$srcdir/$ac_unique_file"; then
  1213. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1214. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1215. fi
  1216. ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
  1217. ac_abs_confdir=`(
  1218. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1219. pwd)`
  1220. # When building in place, set srcdir=.
  1221. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1222. srcdir=.
  1223. fi
  1224. # Remove unnecessary trailing slashes from srcdir.
  1225. # Double slashes in file names in object file debugging info
  1226. # mess up M-x gdb in Emacs.
  1227. case $srcdir in
  1228. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1229. esac
  1230. for ac_var in $ac_precious_vars; do
  1231. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1232. eval ac_env_${ac_var}_value=\$${ac_var}
  1233. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1234. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1235. done
  1236. #
  1237. # Report the --help message.
  1238. #
  1239. if test "$ac_init_help" = "long"; then
  1240. # Omit some internal or obsolete options to make the list less imposing.
  1241. # This message is too long to be a string in the A/UX 3.1 sh.
  1242. cat <<_ACEOF
  1243. 'configure' configures neon 0.35.0 to adapt to many kinds of systems.
  1244. Usage: $0 [OPTION]... [VAR=VALUE]...
  1245. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1246. VAR=VALUE. See below for descriptions of some of the useful variables.
  1247. Defaults for the options are specified in brackets.
  1248. Configuration:
  1249. -h, --help display this help and exit
  1250. --help=short display options specific to this package
  1251. --help=recursive display the short help of all the included packages
  1252. -V, --version display version information and exit
  1253. -q, --quiet, --silent do not print 'checking ...' messages
  1254. --cache-file=FILE cache test results in FILE [disabled]
  1255. -C, --config-cache alias for '--cache-file=config.cache'
  1256. -n, --no-create do not create output files
  1257. --srcdir=DIR find the sources in DIR [configure dir or '..']
  1258. Installation directories:
  1259. --prefix=PREFIX install architecture-independent files in PREFIX
  1260. [$ac_default_prefix]
  1261. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1262. [PREFIX]
  1263. By default, 'make install' will install all the files in
  1264. '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
  1265. an installation prefix other than '$ac_default_prefix' using '--prefix',
  1266. for instance '--prefix=\$HOME'.
  1267. For better control, use the options below.
  1268. Fine tuning of the installation directories:
  1269. --bindir=DIR user executables [EPREFIX/bin]
  1270. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1271. --libexecdir=DIR program executables [EPREFIX/libexec]
  1272. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1273. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1274. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1275. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1276. --libdir=DIR object code libraries [EPREFIX/lib]
  1277. --includedir=DIR C header files [PREFIX/include]
  1278. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1279. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1280. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1281. --infodir=DIR info documentation [DATAROOTDIR/info]
  1282. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1283. --mandir=DIR man documentation [DATAROOTDIR/man]
  1284. --docdir=DIR documentation root [DATAROOTDIR/doc/neon]
  1285. --htmldir=DIR html documentation [DOCDIR]
  1286. --dvidir=DIR dvi documentation [DOCDIR]
  1287. --pdfdir=DIR pdf documentation [DOCDIR]
  1288. --psdir=DIR ps documentation [DOCDIR]
  1289. _ACEOF
  1290. cat <<\_ACEOF
  1291. System types:
  1292. --build=BUILD configure for building on BUILD [guessed]
  1293. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1294. _ACEOF
  1295. fi
  1296. if test -n "$ac_init_help"; then
  1297. case $ac_init_help in
  1298. short | recursive ) echo "Configuration of neon 0.35.0:";;
  1299. esac
  1300. cat <<\_ACEOF
  1301. Optional Features:
  1302. --disable-option-checking ignore unrecognized --enable/--with options
  1303. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1304. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1305. --disable-webdav disable WebDAV support
  1306. --enable-threadsafe-ssl=posix
  1307. enable SSL library thread-safety using POSIX
  1308. threads: suitable CC/CFLAGS/LIBS must be used to
  1309. make the POSIX library interfaces available
  1310. --enable-shared[=PKGS] build shared libraries [default=no]
  1311. --enable-static[=PKGS] build static libraries [default=yes]
  1312. --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1313. both]
  1314. --enable-fast-install[=PKGS]
  1315. optimize for fast installation [default=yes]
  1316. --enable-aix-soname=aix|svr4|both
  1317. shared library versioning (aka "SONAME") variant to
  1318. provide on AIX, [default=aix].
  1319. --disable-libtool-lock avoid locking (might break parallel builds)
  1320. --disable-nls disable internationalization support
  1321. --disable-debug disable runtime debugging messages
  1322. --enable-warnings enable compiler warnings
  1323. --enable-memleak for test builds only: enable memory leak checking
  1324. --enable-auto-libproxy for using libproxy during session creation
  1325. --enable-tests-install enable installation of the test suite
  1326. --enable-ld-version-script
  1327. enable linker version script (default is enabled
  1328. when possible)
  1329. Optional Packages:
  1330. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1331. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1332. --with-libs=DIR[:DIR2...] look for support libraries in DIR/{bin,lib,include}
  1333. --without-zlib disable zlib support
  1334. --with-ssl=openssl|gnutls
  1335. enable SSL support (default OpenSSL)
  1336. --with-egd[=PATH] enable EGD support [using EGD socket at PATH]
  1337. --without-pakchois disable support for PKCS#11 using pakchois
  1338. --with-ca-bundle specify filename of an SSL CA root bundle
  1339. --without-gssapi disable GSSAPI support
  1340. --without-libproxy disable libproxy support
  1341. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1342. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1343. compiler's sysroot if not specified).
  1344. --with-libxml2 force use of libxml 2.x
  1345. --with-expat force use of expat
  1346. Some influential environment variables:
  1347. CC C compiler command
  1348. CFLAGS C compiler flags
  1349. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1350. nonstandard directory <lib dir>
  1351. LIBS libraries to pass to the linker, e.g. -l<library>
  1352. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1353. you have headers in a nonstandard directory <include dir>
  1354. CPP C preprocessor
  1355. LT_SYS_LIBRARY_PATH
  1356. User-defined run-time library search path.
  1357. Use these variables to override the choices made by 'configure' or to help
  1358. it to find libraries and programs with nonstandard names/locations.
  1359. Report bugs to the package provider.
  1360. neon home page: <https://notroj.github.io/neon/>.
  1361. _ACEOF
  1362. ac_status=$?
  1363. fi
  1364. if test "$ac_init_help" = "recursive"; then
  1365. # If there are subdirs, report their specific --help.
  1366. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1367. test -d "$ac_dir" ||
  1368. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1369. continue
  1370. ac_builddir=.
  1371. case "$ac_dir" in
  1372. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1373. *)
  1374. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1375. # A ".." for each directory in $ac_dir_suffix.
  1376. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1377. case $ac_top_builddir_sub in
  1378. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1379. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1380. esac ;;
  1381. esac
  1382. ac_abs_top_builddir=$ac_pwd
  1383. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1384. # for backward compatibility:
  1385. ac_top_builddir=$ac_top_build_prefix
  1386. case $srcdir in
  1387. .) # We are building in place.
  1388. ac_srcdir=.
  1389. ac_top_srcdir=$ac_top_builddir_sub
  1390. ac_abs_top_srcdir=$ac_pwd ;;
  1391. [\\/]* | ?:[\\/]* ) # Absolute name.
  1392. ac_srcdir=$srcdir$ac_dir_suffix;
  1393. ac_top_srcdir=$srcdir
  1394. ac_abs_top_srcdir=$srcdir ;;
  1395. *) # Relative name.
  1396. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1397. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1398. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1399. esac
  1400. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1401. cd "$ac_dir" || { ac_status=$?; continue; }
  1402. # Check for configure.gnu first; this name is used for a wrapper for
  1403. # Metaconfig's "Configure" on case-insensitive file systems.
  1404. if test -f "$ac_srcdir/configure.gnu"; then
  1405. echo &&
  1406. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1407. elif test -f "$ac_srcdir/configure"; then
  1408. echo &&
  1409. $SHELL "$ac_srcdir/configure" --help=recursive
  1410. else
  1411. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1412. fi || ac_status=$?
  1413. cd "$ac_pwd" || { ac_status=$?; break; }
  1414. done
  1415. fi
  1416. test -n "$ac_init_help" && exit $ac_status
  1417. if $ac_init_version; then
  1418. cat <<\_ACEOF
  1419. neon configure 0.35.0
  1420. generated by GNU Autoconf 2.72
  1421. Copyright (C) 2023 Free Software Foundation, Inc.
  1422. This configure script is free software; the Free Software Foundation
  1423. gives unlimited permission to copy, distribute and modify it.
  1424. Copyright 2000-2022 Joe Orton and others
  1425. This configure script may be copied, distributed and modified under the
  1426. terms of the GNU Library General Public license; see src/COPYING.LIB for
  1427. more details.
  1428. _ACEOF
  1429. exit
  1430. fi
  1431. ## ------------------------ ##
  1432. ## Autoconf initialization. ##
  1433. ## ------------------------ ##
  1434. # ac_fn_c_try_compile LINENO
  1435. # --------------------------
  1436. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1437. ac_fn_c_try_compile ()
  1438. {
  1439. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1440. rm -f conftest.$ac_objext conftest.beam
  1441. if { { ac_try="$ac_compile"
  1442. case "(($ac_try" in
  1443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1444. *) ac_try_echo=$ac_try;;
  1445. esac
  1446. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1447. printf "%s\n" "$ac_try_echo"; } >&5
  1448. (eval "$ac_compile") 2>conftest.err
  1449. ac_status=$?
  1450. if test -s conftest.err; then
  1451. grep -v '^ *+' conftest.err >conftest.er1
  1452. cat conftest.er1 >&5
  1453. mv -f conftest.er1 conftest.err
  1454. fi
  1455. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1456. test $ac_status = 0; } && {
  1457. test -z "$ac_c_werror_flag" ||
  1458. test ! -s conftest.err
  1459. } && test -s conftest.$ac_objext
  1460. then :
  1461. ac_retval=0
  1462. else case e in #(
  1463. e) printf "%s\n" "$as_me: failed program was:" >&5
  1464. sed 's/^/| /' conftest.$ac_ext >&5
  1465. ac_retval=1 ;;
  1466. esac
  1467. fi
  1468. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1469. as_fn_set_status $ac_retval
  1470. } # ac_fn_c_try_compile
  1471. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1472. # -------------------------------------------------------
  1473. # Tests whether HEADER exists and can be compiled using the include files in
  1474. # INCLUDES, setting the cache variable VAR accordingly.
  1475. ac_fn_c_check_header_compile ()
  1476. {
  1477. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1479. printf %s "checking for $2... " >&6; }
  1480. if eval test \${$3+y}
  1481. then :
  1482. printf %s "(cached) " >&6
  1483. else case e in #(
  1484. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1485. /* end confdefs.h. */
  1486. $4
  1487. #include <$2>
  1488. _ACEOF
  1489. if ac_fn_c_try_compile "$LINENO"
  1490. then :
  1491. eval "$3=yes"
  1492. else case e in #(
  1493. e) eval "$3=no" ;;
  1494. esac
  1495. fi
  1496. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  1497. esac
  1498. fi
  1499. eval ac_res=\$$3
  1500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1501. printf "%s\n" "$ac_res" >&6; }
  1502. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1503. } # ac_fn_c_check_header_compile
  1504. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1505. # -------------------------------------------
  1506. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1507. # variable VAR accordingly.
  1508. ac_fn_c_check_type ()
  1509. {
  1510. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1512. printf %s "checking for $2... " >&6; }
  1513. if eval test \${$3+y}
  1514. then :
  1515. printf %s "(cached) " >&6
  1516. else case e in #(
  1517. e) eval "$3=no"
  1518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1519. /* end confdefs.h. */
  1520. $4
  1521. int
  1522. main (void)
  1523. {
  1524. if (sizeof ($2))
  1525. return 0;
  1526. ;
  1527. return 0;
  1528. }
  1529. _ACEOF
  1530. if ac_fn_c_try_compile "$LINENO"
  1531. then :
  1532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1533. /* end confdefs.h. */
  1534. $4
  1535. int
  1536. main (void)
  1537. {
  1538. if (sizeof (($2)))
  1539. return 0;
  1540. ;
  1541. return 0;
  1542. }
  1543. _ACEOF
  1544. if ac_fn_c_try_compile "$LINENO"
  1545. then :
  1546. else case e in #(
  1547. e) eval "$3=yes" ;;
  1548. esac
  1549. fi
  1550. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1551. fi
  1552. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  1553. esac
  1554. fi
  1555. eval ac_res=\$$3
  1556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1557. printf "%s\n" "$ac_res" >&6; }
  1558. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1559. } # ac_fn_c_check_type
  1560. # ac_fn_c_try_run LINENO
  1561. # ----------------------
  1562. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  1563. # executables *can* be run.
  1564. ac_fn_c_try_run ()
  1565. {
  1566. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1567. if { { ac_try="$ac_link"
  1568. case "(($ac_try" in
  1569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1570. *) ac_try_echo=$ac_try;;
  1571. esac
  1572. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1573. printf "%s\n" "$ac_try_echo"; } >&5
  1574. (eval "$ac_link") 2>&5
  1575. ac_status=$?
  1576. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1577. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1578. { { case "(($ac_try" in
  1579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1580. *) ac_try_echo=$ac_try;;
  1581. esac
  1582. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1583. printf "%s\n" "$ac_try_echo"; } >&5
  1584. (eval "$ac_try") 2>&5
  1585. ac_status=$?
  1586. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1587. test $ac_status = 0; }; }
  1588. then :
  1589. ac_retval=0
  1590. else case e in #(
  1591. e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  1592. printf "%s\n" "$as_me: failed program was:" >&5
  1593. sed 's/^/| /' conftest.$ac_ext >&5
  1594. ac_retval=$ac_status ;;
  1595. esac
  1596. fi
  1597. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1598. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1599. as_fn_set_status $ac_retval
  1600. } # ac_fn_c_try_run
  1601. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1602. # --------------------------------------------
  1603. # Tries to find the compile-time value of EXPR in a program that includes
  1604. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1605. # computed
  1606. ac_fn_c_compute_int ()
  1607. {
  1608. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1609. if test "$cross_compiling" = yes; then
  1610. # Depending upon the size, compute the lo and hi bounds.
  1611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1612. /* end confdefs.h. */
  1613. $4
  1614. int
  1615. main (void)
  1616. {
  1617. static int test_array [1 - 2 * !(($2) >= 0)];
  1618. test_array [0] = 0;
  1619. return test_array [0];
  1620. ;
  1621. return 0;
  1622. }
  1623. _ACEOF
  1624. if ac_fn_c_try_compile "$LINENO"
  1625. then :
  1626. ac_lo=0 ac_mid=0
  1627. while :; do
  1628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1629. /* end confdefs.h. */
  1630. $4
  1631. int
  1632. main (void)
  1633. {
  1634. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1635. test_array [0] = 0;
  1636. return test_array [0];
  1637. ;
  1638. return 0;
  1639. }
  1640. _ACEOF
  1641. if ac_fn_c_try_compile "$LINENO"
  1642. then :
  1643. ac_hi=$ac_mid; break
  1644. else case e in #(
  1645. e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1646. if test $ac_lo -le $ac_mid; then
  1647. ac_lo= ac_hi=
  1648. break
  1649. fi
  1650. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
  1651. esac
  1652. fi
  1653. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1654. done
  1655. else case e in #(
  1656. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1657. /* end confdefs.h. */
  1658. $4
  1659. int
  1660. main (void)
  1661. {
  1662. static int test_array [1 - 2 * !(($2) < 0)];
  1663. test_array [0] = 0;
  1664. return test_array [0];
  1665. ;
  1666. return 0;
  1667. }
  1668. _ACEOF
  1669. if ac_fn_c_try_compile "$LINENO"
  1670. then :
  1671. ac_hi=-1 ac_mid=-1
  1672. while :; do
  1673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1674. /* end confdefs.h. */
  1675. $4
  1676. int
  1677. main (void)
  1678. {
  1679. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1680. test_array [0] = 0;
  1681. return test_array [0];
  1682. ;
  1683. return 0;
  1684. }
  1685. _ACEOF
  1686. if ac_fn_c_try_compile "$LINENO"
  1687. then :
  1688. ac_lo=$ac_mid; break
  1689. else case e in #(
  1690. e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1691. if test $ac_mid -le $ac_hi; then
  1692. ac_lo= ac_hi=
  1693. break
  1694. fi
  1695. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
  1696. esac
  1697. fi
  1698. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1699. done
  1700. else case e in #(
  1701. e) ac_lo= ac_hi= ;;
  1702. esac
  1703. fi
  1704. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  1705. esac
  1706. fi
  1707. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1708. # Binary search between lo and hi bounds.
  1709. while test "x$ac_lo" != "x$ac_hi"; do
  1710. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1712. /* end confdefs.h. */
  1713. $4
  1714. int
  1715. main (void)
  1716. {
  1717. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1718. test_array [0] = 0;
  1719. return test_array [0];
  1720. ;
  1721. return 0;
  1722. }
  1723. _ACEOF
  1724. if ac_fn_c_try_compile "$LINENO"
  1725. then :
  1726. ac_hi=$ac_mid
  1727. else case e in #(
  1728. e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
  1729. esac
  1730. fi
  1731. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1732. done
  1733. case $ac_lo in #((
  1734. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1735. '') ac_retval=1 ;;
  1736. esac
  1737. else
  1738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1739. /* end confdefs.h. */
  1740. $4
  1741. static long int longval (void) { return $2; }
  1742. static unsigned long int ulongval (void) { return $2; }
  1743. #include <stdio.h>
  1744. #include <stdlib.h>
  1745. int
  1746. main (void)
  1747. {
  1748. FILE *f = fopen ("conftest.val", "w");
  1749. if (! f)
  1750. return 1;
  1751. if (($2) < 0)
  1752. {
  1753. long int i = longval ();
  1754. if (i != ($2))
  1755. return 1;
  1756. fprintf (f, "%ld", i);
  1757. }
  1758. else
  1759. {
  1760. unsigned long int i = ulongval ();
  1761. if (i != ($2))
  1762. return 1;
  1763. fprintf (f, "%lu", i);
  1764. }
  1765. /* Do not output a trailing newline, as this causes \r\n confusion
  1766. on some platforms. */
  1767. return ferror (f) || fclose (f) != 0;
  1768. ;
  1769. return 0;
  1770. }
  1771. _ACEOF
  1772. if ac_fn_c_try_run "$LINENO"
  1773. then :
  1774. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1775. else case e in #(
  1776. e) ac_retval=1 ;;
  1777. esac
  1778. fi
  1779. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1780. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1781. rm -f conftest.val
  1782. fi
  1783. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1784. as_fn_set_status $ac_retval
  1785. } # ac_fn_c_compute_int
  1786. # ac_fn_c_try_link LINENO
  1787. # -----------------------
  1788. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1789. ac_fn_c_try_link ()
  1790. {
  1791. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1792. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1793. if { { ac_try="$ac_link"
  1794. case "(($ac_try" in
  1795. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1796. *) ac_try_echo=$ac_try;;
  1797. esac
  1798. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1799. printf "%s\n" "$ac_try_echo"; } >&5
  1800. (eval "$ac_link") 2>conftest.err
  1801. ac_status=$?
  1802. if test -s conftest.err; then
  1803. grep -v '^ *+' conftest.err >conftest.er1
  1804. cat conftest.er1 >&5
  1805. mv -f conftest.er1 conftest.err
  1806. fi
  1807. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1808. test $ac_status = 0; } && {
  1809. test -z "$ac_c_werror_flag" ||
  1810. test ! -s conftest.err
  1811. } && test -s conftest$ac_exeext && {
  1812. test "$cross_compiling" = yes ||
  1813. test -x conftest$ac_exeext
  1814. }
  1815. then :
  1816. ac_retval=0
  1817. else case e in #(
  1818. e) printf "%s\n" "$as_me: failed program was:" >&5
  1819. sed 's/^/| /' conftest.$ac_ext >&5
  1820. ac_retval=1 ;;
  1821. esac
  1822. fi
  1823. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1824. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1825. # interfere with the next link command; also delete a directory that is
  1826. # left behind by Apple's compiler. We do this before executing the actions.
  1827. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1828. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1829. as_fn_set_status $ac_retval
  1830. } # ac_fn_c_try_link
  1831. # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
  1832. # ------------------------------------------------------------------
  1833. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1834. # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
  1835. ac_fn_check_decl ()
  1836. {
  1837. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1838. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1840. printf %s "checking whether $as_decl_name is declared... " >&6; }
  1841. if eval test \${$3+y}
  1842. then :
  1843. printf %s "(cached) " >&6
  1844. else case e in #(
  1845. e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1846. eval ac_save_FLAGS=\$$6
  1847. as_fn_append $6 " $5"
  1848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1849. /* end confdefs.h. */
  1850. $4
  1851. int
  1852. main (void)
  1853. {
  1854. #ifndef $as_decl_name
  1855. #ifdef __cplusplus
  1856. (void) $as_decl_use;
  1857. #else
  1858. (void) $as_decl_name;
  1859. #endif
  1860. #endif
  1861. ;
  1862. return 0;
  1863. }
  1864. _ACEOF
  1865. if ac_fn_c_try_compile "$LINENO"
  1866. then :
  1867. eval "$3=yes"
  1868. else case e in #(
  1869. e) eval "$3=no" ;;
  1870. esac
  1871. fi
  1872. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1873. eval $6=\$ac_save_FLAGS
  1874. ;;
  1875. esac
  1876. fi
  1877. eval ac_res=\$$3
  1878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1879. printf "%s\n" "$ac_res" >&6; }
  1880. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1881. } # ac_fn_check_decl
  1882. # ac_fn_c_check_func LINENO FUNC VAR
  1883. # ----------------------------------
  1884. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1885. ac_fn_c_check_func ()
  1886. {
  1887. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1889. printf %s "checking for $2... " >&6; }
  1890. if eval test \${$3+y}
  1891. then :
  1892. printf %s "(cached) " >&6
  1893. else case e in #(
  1894. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1895. /* end confdefs.h. */
  1896. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1897. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1898. #define $2 innocuous_$2
  1899. /* System header to define __stub macros and hopefully few prototypes,
  1900. which can conflict with char $2 (void); below. */
  1901. #include <limits.h>
  1902. #undef $2
  1903. /* Override any GCC internal prototype to avoid an error.
  1904. Use char because int might match the return type of a GCC
  1905. builtin and then its argument prototype would still apply. */
  1906. #ifdef __cplusplus
  1907. extern "C"
  1908. #endif
  1909. char $2 (void);
  1910. /* The GNU C library defines this for functions which it implements
  1911. to always fail with ENOSYS. Some functions are actually named
  1912. something starting with __ and the normal name is an alias. */
  1913. #if defined __stub_$2 || defined __stub___$2
  1914. choke me
  1915. #endif
  1916. int
  1917. main (void)
  1918. {
  1919. return $2 ();
  1920. ;
  1921. return 0;
  1922. }
  1923. _ACEOF
  1924. if ac_fn_c_try_link "$LINENO"
  1925. then :
  1926. eval "$3=yes"
  1927. else case e in #(
  1928. e) eval "$3=no" ;;
  1929. esac
  1930. fi
  1931. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1932. conftest$ac_exeext conftest.$ac_ext ;;
  1933. esac
  1934. fi
  1935. eval ac_res=\$$3
  1936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1937. printf "%s\n" "$ac_res" >&6; }
  1938. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1939. } # ac_fn_c_check_func
  1940. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1941. # ----------------------------------------------------
  1942. # Tries to find if the field MEMBER exists in type AGGR, after including
  1943. # INCLUDES, setting cache variable VAR accordingly.
  1944. ac_fn_c_check_member ()
  1945. {
  1946. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1947. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1948. printf %s "checking for $2.$3... " >&6; }
  1949. if eval test \${$4+y}
  1950. then :
  1951. printf %s "(cached) " >&6
  1952. else case e in #(
  1953. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1954. /* end confdefs.h. */
  1955. $5
  1956. int
  1957. main (void)
  1958. {
  1959. static $2 ac_aggr;
  1960. if (ac_aggr.$3)
  1961. return 0;
  1962. ;
  1963. return 0;
  1964. }
  1965. _ACEOF
  1966. if ac_fn_c_try_compile "$LINENO"
  1967. then :
  1968. eval "$4=yes"
  1969. else case e in #(
  1970. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1971. /* end confdefs.h. */
  1972. $5
  1973. int
  1974. main (void)
  1975. {
  1976. static $2 ac_aggr;
  1977. if (sizeof ac_aggr.$3)
  1978. return 0;
  1979. ;
  1980. return 0;
  1981. }
  1982. _ACEOF
  1983. if ac_fn_c_try_compile "$LINENO"
  1984. then :
  1985. eval "$4=yes"
  1986. else case e in #(
  1987. e) eval "$4=no" ;;
  1988. esac
  1989. fi
  1990. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  1991. esac
  1992. fi
  1993. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  1994. esac
  1995. fi
  1996. eval ac_res=\$$4
  1997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1998. printf "%s\n" "$ac_res" >&6; }
  1999. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2000. } # ac_fn_c_check_member
  2001. # ac_fn_c_try_cpp LINENO
  2002. # ----------------------
  2003. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2004. ac_fn_c_try_cpp ()
  2005. {
  2006. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2007. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2008. case "(($ac_try" in
  2009. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2010. *) ac_try_echo=$ac_try;;
  2011. esac
  2012. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2013. printf "%s\n" "$ac_try_echo"; } >&5
  2014. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2015. ac_status=$?
  2016. if test -s conftest.err; then
  2017. grep -v '^ *+' conftest.err >conftest.er1
  2018. cat conftest.er1 >&5
  2019. mv -f conftest.er1 conftest.err
  2020. fi
  2021. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2022. test $ac_status = 0; } > conftest.i && {
  2023. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2024. test ! -s conftest.err
  2025. }
  2026. then :
  2027. ac_retval=0
  2028. else case e in #(
  2029. e) printf "%s\n" "$as_me: failed program was:" >&5
  2030. sed 's/^/| /' conftest.$ac_ext >&5
  2031. ac_retval=1 ;;
  2032. esac
  2033. fi
  2034. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2035. as_fn_set_status $ac_retval
  2036. } # ac_fn_c_try_cpp
  2037. ac_configure_args_raw=
  2038. for ac_arg
  2039. do
  2040. case $ac_arg in
  2041. *\'*)
  2042. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2043. esac
  2044. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2045. done
  2046. case $ac_configure_args_raw in
  2047. *$as_nl*)
  2048. ac_safe_unquote= ;;
  2049. *)
  2050. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2051. ac_unsafe_a="$ac_unsafe_z#~"
  2052. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2053. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2054. esac
  2055. cat >config.log <<_ACEOF
  2056. This file contains any messages produced by compilers while
  2057. running configure, to aid debugging if configure makes a mistake.
  2058. It was created by neon $as_me 0.35.0, which was
  2059. generated by GNU Autoconf 2.72. Invocation command line was
  2060. $ $0$ac_configure_args_raw
  2061. _ACEOF
  2062. exec 5>>config.log
  2063. {
  2064. cat <<_ASUNAME
  2065. ## --------- ##
  2066. ## Platform. ##
  2067. ## --------- ##
  2068. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2069. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2070. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2071. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2072. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2073. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2074. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2075. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2076. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2077. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2078. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2079. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2080. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2081. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2082. _ASUNAME
  2083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2084. for as_dir in $PATH
  2085. do
  2086. IFS=$as_save_IFS
  2087. case $as_dir in #(((
  2088. '') as_dir=./ ;;
  2089. */) ;;
  2090. *) as_dir=$as_dir/ ;;
  2091. esac
  2092. printf "%s\n" "PATH: $as_dir"
  2093. done
  2094. IFS=$as_save_IFS
  2095. } >&5
  2096. cat >&5 <<_ACEOF
  2097. ## ----------- ##
  2098. ## Core tests. ##
  2099. ## ----------- ##
  2100. _ACEOF
  2101. # Keep a trace of the command line.
  2102. # Strip out --no-create and --no-recursion so they do not pile up.
  2103. # Strip out --silent because we don't want to record it for future runs.
  2104. # Also quote any args containing shell meta-characters.
  2105. # Make two passes to allow for proper duplicate-argument suppression.
  2106. ac_configure_args=
  2107. ac_configure_args0=
  2108. ac_configure_args1=
  2109. ac_must_keep_next=false
  2110. for ac_pass in 1 2
  2111. do
  2112. for ac_arg
  2113. do
  2114. case $ac_arg in
  2115. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2116. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2117. | -silent | --silent | --silen | --sile | --sil)
  2118. continue ;;
  2119. *\'*)
  2120. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2121. esac
  2122. case $ac_pass in
  2123. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2124. 2)
  2125. as_fn_append ac_configure_args1 " '$ac_arg'"
  2126. if test $ac_must_keep_next = true; then
  2127. ac_must_keep_next=false # Got value, back to normal.
  2128. else
  2129. case $ac_arg in
  2130. *=* | --config-cache | -C | -disable-* | --disable-* \
  2131. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2132. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2133. | -with-* | --with-* | -without-* | --without-* | --x)
  2134. case "$ac_configure_args0 " in
  2135. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2136. esac
  2137. ;;
  2138. -* ) ac_must_keep_next=true ;;
  2139. esac
  2140. fi
  2141. as_fn_append ac_configure_args " '$ac_arg'"
  2142. ;;
  2143. esac
  2144. done
  2145. done
  2146. { ac_configure_args0=; unset ac_configure_args0;}
  2147. { ac_configure_args1=; unset ac_configure_args1;}
  2148. # When interrupted or exit'd, cleanup temporary files, and complete
  2149. # config.log. We remove comments because anyway the quotes in there
  2150. # would cause problems or look ugly.
  2151. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2152. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2153. trap 'exit_status=$?
  2154. # Sanitize IFS.
  2155. IFS=" "" $as_nl"
  2156. # Save into config.log some information that might help in debugging.
  2157. {
  2158. echo
  2159. printf "%s\n" "## ---------------- ##
  2160. ## Cache variables. ##
  2161. ## ---------------- ##"
  2162. echo
  2163. # The following way of writing the cache mishandles newlines in values,
  2164. (
  2165. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2166. eval ac_val=\$$ac_var
  2167. case $ac_val in #(
  2168. *${as_nl}*)
  2169. case $ac_var in #(
  2170. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2171. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2172. esac
  2173. case $ac_var in #(
  2174. _ | IFS | as_nl) ;; #(
  2175. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2176. *) { eval $ac_var=; unset $ac_var;} ;;
  2177. esac ;;
  2178. esac
  2179. done
  2180. (set) 2>&1 |
  2181. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2182. *${as_nl}ac_space=\ *)
  2183. sed -n \
  2184. "s/'\''/'\''\\\\'\'''\''/g;
  2185. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2186. ;; #(
  2187. *)
  2188. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2189. ;;
  2190. esac |
  2191. sort
  2192. )
  2193. echo
  2194. printf "%s\n" "## ----------------- ##
  2195. ## Output variables. ##
  2196. ## ----------------- ##"
  2197. echo
  2198. for ac_var in $ac_subst_vars
  2199. do
  2200. eval ac_val=\$$ac_var
  2201. case $ac_val in
  2202. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2203. esac
  2204. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2205. done | sort
  2206. echo
  2207. if test -n "$ac_subst_files"; then
  2208. printf "%s\n" "## ------------------- ##
  2209. ## File substitutions. ##
  2210. ## ------------------- ##"
  2211. echo
  2212. for ac_var in $ac_subst_files
  2213. do
  2214. eval ac_val=\$$ac_var
  2215. case $ac_val in
  2216. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2217. esac
  2218. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2219. done | sort
  2220. echo
  2221. fi
  2222. if test -s confdefs.h; then
  2223. printf "%s\n" "## ----------- ##
  2224. ## confdefs.h. ##
  2225. ## ----------- ##"
  2226. echo
  2227. cat confdefs.h
  2228. echo
  2229. fi
  2230. test "$ac_signal" != 0 &&
  2231. printf "%s\n" "$as_me: caught signal $ac_signal"
  2232. printf "%s\n" "$as_me: exit $exit_status"
  2233. } >&5
  2234. rm -f core *.core core.conftest.* &&
  2235. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2236. exit $exit_status
  2237. ' 0
  2238. for ac_signal in 1 2 13 15; do
  2239. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2240. done
  2241. ac_signal=0
  2242. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2243. rm -f -r conftest* confdefs.h
  2244. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2245. # Predefined preprocessor variables.
  2246. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2247. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2248. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2249. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2250. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2251. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2252. # Let the site file select an alternate cache file if it wants to.
  2253. # Prefer an explicitly selected file to automatically selected ones.
  2254. if test -n "$CONFIG_SITE"; then
  2255. ac_site_files="$CONFIG_SITE"
  2256. elif test "x$prefix" != xNONE; then
  2257. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2258. else
  2259. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2260. fi
  2261. for ac_site_file in $ac_site_files
  2262. do
  2263. case $ac_site_file in #(
  2264. */*) :
  2265. ;; #(
  2266. *) :
  2267. ac_site_file=./$ac_site_file ;;
  2268. esac
  2269. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2271. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2272. sed 's/^/| /' "$ac_site_file" >&5
  2273. . "$ac_site_file" \
  2274. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  2275. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  2276. as_fn_error $? "failed to load site script $ac_site_file
  2277. See 'config.log' for more details" "$LINENO" 5; }
  2278. fi
  2279. done
  2280. if test -r "$cache_file"; then
  2281. # Some versions of bash will fail to source /dev/null (special files
  2282. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2283. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2285. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2286. case $cache_file in
  2287. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2288. *) . "./$cache_file";;
  2289. esac
  2290. fi
  2291. else
  2292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2293. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2294. >$cache_file
  2295. fi
  2296. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2297. # Test code for whether the C compiler supports C89 (global declarations)
  2298. ac_c_conftest_c89_globals='
  2299. /* Does the compiler advertise C89 conformance?
  2300. Do not test the value of __STDC__, because some compilers set it to 0
  2301. while being otherwise adequately conformant. */
  2302. #if !defined __STDC__
  2303. # error "Compiler does not advertise C89 conformance"
  2304. #endif
  2305. #include <stddef.h>
  2306. #include <stdarg.h>
  2307. struct stat;
  2308. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2309. struct buf { int x; };
  2310. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2311. static char *e (char **p, int i)
  2312. {
  2313. return p[i];
  2314. }
  2315. static char *f (char * (*g) (char **, int), char **p, ...)
  2316. {
  2317. char *s;
  2318. va_list v;
  2319. va_start (v,p);
  2320. s = g (p, va_arg (v,int));
  2321. va_end (v);
  2322. return s;
  2323. }
  2324. /* C89 style stringification. */
  2325. #define noexpand_stringify(a) #a
  2326. const char *stringified = noexpand_stringify(arbitrary+token=sequence);
  2327. /* C89 style token pasting. Exercises some of the corner cases that
  2328. e.g. old MSVC gets wrong, but not very hard. */
  2329. #define noexpand_concat(a,b) a##b
  2330. #define expand_concat(a,b) noexpand_concat(a,b)
  2331. extern int vA;
  2332. extern int vbee;
  2333. #define aye A
  2334. #define bee B
  2335. int *pvA = &expand_concat(v,aye);
  2336. int *pvbee = &noexpand_concat(v,bee);
  2337. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2338. function prototypes and stuff, but not \xHH hex character constants.
  2339. These do not provoke an error unfortunately, instead are silently treated
  2340. as an "x". The following induces an error, until -std is added to get
  2341. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2342. array size at least. It is necessary to write \x00 == 0 to get something
  2343. that is true only with -std. */
  2344. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2345. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2346. inside strings and character constants. */
  2347. #define FOO(x) '\''x'\''
  2348. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2349. int test (int i, double x);
  2350. struct s1 {int (*f) (int a);};
  2351. struct s2 {int (*f) (double a);};
  2352. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2353. int, int);'
  2354. # Test code for whether the C compiler supports C89 (body of main).
  2355. ac_c_conftest_c89_main='
  2356. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2357. '
  2358. # Test code for whether the C compiler supports C99 (global declarations)
  2359. ac_c_conftest_c99_globals='
  2360. /* Does the compiler advertise C99 conformance? */
  2361. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2362. # error "Compiler does not advertise C99 conformance"
  2363. #endif
  2364. // See if C++-style comments work.
  2365. #include <stdbool.h>
  2366. extern int puts (const char *);
  2367. extern int printf (const char *, ...);
  2368. extern int dprintf (int, const char *, ...);
  2369. extern void *malloc (size_t);
  2370. extern void free (void *);
  2371. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2372. // dprintf is used instead of fprintf to avoid needing to declare
  2373. // FILE and stderr.
  2374. #define debug(...) dprintf (2, __VA_ARGS__)
  2375. #define showlist(...) puts (#__VA_ARGS__)
  2376. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2377. static void
  2378. test_varargs_macros (void)
  2379. {
  2380. int x = 1234;
  2381. int y = 5678;
  2382. debug ("Flag");
  2383. debug ("X = %d\n", x);
  2384. showlist (The first, second, and third items.);
  2385. report (x>y, "x is %d but y is %d", x, y);
  2386. }
  2387. // Check long long types.
  2388. #define BIG64 18446744073709551615ull
  2389. #define BIG32 4294967295ul
  2390. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2391. #if !BIG_OK
  2392. #error "your preprocessor is broken"
  2393. #endif
  2394. #if BIG_OK
  2395. #else
  2396. #error "your preprocessor is broken"
  2397. #endif
  2398. static long long int bignum = -9223372036854775807LL;
  2399. static unsigned long long int ubignum = BIG64;
  2400. struct incomplete_array
  2401. {
  2402. int datasize;
  2403. double data[];
  2404. };
  2405. struct named_init {
  2406. int number;
  2407. const wchar_t *name;
  2408. double average;
  2409. };
  2410. typedef const char *ccp;
  2411. static inline int
  2412. test_restrict (ccp restrict text)
  2413. {
  2414. // Iterate through items via the restricted pointer.
  2415. // Also check for declarations in for loops.
  2416. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2417. continue;
  2418. return 0;
  2419. }
  2420. // Check varargs and va_copy.
  2421. static bool
  2422. test_varargs (const char *format, ...)
  2423. {
  2424. va_list args;
  2425. va_start (args, format);
  2426. va_list args_copy;
  2427. va_copy (args_copy, args);
  2428. const char *str = "";
  2429. int number = 0;
  2430. float fnumber = 0;
  2431. while (*format)
  2432. {
  2433. switch (*format++)
  2434. {
  2435. case '\''s'\'': // string
  2436. str = va_arg (args_copy, const char *);
  2437. break;
  2438. case '\''d'\'': // int
  2439. number = va_arg (args_copy, int);
  2440. break;
  2441. case '\''f'\'': // float
  2442. fnumber = va_arg (args_copy, double);
  2443. break;
  2444. default:
  2445. break;
  2446. }
  2447. }
  2448. va_end (args_copy);
  2449. va_end (args);
  2450. return *str && number && fnumber;
  2451. }
  2452. '
  2453. # Test code for whether the C compiler supports C99 (body of main).
  2454. ac_c_conftest_c99_main='
  2455. // Check bool.
  2456. _Bool success = false;
  2457. success |= (argc != 0);
  2458. // Check restrict.
  2459. if (test_restrict ("String literal") == 0)
  2460. success = true;
  2461. char *restrict newvar = "Another string";
  2462. // Check varargs.
  2463. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2464. test_varargs_macros ();
  2465. // Check flexible array members.
  2466. struct incomplete_array *ia =
  2467. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2468. ia->datasize = 10;
  2469. for (int i = 0; i < ia->datasize; ++i)
  2470. ia->data[i] = i * 1.234;
  2471. // Work around memory leak warnings.
  2472. free (ia);
  2473. // Check named initializers.
  2474. struct named_init ni = {
  2475. .number = 34,
  2476. .name = L"Test wide string",
  2477. .average = 543.34343,
  2478. };
  2479. ni.number = 58;
  2480. int dynamic_array[ni.number];
  2481. dynamic_array[0] = argv[0][0];
  2482. dynamic_array[ni.number - 1] = 543;
  2483. // work around unused variable warnings
  2484. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2485. || dynamic_array[ni.number - 1] != 543);
  2486. '
  2487. # Test code for whether the C compiler supports C11 (global declarations)
  2488. ac_c_conftest_c11_globals='
  2489. /* Does the compiler advertise C11 conformance? */
  2490. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2491. # error "Compiler does not advertise C11 conformance"
  2492. #endif
  2493. // Check _Alignas.
  2494. char _Alignas (double) aligned_as_double;
  2495. char _Alignas (0) no_special_alignment;
  2496. extern char aligned_as_int;
  2497. char _Alignas (0) _Alignas (int) aligned_as_int;
  2498. // Check _Alignof.
  2499. enum
  2500. {
  2501. int_alignment = _Alignof (int),
  2502. int_array_alignment = _Alignof (int[100]),
  2503. char_alignment = _Alignof (char)
  2504. };
  2505. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2506. // Check _Noreturn.
  2507. int _Noreturn does_not_return (void) { for (;;) continue; }
  2508. // Check _Static_assert.
  2509. struct test_static_assert
  2510. {
  2511. int x;
  2512. _Static_assert (sizeof (int) <= sizeof (long int),
  2513. "_Static_assert does not work in struct");
  2514. long int y;
  2515. };
  2516. // Check UTF-8 literals.
  2517. #define u8 syntax error!
  2518. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2519. // Check duplicate typedefs.
  2520. typedef long *long_ptr;
  2521. typedef long int *long_ptr;
  2522. typedef long_ptr long_ptr;
  2523. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2524. struct anonymous
  2525. {
  2526. union {
  2527. struct { int i; int j; };
  2528. struct { int k; long int l; } w;
  2529. };
  2530. int m;
  2531. } v1;
  2532. '
  2533. # Test code for whether the C compiler supports C11 (body of main).
  2534. ac_c_conftest_c11_main='
  2535. _Static_assert ((offsetof (struct anonymous, i)
  2536. == offsetof (struct anonymous, w.k)),
  2537. "Anonymous union alignment botch");
  2538. v1.i = 2;
  2539. v1.w.k = 5;
  2540. ok |= v1.i != 5;
  2541. '
  2542. # Test code for whether the C compiler supports C11 (complete).
  2543. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2544. ${ac_c_conftest_c99_globals}
  2545. ${ac_c_conftest_c11_globals}
  2546. int
  2547. main (int argc, char **argv)
  2548. {
  2549. int ok = 0;
  2550. ${ac_c_conftest_c89_main}
  2551. ${ac_c_conftest_c99_main}
  2552. ${ac_c_conftest_c11_main}
  2553. return ok;
  2554. }
  2555. "
  2556. # Test code for whether the C compiler supports C99 (complete).
  2557. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2558. ${ac_c_conftest_c99_globals}
  2559. int
  2560. main (int argc, char **argv)
  2561. {
  2562. int ok = 0;
  2563. ${ac_c_conftest_c89_main}
  2564. ${ac_c_conftest_c99_main}
  2565. return ok;
  2566. }
  2567. "
  2568. # Test code for whether the C compiler supports C89 (complete).
  2569. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2570. int
  2571. main (int argc, char **argv)
  2572. {
  2573. int ok = 0;
  2574. ${ac_c_conftest_c89_main}
  2575. return ok;
  2576. }
  2577. "
  2578. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2579. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2580. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2581. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2582. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2583. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2584. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2585. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2586. as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
  2587. as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
  2588. # Auxiliary files required by this configure script.
  2589. ac_aux_files="config.guess config.sub ltmain.sh install-sh"
  2590. # Locations in which to look for auxiliary files.
  2591. ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
  2592. # Search for a directory containing all of the required auxiliary files,
  2593. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2594. # If we don't find one directory that contains all the files we need,
  2595. # we report the set of missing files from the *first* directory in
  2596. # $ac_aux_dir_candidates and give up.
  2597. ac_missing_aux_files=""
  2598. ac_first_candidate=:
  2599. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2601. as_found=false
  2602. for as_dir in $ac_aux_dir_candidates
  2603. do
  2604. IFS=$as_save_IFS
  2605. case $as_dir in #(((
  2606. '') as_dir=./ ;;
  2607. */) ;;
  2608. *) as_dir=$as_dir/ ;;
  2609. esac
  2610. as_found=:
  2611. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2612. ac_aux_dir_found=yes
  2613. ac_install_sh=
  2614. for ac_aux in $ac_aux_files
  2615. do
  2616. # As a special case, if "install-sh" is required, that requirement
  2617. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  2618. # and $ac_install_sh is set appropriately for whichever one is found.
  2619. if test x"$ac_aux" = x"install-sh"
  2620. then
  2621. if test -f "${as_dir}install-sh"; then
  2622. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  2623. ac_install_sh="${as_dir}install-sh -c"
  2624. elif test -f "${as_dir}install.sh"; then
  2625. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  2626. ac_install_sh="${as_dir}install.sh -c"
  2627. elif test -f "${as_dir}shtool"; then
  2628. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  2629. ac_install_sh="${as_dir}shtool install -c"
  2630. else
  2631. ac_aux_dir_found=no
  2632. if $ac_first_candidate; then
  2633. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  2634. else
  2635. break
  2636. fi
  2637. fi
  2638. else
  2639. if test -f "${as_dir}${ac_aux}"; then
  2640. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  2641. else
  2642. ac_aux_dir_found=no
  2643. if $ac_first_candidate; then
  2644. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  2645. else
  2646. break
  2647. fi
  2648. fi
  2649. fi
  2650. done
  2651. if test "$ac_aux_dir_found" = yes; then
  2652. ac_aux_dir="$as_dir"
  2653. break
  2654. fi
  2655. ac_first_candidate=false
  2656. as_found=false
  2657. done
  2658. IFS=$as_save_IFS
  2659. if $as_found
  2660. then :
  2661. else case e in #(
  2662. e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
  2663. esac
  2664. fi
  2665. # These three variables are undocumented and unsupported,
  2666. # and are intended to be withdrawn in a future Autoconf release.
  2667. # They can cause serious problems if a builder's source tree is in a directory
  2668. # whose full name contains unusual characters.
  2669. if test -f "${ac_aux_dir}config.guess"; then
  2670. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  2671. fi
  2672. if test -f "${ac_aux_dir}config.sub"; then
  2673. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  2674. fi
  2675. if test -f "$ac_aux_dir/configure"; then
  2676. ac_configure="$SHELL ${ac_aux_dir}configure"
  2677. fi
  2678. # Check that the precious variables saved in the cache have kept the same
  2679. # value.
  2680. ac_cache_corrupted=false
  2681. for ac_var in $ac_precious_vars; do
  2682. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2683. eval ac_new_set=\$ac_env_${ac_var}_set
  2684. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2685. eval ac_new_val=\$ac_env_${ac_var}_value
  2686. case $ac_old_set,$ac_new_set in
  2687. set,)
  2688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
  2689. printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
  2690. ac_cache_corrupted=: ;;
  2691. ,set)
  2692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
  2693. printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
  2694. ac_cache_corrupted=: ;;
  2695. ,);;
  2696. *)
  2697. if test "x$ac_old_val" != "x$ac_new_val"; then
  2698. # differences in whitespace do not lead to failure.
  2699. ac_old_val_w=`echo x $ac_old_val`
  2700. ac_new_val_w=`echo x $ac_new_val`
  2701. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
  2703. printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
  2704. ac_cache_corrupted=:
  2705. else
  2706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
  2707. printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
  2708. eval $ac_var=\$ac_old_val
  2709. fi
  2710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
  2711. printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
  2712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
  2713. printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
  2714. fi;;
  2715. esac
  2716. # Pass precious variables to config.status.
  2717. if test "$ac_new_set" = set; then
  2718. case $ac_new_val in
  2719. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2720. *) ac_arg=$ac_var=$ac_new_val ;;
  2721. esac
  2722. case " $ac_configure_args " in
  2723. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2724. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2725. esac
  2726. fi
  2727. done
  2728. if $ac_cache_corrupted; then
  2729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  2730. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  2731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2732. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  2733. as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
  2734. and start over" "$LINENO" 5
  2735. fi
  2736. ## -------------------- ##
  2737. ## Main body of script. ##
  2738. ## -------------------- ##
  2739. ac_ext=c
  2740. ac_cpp='$CPP $CPPFLAGS'
  2741. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2742. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2743. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2744. ac_config_headers="$ac_config_headers config.h"
  2745. # Check whether --with-libs was given.
  2746. if test ${with_libs+y}
  2747. then :
  2748. withval=$with_libs; case $with_libs in
  2749. yes|no) as_fn_error $? "--with-libs must be passed a directory argument" "$LINENO" 5 ;;
  2750. *) ne_save_IFS=$IFS; IFS=:
  2751. for dir in $with_libs; do
  2752. ne_add_CPPFLAGS="$ne_add_CPPFLAGS -I${dir}/include"
  2753. ne_add_LDFLAGS="$ne_add_LDFLAGS -L${dir}/lib"
  2754. ne_add_PATH="${ne_add_PATH}${dir}/bin:"
  2755. PKG_CONFIG_PATH=${PKG_CONFIG_PATH}${PKG_CONFIG_PATH+:}${dir}/lib/pkgconfig
  2756. done
  2757. IFS=$ne_save_IFS
  2758. CPPFLAGS="${ne_add_CPPFLAGS} $CPPFLAGS"
  2759. LDFLAGS="${ne_add_LDFLAGS} $LDFLAGS"
  2760. PATH=${ne_add_PATH}$PATH
  2761. export PKG_CONFIG_PATH ;;
  2762. esac
  2763. fi
  2764. # Pass through initial LDFLAGS verbatim to neon-config, so that extra
  2765. # libraries which are detected (e.g. OpenSSL) can still be found when
  2766. # building using the --libs output of neon-config.
  2767. user_LDFLAGS=$LDFLAGS
  2768. # By default, allow 'make install' to work.
  2769. ALLOW_INSTALL=yes
  2770. printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
  2771. printf "%s\n" "#define NEON_IS_LIBRARY 1" >>confdefs.h
  2772. # Find a good install program. We prefer a C program (faster),
  2773. # so one script is as good as another. But avoid the broken or
  2774. # incompatible versions:
  2775. # SysV /etc/install, /usr/sbin/install
  2776. # SunOS /usr/etc/install
  2777. # IRIX /sbin/install
  2778. # AIX /bin/install
  2779. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2780. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2781. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2782. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2783. # OS/2's system install, which has a completely different semantic
  2784. # ./install, which can be erroneously created by make from ./install.sh.
  2785. # Reject install programs that cannot install multiple files.
  2786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2787. printf %s "checking for a BSD-compatible install... " >&6; }
  2788. if test -z "$INSTALL"; then
  2789. if test ${ac_cv_path_install+y}
  2790. then :
  2791. printf %s "(cached) " >&6
  2792. else case e in #(
  2793. e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2794. for as_dir in $PATH
  2795. do
  2796. IFS=$as_save_IFS
  2797. case $as_dir in #(((
  2798. '') as_dir=./ ;;
  2799. */) ;;
  2800. *) as_dir=$as_dir/ ;;
  2801. esac
  2802. # Account for fact that we put trailing slashes in our PATH walk.
  2803. case $as_dir in #((
  2804. ./ | /[cC]/* | \
  2805. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2806. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2807. /usr/ucb/* ) ;;
  2808. *)
  2809. # OSF1 and SCO ODT 3.0 have their own names for install.
  2810. # Don't use installbsd from OSF since it installs stuff as root
  2811. # by default.
  2812. for ac_prog in ginstall scoinst install; do
  2813. for ac_exec_ext in '' $ac_executable_extensions; do
  2814. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  2815. if test $ac_prog = install &&
  2816. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2817. # AIX install. It has an incompatible calling convention.
  2818. :
  2819. elif test $ac_prog = install &&
  2820. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2821. # program-specific install script used by HP pwplus--don't use.
  2822. :
  2823. else
  2824. rm -rf conftest.one conftest.two conftest.dir
  2825. echo one > conftest.one
  2826. echo two > conftest.two
  2827. mkdir conftest.dir
  2828. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  2829. test -s conftest.one && test -s conftest.two &&
  2830. test -s conftest.dir/conftest.one &&
  2831. test -s conftest.dir/conftest.two
  2832. then
  2833. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  2834. break 3
  2835. fi
  2836. fi
  2837. fi
  2838. done
  2839. done
  2840. ;;
  2841. esac
  2842. done
  2843. IFS=$as_save_IFS
  2844. rm -rf conftest.one conftest.two conftest.dir
  2845. ;;
  2846. esac
  2847. fi
  2848. if test ${ac_cv_path_install+y}; then
  2849. INSTALL=$ac_cv_path_install
  2850. else
  2851. # As a last resort, use the slow shell script. Don't cache a
  2852. # value for INSTALL within a source directory, because that will
  2853. # break other packages using the cache if that directory is
  2854. # removed, or if the value is a relative name.
  2855. INSTALL=$ac_install_sh
  2856. fi
  2857. fi
  2858. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2859. printf "%s\n" "$INSTALL" >&6; }
  2860. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2861. # It thinks the first close brace ends the variable substitution.
  2862. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2863. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2864. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2865. # Check whether --enable-webdav was given.
  2866. if test ${enable_webdav+y}
  2867. then :
  2868. enableval=$enable_webdav;
  2869. fi
  2870. if test "$enable_webdav" = "no"; then
  2871. neon_no_webdav=yes
  2872. neon_no_acl=yes
  2873. NEON_NEED_XML_PARSER=no
  2874. neon_xml_parser_message="none needed"
  2875. else
  2876. # Yes, we do need an XML parser. The _BUNDLED macros handle
  2877. # this normally.
  2878. NEON_NEED_XML_PARSER=yes
  2879. fi
  2880. # The bundled macros also set this, which makes sure we recurse
  2881. # into the 'src' directory.
  2882. NEON_BUILD_BUNDLED=yes
  2883. # Define NEON_VERSION etc and make the appropriate substitutions.
  2884. # Define the current versions.
  2885. NE_VERSION_MAJOR=0
  2886. NE_VERSION_MINOR=35
  2887. NE_VERSION_PATCH=0
  2888. NE_VERSION_TAG=
  2889. # 0.35.x is backwards-compatible to 0.27.x, so AGE=8
  2890. NE_LIBTOOL_VERSINFO="35:${NE_VERSION_PATCH}:8"
  2891. NEON_VERSION="${NE_VERSION_MAJOR}.${NE_VERSION_MINOR}.${NE_VERSION_PATCH}${NE_VERSION_TAG}"
  2892. printf "%s\n" "#define NEON_VERSION \"${NEON_VERSION}\"" >>confdefs.h
  2893. printf "%s\n" "#define NE_VERSION_MAJOR (${NE_VERSION_MAJOR})" >>confdefs.h
  2894. printf "%s\n" "#define NE_VERSION_MINOR (${NE_VERSION_MINOR})" >>confdefs.h
  2895. printf "%s\n" "#define NE_VERSION_PATCH (${NE_VERSION_PATCH})" >>confdefs.h
  2896. ac_ext=c
  2897. ac_cpp='$CPP $CPPFLAGS'
  2898. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2899. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2900. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2901. if test -n "$ac_tool_prefix"; then
  2902. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2903. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2905. printf %s "checking for $ac_word... " >&6; }
  2906. if test ${ac_cv_prog_CC+y}
  2907. then :
  2908. printf %s "(cached) " >&6
  2909. else case e in #(
  2910. e) if test -n "$CC"; then
  2911. ac_cv_prog_CC="$CC" # Let the user override the test.
  2912. else
  2913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2914. for as_dir in $PATH
  2915. do
  2916. IFS=$as_save_IFS
  2917. case $as_dir in #(((
  2918. '') as_dir=./ ;;
  2919. */) ;;
  2920. *) as_dir=$as_dir/ ;;
  2921. esac
  2922. for ac_exec_ext in '' $ac_executable_extensions; do
  2923. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2924. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2925. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2926. break 2
  2927. fi
  2928. done
  2929. done
  2930. IFS=$as_save_IFS
  2931. fi ;;
  2932. esac
  2933. fi
  2934. CC=$ac_cv_prog_CC
  2935. if test -n "$CC"; then
  2936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2937. printf "%s\n" "$CC" >&6; }
  2938. else
  2939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2940. printf "%s\n" "no" >&6; }
  2941. fi
  2942. fi
  2943. if test -z "$ac_cv_prog_CC"; then
  2944. ac_ct_CC=$CC
  2945. # Extract the first word of "gcc", so it can be a program name with args.
  2946. set dummy gcc; ac_word=$2
  2947. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2948. printf %s "checking for $ac_word... " >&6; }
  2949. if test ${ac_cv_prog_ac_ct_CC+y}
  2950. then :
  2951. printf %s "(cached) " >&6
  2952. else case e in #(
  2953. e) if test -n "$ac_ct_CC"; then
  2954. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2955. else
  2956. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2957. for as_dir in $PATH
  2958. do
  2959. IFS=$as_save_IFS
  2960. case $as_dir in #(((
  2961. '') as_dir=./ ;;
  2962. */) ;;
  2963. *) as_dir=$as_dir/ ;;
  2964. esac
  2965. for ac_exec_ext in '' $ac_executable_extensions; do
  2966. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2967. ac_cv_prog_ac_ct_CC="gcc"
  2968. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2969. break 2
  2970. fi
  2971. done
  2972. done
  2973. IFS=$as_save_IFS
  2974. fi ;;
  2975. esac
  2976. fi
  2977. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2978. if test -n "$ac_ct_CC"; then
  2979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2980. printf "%s\n" "$ac_ct_CC" >&6; }
  2981. else
  2982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2983. printf "%s\n" "no" >&6; }
  2984. fi
  2985. if test "x$ac_ct_CC" = x; then
  2986. CC=""
  2987. else
  2988. case $cross_compiling:$ac_tool_warned in
  2989. yes:)
  2990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2991. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2992. ac_tool_warned=yes ;;
  2993. esac
  2994. CC=$ac_ct_CC
  2995. fi
  2996. else
  2997. CC="$ac_cv_prog_CC"
  2998. fi
  2999. if test -z "$CC"; then
  3000. if test -n "$ac_tool_prefix"; then
  3001. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3002. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3004. printf %s "checking for $ac_word... " >&6; }
  3005. if test ${ac_cv_prog_CC+y}
  3006. then :
  3007. printf %s "(cached) " >&6
  3008. else case e in #(
  3009. e) if test -n "$CC"; then
  3010. ac_cv_prog_CC="$CC" # Let the user override the test.
  3011. else
  3012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3013. for as_dir in $PATH
  3014. do
  3015. IFS=$as_save_IFS
  3016. case $as_dir in #(((
  3017. '') as_dir=./ ;;
  3018. */) ;;
  3019. *) as_dir=$as_dir/ ;;
  3020. esac
  3021. for ac_exec_ext in '' $ac_executable_extensions; do
  3022. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3023. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3024. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3025. break 2
  3026. fi
  3027. done
  3028. done
  3029. IFS=$as_save_IFS
  3030. fi ;;
  3031. esac
  3032. fi
  3033. CC=$ac_cv_prog_CC
  3034. if test -n "$CC"; then
  3035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3036. printf "%s\n" "$CC" >&6; }
  3037. else
  3038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3039. printf "%s\n" "no" >&6; }
  3040. fi
  3041. fi
  3042. fi
  3043. if test -z "$CC"; then
  3044. # Extract the first word of "cc", so it can be a program name with args.
  3045. set dummy cc; ac_word=$2
  3046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3047. printf %s "checking for $ac_word... " >&6; }
  3048. if test ${ac_cv_prog_CC+y}
  3049. then :
  3050. printf %s "(cached) " >&6
  3051. else case e in #(
  3052. e) if test -n "$CC"; then
  3053. ac_cv_prog_CC="$CC" # Let the user override the test.
  3054. else
  3055. ac_prog_rejected=no
  3056. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3057. for as_dir in $PATH
  3058. do
  3059. IFS=$as_save_IFS
  3060. case $as_dir in #(((
  3061. '') as_dir=./ ;;
  3062. */) ;;
  3063. *) as_dir=$as_dir/ ;;
  3064. esac
  3065. for ac_exec_ext in '' $ac_executable_extensions; do
  3066. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3067. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3068. ac_prog_rejected=yes
  3069. continue
  3070. fi
  3071. ac_cv_prog_CC="cc"
  3072. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3073. break 2
  3074. fi
  3075. done
  3076. done
  3077. IFS=$as_save_IFS
  3078. if test $ac_prog_rejected = yes; then
  3079. # We found a bogon in the path, so make sure we never use it.
  3080. set dummy $ac_cv_prog_CC
  3081. shift
  3082. if test $# != 0; then
  3083. # We chose a different compiler from the bogus one.
  3084. # However, it has the same basename, so the bogon will be chosen
  3085. # first if we set CC to just the basename; use the full file name.
  3086. shift
  3087. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3088. fi
  3089. fi
  3090. fi ;;
  3091. esac
  3092. fi
  3093. CC=$ac_cv_prog_CC
  3094. if test -n "$CC"; then
  3095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3096. printf "%s\n" "$CC" >&6; }
  3097. else
  3098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3099. printf "%s\n" "no" >&6; }
  3100. fi
  3101. fi
  3102. if test -z "$CC"; then
  3103. if test -n "$ac_tool_prefix"; then
  3104. for ac_prog in cl.exe
  3105. do
  3106. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3107. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3109. printf %s "checking for $ac_word... " >&6; }
  3110. if test ${ac_cv_prog_CC+y}
  3111. then :
  3112. printf %s "(cached) " >&6
  3113. else case e in #(
  3114. e) if test -n "$CC"; then
  3115. ac_cv_prog_CC="$CC" # Let the user override the test.
  3116. else
  3117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3118. for as_dir in $PATH
  3119. do
  3120. IFS=$as_save_IFS
  3121. case $as_dir in #(((
  3122. '') as_dir=./ ;;
  3123. */) ;;
  3124. *) as_dir=$as_dir/ ;;
  3125. esac
  3126. for ac_exec_ext in '' $ac_executable_extensions; do
  3127. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3128. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3129. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3130. break 2
  3131. fi
  3132. done
  3133. done
  3134. IFS=$as_save_IFS
  3135. fi ;;
  3136. esac
  3137. fi
  3138. CC=$ac_cv_prog_CC
  3139. if test -n "$CC"; then
  3140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3141. printf "%s\n" "$CC" >&6; }
  3142. else
  3143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3144. printf "%s\n" "no" >&6; }
  3145. fi
  3146. test -n "$CC" && break
  3147. done
  3148. fi
  3149. if test -z "$CC"; then
  3150. ac_ct_CC=$CC
  3151. for ac_prog in cl.exe
  3152. do
  3153. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3154. set dummy $ac_prog; ac_word=$2
  3155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3156. printf %s "checking for $ac_word... " >&6; }
  3157. if test ${ac_cv_prog_ac_ct_CC+y}
  3158. then :
  3159. printf %s "(cached) " >&6
  3160. else case e in #(
  3161. e) if test -n "$ac_ct_CC"; then
  3162. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3163. else
  3164. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3165. for as_dir in $PATH
  3166. do
  3167. IFS=$as_save_IFS
  3168. case $as_dir in #(((
  3169. '') as_dir=./ ;;
  3170. */) ;;
  3171. *) as_dir=$as_dir/ ;;
  3172. esac
  3173. for ac_exec_ext in '' $ac_executable_extensions; do
  3174. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3175. ac_cv_prog_ac_ct_CC="$ac_prog"
  3176. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3177. break 2
  3178. fi
  3179. done
  3180. done
  3181. IFS=$as_save_IFS
  3182. fi ;;
  3183. esac
  3184. fi
  3185. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3186. if test -n "$ac_ct_CC"; then
  3187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3188. printf "%s\n" "$ac_ct_CC" >&6; }
  3189. else
  3190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3191. printf "%s\n" "no" >&6; }
  3192. fi
  3193. test -n "$ac_ct_CC" && break
  3194. done
  3195. if test "x$ac_ct_CC" = x; then
  3196. CC=""
  3197. else
  3198. case $cross_compiling:$ac_tool_warned in
  3199. yes:)
  3200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3201. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3202. ac_tool_warned=yes ;;
  3203. esac
  3204. CC=$ac_ct_CC
  3205. fi
  3206. fi
  3207. fi
  3208. if test -z "$CC"; then
  3209. if test -n "$ac_tool_prefix"; then
  3210. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3211. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3212. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3213. printf %s "checking for $ac_word... " >&6; }
  3214. if test ${ac_cv_prog_CC+y}
  3215. then :
  3216. printf %s "(cached) " >&6
  3217. else case e in #(
  3218. e) if test -n "$CC"; then
  3219. ac_cv_prog_CC="$CC" # Let the user override the test.
  3220. else
  3221. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3222. for as_dir in $PATH
  3223. do
  3224. IFS=$as_save_IFS
  3225. case $as_dir in #(((
  3226. '') as_dir=./ ;;
  3227. */) ;;
  3228. *) as_dir=$as_dir/ ;;
  3229. esac
  3230. for ac_exec_ext in '' $ac_executable_extensions; do
  3231. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3232. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3233. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3234. break 2
  3235. fi
  3236. done
  3237. done
  3238. IFS=$as_save_IFS
  3239. fi ;;
  3240. esac
  3241. fi
  3242. CC=$ac_cv_prog_CC
  3243. if test -n "$CC"; then
  3244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3245. printf "%s\n" "$CC" >&6; }
  3246. else
  3247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3248. printf "%s\n" "no" >&6; }
  3249. fi
  3250. fi
  3251. if test -z "$ac_cv_prog_CC"; then
  3252. ac_ct_CC=$CC
  3253. # Extract the first word of "clang", so it can be a program name with args.
  3254. set dummy clang; ac_word=$2
  3255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3256. printf %s "checking for $ac_word... " >&6; }
  3257. if test ${ac_cv_prog_ac_ct_CC+y}
  3258. then :
  3259. printf %s "(cached) " >&6
  3260. else case e in #(
  3261. e) if test -n "$ac_ct_CC"; then
  3262. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3263. else
  3264. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3265. for as_dir in $PATH
  3266. do
  3267. IFS=$as_save_IFS
  3268. case $as_dir in #(((
  3269. '') as_dir=./ ;;
  3270. */) ;;
  3271. *) as_dir=$as_dir/ ;;
  3272. esac
  3273. for ac_exec_ext in '' $ac_executable_extensions; do
  3274. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3275. ac_cv_prog_ac_ct_CC="clang"
  3276. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3277. break 2
  3278. fi
  3279. done
  3280. done
  3281. IFS=$as_save_IFS
  3282. fi ;;
  3283. esac
  3284. fi
  3285. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3286. if test -n "$ac_ct_CC"; then
  3287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3288. printf "%s\n" "$ac_ct_CC" >&6; }
  3289. else
  3290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3291. printf "%s\n" "no" >&6; }
  3292. fi
  3293. if test "x$ac_ct_CC" = x; then
  3294. CC=""
  3295. else
  3296. case $cross_compiling:$ac_tool_warned in
  3297. yes:)
  3298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3299. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3300. ac_tool_warned=yes ;;
  3301. esac
  3302. CC=$ac_ct_CC
  3303. fi
  3304. else
  3305. CC="$ac_cv_prog_CC"
  3306. fi
  3307. fi
  3308. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  3309. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  3310. as_fn_error $? "no acceptable C compiler found in \$PATH
  3311. See 'config.log' for more details" "$LINENO" 5; }
  3312. # Provide some information about the compiler.
  3313. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3314. set X $ac_compile
  3315. ac_compiler=$2
  3316. for ac_option in --version -v -V -qversion -version; do
  3317. { { ac_try="$ac_compiler $ac_option >&5"
  3318. case "(($ac_try" in
  3319. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3320. *) ac_try_echo=$ac_try;;
  3321. esac
  3322. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3323. printf "%s\n" "$ac_try_echo"; } >&5
  3324. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3325. ac_status=$?
  3326. if test -s conftest.err; then
  3327. sed '10a\
  3328. ... rest of stderr output deleted ...
  3329. 10q' conftest.err >conftest.er1
  3330. cat conftest.er1 >&5
  3331. fi
  3332. rm -f conftest.er1 conftest.err
  3333. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3334. test $ac_status = 0; }
  3335. done
  3336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3337. /* end confdefs.h. */
  3338. int
  3339. main (void)
  3340. {
  3341. ;
  3342. return 0;
  3343. }
  3344. _ACEOF
  3345. ac_clean_files_save=$ac_clean_files
  3346. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3347. # Try to create an executable without -o first, disregard a.out.
  3348. # It will help us diagnose broken compilers, and finding out an intuition
  3349. # of exeext.
  3350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3351. printf %s "checking whether the C compiler works... " >&6; }
  3352. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3353. # The possible output files:
  3354. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3355. ac_rmfiles=
  3356. for ac_file in $ac_files
  3357. do
  3358. case $ac_file in
  3359. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3360. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3361. esac
  3362. done
  3363. rm -f $ac_rmfiles
  3364. if { { ac_try="$ac_link_default"
  3365. case "(($ac_try" in
  3366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3367. *) ac_try_echo=$ac_try;;
  3368. esac
  3369. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3370. printf "%s\n" "$ac_try_echo"; } >&5
  3371. (eval "$ac_link_default") 2>&5
  3372. ac_status=$?
  3373. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3374. test $ac_status = 0; }
  3375. then :
  3376. # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
  3377. # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
  3378. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3379. # so that the user can short-circuit this test for compilers unknown to
  3380. # Autoconf.
  3381. for ac_file in $ac_files ''
  3382. do
  3383. test -f "$ac_file" || continue
  3384. case $ac_file in
  3385. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3386. ;;
  3387. [ab].out )
  3388. # We found the default executable, but exeext='' is most
  3389. # certainly right.
  3390. break;;
  3391. *.* )
  3392. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3393. then :; else
  3394. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3395. fi
  3396. # We set ac_cv_exeext here because the later test for it is not
  3397. # safe: cross compilers may not add the suffix if given an '-o'
  3398. # argument, so we may need to know it at that point already.
  3399. # Even if this section looks crufty: it has the advantage of
  3400. # actually working.
  3401. break;;
  3402. * )
  3403. break;;
  3404. esac
  3405. done
  3406. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3407. else case e in #(
  3408. e) ac_file='' ;;
  3409. esac
  3410. fi
  3411. if test -z "$ac_file"
  3412. then :
  3413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3414. printf "%s\n" "no" >&6; }
  3415. printf "%s\n" "$as_me: failed program was:" >&5
  3416. sed 's/^/| /' conftest.$ac_ext >&5
  3417. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  3418. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  3419. as_fn_error 77 "C compiler cannot create executables
  3420. See 'config.log' for more details" "$LINENO" 5; }
  3421. else case e in #(
  3422. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3423. printf "%s\n" "yes" >&6; } ;;
  3424. esac
  3425. fi
  3426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3427. printf %s "checking for C compiler default output file name... " >&6; }
  3428. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3429. printf "%s\n" "$ac_file" >&6; }
  3430. ac_exeext=$ac_cv_exeext
  3431. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3432. ac_clean_files=$ac_clean_files_save
  3433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3434. printf %s "checking for suffix of executables... " >&6; }
  3435. if { { ac_try="$ac_link"
  3436. case "(($ac_try" in
  3437. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3438. *) ac_try_echo=$ac_try;;
  3439. esac
  3440. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3441. printf "%s\n" "$ac_try_echo"; } >&5
  3442. (eval "$ac_link") 2>&5
  3443. ac_status=$?
  3444. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3445. test $ac_status = 0; }
  3446. then :
  3447. # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
  3448. # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
  3449. # work properly (i.e., refer to 'conftest.exe'), while it won't with
  3450. # 'rm'.
  3451. for ac_file in conftest.exe conftest conftest.*; do
  3452. test -f "$ac_file" || continue
  3453. case $ac_file in
  3454. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3455. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3456. break;;
  3457. * ) break;;
  3458. esac
  3459. done
  3460. else case e in #(
  3461. e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  3462. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  3463. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3464. See 'config.log' for more details" "$LINENO" 5; } ;;
  3465. esac
  3466. fi
  3467. rm -f conftest conftest$ac_cv_exeext
  3468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3469. printf "%s\n" "$ac_cv_exeext" >&6; }
  3470. rm -f conftest.$ac_ext
  3471. EXEEXT=$ac_cv_exeext
  3472. ac_exeext=$EXEEXT
  3473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3474. /* end confdefs.h. */
  3475. #include <stdio.h>
  3476. int
  3477. main (void)
  3478. {
  3479. FILE *f = fopen ("conftest.out", "w");
  3480. if (!f)
  3481. return 1;
  3482. return ferror (f) || fclose (f) != 0;
  3483. ;
  3484. return 0;
  3485. }
  3486. _ACEOF
  3487. ac_clean_files="$ac_clean_files conftest.out"
  3488. # Check that the compiler produces executables we can run. If not, either
  3489. # the compiler is broken, or we cross compile.
  3490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3491. printf %s "checking whether we are cross compiling... " >&6; }
  3492. if test "$cross_compiling" != yes; then
  3493. { { ac_try="$ac_link"
  3494. case "(($ac_try" in
  3495. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3496. *) ac_try_echo=$ac_try;;
  3497. esac
  3498. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3499. printf "%s\n" "$ac_try_echo"; } >&5
  3500. (eval "$ac_link") 2>&5
  3501. ac_status=$?
  3502. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3503. test $ac_status = 0; }
  3504. if { ac_try='./conftest$ac_cv_exeext'
  3505. { { case "(($ac_try" in
  3506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3507. *) ac_try_echo=$ac_try;;
  3508. esac
  3509. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3510. printf "%s\n" "$ac_try_echo"; } >&5
  3511. (eval "$ac_try") 2>&5
  3512. ac_status=$?
  3513. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3514. test $ac_status = 0; }; }; then
  3515. cross_compiling=no
  3516. else
  3517. if test "$cross_compiling" = maybe; then
  3518. cross_compiling=yes
  3519. else
  3520. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  3521. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  3522. as_fn_error 77 "cannot run C compiled programs.
  3523. If you meant to cross compile, use '--host'.
  3524. See 'config.log' for more details" "$LINENO" 5; }
  3525. fi
  3526. fi
  3527. fi
  3528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3529. printf "%s\n" "$cross_compiling" >&6; }
  3530. rm -f conftest.$ac_ext conftest$ac_cv_exeext \
  3531. conftest.o conftest.obj conftest.out
  3532. ac_clean_files=$ac_clean_files_save
  3533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3534. printf %s "checking for suffix of object files... " >&6; }
  3535. if test ${ac_cv_objext+y}
  3536. then :
  3537. printf %s "(cached) " >&6
  3538. else case e in #(
  3539. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3540. /* end confdefs.h. */
  3541. int
  3542. main (void)
  3543. {
  3544. ;
  3545. return 0;
  3546. }
  3547. _ACEOF
  3548. rm -f conftest.o conftest.obj
  3549. if { { ac_try="$ac_compile"
  3550. case "(($ac_try" in
  3551. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3552. *) ac_try_echo=$ac_try;;
  3553. esac
  3554. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3555. printf "%s\n" "$ac_try_echo"; } >&5
  3556. (eval "$ac_compile") 2>&5
  3557. ac_status=$?
  3558. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3559. test $ac_status = 0; }
  3560. then :
  3561. for ac_file in conftest.o conftest.obj conftest.*; do
  3562. test -f "$ac_file" || continue;
  3563. case $ac_file in
  3564. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3565. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3566. break;;
  3567. esac
  3568. done
  3569. else case e in #(
  3570. e) printf "%s\n" "$as_me: failed program was:" >&5
  3571. sed 's/^/| /' conftest.$ac_ext >&5
  3572. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  3573. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  3574. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3575. See 'config.log' for more details" "$LINENO" 5; } ;;
  3576. esac
  3577. fi
  3578. rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
  3579. esac
  3580. fi
  3581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3582. printf "%s\n" "$ac_cv_objext" >&6; }
  3583. OBJEXT=$ac_cv_objext
  3584. ac_objext=$OBJEXT
  3585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  3586. printf %s "checking whether the compiler supports GNU C... " >&6; }
  3587. if test ${ac_cv_c_compiler_gnu+y}
  3588. then :
  3589. printf %s "(cached) " >&6
  3590. else case e in #(
  3591. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3592. /* end confdefs.h. */
  3593. int
  3594. main (void)
  3595. {
  3596. #ifndef __GNUC__
  3597. choke me
  3598. #endif
  3599. ;
  3600. return 0;
  3601. }
  3602. _ACEOF
  3603. if ac_fn_c_try_compile "$LINENO"
  3604. then :
  3605. ac_compiler_gnu=yes
  3606. else case e in #(
  3607. e) ac_compiler_gnu=no ;;
  3608. esac
  3609. fi
  3610. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3611. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3612. ;;
  3613. esac
  3614. fi
  3615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3616. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  3617. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3618. if test $ac_compiler_gnu = yes; then
  3619. GCC=yes
  3620. else
  3621. GCC=
  3622. fi
  3623. ac_test_CFLAGS=${CFLAGS+y}
  3624. ac_save_CFLAGS=$CFLAGS
  3625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3626. printf %s "checking whether $CC accepts -g... " >&6; }
  3627. if test ${ac_cv_prog_cc_g+y}
  3628. then :
  3629. printf %s "(cached) " >&6
  3630. else case e in #(
  3631. e) ac_save_c_werror_flag=$ac_c_werror_flag
  3632. ac_c_werror_flag=yes
  3633. ac_cv_prog_cc_g=no
  3634. CFLAGS="-g"
  3635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3636. /* end confdefs.h. */
  3637. int
  3638. main (void)
  3639. {
  3640. ;
  3641. return 0;
  3642. }
  3643. _ACEOF
  3644. if ac_fn_c_try_compile "$LINENO"
  3645. then :
  3646. ac_cv_prog_cc_g=yes
  3647. else case e in #(
  3648. e) CFLAGS=""
  3649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3650. /* end confdefs.h. */
  3651. int
  3652. main (void)
  3653. {
  3654. ;
  3655. return 0;
  3656. }
  3657. _ACEOF
  3658. if ac_fn_c_try_compile "$LINENO"
  3659. then :
  3660. else case e in #(
  3661. e) ac_c_werror_flag=$ac_save_c_werror_flag
  3662. CFLAGS="-g"
  3663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3664. /* end confdefs.h. */
  3665. int
  3666. main (void)
  3667. {
  3668. ;
  3669. return 0;
  3670. }
  3671. _ACEOF
  3672. if ac_fn_c_try_compile "$LINENO"
  3673. then :
  3674. ac_cv_prog_cc_g=yes
  3675. fi
  3676. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  3677. esac
  3678. fi
  3679. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  3680. esac
  3681. fi
  3682. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3683. ac_c_werror_flag=$ac_save_c_werror_flag ;;
  3684. esac
  3685. fi
  3686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3687. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  3688. if test $ac_test_CFLAGS; then
  3689. CFLAGS=$ac_save_CFLAGS
  3690. elif test $ac_cv_prog_cc_g = yes; then
  3691. if test "$GCC" = yes; then
  3692. CFLAGS="-g -O2"
  3693. else
  3694. CFLAGS="-g"
  3695. fi
  3696. else
  3697. if test "$GCC" = yes; then
  3698. CFLAGS="-O2"
  3699. else
  3700. CFLAGS=
  3701. fi
  3702. fi
  3703. ac_prog_cc_stdc=no
  3704. if test x$ac_prog_cc_stdc = xno
  3705. then :
  3706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  3707. printf %s "checking for $CC option to enable C11 features... " >&6; }
  3708. if test ${ac_cv_prog_cc_c11+y}
  3709. then :
  3710. printf %s "(cached) " >&6
  3711. else case e in #(
  3712. e) ac_cv_prog_cc_c11=no
  3713. ac_save_CC=$CC
  3714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3715. /* end confdefs.h. */
  3716. $ac_c_conftest_c11_program
  3717. _ACEOF
  3718. for ac_arg in '' -std=gnu11
  3719. do
  3720. CC="$ac_save_CC $ac_arg"
  3721. if ac_fn_c_try_compile "$LINENO"
  3722. then :
  3723. ac_cv_prog_cc_c11=$ac_arg
  3724. fi
  3725. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3726. test "x$ac_cv_prog_cc_c11" != "xno" && break
  3727. done
  3728. rm -f conftest.$ac_ext
  3729. CC=$ac_save_CC ;;
  3730. esac
  3731. fi
  3732. if test "x$ac_cv_prog_cc_c11" = xno
  3733. then :
  3734. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3735. printf "%s\n" "unsupported" >&6; }
  3736. else case e in #(
  3737. e) if test "x$ac_cv_prog_cc_c11" = x
  3738. then :
  3739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3740. printf "%s\n" "none needed" >&6; }
  3741. else case e in #(
  3742. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  3743. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  3744. CC="$CC $ac_cv_prog_cc_c11" ;;
  3745. esac
  3746. fi
  3747. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  3748. ac_prog_cc_stdc=c11 ;;
  3749. esac
  3750. fi
  3751. fi
  3752. if test x$ac_prog_cc_stdc = xno
  3753. then :
  3754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  3755. printf %s "checking for $CC option to enable C99 features... " >&6; }
  3756. if test ${ac_cv_prog_cc_c99+y}
  3757. then :
  3758. printf %s "(cached) " >&6
  3759. else case e in #(
  3760. e) ac_cv_prog_cc_c99=no
  3761. ac_save_CC=$CC
  3762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3763. /* end confdefs.h. */
  3764. $ac_c_conftest_c99_program
  3765. _ACEOF
  3766. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  3767. do
  3768. CC="$ac_save_CC $ac_arg"
  3769. if ac_fn_c_try_compile "$LINENO"
  3770. then :
  3771. ac_cv_prog_cc_c99=$ac_arg
  3772. fi
  3773. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3774. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3775. done
  3776. rm -f conftest.$ac_ext
  3777. CC=$ac_save_CC ;;
  3778. esac
  3779. fi
  3780. if test "x$ac_cv_prog_cc_c99" = xno
  3781. then :
  3782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3783. printf "%s\n" "unsupported" >&6; }
  3784. else case e in #(
  3785. e) if test "x$ac_cv_prog_cc_c99" = x
  3786. then :
  3787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3788. printf "%s\n" "none needed" >&6; }
  3789. else case e in #(
  3790. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3791. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  3792. CC="$CC $ac_cv_prog_cc_c99" ;;
  3793. esac
  3794. fi
  3795. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  3796. ac_prog_cc_stdc=c99 ;;
  3797. esac
  3798. fi
  3799. fi
  3800. if test x$ac_prog_cc_stdc = xno
  3801. then :
  3802. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  3803. printf %s "checking for $CC option to enable C89 features... " >&6; }
  3804. if test ${ac_cv_prog_cc_c89+y}
  3805. then :
  3806. printf %s "(cached) " >&6
  3807. else case e in #(
  3808. e) ac_cv_prog_cc_c89=no
  3809. ac_save_CC=$CC
  3810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3811. /* end confdefs.h. */
  3812. $ac_c_conftest_c89_program
  3813. _ACEOF
  3814. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3815. do
  3816. CC="$ac_save_CC $ac_arg"
  3817. if ac_fn_c_try_compile "$LINENO"
  3818. then :
  3819. ac_cv_prog_cc_c89=$ac_arg
  3820. fi
  3821. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3822. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3823. done
  3824. rm -f conftest.$ac_ext
  3825. CC=$ac_save_CC ;;
  3826. esac
  3827. fi
  3828. if test "x$ac_cv_prog_cc_c89" = xno
  3829. then :
  3830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3831. printf "%s\n" "unsupported" >&6; }
  3832. else case e in #(
  3833. e) if test "x$ac_cv_prog_cc_c89" = x
  3834. then :
  3835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3836. printf "%s\n" "none needed" >&6; }
  3837. else case e in #(
  3838. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3839. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  3840. CC="$CC $ac_cv_prog_cc_c89" ;;
  3841. esac
  3842. fi
  3843. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  3844. ac_prog_cc_stdc=c89 ;;
  3845. esac
  3846. fi
  3847. fi
  3848. ac_ext=c
  3849. ac_cpp='$CPP $CPPFLAGS'
  3850. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3851. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3852. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3853. ac_header= ac_cache=
  3854. for ac_item in $ac_header_c_list
  3855. do
  3856. if test $ac_cache; then
  3857. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  3858. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  3859. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  3860. fi
  3861. ac_header= ac_cache=
  3862. elif test $ac_header; then
  3863. ac_cache=$ac_item
  3864. else
  3865. ac_header=$ac_item
  3866. fi
  3867. done
  3868. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  3869. then :
  3870. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  3871. fi
  3872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3873. printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3874. if test ${ac_cv_safe_to_define___extensions__+y}
  3875. then :
  3876. printf %s "(cached) " >&6
  3877. else case e in #(
  3878. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3879. /* end confdefs.h. */
  3880. # define __EXTENSIONS__ 1
  3881. $ac_includes_default
  3882. int
  3883. main (void)
  3884. {
  3885. ;
  3886. return 0;
  3887. }
  3888. _ACEOF
  3889. if ac_fn_c_try_compile "$LINENO"
  3890. then :
  3891. ac_cv_safe_to_define___extensions__=yes
  3892. else case e in #(
  3893. e) ac_cv_safe_to_define___extensions__=no ;;
  3894. esac
  3895. fi
  3896. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  3897. esac
  3898. fi
  3899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3900. printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
  3901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
  3902. printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
  3903. if test ${ac_cv_should_define__xopen_source+y}
  3904. then :
  3905. printf %s "(cached) " >&6
  3906. else case e in #(
  3907. e) ac_cv_should_define__xopen_source=no
  3908. if test $ac_cv_header_wchar_h = yes
  3909. then :
  3910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3911. /* end confdefs.h. */
  3912. #include <wchar.h>
  3913. mbstate_t x;
  3914. int
  3915. main (void)
  3916. {
  3917. ;
  3918. return 0;
  3919. }
  3920. _ACEOF
  3921. if ac_fn_c_try_compile "$LINENO"
  3922. then :
  3923. else case e in #(
  3924. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3925. /* end confdefs.h. */
  3926. #define _XOPEN_SOURCE 500
  3927. #include <wchar.h>
  3928. mbstate_t x;
  3929. int
  3930. main (void)
  3931. {
  3932. ;
  3933. return 0;
  3934. }
  3935. _ACEOF
  3936. if ac_fn_c_try_compile "$LINENO"
  3937. then :
  3938. ac_cv_should_define__xopen_source=yes
  3939. fi
  3940. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  3941. esac
  3942. fi
  3943. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3944. fi ;;
  3945. esac
  3946. fi
  3947. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
  3948. printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
  3949. printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
  3950. printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
  3951. printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
  3952. printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
  3953. printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
  3954. printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
  3955. printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3956. printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
  3957. printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
  3958. printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
  3959. printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
  3960. printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
  3961. printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
  3962. printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
  3963. printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
  3964. printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
  3965. if test $ac_cv_header_minix_config_h = yes
  3966. then :
  3967. MINIX=yes
  3968. printf "%s\n" "#define _MINIX 1" >>confdefs.h
  3969. printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
  3970. printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3971. else case e in #(
  3972. e) MINIX= ;;
  3973. esac
  3974. fi
  3975. if test $ac_cv_safe_to_define___extensions__ = yes
  3976. then :
  3977. printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
  3978. fi
  3979. if test $ac_cv_should_define__xopen_source = yes
  3980. then :
  3981. printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
  3982. fi
  3983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  3984. printf %s "checking for inline... " >&6; }
  3985. if test ${ac_cv_c_inline+y}
  3986. then :
  3987. printf %s "(cached) " >&6
  3988. else case e in #(
  3989. e) ac_cv_c_inline=no
  3990. for ac_kw in inline __inline__ __inline; do
  3991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3992. /* end confdefs.h. */
  3993. #ifndef __cplusplus
  3994. typedef int foo_t;
  3995. static $ac_kw foo_t static_foo (void) {return 0; }
  3996. $ac_kw foo_t foo (void) {return 0; }
  3997. #endif
  3998. _ACEOF
  3999. if ac_fn_c_try_compile "$LINENO"
  4000. then :
  4001. ac_cv_c_inline=$ac_kw
  4002. fi
  4003. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4004. test "$ac_cv_c_inline" != no && break
  4005. done
  4006. ;;
  4007. esac
  4008. fi
  4009. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  4010. printf "%s\n" "$ac_cv_c_inline" >&6; }
  4011. case $ac_cv_c_inline in
  4012. inline | yes) ;;
  4013. *)
  4014. case $ac_cv_c_inline in
  4015. no) ac_val=;;
  4016. *) ac_val=$ac_cv_c_inline;;
  4017. esac
  4018. cat >>confdefs.h <<_ACEOF
  4019. #ifndef __cplusplus
  4020. #define inline $ac_val
  4021. #endif
  4022. _ACEOF
  4023. ;;
  4024. esac
  4025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  4026. printf %s "checking for an ANSI C-conforming const... " >&6; }
  4027. if test ${ac_cv_c_const+y}
  4028. then :
  4029. printf %s "(cached) " >&6
  4030. else case e in #(
  4031. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4032. /* end confdefs.h. */
  4033. int
  4034. main (void)
  4035. {
  4036. #ifndef __cplusplus
  4037. /* Ultrix mips cc rejects this sort of thing. */
  4038. typedef int charset[2];
  4039. const charset cs = { 0, 0 };
  4040. /* SunOS 4.1.1 cc rejects this. */
  4041. char const *const *pcpcc;
  4042. char **ppc;
  4043. /* NEC SVR4.0.2 mips cc rejects this. */
  4044. struct point {int x, y;};
  4045. static struct point const zero = {0,0};
  4046. /* IBM XL C 1.02.0.0 rejects this.
  4047. It does not let you subtract one const X* pointer from another in
  4048. an arm of an if-expression whose if-part is not a constant
  4049. expression */
  4050. const char *g = "string";
  4051. pcpcc = &g + (g ? g-g : 0);
  4052. /* HPUX 7.0 cc rejects these. */
  4053. ++pcpcc;
  4054. ppc = (char**) pcpcc;
  4055. pcpcc = (char const *const *) ppc;
  4056. { /* SCO 3.2v4 cc rejects this sort of thing. */
  4057. char tx;
  4058. char *t = &tx;
  4059. char const *s = 0 ? (char *) 0 : (char const *) 0;
  4060. *t++ = 0;
  4061. if (s) return 0;
  4062. }
  4063. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  4064. int x[] = {25, 17};
  4065. const int *foo = &x[0];
  4066. ++foo;
  4067. }
  4068. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  4069. typedef const int *iptr;
  4070. iptr p = 0;
  4071. ++p;
  4072. }
  4073. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  4074. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  4075. struct s { int j; const int *ap[3]; } bx;
  4076. struct s *b = &bx; b->j = 5;
  4077. }
  4078. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  4079. const int foo = 10;
  4080. if (!foo) return 0;
  4081. }
  4082. return !cs[0] && !zero.x;
  4083. #endif
  4084. ;
  4085. return 0;
  4086. }
  4087. _ACEOF
  4088. if ac_fn_c_try_compile "$LINENO"
  4089. then :
  4090. ac_cv_c_const=yes
  4091. else case e in #(
  4092. e) ac_cv_c_const=no ;;
  4093. esac
  4094. fi
  4095. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  4096. esac
  4097. fi
  4098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  4099. printf "%s\n" "$ac_cv_c_const" >&6; }
  4100. if test $ac_cv_c_const = no; then
  4101. printf "%s\n" "#define const /**/" >>confdefs.h
  4102. fi
  4103. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  4104. if test "x$ac_cv_type_size_t" = xyes
  4105. then :
  4106. else case e in #(
  4107. e)
  4108. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  4109. ;;
  4110. esac
  4111. fi
  4112. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  4113. if test "x$ac_cv_type_off_t" = xyes
  4114. then :
  4115. else case e in #(
  4116. e)
  4117. printf "%s\n" "#define off_t long int" >>confdefs.h
  4118. ;;
  4119. esac
  4120. fi
  4121. # Check for Darwin, which needs extra cpp and linker flags.
  4122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uname" >&5
  4123. printf %s "checking for uname... " >&6; }
  4124. if test ${ne_cv_os_uname+y}
  4125. then :
  4126. printf %s "(cached) " >&6
  4127. else case e in #(
  4128. e)
  4129. ne_cv_os_uname=`uname -s 2>/dev/null`
  4130. case x"$host" in
  4131. x*mingw*) ne_cv_os_uname="MINGW-$host" ;;
  4132. esac
  4133. ;;
  4134. esac
  4135. fi
  4136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_os_uname" >&5
  4137. printf "%s\n" "$ne_cv_os_uname" >&6; }
  4138. case x"$ne_cv_os_uname" in #(
  4139. x"Darwin") :
  4140. CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
  4141. LDFLAGS="$LDFLAGS -flat_namespace"
  4142. # poll has various issues in various Darwin releases
  4143. if test x${ac_cv_func_poll+set} != xset; then
  4144. ac_cv_func_poll=no
  4145. fi
  4146. ;; #(
  4147. xMINGW*|xMSYS*) :
  4148. NEON_LIBS="$NEON_LIBS -lws2_32"
  4149. ;; #(
  4150. *) :
  4151. ;;
  4152. esac
  4153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4154. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4155. set x ${MAKE-make}
  4156. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4157. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  4158. then :
  4159. printf %s "(cached) " >&6
  4160. else case e in #(
  4161. e) cat >conftest.make <<\_ACEOF
  4162. SHELL = /bin/sh
  4163. all:
  4164. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4165. _ACEOF
  4166. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  4167. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4168. *@@@%%%=?*=@@@%%%*)
  4169. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4170. *)
  4171. eval ac_cv_prog_make_${ac_make}_set=no;;
  4172. esac
  4173. rm -f conftest.make ;;
  4174. esac
  4175. fi
  4176. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4178. printf "%s\n" "yes" >&6; }
  4179. SET_MAKE=
  4180. else
  4181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4182. printf "%s\n" "no" >&6; }
  4183. SET_MAKE="MAKE=${MAKE-make}"
  4184. fi
  4185. # The cast to long int works around a bug in the HP C Compiler
  4186. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4187. # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
  4188. # This bug is HP SR number 8606223364.
  4189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  4190. printf %s "checking size of int... " >&6; }
  4191. if test ${ac_cv_sizeof_int+y}
  4192. then :
  4193. printf %s "(cached) " >&6
  4194. else case e in #(
  4195. e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
  4196. then :
  4197. else case e in #(
  4198. e) if test "$ac_cv_type_int" = yes; then
  4199. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  4200. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  4201. as_fn_error 77 "cannot compute sizeof (int)
  4202. See 'config.log' for more details" "$LINENO" 5; }
  4203. else
  4204. ac_cv_sizeof_int=0
  4205. fi ;;
  4206. esac
  4207. fi
  4208. ;;
  4209. esac
  4210. fi
  4211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  4212. printf "%s\n" "$ac_cv_sizeof_int" >&6; }
  4213. printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
  4214. # The cast to long int works around a bug in the HP C Compiler
  4215. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4216. # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
  4217. # This bug is HP SR number 8606223364.
  4218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  4219. printf %s "checking size of long... " >&6; }
  4220. if test ${ac_cv_sizeof_long+y}
  4221. then :
  4222. printf %s "(cached) " >&6
  4223. else case e in #(
  4224. e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
  4225. then :
  4226. else case e in #(
  4227. e) if test "$ac_cv_type_long" = yes; then
  4228. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  4229. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  4230. as_fn_error 77 "cannot compute sizeof (long)
  4231. See 'config.log' for more details" "$LINENO" 5; }
  4232. else
  4233. ac_cv_sizeof_long=0
  4234. fi ;;
  4235. esac
  4236. fi
  4237. ;;
  4238. esac
  4239. fi
  4240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  4241. printf "%s\n" "$ac_cv_sizeof_long" >&6; }
  4242. printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
  4243. # The cast to long int works around a bug in the HP C Compiler
  4244. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4245. # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
  4246. # This bug is HP SR number 8606223364.
  4247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  4248. printf %s "checking size of long long... " >&6; }
  4249. if test ${ac_cv_sizeof_long_long+y}
  4250. then :
  4251. printf %s "(cached) " >&6
  4252. else case e in #(
  4253. e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
  4254. then :
  4255. else case e in #(
  4256. e) if test "$ac_cv_type_long_long" = yes; then
  4257. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  4258. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  4259. as_fn_error 77 "cannot compute sizeof (long long)
  4260. See 'config.log' for more details" "$LINENO" 5; }
  4261. else
  4262. ac_cv_sizeof_long_long=0
  4263. fi ;;
  4264. esac
  4265. fi
  4266. ;;
  4267. esac
  4268. fi
  4269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  4270. printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
  4271. printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
  4272. if test "$GCC" = "yes"; then
  4273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc -Wformat -Werror sanity" >&5
  4274. printf %s "checking for gcc -Wformat -Werror sanity... " >&6; }
  4275. if test ${ne_cv_cc_werror+y}
  4276. then :
  4277. printf %s "(cached) " >&6
  4278. else case e in #(
  4279. e)
  4280. # See whether a simple test program will compile without errors.
  4281. ne_save_CPPFLAGS=$CPPFLAGS
  4282. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  4283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4284. /* end confdefs.h. */
  4285. #include <sys/types.h>
  4286. #include <stdio.h>
  4287. int
  4288. main (void)
  4289. {
  4290. int i = 42; printf("%d", i);
  4291. ;
  4292. return 0;
  4293. }
  4294. _ACEOF
  4295. if ac_fn_c_try_compile "$LINENO"
  4296. then :
  4297. ne_cv_cc_werror=yes
  4298. else case e in #(
  4299. e) ne_cv_cc_werror=no ;;
  4300. esac
  4301. fi
  4302. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4303. CPPFLAGS=$ne_save_CPPFLAGS ;;
  4304. esac
  4305. fi
  4306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_cc_werror" >&5
  4307. printf "%s\n" "$ne_cv_cc_werror" >&6; }
  4308. ne_fmt_trycompile=$ne_cv_cc_werror
  4309. else
  4310. ne_fmt_trycompile=no
  4311. fi
  4312. # These checks are done whether or not the bundled neon build
  4313. # is used.
  4314. ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
  4315. if test "x$ac_cv_header_errno_h" = xyes
  4316. then :
  4317. printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
  4318. fi
  4319. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  4320. if test "x$ac_cv_header_stdarg_h" = xyes
  4321. then :
  4322. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  4323. fi
  4324. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  4325. if test "x$ac_cv_header_string_h" = xyes
  4326. then :
  4327. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  4328. fi
  4329. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  4330. if test "x$ac_cv_header_stdlib_h" = xyes
  4331. then :
  4332. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  4333. fi
  4334. ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
  4335. if test "x$ac_cv_header_sys_uio_h" = xyes
  4336. then :
  4337. printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
  4338. fi
  4339. # The cast to long int works around a bug in the HP C Compiler
  4340. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4341. # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
  4342. # This bug is HP SR number 8606223364.
  4343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  4344. printf %s "checking size of size_t... " >&6; }
  4345. if test ${ac_cv_sizeof_size_t+y}
  4346. then :
  4347. printf %s "(cached) " >&6
  4348. else case e in #(
  4349. e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default
  4350. "
  4351. then :
  4352. else case e in #(
  4353. e) if test "$ac_cv_type_size_t" = yes; then
  4354. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  4355. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  4356. as_fn_error 77 "cannot compute sizeof (size_t)
  4357. See 'config.log' for more details" "$LINENO" 5; }
  4358. else
  4359. ac_cv_sizeof_size_t=0
  4360. fi ;;
  4361. esac
  4362. fi
  4363. ;;
  4364. esac
  4365. fi
  4366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  4367. printf "%s\n" "$ac_cv_sizeof_size_t" >&6; }
  4368. printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h
  4369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print size_t" >&5
  4370. printf %s "checking how to print size_t... " >&6; }
  4371. if test ${ne_cv_fmt_size_t+y}
  4372. then :
  4373. printf %s "(cached) " >&6
  4374. else case e in #(
  4375. e)
  4376. ne_cv_fmt_size_t=none
  4377. if test $ne_fmt_trycompile = yes; then
  4378. oflags="$CPPFLAGS"
  4379. # Consider format string mismatches as errors
  4380. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  4381. for str in u lu llu; do
  4382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4383. /* end confdefs.h. */
  4384. #include <sys/types.h>
  4385. #include <stdio.h>
  4386. int
  4387. main (void)
  4388. {
  4389. size_t i = 1; printf("%$str", i);
  4390. ;
  4391. return 0;
  4392. }
  4393. _ACEOF
  4394. if ac_fn_c_try_compile "$LINENO"
  4395. then :
  4396. ne_cv_fmt_size_t=$str; break
  4397. fi
  4398. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4399. done
  4400. CPPFLAGS=$oflags
  4401. else
  4402. # Best guess. Don't have to be too precise since we probably won't
  4403. # get a warning message anyway.
  4404. case $ac_cv_sizeof_size_t in
  4405. $ac_cv_sizeof_int) ne_cv_fmt_size_t="u" ;;
  4406. $ac_cv_sizeof_long) ne_cv_fmt_size_t="lu" ;;
  4407. $ac_cv_sizeof_long_long) ne_cv_fmt_size_t="llu" ;;
  4408. esac
  4409. fi
  4410. ;;
  4411. esac
  4412. fi
  4413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_size_t" >&5
  4414. printf "%s\n" "$ne_cv_fmt_size_t" >&6; }
  4415. if test "x$ne_cv_fmt_size_t" = "xnone"; then
  4416. as_fn_error $? "format string for size_t not found" "$LINENO" 5
  4417. fi
  4418. printf "%s\n" "#define NE_FMT_SIZE_T \"$ne_cv_fmt_size_t\"" >>confdefs.h
  4419. # The cast to long int works around a bug in the HP C Compiler
  4420. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4421. # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
  4422. # This bug is HP SR number 8606223364.
  4423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
  4424. printf %s "checking size of off_t... " >&6; }
  4425. if test ${ac_cv_sizeof_off_t+y}
  4426. then :
  4427. printf %s "(cached) " >&6
  4428. else case e in #(
  4429. e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default
  4430. "
  4431. then :
  4432. else case e in #(
  4433. e) if test "$ac_cv_type_off_t" = yes; then
  4434. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  4435. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  4436. as_fn_error 77 "cannot compute sizeof (off_t)
  4437. See 'config.log' for more details" "$LINENO" 5; }
  4438. else
  4439. ac_cv_sizeof_off_t=0
  4440. fi ;;
  4441. esac
  4442. fi
  4443. ;;
  4444. esac
  4445. fi
  4446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
  4447. printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
  4448. printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
  4449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print off_t" >&5
  4450. printf %s "checking how to print off_t... " >&6; }
  4451. if test ${ne_cv_fmt_off_t+y}
  4452. then :
  4453. printf %s "(cached) " >&6
  4454. else case e in #(
  4455. e)
  4456. ne_cv_fmt_off_t=none
  4457. if test $ne_fmt_trycompile = yes; then
  4458. oflags="$CPPFLAGS"
  4459. # Consider format string mismatches as errors
  4460. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  4461. for str in d ld lld; do
  4462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4463. /* end confdefs.h. */
  4464. #include <sys/types.h>
  4465. #include <stdio.h>
  4466. int
  4467. main (void)
  4468. {
  4469. off_t i = 1; printf("%$str", i);
  4470. ;
  4471. return 0;
  4472. }
  4473. _ACEOF
  4474. if ac_fn_c_try_compile "$LINENO"
  4475. then :
  4476. ne_cv_fmt_off_t=$str; break
  4477. fi
  4478. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4479. done
  4480. CPPFLAGS=$oflags
  4481. else
  4482. # Best guess. Don't have to be too precise since we probably won't
  4483. # get a warning message anyway.
  4484. case $ac_cv_sizeof_off_t in
  4485. $ac_cv_sizeof_int) ne_cv_fmt_off_t="d" ;;
  4486. $ac_cv_sizeof_long) ne_cv_fmt_off_t="ld" ;;
  4487. $ac_cv_sizeof_long_long) ne_cv_fmt_off_t="lld" ;;
  4488. esac
  4489. fi
  4490. ;;
  4491. esac
  4492. fi
  4493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_off_t" >&5
  4494. printf "%s\n" "$ne_cv_fmt_off_t" >&6; }
  4495. if test "x$ne_cv_fmt_off_t" = "xnone"; then
  4496. as_fn_error $? "format string for off_t not found" "$LINENO" 5
  4497. fi
  4498. printf "%s\n" "#define NE_FMT_OFF_T \"$ne_cv_fmt_off_t\"" >>confdefs.h
  4499. # The cast to long int works around a bug in the HP C Compiler
  4500. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4501. # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
  4502. # This bug is HP SR number 8606223364.
  4503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
  4504. printf %s "checking size of ssize_t... " >&6; }
  4505. if test ${ac_cv_sizeof_ssize_t+y}
  4506. then :
  4507. printf %s "(cached) " >&6
  4508. else case e in #(
  4509. e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default
  4510. "
  4511. then :
  4512. else case e in #(
  4513. e) if test "$ac_cv_type_ssize_t" = yes; then
  4514. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  4515. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  4516. as_fn_error 77 "cannot compute sizeof (ssize_t)
  4517. See 'config.log' for more details" "$LINENO" 5; }
  4518. else
  4519. ac_cv_sizeof_ssize_t=0
  4520. fi ;;
  4521. esac
  4522. fi
  4523. ;;
  4524. esac
  4525. fi
  4526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
  4527. printf "%s\n" "$ac_cv_sizeof_ssize_t" >&6; }
  4528. printf "%s\n" "#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t" >>confdefs.h
  4529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print ssize_t" >&5
  4530. printf %s "checking how to print ssize_t... " >&6; }
  4531. if test ${ne_cv_fmt_ssize_t+y}
  4532. then :
  4533. printf %s "(cached) " >&6
  4534. else case e in #(
  4535. e)
  4536. ne_cv_fmt_ssize_t=none
  4537. if test $ne_fmt_trycompile = yes; then
  4538. oflags="$CPPFLAGS"
  4539. # Consider format string mismatches as errors
  4540. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  4541. for str in d ld lld; do
  4542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4543. /* end confdefs.h. */
  4544. #include <sys/types.h>
  4545. #include <stdio.h>
  4546. int
  4547. main (void)
  4548. {
  4549. ssize_t i = 1; printf("%$str", i);
  4550. ;
  4551. return 0;
  4552. }
  4553. _ACEOF
  4554. if ac_fn_c_try_compile "$LINENO"
  4555. then :
  4556. ne_cv_fmt_ssize_t=$str; break
  4557. fi
  4558. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4559. done
  4560. CPPFLAGS=$oflags
  4561. else
  4562. # Best guess. Don't have to be too precise since we probably won't
  4563. # get a warning message anyway.
  4564. case $ac_cv_sizeof_ssize_t in
  4565. $ac_cv_sizeof_int) ne_cv_fmt_ssize_t="d" ;;
  4566. $ac_cv_sizeof_long) ne_cv_fmt_ssize_t="ld" ;;
  4567. $ac_cv_sizeof_long_long) ne_cv_fmt_ssize_t="lld" ;;
  4568. esac
  4569. fi
  4570. ;;
  4571. esac
  4572. fi
  4573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_ssize_t" >&5
  4574. printf "%s\n" "$ne_cv_fmt_ssize_t" >&6; }
  4575. if test "x$ne_cv_fmt_ssize_t" = "xnone"; then
  4576. as_fn_error $? "format string for ssize_t not found" "$LINENO" 5
  4577. fi
  4578. printf "%s\n" "#define NE_FMT_SSIZE_T \"$ne_cv_fmt_ssize_t\"" >>confdefs.h
  4579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4580. printf %s "checking whether byte ordering is bigendian... " >&6; }
  4581. if test ${ac_cv_c_bigendian+y}
  4582. then :
  4583. printf %s "(cached) " >&6
  4584. else case e in #(
  4585. e) ac_cv_c_bigendian=unknown
  4586. # See if we're dealing with a universal compiler.
  4587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4588. /* end confdefs.h. */
  4589. #ifndef __APPLE_CC__
  4590. not a universal capable compiler
  4591. #endif
  4592. typedef int dummy;
  4593. _ACEOF
  4594. if ac_fn_c_try_compile "$LINENO"
  4595. then :
  4596. # Check for potential -arch flags. It is not universal unless
  4597. # there are at least two -arch flags with different values.
  4598. ac_arch=
  4599. ac_prev=
  4600. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4601. if test -n "$ac_prev"; then
  4602. case $ac_word in
  4603. i?86 | x86_64 | ppc | ppc64)
  4604. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4605. ac_arch=$ac_word
  4606. else
  4607. ac_cv_c_bigendian=universal
  4608. break
  4609. fi
  4610. ;;
  4611. esac
  4612. ac_prev=
  4613. elif test "x$ac_word" = "x-arch"; then
  4614. ac_prev=arch
  4615. fi
  4616. done
  4617. fi
  4618. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4619. if test $ac_cv_c_bigendian = unknown; then
  4620. # See if sys/param.h defines the BYTE_ORDER macro.
  4621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4622. /* end confdefs.h. */
  4623. #include <sys/types.h>
  4624. #include <sys/param.h>
  4625. int
  4626. main (void)
  4627. {
  4628. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
  4629. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
  4630. && LITTLE_ENDIAN)
  4631. bogus endian macros
  4632. #endif
  4633. ;
  4634. return 0;
  4635. }
  4636. _ACEOF
  4637. if ac_fn_c_try_compile "$LINENO"
  4638. then :
  4639. # It does; now see whether it defined to BIG_ENDIAN or not.
  4640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4641. /* end confdefs.h. */
  4642. #include <sys/types.h>
  4643. #include <sys/param.h>
  4644. int
  4645. main (void)
  4646. {
  4647. #if BYTE_ORDER != BIG_ENDIAN
  4648. not big endian
  4649. #endif
  4650. ;
  4651. return 0;
  4652. }
  4653. _ACEOF
  4654. if ac_fn_c_try_compile "$LINENO"
  4655. then :
  4656. ac_cv_c_bigendian=yes
  4657. else case e in #(
  4658. e) ac_cv_c_bigendian=no ;;
  4659. esac
  4660. fi
  4661. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4662. fi
  4663. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4664. fi
  4665. if test $ac_cv_c_bigendian = unknown; then
  4666. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4668. /* end confdefs.h. */
  4669. #include <limits.h>
  4670. int
  4671. main (void)
  4672. {
  4673. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4674. bogus endian macros
  4675. #endif
  4676. ;
  4677. return 0;
  4678. }
  4679. _ACEOF
  4680. if ac_fn_c_try_compile "$LINENO"
  4681. then :
  4682. # It does; now see whether it defined to _BIG_ENDIAN or not.
  4683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4684. /* end confdefs.h. */
  4685. #include <limits.h>
  4686. int
  4687. main (void)
  4688. {
  4689. #ifndef _BIG_ENDIAN
  4690. not big endian
  4691. #endif
  4692. ;
  4693. return 0;
  4694. }
  4695. _ACEOF
  4696. if ac_fn_c_try_compile "$LINENO"
  4697. then :
  4698. ac_cv_c_bigendian=yes
  4699. else case e in #(
  4700. e) ac_cv_c_bigendian=no ;;
  4701. esac
  4702. fi
  4703. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4704. fi
  4705. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4706. fi
  4707. if test $ac_cv_c_bigendian = unknown; then
  4708. # Compile a test program.
  4709. if test "$cross_compiling" = yes
  4710. then :
  4711. # Try to guess by grepping values from an object file.
  4712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4713. /* end confdefs.h. */
  4714. unsigned short int ascii_mm[] =
  4715. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4716. unsigned short int ascii_ii[] =
  4717. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4718. int use_ascii (int i) {
  4719. return ascii_mm[i] + ascii_ii[i];
  4720. }
  4721. unsigned short int ebcdic_ii[] =
  4722. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4723. unsigned short int ebcdic_mm[] =
  4724. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4725. int use_ebcdic (int i) {
  4726. return ebcdic_mm[i] + ebcdic_ii[i];
  4727. }
  4728. int
  4729. main (int argc, char **argv)
  4730. {
  4731. /* Intimidate the compiler so that it does not
  4732. optimize the arrays away. */
  4733. char *p = argv[0];
  4734. ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
  4735. ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
  4736. return use_ascii (argc) == use_ebcdic (*p);
  4737. }
  4738. _ACEOF
  4739. if ac_fn_c_try_link "$LINENO"
  4740. then :
  4741. if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
  4742. ac_cv_c_bigendian=yes
  4743. fi
  4744. if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
  4745. if test "$ac_cv_c_bigendian" = unknown; then
  4746. ac_cv_c_bigendian=no
  4747. else
  4748. # finding both strings is unlikely to happen, but who knows?
  4749. ac_cv_c_bigendian=unknown
  4750. fi
  4751. fi
  4752. fi
  4753. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  4754. conftest$ac_exeext conftest.$ac_ext
  4755. else case e in #(
  4756. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4757. /* end confdefs.h. */
  4758. $ac_includes_default
  4759. int
  4760. main (void)
  4761. {
  4762. /* Are we little or big endian? From Harbison&Steele. */
  4763. union
  4764. {
  4765. long int l;
  4766. char c[sizeof (long int)];
  4767. } u;
  4768. u.l = 1;
  4769. return u.c[sizeof (long int) - 1] == 1;
  4770. ;
  4771. return 0;
  4772. }
  4773. _ACEOF
  4774. if ac_fn_c_try_run "$LINENO"
  4775. then :
  4776. ac_cv_c_bigendian=no
  4777. else case e in #(
  4778. e) ac_cv_c_bigendian=yes ;;
  4779. esac
  4780. fi
  4781. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4782. conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  4783. esac
  4784. fi
  4785. fi ;;
  4786. esac
  4787. fi
  4788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  4789. printf "%s\n" "$ac_cv_c_bigendian" >&6; }
  4790. case $ac_cv_c_bigendian in #(
  4791. yes)
  4792. printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
  4793. ;; #(
  4794. no)
  4795. ;; #(
  4796. universal)
  4797. printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  4798. ;; #(
  4799. *)
  4800. as_fn_error $? "unknown endianness
  4801. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  4802. esac
  4803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
  4804. printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
  4805. if test ${ac_cv_c_undeclared_builtin_options+y}
  4806. then :
  4807. printf %s "(cached) " >&6
  4808. else case e in #(
  4809. e) ac_save_CFLAGS=$CFLAGS
  4810. ac_cv_c_undeclared_builtin_options='cannot detect'
  4811. for ac_arg in '' -fno-builtin; do
  4812. CFLAGS="$ac_save_CFLAGS $ac_arg"
  4813. # This test program should *not* compile successfully.
  4814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4815. /* end confdefs.h. */
  4816. int
  4817. main (void)
  4818. {
  4819. (void) strchr;
  4820. ;
  4821. return 0;
  4822. }
  4823. _ACEOF
  4824. if ac_fn_c_try_compile "$LINENO"
  4825. then :
  4826. else case e in #(
  4827. e) # This test program should compile successfully.
  4828. # No library function is consistently available on
  4829. # freestanding implementations, so test against a dummy
  4830. # declaration. Include always-available headers on the
  4831. # off chance that they somehow elicit warnings.
  4832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4833. /* end confdefs.h. */
  4834. #include <float.h>
  4835. #include <limits.h>
  4836. #include <stdarg.h>
  4837. #include <stddef.h>
  4838. extern void ac_decl (int, char *);
  4839. int
  4840. main (void)
  4841. {
  4842. (void) ac_decl (0, (char *) 0);
  4843. (void) ac_decl;
  4844. ;
  4845. return 0;
  4846. }
  4847. _ACEOF
  4848. if ac_fn_c_try_compile "$LINENO"
  4849. then :
  4850. if test x"$ac_arg" = x
  4851. then :
  4852. ac_cv_c_undeclared_builtin_options='none needed'
  4853. else case e in #(
  4854. e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
  4855. esac
  4856. fi
  4857. break
  4858. fi
  4859. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  4860. esac
  4861. fi
  4862. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4863. done
  4864. CFLAGS=$ac_save_CFLAGS
  4865. ;;
  4866. esac
  4867. fi
  4868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
  4869. printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
  4870. case $ac_cv_c_undeclared_builtin_options in #(
  4871. 'cannot detect') :
  4872. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  4873. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  4874. as_fn_error $? "cannot make $CC report undeclared builtins
  4875. See 'config.log' for more details" "$LINENO" 5; } ;; #(
  4876. 'none needed') :
  4877. ac_c_undeclared_builtin_options='' ;; #(
  4878. *) :
  4879. ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
  4880. esac
  4881. ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
  4882. if test "x$ac_cv_have_decl_strerror_r" = xyes
  4883. then :
  4884. ac_have_decl=1
  4885. else case e in #(
  4886. e) ac_have_decl=0 ;;
  4887. esac
  4888. fi
  4889. printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h
  4890. if test $ac_cv_have_decl_strerror_r = yes; then
  4891. # For backward compatibility's sake, define HAVE_STRERROR_R.
  4892. # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well
  4893. # as AC_CHECK_DECLS_ONCE.)
  4894. printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
  4895. fi
  4896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
  4897. printf %s "checking whether strerror_r returns char *... " >&6; }
  4898. if test ${ac_cv_func_strerror_r_char_p+y}
  4899. then :
  4900. printf %s "(cached) " >&6
  4901. else case e in #(
  4902. e)
  4903. ac_cv_func_strerror_r_char_p=no
  4904. if test $ac_cv_have_decl_strerror_r = yes; then
  4905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4906. /* end confdefs.h. */
  4907. #include <string.h>
  4908. int
  4909. main (void)
  4910. {
  4911. char buf[100];
  4912. char x = *strerror_r (0, buf, sizeof buf);
  4913. char *p = strerror_r (0, buf, sizeof buf);
  4914. return !p || x;
  4915. ;
  4916. return 0;
  4917. }
  4918. _ACEOF
  4919. if ac_fn_c_try_compile "$LINENO"
  4920. then :
  4921. ac_cv_func_strerror_r_char_p=yes
  4922. fi
  4923. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4924. fi
  4925. ;;
  4926. esac
  4927. fi
  4928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
  4929. printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
  4930. if test $ac_cv_func_strerror_r_char_p = yes; then
  4931. printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
  4932. fi
  4933. for ac_func in snprintf vsnprintf
  4934. do :
  4935. as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
  4936. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4937. if eval test \"x\$"$as_ac_var"\" = x"yes"
  4938. then :
  4939. cat >>confdefs.h <<_ACEOF
  4940. #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
  4941. _ACEOF
  4942. else case e in #(
  4943. e)
  4944. ne_save_LIBS=$LIBS
  4945. LIBS="$LIBS -lm" # Always need -lm
  4946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for trio_vsnprintf in -ltrio" >&5
  4947. printf %s "checking for trio_vsnprintf in -ltrio... " >&6; }
  4948. if test ${ac_cv_lib_trio_trio_vsnprintf+y}
  4949. then :
  4950. printf %s "(cached) " >&6
  4951. else case e in #(
  4952. e) ac_check_lib_save_LIBS=$LIBS
  4953. LIBS="-ltrio $LIBS"
  4954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4955. /* end confdefs.h. */
  4956. /* Override any GCC internal prototype to avoid an error.
  4957. Use char because int might match the return type of a GCC
  4958. builtin and then its argument prototype would still apply.
  4959. The 'extern "C"' is for builds by C++ compilers;
  4960. although this is not generally supported in C code supporting it here
  4961. has little cost and some practical benefit (sr 110532). */
  4962. #ifdef __cplusplus
  4963. extern "C"
  4964. #endif
  4965. char trio_vsnprintf (void);
  4966. int
  4967. main (void)
  4968. {
  4969. return trio_vsnprintf ();
  4970. ;
  4971. return 0;
  4972. }
  4973. _ACEOF
  4974. if ac_fn_c_try_link "$LINENO"
  4975. then :
  4976. ac_cv_lib_trio_trio_vsnprintf=yes
  4977. else case e in #(
  4978. e) ac_cv_lib_trio_trio_vsnprintf=no ;;
  4979. esac
  4980. fi
  4981. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  4982. conftest$ac_exeext conftest.$ac_ext
  4983. LIBS=$ac_check_lib_save_LIBS ;;
  4984. esac
  4985. fi
  4986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_trio_trio_vsnprintf" >&5
  4987. printf "%s\n" "$ac_cv_lib_trio_trio_vsnprintf" >&6; }
  4988. if test "x$ac_cv_lib_trio_trio_vsnprintf" = xyes
  4989. then :
  4990. for ac_header in trio.h
  4991. do :
  4992. ac_fn_c_check_header_compile "$LINENO" "trio.h" "ac_cv_header_trio_h" "$ac_includes_default"
  4993. if test "x$ac_cv_header_trio_h" = xyes
  4994. then :
  4995. printf "%s\n" "#define HAVE_TRIO_H 1" >>confdefs.h
  4996. else case e in #(
  4997. e) as_fn_error $? "trio installation problem? libtrio found but not trio.h" "$LINENO" 5 ;;
  4998. esac
  4999. fi
  5000. done
  5001. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using trio printf replacement library" >&5
  5002. printf "%s\n" "$as_me: using trio printf replacement library" >&6;}
  5003. NEON_LIBS="$NEON_LIBS -ltrio -lm"
  5004. printf "%s\n" "#define HAVE_TRIO 1" >>confdefs.h
  5005. else case e in #(
  5006. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: no vsnprintf/snprintf detected in C library" >&5
  5007. printf "%s\n" "$as_me: no vsnprintf/snprintf detected in C library" >&6;}
  5008. as_fn_error $? "Install the trio library from http://daniel.haxx.se/projects/trio/" "$LINENO" 5 ;;
  5009. esac
  5010. fi
  5011. LIBS=$ne_save_LIBS
  5012. break
  5013. ;;
  5014. esac
  5015. fi
  5016. done
  5017. ac_ext=c
  5018. ac_cpp='$CPP $CPPFLAGS'
  5019. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5020. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5021. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5023. printf %s "checking how to run the C preprocessor... " >&6; }
  5024. # On Suns, sometimes $CPP names a directory.
  5025. if test -n "$CPP" && test -d "$CPP"; then
  5026. CPP=
  5027. fi
  5028. if test -z "$CPP"; then
  5029. if test ${ac_cv_prog_CPP+y}
  5030. then :
  5031. printf %s "(cached) " >&6
  5032. else case e in #(
  5033. e) # Double quotes because $CC needs to be expanded
  5034. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  5035. do
  5036. ac_preproc_ok=false
  5037. for ac_c_preproc_warn_flag in '' yes
  5038. do
  5039. # Use a header file that comes with gcc, so configuring glibc
  5040. # with a fresh cross-compiler works.
  5041. # On the NeXT, cc -E runs the code through the compiler's parser,
  5042. # not just through cpp. "Syntax error" is here to catch this case.
  5043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5044. /* end confdefs.h. */
  5045. #include <limits.h>
  5046. Syntax error
  5047. _ACEOF
  5048. if ac_fn_c_try_cpp "$LINENO"
  5049. then :
  5050. else case e in #(
  5051. e) # Broken: fails on valid input.
  5052. continue ;;
  5053. esac
  5054. fi
  5055. rm -f conftest.err conftest.i conftest.$ac_ext
  5056. # OK, works on sane cases. Now check whether nonexistent headers
  5057. # can be detected and how.
  5058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5059. /* end confdefs.h. */
  5060. #include <ac_nonexistent.h>
  5061. _ACEOF
  5062. if ac_fn_c_try_cpp "$LINENO"
  5063. then :
  5064. # Broken: success on invalid input.
  5065. continue
  5066. else case e in #(
  5067. e) # Passes both tests.
  5068. ac_preproc_ok=:
  5069. break ;;
  5070. esac
  5071. fi
  5072. rm -f conftest.err conftest.i conftest.$ac_ext
  5073. done
  5074. # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5075. rm -f conftest.i conftest.err conftest.$ac_ext
  5076. if $ac_preproc_ok
  5077. then :
  5078. break
  5079. fi
  5080. done
  5081. ac_cv_prog_CPP=$CPP
  5082. ;;
  5083. esac
  5084. fi
  5085. CPP=$ac_cv_prog_CPP
  5086. else
  5087. ac_cv_prog_CPP=$CPP
  5088. fi
  5089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5090. printf "%s\n" "$CPP" >&6; }
  5091. ac_preproc_ok=false
  5092. for ac_c_preproc_warn_flag in '' yes
  5093. do
  5094. # Use a header file that comes with gcc, so configuring glibc
  5095. # with a fresh cross-compiler works.
  5096. # On the NeXT, cc -E runs the code through the compiler's parser,
  5097. # not just through cpp. "Syntax error" is here to catch this case.
  5098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5099. /* end confdefs.h. */
  5100. #include <limits.h>
  5101. Syntax error
  5102. _ACEOF
  5103. if ac_fn_c_try_cpp "$LINENO"
  5104. then :
  5105. else case e in #(
  5106. e) # Broken: fails on valid input.
  5107. continue ;;
  5108. esac
  5109. fi
  5110. rm -f conftest.err conftest.i conftest.$ac_ext
  5111. # OK, works on sane cases. Now check whether nonexistent headers
  5112. # can be detected and how.
  5113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5114. /* end confdefs.h. */
  5115. #include <ac_nonexistent.h>
  5116. _ACEOF
  5117. if ac_fn_c_try_cpp "$LINENO"
  5118. then :
  5119. # Broken: success on invalid input.
  5120. continue
  5121. else case e in #(
  5122. e) # Passes both tests.
  5123. ac_preproc_ok=:
  5124. break ;;
  5125. esac
  5126. fi
  5127. rm -f conftest.err conftest.i conftest.$ac_ext
  5128. done
  5129. # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5130. rm -f conftest.i conftest.err conftest.$ac_ext
  5131. if $ac_preproc_ok
  5132. then :
  5133. else case e in #(
  5134. e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  5135. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  5136. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  5137. See 'config.log' for more details" "$LINENO" 5; } ;;
  5138. esac
  5139. fi
  5140. ac_ext=c
  5141. ac_cpp='$CPP $CPPFLAGS'
  5142. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5143. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5144. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
  5146. printf %s "checking for egrep -e... " >&6; }
  5147. if test ${ac_cv_path_EGREP_TRADITIONAL+y}
  5148. then :
  5149. printf %s "(cached) " >&6
  5150. else case e in #(
  5151. e) if test -z "$EGREP_TRADITIONAL"; then
  5152. ac_path_EGREP_TRADITIONAL_found=false
  5153. # Loop through the user's path and test for each of PROGNAME-LIST
  5154. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5155. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5156. do
  5157. IFS=$as_save_IFS
  5158. case $as_dir in #(((
  5159. '') as_dir=./ ;;
  5160. */) ;;
  5161. *) as_dir=$as_dir/ ;;
  5162. esac
  5163. for ac_prog in grep ggrep
  5164. do
  5165. for ac_exec_ext in '' $ac_executable_extensions; do
  5166. ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
  5167. as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
  5168. # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
  5169. # Check for GNU $ac_path_EGREP_TRADITIONAL
  5170. case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
  5171. *GNU*)
  5172. ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
  5173. #(
  5174. *)
  5175. ac_count=0
  5176. printf %s 0123456789 >"conftest.in"
  5177. while :
  5178. do
  5179. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5180. mv "conftest.tmp" "conftest.in"
  5181. cp "conftest.in" "conftest.nl"
  5182. printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
  5183. "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5184. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5185. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5186. if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
  5187. # Best one so far, save it but keep looking for a better one
  5188. ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
  5189. ac_path_EGREP_TRADITIONAL_max=$ac_count
  5190. fi
  5191. # 10*(2^10) chars as input seems more than enough
  5192. test $ac_count -gt 10 && break
  5193. done
  5194. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5195. esac
  5196. $ac_path_EGREP_TRADITIONAL_found && break 3
  5197. done
  5198. done
  5199. done
  5200. IFS=$as_save_IFS
  5201. if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
  5202. :
  5203. fi
  5204. else
  5205. ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
  5206. fi
  5207. if test "$ac_cv_path_EGREP_TRADITIONAL"
  5208. then :
  5209. ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
  5210. else case e in #(
  5211. e) if test -z "$EGREP_TRADITIONAL"; then
  5212. ac_path_EGREP_TRADITIONAL_found=false
  5213. # Loop through the user's path and test for each of PROGNAME-LIST
  5214. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5215. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5216. do
  5217. IFS=$as_save_IFS
  5218. case $as_dir in #(((
  5219. '') as_dir=./ ;;
  5220. */) ;;
  5221. *) as_dir=$as_dir/ ;;
  5222. esac
  5223. for ac_prog in egrep
  5224. do
  5225. for ac_exec_ext in '' $ac_executable_extensions; do
  5226. ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
  5227. as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
  5228. # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
  5229. # Check for GNU $ac_path_EGREP_TRADITIONAL
  5230. case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
  5231. *GNU*)
  5232. ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
  5233. #(
  5234. *)
  5235. ac_count=0
  5236. printf %s 0123456789 >"conftest.in"
  5237. while :
  5238. do
  5239. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5240. mv "conftest.tmp" "conftest.in"
  5241. cp "conftest.in" "conftest.nl"
  5242. printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
  5243. "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5244. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5245. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5246. if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
  5247. # Best one so far, save it but keep looking for a better one
  5248. ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
  5249. ac_path_EGREP_TRADITIONAL_max=$ac_count
  5250. fi
  5251. # 10*(2^10) chars as input seems more than enough
  5252. test $ac_count -gt 10 && break
  5253. done
  5254. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5255. esac
  5256. $ac_path_EGREP_TRADITIONAL_found && break 3
  5257. done
  5258. done
  5259. done
  5260. IFS=$as_save_IFS
  5261. if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
  5262. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5263. fi
  5264. else
  5265. ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
  5266. fi
  5267. ;;
  5268. esac
  5269. fi ;;
  5270. esac
  5271. fi
  5272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
  5273. printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
  5274. EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
  5275. ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default
  5276. /* netinet/tcp.h requires netinet/in.h on some platforms. */
  5277. #ifdef HAVE_NETINET_IN_H
  5278. #include <netinet/in.h>
  5279. #endif
  5280. "
  5281. if test "x$ac_cv_header_sys_time_h" = xyes
  5282. then :
  5283. printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
  5284. fi
  5285. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default
  5286. /* netinet/tcp.h requires netinet/in.h on some platforms. */
  5287. #ifdef HAVE_NETINET_IN_H
  5288. #include <netinet/in.h>
  5289. #endif
  5290. "
  5291. if test "x$ac_cv_header_limits_h" = xyes
  5292. then :
  5293. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  5294. fi
  5295. ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default
  5296. /* netinet/tcp.h requires netinet/in.h on some platforms. */
  5297. #ifdef HAVE_NETINET_IN_H
  5298. #include <netinet/in.h>
  5299. #endif
  5300. "
  5301. if test "x$ac_cv_header_sys_select_h" = xyes
  5302. then :
  5303. printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
  5304. fi
  5305. ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default
  5306. /* netinet/tcp.h requires netinet/in.h on some platforms. */
  5307. #ifdef HAVE_NETINET_IN_H
  5308. #include <netinet/in.h>
  5309. #endif
  5310. "
  5311. if test "x$ac_cv_header_arpa_inet_h" = xyes
  5312. then :
  5313. printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
  5314. fi
  5315. ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default
  5316. /* netinet/tcp.h requires netinet/in.h on some platforms. */
  5317. #ifdef HAVE_NETINET_IN_H
  5318. #include <netinet/in.h>
  5319. #endif
  5320. "
  5321. if test "x$ac_cv_header_libintl_h" = xyes
  5322. then :
  5323. printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h
  5324. fi
  5325. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default
  5326. /* netinet/tcp.h requires netinet/in.h on some platforms. */
  5327. #ifdef HAVE_NETINET_IN_H
  5328. #include <netinet/in.h>
  5329. #endif
  5330. "
  5331. if test "x$ac_cv_header_signal_h" = xyes
  5332. then :
  5333. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  5334. fi
  5335. ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default
  5336. /* netinet/tcp.h requires netinet/in.h on some platforms. */
  5337. #ifdef HAVE_NETINET_IN_H
  5338. #include <netinet/in.h>
  5339. #endif
  5340. "
  5341. if test "x$ac_cv_header_sys_socket_h" = xyes
  5342. then :
  5343. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
  5344. fi
  5345. ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default
  5346. /* netinet/tcp.h requires netinet/in.h on some platforms. */
  5347. #ifdef HAVE_NETINET_IN_H
  5348. #include <netinet/in.h>
  5349. #endif
  5350. "
  5351. if test "x$ac_cv_header_netinet_in_h" = xyes
  5352. then :
  5353. printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
  5354. fi
  5355. ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default
  5356. /* netinet/tcp.h requires netinet/in.h on some platforms. */
  5357. #ifdef HAVE_NETINET_IN_H
  5358. #include <netinet/in.h>
  5359. #endif
  5360. "
  5361. if test "x$ac_cv_header_netinet_tcp_h" = xyes
  5362. then :
  5363. printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
  5364. fi
  5365. ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default
  5366. /* netinet/tcp.h requires netinet/in.h on some platforms. */
  5367. #ifdef HAVE_NETINET_IN_H
  5368. #include <netinet/in.h>
  5369. #endif
  5370. "
  5371. if test "x$ac_cv_header_netdb_h" = xyes
  5372. then :
  5373. printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
  5374. fi
  5375. ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default
  5376. /* netinet/tcp.h requires netinet/in.h on some platforms. */
  5377. #ifdef HAVE_NETINET_IN_H
  5378. #include <netinet/in.h>
  5379. #endif
  5380. "
  5381. if test "x$ac_cv_header_sys_poll_h" = xyes
  5382. then :
  5383. printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
  5384. fi
  5385. ac_fn_c_check_header_compile "$LINENO" "sys/limits.h" "ac_cv_header_sys_limits_h" "$ac_includes_default
  5386. /* netinet/tcp.h requires netinet/in.h on some platforms. */
  5387. #ifdef HAVE_NETINET_IN_H
  5388. #include <netinet/in.h>
  5389. #endif
  5390. "
  5391. if test "x$ac_cv_header_sys_limits_h" = xyes
  5392. then :
  5393. printf "%s\n" "#define HAVE_SYS_LIMITS_H 1" >>confdefs.h
  5394. fi
  5395. ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default
  5396. /* netinet/tcp.h requires netinet/in.h on some platforms. */
  5397. #ifdef HAVE_NETINET_IN_H
  5398. #include <netinet/in.h>
  5399. #endif
  5400. "
  5401. if test "x$ac_cv_header_fcntl_h" = xyes
  5402. then :
  5403. printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
  5404. fi
  5405. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default
  5406. /* netinet/tcp.h requires netinet/in.h on some platforms. */
  5407. #ifdef HAVE_NETINET_IN_H
  5408. #include <netinet/in.h>
  5409. #endif
  5410. "
  5411. if test "x$ac_cv_header_iconv_h" = xyes
  5412. then :
  5413. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  5414. fi
  5415. ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
  5416. /* netinet/tcp.h requires netinet/in.h on some platforms. */
  5417. #ifdef HAVE_NETINET_IN_H
  5418. #include <netinet/in.h>
  5419. #endif
  5420. "
  5421. if test "x$ac_cv_header_net_if_h" = xyes
  5422. then :
  5423. printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
  5424. fi
  5425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timezone global" >&5
  5426. printf %s "checking for timezone global... " >&6; }
  5427. if test ${ne_cv_cc_timezone+y}
  5428. then :
  5429. printf %s "(cached) " >&6
  5430. else case e in #(
  5431. e)
  5432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5433. /* end confdefs.h. */
  5434. #include <sys/types.h>
  5435. #include <time.h>
  5436. int
  5437. main (void)
  5438. {
  5439. time_t t = 0 - timezone; timezone = 1;
  5440. ;
  5441. return 0;
  5442. }
  5443. _ACEOF
  5444. if ac_fn_c_try_link "$LINENO"
  5445. then :
  5446. ne_cv_cc_timezone=yes
  5447. else case e in #(
  5448. e) ne_cv_cc_timezone=no ;;
  5449. esac
  5450. fi
  5451. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  5452. conftest$ac_exeext conftest.$ac_ext ;;
  5453. esac
  5454. fi
  5455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_cc_timezone" >&5
  5456. printf "%s\n" "$ne_cv_cc_timezone" >&6; }
  5457. if test "$ne_cv_cc_timezone" = "yes"; then
  5458. printf "%s\n" "#define HAVE_TIMEZONE 1" >>confdefs.h
  5459. fi
  5460. if test -z "$ac_cv_sizeof_off_t"; then
  5461. NE_FLAG_LFS=no
  5462. ne_LFS_message="LFS support omitted: off_t size unknown!"
  5463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LFS support omitted: off_t size unknown!" >&5
  5464. printf "%s\n" "$as_me: LFS support omitted: off_t size unknown!" >&6;}
  5465. elif test $ac_cv_sizeof_off_t != 4; then
  5466. NE_FLAG_LFS=no
  5467. ne_LFS_message="LFS support unnecessary, off_t is not 32-bit"
  5468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LFS support unnecessary, off_t is not 32-bit" >&5
  5469. printf "%s\n" "$as_me: LFS support unnecessary, off_t is not 32-bit" >&6;}
  5470. for ac_func in strtoll strtoq
  5471. do :
  5472. as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
  5473. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5474. if eval test \"x\$"$as_ac_var"\" = x"yes"
  5475. then :
  5476. cat >>confdefs.h <<_ACEOF
  5477. #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
  5478. _ACEOF
  5479. break
  5480. fi
  5481. done
  5482. elif test -z "$ac_cv_sizeof_long_long"; then
  5483. NE_FLAG_LFS=no
  5484. ne_LFS_message="LFS support omitted: long long size unknown"
  5485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LFS support omitted: long long size unknown" >&5
  5486. printf "%s\n" "$as_me: LFS support omitted: long long size unknown" >&6;}
  5487. elif test $ac_cv_sizeof_long_long != 8; then
  5488. NE_FLAG_LFS=no
  5489. ne_LFS_message="LFS support omitted: long long not 64-bit"
  5490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LFS support omitted: long long not 64-bit" >&5
  5491. printf "%s\n" "$as_me: LFS support omitted: long long not 64-bit" >&6;}
  5492. else
  5493. ne_save_CPPFLAGS=$CPPFLAGS
  5494. CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
  5495. ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
  5496. if test "x$ac_cv_type_off64_t" = xyes
  5497. then :
  5498. # The cast to long int works around a bug in the HP C Compiler
  5499. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5500. # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
  5501. # This bug is HP SR number 8606223364.
  5502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off64_t" >&5
  5503. printf %s "checking size of off64_t... " >&6; }
  5504. if test ${ac_cv_sizeof_off64_t+y}
  5505. then :
  5506. printf %s "(cached) " >&6
  5507. else case e in #(
  5508. e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off64_t))" "ac_cv_sizeof_off64_t" "$ac_includes_default
  5509. "
  5510. then :
  5511. else case e in #(
  5512. e) if test "$ac_cv_type_off64_t" = yes; then
  5513. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  5514. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  5515. as_fn_error 77 "cannot compute sizeof (off64_t)
  5516. See 'config.log' for more details" "$LINENO" 5; }
  5517. else
  5518. ac_cv_sizeof_off64_t=0
  5519. fi ;;
  5520. esac
  5521. fi
  5522. ;;
  5523. esac
  5524. fi
  5525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off64_t" >&5
  5526. printf "%s\n" "$ac_cv_sizeof_off64_t" >&6; }
  5527. printf "%s\n" "#define SIZEOF_OFF64_T $ac_cv_sizeof_off64_t" >>confdefs.h
  5528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print off64_t" >&5
  5529. printf %s "checking how to print off64_t... " >&6; }
  5530. if test ${ne_cv_fmt_off64_t+y}
  5531. then :
  5532. printf %s "(cached) " >&6
  5533. else case e in #(
  5534. e)
  5535. ne_cv_fmt_off64_t=none
  5536. if test $ne_fmt_trycompile = yes; then
  5537. oflags="$CPPFLAGS"
  5538. # Consider format string mismatches as errors
  5539. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  5540. for str in d ld lld; do
  5541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5542. /* end confdefs.h. */
  5543. #include <sys/types.h>
  5544. #include <stdio.h>
  5545. int
  5546. main (void)
  5547. {
  5548. off64_t i = 1; printf("%$str", i);
  5549. ;
  5550. return 0;
  5551. }
  5552. _ACEOF
  5553. if ac_fn_c_try_compile "$LINENO"
  5554. then :
  5555. ne_cv_fmt_off64_t=$str; break
  5556. fi
  5557. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5558. done
  5559. CPPFLAGS=$oflags
  5560. else
  5561. # Best guess. Don't have to be too precise since we probably won't
  5562. # get a warning message anyway.
  5563. case $ac_cv_sizeof_off64_t in
  5564. $ac_cv_sizeof_int) ne_cv_fmt_off64_t="d" ;;
  5565. $ac_cv_sizeof_long) ne_cv_fmt_off64_t="ld" ;;
  5566. $ac_cv_sizeof_long_long) ne_cv_fmt_off64_t="lld" ;;
  5567. esac
  5568. fi
  5569. ;;
  5570. esac
  5571. fi
  5572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_off64_t" >&5
  5573. printf "%s\n" "$ne_cv_fmt_off64_t" >&6; }
  5574. if test "x$ne_cv_fmt_off64_t" = "xnone"; then
  5575. as_fn_error $? "format string for off64_t not found" "$LINENO" 5
  5576. fi
  5577. printf "%s\n" "#define NE_FMT_OFF64_T \"$ne_cv_fmt_off64_t\"" >>confdefs.h
  5578. ne_lfsok=no
  5579. for ac_func in strtoll strtoq
  5580. do :
  5581. as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
  5582. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5583. if eval test \"x\$"$as_ac_var"\" = x"yes"
  5584. then :
  5585. cat >>confdefs.h <<_ACEOF
  5586. #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
  5587. _ACEOF
  5588. ne_lfsok=yes; break
  5589. fi
  5590. done
  5591. case $ne_cv_os_uname in #(
  5592. MINGW*|MSYS_NT*) :
  5593. for ac_func in lseek64
  5594. do :
  5595. ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
  5596. if test "x$ac_cv_func_lseek64" = xyes
  5597. then :
  5598. printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
  5599. else case e in #(
  5600. e) ne_lfsok=no; break ;;
  5601. esac
  5602. fi
  5603. done ;; #(
  5604. *) :
  5605. for ac_func in lseek64 fstat64
  5606. do :
  5607. as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
  5608. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5609. if eval test \"x\$"$as_ac_var"\" = x"yes"
  5610. then :
  5611. cat >>confdefs.h <<_ACEOF
  5612. #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
  5613. _ACEOF
  5614. else case e in #(
  5615. e) ne_lfsok=no; break ;;
  5616. esac
  5617. fi
  5618. done
  5619. ;;
  5620. esac
  5621. if test x$ne_lfsok = xyes; then
  5622. NE_FLAG_LFS=yes
  5623. printf "%s\n" "#define NE_HAVE_LFS 1" >>confdefs.h
  5624. ne_LFS_message="LFS (large file) support enabled"
  5625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LFS (large file) support enabled" >&5
  5626. printf "%s\n" "$as_me: LFS (large file) support enabled" >&6;}
  5627. NEON_CFLAGS="$NEON_CFLAGS -D_LARGEFILE64_SOURCE -DNE_LFS"
  5628. ne_save_CPPFLAGS="$CPPFLAGS -DNE_LFS"
  5629. else
  5630. NE_FLAG_LFS=no
  5631. ne_LFS_message="LFS support omitted: 64-bit support functions not found"
  5632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LFS support omitted: 64-bit support functions not found" >&5
  5633. printf "%s\n" "$as_me: LFS support omitted: 64-bit support functions not found" >&6;}
  5634. fi
  5635. else case e in #(
  5636. e)
  5637. NE_FLAG_LFS=no
  5638. ne_LFS_message="LFS support omitted: off64_t type not found"
  5639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LFS support omitted: off64_t type not found" >&5
  5640. printf "%s\n" "$as_me: LFS support omitted: off64_t type not found" >&6;}
  5641. ;;
  5642. esac
  5643. fi
  5644. CPPFLAGS=$ne_save_CPPFLAGS
  5645. fi
  5646. if test "$NE_FLAG_LFS" = "yes"; then
  5647. printf "%s\n" "#define NE_FMT_NE_OFF_T NE_FMT_OFF64_T" >>confdefs.h
  5648. if test "x${NE_LIBTOOL_RELEASE}y" = "xy"; then
  5649. NE_LIBTOOL_RELEASE="LFS"
  5650. else
  5651. NE_LIBTOOL_RELEASE="${NE_LIBTOOL_RELEASE}-LFS"
  5652. fi
  5653. else
  5654. printf "%s\n" "#define NE_FMT_NE_OFF_T NE_FMT_OFF_T" >>confdefs.h
  5655. fi
  5656. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  5657. if test "x$ac_cv_func_strcasecmp" = xyes
  5658. then :
  5659. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  5660. else case e in #(
  5661. e) case " $LIBOBJS " in
  5662. *" strcasecmp.$ac_objext "* ) ;;
  5663. *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
  5664. ;;
  5665. esac
  5666. ;;
  5667. esac
  5668. fi
  5669. ac_fn_c_check_func "$LINENO" "signal" "ac_cv_func_signal"
  5670. if test "x$ac_cv_func_signal" = xyes
  5671. then :
  5672. printf "%s\n" "#define HAVE_SIGNAL 1" >>confdefs.h
  5673. fi
  5674. ac_fn_c_check_func "$LINENO" "setvbuf" "ac_cv_func_setvbuf"
  5675. if test "x$ac_cv_func_setvbuf" = xyes
  5676. then :
  5677. printf "%s\n" "#define HAVE_SETVBUF 1" >>confdefs.h
  5678. fi
  5679. ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
  5680. if test "x$ac_cv_func_setsockopt" = xyes
  5681. then :
  5682. printf "%s\n" "#define HAVE_SETSOCKOPT 1" >>confdefs.h
  5683. fi
  5684. ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
  5685. if test "x$ac_cv_func_stpcpy" = xyes
  5686. then :
  5687. printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
  5688. fi
  5689. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  5690. if test "x$ac_cv_func_poll" = xyes
  5691. then :
  5692. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  5693. fi
  5694. ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
  5695. if test "x$ac_cv_func_fcntl" = xyes
  5696. then :
  5697. printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
  5698. fi
  5699. ac_fn_c_check_func "$LINENO" "getsockopt" "ac_cv_func_getsockopt"
  5700. if test "x$ac_cv_func_getsockopt" = xyes
  5701. then :
  5702. printf "%s\n" "#define HAVE_GETSOCKOPT 1" >>confdefs.h
  5703. fi
  5704. ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
  5705. if test "x$ac_cv_func_explicit_bzero" = xyes
  5706. then :
  5707. printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
  5708. fi
  5709. ac_fn_c_check_func "$LINENO" "sendmsg" "ac_cv_func_sendmsg"
  5710. if test "x$ac_cv_func_sendmsg" = xyes
  5711. then :
  5712. printf "%s\n" "#define HAVE_SENDMSG 1" >>confdefs.h
  5713. fi
  5714. ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
  5715. if test "x$ac_cv_func_gettimeofday" = xyes
  5716. then :
  5717. printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
  5718. fi
  5719. ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
  5720. if test "x$ac_cv_func_gmtime_r" = xyes
  5721. then :
  5722. printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
  5723. fi
  5724. ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
  5725. if test "x$ac_cv_func_if_nametoindex" = xyes
  5726. then :
  5727. printf "%s\n" "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h
  5728. fi
  5729. ac_fn_c_check_func "$LINENO" "if_indextoname" "ac_cv_func_if_indextoname"
  5730. if test "x$ac_cv_func_if_indextoname" = xyes
  5731. then :
  5732. printf "%s\n" "#define HAVE_IF_INDEXTONAME 1" >>confdefs.h
  5733. fi
  5734. if test "x${ac_cv_func_poll}${ac_cv_header_sys_poll_h}y" = "xyesyesy"; then
  5735. printf "%s\n" "#define NE_USE_POLL 1" >>confdefs.h
  5736. fi
  5737. if test "$ac_cv_func_stpcpy" = "yes"; then
  5738. ac_fn_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
  5739. if test "x$ac_cv_have_decl_stpcpy" = xyes
  5740. then :
  5741. ac_have_decl=1
  5742. else case e in #(
  5743. e) ac_have_decl=0 ;;
  5744. esac
  5745. fi
  5746. printf "%s\n" "#define HAVE_DECL_STPCPY $ac_have_decl" >>confdefs.h
  5747. fi
  5748. # Modern AIXes with the "Linux-like" libc have an undeclared stpcpy
  5749. # Unixware 7 can only link gethostbyname with -lnsl -lsocket
  5750. # Pick up -lsocket first, then the gethostbyname check will work.
  5751. # Haiku requires -lnetwork for socket functions.
  5752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
  5753. printf %s "checking for library containing socket... " >&6; }
  5754. if test ${ne_cv_libsfor_socket+y}
  5755. then :
  5756. printf %s "(cached) " >&6
  5757. else case e in #(
  5758. e)
  5759. case $ne_cv_os_uname in
  5760. MINGW*|MSYS_NT*)
  5761. ;;
  5762. *)
  5763. case socket in
  5764. getaddrinfo)
  5765. ne__prologue="#include <netdb.h>"
  5766. ne__code="getaddrinfo(0,0,0,0);"
  5767. ;;
  5768. socket)
  5769. ne__prologue="#include <sys/socket.h>"
  5770. ne__code="socket(0,0,0);"
  5771. ;;
  5772. bindtextdomain)
  5773. ne__prologue="#include <libintl.h>"
  5774. ne__code="bindtextdomain(\"\",\"\");"
  5775. ;;
  5776. *)
  5777. ne__prologue=""
  5778. ne__code="socket();"
  5779. ;;
  5780. esac
  5781. ;;
  5782. esac
  5783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5784. /* end confdefs.h. */
  5785. $ne__prologue
  5786. int
  5787. main (void)
  5788. {
  5789. $ne__code
  5790. ;
  5791. return 0;
  5792. }
  5793. _ACEOF
  5794. if ac_fn_c_try_link "$LINENO"
  5795. then :
  5796. ne_cv_libsfor_socket="none needed"
  5797. else case e in #(
  5798. e)
  5799. ne_sl_save_LIBS=$LIBS
  5800. ne_cv_libsfor_socket="not found"
  5801. for lib in socket inet ws2_32 network; do
  5802. case $ne_cv_os_uname in
  5803. MINGW*|MSYS_NT*)
  5804. case $lib in
  5805. ws2_32)
  5806. ne__prologue="#include <winsock2.h>"
  5807. case socket in
  5808. gethostbyname)
  5809. ne__code="gethostbyname(\"\")"
  5810. ;;
  5811. socket)
  5812. ne__code="socket(0,0,0);"
  5813. ;;
  5814. *)
  5815. ne__code="socket();"
  5816. ;;
  5817. esac
  5818. ;;
  5819. *)
  5820. ne__prologue=""
  5821. ne__code=""
  5822. ;;
  5823. esac
  5824. ;;
  5825. *)
  5826. ;;
  5827. esac
  5828. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  5829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5830. /* end confdefs.h. */
  5831. $ne__prologue
  5832. int
  5833. main (void)
  5834. {
  5835. $ne__code
  5836. ;
  5837. return 0;
  5838. }
  5839. _ACEOF
  5840. if ac_fn_c_try_link "$LINENO"
  5841. then :
  5842. ne_cv_libsfor_socket="-l$lib"; break
  5843. fi
  5844. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  5845. conftest$ac_exeext conftest.$ac_ext
  5846. done
  5847. LIBS=$ne_sl_save_LIBS
  5848. ;;
  5849. esac
  5850. fi
  5851. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  5852. conftest$ac_exeext conftest.$ac_ext
  5853. ;;
  5854. esac
  5855. fi
  5856. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_socket" >&5
  5857. printf "%s\n" "$ne_cv_libsfor_socket" >&6; }
  5858. ac_fn_c_check_header_compile "$LINENO" "wspiapi.h" "ac_cv_header_wspiapi_h" "$ac_includes_default"
  5859. if test "x$ac_cv_header_wspiapi_h" = xyes
  5860. then :
  5861. printf "%s\n" "#define HAVE_WSPIAPI_H 1" >>confdefs.h
  5862. fi
  5863. if test "$ne_cv_libsfor_socket" = "not found"; then
  5864. as_fn_error $? "could not find library containing socket" "$LINENO" 5
  5865. elif test "$ne_cv_libsfor_socket" = "none needed"; then
  5866. :
  5867. else
  5868. NEON_LIBS="$ne_cv_libsfor_socket $NEON_LIBS"
  5869. fi
  5870. # Enable getaddrinfo support if it, gai_strerror and inet_ntop are
  5871. # all available.
  5872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
  5873. printf %s "checking for library containing getaddrinfo... " >&6; }
  5874. if test ${ne_cv_libsfor_getaddrinfo+y}
  5875. then :
  5876. printf %s "(cached) " >&6
  5877. else case e in #(
  5878. e)
  5879. case $ne_cv_os_uname in
  5880. MINGW*|MSYS_NT*)
  5881. ;;
  5882. *)
  5883. case getaddrinfo in
  5884. getaddrinfo)
  5885. ne__prologue="#include <netdb.h>"
  5886. ne__code="getaddrinfo(0,0,0,0);"
  5887. ;;
  5888. socket)
  5889. ne__prologue="#include <sys/socket.h>"
  5890. ne__code="socket(0,0,0);"
  5891. ;;
  5892. bindtextdomain)
  5893. ne__prologue="#include <libintl.h>"
  5894. ne__code="bindtextdomain(\"\",\"\");"
  5895. ;;
  5896. *)
  5897. ne__prologue=""
  5898. ne__code="getaddrinfo();"
  5899. ;;
  5900. esac
  5901. ;;
  5902. esac
  5903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5904. /* end confdefs.h. */
  5905. $ne__prologue
  5906. int
  5907. main (void)
  5908. {
  5909. $ne__code
  5910. ;
  5911. return 0;
  5912. }
  5913. _ACEOF
  5914. if ac_fn_c_try_link "$LINENO"
  5915. then :
  5916. ne_cv_libsfor_getaddrinfo="none needed"
  5917. else case e in #(
  5918. e)
  5919. ne_sl_save_LIBS=$LIBS
  5920. ne_cv_libsfor_getaddrinfo="not found"
  5921. for lib in nsl; do
  5922. case $ne_cv_os_uname in
  5923. MINGW*|MSYS_NT*)
  5924. case $lib in
  5925. ws2_32)
  5926. ne__prologue="#include <winsock2.h>"
  5927. case getaddrinfo in
  5928. gethostbyname)
  5929. ne__code="gethostbyname(\"\")"
  5930. ;;
  5931. socket)
  5932. ne__code="socket(0,0,0);"
  5933. ;;
  5934. *)
  5935. ne__code="getaddrinfo();"
  5936. ;;
  5937. esac
  5938. ;;
  5939. *)
  5940. ne__prologue=""
  5941. ne__code=""
  5942. ;;
  5943. esac
  5944. ;;
  5945. *)
  5946. ;;
  5947. esac
  5948. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  5949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5950. /* end confdefs.h. */
  5951. $ne__prologue
  5952. int
  5953. main (void)
  5954. {
  5955. $ne__code
  5956. ;
  5957. return 0;
  5958. }
  5959. _ACEOF
  5960. if ac_fn_c_try_link "$LINENO"
  5961. then :
  5962. ne_cv_libsfor_getaddrinfo="-l$lib"; break
  5963. fi
  5964. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  5965. conftest$ac_exeext conftest.$ac_ext
  5966. done
  5967. LIBS=$ne_sl_save_LIBS
  5968. ;;
  5969. esac
  5970. fi
  5971. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  5972. conftest$ac_exeext conftest.$ac_ext
  5973. ;;
  5974. esac
  5975. fi
  5976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_getaddrinfo" >&5
  5977. printf "%s\n" "$ne_cv_libsfor_getaddrinfo" >&6; }
  5978. ac_fn_c_check_header_compile "$LINENO" "wspiapi.h" "ac_cv_header_wspiapi_h" "$ac_includes_default"
  5979. if test "x$ac_cv_header_wspiapi_h" = xyes
  5980. then :
  5981. printf "%s\n" "#define HAVE_WSPIAPI_H 1" >>confdefs.h
  5982. fi
  5983. if test "$ne_cv_libsfor_getaddrinfo" = "not found"; then
  5984. ne_enable_gai=no
  5985. elif test "$ne_cv_libsfor_getaddrinfo" = "none needed"; then
  5986. # HP-UX boxes commonly get into a state where getaddrinfo is present
  5987. # but borked: http://marc.theaimsgroup.com/?l=apr-dev&m=107730955207120&w=2
  5988. case x`uname -sr 2>/dev/null`y in
  5989. xHP-UX*11.[01]*y)
  5990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: getaddrinfo support disabled on HP-UX 11.0x/11.1x" >&5
  5991. printf "%s\n" "$as_me: getaddrinfo support disabled on HP-UX 11.0x/11.1x" >&6;} ;;
  5992. *)
  5993. ne_enable_gai=yes
  5994. ne_cf_save_LIBS=$LIBS
  5995. LIBS="$LIBS $NEON_LIBS"
  5996. for ac_func in gai_strerror getnameinfo inet_ntop inet_pton
  5997. do :
  5998. as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
  5999. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6000. if eval test \"x\$"$as_ac_var"\" = x"yes"
  6001. then :
  6002. cat >>confdefs.h <<_ACEOF
  6003. #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
  6004. _ACEOF
  6005. else case e in #(
  6006. e) ne_enable_gai=no; break ;;
  6007. esac
  6008. fi
  6009. done
  6010. LIBS=$ne_cf_save_LIBS ;;
  6011. esac
  6012. else
  6013. NEON_LIBS="$ne_cv_libsfor_getaddrinfo $NEON_LIBS"
  6014. # HP-UX boxes commonly get into a state where getaddrinfo is present
  6015. # but borked: http://marc.theaimsgroup.com/?l=apr-dev&m=107730955207120&w=2
  6016. case x`uname -sr 2>/dev/null`y in
  6017. xHP-UX*11.[01]*y)
  6018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: getaddrinfo support disabled on HP-UX 11.0x/11.1x" >&5
  6019. printf "%s\n" "$as_me: getaddrinfo support disabled on HP-UX 11.0x/11.1x" >&6;} ;;
  6020. *)
  6021. ne_enable_gai=yes
  6022. ne_cf_save_LIBS=$LIBS
  6023. LIBS="$LIBS $NEON_LIBS"
  6024. for ac_func in gai_strerror getnameinfo inet_ntop inet_pton
  6025. do :
  6026. as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
  6027. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6028. if eval test \"x\$"$as_ac_var"\" = x"yes"
  6029. then :
  6030. cat >>confdefs.h <<_ACEOF
  6031. #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
  6032. _ACEOF
  6033. else case e in #(
  6034. e) ne_enable_gai=no; break ;;
  6035. esac
  6036. fi
  6037. done
  6038. LIBS=$ne_cf_save_LIBS ;;
  6039. esac
  6040. fi
  6041. if test $ne_enable_gai = yes; then
  6042. NE_FLAG_IPV6=yes
  6043. printf "%s\n" "#define NE_HAVE_IPV6 1" >>confdefs.h
  6044. ne_IPV6_message="IPv6 support is enabled"
  6045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IPv6 support is enabled" >&5
  6046. printf "%s\n" "$as_me: IPv6 support is enabled" >&6;}
  6047. printf "%s\n" "#define USE_GETADDRINFO 1" >>confdefs.h
  6048. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working AI_ADDRCONFIG" >&5
  6049. printf %s "checking for working AI_ADDRCONFIG... " >&6; }
  6050. if test ${ne_cv_gai_addrconfig+y}
  6051. then :
  6052. printf %s "(cached) " >&6
  6053. else case e in #(
  6054. e)
  6055. if test "$cross_compiling" = yes
  6056. then :
  6057. ne_cv_gai_addrconfig=no
  6058. else case e in #(
  6059. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6060. /* end confdefs.h. */
  6061. #include <netdb.h>
  6062. #include <stdlib.h>
  6063. int
  6064. main (void)
  6065. {
  6066. struct addrinfo hints = {0}, *result;
  6067. hints.ai_flags = AI_ADDRCONFIG;
  6068. if (getaddrinfo("localhost", NULL, &hints, &result) != 0) return 1;
  6069. ;
  6070. return 0;
  6071. }
  6072. _ACEOF
  6073. if ac_fn_c_try_run "$LINENO"
  6074. then :
  6075. ne_cv_gai_addrconfig=yes
  6076. else case e in #(
  6077. e) ne_cv_gai_addrconfig=no ;;
  6078. esac
  6079. fi
  6080. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6081. conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  6082. esac
  6083. fi
  6084. ;;
  6085. esac
  6086. fi
  6087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_gai_addrconfig" >&5
  6088. printf "%s\n" "$ne_cv_gai_addrconfig" >&6; }
  6089. if test $ne_cv_gai_addrconfig = yes; then
  6090. printf "%s\n" "#define USE_GAI_ADDRCONFIG 1" >>confdefs.h
  6091. fi
  6092. else
  6093. # Checks for non-getaddrinfo() based resolver interfaces.
  6094. # QNX has gethostbyname in -lsocket. BeOS only has it in -lbind.
  6095. # CygWin/Winsock2 has it in -lws2_32, allegedly.
  6096. # Haiku requires -lnetwork for socket functions.
  6097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
  6098. printf %s "checking for library containing gethostbyname... " >&6; }
  6099. if test ${ne_cv_libsfor_gethostbyname+y}
  6100. then :
  6101. printf %s "(cached) " >&6
  6102. else case e in #(
  6103. e)
  6104. case $ne_cv_os_uname in
  6105. MINGW*|MSYS_NT*)
  6106. ;;
  6107. *)
  6108. case gethostbyname in
  6109. getaddrinfo)
  6110. ne__prologue="#include <netdb.h>"
  6111. ne__code="getaddrinfo(0,0,0,0);"
  6112. ;;
  6113. socket)
  6114. ne__prologue="#include <sys/socket.h>"
  6115. ne__code="socket(0,0,0);"
  6116. ;;
  6117. bindtextdomain)
  6118. ne__prologue="#include <libintl.h>"
  6119. ne__code="bindtextdomain(\"\",\"\");"
  6120. ;;
  6121. *)
  6122. ne__prologue=""
  6123. ne__code="gethostbyname();"
  6124. ;;
  6125. esac
  6126. ;;
  6127. esac
  6128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6129. /* end confdefs.h. */
  6130. $ne__prologue
  6131. int
  6132. main (void)
  6133. {
  6134. $ne__code
  6135. ;
  6136. return 0;
  6137. }
  6138. _ACEOF
  6139. if ac_fn_c_try_link "$LINENO"
  6140. then :
  6141. ne_cv_libsfor_gethostbyname="none needed"
  6142. else case e in #(
  6143. e)
  6144. ne_sl_save_LIBS=$LIBS
  6145. ne_cv_libsfor_gethostbyname="not found"
  6146. for lib in socket nsl bind ws2_32 network; do
  6147. case $ne_cv_os_uname in
  6148. MINGW*|MSYS_NT*)
  6149. case $lib in
  6150. ws2_32)
  6151. ne__prologue="#include <winsock2.h>"
  6152. case gethostbyname in
  6153. gethostbyname)
  6154. ne__code="gethostbyname(\"\")"
  6155. ;;
  6156. socket)
  6157. ne__code="socket(0,0,0);"
  6158. ;;
  6159. *)
  6160. ne__code="gethostbyname();"
  6161. ;;
  6162. esac
  6163. ;;
  6164. *)
  6165. ne__prologue=""
  6166. ne__code=""
  6167. ;;
  6168. esac
  6169. ;;
  6170. *)
  6171. ;;
  6172. esac
  6173. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  6174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6175. /* end confdefs.h. */
  6176. $ne__prologue
  6177. int
  6178. main (void)
  6179. {
  6180. $ne__code
  6181. ;
  6182. return 0;
  6183. }
  6184. _ACEOF
  6185. if ac_fn_c_try_link "$LINENO"
  6186. then :
  6187. ne_cv_libsfor_gethostbyname="-l$lib"; break
  6188. fi
  6189. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6190. conftest$ac_exeext conftest.$ac_ext
  6191. done
  6192. LIBS=$ne_sl_save_LIBS
  6193. ;;
  6194. esac
  6195. fi
  6196. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6197. conftest$ac_exeext conftest.$ac_ext
  6198. ;;
  6199. esac
  6200. fi
  6201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_gethostbyname" >&5
  6202. printf "%s\n" "$ne_cv_libsfor_gethostbyname" >&6; }
  6203. ac_fn_c_check_header_compile "$LINENO" "wspiapi.h" "ac_cv_header_wspiapi_h" "$ac_includes_default"
  6204. if test "x$ac_cv_header_wspiapi_h" = xyes
  6205. then :
  6206. printf "%s\n" "#define HAVE_WSPIAPI_H 1" >>confdefs.h
  6207. fi
  6208. if test "$ne_cv_libsfor_gethostbyname" = "not found"; then
  6209. as_fn_error $? "could not find library containing gethostbyname" "$LINENO" 5
  6210. elif test "$ne_cv_libsfor_gethostbyname" = "none needed"; then
  6211. :
  6212. else
  6213. NEON_LIBS="$ne_cv_libsfor_gethostbyname $NEON_LIBS"
  6214. fi
  6215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
  6216. printf %s "checking for library containing hstrerror... " >&6; }
  6217. if test ${ne_cv_libsfor_hstrerror+y}
  6218. then :
  6219. printf %s "(cached) " >&6
  6220. else case e in #(
  6221. e)
  6222. case $ne_cv_os_uname in
  6223. MINGW*|MSYS_NT*)
  6224. ;;
  6225. *)
  6226. case hstrerror in
  6227. getaddrinfo)
  6228. ne__prologue="#include <netdb.h>"
  6229. ne__code="getaddrinfo(0,0,0,0);"
  6230. ;;
  6231. socket)
  6232. ne__prologue="#include <sys/socket.h>"
  6233. ne__code="socket(0,0,0);"
  6234. ;;
  6235. bindtextdomain)
  6236. ne__prologue="#include <libintl.h>"
  6237. ne__code="bindtextdomain(\"\",\"\");"
  6238. ;;
  6239. *)
  6240. ne__prologue=""
  6241. ne__code="hstrerror();"
  6242. ;;
  6243. esac
  6244. ;;
  6245. esac
  6246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6247. /* end confdefs.h. */
  6248. $ne__prologue
  6249. int
  6250. main (void)
  6251. {
  6252. $ne__code
  6253. ;
  6254. return 0;
  6255. }
  6256. _ACEOF
  6257. if ac_fn_c_try_link "$LINENO"
  6258. then :
  6259. ne_cv_libsfor_hstrerror="none needed"
  6260. else case e in #(
  6261. e)
  6262. ne_sl_save_LIBS=$LIBS
  6263. ne_cv_libsfor_hstrerror="not found"
  6264. for lib in resolv; do
  6265. case $ne_cv_os_uname in
  6266. MINGW*|MSYS_NT*)
  6267. case $lib in
  6268. ws2_32)
  6269. ne__prologue="#include <winsock2.h>"
  6270. case hstrerror in
  6271. gethostbyname)
  6272. ne__code="gethostbyname(\"\")"
  6273. ;;
  6274. socket)
  6275. ne__code="socket(0,0,0);"
  6276. ;;
  6277. *)
  6278. ne__code="hstrerror();"
  6279. ;;
  6280. esac
  6281. ;;
  6282. *)
  6283. ne__prologue=""
  6284. ne__code=""
  6285. ;;
  6286. esac
  6287. ;;
  6288. *)
  6289. ;;
  6290. esac
  6291. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  6292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6293. /* end confdefs.h. */
  6294. $ne__prologue
  6295. int
  6296. main (void)
  6297. {
  6298. $ne__code
  6299. ;
  6300. return 0;
  6301. }
  6302. _ACEOF
  6303. if ac_fn_c_try_link "$LINENO"
  6304. then :
  6305. ne_cv_libsfor_hstrerror="-l$lib"; break
  6306. fi
  6307. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6308. conftest$ac_exeext conftest.$ac_ext
  6309. done
  6310. LIBS=$ne_sl_save_LIBS
  6311. ;;
  6312. esac
  6313. fi
  6314. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6315. conftest$ac_exeext conftest.$ac_ext
  6316. ;;
  6317. esac
  6318. fi
  6319. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_hstrerror" >&5
  6320. printf "%s\n" "$ne_cv_libsfor_hstrerror" >&6; }
  6321. ac_fn_c_check_header_compile "$LINENO" "wspiapi.h" "ac_cv_header_wspiapi_h" "$ac_includes_default"
  6322. if test "x$ac_cv_header_wspiapi_h" = xyes
  6323. then :
  6324. printf "%s\n" "#define HAVE_WSPIAPI_H 1" >>confdefs.h
  6325. fi
  6326. if test "$ne_cv_libsfor_hstrerror" = "not found"; then
  6327. :
  6328. elif test "$ne_cv_libsfor_hstrerror" = "none needed"; then
  6329. :
  6330. else
  6331. NEON_LIBS="$ne_cv_libsfor_hstrerror $NEON_LIBS"
  6332. fi
  6333. ne_cf_save_LIBS=$LIBS
  6334. LIBS="$LIBS $NEON_LIBS"
  6335. ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror"
  6336. if test "x$ac_cv_func_hstrerror" = xyes
  6337. then :
  6338. printf "%s\n" "#define HAVE_HSTRERROR 1" >>confdefs.h
  6339. fi
  6340. LIBS=$ne_cf_save_LIBS
  6341. # Older Unixes don't declare h_errno.
  6342. ac_fn_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h>
  6343. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  6344. if test "x$ac_cv_have_decl_h_errno" = xyes
  6345. then :
  6346. ac_have_decl=1
  6347. else case e in #(
  6348. e) ac_have_decl=0 ;;
  6349. esac
  6350. fi
  6351. printf "%s\n" "#define HAVE_DECL_H_ERRNO $ac_have_decl" >>confdefs.h
  6352. ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
  6353. #ifdef HAVE_SYS_TYPES_H
  6354. # include <sys/types.h>
  6355. #endif
  6356. #ifdef HAVE_NETINET_IN_H
  6357. # include <netinet/in.h>
  6358. #endif
  6359. "
  6360. if test "x$ac_cv_type_in_addr_t" = xyes
  6361. then :
  6362. else case e in #(
  6363. e)
  6364. printf "%s\n" "#define in_addr_t unsigned int" >>confdefs.h
  6365. ;;
  6366. esac
  6367. fi
  6368. fi
  6369. ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
  6370. #ifdef HAVE_SYS_TYPES_H
  6371. # include <sys/types.h>
  6372. #endif
  6373. #ifdef HAVE_SYS_SOCKET_H
  6374. # include <sys/socket.h>
  6375. #endif
  6376. #ifdef _WIN32
  6377. # include <ws2tcpip.h>
  6378. #endif
  6379. "
  6380. if test "x$ac_cv_type_socklen_t" = xyes
  6381. then :
  6382. printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
  6383. else case e in #(
  6384. e) # Linux accept(2) says this should be size_t for SunOS 5... gah.
  6385. printf "%s\n" "#define socklen_t int" >>confdefs.h
  6386. ;;
  6387. esac
  6388. fi
  6389. ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
  6390. "
  6391. if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
  6392. then :
  6393. printf "%s\n" "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h
  6394. fi
  6395. ac_fn_c_check_member "$LINENO" "struct tm" "__tm_gmtoff" "ac_cv_member_struct_tm___tm_gmtoff" "#include <time.h>
  6396. "
  6397. if test "x$ac_cv_member_struct_tm___tm_gmtoff" = xyes
  6398. then :
  6399. printf "%s\n" "#define HAVE_STRUCT_TM___TM_GMTOFF 1" >>confdefs.h
  6400. fi
  6401. if test ${ac_cv_member_struct_tm_tm_gmtoff}${ac_cv_member_struct_tm___tm_gmtoff}${ne_cv_cc_timezone} = nonono; then
  6402. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no timezone handling in date parsing on this platform" >&5
  6403. printf "%s\n" "$as_me: WARNING: no timezone handling in date parsing on this platform" >&2;}
  6404. fi
  6405. # Check whether --with-zlib was given.
  6406. if test ${with_zlib+y}
  6407. then :
  6408. withval=$with_zlib; ne_use_zlib=$withval
  6409. else case e in #(
  6410. e) ne_use_zlib=yes ;;
  6411. esac
  6412. fi
  6413. if test "$ne_use_zlib" = "yes"; then
  6414. ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  6415. if test "x$ac_cv_header_zlib_h" = xyes
  6416. then :
  6417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
  6418. printf %s "checking for inflate in -lz... " >&6; }
  6419. if test ${ac_cv_lib_z_inflate+y}
  6420. then :
  6421. printf %s "(cached) " >&6
  6422. else case e in #(
  6423. e) ac_check_lib_save_LIBS=$LIBS
  6424. LIBS="-lz $LIBS"
  6425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6426. /* end confdefs.h. */
  6427. /* Override any GCC internal prototype to avoid an error.
  6428. Use char because int might match the return type of a GCC
  6429. builtin and then its argument prototype would still apply.
  6430. The 'extern "C"' is for builds by C++ compilers;
  6431. although this is not generally supported in C code supporting it here
  6432. has little cost and some practical benefit (sr 110532). */
  6433. #ifdef __cplusplus
  6434. extern "C"
  6435. #endif
  6436. char inflate (void);
  6437. int
  6438. main (void)
  6439. {
  6440. return inflate ();
  6441. ;
  6442. return 0;
  6443. }
  6444. _ACEOF
  6445. if ac_fn_c_try_link "$LINENO"
  6446. then :
  6447. ac_cv_lib_z_inflate=yes
  6448. else case e in #(
  6449. e) ac_cv_lib_z_inflate=no ;;
  6450. esac
  6451. fi
  6452. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6453. conftest$ac_exeext conftest.$ac_ext
  6454. LIBS=$ac_check_lib_save_LIBS ;;
  6455. esac
  6456. fi
  6457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
  6458. printf "%s\n" "$ac_cv_lib_z_inflate" >&6; }
  6459. if test "x$ac_cv_lib_z_inflate" = xyes
  6460. then :
  6461. NEON_LIBS="$NEON_LIBS -lz"
  6462. NE_FLAG_ZLIB=yes
  6463. printf "%s\n" "#define NE_HAVE_ZLIB 1" >>confdefs.h
  6464. ne_ZLIB_message="zlib support enabled, using -lz"
  6465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: zlib support enabled, using -lz" >&5
  6466. printf "%s\n" "$as_me: zlib support enabled, using -lz" >&6;}
  6467. else case e in #(
  6468. e)
  6469. NE_FLAG_ZLIB=no
  6470. ne_ZLIB_message="zlib library not found"
  6471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: zlib library not found" >&5
  6472. printf "%s\n" "$as_me: zlib library not found" >&6;}
  6473. ;;
  6474. esac
  6475. fi
  6476. else case e in #(
  6477. e)
  6478. NE_FLAG_ZLIB=no
  6479. ne_ZLIB_message="zlib header not found"
  6480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: zlib header not found" >&5
  6481. printf "%s\n" "$as_me: zlib header not found" >&6;}
  6482. ;;
  6483. esac
  6484. fi
  6485. else
  6486. NE_FLAG_ZLIB=no
  6487. ne_ZLIB_message="zlib not enabled"
  6488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: zlib not enabled" >&5
  6489. printf "%s\n" "$as_me: zlib not enabled" >&6;}
  6490. fi
  6491. # Conditionally enable ACL support
  6492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable ACL support in neon" >&5
  6493. printf %s "checking whether to enable ACL support in neon... " >&6; }
  6494. if test "x$neon_no_acl" = "xyes"; then
  6495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6496. printf "%s\n" "no" >&6; }
  6497. else
  6498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6499. printf "%s\n" "yes" >&6; }
  6500. NEON_EXTRAOBJS="$NEON_EXTRAOBJS ne_oldacl ne_acl3744"
  6501. fi
  6502. # Check whether --with-ssl was given.
  6503. if test ${with_ssl+y}
  6504. then :
  6505. withval=$with_ssl;
  6506. fi
  6507. # Check whether --with-egd was given.
  6508. if test ${with_egd+y}
  6509. then :
  6510. withval=$with_egd;
  6511. fi
  6512. # Check whether --with-pakchois was given.
  6513. if test ${with_pakchois+y}
  6514. then :
  6515. withval=$with_pakchois;
  6516. fi
  6517. case $with_ssl in
  6518. /*)
  6519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: to use SSL libraries in non-standard locations, try --with-ssl --with-libs=$with_ssl" >&5
  6520. printf "%s\n" "$as_me: to use SSL libraries in non-standard locations, try --with-ssl --with-libs=$with_ssl" >&6;}
  6521. as_fn_error $? "--with-ssl does not take a path argument" "$LINENO" 5
  6522. ;;
  6523. yes|openssl)
  6524. if test -n "$ac_tool_prefix"; then
  6525. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  6526. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  6527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6528. printf %s "checking for $ac_word... " >&6; }
  6529. if test ${ac_cv_path_PKG_CONFIG+y}
  6530. then :
  6531. printf %s "(cached) " >&6
  6532. else case e in #(
  6533. e) case $PKG_CONFIG in
  6534. [\\/]* | ?:[\\/]*)
  6535. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  6536. ;;
  6537. *)
  6538. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6539. for as_dir in $PATH
  6540. do
  6541. IFS=$as_save_IFS
  6542. case $as_dir in #(((
  6543. '') as_dir=./ ;;
  6544. */) ;;
  6545. *) as_dir=$as_dir/ ;;
  6546. esac
  6547. for ac_exec_ext in '' $ac_executable_extensions; do
  6548. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6549. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  6550. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6551. break 2
  6552. fi
  6553. done
  6554. done
  6555. IFS=$as_save_IFS
  6556. ;;
  6557. esac ;;
  6558. esac
  6559. fi
  6560. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  6561. if test -n "$PKG_CONFIG"; then
  6562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  6563. printf "%s\n" "$PKG_CONFIG" >&6; }
  6564. else
  6565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6566. printf "%s\n" "no" >&6; }
  6567. fi
  6568. fi
  6569. if test -z "$ac_cv_path_PKG_CONFIG"; then
  6570. ac_pt_PKG_CONFIG=$PKG_CONFIG
  6571. # Extract the first word of "pkg-config", so it can be a program name with args.
  6572. set dummy pkg-config; ac_word=$2
  6573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6574. printf %s "checking for $ac_word... " >&6; }
  6575. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  6576. then :
  6577. printf %s "(cached) " >&6
  6578. else case e in #(
  6579. e) case $ac_pt_PKG_CONFIG in
  6580. [\\/]* | ?:[\\/]*)
  6581. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  6582. ;;
  6583. *)
  6584. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6585. for as_dir in $PATH
  6586. do
  6587. IFS=$as_save_IFS
  6588. case $as_dir in #(((
  6589. '') as_dir=./ ;;
  6590. */) ;;
  6591. *) as_dir=$as_dir/ ;;
  6592. esac
  6593. for ac_exec_ext in '' $ac_executable_extensions; do
  6594. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6595. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  6596. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6597. break 2
  6598. fi
  6599. done
  6600. done
  6601. IFS=$as_save_IFS
  6602. ;;
  6603. esac ;;
  6604. esac
  6605. fi
  6606. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  6607. if test -n "$ac_pt_PKG_CONFIG"; then
  6608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  6609. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  6610. else
  6611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6612. printf "%s\n" "no" >&6; }
  6613. fi
  6614. if test "x$ac_pt_PKG_CONFIG" = x; then
  6615. PKG_CONFIG="no"
  6616. else
  6617. case $cross_compiling:$ac_tool_warned in
  6618. yes:)
  6619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6620. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6621. ac_tool_warned=yes ;;
  6622. esac
  6623. PKG_CONFIG=$ac_pt_PKG_CONFIG
  6624. fi
  6625. else
  6626. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  6627. fi
  6628. if test "x$PKG_CONFIG" = "xno"; then
  6629. : Not using pkg-config
  6630. # Either OpenSSL library may require -ldl if built with dynamic engine support
  6631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing RSA_new" >&5
  6632. printf %s "checking for library containing RSA_new... " >&6; }
  6633. if test ${ne_cv_libsfor_RSA_new+y}
  6634. then :
  6635. printf %s "(cached) " >&6
  6636. else case e in #(
  6637. e)
  6638. case $ne_cv_os_uname in
  6639. MINGW*|MSYS_NT*)
  6640. ;;
  6641. *)
  6642. case RSA_new in
  6643. getaddrinfo)
  6644. ne__prologue="#include <netdb.h>"
  6645. ne__code="getaddrinfo(0,0,0,0);"
  6646. ;;
  6647. socket)
  6648. ne__prologue="#include <sys/socket.h>"
  6649. ne__code="socket(0,0,0);"
  6650. ;;
  6651. bindtextdomain)
  6652. ne__prologue="#include <libintl.h>"
  6653. ne__code="bindtextdomain(\"\",\"\");"
  6654. ;;
  6655. *)
  6656. ne__prologue=""
  6657. ne__code="RSA_new();"
  6658. ;;
  6659. esac
  6660. ;;
  6661. esac
  6662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6663. /* end confdefs.h. */
  6664. $ne__prologue
  6665. int
  6666. main (void)
  6667. {
  6668. $ne__code
  6669. ;
  6670. return 0;
  6671. }
  6672. _ACEOF
  6673. if ac_fn_c_try_link "$LINENO"
  6674. then :
  6675. ne_cv_libsfor_RSA_new="none needed"
  6676. else case e in #(
  6677. e)
  6678. ne_sl_save_LIBS=$LIBS
  6679. ne_cv_libsfor_RSA_new="not found"
  6680. for lib in crypto; do
  6681. case $ne_cv_os_uname in
  6682. MINGW*|MSYS_NT*)
  6683. case $lib in
  6684. ws2_32)
  6685. ne__prologue="#include <winsock2.h>"
  6686. case RSA_new in
  6687. gethostbyname)
  6688. ne__code="gethostbyname(\"\")"
  6689. ;;
  6690. socket)
  6691. ne__code="socket(0,0,0);"
  6692. ;;
  6693. *)
  6694. ne__code="RSA_new();"
  6695. ;;
  6696. esac
  6697. ;;
  6698. *)
  6699. ne__prologue=""
  6700. ne__code=""
  6701. ;;
  6702. esac
  6703. ;;
  6704. *)
  6705. ;;
  6706. esac
  6707. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  6708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6709. /* end confdefs.h. */
  6710. $ne__prologue
  6711. int
  6712. main (void)
  6713. {
  6714. $ne__code
  6715. ;
  6716. return 0;
  6717. }
  6718. _ACEOF
  6719. if ac_fn_c_try_link "$LINENO"
  6720. then :
  6721. ne_cv_libsfor_RSA_new="-l$lib"; break
  6722. fi
  6723. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6724. conftest$ac_exeext conftest.$ac_ext
  6725. LIBS="$ne_sl_save_LIBS -l$lib -ldl $NEON_LIBS"
  6726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6727. /* end confdefs.h. */
  6728. $ne__prologue
  6729. int
  6730. main (void)
  6731. {
  6732. $ne__code
  6733. ;
  6734. return 0;
  6735. }
  6736. _ACEOF
  6737. if ac_fn_c_try_link "$LINENO"
  6738. then :
  6739. ne_cv_libsfor_RSA_new="-l$lib -ldl"; break
  6740. fi
  6741. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6742. conftest$ac_exeext conftest.$ac_ext
  6743. done
  6744. LIBS=$ne_sl_save_LIBS
  6745. ;;
  6746. esac
  6747. fi
  6748. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6749. conftest$ac_exeext conftest.$ac_ext
  6750. ;;
  6751. esac
  6752. fi
  6753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_RSA_new" >&5
  6754. printf "%s\n" "$ne_cv_libsfor_RSA_new" >&6; }
  6755. ac_fn_c_check_header_compile "$LINENO" "wspiapi.h" "ac_cv_header_wspiapi_h" "$ac_includes_default"
  6756. if test "x$ac_cv_header_wspiapi_h" = xyes
  6757. then :
  6758. printf "%s\n" "#define HAVE_WSPIAPI_H 1" >>confdefs.h
  6759. fi
  6760. if test "$ne_cv_libsfor_RSA_new" = "not found"; then
  6761. as_fn_error $? "could not find library containing RSA_new" "$LINENO" 5
  6762. elif test "$ne_cv_libsfor_RSA_new" = "none needed"; then
  6763. :
  6764. else
  6765. NEON_LIBS="$ne_cv_libsfor_RSA_new $NEON_LIBS"
  6766. fi
  6767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
  6768. printf %s "checking for library containing SSL_library_init... " >&6; }
  6769. if test ${ne_cv_libsfor_SSL_library_init+y}
  6770. then :
  6771. printf %s "(cached) " >&6
  6772. else case e in #(
  6773. e)
  6774. case $ne_cv_os_uname in
  6775. MINGW*|MSYS_NT*)
  6776. ;;
  6777. *)
  6778. case SSL_library_init in
  6779. getaddrinfo)
  6780. ne__prologue="#include <netdb.h>"
  6781. ne__code="getaddrinfo(0,0,0,0);"
  6782. ;;
  6783. socket)
  6784. ne__prologue="#include <sys/socket.h>"
  6785. ne__code="socket(0,0,0);"
  6786. ;;
  6787. bindtextdomain)
  6788. ne__prologue="#include <libintl.h>"
  6789. ne__code="bindtextdomain(\"\",\"\");"
  6790. ;;
  6791. *)
  6792. ne__prologue=""
  6793. ne__code="SSL_library_init();"
  6794. ;;
  6795. esac
  6796. ;;
  6797. esac
  6798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6799. /* end confdefs.h. */
  6800. $ne__prologue
  6801. int
  6802. main (void)
  6803. {
  6804. $ne__code
  6805. ;
  6806. return 0;
  6807. }
  6808. _ACEOF
  6809. if ac_fn_c_try_link "$LINENO"
  6810. then :
  6811. ne_cv_libsfor_SSL_library_init="none needed"
  6812. else case e in #(
  6813. e)
  6814. ne_sl_save_LIBS=$LIBS
  6815. ne_cv_libsfor_SSL_library_init="not found"
  6816. for lib in ssl; do
  6817. case $ne_cv_os_uname in
  6818. MINGW*|MSYS_NT*)
  6819. case $lib in
  6820. ws2_32)
  6821. ne__prologue="#include <winsock2.h>"
  6822. case SSL_library_init in
  6823. gethostbyname)
  6824. ne__code="gethostbyname(\"\")"
  6825. ;;
  6826. socket)
  6827. ne__code="socket(0,0,0);"
  6828. ;;
  6829. *)
  6830. ne__code="SSL_library_init();"
  6831. ;;
  6832. esac
  6833. ;;
  6834. *)
  6835. ne__prologue=""
  6836. ne__code=""
  6837. ;;
  6838. esac
  6839. ;;
  6840. *)
  6841. ;;
  6842. esac
  6843. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  6844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6845. /* end confdefs.h. */
  6846. $ne__prologue
  6847. int
  6848. main (void)
  6849. {
  6850. $ne__code
  6851. ;
  6852. return 0;
  6853. }
  6854. _ACEOF
  6855. if ac_fn_c_try_link "$LINENO"
  6856. then :
  6857. ne_cv_libsfor_SSL_library_init="-l$lib"; break
  6858. fi
  6859. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6860. conftest$ac_exeext conftest.$ac_ext
  6861. LIBS="$ne_sl_save_LIBS -l$lib -ldl $NEON_LIBS"
  6862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6863. /* end confdefs.h. */
  6864. $ne__prologue
  6865. int
  6866. main (void)
  6867. {
  6868. $ne__code
  6869. ;
  6870. return 0;
  6871. }
  6872. _ACEOF
  6873. if ac_fn_c_try_link "$LINENO"
  6874. then :
  6875. ne_cv_libsfor_SSL_library_init="-l$lib -ldl"; break
  6876. fi
  6877. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6878. conftest$ac_exeext conftest.$ac_ext
  6879. done
  6880. LIBS=$ne_sl_save_LIBS
  6881. ;;
  6882. esac
  6883. fi
  6884. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6885. conftest$ac_exeext conftest.$ac_ext
  6886. ;;
  6887. esac
  6888. fi
  6889. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_SSL_library_init" >&5
  6890. printf "%s\n" "$ne_cv_libsfor_SSL_library_init" >&6; }
  6891. ac_fn_c_check_header_compile "$LINENO" "wspiapi.h" "ac_cv_header_wspiapi_h" "$ac_includes_default"
  6892. if test "x$ac_cv_header_wspiapi_h" = xyes
  6893. then :
  6894. printf "%s\n" "#define HAVE_WSPIAPI_H 1" >>confdefs.h
  6895. fi
  6896. if test "$ne_cv_libsfor_SSL_library_init" = "not found"; then
  6897. as_fn_error $? "could not find library containing SSL_library_init" "$LINENO" 5
  6898. elif test "$ne_cv_libsfor_SSL_library_init" = "none needed"; then
  6899. :
  6900. else
  6901. NEON_LIBS="$ne_cv_libsfor_SSL_library_init $NEON_LIBS"
  6902. fi
  6903. NE_SSL_VERSION="(0.9.7 or later)"
  6904. else
  6905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl pkg-config data" >&5
  6906. printf %s "checking for openssl pkg-config data... " >&6; }
  6907. if test ${ne_cv_pkg_openssl+y}
  6908. then :
  6909. printf %s "(cached) " >&6
  6910. else case e in #(
  6911. e) if $PKG_CONFIG openssl; then
  6912. ne_cv_pkg_openssl=yes
  6913. else
  6914. ne_cv_pkg_openssl=no
  6915. fi ;;
  6916. esac
  6917. fi
  6918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_openssl" >&5
  6919. printf "%s\n" "$ne_cv_pkg_openssl" >&6; }
  6920. if test "$ne_cv_pkg_openssl" = "yes"; then
  6921. NE_SSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  6922. NE_SSL_LIBS=`$PKG_CONFIG --libs openssl`
  6923. NE_SSL_VERSION=`$PKG_CONFIG --modversion openssl`
  6924. : Using provided pkg-config data
  6925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using OpenSSL $NE_SSL_VERSION library configuration from pkg-config" >&5
  6926. printf "%s\n" "$as_me: using OpenSSL $NE_SSL_VERSION library configuration from pkg-config" >&6;}
  6927. CPPFLAGS="$CPPFLAGS ${NE_SSL_CFLAGS}"
  6928. NEON_LIBS="$NEON_LIBS ${NE_SSL_LIBS}"
  6929. else
  6930. : No pkg-config for openssl provided
  6931. # Either OpenSSL library may require -ldl if built with dynamic engine support
  6932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing RSA_new" >&5
  6933. printf %s "checking for library containing RSA_new... " >&6; }
  6934. if test ${ne_cv_libsfor_RSA_new+y}
  6935. then :
  6936. printf %s "(cached) " >&6
  6937. else case e in #(
  6938. e)
  6939. case $ne_cv_os_uname in
  6940. MINGW*|MSYS_NT*)
  6941. ;;
  6942. *)
  6943. case RSA_new in
  6944. getaddrinfo)
  6945. ne__prologue="#include <netdb.h>"
  6946. ne__code="getaddrinfo(0,0,0,0);"
  6947. ;;
  6948. socket)
  6949. ne__prologue="#include <sys/socket.h>"
  6950. ne__code="socket(0,0,0);"
  6951. ;;
  6952. bindtextdomain)
  6953. ne__prologue="#include <libintl.h>"
  6954. ne__code="bindtextdomain(\"\",\"\");"
  6955. ;;
  6956. *)
  6957. ne__prologue=""
  6958. ne__code="RSA_new();"
  6959. ;;
  6960. esac
  6961. ;;
  6962. esac
  6963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6964. /* end confdefs.h. */
  6965. $ne__prologue
  6966. int
  6967. main (void)
  6968. {
  6969. $ne__code
  6970. ;
  6971. return 0;
  6972. }
  6973. _ACEOF
  6974. if ac_fn_c_try_link "$LINENO"
  6975. then :
  6976. ne_cv_libsfor_RSA_new="none needed"
  6977. else case e in #(
  6978. e)
  6979. ne_sl_save_LIBS=$LIBS
  6980. ne_cv_libsfor_RSA_new="not found"
  6981. for lib in crypto; do
  6982. case $ne_cv_os_uname in
  6983. MINGW*|MSYS_NT*)
  6984. case $lib in
  6985. ws2_32)
  6986. ne__prologue="#include <winsock2.h>"
  6987. case RSA_new in
  6988. gethostbyname)
  6989. ne__code="gethostbyname(\"\")"
  6990. ;;
  6991. socket)
  6992. ne__code="socket(0,0,0);"
  6993. ;;
  6994. *)
  6995. ne__code="RSA_new();"
  6996. ;;
  6997. esac
  6998. ;;
  6999. *)
  7000. ne__prologue=""
  7001. ne__code=""
  7002. ;;
  7003. esac
  7004. ;;
  7005. *)
  7006. ;;
  7007. esac
  7008. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  7009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7010. /* end confdefs.h. */
  7011. $ne__prologue
  7012. int
  7013. main (void)
  7014. {
  7015. $ne__code
  7016. ;
  7017. return 0;
  7018. }
  7019. _ACEOF
  7020. if ac_fn_c_try_link "$LINENO"
  7021. then :
  7022. ne_cv_libsfor_RSA_new="-l$lib"; break
  7023. fi
  7024. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7025. conftest$ac_exeext conftest.$ac_ext
  7026. LIBS="$ne_sl_save_LIBS -l$lib -ldl $NEON_LIBS"
  7027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7028. /* end confdefs.h. */
  7029. $ne__prologue
  7030. int
  7031. main (void)
  7032. {
  7033. $ne__code
  7034. ;
  7035. return 0;
  7036. }
  7037. _ACEOF
  7038. if ac_fn_c_try_link "$LINENO"
  7039. then :
  7040. ne_cv_libsfor_RSA_new="-l$lib -ldl"; break
  7041. fi
  7042. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7043. conftest$ac_exeext conftest.$ac_ext
  7044. done
  7045. LIBS=$ne_sl_save_LIBS
  7046. ;;
  7047. esac
  7048. fi
  7049. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7050. conftest$ac_exeext conftest.$ac_ext
  7051. ;;
  7052. esac
  7053. fi
  7054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_RSA_new" >&5
  7055. printf "%s\n" "$ne_cv_libsfor_RSA_new" >&6; }
  7056. ac_fn_c_check_header_compile "$LINENO" "wspiapi.h" "ac_cv_header_wspiapi_h" "$ac_includes_default"
  7057. if test "x$ac_cv_header_wspiapi_h" = xyes
  7058. then :
  7059. printf "%s\n" "#define HAVE_WSPIAPI_H 1" >>confdefs.h
  7060. fi
  7061. if test "$ne_cv_libsfor_RSA_new" = "not found"; then
  7062. as_fn_error $? "could not find library containing RSA_new" "$LINENO" 5
  7063. elif test "$ne_cv_libsfor_RSA_new" = "none needed"; then
  7064. :
  7065. else
  7066. NEON_LIBS="$ne_cv_libsfor_RSA_new $NEON_LIBS"
  7067. fi
  7068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
  7069. printf %s "checking for library containing SSL_library_init... " >&6; }
  7070. if test ${ne_cv_libsfor_SSL_library_init+y}
  7071. then :
  7072. printf %s "(cached) " >&6
  7073. else case e in #(
  7074. e)
  7075. case $ne_cv_os_uname in
  7076. MINGW*|MSYS_NT*)
  7077. ;;
  7078. *)
  7079. case SSL_library_init in
  7080. getaddrinfo)
  7081. ne__prologue="#include <netdb.h>"
  7082. ne__code="getaddrinfo(0,0,0,0);"
  7083. ;;
  7084. socket)
  7085. ne__prologue="#include <sys/socket.h>"
  7086. ne__code="socket(0,0,0);"
  7087. ;;
  7088. bindtextdomain)
  7089. ne__prologue="#include <libintl.h>"
  7090. ne__code="bindtextdomain(\"\",\"\");"
  7091. ;;
  7092. *)
  7093. ne__prologue=""
  7094. ne__code="SSL_library_init();"
  7095. ;;
  7096. esac
  7097. ;;
  7098. esac
  7099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7100. /* end confdefs.h. */
  7101. $ne__prologue
  7102. int
  7103. main (void)
  7104. {
  7105. $ne__code
  7106. ;
  7107. return 0;
  7108. }
  7109. _ACEOF
  7110. if ac_fn_c_try_link "$LINENO"
  7111. then :
  7112. ne_cv_libsfor_SSL_library_init="none needed"
  7113. else case e in #(
  7114. e)
  7115. ne_sl_save_LIBS=$LIBS
  7116. ne_cv_libsfor_SSL_library_init="not found"
  7117. for lib in ssl; do
  7118. case $ne_cv_os_uname in
  7119. MINGW*|MSYS_NT*)
  7120. case $lib in
  7121. ws2_32)
  7122. ne__prologue="#include <winsock2.h>"
  7123. case SSL_library_init in
  7124. gethostbyname)
  7125. ne__code="gethostbyname(\"\")"
  7126. ;;
  7127. socket)
  7128. ne__code="socket(0,0,0);"
  7129. ;;
  7130. *)
  7131. ne__code="SSL_library_init();"
  7132. ;;
  7133. esac
  7134. ;;
  7135. *)
  7136. ne__prologue=""
  7137. ne__code=""
  7138. ;;
  7139. esac
  7140. ;;
  7141. *)
  7142. ;;
  7143. esac
  7144. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  7145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7146. /* end confdefs.h. */
  7147. $ne__prologue
  7148. int
  7149. main (void)
  7150. {
  7151. $ne__code
  7152. ;
  7153. return 0;
  7154. }
  7155. _ACEOF
  7156. if ac_fn_c_try_link "$LINENO"
  7157. then :
  7158. ne_cv_libsfor_SSL_library_init="-l$lib"; break
  7159. fi
  7160. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7161. conftest$ac_exeext conftest.$ac_ext
  7162. LIBS="$ne_sl_save_LIBS -l$lib -ldl $NEON_LIBS"
  7163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7164. /* end confdefs.h. */
  7165. $ne__prologue
  7166. int
  7167. main (void)
  7168. {
  7169. $ne__code
  7170. ;
  7171. return 0;
  7172. }
  7173. _ACEOF
  7174. if ac_fn_c_try_link "$LINENO"
  7175. then :
  7176. ne_cv_libsfor_SSL_library_init="-l$lib -ldl"; break
  7177. fi
  7178. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7179. conftest$ac_exeext conftest.$ac_ext
  7180. done
  7181. LIBS=$ne_sl_save_LIBS
  7182. ;;
  7183. esac
  7184. fi
  7185. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7186. conftest$ac_exeext conftest.$ac_ext
  7187. ;;
  7188. esac
  7189. fi
  7190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_SSL_library_init" >&5
  7191. printf "%s\n" "$ne_cv_libsfor_SSL_library_init" >&6; }
  7192. ac_fn_c_check_header_compile "$LINENO" "wspiapi.h" "ac_cv_header_wspiapi_h" "$ac_includes_default"
  7193. if test "x$ac_cv_header_wspiapi_h" = xyes
  7194. then :
  7195. printf "%s\n" "#define HAVE_WSPIAPI_H 1" >>confdefs.h
  7196. fi
  7197. if test "$ne_cv_libsfor_SSL_library_init" = "not found"; then
  7198. as_fn_error $? "could not find library containing SSL_library_init" "$LINENO" 5
  7199. elif test "$ne_cv_libsfor_SSL_library_init" = "none needed"; then
  7200. :
  7201. else
  7202. NEON_LIBS="$ne_cv_libsfor_SSL_library_init $NEON_LIBS"
  7203. fi
  7204. NE_SSL_VERSION="(0.9.7 or later)"
  7205. fi
  7206. fi
  7207. for ac_header in openssl/ssl.h openssl/opensslv.h
  7208. do :
  7209. as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
  7210. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7211. if eval test \"x\$"$as_ac_Header"\" = x"yes"
  7212. then :
  7213. cat >>confdefs.h <<_ACEOF
  7214. #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
  7215. _ACEOF
  7216. else case e in #(
  7217. e) as_fn_error $? "OpenSSL headers not found, cannot enable SSL support" "$LINENO" 5 ;;
  7218. esac
  7219. fi
  7220. done
  7221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL version is >= 0.9.7" >&5
  7222. printf %s "checking OpenSSL version is >= 0.9.7... " >&6; }
  7223. if test ${ne_cv_lib_ssl097+y}
  7224. then :
  7225. printf %s "(cached) " >&6
  7226. else case e in #(
  7227. e)
  7228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7229. /* end confdefs.h. */
  7230. #include <openssl/opensslv.h>
  7231. #if OPENSSL_VERSION_NUMBER >= 0x00907000L
  7232. good
  7233. #endif
  7234. _ACEOF
  7235. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7236. $EGREP_TRADITIONAL "good" >/dev/null 2>&1
  7237. then :
  7238. ne_cv_lib_ssl097=yes
  7239. else case e in #(
  7240. e) ne_cv_lib_ssl097=no ;;
  7241. esac
  7242. fi
  7243. rm -rf conftest*
  7244. ;;
  7245. esac
  7246. fi
  7247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_lib_ssl097" >&5
  7248. printf "%s\n" "$ne_cv_lib_ssl097" >&6; }
  7249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL version is >= 1.1.0" >&5
  7250. printf %s "checking OpenSSL version is >= 1.1.0... " >&6; }
  7251. if test ${ne_cv_lib_ssl110+y}
  7252. then :
  7253. printf %s "(cached) " >&6
  7254. else case e in #(
  7255. e)
  7256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7257. /* end confdefs.h. */
  7258. #include <openssl/opensslv.h>
  7259. #if OPENSSL_VERSION_NUMBER >= 0x10100000L
  7260. good
  7261. #endif
  7262. _ACEOF
  7263. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7264. $EGREP_TRADITIONAL "good" >/dev/null 2>&1
  7265. then :
  7266. ne_cv_lib_ssl110=yes
  7267. else case e in #(
  7268. e) ne_cv_lib_ssl110=no ;;
  7269. esac
  7270. fi
  7271. rm -rf conftest*
  7272. ;;
  7273. esac
  7274. fi
  7275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_lib_ssl110" >&5
  7276. printf "%s\n" "$ne_cv_lib_ssl110" >&6; }
  7277. if test "$ne_cv_lib_ssl110" = "yes"; then
  7278. NE_FLAG_SSL=yes
  7279. printf "%s\n" "#define NE_HAVE_SSL 1" >>confdefs.h
  7280. ne_SSL_message="SSL support enabled, using OpenSSL $NE_SSL_VERSION"
  7281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: SSL support enabled, using OpenSSL $NE_SSL_VERSION" >&5
  7282. printf "%s\n" "$as_me: SSL support enabled, using OpenSSL $NE_SSL_VERSION" >&6;}
  7283. printf "%s\n" "#define HAVE_OPENSSL11 1" >>confdefs.h
  7284. elif test "$ne_cv_lib_ssl097" = "yes"; then
  7285. # Enable EGD support if using 0.9.7 or newer
  7286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OpenSSL >= 0.9.7; EGD support not needed in neon" >&5
  7287. printf "%s\n" "$as_me: OpenSSL >= 0.9.7; EGD support not needed in neon" >&6;}
  7288. NE_FLAG_SSL=yes
  7289. printf "%s\n" "#define NE_HAVE_SSL 1" >>confdefs.h
  7290. ne_SSL_message="SSL support enabled, using OpenSSL $NE_SSL_VERSION"
  7291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: SSL support enabled, using OpenSSL $NE_SSL_VERSION" >&5
  7292. printf "%s\n" "$as_me: SSL support enabled, using OpenSSL $NE_SSL_VERSION" >&6;}
  7293. ne_cf_save_LIBS=$LIBS
  7294. LIBS="$LIBS $NEON_LIBS"
  7295. ac_fn_c_check_func "$LINENO" "CRYPTO_set_idptr_callback" "ac_cv_func_CRYPTO_set_idptr_callback"
  7296. if test "x$ac_cv_func_CRYPTO_set_idptr_callback" = xyes
  7297. then :
  7298. printf "%s\n" "#define HAVE_CRYPTO_SET_IDPTR_CALLBACK 1" >>confdefs.h
  7299. fi
  7300. ac_fn_c_check_func "$LINENO" "SSL_SESSION_cmp" "ac_cv_func_SSL_SESSION_cmp"
  7301. if test "x$ac_cv_func_SSL_SESSION_cmp" = xyes
  7302. then :
  7303. printf "%s\n" "#define HAVE_SSL_SESSION_CMP 1" >>confdefs.h
  7304. fi
  7305. LIBS=$ne_cf_save_LIBS
  7306. else
  7307. # Fail if OpenSSL is older than 0.9.6
  7308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL version is >= 0.9.6" >&5
  7309. printf %s "checking OpenSSL version is >= 0.9.6... " >&6; }
  7310. if test ${ne_cv_lib_ssl096+y}
  7311. then :
  7312. printf %s "(cached) " >&6
  7313. else case e in #(
  7314. e)
  7315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7316. /* end confdefs.h. */
  7317. #include <openssl/opensslv.h>
  7318. #if OPENSSL_VERSION_NUMBER >= 0x00906000L
  7319. good
  7320. #endif
  7321. _ACEOF
  7322. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7323. $EGREP_TRADITIONAL "good" >/dev/null 2>&1
  7324. then :
  7325. ne_cv_lib_ssl096=yes
  7326. else case e in #(
  7327. e) ne_cv_lib_ssl096=no ;;
  7328. esac
  7329. fi
  7330. rm -rf conftest*
  7331. ;;
  7332. esac
  7333. fi
  7334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_lib_ssl096" >&5
  7335. printf "%s\n" "$ne_cv_lib_ssl096" >&6; }
  7336. if test "$ne_cv_lib_ssl096" != "yes"; then
  7337. as_fn_error $? "OpenSSL 0.9.6 or later is required" "$LINENO" 5
  7338. fi
  7339. NE_FLAG_SSL=yes
  7340. printf "%s\n" "#define NE_HAVE_SSL 1" >>confdefs.h
  7341. ne_SSL_message="SSL support enabled, using OpenSSL (0.9.6 or later)"
  7342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: SSL support enabled, using OpenSSL (0.9.6 or later)" >&5
  7343. printf "%s\n" "$as_me: SSL support enabled, using OpenSSL (0.9.6 or later)" >&6;}
  7344. case "$with_egd" in
  7345. yes|no) ne_cv_lib_sslegd=$with_egd ;;
  7346. /*) ne_cv_lib_sslegd=yes
  7347. printf "%s\n" "#define EGD_PATH \"$with_egd\"" >>confdefs.h
  7348. ;;
  7349. *) # Guess whether EGD support is needed
  7350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable EGD support" >&5
  7351. printf %s "checking whether to enable EGD support... " >&6; }
  7352. if test ${ne_cv_lib_sslegd+y}
  7353. then :
  7354. printf %s "(cached) " >&6
  7355. else case e in #(
  7356. e) if test -r /dev/random || test -r /dev/urandom; then
  7357. ne_cv_lib_sslegd=no
  7358. else
  7359. ne_cv_lib_sslegd=yes
  7360. fi ;;
  7361. esac
  7362. fi
  7363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_lib_sslegd" >&5
  7364. printf "%s\n" "$ne_cv_lib_sslegd" >&6; }
  7365. ;;
  7366. esac
  7367. if test "$ne_cv_lib_sslegd" = "yes"; then
  7368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: EGD support enabled for seeding OpenSSL PRNG" >&5
  7369. printf "%s\n" "$as_me: EGD support enabled for seeding OpenSSL PRNG" >&6;}
  7370. printf "%s\n" "#define ENABLE_EGD 1" >>confdefs.h
  7371. fi
  7372. fi
  7373. printf "%s\n" "#define HAVE_OPENSSL 1" >>confdefs.h
  7374. NEON_EXTRAOBJS="$NEON_EXTRAOBJS ne_openssl"
  7375. printf "%s\n" "#define HAVE_NTLM 1" >>confdefs.h
  7376. ;;
  7377. gnutls)
  7378. if test -n "$ac_tool_prefix"; then
  7379. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  7380. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  7381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7382. printf %s "checking for $ac_word... " >&6; }
  7383. if test ${ac_cv_path_PKG_CONFIG+y}
  7384. then :
  7385. printf %s "(cached) " >&6
  7386. else case e in #(
  7387. e) case $PKG_CONFIG in
  7388. [\\/]* | ?:[\\/]*)
  7389. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  7390. ;;
  7391. *)
  7392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7393. for as_dir in $PATH
  7394. do
  7395. IFS=$as_save_IFS
  7396. case $as_dir in #(((
  7397. '') as_dir=./ ;;
  7398. */) ;;
  7399. *) as_dir=$as_dir/ ;;
  7400. esac
  7401. for ac_exec_ext in '' $ac_executable_extensions; do
  7402. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7403. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  7404. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7405. break 2
  7406. fi
  7407. done
  7408. done
  7409. IFS=$as_save_IFS
  7410. ;;
  7411. esac ;;
  7412. esac
  7413. fi
  7414. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  7415. if test -n "$PKG_CONFIG"; then
  7416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  7417. printf "%s\n" "$PKG_CONFIG" >&6; }
  7418. else
  7419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7420. printf "%s\n" "no" >&6; }
  7421. fi
  7422. fi
  7423. if test -z "$ac_cv_path_PKG_CONFIG"; then
  7424. ac_pt_PKG_CONFIG=$PKG_CONFIG
  7425. # Extract the first word of "pkg-config", so it can be a program name with args.
  7426. set dummy pkg-config; ac_word=$2
  7427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7428. printf %s "checking for $ac_word... " >&6; }
  7429. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  7430. then :
  7431. printf %s "(cached) " >&6
  7432. else case e in #(
  7433. e) case $ac_pt_PKG_CONFIG in
  7434. [\\/]* | ?:[\\/]*)
  7435. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  7436. ;;
  7437. *)
  7438. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7439. for as_dir in $PATH
  7440. do
  7441. IFS=$as_save_IFS
  7442. case $as_dir in #(((
  7443. '') as_dir=./ ;;
  7444. */) ;;
  7445. *) as_dir=$as_dir/ ;;
  7446. esac
  7447. for ac_exec_ext in '' $ac_executable_extensions; do
  7448. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7449. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  7450. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7451. break 2
  7452. fi
  7453. done
  7454. done
  7455. IFS=$as_save_IFS
  7456. ;;
  7457. esac ;;
  7458. esac
  7459. fi
  7460. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  7461. if test -n "$ac_pt_PKG_CONFIG"; then
  7462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  7463. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  7464. else
  7465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7466. printf "%s\n" "no" >&6; }
  7467. fi
  7468. if test "x$ac_pt_PKG_CONFIG" = x; then
  7469. PKG_CONFIG="no"
  7470. else
  7471. case $cross_compiling:$ac_tool_warned in
  7472. yes:)
  7473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7474. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7475. ac_tool_warned=yes ;;
  7476. esac
  7477. PKG_CONFIG=$ac_pt_PKG_CONFIG
  7478. fi
  7479. else
  7480. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  7481. fi
  7482. if test "x$PKG_CONFIG" = "xno"; then
  7483. : Not using pkg-config
  7484. # Fall back on libgnutls-config script
  7485. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  7486. set dummy libgnutls-config; ac_word=$2
  7487. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7488. printf %s "checking for $ac_word... " >&6; }
  7489. if test ${ac_cv_path_GNUTLS_CONFIG+y}
  7490. then :
  7491. printf %s "(cached) " >&6
  7492. else case e in #(
  7493. e) case $GNUTLS_CONFIG in
  7494. [\\/]* | ?:[\\/]*)
  7495. ac_cv_path_GNUTLS_CONFIG="$GNUTLS_CONFIG" # Let the user override the test with a path.
  7496. ;;
  7497. *)
  7498. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7499. for as_dir in $PATH
  7500. do
  7501. IFS=$as_save_IFS
  7502. case $as_dir in #(((
  7503. '') as_dir=./ ;;
  7504. */) ;;
  7505. *) as_dir=$as_dir/ ;;
  7506. esac
  7507. for ac_exec_ext in '' $ac_executable_extensions; do
  7508. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7509. ac_cv_path_GNUTLS_CONFIG="$as_dir$ac_word$ac_exec_ext"
  7510. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7511. break 2
  7512. fi
  7513. done
  7514. done
  7515. IFS=$as_save_IFS
  7516. test -z "$ac_cv_path_GNUTLS_CONFIG" && ac_cv_path_GNUTLS_CONFIG="no"
  7517. ;;
  7518. esac ;;
  7519. esac
  7520. fi
  7521. GNUTLS_CONFIG=$ac_cv_path_GNUTLS_CONFIG
  7522. if test -n "$GNUTLS_CONFIG"; then
  7523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUTLS_CONFIG" >&5
  7524. printf "%s\n" "$GNUTLS_CONFIG" >&6; }
  7525. else
  7526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7527. printf "%s\n" "no" >&6; }
  7528. fi
  7529. if test "$GNUTLS_CONFIG" = "no"; then
  7530. as_fn_error $? "could not find libgnutls-config in \$PATH" "$LINENO" 5
  7531. fi
  7532. CPPFLAGS="$CPPFLAGS `$GNUTLS_CONFIG --cflags`"
  7533. NEON_LIBS="$NEON_LIBS `$GNUTLS_CONFIG --libs`"
  7534. NE_SSL_VERSION="`$GNUTLS_CONFIG --version`"
  7535. else
  7536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls pkg-config data" >&5
  7537. printf %s "checking for gnutls pkg-config data... " >&6; }
  7538. if test ${ne_cv_pkg_gnutls+y}
  7539. then :
  7540. printf %s "(cached) " >&6
  7541. else case e in #(
  7542. e) if $PKG_CONFIG gnutls; then
  7543. ne_cv_pkg_gnutls=yes
  7544. else
  7545. ne_cv_pkg_gnutls=no
  7546. fi ;;
  7547. esac
  7548. fi
  7549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_gnutls" >&5
  7550. printf "%s\n" "$ne_cv_pkg_gnutls" >&6; }
  7551. if test "$ne_cv_pkg_gnutls" = "yes"; then
  7552. NE_SSL_CFLAGS=`$PKG_CONFIG --cflags gnutls`
  7553. NE_SSL_LIBS=`$PKG_CONFIG --libs gnutls`
  7554. NE_SSL_VERSION=`$PKG_CONFIG --modversion gnutls`
  7555. : Using provided pkg-config data
  7556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using GnuTLS configuration from pkg-config" >&5
  7557. printf "%s\n" "$as_me: using GnuTLS configuration from pkg-config" >&6;}
  7558. CPPFLAGS="$CPPFLAGS ${NE_SSL_CFLAGS}"
  7559. NEON_LIBS="$NEON_LIBS ${NE_SSL_LIBS}"
  7560. else
  7561. : No pkg-config for gnutls provided
  7562. # Fall back on libgnutls-config script
  7563. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  7564. set dummy libgnutls-config; ac_word=$2
  7565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7566. printf %s "checking for $ac_word... " >&6; }
  7567. if test ${ac_cv_path_GNUTLS_CONFIG+y}
  7568. then :
  7569. printf %s "(cached) " >&6
  7570. else case e in #(
  7571. e) case $GNUTLS_CONFIG in
  7572. [\\/]* | ?:[\\/]*)
  7573. ac_cv_path_GNUTLS_CONFIG="$GNUTLS_CONFIG" # Let the user override the test with a path.
  7574. ;;
  7575. *)
  7576. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7577. for as_dir in $PATH
  7578. do
  7579. IFS=$as_save_IFS
  7580. case $as_dir in #(((
  7581. '') as_dir=./ ;;
  7582. */) ;;
  7583. *) as_dir=$as_dir/ ;;
  7584. esac
  7585. for ac_exec_ext in '' $ac_executable_extensions; do
  7586. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7587. ac_cv_path_GNUTLS_CONFIG="$as_dir$ac_word$ac_exec_ext"
  7588. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7589. break 2
  7590. fi
  7591. done
  7592. done
  7593. IFS=$as_save_IFS
  7594. test -z "$ac_cv_path_GNUTLS_CONFIG" && ac_cv_path_GNUTLS_CONFIG="no"
  7595. ;;
  7596. esac ;;
  7597. esac
  7598. fi
  7599. GNUTLS_CONFIG=$ac_cv_path_GNUTLS_CONFIG
  7600. if test -n "$GNUTLS_CONFIG"; then
  7601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUTLS_CONFIG" >&5
  7602. printf "%s\n" "$GNUTLS_CONFIG" >&6; }
  7603. else
  7604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7605. printf "%s\n" "no" >&6; }
  7606. fi
  7607. if test "$GNUTLS_CONFIG" = "no"; then
  7608. as_fn_error $? "could not find libgnutls-config in \$PATH" "$LINENO" 5
  7609. fi
  7610. CPPFLAGS="$CPPFLAGS `$GNUTLS_CONFIG --cflags`"
  7611. NEON_LIBS="$NEON_LIBS `$GNUTLS_CONFIG --libs`"
  7612. NE_SSL_VERSION="`$GNUTLS_CONFIG --version`"
  7613. fi
  7614. fi
  7615. ac_fn_c_check_header_compile "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
  7616. if test "x$ac_cv_header_gnutls_gnutls_h" = xyes
  7617. then :
  7618. else case e in #(
  7619. e) as_fn_error $? "could not find gnutls/gnutls.h in include path" "$LINENO" 5 ;;
  7620. esac
  7621. fi
  7622. NE_FLAG_SSL=yes
  7623. printf "%s\n" "#define NE_HAVE_SSL 1" >>confdefs.h
  7624. ne_SSL_message="SSL support enabled, using GnuTLS $NE_SSL_VERSION"
  7625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: SSL support enabled, using GnuTLS $NE_SSL_VERSION" >&5
  7626. printf "%s\n" "$as_me: SSL support enabled, using GnuTLS $NE_SSL_VERSION" >&6;}
  7627. NEON_EXTRAOBJS="$NEON_EXTRAOBJS ne_gnutls"
  7628. printf "%s\n" "#define HAVE_GNUTLS 1" >>confdefs.h
  7629. # Check for functions in later releases
  7630. ne_cf_save_LIBS=$LIBS
  7631. LIBS="$LIBS $NEON_LIBS"
  7632. ac_fn_c_check_func "$LINENO" "gnutls_session_get_data2" "ac_cv_func_gnutls_session_get_data2"
  7633. if test "x$ac_cv_func_gnutls_session_get_data2" = xyes
  7634. then :
  7635. printf "%s\n" "#define HAVE_GNUTLS_SESSION_GET_DATA2 1" >>confdefs.h
  7636. fi
  7637. ac_fn_c_check_func "$LINENO" "gnutls_x509_dn_get_rdn_ava" "ac_cv_func_gnutls_x509_dn_get_rdn_ava"
  7638. if test "x$ac_cv_func_gnutls_x509_dn_get_rdn_ava" = xyes
  7639. then :
  7640. printf "%s\n" "#define HAVE_GNUTLS_X509_DN_GET_RDN_AVA 1" >>confdefs.h
  7641. fi
  7642. ac_fn_c_check_func "$LINENO" "gnutls_certificate_get_issuer" "ac_cv_func_gnutls_certificate_get_issuer"
  7643. if test "x$ac_cv_func_gnutls_certificate_get_issuer" = xyes
  7644. then :
  7645. printf "%s\n" "#define HAVE_GNUTLS_CERTIFICATE_GET_ISSUER 1" >>confdefs.h
  7646. fi
  7647. ac_fn_c_check_func "$LINENO" "gnutls_certificate_get_x509_cas" "ac_cv_func_gnutls_certificate_get_x509_cas"
  7648. if test "x$ac_cv_func_gnutls_certificate_get_x509_cas" = xyes
  7649. then :
  7650. printf "%s\n" "#define HAVE_GNUTLS_CERTIFICATE_GET_X509_CAS 1" >>confdefs.h
  7651. fi
  7652. ac_fn_c_check_func "$LINENO" "gnutls_x509_crt_sign2" "ac_cv_func_gnutls_x509_crt_sign2"
  7653. if test "x$ac_cv_func_gnutls_x509_crt_sign2" = xyes
  7654. then :
  7655. printf "%s\n" "#define HAVE_GNUTLS_X509_CRT_SIGN2 1" >>confdefs.h
  7656. fi
  7657. ac_fn_c_check_func "$LINENO" "gnutls_x509_crt_equals" "ac_cv_func_gnutls_x509_crt_equals"
  7658. if test "x$ac_cv_func_gnutls_x509_crt_equals" = xyes
  7659. then :
  7660. printf "%s\n" "#define HAVE_GNUTLS_X509_CRT_EQUALS 1" >>confdefs.h
  7661. fi
  7662. ac_fn_c_check_func "$LINENO" "gnutls_set_default_priority_append" "ac_cv_func_gnutls_set_default_priority_append"
  7663. if test "x$ac_cv_func_gnutls_set_default_priority_append" = xyes
  7664. then :
  7665. printf "%s\n" "#define HAVE_GNUTLS_SET_DEFAULT_PRIORITY_APPEND 1" >>confdefs.h
  7666. fi
  7667. ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_retrieve_function2" "ac_cv_func_gnutls_certificate_set_retrieve_function2"
  7668. if test "x$ac_cv_func_gnutls_certificate_set_retrieve_function2" = xyes
  7669. then :
  7670. printf "%s\n" "#define HAVE_GNUTLS_CERTIFICATE_SET_RETRIEVE_FUNCTION2 1" >>confdefs.h
  7671. fi
  7672. ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_x509_system_trust" "ac_cv_func_gnutls_certificate_set_x509_system_trust"
  7673. if test "x$ac_cv_func_gnutls_certificate_set_x509_system_trust" = xyes
  7674. then :
  7675. printf "%s\n" "#define HAVE_GNUTLS_CERTIFICATE_SET_X509_SYSTEM_TRUST 1" >>confdefs.h
  7676. fi
  7677. ac_fn_c_check_func "$LINENO" "gnutls_privkey_import_ext" "ac_cv_func_gnutls_privkey_import_ext"
  7678. if test "x$ac_cv_func_gnutls_privkey_import_ext" = xyes
  7679. then :
  7680. printf "%s\n" "#define HAVE_GNUTLS_PRIVKEY_IMPORT_EXT 1" >>confdefs.h
  7681. fi
  7682. LIBS=$ne_cf_save_LIBS
  7683. # fail if gnutls_x509_crt_sign2 is not found (it was introduced in 1.2.0, which is required)
  7684. if test x${ac_cv_func_gnutls_x509_crt_sign2} != xyes; then
  7685. as_fn_error $? "GnuTLS version predates gnutls_x509_crt_sign2, newer version required (at least 1.2.0)" "$LINENO" 5
  7686. fi
  7687. # Check for iconv support if using the new RDN access functions:
  7688. if test ${ac_cv_func_gnutls_x509_dn_get_rdn_ava}X${ac_cv_header_iconv_h} = yesXyes; then
  7689. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  7690. if test "x$ac_cv_func_iconv" = xyes
  7691. then :
  7692. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  7693. fi
  7694. fi
  7695. ;;
  7696. *) # Default to off; only create crypto-enabled binaries if requested.
  7697. NE_FLAG_SSL=no
  7698. ne_SSL_message="SSL support is not enabled"
  7699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: SSL support is not enabled" >&5
  7700. printf "%s\n" "$as_me: SSL support is not enabled" >&6;}
  7701. NE_FLAG_TS_SSL=no
  7702. ne_TS_SSL_message="Thread-safe SSL support is not enabled"
  7703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Thread-safe SSL support is not enabled" >&5
  7704. printf "%s\n" "$as_me: Thread-safe SSL support is not enabled" >&6;}
  7705. NEON_EXTRAOBJS="$NEON_EXTRAOBJS ne_stubssl"
  7706. ;;
  7707. esac
  7708. # Check whether --with-ca-bundle was given.
  7709. if test ${with_ca_bundle+y}
  7710. then :
  7711. withval=$with_ca_bundle;
  7712. else case e in #(
  7713. e) with_ca_bundle=no ;;
  7714. esac
  7715. fi
  7716. case ${NE_FLAG_SSL}-${with_ca_bundle} in
  7717. *-no) ;;
  7718. yes-*)
  7719. printf "%s\n" "#define NE_SSL_CA_BUNDLE \"${with_ca_bundle}\"" >>confdefs.h
  7720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using ${with_ca_bundle} as default SSL CA bundle" >&5
  7721. printf "%s\n" "$as_me: Using ${with_ca_bundle} as default SSL CA bundle" >&6;}
  7722. ;;
  7723. esac
  7724. # Check whether --enable-threadsafe-ssl was given.
  7725. if test ${enable_threadsafe_ssl+y}
  7726. then :
  7727. enableval=$enable_threadsafe_ssl;
  7728. else case e in #(
  7729. e) enable_threadsafe_ssl=no ;;
  7730. esac
  7731. fi
  7732. case ${enable_threadsafe_ssl}X${ne_cv_lib_ssl110} in
  7733. *Xyes)
  7734. NE_FLAG_TS_SSL=yes
  7735. printf "%s\n" "#define NE_HAVE_TS_SSL 1" >>confdefs.h
  7736. ne_TS_SSL_message="OpenSSL is natively thread-safe"
  7737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OpenSSL is natively thread-safe" >&5
  7738. printf "%s\n" "$as_me: OpenSSL is natively thread-safe" >&6;}
  7739. ;;
  7740. posixX*|yesX*)
  7741. ne_pthr_ok=yes
  7742. for ac_func in pthread_mutex_init pthread_mutex_lock
  7743. do :
  7744. as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
  7745. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7746. if eval test \"x\$"$as_ac_var"\" = x"yes"
  7747. then :
  7748. cat >>confdefs.h <<_ACEOF
  7749. #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
  7750. _ACEOF
  7751. else case e in #(
  7752. e) ne_pthr_ok=no ;;
  7753. esac
  7754. fi
  7755. done
  7756. if test "${ne_pthr_ok}" = "no"; then
  7757. as_fn_error $? "could not find POSIX mutex interfaces; (try CC=\"${CC} -pthread\"?)" "$LINENO" 5
  7758. fi
  7759. NE_FLAG_TS_SSL=yes
  7760. printf "%s\n" "#define NE_HAVE_TS_SSL 1" >>confdefs.h
  7761. ne_TS_SSL_message="Thread-safe SSL supported using POSIX threads"
  7762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Thread-safe SSL supported using POSIX threads" >&5
  7763. printf "%s\n" "$as_me: Thread-safe SSL supported using POSIX threads" >&6;}
  7764. ;;
  7765. *)
  7766. NE_FLAG_TS_SSL=no
  7767. ne_TS_SSL_message="Thread-safe SSL not supported"
  7768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Thread-safe SSL not supported" >&5
  7769. printf "%s\n" "$as_me: Thread-safe SSL not supported" >&6;}
  7770. ;;
  7771. esac
  7772. case ${with_pakchois}X${ac_cv_func_gnutls_privkey_import_ext}Y${ne_cv_lib_ssl097} in
  7773. noX*Y*) ;;
  7774. *X*Yyes|*XyesY*)
  7775. # PKCS#11... ho!
  7776. if test -n "$ac_tool_prefix"; then
  7777. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  7778. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  7779. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7780. printf %s "checking for $ac_word... " >&6; }
  7781. if test ${ac_cv_path_PKG_CONFIG+y}
  7782. then :
  7783. printf %s "(cached) " >&6
  7784. else case e in #(
  7785. e) case $PKG_CONFIG in
  7786. [\\/]* | ?:[\\/]*)
  7787. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  7788. ;;
  7789. *)
  7790. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7791. for as_dir in $PATH
  7792. do
  7793. IFS=$as_save_IFS
  7794. case $as_dir in #(((
  7795. '') as_dir=./ ;;
  7796. */) ;;
  7797. *) as_dir=$as_dir/ ;;
  7798. esac
  7799. for ac_exec_ext in '' $ac_executable_extensions; do
  7800. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7801. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  7802. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7803. break 2
  7804. fi
  7805. done
  7806. done
  7807. IFS=$as_save_IFS
  7808. ;;
  7809. esac ;;
  7810. esac
  7811. fi
  7812. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  7813. if test -n "$PKG_CONFIG"; then
  7814. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  7815. printf "%s\n" "$PKG_CONFIG" >&6; }
  7816. else
  7817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7818. printf "%s\n" "no" >&6; }
  7819. fi
  7820. fi
  7821. if test -z "$ac_cv_path_PKG_CONFIG"; then
  7822. ac_pt_PKG_CONFIG=$PKG_CONFIG
  7823. # Extract the first word of "pkg-config", so it can be a program name with args.
  7824. set dummy pkg-config; ac_word=$2
  7825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7826. printf %s "checking for $ac_word... " >&6; }
  7827. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  7828. then :
  7829. printf %s "(cached) " >&6
  7830. else case e in #(
  7831. e) case $ac_pt_PKG_CONFIG in
  7832. [\\/]* | ?:[\\/]*)
  7833. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  7834. ;;
  7835. *)
  7836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7837. for as_dir in $PATH
  7838. do
  7839. IFS=$as_save_IFS
  7840. case $as_dir in #(((
  7841. '') as_dir=./ ;;
  7842. */) ;;
  7843. *) as_dir=$as_dir/ ;;
  7844. esac
  7845. for ac_exec_ext in '' $ac_executable_extensions; do
  7846. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7847. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  7848. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7849. break 2
  7850. fi
  7851. done
  7852. done
  7853. IFS=$as_save_IFS
  7854. ;;
  7855. esac ;;
  7856. esac
  7857. fi
  7858. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  7859. if test -n "$ac_pt_PKG_CONFIG"; then
  7860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  7861. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  7862. else
  7863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7864. printf "%s\n" "no" >&6; }
  7865. fi
  7866. if test "x$ac_pt_PKG_CONFIG" = x; then
  7867. PKG_CONFIG="no"
  7868. else
  7869. case $cross_compiling:$ac_tool_warned in
  7870. yes:)
  7871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7872. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7873. ac_tool_warned=yes ;;
  7874. esac
  7875. PKG_CONFIG=$ac_pt_PKG_CONFIG
  7876. fi
  7877. else
  7878. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  7879. fi
  7880. if test "x$PKG_CONFIG" = "xno"; then
  7881. : Not using pkg-config
  7882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pakchois library not found; no PKCS#11 support" >&5
  7883. printf "%s\n" "$as_me: pakchois library not found; no PKCS#11 support" >&6;}
  7884. else
  7885. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pakchois pkg-config data" >&5
  7886. printf %s "checking for pakchois pkg-config data... " >&6; }
  7887. if test ${ne_cv_pkg_pakchois+y}
  7888. then :
  7889. printf %s "(cached) " >&6
  7890. else case e in #(
  7891. e) if $PKG_CONFIG pakchois; then
  7892. ne_cv_pkg_pakchois=yes
  7893. else
  7894. ne_cv_pkg_pakchois=no
  7895. fi ;;
  7896. esac
  7897. fi
  7898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_pakchois" >&5
  7899. printf "%s\n" "$ne_cv_pkg_pakchois" >&6; }
  7900. if test "$ne_cv_pkg_pakchois" = "yes"; then
  7901. NE_PK11_CFLAGS=`$PKG_CONFIG --cflags pakchois`
  7902. NE_PK11_LIBS=`$PKG_CONFIG --libs pakchois`
  7903. NE_PK11_VERSION=`$PKG_CONFIG --modversion pakchois`
  7904. : Using provided pkg-config data
  7905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using pakchois $NE_PK11_VERSION for PKCS#11 support" >&5
  7906. printf "%s\n" "$as_me: using pakchois $NE_PK11_VERSION for PKCS#11 support" >&6;}
  7907. printf "%s\n" "#define HAVE_PAKCHOIS 1" >>confdefs.h
  7908. CPPFLAGS="$CPPFLAGS ${NE_PK11_CFLAGS}"
  7909. NEON_LIBS="${NEON_LIBS} ${NE_PK11_LIBS}"
  7910. else
  7911. : No pkg-config for pakchois provided
  7912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pakchois library not found; no PKCS#11 support" >&5
  7913. printf "%s\n" "$as_me: pakchois library not found; no PKCS#11 support" >&6;}
  7914. fi
  7915. fi
  7916. ;;
  7917. esac
  7918. # Check whether --with-gssapi was given.
  7919. if test ${with_gssapi+y}
  7920. then :
  7921. withval=$with_gssapi; need_gssapi=$withval
  7922. else case e in #(
  7923. e) need_gssapi=no ;;
  7924. esac
  7925. fi
  7926. if test "$with_gssapi" != "no"; then
  7927. ne_save_CFLAGS=$CFLAGS
  7928. ne_save_LIBS=$NEON_LIBS
  7929. if test -n "$ac_tool_prefix"; then
  7930. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  7931. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  7932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7933. printf %s "checking for $ac_word... " >&6; }
  7934. if test ${ac_cv_path_PKG_CONFIG+y}
  7935. then :
  7936. printf %s "(cached) " >&6
  7937. else case e in #(
  7938. e) case $PKG_CONFIG in
  7939. [\\/]* | ?:[\\/]*)
  7940. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  7941. ;;
  7942. *)
  7943. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7944. for as_dir in $PATH
  7945. do
  7946. IFS=$as_save_IFS
  7947. case $as_dir in #(((
  7948. '') as_dir=./ ;;
  7949. */) ;;
  7950. *) as_dir=$as_dir/ ;;
  7951. esac
  7952. for ac_exec_ext in '' $ac_executable_extensions; do
  7953. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7954. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  7955. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7956. break 2
  7957. fi
  7958. done
  7959. done
  7960. IFS=$as_save_IFS
  7961. ;;
  7962. esac ;;
  7963. esac
  7964. fi
  7965. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  7966. if test -n "$PKG_CONFIG"; then
  7967. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  7968. printf "%s\n" "$PKG_CONFIG" >&6; }
  7969. else
  7970. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7971. printf "%s\n" "no" >&6; }
  7972. fi
  7973. fi
  7974. if test -z "$ac_cv_path_PKG_CONFIG"; then
  7975. ac_pt_PKG_CONFIG=$PKG_CONFIG
  7976. # Extract the first word of "pkg-config", so it can be a program name with args.
  7977. set dummy pkg-config; ac_word=$2
  7978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7979. printf %s "checking for $ac_word... " >&6; }
  7980. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  7981. then :
  7982. printf %s "(cached) " >&6
  7983. else case e in #(
  7984. e) case $ac_pt_PKG_CONFIG in
  7985. [\\/]* | ?:[\\/]*)
  7986. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  7987. ;;
  7988. *)
  7989. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7990. for as_dir in $PATH
  7991. do
  7992. IFS=$as_save_IFS
  7993. case $as_dir in #(((
  7994. '') as_dir=./ ;;
  7995. */) ;;
  7996. *) as_dir=$as_dir/ ;;
  7997. esac
  7998. for ac_exec_ext in '' $ac_executable_extensions; do
  7999. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8000. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  8001. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8002. break 2
  8003. fi
  8004. done
  8005. done
  8006. IFS=$as_save_IFS
  8007. ;;
  8008. esac ;;
  8009. esac
  8010. fi
  8011. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  8012. if test -n "$ac_pt_PKG_CONFIG"; then
  8013. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  8014. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  8015. else
  8016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8017. printf "%s\n" "no" >&6; }
  8018. fi
  8019. if test "x$ac_pt_PKG_CONFIG" = x; then
  8020. PKG_CONFIG="no"
  8021. else
  8022. case $cross_compiling:$ac_tool_warned in
  8023. yes:)
  8024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8025. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8026. ac_tool_warned=yes ;;
  8027. esac
  8028. PKG_CONFIG=$ac_pt_PKG_CONFIG
  8029. fi
  8030. else
  8031. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  8032. fi
  8033. if test "x$PKG_CONFIG" = "xno"; then
  8034. : Not using pkg-config
  8035. # Extract the first word of "krb5-config", so it can be a program name with args.
  8036. set dummy krb5-config; ac_word=$2
  8037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8038. printf %s "checking for $ac_word... " >&6; }
  8039. if test ${ac_cv_path_KRB5_CONF_TOOL+y}
  8040. then :
  8041. printf %s "(cached) " >&6
  8042. else case e in #(
  8043. e) case $KRB5_CONF_TOOL in
  8044. [\\/]* | ?:[\\/]*)
  8045. ac_cv_path_KRB5_CONF_TOOL="$KRB5_CONF_TOOL" # Let the user override the test with a path.
  8046. ;;
  8047. *)
  8048. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8049. as_dummy="$PATH:/usr/kerberos/bin"
  8050. for as_dir in $as_dummy
  8051. do
  8052. IFS=$as_save_IFS
  8053. case $as_dir in #(((
  8054. '') as_dir=./ ;;
  8055. */) ;;
  8056. *) as_dir=$as_dir/ ;;
  8057. esac
  8058. for ac_exec_ext in '' $ac_executable_extensions; do
  8059. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8060. ac_cv_path_KRB5_CONF_TOOL="$as_dir$ac_word$ac_exec_ext"
  8061. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8062. break 2
  8063. fi
  8064. done
  8065. done
  8066. IFS=$as_save_IFS
  8067. test -z "$ac_cv_path_KRB5_CONF_TOOL" && ac_cv_path_KRB5_CONF_TOOL="none"
  8068. ;;
  8069. esac ;;
  8070. esac
  8071. fi
  8072. KRB5_CONF_TOOL=$ac_cv_path_KRB5_CONF_TOOL
  8073. if test -n "$KRB5_CONF_TOOL"; then
  8074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONF_TOOL" >&5
  8075. printf "%s\n" "$KRB5_CONF_TOOL" >&6; }
  8076. else
  8077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8078. printf "%s\n" "no" >&6; }
  8079. fi
  8080. if test "x$KRB5_CONF_TOOL" != "xnone"; then
  8081. NE_GSSAPI_LIBS="`${KRB5_CONF_TOOL} --libs gssapi`"
  8082. NE_GSSAPI_CFLAGS="`${KRB5_CONF_TOOL} --cflags gssapi`"
  8083. NE_GSSAPI_VERSION="`${KRB5_CONF_TOOL} --version`"
  8084. fi
  8085. else
  8086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5-gssapi pkg-config data" >&5
  8087. printf %s "checking for krb5-gssapi pkg-config data... " >&6; }
  8088. if test ${ne_cv_pkg_krb5_gssapi+y}
  8089. then :
  8090. printf %s "(cached) " >&6
  8091. else case e in #(
  8092. e) if $PKG_CONFIG krb5-gssapi; then
  8093. ne_cv_pkg_krb5_gssapi=yes
  8094. else
  8095. ne_cv_pkg_krb5_gssapi=no
  8096. fi ;;
  8097. esac
  8098. fi
  8099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_krb5_gssapi" >&5
  8100. printf "%s\n" "$ne_cv_pkg_krb5_gssapi" >&6; }
  8101. if test "$ne_cv_pkg_krb5_gssapi" = "yes"; then
  8102. NE_GSSAPI_CFLAGS=`$PKG_CONFIG --cflags krb5-gssapi`
  8103. NE_GSSAPI_LIBS=`$PKG_CONFIG --libs krb5-gssapi`
  8104. NE_GSSAPI_VERSION=`$PKG_CONFIG --modversion krb5-gssapi`
  8105. : Using provided pkg-config data
  8106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using GSSAPI configuration from pkg-config" >&5
  8107. printf "%s\n" "$as_me: using GSSAPI configuration from pkg-config" >&6;}
  8108. KRB5_CONF_TOOL=pkgconf
  8109. else
  8110. : No pkg-config for krb5-gssapi provided
  8111. # Extract the first word of "krb5-config", so it can be a program name with args.
  8112. set dummy krb5-config; ac_word=$2
  8113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8114. printf %s "checking for $ac_word... " >&6; }
  8115. if test ${ac_cv_path_KRB5_CONF_TOOL+y}
  8116. then :
  8117. printf %s "(cached) " >&6
  8118. else case e in #(
  8119. e) case $KRB5_CONF_TOOL in
  8120. [\\/]* | ?:[\\/]*)
  8121. ac_cv_path_KRB5_CONF_TOOL="$KRB5_CONF_TOOL" # Let the user override the test with a path.
  8122. ;;
  8123. *)
  8124. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8125. as_dummy="$PATH:/usr/kerberos/bin"
  8126. for as_dir in $as_dummy
  8127. do
  8128. IFS=$as_save_IFS
  8129. case $as_dir in #(((
  8130. '') as_dir=./ ;;
  8131. */) ;;
  8132. *) as_dir=$as_dir/ ;;
  8133. esac
  8134. for ac_exec_ext in '' $ac_executable_extensions; do
  8135. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8136. ac_cv_path_KRB5_CONF_TOOL="$as_dir$ac_word$ac_exec_ext"
  8137. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8138. break 2
  8139. fi
  8140. done
  8141. done
  8142. IFS=$as_save_IFS
  8143. test -z "$ac_cv_path_KRB5_CONF_TOOL" && ac_cv_path_KRB5_CONF_TOOL="none"
  8144. ;;
  8145. esac ;;
  8146. esac
  8147. fi
  8148. KRB5_CONF_TOOL=$ac_cv_path_KRB5_CONF_TOOL
  8149. if test -n "$KRB5_CONF_TOOL"; then
  8150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONF_TOOL" >&5
  8151. printf "%s\n" "$KRB5_CONF_TOOL" >&6; }
  8152. else
  8153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8154. printf "%s\n" "no" >&6; }
  8155. fi
  8156. if test "x$KRB5_CONF_TOOL" != "xnone"; then
  8157. NE_GSSAPI_LIBS="`${KRB5_CONF_TOOL} --libs gssapi`"
  8158. NE_GSSAPI_CFLAGS="`${KRB5_CONF_TOOL} --cflags gssapi`"
  8159. NE_GSSAPI_VERSION="`${KRB5_CONF_TOOL} --version`"
  8160. fi
  8161. fi
  8162. fi
  8163. else
  8164. KRB5_CONF_TOOL=none
  8165. fi
  8166. if test "x$KRB5_CONF_TOOL" != "xnone"; then
  8167. CFLAGS="$CFLAGS ${NE_GSSAPI_CFLAGS}"
  8168. NEON_LIBS="${NEON_LIBS} ${NE_GSSAPI_LIBS}"
  8169. # MIT and Heimdal put gssapi.h in different places
  8170. for ac_header in gssapi/gssapi.h gssapi.h
  8171. do :
  8172. as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
  8173. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  8174. if eval test \"x\$"$as_ac_Header"\" = x"yes"
  8175. then :
  8176. cat >>confdefs.h <<_ACEOF
  8177. #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
  8178. _ACEOF
  8179. ne_cf_save_LIBS=$LIBS
  8180. LIBS="$LIBS $NEON_LIBS"
  8181. for ac_func in gss_init_sec_context
  8182. do :
  8183. ac_fn_c_check_func "$LINENO" "gss_init_sec_context" "ac_cv_func_gss_init_sec_context"
  8184. if test "x$ac_cv_func_gss_init_sec_context" = xyes
  8185. then :
  8186. printf "%s\n" "#define HAVE_GSS_INIT_SEC_CONTEXT 1" >>confdefs.h
  8187. ne_save_CFLAGS=$CFLAGS
  8188. ne_save_LIBS=$NEON_LIBS
  8189. NE_FLAG_GSSAPI=yes
  8190. printf "%s\n" "#define NE_HAVE_GSSAPI 1" >>confdefs.h
  8191. ne_GSSAPI_message="GSSAPI support enabled, using library ${NE_GSSAPI_LIBS} version ${NE_GSSAPI_VERSION}"
  8192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: GSSAPI support enabled, using library ${NE_GSSAPI_LIBS} version ${NE_GSSAPI_VERSION}" >&5
  8193. printf "%s\n" "$as_me: GSSAPI support enabled, using library ${NE_GSSAPI_LIBS} version ${NE_GSSAPI_VERSION}" >&6;}
  8194. printf "%s\n" "#define HAVE_GSSAPI 1" >>confdefs.h
  8195. ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi_generic.h" "ac_cv_header_gssapi_gssapi_generic_h" "$ac_includes_default"
  8196. if test "x$ac_cv_header_gssapi_gssapi_generic_h" = xyes
  8197. then :
  8198. printf "%s\n" "#define HAVE_GSSAPI_GSSAPI_GENERIC_H 1" >>confdefs.h
  8199. fi
  8200. # Older versions of MIT Kerberos lack GSS_C_NT_HOSTBASED_SERVICE
  8201. ac_fn_check_decl "$LINENO" "GSS_C_NT_HOSTBASED_SERVICE" "ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" "#ifdef HAVE_GSSAPI_GSSAPI_H
  8202. #include <gssapi/gssapi.h>
  8203. #else
  8204. #include <gssapi.h>
  8205. #endif
  8206. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  8207. if test "x$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" = xyes
  8208. then :
  8209. else case e in #(
  8210. e)
  8211. printf "%s\n" "#define GSS_C_NT_HOSTBASED_SERVICE gss_nt_service_name" >>confdefs.h
  8212. ;;
  8213. esac
  8214. fi
  8215. fi
  8216. done
  8217. LIBS=$ne_cf_save_LIBS
  8218. break
  8219. fi
  8220. done
  8221. CFLAGS=$ne_save_CFLAGS
  8222. NEON_LIBS=$ne_save_LIBS
  8223. fi
  8224. if test x$NE_FLAG_GSSAPI != xyes; then
  8225. if test $need_gssapi = yes; then
  8226. # Fail if --with-gssapi was specified but no library support found
  8227. as_fn_error $? "could not enable GSSAPI support" "$LINENO" 5
  8228. fi
  8229. NE_FLAG_GSSAPI=no
  8230. ne_GSSAPI_message="GSSAPI authentication is not supported"
  8231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: GSSAPI authentication is not supported" >&5
  8232. printf "%s\n" "$as_me: GSSAPI authentication is not supported" >&6;}
  8233. fi
  8234. # Check whether --with-libproxy was given.
  8235. if test ${with_libproxy+y}
  8236. then :
  8237. withval=$with_libproxy;
  8238. fi
  8239. if test "x$with_libproxy" != "xno"; then
  8240. if test -n "$ac_tool_prefix"; then
  8241. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  8242. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  8243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8244. printf %s "checking for $ac_word... " >&6; }
  8245. if test ${ac_cv_path_PKG_CONFIG+y}
  8246. then :
  8247. printf %s "(cached) " >&6
  8248. else case e in #(
  8249. e) case $PKG_CONFIG in
  8250. [\\/]* | ?:[\\/]*)
  8251. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  8252. ;;
  8253. *)
  8254. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8255. for as_dir in $PATH
  8256. do
  8257. IFS=$as_save_IFS
  8258. case $as_dir in #(((
  8259. '') as_dir=./ ;;
  8260. */) ;;
  8261. *) as_dir=$as_dir/ ;;
  8262. esac
  8263. for ac_exec_ext in '' $ac_executable_extensions; do
  8264. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8265. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  8266. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8267. break 2
  8268. fi
  8269. done
  8270. done
  8271. IFS=$as_save_IFS
  8272. ;;
  8273. esac ;;
  8274. esac
  8275. fi
  8276. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  8277. if test -n "$PKG_CONFIG"; then
  8278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  8279. printf "%s\n" "$PKG_CONFIG" >&6; }
  8280. else
  8281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8282. printf "%s\n" "no" >&6; }
  8283. fi
  8284. fi
  8285. if test -z "$ac_cv_path_PKG_CONFIG"; then
  8286. ac_pt_PKG_CONFIG=$PKG_CONFIG
  8287. # Extract the first word of "pkg-config", so it can be a program name with args.
  8288. set dummy pkg-config; ac_word=$2
  8289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8290. printf %s "checking for $ac_word... " >&6; }
  8291. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  8292. then :
  8293. printf %s "(cached) " >&6
  8294. else case e in #(
  8295. e) case $ac_pt_PKG_CONFIG in
  8296. [\\/]* | ?:[\\/]*)
  8297. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  8298. ;;
  8299. *)
  8300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8301. for as_dir in $PATH
  8302. do
  8303. IFS=$as_save_IFS
  8304. case $as_dir in #(((
  8305. '') as_dir=./ ;;
  8306. */) ;;
  8307. *) as_dir=$as_dir/ ;;
  8308. esac
  8309. for ac_exec_ext in '' $ac_executable_extensions; do
  8310. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8311. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  8312. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8313. break 2
  8314. fi
  8315. done
  8316. done
  8317. IFS=$as_save_IFS
  8318. ;;
  8319. esac ;;
  8320. esac
  8321. fi
  8322. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  8323. if test -n "$ac_pt_PKG_CONFIG"; then
  8324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  8325. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  8326. else
  8327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8328. printf "%s\n" "no" >&6; }
  8329. fi
  8330. if test "x$ac_pt_PKG_CONFIG" = x; then
  8331. PKG_CONFIG="no"
  8332. else
  8333. case $cross_compiling:$ac_tool_warned in
  8334. yes:)
  8335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8336. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8337. ac_tool_warned=yes ;;
  8338. esac
  8339. PKG_CONFIG=$ac_pt_PKG_CONFIG
  8340. fi
  8341. else
  8342. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  8343. fi
  8344. if test "x$PKG_CONFIG" = "xno"; then
  8345. : Not using pkg-config
  8346. NE_FLAG_LIBPXY=no
  8347. ne_LIBPXY_message="libproxy support not enabled"
  8348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libproxy support not enabled" >&5
  8349. printf "%s\n" "$as_me: libproxy support not enabled" >&6;}
  8350. else
  8351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libproxy-1.0 pkg-config data" >&5
  8352. printf %s "checking for libproxy-1.0 pkg-config data... " >&6; }
  8353. if test ${ne_cv_pkg_libproxy_1_0+y}
  8354. then :
  8355. printf %s "(cached) " >&6
  8356. else case e in #(
  8357. e) if $PKG_CONFIG libproxy-1.0; then
  8358. ne_cv_pkg_libproxy_1_0=yes
  8359. else
  8360. ne_cv_pkg_libproxy_1_0=no
  8361. fi ;;
  8362. esac
  8363. fi
  8364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_libproxy_1_0" >&5
  8365. printf "%s\n" "$ne_cv_pkg_libproxy_1_0" >&6; }
  8366. if test "$ne_cv_pkg_libproxy_1_0" = "yes"; then
  8367. NE_PXY_CFLAGS=`$PKG_CONFIG --cflags libproxy-1.0`
  8368. NE_PXY_LIBS=`$PKG_CONFIG --libs libproxy-1.0`
  8369. NE_PXY_VERSION=`$PKG_CONFIG --modversion libproxy-1.0`
  8370. : Using provided pkg-config data
  8371. printf "%s\n" "#define HAVE_LIBPROXY 1" >>confdefs.h
  8372. CPPFLAGS="$CPPFLAGS $NE_PXY_CFLAGS"
  8373. NEON_LIBS="$NEON_LIBS ${NE_PXY_LIBS}"
  8374. NE_FLAG_LIBPXY=yes
  8375. printf "%s\n" "#define NE_HAVE_LIBPXY 1" >>confdefs.h
  8376. ne_LIBPXY_message="libproxy support enabled using libproxy $NE_PXY_VERSION"
  8377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libproxy support enabled using libproxy $NE_PXY_VERSION" >&5
  8378. printf "%s\n" "$as_me: libproxy support enabled using libproxy $NE_PXY_VERSION" >&6;}
  8379. else
  8380. : No pkg-config for libproxy-1.0 provided
  8381. NE_FLAG_LIBPXY=no
  8382. ne_LIBPXY_message="libproxy support not enabled"
  8383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libproxy support not enabled" >&5
  8384. printf "%s\n" "$as_me: libproxy support not enabled" >&6;}
  8385. fi
  8386. fi
  8387. else
  8388. NE_FLAG_LIBPXY=no
  8389. ne_LIBPXY_message="libproxy support not enabled"
  8390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libproxy support not enabled" >&5
  8391. printf "%s\n" "$as_me: libproxy support not enabled" >&6;}
  8392. fi
  8393. # Check whether --enable-shared was given.
  8394. if test ${enable_shared+y}
  8395. then :
  8396. enableval=$enable_shared; p=${PACKAGE-default}
  8397. case $enableval in
  8398. yes) enable_shared=yes ;;
  8399. no) enable_shared=no ;;
  8400. *)
  8401. enable_shared=no
  8402. # Look at the argument we got. We use all the common list separators.
  8403. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8404. for pkg in $enableval; do
  8405. IFS=$lt_save_ifs
  8406. if test "X$pkg" = "X$p"; then
  8407. enable_shared=yes
  8408. fi
  8409. done
  8410. IFS=$lt_save_ifs
  8411. ;;
  8412. esac
  8413. else case e in #(
  8414. e) enable_shared=no ;;
  8415. esac
  8416. fi
  8417. case `pwd` in
  8418. *\ * | *\ *)
  8419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  8420. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  8421. esac
  8422. macro_version='2.5.4'
  8423. macro_revision='2.5.4'
  8424. ltmain=$ac_aux_dir/ltmain.sh
  8425. # Make sure we can run config.sub.
  8426. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  8427. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  8428. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  8429. printf %s "checking build system type... " >&6; }
  8430. if test ${ac_cv_build+y}
  8431. then :
  8432. printf %s "(cached) " >&6
  8433. else case e in #(
  8434. e) ac_build_alias=$build_alias
  8435. test "x$ac_build_alias" = x &&
  8436. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  8437. test "x$ac_build_alias" = x &&
  8438. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  8439. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  8440. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  8441. ;;
  8442. esac
  8443. fi
  8444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  8445. printf "%s\n" "$ac_cv_build" >&6; }
  8446. case $ac_cv_build in
  8447. *-*-*) ;;
  8448. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  8449. esac
  8450. build=$ac_cv_build
  8451. ac_save_IFS=$IFS; IFS='-'
  8452. set x $ac_cv_build
  8453. shift
  8454. build_cpu=$1
  8455. build_vendor=$2
  8456. shift; shift
  8457. # Remember, the first character of IFS is used to create $*,
  8458. # except with old shells:
  8459. build_os=$*
  8460. IFS=$ac_save_IFS
  8461. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  8462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  8463. printf %s "checking host system type... " >&6; }
  8464. if test ${ac_cv_host+y}
  8465. then :
  8466. printf %s "(cached) " >&6
  8467. else case e in #(
  8468. e) if test "x$host_alias" = x; then
  8469. ac_cv_host=$ac_cv_build
  8470. else
  8471. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  8472. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  8473. fi
  8474. ;;
  8475. esac
  8476. fi
  8477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  8478. printf "%s\n" "$ac_cv_host" >&6; }
  8479. case $ac_cv_host in
  8480. *-*-*) ;;
  8481. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  8482. esac
  8483. host=$ac_cv_host
  8484. ac_save_IFS=$IFS; IFS='-'
  8485. set x $ac_cv_host
  8486. shift
  8487. host_cpu=$1
  8488. host_vendor=$2
  8489. shift; shift
  8490. # Remember, the first character of IFS is used to create $*,
  8491. # except with old shells:
  8492. host_os=$*
  8493. IFS=$ac_save_IFS
  8494. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  8495. # Backslashify metacharacters that are still active within
  8496. # double-quoted strings.
  8497. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  8498. # Same as above, but do not quote variable references.
  8499. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  8500. # Sed substitution to delay expansion of an escaped shell variable in a
  8501. # double_quote_subst'ed string.
  8502. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  8503. # Sed substitution to delay expansion of an escaped single quote.
  8504. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  8505. # Sed substitution to avoid accidental globbing in evaled expressions
  8506. no_glob_subst='s/\*/\\\*/g'
  8507. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  8508. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  8509. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  8510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  8511. printf %s "checking how to print strings... " >&6; }
  8512. # Test print first, because it will be a builtin if present.
  8513. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  8514. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  8515. ECHO='print -r --'
  8516. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  8517. ECHO='printf %s\n'
  8518. else
  8519. # Use this function as a fallback that always works.
  8520. func_fallback_echo ()
  8521. {
  8522. eval 'cat <<_LTECHO_EOF
  8523. $1
  8524. _LTECHO_EOF'
  8525. }
  8526. ECHO='func_fallback_echo'
  8527. fi
  8528. # func_echo_all arg...
  8529. # Invoke $ECHO with all args, space-separated.
  8530. func_echo_all ()
  8531. {
  8532. $ECHO ""
  8533. }
  8534. case $ECHO in
  8535. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  8536. printf "%s\n" "printf" >&6; } ;;
  8537. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  8538. printf "%s\n" "print -r" >&6; } ;;
  8539. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  8540. printf "%s\n" "cat" >&6; } ;;
  8541. esac
  8542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  8543. printf %s "checking for a sed that does not truncate output... " >&6; }
  8544. if test ${ac_cv_path_SED+y}
  8545. then :
  8546. printf %s "(cached) " >&6
  8547. else case e in #(
  8548. e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  8549. for ac_i in 1 2 3 4 5 6 7; do
  8550. ac_script="$ac_script$as_nl$ac_script"
  8551. done
  8552. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  8553. { ac_script=; unset ac_script;}
  8554. if test -z "$SED"; then
  8555. ac_path_SED_found=false
  8556. # Loop through the user's path and test for each of PROGNAME-LIST
  8557. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8558. for as_dir in $PATH
  8559. do
  8560. IFS=$as_save_IFS
  8561. case $as_dir in #(((
  8562. '') as_dir=./ ;;
  8563. */) ;;
  8564. *) as_dir=$as_dir/ ;;
  8565. esac
  8566. for ac_prog in sed gsed
  8567. do
  8568. for ac_exec_ext in '' $ac_executable_extensions; do
  8569. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  8570. as_fn_executable_p "$ac_path_SED" || continue
  8571. # Check for GNU ac_path_SED and select it if it is found.
  8572. # Check for GNU $ac_path_SED
  8573. case `"$ac_path_SED" --version 2>&1` in #(
  8574. *GNU*)
  8575. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  8576. #(
  8577. *)
  8578. ac_count=0
  8579. printf %s 0123456789 >"conftest.in"
  8580. while :
  8581. do
  8582. cat "conftest.in" "conftest.in" >"conftest.tmp"
  8583. mv "conftest.tmp" "conftest.in"
  8584. cp "conftest.in" "conftest.nl"
  8585. printf "%s\n" '' >> "conftest.nl"
  8586. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  8587. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  8588. as_fn_arith $ac_count + 1 && ac_count=$as_val
  8589. if test $ac_count -gt ${ac_path_SED_max-0}; then
  8590. # Best one so far, save it but keep looking for a better one
  8591. ac_cv_path_SED="$ac_path_SED"
  8592. ac_path_SED_max=$ac_count
  8593. fi
  8594. # 10*(2^10) chars as input seems more than enough
  8595. test $ac_count -gt 10 && break
  8596. done
  8597. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  8598. esac
  8599. $ac_path_SED_found && break 3
  8600. done
  8601. done
  8602. done
  8603. IFS=$as_save_IFS
  8604. if test -z "$ac_cv_path_SED"; then
  8605. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  8606. fi
  8607. else
  8608. ac_cv_path_SED=$SED
  8609. fi
  8610. ;;
  8611. esac
  8612. fi
  8613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  8614. printf "%s\n" "$ac_cv_path_SED" >&6; }
  8615. SED="$ac_cv_path_SED"
  8616. rm -f conftest.sed
  8617. test -z "$SED" && SED=sed
  8618. Xsed="$SED -e 1s/^X//"
  8619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  8620. printf %s "checking for grep that handles long lines and -e... " >&6; }
  8621. if test ${ac_cv_path_GREP+y}
  8622. then :
  8623. printf %s "(cached) " >&6
  8624. else case e in #(
  8625. e) if test -z "$GREP"; then
  8626. ac_path_GREP_found=false
  8627. # Loop through the user's path and test for each of PROGNAME-LIST
  8628. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8629. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  8630. do
  8631. IFS=$as_save_IFS
  8632. case $as_dir in #(((
  8633. '') as_dir=./ ;;
  8634. */) ;;
  8635. *) as_dir=$as_dir/ ;;
  8636. esac
  8637. for ac_prog in grep ggrep
  8638. do
  8639. for ac_exec_ext in '' $ac_executable_extensions; do
  8640. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  8641. as_fn_executable_p "$ac_path_GREP" || continue
  8642. # Check for GNU ac_path_GREP and select it if it is found.
  8643. # Check for GNU $ac_path_GREP
  8644. case `"$ac_path_GREP" --version 2>&1` in #(
  8645. *GNU*)
  8646. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  8647. #(
  8648. *)
  8649. ac_count=0
  8650. printf %s 0123456789 >"conftest.in"
  8651. while :
  8652. do
  8653. cat "conftest.in" "conftest.in" >"conftest.tmp"
  8654. mv "conftest.tmp" "conftest.in"
  8655. cp "conftest.in" "conftest.nl"
  8656. printf "%s\n" 'GREP' >> "conftest.nl"
  8657. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  8658. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  8659. as_fn_arith $ac_count + 1 && ac_count=$as_val
  8660. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  8661. # Best one so far, save it but keep looking for a better one
  8662. ac_cv_path_GREP="$ac_path_GREP"
  8663. ac_path_GREP_max=$ac_count
  8664. fi
  8665. # 10*(2^10) chars as input seems more than enough
  8666. test $ac_count -gt 10 && break
  8667. done
  8668. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  8669. esac
  8670. $ac_path_GREP_found && break 3
  8671. done
  8672. done
  8673. done
  8674. IFS=$as_save_IFS
  8675. if test -z "$ac_cv_path_GREP"; then
  8676. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  8677. fi
  8678. else
  8679. ac_cv_path_GREP=$GREP
  8680. fi
  8681. ;;
  8682. esac
  8683. fi
  8684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  8685. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  8686. GREP="$ac_cv_path_GREP"
  8687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  8688. printf %s "checking for egrep... " >&6; }
  8689. if test ${ac_cv_path_EGREP+y}
  8690. then :
  8691. printf %s "(cached) " >&6
  8692. else case e in #(
  8693. e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  8694. then ac_cv_path_EGREP="$GREP -E"
  8695. else
  8696. if test -z "$EGREP"; then
  8697. ac_path_EGREP_found=false
  8698. # Loop through the user's path and test for each of PROGNAME-LIST
  8699. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8700. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  8701. do
  8702. IFS=$as_save_IFS
  8703. case $as_dir in #(((
  8704. '') as_dir=./ ;;
  8705. */) ;;
  8706. *) as_dir=$as_dir/ ;;
  8707. esac
  8708. for ac_prog in egrep
  8709. do
  8710. for ac_exec_ext in '' $ac_executable_extensions; do
  8711. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  8712. as_fn_executable_p "$ac_path_EGREP" || continue
  8713. # Check for GNU ac_path_EGREP and select it if it is found.
  8714. # Check for GNU $ac_path_EGREP
  8715. case `"$ac_path_EGREP" --version 2>&1` in #(
  8716. *GNU*)
  8717. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  8718. #(
  8719. *)
  8720. ac_count=0
  8721. printf %s 0123456789 >"conftest.in"
  8722. while :
  8723. do
  8724. cat "conftest.in" "conftest.in" >"conftest.tmp"
  8725. mv "conftest.tmp" "conftest.in"
  8726. cp "conftest.in" "conftest.nl"
  8727. printf "%s\n" 'EGREP' >> "conftest.nl"
  8728. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  8729. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  8730. as_fn_arith $ac_count + 1 && ac_count=$as_val
  8731. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  8732. # Best one so far, save it but keep looking for a better one
  8733. ac_cv_path_EGREP="$ac_path_EGREP"
  8734. ac_path_EGREP_max=$ac_count
  8735. fi
  8736. # 10*(2^10) chars as input seems more than enough
  8737. test $ac_count -gt 10 && break
  8738. done
  8739. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  8740. esac
  8741. $ac_path_EGREP_found && break 3
  8742. done
  8743. done
  8744. done
  8745. IFS=$as_save_IFS
  8746. if test -z "$ac_cv_path_EGREP"; then
  8747. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  8748. fi
  8749. else
  8750. ac_cv_path_EGREP=$EGREP
  8751. fi
  8752. fi ;;
  8753. esac
  8754. fi
  8755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  8756. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  8757. EGREP="$ac_cv_path_EGREP"
  8758. EGREP_TRADITIONAL=$EGREP
  8759. ac_cv_path_EGREP_TRADITIONAL=$EGREP
  8760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  8761. printf %s "checking for fgrep... " >&6; }
  8762. if test ${ac_cv_path_FGREP+y}
  8763. then :
  8764. printf %s "(cached) " >&6
  8765. else case e in #(
  8766. e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  8767. then ac_cv_path_FGREP="$GREP -F"
  8768. else
  8769. if test -z "$FGREP"; then
  8770. ac_path_FGREP_found=false
  8771. # Loop through the user's path and test for each of PROGNAME-LIST
  8772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8773. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  8774. do
  8775. IFS=$as_save_IFS
  8776. case $as_dir in #(((
  8777. '') as_dir=./ ;;
  8778. */) ;;
  8779. *) as_dir=$as_dir/ ;;
  8780. esac
  8781. for ac_prog in fgrep
  8782. do
  8783. for ac_exec_ext in '' $ac_executable_extensions; do
  8784. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  8785. as_fn_executable_p "$ac_path_FGREP" || continue
  8786. # Check for GNU ac_path_FGREP and select it if it is found.
  8787. # Check for GNU $ac_path_FGREP
  8788. case `"$ac_path_FGREP" --version 2>&1` in #(
  8789. *GNU*)
  8790. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  8791. #(
  8792. *)
  8793. ac_count=0
  8794. printf %s 0123456789 >"conftest.in"
  8795. while :
  8796. do
  8797. cat "conftest.in" "conftest.in" >"conftest.tmp"
  8798. mv "conftest.tmp" "conftest.in"
  8799. cp "conftest.in" "conftest.nl"
  8800. printf "%s\n" 'FGREP' >> "conftest.nl"
  8801. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  8802. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  8803. as_fn_arith $ac_count + 1 && ac_count=$as_val
  8804. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  8805. # Best one so far, save it but keep looking for a better one
  8806. ac_cv_path_FGREP="$ac_path_FGREP"
  8807. ac_path_FGREP_max=$ac_count
  8808. fi
  8809. # 10*(2^10) chars as input seems more than enough
  8810. test $ac_count -gt 10 && break
  8811. done
  8812. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  8813. esac
  8814. $ac_path_FGREP_found && break 3
  8815. done
  8816. done
  8817. done
  8818. IFS=$as_save_IFS
  8819. if test -z "$ac_cv_path_FGREP"; then
  8820. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  8821. fi
  8822. else
  8823. ac_cv_path_FGREP=$FGREP
  8824. fi
  8825. fi ;;
  8826. esac
  8827. fi
  8828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  8829. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  8830. FGREP="$ac_cv_path_FGREP"
  8831. test -z "$GREP" && GREP=grep
  8832. # Check whether --with-gnu-ld was given.
  8833. if test ${with_gnu_ld+y}
  8834. then :
  8835. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  8836. else case e in #(
  8837. e) with_gnu_ld=no ;;
  8838. esac
  8839. fi
  8840. ac_prog=ld
  8841. if test yes = "$GCC"; then
  8842. # Check if gcc -print-prog-name=ld gives a path.
  8843. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  8844. printf %s "checking for ld used by $CC... " >&6; }
  8845. case $host in
  8846. *-*-mingw* | *-*-windows*)
  8847. # gcc leaves a trailing carriage return, which upsets mingw
  8848. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8849. *)
  8850. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8851. esac
  8852. case $ac_prog in
  8853. # Accept absolute paths.
  8854. [\\/]* | ?:[\\/]*)
  8855. re_direlt='/[^/][^/]*/\.\./'
  8856. # Canonicalize the pathname of ld
  8857. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  8858. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  8859. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  8860. done
  8861. test -z "$LD" && LD=$ac_prog
  8862. ;;
  8863. "")
  8864. # If it fails, then pretend we aren't using GCC.
  8865. ac_prog=ld
  8866. ;;
  8867. *)
  8868. # If it is relative, then search for the first ld in PATH.
  8869. with_gnu_ld=unknown
  8870. ;;
  8871. esac
  8872. elif test yes = "$with_gnu_ld"; then
  8873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  8874. printf %s "checking for GNU ld... " >&6; }
  8875. else
  8876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  8877. printf %s "checking for non-GNU ld... " >&6; }
  8878. fi
  8879. if test ${lt_cv_path_LD+y}
  8880. then :
  8881. printf %s "(cached) " >&6
  8882. else case e in #(
  8883. e) if test -z "$LD"; then
  8884. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8885. for ac_dir in $PATH; do
  8886. IFS=$lt_save_ifs
  8887. test -z "$ac_dir" && ac_dir=.
  8888. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8889. lt_cv_path_LD=$ac_dir/$ac_prog
  8890. # Check to see if the program is GNU ld. I'd rather use --version,
  8891. # but apparently some variants of GNU ld only accept -v.
  8892. # Break only if it was the GNU/non-GNU ld that we prefer.
  8893. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  8894. *GNU* | *'with BFD'*)
  8895. test no != "$with_gnu_ld" && break
  8896. ;;
  8897. *)
  8898. test yes != "$with_gnu_ld" && break
  8899. ;;
  8900. esac
  8901. fi
  8902. done
  8903. IFS=$lt_save_ifs
  8904. else
  8905. lt_cv_path_LD=$LD # Let the user override the test with a path.
  8906. fi ;;
  8907. esac
  8908. fi
  8909. LD=$lt_cv_path_LD
  8910. if test -n "$LD"; then
  8911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  8912. printf "%s\n" "$LD" >&6; }
  8913. else
  8914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8915. printf "%s\n" "no" >&6; }
  8916. fi
  8917. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  8918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  8919. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  8920. if test ${lt_cv_prog_gnu_ld+y}
  8921. then :
  8922. printf %s "(cached) " >&6
  8923. else case e in #(
  8924. e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
  8925. case `$LD -v 2>&1 </dev/null` in
  8926. *GNU* | *'with BFD'*)
  8927. lt_cv_prog_gnu_ld=yes
  8928. ;;
  8929. *)
  8930. lt_cv_prog_gnu_ld=no
  8931. ;;
  8932. esac ;;
  8933. esac
  8934. fi
  8935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  8936. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  8937. with_gnu_ld=$lt_cv_prog_gnu_ld
  8938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  8939. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  8940. if test ${lt_cv_path_NM+y}
  8941. then :
  8942. printf %s "(cached) " >&6
  8943. else case e in #(
  8944. e) if test -n "$NM"; then
  8945. # Let the user override the test.
  8946. lt_cv_path_NM=$NM
  8947. else
  8948. lt_nm_to_check=${ac_tool_prefix}nm
  8949. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  8950. lt_nm_to_check="$lt_nm_to_check nm"
  8951. fi
  8952. for lt_tmp_nm in $lt_nm_to_check; do
  8953. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8954. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  8955. IFS=$lt_save_ifs
  8956. test -z "$ac_dir" && ac_dir=.
  8957. tmp_nm=$ac_dir/$lt_tmp_nm
  8958. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  8959. # Check to see if the nm accepts a BSD-compat flag.
  8960. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  8961. # nm: unknown option "B" ignored
  8962. # Tru64's nm complains that /dev/null is an invalid object file
  8963. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  8964. case $build_os in
  8965. mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
  8966. *) lt_bad_file=/dev/null ;;
  8967. esac
  8968. case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
  8969. *$lt_bad_file* | *'Invalid file or object type'*)
  8970. lt_cv_path_NM="$tmp_nm -B"
  8971. break 2
  8972. ;;
  8973. *)
  8974. case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
  8975. */dev/null*)
  8976. lt_cv_path_NM="$tmp_nm -p"
  8977. break 2
  8978. ;;
  8979. *)
  8980. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  8981. continue # so that we can try to find one that supports BSD flags
  8982. ;;
  8983. esac
  8984. ;;
  8985. esac
  8986. fi
  8987. done
  8988. IFS=$lt_save_ifs
  8989. done
  8990. : ${lt_cv_path_NM=no}
  8991. fi ;;
  8992. esac
  8993. fi
  8994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  8995. printf "%s\n" "$lt_cv_path_NM" >&6; }
  8996. if test no != "$lt_cv_path_NM"; then
  8997. NM=$lt_cv_path_NM
  8998. else
  8999. # Didn't find any BSD compatible name lister, look for dumpbin.
  9000. if test -n "$DUMPBIN"; then :
  9001. # Let the user override the test.
  9002. else
  9003. if test -n "$ac_tool_prefix"; then
  9004. for ac_prog in dumpbin "link -dump"
  9005. do
  9006. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9007. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9009. printf %s "checking for $ac_word... " >&6; }
  9010. if test ${ac_cv_prog_DUMPBIN+y}
  9011. then :
  9012. printf %s "(cached) " >&6
  9013. else case e in #(
  9014. e) if test -n "$DUMPBIN"; then
  9015. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  9016. else
  9017. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9018. for as_dir in $PATH
  9019. do
  9020. IFS=$as_save_IFS
  9021. case $as_dir in #(((
  9022. '') as_dir=./ ;;
  9023. */) ;;
  9024. *) as_dir=$as_dir/ ;;
  9025. esac
  9026. for ac_exec_ext in '' $ac_executable_extensions; do
  9027. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9028. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  9029. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9030. break 2
  9031. fi
  9032. done
  9033. done
  9034. IFS=$as_save_IFS
  9035. fi ;;
  9036. esac
  9037. fi
  9038. DUMPBIN=$ac_cv_prog_DUMPBIN
  9039. if test -n "$DUMPBIN"; then
  9040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  9041. printf "%s\n" "$DUMPBIN" >&6; }
  9042. else
  9043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9044. printf "%s\n" "no" >&6; }
  9045. fi
  9046. test -n "$DUMPBIN" && break
  9047. done
  9048. fi
  9049. if test -z "$DUMPBIN"; then
  9050. ac_ct_DUMPBIN=$DUMPBIN
  9051. for ac_prog in dumpbin "link -dump"
  9052. do
  9053. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9054. set dummy $ac_prog; ac_word=$2
  9055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9056. printf %s "checking for $ac_word... " >&6; }
  9057. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  9058. then :
  9059. printf %s "(cached) " >&6
  9060. else case e in #(
  9061. e) if test -n "$ac_ct_DUMPBIN"; then
  9062. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  9063. else
  9064. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9065. for as_dir in $PATH
  9066. do
  9067. IFS=$as_save_IFS
  9068. case $as_dir in #(((
  9069. '') as_dir=./ ;;
  9070. */) ;;
  9071. *) as_dir=$as_dir/ ;;
  9072. esac
  9073. for ac_exec_ext in '' $ac_executable_extensions; do
  9074. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9075. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  9076. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9077. break 2
  9078. fi
  9079. done
  9080. done
  9081. IFS=$as_save_IFS
  9082. fi ;;
  9083. esac
  9084. fi
  9085. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  9086. if test -n "$ac_ct_DUMPBIN"; then
  9087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  9088. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  9089. else
  9090. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9091. printf "%s\n" "no" >&6; }
  9092. fi
  9093. test -n "$ac_ct_DUMPBIN" && break
  9094. done
  9095. if test "x$ac_ct_DUMPBIN" = x; then
  9096. DUMPBIN=":"
  9097. else
  9098. case $cross_compiling:$ac_tool_warned in
  9099. yes:)
  9100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9101. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9102. ac_tool_warned=yes ;;
  9103. esac
  9104. DUMPBIN=$ac_ct_DUMPBIN
  9105. fi
  9106. fi
  9107. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
  9108. *COFF*)
  9109. DUMPBIN="$DUMPBIN -symbols -headers"
  9110. ;;
  9111. *)
  9112. DUMPBIN=:
  9113. ;;
  9114. esac
  9115. fi
  9116. if test : != "$DUMPBIN"; then
  9117. NM=$DUMPBIN
  9118. fi
  9119. fi
  9120. test -z "$NM" && NM=nm
  9121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  9122. printf %s "checking the name lister ($NM) interface... " >&6; }
  9123. if test ${lt_cv_nm_interface+y}
  9124. then :
  9125. printf %s "(cached) " >&6
  9126. else case e in #(
  9127. e) lt_cv_nm_interface="BSD nm"
  9128. echo "int some_variable = 0;" > conftest.$ac_ext
  9129. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  9130. (eval "$ac_compile" 2>conftest.err)
  9131. cat conftest.err >&5
  9132. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  9133. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  9134. cat conftest.err >&5
  9135. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  9136. cat conftest.out >&5
  9137. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  9138. lt_cv_nm_interface="MS dumpbin"
  9139. fi
  9140. rm -f conftest* ;;
  9141. esac
  9142. fi
  9143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  9144. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  9145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  9146. printf %s "checking whether ln -s works... " >&6; }
  9147. LN_S=$as_ln_s
  9148. if test "$LN_S" = "ln -s"; then
  9149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9150. printf "%s\n" "yes" >&6; }
  9151. else
  9152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  9153. printf "%s\n" "no, using $LN_S" >&6; }
  9154. fi
  9155. # find the maximum length of command line arguments
  9156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  9157. printf %s "checking the maximum length of command line arguments... " >&6; }
  9158. if test ${lt_cv_sys_max_cmd_len+y}
  9159. then :
  9160. printf %s "(cached) " >&6
  9161. else case e in #(
  9162. e) i=0
  9163. teststring=ABCD
  9164. case $build_os in
  9165. msdosdjgpp*)
  9166. # On DJGPP, this test can blow up pretty badly due to problems in libc
  9167. # (any single argument exceeding 2000 bytes causes a buffer overrun
  9168. # during glob expansion). Even if it were fixed, the result of this
  9169. # check would be larger than it should be.
  9170. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  9171. ;;
  9172. gnu* | ironclad*)
  9173. # Under GNU Hurd and Ironclad, this test is not required because there
  9174. # is no limit to the length of command line arguments.
  9175. # Libtool will interpret -1 as no limit whatsoever
  9176. lt_cv_sys_max_cmd_len=-1;
  9177. ;;
  9178. cygwin* | mingw* | windows* | cegcc*)
  9179. # On Win9x/ME, this test blows up -- it succeeds, but takes
  9180. # about 5 minutes as the teststring grows exponentially.
  9181. # Worse, since 9x/ME are not pre-emptively multitasking,
  9182. # you end up with a "frozen" computer, even though with patience
  9183. # the test eventually succeeds (with a max line length of 256k).
  9184. # Instead, let's just punt: use the minimum linelength reported by
  9185. # all of the supported platforms: 8192 (on NT/2K/XP).
  9186. lt_cv_sys_max_cmd_len=8192;
  9187. ;;
  9188. mint*)
  9189. # On MiNT this can take a long time and run out of memory.
  9190. lt_cv_sys_max_cmd_len=8192;
  9191. ;;
  9192. amigaos*)
  9193. # On AmigaOS with pdksh, this test takes hours, literally.
  9194. # So we just punt and use a minimum line length of 8192.
  9195. lt_cv_sys_max_cmd_len=8192;
  9196. ;;
  9197. darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  9198. # This has been around since 386BSD, at least. Likely further.
  9199. if test -x /sbin/sysctl; then
  9200. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  9201. elif test -x /usr/sbin/sysctl; then
  9202. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  9203. else
  9204. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  9205. fi
  9206. # And add a safety zone
  9207. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  9208. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  9209. ;;
  9210. interix*)
  9211. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  9212. lt_cv_sys_max_cmd_len=196608
  9213. ;;
  9214. os2*)
  9215. # The test takes a long time on OS/2.
  9216. lt_cv_sys_max_cmd_len=8192
  9217. ;;
  9218. osf*)
  9219. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  9220. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  9221. # nice to cause kernel panics so lets avoid the loop below.
  9222. # First set a reasonable default.
  9223. lt_cv_sys_max_cmd_len=16384
  9224. #
  9225. if test -x /sbin/sysconfig; then
  9226. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  9227. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  9228. esac
  9229. fi
  9230. ;;
  9231. sco3.2v5*)
  9232. lt_cv_sys_max_cmd_len=102400
  9233. ;;
  9234. sysv5* | sco5v6* | sysv4.2uw2*)
  9235. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  9236. if test -n "$kargmax"; then
  9237. lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
  9238. else
  9239. lt_cv_sys_max_cmd_len=32768
  9240. fi
  9241. ;;
  9242. *)
  9243. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  9244. if test -n "$lt_cv_sys_max_cmd_len" && \
  9245. test undefined != "$lt_cv_sys_max_cmd_len"; then
  9246. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  9247. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  9248. else
  9249. # Make teststring a little bigger before we do anything with it.
  9250. # a 1K string should be a reasonable start.
  9251. for i in 1 2 3 4 5 6 7 8; do
  9252. teststring=$teststring$teststring
  9253. done
  9254. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  9255. # If test is not a shell built-in, we'll probably end up computing a
  9256. # maximum length that is only half of the actual maximum length, but
  9257. # we can't tell.
  9258. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  9259. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  9260. test 17 != "$i" # 1/2 MB should be enough
  9261. do
  9262. i=`expr $i + 1`
  9263. teststring=$teststring$teststring
  9264. done
  9265. # Only check the string length outside the loop.
  9266. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  9267. teststring=
  9268. # Add a significant safety factor because C++ compilers can tack on
  9269. # massive amounts of additional arguments before passing them to the
  9270. # linker. It appears as though 1/2 is a usable value.
  9271. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  9272. fi
  9273. ;;
  9274. esac
  9275. ;;
  9276. esac
  9277. fi
  9278. if test -n "$lt_cv_sys_max_cmd_len"; then
  9279. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  9280. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  9281. else
  9282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  9283. printf "%s\n" "none" >&6; }
  9284. fi
  9285. max_cmd_len=$lt_cv_sys_max_cmd_len
  9286. : ${CP="cp -f"}
  9287. : ${MV="mv -f"}
  9288. : ${RM="rm -f"}
  9289. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  9290. lt_unset=unset
  9291. else
  9292. lt_unset=false
  9293. fi
  9294. # test EBCDIC or ASCII
  9295. case `echo X|tr X '\101'` in
  9296. A) # ASCII based system
  9297. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  9298. lt_SP2NL='tr \040 \012'
  9299. lt_NL2SP='tr \015\012 \040\040'
  9300. ;;
  9301. *) # EBCDIC based system
  9302. lt_SP2NL='tr \100 \n'
  9303. lt_NL2SP='tr \r\n \100\100'
  9304. ;;
  9305. esac
  9306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  9307. printf %s "checking how to convert $build file names to $host format... " >&6; }
  9308. if test ${lt_cv_to_host_file_cmd+y}
  9309. then :
  9310. printf %s "(cached) " >&6
  9311. else case e in #(
  9312. e) case $host in
  9313. *-*-mingw* )
  9314. case $build in
  9315. *-*-mingw* | *-*-windows* ) # actually msys
  9316. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  9317. ;;
  9318. *-*-cygwin* )
  9319. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  9320. ;;
  9321. * ) # otherwise, assume *nix
  9322. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  9323. ;;
  9324. esac
  9325. ;;
  9326. *-*-cygwin* )
  9327. case $build in
  9328. *-*-mingw* | *-*-windows* ) # actually msys
  9329. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  9330. ;;
  9331. *-*-cygwin* )
  9332. lt_cv_to_host_file_cmd=func_convert_file_noop
  9333. ;;
  9334. * ) # otherwise, assume *nix
  9335. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  9336. ;;
  9337. esac
  9338. ;;
  9339. * ) # unhandled hosts (and "normal" native builds)
  9340. lt_cv_to_host_file_cmd=func_convert_file_noop
  9341. ;;
  9342. esac
  9343. ;;
  9344. esac
  9345. fi
  9346. to_host_file_cmd=$lt_cv_to_host_file_cmd
  9347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  9348. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  9349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  9350. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  9351. if test ${lt_cv_to_tool_file_cmd+y}
  9352. then :
  9353. printf %s "(cached) " >&6
  9354. else case e in #(
  9355. e) #assume ordinary cross tools, or native build.
  9356. lt_cv_to_tool_file_cmd=func_convert_file_noop
  9357. case $host in
  9358. *-*-mingw* | *-*-windows* )
  9359. case $build in
  9360. *-*-mingw* | *-*-windows* ) # actually msys
  9361. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  9362. ;;
  9363. esac
  9364. ;;
  9365. esac
  9366. ;;
  9367. esac
  9368. fi
  9369. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  9370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  9371. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  9372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  9373. printf %s "checking for $LD option to reload object files... " >&6; }
  9374. if test ${lt_cv_ld_reload_flag+y}
  9375. then :
  9376. printf %s "(cached) " >&6
  9377. else case e in #(
  9378. e) lt_cv_ld_reload_flag='-r' ;;
  9379. esac
  9380. fi
  9381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  9382. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  9383. reload_flag=$lt_cv_ld_reload_flag
  9384. case $reload_flag in
  9385. "" | " "*) ;;
  9386. *) reload_flag=" $reload_flag" ;;
  9387. esac
  9388. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  9389. case $host_os in
  9390. cygwin* | mingw* | windows* | pw32* | cegcc*)
  9391. if test yes != "$GCC"; then
  9392. reload_cmds=false
  9393. fi
  9394. ;;
  9395. darwin*)
  9396. if test yes = "$GCC"; then
  9397. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  9398. else
  9399. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  9400. fi
  9401. ;;
  9402. esac
  9403. # Extract the first word of "file", so it can be a program name with args.
  9404. set dummy file; ac_word=$2
  9405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9406. printf %s "checking for $ac_word... " >&6; }
  9407. if test ${ac_cv_prog_FILECMD+y}
  9408. then :
  9409. printf %s "(cached) " >&6
  9410. else case e in #(
  9411. e) if test -n "$FILECMD"; then
  9412. ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
  9413. else
  9414. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9415. for as_dir in $PATH
  9416. do
  9417. IFS=$as_save_IFS
  9418. case $as_dir in #(((
  9419. '') as_dir=./ ;;
  9420. */) ;;
  9421. *) as_dir=$as_dir/ ;;
  9422. esac
  9423. for ac_exec_ext in '' $ac_executable_extensions; do
  9424. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9425. ac_cv_prog_FILECMD="file"
  9426. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9427. break 2
  9428. fi
  9429. done
  9430. done
  9431. IFS=$as_save_IFS
  9432. test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
  9433. fi ;;
  9434. esac
  9435. fi
  9436. FILECMD=$ac_cv_prog_FILECMD
  9437. if test -n "$FILECMD"; then
  9438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
  9439. printf "%s\n" "$FILECMD" >&6; }
  9440. else
  9441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9442. printf "%s\n" "no" >&6; }
  9443. fi
  9444. if test -n "$ac_tool_prefix"; then
  9445. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  9446. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  9447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9448. printf %s "checking for $ac_word... " >&6; }
  9449. if test ${ac_cv_prog_OBJDUMP+y}
  9450. then :
  9451. printf %s "(cached) " >&6
  9452. else case e in #(
  9453. e) if test -n "$OBJDUMP"; then
  9454. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  9455. else
  9456. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9457. for as_dir in $PATH
  9458. do
  9459. IFS=$as_save_IFS
  9460. case $as_dir in #(((
  9461. '') as_dir=./ ;;
  9462. */) ;;
  9463. *) as_dir=$as_dir/ ;;
  9464. esac
  9465. for ac_exec_ext in '' $ac_executable_extensions; do
  9466. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9467. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  9468. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9469. break 2
  9470. fi
  9471. done
  9472. done
  9473. IFS=$as_save_IFS
  9474. fi ;;
  9475. esac
  9476. fi
  9477. OBJDUMP=$ac_cv_prog_OBJDUMP
  9478. if test -n "$OBJDUMP"; then
  9479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  9480. printf "%s\n" "$OBJDUMP" >&6; }
  9481. else
  9482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9483. printf "%s\n" "no" >&6; }
  9484. fi
  9485. fi
  9486. if test -z "$ac_cv_prog_OBJDUMP"; then
  9487. ac_ct_OBJDUMP=$OBJDUMP
  9488. # Extract the first word of "objdump", so it can be a program name with args.
  9489. set dummy objdump; ac_word=$2
  9490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9491. printf %s "checking for $ac_word... " >&6; }
  9492. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  9493. then :
  9494. printf %s "(cached) " >&6
  9495. else case e in #(
  9496. e) if test -n "$ac_ct_OBJDUMP"; then
  9497. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  9498. else
  9499. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9500. for as_dir in $PATH
  9501. do
  9502. IFS=$as_save_IFS
  9503. case $as_dir in #(((
  9504. '') as_dir=./ ;;
  9505. */) ;;
  9506. *) as_dir=$as_dir/ ;;
  9507. esac
  9508. for ac_exec_ext in '' $ac_executable_extensions; do
  9509. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9510. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  9511. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9512. break 2
  9513. fi
  9514. done
  9515. done
  9516. IFS=$as_save_IFS
  9517. fi ;;
  9518. esac
  9519. fi
  9520. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  9521. if test -n "$ac_ct_OBJDUMP"; then
  9522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  9523. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  9524. else
  9525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9526. printf "%s\n" "no" >&6; }
  9527. fi
  9528. if test "x$ac_ct_OBJDUMP" = x; then
  9529. OBJDUMP="false"
  9530. else
  9531. case $cross_compiling:$ac_tool_warned in
  9532. yes:)
  9533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9534. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9535. ac_tool_warned=yes ;;
  9536. esac
  9537. OBJDUMP=$ac_ct_OBJDUMP
  9538. fi
  9539. else
  9540. OBJDUMP="$ac_cv_prog_OBJDUMP"
  9541. fi
  9542. test -z "$OBJDUMP" && OBJDUMP=objdump
  9543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  9544. printf %s "checking how to recognize dependent libraries... " >&6; }
  9545. if test ${lt_cv_deplibs_check_method+y}
  9546. then :
  9547. printf %s "(cached) " >&6
  9548. else case e in #(
  9549. e) lt_cv_file_magic_cmd='$MAGIC_CMD'
  9550. lt_cv_file_magic_test_file=
  9551. lt_cv_deplibs_check_method='unknown'
  9552. # Need to set the preceding variable on all platforms that support
  9553. # interlibrary dependencies.
  9554. # 'none' -- dependencies not supported.
  9555. # 'unknown' -- same as none, but documents that we really don't know.
  9556. # 'pass_all' -- all dependencies passed with no checks.
  9557. # 'file_magic [[regex]]' -- check by looking for files in library path
  9558. # that responds to the $file_magic_cmd with a given extended regex.
  9559. # If you have 'file' or equivalent on your system and you're not sure
  9560. # whether 'pass_all' will *always* work, you probably want this one.
  9561. case $host_os in
  9562. aix[4-9]*)
  9563. lt_cv_deplibs_check_method=pass_all
  9564. ;;
  9565. beos*)
  9566. lt_cv_deplibs_check_method=pass_all
  9567. ;;
  9568. bsdi[45]*)
  9569. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  9570. lt_cv_file_magic_cmd='$FILECMD -L'
  9571. lt_cv_file_magic_test_file=/shlib/libc.so
  9572. ;;
  9573. cygwin*)
  9574. # func_win32_libid is a shell function defined in ltmain.sh
  9575. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  9576. lt_cv_file_magic_cmd='func_win32_libid'
  9577. ;;
  9578. mingw* | windows* | pw32*)
  9579. # Base MSYS/MinGW do not provide the 'file' command needed by
  9580. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  9581. # unless we find 'file', for example because we are cross-compiling.
  9582. if ( file / ) >/dev/null 2>&1; then
  9583. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  9584. lt_cv_file_magic_cmd='func_win32_libid'
  9585. else
  9586. # Keep this pattern in sync with the one in func_win32_libid.
  9587. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
  9588. lt_cv_file_magic_cmd='$OBJDUMP -f'
  9589. fi
  9590. ;;
  9591. cegcc*)
  9592. # use the weaker test based on 'objdump'. See mingw*.
  9593. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  9594. lt_cv_file_magic_cmd='$OBJDUMP -f'
  9595. ;;
  9596. darwin* | rhapsody*)
  9597. lt_cv_deplibs_check_method=pass_all
  9598. ;;
  9599. freebsd* | dragonfly* | midnightbsd*)
  9600. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  9601. case $host_cpu in
  9602. i*86 )
  9603. # Not sure whether the presence of OpenBSD here was a mistake.
  9604. # Let's accept both of them until this is cleared up.
  9605. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  9606. lt_cv_file_magic_cmd=$FILECMD
  9607. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  9608. ;;
  9609. esac
  9610. else
  9611. lt_cv_deplibs_check_method=pass_all
  9612. fi
  9613. ;;
  9614. haiku*)
  9615. lt_cv_deplibs_check_method=pass_all
  9616. ;;
  9617. hpux10.20* | hpux11*)
  9618. lt_cv_file_magic_cmd=$FILECMD
  9619. case $host_cpu in
  9620. ia64*)
  9621. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  9622. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  9623. ;;
  9624. hppa*64*)
  9625. 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]'
  9626. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  9627. ;;
  9628. *)
  9629. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  9630. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  9631. ;;
  9632. esac
  9633. ;;
  9634. interix[3-9]*)
  9635. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  9636. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  9637. ;;
  9638. irix5* | irix6* | nonstopux*)
  9639. case $LD in
  9640. *-32|*"-32 ") libmagic=32-bit;;
  9641. *-n32|*"-n32 ") libmagic=N32;;
  9642. *-64|*"-64 ") libmagic=64-bit;;
  9643. *) libmagic=never-match;;
  9644. esac
  9645. lt_cv_deplibs_check_method=pass_all
  9646. ;;
  9647. # This must be glibc/ELF.
  9648. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9649. lt_cv_deplibs_check_method=pass_all
  9650. ;;
  9651. *-mlibc)
  9652. lt_cv_deplibs_check_method=pass_all
  9653. ;;
  9654. netbsd* | netbsdelf*-gnu)
  9655. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  9656. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  9657. else
  9658. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  9659. fi
  9660. ;;
  9661. newos6*)
  9662. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  9663. lt_cv_file_magic_cmd=$FILECMD
  9664. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  9665. ;;
  9666. *nto* | *qnx*)
  9667. lt_cv_deplibs_check_method=pass_all
  9668. ;;
  9669. openbsd*)
  9670. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9671. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  9672. else
  9673. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  9674. fi
  9675. ;;
  9676. osf3* | osf4* | osf5*)
  9677. lt_cv_deplibs_check_method=pass_all
  9678. ;;
  9679. rdos*)
  9680. lt_cv_deplibs_check_method=pass_all
  9681. ;;
  9682. serenity*)
  9683. lt_cv_deplibs_check_method=pass_all
  9684. ;;
  9685. solaris*)
  9686. lt_cv_deplibs_check_method=pass_all
  9687. ;;
  9688. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9689. lt_cv_deplibs_check_method=pass_all
  9690. ;;
  9691. sysv4 | sysv4.3*)
  9692. case $host_vendor in
  9693. motorola)
  9694. 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]'
  9695. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  9696. ;;
  9697. ncr)
  9698. lt_cv_deplibs_check_method=pass_all
  9699. ;;
  9700. sequent)
  9701. lt_cv_file_magic_cmd='/bin/file'
  9702. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  9703. ;;
  9704. sni)
  9705. lt_cv_file_magic_cmd='/bin/file'
  9706. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  9707. lt_cv_file_magic_test_file=/lib/libc.so
  9708. ;;
  9709. siemens)
  9710. lt_cv_deplibs_check_method=pass_all
  9711. ;;
  9712. pc)
  9713. lt_cv_deplibs_check_method=pass_all
  9714. ;;
  9715. esac
  9716. ;;
  9717. tpf*)
  9718. lt_cv_deplibs_check_method=pass_all
  9719. ;;
  9720. os2*)
  9721. lt_cv_deplibs_check_method=pass_all
  9722. ;;
  9723. esac
  9724. ;;
  9725. esac
  9726. fi
  9727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  9728. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  9729. file_magic_glob=
  9730. want_nocaseglob=no
  9731. if test "$build" = "$host"; then
  9732. case $host_os in
  9733. mingw* | windows* | pw32*)
  9734. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  9735. want_nocaseglob=yes
  9736. else
  9737. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  9738. fi
  9739. ;;
  9740. esac
  9741. fi
  9742. file_magic_cmd=$lt_cv_file_magic_cmd
  9743. deplibs_check_method=$lt_cv_deplibs_check_method
  9744. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  9745. if test -n "$ac_tool_prefix"; then
  9746. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  9747. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  9748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9749. printf %s "checking for $ac_word... " >&6; }
  9750. if test ${ac_cv_prog_DLLTOOL+y}
  9751. then :
  9752. printf %s "(cached) " >&6
  9753. else case e in #(
  9754. e) if test -n "$DLLTOOL"; then
  9755. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  9756. else
  9757. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9758. for as_dir in $PATH
  9759. do
  9760. IFS=$as_save_IFS
  9761. case $as_dir in #(((
  9762. '') as_dir=./ ;;
  9763. */) ;;
  9764. *) as_dir=$as_dir/ ;;
  9765. esac
  9766. for ac_exec_ext in '' $ac_executable_extensions; do
  9767. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9768. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  9769. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9770. break 2
  9771. fi
  9772. done
  9773. done
  9774. IFS=$as_save_IFS
  9775. fi ;;
  9776. esac
  9777. fi
  9778. DLLTOOL=$ac_cv_prog_DLLTOOL
  9779. if test -n "$DLLTOOL"; then
  9780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  9781. printf "%s\n" "$DLLTOOL" >&6; }
  9782. else
  9783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9784. printf "%s\n" "no" >&6; }
  9785. fi
  9786. fi
  9787. if test -z "$ac_cv_prog_DLLTOOL"; then
  9788. ac_ct_DLLTOOL=$DLLTOOL
  9789. # Extract the first word of "dlltool", so it can be a program name with args.
  9790. set dummy dlltool; ac_word=$2
  9791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9792. printf %s "checking for $ac_word... " >&6; }
  9793. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  9794. then :
  9795. printf %s "(cached) " >&6
  9796. else case e in #(
  9797. e) if test -n "$ac_ct_DLLTOOL"; then
  9798. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  9799. else
  9800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9801. for as_dir in $PATH
  9802. do
  9803. IFS=$as_save_IFS
  9804. case $as_dir in #(((
  9805. '') as_dir=./ ;;
  9806. */) ;;
  9807. *) as_dir=$as_dir/ ;;
  9808. esac
  9809. for ac_exec_ext in '' $ac_executable_extensions; do
  9810. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9811. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  9812. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9813. break 2
  9814. fi
  9815. done
  9816. done
  9817. IFS=$as_save_IFS
  9818. fi ;;
  9819. esac
  9820. fi
  9821. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  9822. if test -n "$ac_ct_DLLTOOL"; then
  9823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  9824. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  9825. else
  9826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9827. printf "%s\n" "no" >&6; }
  9828. fi
  9829. if test "x$ac_ct_DLLTOOL" = x; then
  9830. DLLTOOL="false"
  9831. else
  9832. case $cross_compiling:$ac_tool_warned in
  9833. yes:)
  9834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9835. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9836. ac_tool_warned=yes ;;
  9837. esac
  9838. DLLTOOL=$ac_ct_DLLTOOL
  9839. fi
  9840. else
  9841. DLLTOOL="$ac_cv_prog_DLLTOOL"
  9842. fi
  9843. test -z "$DLLTOOL" && DLLTOOL=dlltool
  9844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  9845. printf %s "checking how to associate runtime and link libraries... " >&6; }
  9846. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  9847. then :
  9848. printf %s "(cached) " >&6
  9849. else case e in #(
  9850. e) lt_cv_sharedlib_from_linklib_cmd='unknown'
  9851. case $host_os in
  9852. cygwin* | mingw* | windows* | pw32* | cegcc*)
  9853. # two different shell functions defined in ltmain.sh;
  9854. # decide which one to use based on capabilities of $DLLTOOL
  9855. case `$DLLTOOL --help 2>&1` in
  9856. *--identify-strict*)
  9857. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  9858. ;;
  9859. *)
  9860. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  9861. ;;
  9862. esac
  9863. ;;
  9864. *)
  9865. # fallback: assume linklib IS sharedlib
  9866. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  9867. ;;
  9868. esac
  9869. ;;
  9870. esac
  9871. fi
  9872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  9873. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  9874. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  9875. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  9876. if test -n "$ac_tool_prefix"; then
  9877. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  9878. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  9879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9880. printf %s "checking for $ac_word... " >&6; }
  9881. if test ${ac_cv_prog_RANLIB+y}
  9882. then :
  9883. printf %s "(cached) " >&6
  9884. else case e in #(
  9885. e) if test -n "$RANLIB"; then
  9886. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  9887. else
  9888. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9889. for as_dir in $PATH
  9890. do
  9891. IFS=$as_save_IFS
  9892. case $as_dir in #(((
  9893. '') as_dir=./ ;;
  9894. */) ;;
  9895. *) as_dir=$as_dir/ ;;
  9896. esac
  9897. for ac_exec_ext in '' $ac_executable_extensions; do
  9898. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9899. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  9900. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9901. break 2
  9902. fi
  9903. done
  9904. done
  9905. IFS=$as_save_IFS
  9906. fi ;;
  9907. esac
  9908. fi
  9909. RANLIB=$ac_cv_prog_RANLIB
  9910. if test -n "$RANLIB"; then
  9911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  9912. printf "%s\n" "$RANLIB" >&6; }
  9913. else
  9914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9915. printf "%s\n" "no" >&6; }
  9916. fi
  9917. fi
  9918. if test -z "$ac_cv_prog_RANLIB"; then
  9919. ac_ct_RANLIB=$RANLIB
  9920. # Extract the first word of "ranlib", so it can be a program name with args.
  9921. set dummy ranlib; ac_word=$2
  9922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9923. printf %s "checking for $ac_word... " >&6; }
  9924. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  9925. then :
  9926. printf %s "(cached) " >&6
  9927. else case e in #(
  9928. e) if test -n "$ac_ct_RANLIB"; then
  9929. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  9930. else
  9931. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9932. for as_dir in $PATH
  9933. do
  9934. IFS=$as_save_IFS
  9935. case $as_dir in #(((
  9936. '') as_dir=./ ;;
  9937. */) ;;
  9938. *) as_dir=$as_dir/ ;;
  9939. esac
  9940. for ac_exec_ext in '' $ac_executable_extensions; do
  9941. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9942. ac_cv_prog_ac_ct_RANLIB="ranlib"
  9943. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9944. break 2
  9945. fi
  9946. done
  9947. done
  9948. IFS=$as_save_IFS
  9949. fi ;;
  9950. esac
  9951. fi
  9952. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  9953. if test -n "$ac_ct_RANLIB"; then
  9954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  9955. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  9956. else
  9957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9958. printf "%s\n" "no" >&6; }
  9959. fi
  9960. if test "x$ac_ct_RANLIB" = x; then
  9961. RANLIB=":"
  9962. else
  9963. case $cross_compiling:$ac_tool_warned in
  9964. yes:)
  9965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9966. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9967. ac_tool_warned=yes ;;
  9968. esac
  9969. RANLIB=$ac_ct_RANLIB
  9970. fi
  9971. else
  9972. RANLIB="$ac_cv_prog_RANLIB"
  9973. fi
  9974. if test -n "$ac_tool_prefix"; then
  9975. for ac_prog in ar
  9976. do
  9977. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9978. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9980. printf %s "checking for $ac_word... " >&6; }
  9981. if test ${ac_cv_prog_AR+y}
  9982. then :
  9983. printf %s "(cached) " >&6
  9984. else case e in #(
  9985. e) if test -n "$AR"; then
  9986. ac_cv_prog_AR="$AR" # Let the user override the test.
  9987. else
  9988. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9989. for as_dir in $PATH
  9990. do
  9991. IFS=$as_save_IFS
  9992. case $as_dir in #(((
  9993. '') as_dir=./ ;;
  9994. */) ;;
  9995. *) as_dir=$as_dir/ ;;
  9996. esac
  9997. for ac_exec_ext in '' $ac_executable_extensions; do
  9998. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9999. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  10000. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10001. break 2
  10002. fi
  10003. done
  10004. done
  10005. IFS=$as_save_IFS
  10006. fi ;;
  10007. esac
  10008. fi
  10009. AR=$ac_cv_prog_AR
  10010. if test -n "$AR"; then
  10011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  10012. printf "%s\n" "$AR" >&6; }
  10013. else
  10014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10015. printf "%s\n" "no" >&6; }
  10016. fi
  10017. test -n "$AR" && break
  10018. done
  10019. fi
  10020. if test -z "$AR"; then
  10021. ac_ct_AR=$AR
  10022. for ac_prog in ar
  10023. do
  10024. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10025. set dummy $ac_prog; ac_word=$2
  10026. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10027. printf %s "checking for $ac_word... " >&6; }
  10028. if test ${ac_cv_prog_ac_ct_AR+y}
  10029. then :
  10030. printf %s "(cached) " >&6
  10031. else case e in #(
  10032. e) if test -n "$ac_ct_AR"; then
  10033. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  10034. else
  10035. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10036. for as_dir in $PATH
  10037. do
  10038. IFS=$as_save_IFS
  10039. case $as_dir in #(((
  10040. '') as_dir=./ ;;
  10041. */) ;;
  10042. *) as_dir=$as_dir/ ;;
  10043. esac
  10044. for ac_exec_ext in '' $ac_executable_extensions; do
  10045. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10046. ac_cv_prog_ac_ct_AR="$ac_prog"
  10047. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10048. break 2
  10049. fi
  10050. done
  10051. done
  10052. IFS=$as_save_IFS
  10053. fi ;;
  10054. esac
  10055. fi
  10056. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  10057. if test -n "$ac_ct_AR"; then
  10058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  10059. printf "%s\n" "$ac_ct_AR" >&6; }
  10060. else
  10061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10062. printf "%s\n" "no" >&6; }
  10063. fi
  10064. test -n "$ac_ct_AR" && break
  10065. done
  10066. if test "x$ac_ct_AR" = x; then
  10067. AR="false"
  10068. else
  10069. case $cross_compiling:$ac_tool_warned in
  10070. yes:)
  10071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10072. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10073. ac_tool_warned=yes ;;
  10074. esac
  10075. AR=$ac_ct_AR
  10076. fi
  10077. fi
  10078. : ${AR=ar}
  10079. # Use ARFLAGS variable as AR's operation code to sync the variable naming with
  10080. # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
  10081. # higher priority because that's what people were doing historically (setting
  10082. # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
  10083. # variable obsoleted/removed.
  10084. test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
  10085. lt_ar_flags=$AR_FLAGS
  10086. # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
  10087. # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
  10088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  10089. printf %s "checking for archiver @FILE support... " >&6; }
  10090. if test ${lt_cv_ar_at_file+y}
  10091. then :
  10092. printf %s "(cached) " >&6
  10093. else case e in #(
  10094. e) lt_cv_ar_at_file=no
  10095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10096. /* end confdefs.h. */
  10097. int
  10098. main (void)
  10099. {
  10100. ;
  10101. return 0;
  10102. }
  10103. _ACEOF
  10104. if ac_fn_c_try_compile "$LINENO"
  10105. then :
  10106. echo conftest.$ac_objext > conftest.lst
  10107. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  10108. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  10109. (eval $lt_ar_try) 2>&5
  10110. ac_status=$?
  10111. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10112. test $ac_status = 0; }
  10113. if test 0 -eq "$ac_status"; then
  10114. # Ensure the archiver fails upon bogus file names.
  10115. rm -f conftest.$ac_objext libconftest.a
  10116. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  10117. (eval $lt_ar_try) 2>&5
  10118. ac_status=$?
  10119. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10120. test $ac_status = 0; }
  10121. if test 0 -ne "$ac_status"; then
  10122. lt_cv_ar_at_file=@
  10123. fi
  10124. fi
  10125. rm -f conftest.* libconftest.a
  10126. fi
  10127. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  10128. ;;
  10129. esac
  10130. fi
  10131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  10132. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  10133. if test no = "$lt_cv_ar_at_file"; then
  10134. archiver_list_spec=
  10135. else
  10136. archiver_list_spec=$lt_cv_ar_at_file
  10137. fi
  10138. if test -n "$ac_tool_prefix"; then
  10139. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  10140. set dummy ${ac_tool_prefix}strip; ac_word=$2
  10141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10142. printf %s "checking for $ac_word... " >&6; }
  10143. if test ${ac_cv_prog_STRIP+y}
  10144. then :
  10145. printf %s "(cached) " >&6
  10146. else case e in #(
  10147. e) if test -n "$STRIP"; then
  10148. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  10149. else
  10150. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10151. for as_dir in $PATH
  10152. do
  10153. IFS=$as_save_IFS
  10154. case $as_dir in #(((
  10155. '') as_dir=./ ;;
  10156. */) ;;
  10157. *) as_dir=$as_dir/ ;;
  10158. esac
  10159. for ac_exec_ext in '' $ac_executable_extensions; do
  10160. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10161. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  10162. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10163. break 2
  10164. fi
  10165. done
  10166. done
  10167. IFS=$as_save_IFS
  10168. fi ;;
  10169. esac
  10170. fi
  10171. STRIP=$ac_cv_prog_STRIP
  10172. if test -n "$STRIP"; then
  10173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  10174. printf "%s\n" "$STRIP" >&6; }
  10175. else
  10176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10177. printf "%s\n" "no" >&6; }
  10178. fi
  10179. fi
  10180. if test -z "$ac_cv_prog_STRIP"; then
  10181. ac_ct_STRIP=$STRIP
  10182. # Extract the first word of "strip", so it can be a program name with args.
  10183. set dummy strip; ac_word=$2
  10184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10185. printf %s "checking for $ac_word... " >&6; }
  10186. if test ${ac_cv_prog_ac_ct_STRIP+y}
  10187. then :
  10188. printf %s "(cached) " >&6
  10189. else case e in #(
  10190. e) if test -n "$ac_ct_STRIP"; then
  10191. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  10192. else
  10193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10194. for as_dir in $PATH
  10195. do
  10196. IFS=$as_save_IFS
  10197. case $as_dir in #(((
  10198. '') as_dir=./ ;;
  10199. */) ;;
  10200. *) as_dir=$as_dir/ ;;
  10201. esac
  10202. for ac_exec_ext in '' $ac_executable_extensions; do
  10203. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10204. ac_cv_prog_ac_ct_STRIP="strip"
  10205. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10206. break 2
  10207. fi
  10208. done
  10209. done
  10210. IFS=$as_save_IFS
  10211. fi ;;
  10212. esac
  10213. fi
  10214. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  10215. if test -n "$ac_ct_STRIP"; then
  10216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  10217. printf "%s\n" "$ac_ct_STRIP" >&6; }
  10218. else
  10219. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10220. printf "%s\n" "no" >&6; }
  10221. fi
  10222. if test "x$ac_ct_STRIP" = x; then
  10223. STRIP=":"
  10224. else
  10225. case $cross_compiling:$ac_tool_warned in
  10226. yes:)
  10227. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10228. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10229. ac_tool_warned=yes ;;
  10230. esac
  10231. STRIP=$ac_ct_STRIP
  10232. fi
  10233. else
  10234. STRIP="$ac_cv_prog_STRIP"
  10235. fi
  10236. test -z "$STRIP" && STRIP=:
  10237. test -z "$RANLIB" && RANLIB=:
  10238. # Determine commands to create old-style static archives.
  10239. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  10240. old_postinstall_cmds='chmod 644 $oldlib'
  10241. old_postuninstall_cmds=
  10242. if test -n "$RANLIB"; then
  10243. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  10244. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  10245. fi
  10246. case $host_os in
  10247. darwin*)
  10248. lock_old_archive_extraction=yes ;;
  10249. *)
  10250. lock_old_archive_extraction=no ;;
  10251. esac
  10252. for ac_prog in gawk mawk nawk awk
  10253. do
  10254. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10255. set dummy $ac_prog; ac_word=$2
  10256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10257. printf %s "checking for $ac_word... " >&6; }
  10258. if test ${ac_cv_prog_AWK+y}
  10259. then :
  10260. printf %s "(cached) " >&6
  10261. else case e in #(
  10262. e) if test -n "$AWK"; then
  10263. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  10264. else
  10265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10266. for as_dir in $PATH
  10267. do
  10268. IFS=$as_save_IFS
  10269. case $as_dir in #(((
  10270. '') as_dir=./ ;;
  10271. */) ;;
  10272. *) as_dir=$as_dir/ ;;
  10273. esac
  10274. for ac_exec_ext in '' $ac_executable_extensions; do
  10275. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10276. ac_cv_prog_AWK="$ac_prog"
  10277. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10278. break 2
  10279. fi
  10280. done
  10281. done
  10282. IFS=$as_save_IFS
  10283. fi ;;
  10284. esac
  10285. fi
  10286. AWK=$ac_cv_prog_AWK
  10287. if test -n "$AWK"; then
  10288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  10289. printf "%s\n" "$AWK" >&6; }
  10290. else
  10291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10292. printf "%s\n" "no" >&6; }
  10293. fi
  10294. test -n "$AWK" && break
  10295. done
  10296. # If no C compiler was specified, use CC.
  10297. LTCC=${LTCC-"$CC"}
  10298. # If no C compiler flags were specified, use CFLAGS.
  10299. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10300. # Allow CC to be a program name with arguments.
  10301. compiler=$CC
  10302. # Check for command to grab the raw symbol name followed by C symbol from nm.
  10303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  10304. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  10305. if test ${lt_cv_sys_global_symbol_pipe+y}
  10306. then :
  10307. printf %s "(cached) " >&6
  10308. else case e in #(
  10309. e)
  10310. # These are sane defaults that work on at least a few old systems.
  10311. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  10312. # Character class describing NM global symbol codes.
  10313. symcode='[BCDEGRST]'
  10314. # Regexp to match symbols that can be accessed directly from C.
  10315. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  10316. # Define system-specific variables.
  10317. case $host_os in
  10318. aix*)
  10319. symcode='[BCDT]'
  10320. ;;
  10321. cygwin* | mingw* | windows* | pw32* | cegcc*)
  10322. symcode='[ABCDGISTW]'
  10323. ;;
  10324. hpux*)
  10325. if test ia64 = "$host_cpu"; then
  10326. symcode='[ABCDEGRST]'
  10327. fi
  10328. ;;
  10329. irix* | nonstopux*)
  10330. symcode='[BCDEGRST]'
  10331. ;;
  10332. osf*)
  10333. symcode='[BCDEGQRST]'
  10334. ;;
  10335. solaris*)
  10336. symcode='[BCDRT]'
  10337. ;;
  10338. sco3.2v5*)
  10339. symcode='[DT]'
  10340. ;;
  10341. sysv4.2uw2*)
  10342. symcode='[DT]'
  10343. ;;
  10344. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  10345. symcode='[ABDT]'
  10346. ;;
  10347. sysv4)
  10348. symcode='[DFNSTU]'
  10349. ;;
  10350. esac
  10351. # If we're using GNU nm, then use its standard symbol codes.
  10352. case `$NM -V 2>&1` in
  10353. *GNU* | *'with BFD'*)
  10354. symcode='[ABCDGIRSTW]' ;;
  10355. esac
  10356. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  10357. # Gets list of data symbols to import.
  10358. lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
  10359. # Adjust the below global symbol transforms to fixup imported variables.
  10360. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  10361. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  10362. lt_c_name_lib_hook="\
  10363. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  10364. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  10365. else
  10366. # Disable hooks by default.
  10367. lt_cv_sys_global_symbol_to_import=
  10368. lt_cdecl_hook=
  10369. lt_c_name_hook=
  10370. lt_c_name_lib_hook=
  10371. fi
  10372. # Transform an extracted symbol line into a proper C declaration.
  10373. # Some systems (esp. on ia64) link data and code symbols differently,
  10374. # so use this general approach.
  10375. lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
  10376. $lt_cdecl_hook\
  10377. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  10378. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  10379. # Transform an extracted symbol line into symbol name and symbol address
  10380. lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
  10381. $lt_c_name_hook\
  10382. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  10383. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  10384. # Transform an extracted symbol line into symbol name with lib prefix and
  10385. # symbol address.
  10386. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
  10387. $lt_c_name_lib_hook\
  10388. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  10389. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  10390. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  10391. # Handle CRLF in mingw tool chain
  10392. opt_cr=
  10393. case $build_os in
  10394. mingw* | windows*)
  10395. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  10396. ;;
  10397. esac
  10398. # Try without a prefix underscore, then with it.
  10399. for ac_symprfx in "" "_"; do
  10400. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  10401. symxfrm="\\1 $ac_symprfx\\2 \\2"
  10402. # Write the raw and C identifiers.
  10403. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  10404. # Fake it for dumpbin and say T for any non-static function,
  10405. # D for any global variable and I for any imported variable.
  10406. # Also find C++ and __fastcall symbols from MSVC++ or ICC,
  10407. # which start with @ or ?.
  10408. lt_cv_sys_global_symbol_pipe="$AWK '"\
  10409. " {last_section=section; section=\$ 3};"\
  10410. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  10411. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  10412. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  10413. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  10414. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  10415. " \$ 0!~/External *\|/{next};"\
  10416. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  10417. " {if(hide[section]) next};"\
  10418. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  10419. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  10420. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  10421. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  10422. " ' prfx=^$ac_symprfx"
  10423. else
  10424. lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  10425. fi
  10426. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
  10427. # Check to see that the pipe works correctly.
  10428. pipe_works=no
  10429. rm -f conftest*
  10430. cat > conftest.$ac_ext <<_LT_EOF
  10431. #ifdef __cplusplus
  10432. extern "C" {
  10433. #endif
  10434. char nm_test_var;
  10435. void nm_test_func(void);
  10436. void nm_test_func(void){}
  10437. #ifdef __cplusplus
  10438. }
  10439. #endif
  10440. int main(void){nm_test_var='a';nm_test_func();return(0);}
  10441. _LT_EOF
  10442. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10443. (eval $ac_compile) 2>&5
  10444. ac_status=$?
  10445. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10446. test $ac_status = 0; }; then
  10447. # Now try to grab the symbols.
  10448. nlist=conftest.nm
  10449. $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
  10450. if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
  10451. # Try sorting and uniquifying the output.
  10452. if sort "$nlist" | uniq > "$nlist"T; then
  10453. mv -f "$nlist"T "$nlist"
  10454. else
  10455. rm -f "$nlist"T
  10456. fi
  10457. # Make sure that we snagged all the symbols we need.
  10458. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  10459. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  10460. cat <<_LT_EOF > conftest.$ac_ext
  10461. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  10462. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  10463. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  10464. relocations are performed -- see ld's documentation on pseudo-relocs. */
  10465. # define LT_DLSYM_CONST
  10466. #elif defined __osf__
  10467. /* This system does not cope well with relocations in const data. */
  10468. # define LT_DLSYM_CONST
  10469. #else
  10470. # define LT_DLSYM_CONST const
  10471. #endif
  10472. #ifdef __cplusplus
  10473. extern "C" {
  10474. #endif
  10475. _LT_EOF
  10476. # Now generate the symbol file.
  10477. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  10478. cat <<_LT_EOF >> conftest.$ac_ext
  10479. /* The mapping between symbol names and symbols. */
  10480. LT_DLSYM_CONST struct {
  10481. const char *name;
  10482. void *address;
  10483. }
  10484. lt__PROGRAM__LTX_preloaded_symbols[] =
  10485. {
  10486. { "@PROGRAM@", (void *) 0 },
  10487. _LT_EOF
  10488. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  10489. cat <<\_LT_EOF >> conftest.$ac_ext
  10490. {0, (void *) 0}
  10491. };
  10492. /* This works around a problem in FreeBSD linker */
  10493. #ifdef FREEBSD_WORKAROUND
  10494. static const void *lt_preloaded_setup() {
  10495. return lt__PROGRAM__LTX_preloaded_symbols;
  10496. }
  10497. #endif
  10498. #ifdef __cplusplus
  10499. }
  10500. #endif
  10501. _LT_EOF
  10502. # Now try linking the two files.
  10503. mv conftest.$ac_objext conftstm.$ac_objext
  10504. lt_globsym_save_LIBS=$LIBS
  10505. lt_globsym_save_CFLAGS=$CFLAGS
  10506. LIBS=conftstm.$ac_objext
  10507. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  10508. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10509. (eval $ac_link) 2>&5
  10510. ac_status=$?
  10511. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10512. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  10513. pipe_works=yes
  10514. fi
  10515. LIBS=$lt_globsym_save_LIBS
  10516. CFLAGS=$lt_globsym_save_CFLAGS
  10517. else
  10518. echo "cannot find nm_test_func in $nlist" >&5
  10519. fi
  10520. else
  10521. echo "cannot find nm_test_var in $nlist" >&5
  10522. fi
  10523. else
  10524. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  10525. fi
  10526. else
  10527. echo "$progname: failed program was:" >&5
  10528. cat conftest.$ac_ext >&5
  10529. fi
  10530. rm -rf conftest* conftst*
  10531. # Do not use the global_symbol_pipe unless it works.
  10532. if test yes = "$pipe_works"; then
  10533. break
  10534. else
  10535. lt_cv_sys_global_symbol_pipe=
  10536. fi
  10537. done
  10538. ;;
  10539. esac
  10540. fi
  10541. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  10542. lt_cv_sys_global_symbol_to_cdecl=
  10543. fi
  10544. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  10545. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  10546. printf "%s\n" "failed" >&6; }
  10547. else
  10548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  10549. printf "%s\n" "ok" >&6; }
  10550. fi
  10551. # Response file support.
  10552. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  10553. nm_file_list_spec='@'
  10554. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  10555. nm_file_list_spec='@'
  10556. fi
  10557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  10558. printf %s "checking for sysroot... " >&6; }
  10559. # Check whether --with-sysroot was given.
  10560. if test ${with_sysroot+y}
  10561. then :
  10562. withval=$with_sysroot;
  10563. else case e in #(
  10564. e) with_sysroot=no ;;
  10565. esac
  10566. fi
  10567. lt_sysroot=
  10568. case $with_sysroot in #(
  10569. yes)
  10570. if test yes = "$GCC"; then
  10571. # Trim trailing / since we'll always append absolute paths and we want
  10572. # to avoid //, if only for less confusing output for the user.
  10573. lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
  10574. fi
  10575. ;; #(
  10576. /*)
  10577. lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
  10578. ;; #(
  10579. no|'')
  10580. ;; #(
  10581. *)
  10582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  10583. printf "%s\n" "$with_sysroot" >&6; }
  10584. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  10585. ;;
  10586. esac
  10587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  10588. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  10589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  10590. printf %s "checking for a working dd... " >&6; }
  10591. if test ${ac_cv_path_lt_DD+y}
  10592. then :
  10593. printf %s "(cached) " >&6
  10594. else case e in #(
  10595. e) printf 0123456789abcdef0123456789abcdef >conftest.i
  10596. cat conftest.i conftest.i >conftest2.i
  10597. : ${lt_DD:=$DD}
  10598. if test -z "$lt_DD"; then
  10599. ac_path_lt_DD_found=false
  10600. # Loop through the user's path and test for each of PROGNAME-LIST
  10601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10602. for as_dir in $PATH
  10603. do
  10604. IFS=$as_save_IFS
  10605. case $as_dir in #(((
  10606. '') as_dir=./ ;;
  10607. */) ;;
  10608. *) as_dir=$as_dir/ ;;
  10609. esac
  10610. for ac_prog in dd
  10611. do
  10612. for ac_exec_ext in '' $ac_executable_extensions; do
  10613. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  10614. as_fn_executable_p "$ac_path_lt_DD" || continue
  10615. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  10616. cmp -s conftest.i conftest.out \
  10617. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  10618. fi
  10619. $ac_path_lt_DD_found && break 3
  10620. done
  10621. done
  10622. done
  10623. IFS=$as_save_IFS
  10624. if test -z "$ac_cv_path_lt_DD"; then
  10625. :
  10626. fi
  10627. else
  10628. ac_cv_path_lt_DD=$lt_DD
  10629. fi
  10630. rm -f conftest.i conftest2.i conftest.out ;;
  10631. esac
  10632. fi
  10633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  10634. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  10635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  10636. printf %s "checking how to truncate binary pipes... " >&6; }
  10637. if test ${lt_cv_truncate_bin+y}
  10638. then :
  10639. printf %s "(cached) " >&6
  10640. else case e in #(
  10641. e) printf 0123456789abcdef0123456789abcdef >conftest.i
  10642. cat conftest.i conftest.i >conftest2.i
  10643. lt_cv_truncate_bin=
  10644. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  10645. cmp -s conftest.i conftest.out \
  10646. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  10647. fi
  10648. rm -f conftest.i conftest2.i conftest.out
  10649. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
  10650. esac
  10651. fi
  10652. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  10653. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  10654. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  10655. func_cc_basename ()
  10656. {
  10657. for cc_temp in $*""; do
  10658. case $cc_temp in
  10659. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10660. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10661. \-*) ;;
  10662. *) break;;
  10663. esac
  10664. done
  10665. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10666. }
  10667. # Check whether --enable-libtool-lock was given.
  10668. if test ${enable_libtool_lock+y}
  10669. then :
  10670. enableval=$enable_libtool_lock;
  10671. fi
  10672. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  10673. # Some flags need to be propagated to the compiler or linker for good
  10674. # libtool support.
  10675. case $host in
  10676. ia64-*-hpux*)
  10677. # Find out what ABI is being produced by ac_compile, and set mode
  10678. # options accordingly.
  10679. echo 'int i;' > conftest.$ac_ext
  10680. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10681. (eval $ac_compile) 2>&5
  10682. ac_status=$?
  10683. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10684. test $ac_status = 0; }; then
  10685. case `$FILECMD conftest.$ac_objext` in
  10686. *ELF-32*)
  10687. HPUX_IA64_MODE=32
  10688. ;;
  10689. *ELF-64*)
  10690. HPUX_IA64_MODE=64
  10691. ;;
  10692. esac
  10693. fi
  10694. rm -rf conftest*
  10695. ;;
  10696. *-*-irix6*)
  10697. # Find out what ABI is being produced by ac_compile, and set linker
  10698. # options accordingly.
  10699. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  10700. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10701. (eval $ac_compile) 2>&5
  10702. ac_status=$?
  10703. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10704. test $ac_status = 0; }; then
  10705. if test yes = "$lt_cv_prog_gnu_ld"; then
  10706. case `$FILECMD conftest.$ac_objext` in
  10707. *32-bit*)
  10708. LD="${LD-ld} -melf32bsmip"
  10709. ;;
  10710. *N32*)
  10711. LD="${LD-ld} -melf32bmipn32"
  10712. ;;
  10713. *64-bit*)
  10714. LD="${LD-ld} -melf64bmip"
  10715. ;;
  10716. esac
  10717. else
  10718. case `$FILECMD conftest.$ac_objext` in
  10719. *32-bit*)
  10720. LD="${LD-ld} -32"
  10721. ;;
  10722. *N32*)
  10723. LD="${LD-ld} -n32"
  10724. ;;
  10725. *64-bit*)
  10726. LD="${LD-ld} -64"
  10727. ;;
  10728. esac
  10729. fi
  10730. fi
  10731. rm -rf conftest*
  10732. ;;
  10733. mips64*-*linux*)
  10734. # Find out what ABI is being produced by ac_compile, and set linker
  10735. # options accordingly.
  10736. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  10737. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10738. (eval $ac_compile) 2>&5
  10739. ac_status=$?
  10740. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10741. test $ac_status = 0; }; then
  10742. emul=elf
  10743. case `$FILECMD conftest.$ac_objext` in
  10744. *32-bit*)
  10745. emul="${emul}32"
  10746. ;;
  10747. *64-bit*)
  10748. emul="${emul}64"
  10749. ;;
  10750. esac
  10751. case `$FILECMD conftest.$ac_objext` in
  10752. *MSB*)
  10753. emul="${emul}btsmip"
  10754. ;;
  10755. *LSB*)
  10756. emul="${emul}ltsmip"
  10757. ;;
  10758. esac
  10759. case `$FILECMD conftest.$ac_objext` in
  10760. *N32*)
  10761. emul="${emul}n32"
  10762. ;;
  10763. esac
  10764. LD="${LD-ld} -m $emul"
  10765. fi
  10766. rm -rf conftest*
  10767. ;;
  10768. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  10769. s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
  10770. # Find out what ABI is being produced by ac_compile, and set linker
  10771. # options accordingly. Note that the listed cases only cover the
  10772. # situations where additional linker options are needed (such as when
  10773. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  10774. # vice versa); the common cases where no linker options are needed do
  10775. # not appear in the list.
  10776. echo 'int i;' > conftest.$ac_ext
  10777. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10778. (eval $ac_compile) 2>&5
  10779. ac_status=$?
  10780. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10781. test $ac_status = 0; }; then
  10782. case `$FILECMD conftest.o` in
  10783. *32-bit*)
  10784. case $host in
  10785. x86_64-*kfreebsd*-gnu)
  10786. LD="${LD-ld} -m elf_i386_fbsd"
  10787. ;;
  10788. x86_64-*linux*|x86_64-gnu*)
  10789. case `$FILECMD conftest.o` in
  10790. *x86-64*)
  10791. LD="${LD-ld} -m elf32_x86_64"
  10792. ;;
  10793. *)
  10794. LD="${LD-ld} -m elf_i386"
  10795. ;;
  10796. esac
  10797. ;;
  10798. powerpc64le-*linux*)
  10799. LD="${LD-ld} -m elf32lppclinux"
  10800. ;;
  10801. powerpc64-*linux*)
  10802. LD="${LD-ld} -m elf32ppclinux"
  10803. ;;
  10804. s390x-*linux*)
  10805. LD="${LD-ld} -m elf_s390"
  10806. ;;
  10807. sparc64-*linux*)
  10808. LD="${LD-ld} -m elf32_sparc"
  10809. ;;
  10810. esac
  10811. ;;
  10812. *64-bit*)
  10813. case $host in
  10814. x86_64-*kfreebsd*-gnu)
  10815. LD="${LD-ld} -m elf_x86_64_fbsd"
  10816. ;;
  10817. x86_64-*linux*|x86_64-gnu*)
  10818. LD="${LD-ld} -m elf_x86_64"
  10819. ;;
  10820. powerpcle-*linux*)
  10821. LD="${LD-ld} -m elf64lppc"
  10822. ;;
  10823. powerpc-*linux*)
  10824. LD="${LD-ld} -m elf64ppc"
  10825. ;;
  10826. s390*-*linux*|s390*-*tpf*)
  10827. LD="${LD-ld} -m elf64_s390"
  10828. ;;
  10829. sparc*-*linux*)
  10830. LD="${LD-ld} -m elf64_sparc"
  10831. ;;
  10832. esac
  10833. ;;
  10834. esac
  10835. fi
  10836. rm -rf conftest*
  10837. ;;
  10838. *-*-sco3.2v5*)
  10839. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  10840. SAVE_CFLAGS=$CFLAGS
  10841. CFLAGS="$CFLAGS -belf"
  10842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  10843. printf %s "checking whether the C compiler needs -belf... " >&6; }
  10844. if test ${lt_cv_cc_needs_belf+y}
  10845. then :
  10846. printf %s "(cached) " >&6
  10847. else case e in #(
  10848. e) ac_ext=c
  10849. ac_cpp='$CPP $CPPFLAGS'
  10850. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10851. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10852. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10854. /* end confdefs.h. */
  10855. int
  10856. main (void)
  10857. {
  10858. ;
  10859. return 0;
  10860. }
  10861. _ACEOF
  10862. if ac_fn_c_try_link "$LINENO"
  10863. then :
  10864. lt_cv_cc_needs_belf=yes
  10865. else case e in #(
  10866. e) lt_cv_cc_needs_belf=no ;;
  10867. esac
  10868. fi
  10869. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10870. conftest$ac_exeext conftest.$ac_ext
  10871. ac_ext=c
  10872. ac_cpp='$CPP $CPPFLAGS'
  10873. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10874. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10875. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10876. ;;
  10877. esac
  10878. fi
  10879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  10880. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  10881. if test yes != "$lt_cv_cc_needs_belf"; then
  10882. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  10883. CFLAGS=$SAVE_CFLAGS
  10884. fi
  10885. ;;
  10886. *-*solaris*)
  10887. # Find out what ABI is being produced by ac_compile, and set linker
  10888. # options accordingly.
  10889. echo 'int i;' > conftest.$ac_ext
  10890. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10891. (eval $ac_compile) 2>&5
  10892. ac_status=$?
  10893. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10894. test $ac_status = 0; }; then
  10895. case `$FILECMD conftest.o` in
  10896. *64-bit*)
  10897. case $lt_cv_prog_gnu_ld in
  10898. yes*)
  10899. case $host in
  10900. i?86-*-solaris*|x86_64-*-solaris*)
  10901. LD="${LD-ld} -m elf_x86_64"
  10902. ;;
  10903. sparc*-*-solaris*)
  10904. LD="${LD-ld} -m elf64_sparc"
  10905. ;;
  10906. esac
  10907. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  10908. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  10909. LD=${LD-ld}_sol2
  10910. fi
  10911. ;;
  10912. *)
  10913. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  10914. LD="${LD-ld} -64"
  10915. fi
  10916. ;;
  10917. esac
  10918. ;;
  10919. esac
  10920. fi
  10921. rm -rf conftest*
  10922. ;;
  10923. esac
  10924. need_locks=$enable_libtool_lock
  10925. if test -n "$ac_tool_prefix"; then
  10926. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  10927. set dummy ${ac_tool_prefix}mt; ac_word=$2
  10928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10929. printf %s "checking for $ac_word... " >&6; }
  10930. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  10931. then :
  10932. printf %s "(cached) " >&6
  10933. else case e in #(
  10934. e) if test -n "$MANIFEST_TOOL"; then
  10935. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  10936. else
  10937. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10938. for as_dir in $PATH
  10939. do
  10940. IFS=$as_save_IFS
  10941. case $as_dir in #(((
  10942. '') as_dir=./ ;;
  10943. */) ;;
  10944. *) as_dir=$as_dir/ ;;
  10945. esac
  10946. for ac_exec_ext in '' $ac_executable_extensions; do
  10947. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10948. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  10949. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10950. break 2
  10951. fi
  10952. done
  10953. done
  10954. IFS=$as_save_IFS
  10955. fi ;;
  10956. esac
  10957. fi
  10958. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  10959. if test -n "$MANIFEST_TOOL"; then
  10960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  10961. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  10962. else
  10963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10964. printf "%s\n" "no" >&6; }
  10965. fi
  10966. fi
  10967. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  10968. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  10969. # Extract the first word of "mt", so it can be a program name with args.
  10970. set dummy mt; ac_word=$2
  10971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10972. printf %s "checking for $ac_word... " >&6; }
  10973. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  10974. then :
  10975. printf %s "(cached) " >&6
  10976. else case e in #(
  10977. e) if test -n "$ac_ct_MANIFEST_TOOL"; then
  10978. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  10979. else
  10980. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10981. for as_dir in $PATH
  10982. do
  10983. IFS=$as_save_IFS
  10984. case $as_dir in #(((
  10985. '') as_dir=./ ;;
  10986. */) ;;
  10987. *) as_dir=$as_dir/ ;;
  10988. esac
  10989. for ac_exec_ext in '' $ac_executable_extensions; do
  10990. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10991. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  10992. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10993. break 2
  10994. fi
  10995. done
  10996. done
  10997. IFS=$as_save_IFS
  10998. fi ;;
  10999. esac
  11000. fi
  11001. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  11002. if test -n "$ac_ct_MANIFEST_TOOL"; then
  11003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  11004. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  11005. else
  11006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11007. printf "%s\n" "no" >&6; }
  11008. fi
  11009. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  11010. MANIFEST_TOOL=":"
  11011. else
  11012. case $cross_compiling:$ac_tool_warned in
  11013. yes:)
  11014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11015. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11016. ac_tool_warned=yes ;;
  11017. esac
  11018. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  11019. fi
  11020. else
  11021. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  11022. fi
  11023. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  11024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  11025. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  11026. if test ${lt_cv_path_manifest_tool+y}
  11027. then :
  11028. printf %s "(cached) " >&6
  11029. else case e in #(
  11030. e) lt_cv_path_manifest_tool=no
  11031. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  11032. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  11033. cat conftest.err >&5
  11034. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  11035. lt_cv_path_manifest_tool=yes
  11036. fi
  11037. rm -f conftest* ;;
  11038. esac
  11039. fi
  11040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
  11041. printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
  11042. if test yes != "$lt_cv_path_manifest_tool"; then
  11043. MANIFEST_TOOL=:
  11044. fi
  11045. case $host_os in
  11046. rhapsody* | darwin*)
  11047. if test -n "$ac_tool_prefix"; then
  11048. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  11049. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  11050. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11051. printf %s "checking for $ac_word... " >&6; }
  11052. if test ${ac_cv_prog_DSYMUTIL+y}
  11053. then :
  11054. printf %s "(cached) " >&6
  11055. else case e in #(
  11056. e) if test -n "$DSYMUTIL"; then
  11057. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  11058. else
  11059. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11060. for as_dir in $PATH
  11061. do
  11062. IFS=$as_save_IFS
  11063. case $as_dir in #(((
  11064. '') as_dir=./ ;;
  11065. */) ;;
  11066. *) as_dir=$as_dir/ ;;
  11067. esac
  11068. for ac_exec_ext in '' $ac_executable_extensions; do
  11069. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11070. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  11071. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11072. break 2
  11073. fi
  11074. done
  11075. done
  11076. IFS=$as_save_IFS
  11077. fi ;;
  11078. esac
  11079. fi
  11080. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  11081. if test -n "$DSYMUTIL"; then
  11082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  11083. printf "%s\n" "$DSYMUTIL" >&6; }
  11084. else
  11085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11086. printf "%s\n" "no" >&6; }
  11087. fi
  11088. fi
  11089. if test -z "$ac_cv_prog_DSYMUTIL"; then
  11090. ac_ct_DSYMUTIL=$DSYMUTIL
  11091. # Extract the first word of "dsymutil", so it can be a program name with args.
  11092. set dummy dsymutil; ac_word=$2
  11093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11094. printf %s "checking for $ac_word... " >&6; }
  11095. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  11096. then :
  11097. printf %s "(cached) " >&6
  11098. else case e in #(
  11099. e) if test -n "$ac_ct_DSYMUTIL"; then
  11100. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  11101. else
  11102. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11103. for as_dir in $PATH
  11104. do
  11105. IFS=$as_save_IFS
  11106. case $as_dir in #(((
  11107. '') as_dir=./ ;;
  11108. */) ;;
  11109. *) as_dir=$as_dir/ ;;
  11110. esac
  11111. for ac_exec_ext in '' $ac_executable_extensions; do
  11112. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11113. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  11114. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11115. break 2
  11116. fi
  11117. done
  11118. done
  11119. IFS=$as_save_IFS
  11120. fi ;;
  11121. esac
  11122. fi
  11123. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  11124. if test -n "$ac_ct_DSYMUTIL"; then
  11125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  11126. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  11127. else
  11128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11129. printf "%s\n" "no" >&6; }
  11130. fi
  11131. if test "x$ac_ct_DSYMUTIL" = x; then
  11132. DSYMUTIL=":"
  11133. else
  11134. case $cross_compiling:$ac_tool_warned in
  11135. yes:)
  11136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11137. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11138. ac_tool_warned=yes ;;
  11139. esac
  11140. DSYMUTIL=$ac_ct_DSYMUTIL
  11141. fi
  11142. else
  11143. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  11144. fi
  11145. if test -n "$ac_tool_prefix"; then
  11146. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  11147. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  11148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11149. printf %s "checking for $ac_word... " >&6; }
  11150. if test ${ac_cv_prog_NMEDIT+y}
  11151. then :
  11152. printf %s "(cached) " >&6
  11153. else case e in #(
  11154. e) if test -n "$NMEDIT"; then
  11155. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  11156. else
  11157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11158. for as_dir in $PATH
  11159. do
  11160. IFS=$as_save_IFS
  11161. case $as_dir in #(((
  11162. '') as_dir=./ ;;
  11163. */) ;;
  11164. *) as_dir=$as_dir/ ;;
  11165. esac
  11166. for ac_exec_ext in '' $ac_executable_extensions; do
  11167. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11168. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  11169. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11170. break 2
  11171. fi
  11172. done
  11173. done
  11174. IFS=$as_save_IFS
  11175. fi ;;
  11176. esac
  11177. fi
  11178. NMEDIT=$ac_cv_prog_NMEDIT
  11179. if test -n "$NMEDIT"; then
  11180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  11181. printf "%s\n" "$NMEDIT" >&6; }
  11182. else
  11183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11184. printf "%s\n" "no" >&6; }
  11185. fi
  11186. fi
  11187. if test -z "$ac_cv_prog_NMEDIT"; then
  11188. ac_ct_NMEDIT=$NMEDIT
  11189. # Extract the first word of "nmedit", so it can be a program name with args.
  11190. set dummy nmedit; ac_word=$2
  11191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11192. printf %s "checking for $ac_word... " >&6; }
  11193. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  11194. then :
  11195. printf %s "(cached) " >&6
  11196. else case e in #(
  11197. e) if test -n "$ac_ct_NMEDIT"; then
  11198. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  11199. else
  11200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11201. for as_dir in $PATH
  11202. do
  11203. IFS=$as_save_IFS
  11204. case $as_dir in #(((
  11205. '') as_dir=./ ;;
  11206. */) ;;
  11207. *) as_dir=$as_dir/ ;;
  11208. esac
  11209. for ac_exec_ext in '' $ac_executable_extensions; do
  11210. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11211. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  11212. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11213. break 2
  11214. fi
  11215. done
  11216. done
  11217. IFS=$as_save_IFS
  11218. fi ;;
  11219. esac
  11220. fi
  11221. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  11222. if test -n "$ac_ct_NMEDIT"; then
  11223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  11224. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  11225. else
  11226. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11227. printf "%s\n" "no" >&6; }
  11228. fi
  11229. if test "x$ac_ct_NMEDIT" = x; then
  11230. NMEDIT=":"
  11231. else
  11232. case $cross_compiling:$ac_tool_warned in
  11233. yes:)
  11234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11235. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11236. ac_tool_warned=yes ;;
  11237. esac
  11238. NMEDIT=$ac_ct_NMEDIT
  11239. fi
  11240. else
  11241. NMEDIT="$ac_cv_prog_NMEDIT"
  11242. fi
  11243. if test -n "$ac_tool_prefix"; then
  11244. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  11245. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  11246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11247. printf %s "checking for $ac_word... " >&6; }
  11248. if test ${ac_cv_prog_LIPO+y}
  11249. then :
  11250. printf %s "(cached) " >&6
  11251. else case e in #(
  11252. e) if test -n "$LIPO"; then
  11253. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  11254. else
  11255. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11256. for as_dir in $PATH
  11257. do
  11258. IFS=$as_save_IFS
  11259. case $as_dir in #(((
  11260. '') as_dir=./ ;;
  11261. */) ;;
  11262. *) as_dir=$as_dir/ ;;
  11263. esac
  11264. for ac_exec_ext in '' $ac_executable_extensions; do
  11265. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11266. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  11267. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11268. break 2
  11269. fi
  11270. done
  11271. done
  11272. IFS=$as_save_IFS
  11273. fi ;;
  11274. esac
  11275. fi
  11276. LIPO=$ac_cv_prog_LIPO
  11277. if test -n "$LIPO"; then
  11278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  11279. printf "%s\n" "$LIPO" >&6; }
  11280. else
  11281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11282. printf "%s\n" "no" >&6; }
  11283. fi
  11284. fi
  11285. if test -z "$ac_cv_prog_LIPO"; then
  11286. ac_ct_LIPO=$LIPO
  11287. # Extract the first word of "lipo", so it can be a program name with args.
  11288. set dummy lipo; ac_word=$2
  11289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11290. printf %s "checking for $ac_word... " >&6; }
  11291. if test ${ac_cv_prog_ac_ct_LIPO+y}
  11292. then :
  11293. printf %s "(cached) " >&6
  11294. else case e in #(
  11295. e) if test -n "$ac_ct_LIPO"; then
  11296. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  11297. else
  11298. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11299. for as_dir in $PATH
  11300. do
  11301. IFS=$as_save_IFS
  11302. case $as_dir in #(((
  11303. '') as_dir=./ ;;
  11304. */) ;;
  11305. *) as_dir=$as_dir/ ;;
  11306. esac
  11307. for ac_exec_ext in '' $ac_executable_extensions; do
  11308. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11309. ac_cv_prog_ac_ct_LIPO="lipo"
  11310. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11311. break 2
  11312. fi
  11313. done
  11314. done
  11315. IFS=$as_save_IFS
  11316. fi ;;
  11317. esac
  11318. fi
  11319. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  11320. if test -n "$ac_ct_LIPO"; then
  11321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  11322. printf "%s\n" "$ac_ct_LIPO" >&6; }
  11323. else
  11324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11325. printf "%s\n" "no" >&6; }
  11326. fi
  11327. if test "x$ac_ct_LIPO" = x; then
  11328. LIPO=":"
  11329. else
  11330. case $cross_compiling:$ac_tool_warned in
  11331. yes:)
  11332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11333. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11334. ac_tool_warned=yes ;;
  11335. esac
  11336. LIPO=$ac_ct_LIPO
  11337. fi
  11338. else
  11339. LIPO="$ac_cv_prog_LIPO"
  11340. fi
  11341. if test -n "$ac_tool_prefix"; then
  11342. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  11343. set dummy ${ac_tool_prefix}otool; ac_word=$2
  11344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11345. printf %s "checking for $ac_word... " >&6; }
  11346. if test ${ac_cv_prog_OTOOL+y}
  11347. then :
  11348. printf %s "(cached) " >&6
  11349. else case e in #(
  11350. e) if test -n "$OTOOL"; then
  11351. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  11352. else
  11353. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11354. for as_dir in $PATH
  11355. do
  11356. IFS=$as_save_IFS
  11357. case $as_dir in #(((
  11358. '') as_dir=./ ;;
  11359. */) ;;
  11360. *) as_dir=$as_dir/ ;;
  11361. esac
  11362. for ac_exec_ext in '' $ac_executable_extensions; do
  11363. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11364. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  11365. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11366. break 2
  11367. fi
  11368. done
  11369. done
  11370. IFS=$as_save_IFS
  11371. fi ;;
  11372. esac
  11373. fi
  11374. OTOOL=$ac_cv_prog_OTOOL
  11375. if test -n "$OTOOL"; then
  11376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  11377. printf "%s\n" "$OTOOL" >&6; }
  11378. else
  11379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11380. printf "%s\n" "no" >&6; }
  11381. fi
  11382. fi
  11383. if test -z "$ac_cv_prog_OTOOL"; then
  11384. ac_ct_OTOOL=$OTOOL
  11385. # Extract the first word of "otool", so it can be a program name with args.
  11386. set dummy otool; ac_word=$2
  11387. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11388. printf %s "checking for $ac_word... " >&6; }
  11389. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  11390. then :
  11391. printf %s "(cached) " >&6
  11392. else case e in #(
  11393. e) if test -n "$ac_ct_OTOOL"; then
  11394. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  11395. else
  11396. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11397. for as_dir in $PATH
  11398. do
  11399. IFS=$as_save_IFS
  11400. case $as_dir in #(((
  11401. '') as_dir=./ ;;
  11402. */) ;;
  11403. *) as_dir=$as_dir/ ;;
  11404. esac
  11405. for ac_exec_ext in '' $ac_executable_extensions; do
  11406. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11407. ac_cv_prog_ac_ct_OTOOL="otool"
  11408. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11409. break 2
  11410. fi
  11411. done
  11412. done
  11413. IFS=$as_save_IFS
  11414. fi ;;
  11415. esac
  11416. fi
  11417. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  11418. if test -n "$ac_ct_OTOOL"; then
  11419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  11420. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  11421. else
  11422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11423. printf "%s\n" "no" >&6; }
  11424. fi
  11425. if test "x$ac_ct_OTOOL" = x; then
  11426. OTOOL=":"
  11427. else
  11428. case $cross_compiling:$ac_tool_warned in
  11429. yes:)
  11430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11431. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11432. ac_tool_warned=yes ;;
  11433. esac
  11434. OTOOL=$ac_ct_OTOOL
  11435. fi
  11436. else
  11437. OTOOL="$ac_cv_prog_OTOOL"
  11438. fi
  11439. if test -n "$ac_tool_prefix"; then
  11440. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  11441. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  11442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11443. printf %s "checking for $ac_word... " >&6; }
  11444. if test ${ac_cv_prog_OTOOL64+y}
  11445. then :
  11446. printf %s "(cached) " >&6
  11447. else case e in #(
  11448. e) if test -n "$OTOOL64"; then
  11449. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  11450. else
  11451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11452. for as_dir in $PATH
  11453. do
  11454. IFS=$as_save_IFS
  11455. case $as_dir in #(((
  11456. '') as_dir=./ ;;
  11457. */) ;;
  11458. *) as_dir=$as_dir/ ;;
  11459. esac
  11460. for ac_exec_ext in '' $ac_executable_extensions; do
  11461. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11462. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  11463. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11464. break 2
  11465. fi
  11466. done
  11467. done
  11468. IFS=$as_save_IFS
  11469. fi ;;
  11470. esac
  11471. fi
  11472. OTOOL64=$ac_cv_prog_OTOOL64
  11473. if test -n "$OTOOL64"; then
  11474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  11475. printf "%s\n" "$OTOOL64" >&6; }
  11476. else
  11477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11478. printf "%s\n" "no" >&6; }
  11479. fi
  11480. fi
  11481. if test -z "$ac_cv_prog_OTOOL64"; then
  11482. ac_ct_OTOOL64=$OTOOL64
  11483. # Extract the first word of "otool64", so it can be a program name with args.
  11484. set dummy otool64; ac_word=$2
  11485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11486. printf %s "checking for $ac_word... " >&6; }
  11487. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  11488. then :
  11489. printf %s "(cached) " >&6
  11490. else case e in #(
  11491. e) if test -n "$ac_ct_OTOOL64"; then
  11492. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  11493. else
  11494. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11495. for as_dir in $PATH
  11496. do
  11497. IFS=$as_save_IFS
  11498. case $as_dir in #(((
  11499. '') as_dir=./ ;;
  11500. */) ;;
  11501. *) as_dir=$as_dir/ ;;
  11502. esac
  11503. for ac_exec_ext in '' $ac_executable_extensions; do
  11504. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11505. ac_cv_prog_ac_ct_OTOOL64="otool64"
  11506. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11507. break 2
  11508. fi
  11509. done
  11510. done
  11511. IFS=$as_save_IFS
  11512. fi ;;
  11513. esac
  11514. fi
  11515. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  11516. if test -n "$ac_ct_OTOOL64"; then
  11517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  11518. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  11519. else
  11520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11521. printf "%s\n" "no" >&6; }
  11522. fi
  11523. if test "x$ac_ct_OTOOL64" = x; then
  11524. OTOOL64=":"
  11525. else
  11526. case $cross_compiling:$ac_tool_warned in
  11527. yes:)
  11528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11529. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11530. ac_tool_warned=yes ;;
  11531. esac
  11532. OTOOL64=$ac_ct_OTOOL64
  11533. fi
  11534. else
  11535. OTOOL64="$ac_cv_prog_OTOOL64"
  11536. fi
  11537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  11538. printf %s "checking for -single_module linker flag... " >&6; }
  11539. if test ${lt_cv_apple_cc_single_mod+y}
  11540. then :
  11541. printf %s "(cached) " >&6
  11542. else case e in #(
  11543. e) lt_cv_apple_cc_single_mod=no
  11544. if test -z "$LT_MULTI_MODULE"; then
  11545. # By default we will add the -single_module flag. You can override
  11546. # by either setting the environment variable LT_MULTI_MODULE
  11547. # non-empty at configure time, or by adding -multi_module to the
  11548. # link flags.
  11549. rm -rf libconftest.dylib*
  11550. echo "int foo(void){return 1;}" > conftest.c
  11551. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  11552. -dynamiclib -Wl,-single_module conftest.c" >&5
  11553. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  11554. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  11555. _lt_result=$?
  11556. # If there is a non-empty error log, and "single_module"
  11557. # appears in it, assume the flag caused a linker warning
  11558. if test -s conftest.err && $GREP single_module conftest.err; then
  11559. cat conftest.err >&5
  11560. # Otherwise, if the output was created with a 0 exit code from
  11561. # the compiler, it worked.
  11562. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  11563. lt_cv_apple_cc_single_mod=yes
  11564. else
  11565. cat conftest.err >&5
  11566. fi
  11567. rm -rf libconftest.dylib*
  11568. rm -f conftest.*
  11569. fi ;;
  11570. esac
  11571. fi
  11572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  11573. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  11574. # Feature test to disable chained fixups since it is not
  11575. # compatible with '-undefined dynamic_lookup'
  11576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
  11577. printf %s "checking for -no_fixup_chains linker flag... " >&6; }
  11578. if test ${lt_cv_support_no_fixup_chains+y}
  11579. then :
  11580. printf %s "(cached) " >&6
  11581. else case e in #(
  11582. e) save_LDFLAGS=$LDFLAGS
  11583. LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
  11584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11585. /* end confdefs.h. */
  11586. int
  11587. main (void)
  11588. {
  11589. ;
  11590. return 0;
  11591. }
  11592. _ACEOF
  11593. if ac_fn_c_try_link "$LINENO"
  11594. then :
  11595. lt_cv_support_no_fixup_chains=yes
  11596. else case e in #(
  11597. e) lt_cv_support_no_fixup_chains=no
  11598. ;;
  11599. esac
  11600. fi
  11601. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11602. conftest$ac_exeext conftest.$ac_ext
  11603. LDFLAGS=$save_LDFLAGS
  11604. ;;
  11605. esac
  11606. fi
  11607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
  11608. printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
  11609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  11610. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  11611. if test ${lt_cv_ld_exported_symbols_list+y}
  11612. then :
  11613. printf %s "(cached) " >&6
  11614. else case e in #(
  11615. e) lt_cv_ld_exported_symbols_list=no
  11616. save_LDFLAGS=$LDFLAGS
  11617. echo "_main" > conftest.sym
  11618. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  11619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11620. /* end confdefs.h. */
  11621. int
  11622. main (void)
  11623. {
  11624. ;
  11625. return 0;
  11626. }
  11627. _ACEOF
  11628. if ac_fn_c_try_link "$LINENO"
  11629. then :
  11630. lt_cv_ld_exported_symbols_list=yes
  11631. else case e in #(
  11632. e) lt_cv_ld_exported_symbols_list=no ;;
  11633. esac
  11634. fi
  11635. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11636. conftest$ac_exeext conftest.$ac_ext
  11637. LDFLAGS=$save_LDFLAGS
  11638. ;;
  11639. esac
  11640. fi
  11641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  11642. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  11643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  11644. printf %s "checking for -force_load linker flag... " >&6; }
  11645. if test ${lt_cv_ld_force_load+y}
  11646. then :
  11647. printf %s "(cached) " >&6
  11648. else case e in #(
  11649. e) lt_cv_ld_force_load=no
  11650. cat > conftest.c << _LT_EOF
  11651. int forced_loaded() { return 2;}
  11652. _LT_EOF
  11653. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  11654. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  11655. echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
  11656. $AR $AR_FLAGS libconftest.a conftest.o 2>&5
  11657. echo "$RANLIB libconftest.a" >&5
  11658. $RANLIB libconftest.a 2>&5
  11659. cat > conftest.c << _LT_EOF
  11660. int main(void) { return 0;}
  11661. _LT_EOF
  11662. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  11663. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  11664. _lt_result=$?
  11665. if test -s conftest.err && $GREP force_load conftest.err; then
  11666. cat conftest.err >&5
  11667. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  11668. lt_cv_ld_force_load=yes
  11669. else
  11670. cat conftest.err >&5
  11671. fi
  11672. rm -f conftest.err libconftest.a conftest conftest.c
  11673. rm -rf conftest.dSYM
  11674. ;;
  11675. esac
  11676. fi
  11677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  11678. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  11679. case $host_os in
  11680. rhapsody* | darwin1.[012])
  11681. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  11682. darwin1.*)
  11683. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  11684. darwin*)
  11685. case $MACOSX_DEPLOYMENT_TARGET,$host in
  11686. 10.[012],*|,*powerpc*-darwin[5-8]*)
  11687. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  11688. *)
  11689. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
  11690. if test yes = "$lt_cv_support_no_fixup_chains"; then
  11691. as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
  11692. fi
  11693. ;;
  11694. esac
  11695. ;;
  11696. esac
  11697. if test yes = "$lt_cv_apple_cc_single_mod"; then
  11698. _lt_dar_single_mod='$single_module'
  11699. fi
  11700. _lt_dar_needs_single_mod=no
  11701. case $host_os in
  11702. rhapsody* | darwin1.*)
  11703. _lt_dar_needs_single_mod=yes ;;
  11704. darwin*)
  11705. # When targeting Mac OS X 10.4 (darwin 8) or later,
  11706. # -single_module is the default and -multi_module is unsupported.
  11707. # The toolchain on macOS 10.14 (darwin 18) and later cannot
  11708. # target any OS version that needs -single_module.
  11709. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  11710. 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
  11711. _lt_dar_needs_single_mod=yes ;;
  11712. esac
  11713. ;;
  11714. esac
  11715. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  11716. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  11717. else
  11718. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  11719. fi
  11720. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  11721. _lt_dsymutil='~$DSYMUTIL $lib || :'
  11722. else
  11723. _lt_dsymutil=
  11724. fi
  11725. ;;
  11726. esac
  11727. # func_munge_path_list VARIABLE PATH
  11728. # -----------------------------------
  11729. # VARIABLE is name of variable containing _space_ separated list of
  11730. # directories to be munged by the contents of PATH, which is string
  11731. # having a format:
  11732. # "DIR[:DIR]:"
  11733. # string "DIR[ DIR]" will be prepended to VARIABLE
  11734. # ":DIR[:DIR]"
  11735. # string "DIR[ DIR]" will be appended to VARIABLE
  11736. # "DIRP[:DIRP]::[DIRA:]DIRA"
  11737. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  11738. # "DIRA[ DIRA]" will be appended to VARIABLE
  11739. # "DIR[:DIR]"
  11740. # VARIABLE will be replaced by "DIR[ DIR]"
  11741. func_munge_path_list ()
  11742. {
  11743. case x$2 in
  11744. x)
  11745. ;;
  11746. *:)
  11747. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  11748. ;;
  11749. x:*)
  11750. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  11751. ;;
  11752. *::*)
  11753. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  11754. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  11755. ;;
  11756. *)
  11757. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  11758. ;;
  11759. esac
  11760. }
  11761. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  11762. "
  11763. if test "x$ac_cv_header_dlfcn_h" = xyes
  11764. then :
  11765. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  11766. fi
  11767. # Set options
  11768. enable_dlopen=no
  11769. enable_win32_dll=no
  11770. # Check whether --enable-static was given.
  11771. if test ${enable_static+y}
  11772. then :
  11773. enableval=$enable_static; p=${PACKAGE-default}
  11774. case $enableval in
  11775. yes) enable_static=yes ;;
  11776. no) enable_static=no ;;
  11777. *)
  11778. enable_static=no
  11779. # Look at the argument we got. We use all the common list separators.
  11780. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  11781. for pkg in $enableval; do
  11782. IFS=$lt_save_ifs
  11783. if test "X$pkg" = "X$p"; then
  11784. enable_static=yes
  11785. fi
  11786. done
  11787. IFS=$lt_save_ifs
  11788. ;;
  11789. esac
  11790. else case e in #(
  11791. e) enable_static=yes ;;
  11792. esac
  11793. fi
  11794. # Check whether --enable-pic was given.
  11795. if test ${enable_pic+y}
  11796. then :
  11797. enableval=$enable_pic; lt_p=${PACKAGE-default}
  11798. case $enableval in
  11799. yes|no) pic_mode=$enableval ;;
  11800. *)
  11801. pic_mode=default
  11802. # Look at the argument we got. We use all the common list separators.
  11803. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  11804. for lt_pkg in $enableval; do
  11805. IFS=$lt_save_ifs
  11806. if test "X$lt_pkg" = "X$lt_p"; then
  11807. pic_mode=yes
  11808. fi
  11809. done
  11810. IFS=$lt_save_ifs
  11811. ;;
  11812. esac
  11813. else case e in #(
  11814. e) # Check whether --with-pic was given.
  11815. if test ${with_pic+y}
  11816. then :
  11817. withval=$with_pic; lt_p=${PACKAGE-default}
  11818. case $withval in
  11819. yes|no) pic_mode=$withval ;;
  11820. *)
  11821. pic_mode=default
  11822. # Look at the argument we got. We use all the common list separators.
  11823. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  11824. for lt_pkg in $withval; do
  11825. IFS=$lt_save_ifs
  11826. if test "X$lt_pkg" = "X$lt_p"; then
  11827. pic_mode=yes
  11828. fi
  11829. done
  11830. IFS=$lt_save_ifs
  11831. ;;
  11832. esac
  11833. else case e in #(
  11834. e) pic_mode=default ;;
  11835. esac
  11836. fi
  11837. ;;
  11838. esac
  11839. fi
  11840. # Check whether --enable-fast-install was given.
  11841. if test ${enable_fast_install+y}
  11842. then :
  11843. enableval=$enable_fast_install; p=${PACKAGE-default}
  11844. case $enableval in
  11845. yes) enable_fast_install=yes ;;
  11846. no) enable_fast_install=no ;;
  11847. *)
  11848. enable_fast_install=no
  11849. # Look at the argument we got. We use all the common list separators.
  11850. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  11851. for pkg in $enableval; do
  11852. IFS=$lt_save_ifs
  11853. if test "X$pkg" = "X$p"; then
  11854. enable_fast_install=yes
  11855. fi
  11856. done
  11857. IFS=$lt_save_ifs
  11858. ;;
  11859. esac
  11860. else case e in #(
  11861. e) enable_fast_install=yes ;;
  11862. esac
  11863. fi
  11864. shared_archive_member_spec=
  11865. case $host,$enable_shared in
  11866. power*-*-aix[5-9]*,yes)
  11867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  11868. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  11869. # Check whether --enable-aix-soname was given.
  11870. if test ${enable_aix_soname+y}
  11871. then :
  11872. enableval=$enable_aix_soname; case $enableval in
  11873. aix|svr4|both)
  11874. ;;
  11875. *)
  11876. as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
  11877. ;;
  11878. esac
  11879. lt_cv_with_aix_soname=$enable_aix_soname
  11880. else case e in #(
  11881. e) # Check whether --with-aix-soname was given.
  11882. if test ${with_aix_soname+y}
  11883. then :
  11884. withval=$with_aix_soname; case $withval in
  11885. aix|svr4|both)
  11886. ;;
  11887. *)
  11888. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  11889. ;;
  11890. esac
  11891. lt_cv_with_aix_soname=$with_aix_soname
  11892. else case e in #(
  11893. e) if test ${lt_cv_with_aix_soname+y}
  11894. then :
  11895. printf %s "(cached) " >&6
  11896. else case e in #(
  11897. e) lt_cv_with_aix_soname=aix ;;
  11898. esac
  11899. fi
  11900. ;;
  11901. esac
  11902. fi
  11903. enable_aix_soname=$lt_cv_with_aix_soname ;;
  11904. esac
  11905. fi
  11906. with_aix_soname=$enable_aix_soname
  11907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  11908. printf "%s\n" "$with_aix_soname" >&6; }
  11909. if test aix != "$with_aix_soname"; then
  11910. # For the AIX way of multilib, we name the shared archive member
  11911. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  11912. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  11913. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  11914. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  11915. if test 64 = "${OBJECT_MODE-32}"; then
  11916. shared_archive_member_spec=shr_64
  11917. else
  11918. shared_archive_member_spec=shr
  11919. fi
  11920. fi
  11921. ;;
  11922. *)
  11923. with_aix_soname=aix
  11924. ;;
  11925. esac
  11926. # This can be used to rebuild libtool when needed
  11927. LIBTOOL_DEPS=$ltmain
  11928. # Always use our own libtool.
  11929. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  11930. test -z "$LN_S" && LN_S="ln -s"
  11931. if test -n "${ZSH_VERSION+set}"; then
  11932. setopt NO_GLOB_SUBST
  11933. fi
  11934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  11935. printf %s "checking for objdir... " >&6; }
  11936. if test ${lt_cv_objdir+y}
  11937. then :
  11938. printf %s "(cached) " >&6
  11939. else case e in #(
  11940. e) rm -f .libs 2>/dev/null
  11941. mkdir .libs 2>/dev/null
  11942. if test -d .libs; then
  11943. lt_cv_objdir=.libs
  11944. else
  11945. # MS-DOS does not allow filenames that begin with a dot.
  11946. lt_cv_objdir=_libs
  11947. fi
  11948. rmdir .libs 2>/dev/null ;;
  11949. esac
  11950. fi
  11951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  11952. printf "%s\n" "$lt_cv_objdir" >&6; }
  11953. objdir=$lt_cv_objdir
  11954. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  11955. case $host_os in
  11956. aix3*)
  11957. # AIX sometimes has problems with the GCC collect2 program. For some
  11958. # reason, if we set the COLLECT_NAMES environment variable, the problems
  11959. # vanish in a puff of smoke.
  11960. if test set != "${COLLECT_NAMES+set}"; then
  11961. COLLECT_NAMES=
  11962. export COLLECT_NAMES
  11963. fi
  11964. ;;
  11965. esac
  11966. # Global variables:
  11967. ofile=libtool
  11968. can_build_shared=yes
  11969. # All known linkers require a '.a' archive for static linking (except MSVC and
  11970. # ICC, which need '.lib').
  11971. libext=a
  11972. with_gnu_ld=$lt_cv_prog_gnu_ld
  11973. old_CC=$CC
  11974. old_CFLAGS=$CFLAGS
  11975. # Set sane defaults for various variables
  11976. test -z "$CC" && CC=cc
  11977. test -z "$LTCC" && LTCC=$CC
  11978. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  11979. test -z "$LD" && LD=ld
  11980. test -z "$ac_objext" && ac_objext=o
  11981. func_cc_basename $compiler
  11982. cc_basename=$func_cc_basename_result
  11983. # Only perform the check for file, if the check method requires it
  11984. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  11985. case $deplibs_check_method in
  11986. file_magic*)
  11987. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  11988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  11989. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  11990. if test ${lt_cv_path_MAGIC_CMD+y}
  11991. then :
  11992. printf %s "(cached) " >&6
  11993. else case e in #(
  11994. e) case $MAGIC_CMD in
  11995. [\\/*] | ?:[\\/]*)
  11996. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  11997. ;;
  11998. *)
  11999. lt_save_MAGIC_CMD=$MAGIC_CMD
  12000. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12001. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  12002. for ac_dir in $ac_dummy; do
  12003. IFS=$lt_save_ifs
  12004. test -z "$ac_dir" && ac_dir=.
  12005. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  12006. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  12007. if test -n "$file_magic_test_file"; then
  12008. case $deplibs_check_method in
  12009. "file_magic "*)
  12010. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  12011. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  12012. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  12013. $EGREP "$file_magic_regex" > /dev/null; then
  12014. :
  12015. else
  12016. cat <<_LT_EOF 1>&2
  12017. *** Warning: the command libtool uses to detect shared libraries,
  12018. *** $file_magic_cmd, produces output that libtool cannot recognize.
  12019. *** The result is that libtool may fail to recognize shared libraries
  12020. *** as such. This will affect the creation of libtool libraries that
  12021. *** depend on shared libraries, but programs linked with such libtool
  12022. *** libraries will work regardless of this problem. Nevertheless, you
  12023. *** may want to report the problem to your system manager and/or to
  12024. *** [email protected]
  12025. _LT_EOF
  12026. fi ;;
  12027. esac
  12028. fi
  12029. break
  12030. fi
  12031. done
  12032. IFS=$lt_save_ifs
  12033. MAGIC_CMD=$lt_save_MAGIC_CMD
  12034. ;;
  12035. esac ;;
  12036. esac
  12037. fi
  12038. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  12039. if test -n "$MAGIC_CMD"; then
  12040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  12041. printf "%s\n" "$MAGIC_CMD" >&6; }
  12042. else
  12043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12044. printf "%s\n" "no" >&6; }
  12045. fi
  12046. if test -z "$lt_cv_path_MAGIC_CMD"; then
  12047. if test -n "$ac_tool_prefix"; then
  12048. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  12049. printf %s "checking for file... " >&6; }
  12050. if test ${lt_cv_path_MAGIC_CMD+y}
  12051. then :
  12052. printf %s "(cached) " >&6
  12053. else case e in #(
  12054. e) case $MAGIC_CMD in
  12055. [\\/*] | ?:[\\/]*)
  12056. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  12057. ;;
  12058. *)
  12059. lt_save_MAGIC_CMD=$MAGIC_CMD
  12060. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12061. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  12062. for ac_dir in $ac_dummy; do
  12063. IFS=$lt_save_ifs
  12064. test -z "$ac_dir" && ac_dir=.
  12065. if test -f "$ac_dir/file"; then
  12066. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  12067. if test -n "$file_magic_test_file"; then
  12068. case $deplibs_check_method in
  12069. "file_magic "*)
  12070. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  12071. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  12072. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  12073. $EGREP "$file_magic_regex" > /dev/null; then
  12074. :
  12075. else
  12076. cat <<_LT_EOF 1>&2
  12077. *** Warning: the command libtool uses to detect shared libraries,
  12078. *** $file_magic_cmd, produces output that libtool cannot recognize.
  12079. *** The result is that libtool may fail to recognize shared libraries
  12080. *** as such. This will affect the creation of libtool libraries that
  12081. *** depend on shared libraries, but programs linked with such libtool
  12082. *** libraries will work regardless of this problem. Nevertheless, you
  12083. *** may want to report the problem to your system manager and/or to
  12084. *** [email protected]
  12085. _LT_EOF
  12086. fi ;;
  12087. esac
  12088. fi
  12089. break
  12090. fi
  12091. done
  12092. IFS=$lt_save_ifs
  12093. MAGIC_CMD=$lt_save_MAGIC_CMD
  12094. ;;
  12095. esac ;;
  12096. esac
  12097. fi
  12098. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  12099. if test -n "$MAGIC_CMD"; then
  12100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  12101. printf "%s\n" "$MAGIC_CMD" >&6; }
  12102. else
  12103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12104. printf "%s\n" "no" >&6; }
  12105. fi
  12106. else
  12107. MAGIC_CMD=:
  12108. fi
  12109. fi
  12110. fi
  12111. ;;
  12112. esac
  12113. # Use C for the default configuration in the libtool script
  12114. lt_save_CC=$CC
  12115. ac_ext=c
  12116. ac_cpp='$CPP $CPPFLAGS'
  12117. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12118. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12119. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12120. # Source file extension for C test sources.
  12121. ac_ext=c
  12122. # Object file extension for compiled C test sources.
  12123. objext=o
  12124. objext=$objext
  12125. # Code to be used in simple compile tests
  12126. lt_simple_compile_test_code="int some_variable = 0;"
  12127. # Code to be used in simple link tests
  12128. lt_simple_link_test_code='int main(void){return(0);}'
  12129. # If no C compiler was specified, use CC.
  12130. LTCC=${LTCC-"$CC"}
  12131. # If no C compiler flags were specified, use CFLAGS.
  12132. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12133. # Allow CC to be a program name with arguments.
  12134. compiler=$CC
  12135. # Save the default compiler, since it gets overwritten when the other
  12136. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  12137. compiler_DEFAULT=$CC
  12138. # save warnings/boilerplate of simple test code
  12139. ac_outfile=conftest.$ac_objext
  12140. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12141. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12142. _lt_compiler_boilerplate=`cat conftest.err`
  12143. $RM conftest*
  12144. ac_outfile=conftest.$ac_objext
  12145. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12146. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12147. _lt_linker_boilerplate=`cat conftest.err`
  12148. $RM -r conftest*
  12149. ## CAVEAT EMPTOR:
  12150. ## There is no encapsulation within the following macros, do not change
  12151. ## the running order or otherwise move them around unless you know exactly
  12152. ## what you are doing...
  12153. if test -n "$compiler"; then
  12154. lt_prog_compiler_no_builtin_flag=
  12155. if test yes = "$GCC"; then
  12156. case $cc_basename in
  12157. nvcc*)
  12158. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  12159. *)
  12160. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  12161. esac
  12162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  12163. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  12164. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  12165. then :
  12166. printf %s "(cached) " >&6
  12167. else case e in #(
  12168. e) lt_cv_prog_compiler_rtti_exceptions=no
  12169. ac_outfile=conftest.$ac_objext
  12170. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12171. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  12172. # Insert the option either (1) after the last *FLAGS variable, or
  12173. # (2) before a word containing "conftest.", or (3) at the end.
  12174. # Note that $ac_compile itself does not contain backslashes and begins
  12175. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12176. # The option is referenced via a variable to avoid confusing sed.
  12177. lt_compile=`echo "$ac_compile" | $SED \
  12178. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12179. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12180. -e 's:$: $lt_compiler_flag:'`
  12181. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12182. (eval "$lt_compile" 2>conftest.err)
  12183. ac_status=$?
  12184. cat conftest.err >&5
  12185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12186. if (exit $ac_status) && test -s "$ac_outfile"; then
  12187. # The compiler can only warn and ignore the option if not recognized
  12188. # So say no if there are warnings other than the usual output.
  12189. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12190. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12191. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12192. lt_cv_prog_compiler_rtti_exceptions=yes
  12193. fi
  12194. fi
  12195. $RM conftest*
  12196. ;;
  12197. esac
  12198. fi
  12199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  12200. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  12201. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  12202. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  12203. else
  12204. :
  12205. fi
  12206. fi
  12207. lt_prog_compiler_wl=
  12208. lt_prog_compiler_pic=
  12209. lt_prog_compiler_static=
  12210. if test yes = "$GCC"; then
  12211. lt_prog_compiler_wl='-Wl,'
  12212. lt_prog_compiler_static='-static'
  12213. case $host_os in
  12214. aix*)
  12215. # All AIX code is PIC.
  12216. if test ia64 = "$host_cpu"; then
  12217. # AIX 5 now supports IA64 processor
  12218. lt_prog_compiler_static='-Bstatic'
  12219. fi
  12220. lt_prog_compiler_pic='-fPIC'
  12221. ;;
  12222. amigaos*)
  12223. case $host_cpu in
  12224. powerpc)
  12225. # see comment about AmigaOS4 .so support
  12226. lt_prog_compiler_pic='-fPIC'
  12227. ;;
  12228. m68k)
  12229. # FIXME: we need at least 68020 code to build shared libraries, but
  12230. # adding the '-m68020' flag to GCC prevents building anything better,
  12231. # like '-m68040'.
  12232. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  12233. ;;
  12234. esac
  12235. ;;
  12236. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12237. # PIC is the default for these OSes.
  12238. ;;
  12239. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  12240. # This hack is so that the source file can tell whether it is being
  12241. # built for inclusion in a dll (and should export symbols for example).
  12242. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12243. # (--disable-auto-import) libraries
  12244. lt_prog_compiler_pic='-DDLL_EXPORT'
  12245. case $host_os in
  12246. os2*)
  12247. lt_prog_compiler_static='$wl-static'
  12248. ;;
  12249. esac
  12250. ;;
  12251. darwin* | rhapsody*)
  12252. # PIC is the default on this platform
  12253. # Common symbols not allowed in MH_DYLIB files
  12254. lt_prog_compiler_pic='-fno-common'
  12255. ;;
  12256. haiku*)
  12257. # PIC is the default for Haiku.
  12258. # The "-static" flag exists, but is broken.
  12259. lt_prog_compiler_static=
  12260. ;;
  12261. hpux*)
  12262. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12263. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12264. # sets the default TLS model and affects inlining.
  12265. case $host_cpu in
  12266. hppa*64*)
  12267. # +Z the default
  12268. ;;
  12269. *)
  12270. lt_prog_compiler_pic='-fPIC'
  12271. ;;
  12272. esac
  12273. ;;
  12274. interix[3-9]*)
  12275. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12276. # Instead, we relocate shared libraries at runtime.
  12277. ;;
  12278. msdosdjgpp*)
  12279. # Just because we use GCC doesn't mean we suddenly get shared libraries
  12280. # on systems that don't support them.
  12281. lt_prog_compiler_can_build_shared=no
  12282. enable_shared=no
  12283. ;;
  12284. *nto* | *qnx*)
  12285. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12286. # it will coredump.
  12287. lt_prog_compiler_pic='-fPIC -shared'
  12288. ;;
  12289. sysv4*MP*)
  12290. if test -d /usr/nec; then
  12291. lt_prog_compiler_pic=-Kconform_pic
  12292. fi
  12293. ;;
  12294. *)
  12295. lt_prog_compiler_pic='-fPIC'
  12296. ;;
  12297. esac
  12298. case $cc_basename in
  12299. nvcc*) # Cuda Compiler Driver 2.2
  12300. lt_prog_compiler_wl='-Xlinker '
  12301. if test -n "$lt_prog_compiler_pic"; then
  12302. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  12303. fi
  12304. ;;
  12305. esac
  12306. else
  12307. # PORTME Check for flag to pass linker flags through the system compiler.
  12308. case $host_os in
  12309. aix*)
  12310. lt_prog_compiler_wl='-Wl,'
  12311. if test ia64 = "$host_cpu"; then
  12312. # AIX 5 now supports IA64 processor
  12313. lt_prog_compiler_static='-Bstatic'
  12314. else
  12315. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  12316. fi
  12317. ;;
  12318. darwin* | rhapsody*)
  12319. # PIC is the default on this platform
  12320. # Common symbols not allowed in MH_DYLIB files
  12321. lt_prog_compiler_pic='-fno-common'
  12322. case $cc_basename in
  12323. nagfor*)
  12324. # NAG Fortran compiler
  12325. lt_prog_compiler_wl='-Wl,-Wl,,'
  12326. lt_prog_compiler_pic='-PIC'
  12327. lt_prog_compiler_static='-Bstatic'
  12328. ;;
  12329. esac
  12330. ;;
  12331. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  12332. # This hack is so that the source file can tell whether it is being
  12333. # built for inclusion in a dll (and should export symbols for example).
  12334. lt_prog_compiler_pic='-DDLL_EXPORT'
  12335. case $host_os in
  12336. os2*)
  12337. lt_prog_compiler_static='$wl-static'
  12338. ;;
  12339. esac
  12340. ;;
  12341. hpux9* | hpux10* | hpux11*)
  12342. lt_prog_compiler_wl='-Wl,'
  12343. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12344. # not for PA HP-UX.
  12345. case $host_cpu in
  12346. hppa*64*|ia64*)
  12347. # +Z the default
  12348. ;;
  12349. *)
  12350. lt_prog_compiler_pic='+Z'
  12351. ;;
  12352. esac
  12353. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  12354. lt_prog_compiler_static='$wl-a ${wl}archive'
  12355. ;;
  12356. irix5* | irix6* | nonstopux*)
  12357. lt_prog_compiler_wl='-Wl,'
  12358. # PIC (with -KPIC) is the default.
  12359. lt_prog_compiler_static='-non_shared'
  12360. ;;
  12361. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12362. case $cc_basename in
  12363. # old Intel for x86_64, which still supported -KPIC.
  12364. ecc*)
  12365. lt_prog_compiler_wl='-Wl,'
  12366. lt_prog_compiler_pic='-KPIC'
  12367. lt_prog_compiler_static='-static'
  12368. ;;
  12369. *flang* | ftn | f18* | f95*)
  12370. # Flang compiler.
  12371. lt_prog_compiler_wl='-Wl,'
  12372. lt_prog_compiler_pic='-fPIC'
  12373. lt_prog_compiler_static='-static'
  12374. ;;
  12375. # icc used to be incompatible with GCC.
  12376. # ICC 10 doesn't accept -KPIC any more.
  12377. icc* | ifort*)
  12378. lt_prog_compiler_wl='-Wl,'
  12379. lt_prog_compiler_pic='-fPIC'
  12380. lt_prog_compiler_static='-static'
  12381. ;;
  12382. # Lahey Fortran 8.1.
  12383. lf95*)
  12384. lt_prog_compiler_wl='-Wl,'
  12385. lt_prog_compiler_pic='--shared'
  12386. lt_prog_compiler_static='--static'
  12387. ;;
  12388. nagfor*)
  12389. # NAG Fortran compiler
  12390. lt_prog_compiler_wl='-Wl,-Wl,,'
  12391. lt_prog_compiler_pic='-PIC'
  12392. lt_prog_compiler_static='-Bstatic'
  12393. ;;
  12394. tcc*)
  12395. # Fabrice Bellard et al's Tiny C Compiler
  12396. lt_prog_compiler_wl='-Wl,'
  12397. lt_prog_compiler_pic='-fPIC'
  12398. lt_prog_compiler_static='-static'
  12399. ;;
  12400. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  12401. # Portland Group compilers (*not* the Pentium gcc compiler,
  12402. # which looks to be a dead project)
  12403. lt_prog_compiler_wl='-Wl,'
  12404. lt_prog_compiler_pic='-fpic'
  12405. lt_prog_compiler_static='-Bstatic'
  12406. ;;
  12407. ccc*)
  12408. lt_prog_compiler_wl='-Wl,'
  12409. # All Alpha code is PIC.
  12410. lt_prog_compiler_static='-non_shared'
  12411. ;;
  12412. xl* | bgxl* | bgf* | mpixl*)
  12413. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  12414. lt_prog_compiler_wl='-Wl,'
  12415. lt_prog_compiler_pic='-qpic'
  12416. lt_prog_compiler_static='-qstaticlink'
  12417. ;;
  12418. *)
  12419. case `$CC -V 2>&1 | $SED 5q` in
  12420. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  12421. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  12422. lt_prog_compiler_pic='-KPIC'
  12423. lt_prog_compiler_static='-Bstatic'
  12424. lt_prog_compiler_wl=''
  12425. ;;
  12426. *Sun\ F* | *Sun*Fortran*)
  12427. lt_prog_compiler_pic='-KPIC'
  12428. lt_prog_compiler_static='-Bstatic'
  12429. lt_prog_compiler_wl='-Qoption ld '
  12430. ;;
  12431. *Sun\ C*)
  12432. # Sun C 5.9
  12433. lt_prog_compiler_pic='-KPIC'
  12434. lt_prog_compiler_static='-Bstatic'
  12435. lt_prog_compiler_wl='-Wl,'
  12436. ;;
  12437. *Intel*\ [CF]*Compiler*)
  12438. lt_prog_compiler_wl='-Wl,'
  12439. lt_prog_compiler_pic='-fPIC'
  12440. lt_prog_compiler_static='-static'
  12441. ;;
  12442. *Portland\ Group*)
  12443. lt_prog_compiler_wl='-Wl,'
  12444. lt_prog_compiler_pic='-fpic'
  12445. lt_prog_compiler_static='-Bstatic'
  12446. ;;
  12447. esac
  12448. ;;
  12449. esac
  12450. ;;
  12451. newsos6)
  12452. lt_prog_compiler_pic='-KPIC'
  12453. lt_prog_compiler_static='-Bstatic'
  12454. ;;
  12455. *-mlibc)
  12456. lt_prog_compiler_wl='-Wl,'
  12457. lt_prog_compiler_pic='-fPIC'
  12458. lt_prog_compiler_static='-static'
  12459. ;;
  12460. *nto* | *qnx*)
  12461. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12462. # it will coredump.
  12463. lt_prog_compiler_pic='-fPIC -shared'
  12464. ;;
  12465. osf3* | osf4* | osf5*)
  12466. lt_prog_compiler_wl='-Wl,'
  12467. # All OSF/1 code is PIC.
  12468. lt_prog_compiler_static='-non_shared'
  12469. ;;
  12470. rdos*)
  12471. lt_prog_compiler_static='-non_shared'
  12472. ;;
  12473. serenity*)
  12474. ;;
  12475. solaris*)
  12476. lt_prog_compiler_pic='-KPIC'
  12477. lt_prog_compiler_static='-Bstatic'
  12478. case $cc_basename in
  12479. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  12480. lt_prog_compiler_wl='-Qoption ld ';;
  12481. *)
  12482. lt_prog_compiler_wl='-Wl,';;
  12483. esac
  12484. ;;
  12485. sunos4*)
  12486. lt_prog_compiler_wl='-Qoption ld '
  12487. lt_prog_compiler_pic='-PIC'
  12488. lt_prog_compiler_static='-Bstatic'
  12489. ;;
  12490. sysv4 | sysv4.2uw2* | sysv4.3*)
  12491. lt_prog_compiler_wl='-Wl,'
  12492. lt_prog_compiler_pic='-KPIC'
  12493. lt_prog_compiler_static='-Bstatic'
  12494. ;;
  12495. sysv4*MP*)
  12496. if test -d /usr/nec; then
  12497. lt_prog_compiler_pic='-Kconform_pic'
  12498. lt_prog_compiler_static='-Bstatic'
  12499. fi
  12500. ;;
  12501. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12502. lt_prog_compiler_wl='-Wl,'
  12503. lt_prog_compiler_pic='-KPIC'
  12504. lt_prog_compiler_static='-Bstatic'
  12505. ;;
  12506. unicos*)
  12507. lt_prog_compiler_wl='-Wl,'
  12508. lt_prog_compiler_can_build_shared=no
  12509. ;;
  12510. uts4*)
  12511. lt_prog_compiler_pic='-pic'
  12512. lt_prog_compiler_static='-Bstatic'
  12513. ;;
  12514. *)
  12515. lt_prog_compiler_can_build_shared=no
  12516. ;;
  12517. esac
  12518. fi
  12519. case $host_os in
  12520. # For platforms that do not support PIC, -DPIC is meaningless:
  12521. *djgpp*)
  12522. lt_prog_compiler_pic=
  12523. ;;
  12524. *)
  12525. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  12526. ;;
  12527. esac
  12528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12529. printf %s "checking for $compiler option to produce PIC... " >&6; }
  12530. if test ${lt_cv_prog_compiler_pic+y}
  12531. then :
  12532. printf %s "(cached) " >&6
  12533. else case e in #(
  12534. e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
  12535. esac
  12536. fi
  12537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  12538. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  12539. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  12540. #
  12541. # Check to make sure the PIC flag actually works.
  12542. #
  12543. if test -n "$lt_prog_compiler_pic"; then
  12544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  12545. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  12546. if test ${lt_cv_prog_compiler_pic_works+y}
  12547. then :
  12548. printf %s "(cached) " >&6
  12549. else case e in #(
  12550. e) lt_cv_prog_compiler_pic_works=no
  12551. ac_outfile=conftest.$ac_objext
  12552. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12553. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  12554. # Insert the option either (1) after the last *FLAGS variable, or
  12555. # (2) before a word containing "conftest.", or (3) at the end.
  12556. # Note that $ac_compile itself does not contain backslashes and begins
  12557. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12558. # The option is referenced via a variable to avoid confusing sed.
  12559. lt_compile=`echo "$ac_compile" | $SED \
  12560. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12561. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12562. -e 's:$: $lt_compiler_flag:'`
  12563. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12564. (eval "$lt_compile" 2>conftest.err)
  12565. ac_status=$?
  12566. cat conftest.err >&5
  12567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12568. if (exit $ac_status) && test -s "$ac_outfile"; then
  12569. # The compiler can only warn and ignore the option if not recognized
  12570. # So say no if there are warnings other than the usual output.
  12571. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12572. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12573. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12574. lt_cv_prog_compiler_pic_works=yes
  12575. fi
  12576. fi
  12577. $RM conftest*
  12578. ;;
  12579. esac
  12580. fi
  12581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  12582. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  12583. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  12584. case $lt_prog_compiler_pic in
  12585. "" | " "*) ;;
  12586. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  12587. esac
  12588. else
  12589. lt_prog_compiler_pic=
  12590. lt_prog_compiler_can_build_shared=no
  12591. fi
  12592. fi
  12593. #
  12594. # Check to make sure the static flag actually works.
  12595. #
  12596. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  12597. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12598. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12599. if test ${lt_cv_prog_compiler_static_works+y}
  12600. then :
  12601. printf %s "(cached) " >&6
  12602. else case e in #(
  12603. e) lt_cv_prog_compiler_static_works=no
  12604. save_LDFLAGS=$LDFLAGS
  12605. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12606. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12607. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12608. # The linker can only warn and ignore the option if not recognized
  12609. # So say no if there are warnings
  12610. if test -s conftest.err; then
  12611. # Append any errors to the config.log.
  12612. cat conftest.err 1>&5
  12613. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12614. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12615. if diff conftest.exp conftest.er2 >/dev/null; then
  12616. lt_cv_prog_compiler_static_works=yes
  12617. fi
  12618. else
  12619. lt_cv_prog_compiler_static_works=yes
  12620. fi
  12621. fi
  12622. $RM -r conftest*
  12623. LDFLAGS=$save_LDFLAGS
  12624. ;;
  12625. esac
  12626. fi
  12627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  12628. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  12629. if test yes = "$lt_cv_prog_compiler_static_works"; then
  12630. :
  12631. else
  12632. lt_prog_compiler_static=
  12633. fi
  12634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12635. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12636. if test ${lt_cv_prog_compiler_c_o+y}
  12637. then :
  12638. printf %s "(cached) " >&6
  12639. else case e in #(
  12640. e) lt_cv_prog_compiler_c_o=no
  12641. $RM -r conftest 2>/dev/null
  12642. mkdir conftest
  12643. cd conftest
  12644. mkdir out
  12645. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12646. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12647. # Insert the option either (1) after the last *FLAGS variable, or
  12648. # (2) before a word containing "conftest.", or (3) at the end.
  12649. # Note that $ac_compile itself does not contain backslashes and begins
  12650. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12651. lt_compile=`echo "$ac_compile" | $SED \
  12652. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12653. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12654. -e 's:$: $lt_compiler_flag:'`
  12655. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12656. (eval "$lt_compile" 2>out/conftest.err)
  12657. ac_status=$?
  12658. cat out/conftest.err >&5
  12659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12660. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12661. then
  12662. # The compiler can only warn and ignore the option if not recognized
  12663. # So say no if there are warnings
  12664. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12665. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12666. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12667. lt_cv_prog_compiler_c_o=yes
  12668. fi
  12669. fi
  12670. chmod u+w . 2>&5
  12671. $RM conftest*
  12672. # SGI C++ compiler will create directory out/ii_files/ for
  12673. # template instantiation
  12674. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12675. $RM out/* && rmdir out
  12676. cd ..
  12677. $RM -r conftest
  12678. $RM conftest*
  12679. ;;
  12680. esac
  12681. fi
  12682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  12683. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  12684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12685. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12686. if test ${lt_cv_prog_compiler_c_o+y}
  12687. then :
  12688. printf %s "(cached) " >&6
  12689. else case e in #(
  12690. e) lt_cv_prog_compiler_c_o=no
  12691. $RM -r conftest 2>/dev/null
  12692. mkdir conftest
  12693. cd conftest
  12694. mkdir out
  12695. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12696. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12697. # Insert the option either (1) after the last *FLAGS variable, or
  12698. # (2) before a word containing "conftest.", or (3) at the end.
  12699. # Note that $ac_compile itself does not contain backslashes and begins
  12700. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12701. lt_compile=`echo "$ac_compile" | $SED \
  12702. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12703. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12704. -e 's:$: $lt_compiler_flag:'`
  12705. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12706. (eval "$lt_compile" 2>out/conftest.err)
  12707. ac_status=$?
  12708. cat out/conftest.err >&5
  12709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12710. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12711. then
  12712. # The compiler can only warn and ignore the option if not recognized
  12713. # So say no if there are warnings
  12714. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12715. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12716. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12717. lt_cv_prog_compiler_c_o=yes
  12718. fi
  12719. fi
  12720. chmod u+w . 2>&5
  12721. $RM conftest*
  12722. # SGI C++ compiler will create directory out/ii_files/ for
  12723. # template instantiation
  12724. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12725. $RM out/* && rmdir out
  12726. cd ..
  12727. $RM -r conftest
  12728. $RM conftest*
  12729. ;;
  12730. esac
  12731. fi
  12732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  12733. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  12734. hard_links=nottested
  12735. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  12736. # do not overwrite the value of need_locks provided by the user
  12737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12738. printf %s "checking if we can lock with hard links... " >&6; }
  12739. hard_links=yes
  12740. $RM conftest*
  12741. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12742. touch conftest.a
  12743. ln conftest.a conftest.b 2>&5 || hard_links=no
  12744. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12746. printf "%s\n" "$hard_links" >&6; }
  12747. if test no = "$hard_links"; then
  12748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  12749. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  12750. need_locks=warn
  12751. fi
  12752. else
  12753. need_locks=no
  12754. fi
  12755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12756. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12757. runpath_var=
  12758. allow_undefined_flag=
  12759. always_export_symbols=no
  12760. archive_cmds=
  12761. archive_expsym_cmds=
  12762. compiler_needs_object=no
  12763. enable_shared_with_static_runtimes=no
  12764. export_dynamic_flag_spec=
  12765. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12766. hardcode_automatic=no
  12767. hardcode_direct=no
  12768. hardcode_direct_absolute=no
  12769. hardcode_libdir_flag_spec=
  12770. hardcode_libdir_separator=
  12771. hardcode_minus_L=no
  12772. hardcode_shlibpath_var=unsupported
  12773. inherit_rpath=no
  12774. link_all_deplibs=unknown
  12775. module_cmds=
  12776. module_expsym_cmds=
  12777. old_archive_from_new_cmds=
  12778. old_archive_from_expsyms_cmds=
  12779. thread_safe_flag_spec=
  12780. whole_archive_flag_spec=
  12781. # include_expsyms should be a list of space-separated symbols to be *always*
  12782. # included in the symbol list
  12783. include_expsyms=
  12784. # exclude_expsyms can be an extended regexp of symbols to exclude
  12785. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  12786. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  12787. # as well as any symbol that contains 'd'.
  12788. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12789. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  12790. # platforms (ab)use it in PIC code, but their linkers get confused if
  12791. # the symbol is explicitly referenced. Since portable code cannot
  12792. # rely on this symbol name, it's probably fine to never include it in
  12793. # preloaded symbol tables.
  12794. # Exclude shared library initialization/finalization symbols.
  12795. extract_expsyms_cmds=
  12796. case $host_os in
  12797. cygwin* | mingw* | windows* | pw32* | cegcc*)
  12798. # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
  12799. # When not using gcc, we currently assume that we are using
  12800. # Microsoft Visual C++ or Intel C++ Compiler.
  12801. if test yes != "$GCC"; then
  12802. with_gnu_ld=no
  12803. fi
  12804. ;;
  12805. interix*)
  12806. # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
  12807. with_gnu_ld=yes
  12808. ;;
  12809. esac
  12810. ld_shlibs=yes
  12811. # On some targets, GNU ld is compatible enough with the native linker
  12812. # that we're better off using the native interface for both.
  12813. lt_use_gnu_ld_interface=no
  12814. if test yes = "$with_gnu_ld"; then
  12815. case $host_os in
  12816. aix*)
  12817. # The AIX port of GNU ld has always aspired to compatibility
  12818. # with the native linker. However, as the warning in the GNU ld
  12819. # block says, versions before 2.19.5* couldn't really create working
  12820. # shared libraries, regardless of the interface used.
  12821. case `$LD -v 2>&1` in
  12822. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  12823. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  12824. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  12825. *)
  12826. lt_use_gnu_ld_interface=yes
  12827. ;;
  12828. esac
  12829. ;;
  12830. *)
  12831. lt_use_gnu_ld_interface=yes
  12832. ;;
  12833. esac
  12834. fi
  12835. if test yes = "$lt_use_gnu_ld_interface"; then
  12836. # If archive_cmds runs LD, not CC, wlarc should be empty
  12837. wlarc='$wl'
  12838. # Set some defaults for GNU ld with shared library support. These
  12839. # are reset later if shared libraries are not supported. Putting them
  12840. # here allows them to be overridden if necessary.
  12841. runpath_var=LD_RUN_PATH
  12842. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  12843. export_dynamic_flag_spec='$wl--export-dynamic'
  12844. # ancient GNU ld didn't support --whole-archive et. al.
  12845. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  12846. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12847. else
  12848. whole_archive_flag_spec=
  12849. fi
  12850. supports_anon_versioning=no
  12851. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  12852. *GNU\ gold*) supports_anon_versioning=yes ;;
  12853. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  12854. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  12855. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  12856. *\ 2.11.*) ;; # other 2.11 versions
  12857. *) supports_anon_versioning=yes ;;
  12858. esac
  12859. # See if GNU ld supports shared libraries.
  12860. case $host_os in
  12861. aix[3-9]*)
  12862. # On AIX/PPC, the GNU linker is very broken
  12863. if test ia64 != "$host_cpu"; then
  12864. ld_shlibs=no
  12865. cat <<_LT_EOF 1>&2
  12866. *** Warning: the GNU linker, at least up to release 2.19, is reported
  12867. *** to be unable to reliably create shared libraries on AIX.
  12868. *** Therefore, libtool is disabling shared libraries support. If you
  12869. *** really care for shared libraries, you may want to install binutils
  12870. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  12871. *** You will then need to restart the configuration process.
  12872. _LT_EOF
  12873. fi
  12874. ;;
  12875. amigaos*)
  12876. case $host_cpu in
  12877. powerpc)
  12878. # see comment about AmigaOS4 .so support
  12879. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12880. archive_expsym_cmds=''
  12881. ;;
  12882. m68k)
  12883. 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)'
  12884. hardcode_libdir_flag_spec='-L$libdir'
  12885. hardcode_minus_L=yes
  12886. ;;
  12887. esac
  12888. ;;
  12889. beos*)
  12890. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12891. allow_undefined_flag=unsupported
  12892. # Joseph Beckenbach <[email protected]> says some releases of gcc
  12893. # support --undefined. This deserves some investigation. FIXME
  12894. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12895. else
  12896. ld_shlibs=no
  12897. fi
  12898. ;;
  12899. cygwin* | mingw* | windows* | pw32* | cegcc*)
  12900. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  12901. # as there is no search path for DLLs.
  12902. hardcode_libdir_flag_spec='-L$libdir'
  12903. export_dynamic_flag_spec='$wl--export-all-symbols'
  12904. allow_undefined_flag=unsupported
  12905. always_export_symbols=no
  12906. enable_shared_with_static_runtimes=yes
  12907. 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'
  12908. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12909. file_list_spec='@'
  12910. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  12911. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12912. # If the export-symbols file already is a .def file, use it as
  12913. # is; otherwise, prepend EXPORTS...
  12914. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12915. cp $export_symbols $output_objdir/$soname.def;
  12916. else
  12917. echo EXPORTS > $output_objdir/$soname.def;
  12918. cat $export_symbols >> $output_objdir/$soname.def;
  12919. fi~
  12920. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12921. else
  12922. ld_shlibs=no
  12923. fi
  12924. ;;
  12925. haiku*)
  12926. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12927. link_all_deplibs=no
  12928. ;;
  12929. os2*)
  12930. hardcode_libdir_flag_spec='-L$libdir'
  12931. hardcode_minus_L=yes
  12932. allow_undefined_flag=unsupported
  12933. shrext_cmds=.dll
  12934. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12935. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12936. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12937. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12938. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  12939. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12940. emximp -o $lib $output_objdir/$libname.def'
  12941. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12942. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12943. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12944. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12945. prefix_cmds="$SED"~
  12946. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  12947. prefix_cmds="$prefix_cmds -e 1d";
  12948. fi~
  12949. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  12950. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  12951. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12952. emximp -o $lib $output_objdir/$libname.def'
  12953. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  12954. enable_shared_with_static_runtimes=yes
  12955. file_list_spec='@'
  12956. ;;
  12957. interix[3-9]*)
  12958. hardcode_direct=no
  12959. hardcode_shlibpath_var=no
  12960. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  12961. export_dynamic_flag_spec='$wl-E'
  12962. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12963. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12964. # default) and relocated if they conflict, which is a slow very memory
  12965. # consuming and fragmenting process. To avoid this, we pick a random,
  12966. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12967. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12968. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  12969. 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'
  12970. ;;
  12971. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  12972. tmp_diet=no
  12973. if test linux-dietlibc = "$host_os"; then
  12974. case $cc_basename in
  12975. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  12976. esac
  12977. fi
  12978. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  12979. && test no = "$tmp_diet"
  12980. then
  12981. tmp_addflag=' $pic_flag'
  12982. tmp_sharedflag='-shared'
  12983. case $cc_basename,$host_cpu in
  12984. pgcc*) # Portland Group C compiler
  12985. 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'
  12986. tmp_addflag=' $pic_flag'
  12987. ;;
  12988. pgf77* | pgf90* | pgf95* | pgfortran*)
  12989. # Portland Group f77 and f90 compilers
  12990. 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'
  12991. tmp_addflag=' $pic_flag -Mnomain' ;;
  12992. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  12993. tmp_addflag=' -i_dynamic' ;;
  12994. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  12995. tmp_addflag=' -i_dynamic -nofor_main' ;;
  12996. ifc* | ifort*) # Intel Fortran compiler
  12997. tmp_addflag=' -nofor_main' ;;
  12998. lf95*) # Lahey Fortran 8.1
  12999. whole_archive_flag_spec=
  13000. tmp_sharedflag='--shared' ;;
  13001. nagfor*) # NAGFOR 5.3
  13002. tmp_sharedflag='-Wl,-shared' ;;
  13003. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  13004. tmp_sharedflag='-qmkshrobj'
  13005. tmp_addflag= ;;
  13006. nvcc*) # Cuda Compiler Driver 2.2
  13007. 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'
  13008. compiler_needs_object=yes
  13009. ;;
  13010. esac
  13011. case `$CC -V 2>&1 | $SED 5q` in
  13012. *Sun\ C*) # Sun C 5.9
  13013. 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'
  13014. compiler_needs_object=yes
  13015. tmp_sharedflag='-G' ;;
  13016. *Sun\ F*) # Sun Fortran 8.3
  13017. tmp_sharedflag='-G' ;;
  13018. esac
  13019. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13020. if test yes = "$supports_anon_versioning"; then
  13021. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  13022. cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13023. echo "local: *; };" >> $output_objdir/$libname.ver~
  13024. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13025. fi
  13026. case $cc_basename in
  13027. tcc*)
  13028. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  13029. export_dynamic_flag_spec='-rdynamic'
  13030. ;;
  13031. xlf* | bgf* | bgxlf* | mpixlf*)
  13032. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  13033. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  13034. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  13035. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  13036. if test yes = "$supports_anon_versioning"; then
  13037. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  13038. cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13039. echo "local: *; };" >> $output_objdir/$libname.ver~
  13040. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  13041. fi
  13042. ;;
  13043. esac
  13044. else
  13045. ld_shlibs=no
  13046. fi
  13047. ;;
  13048. *-mlibc)
  13049. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13050. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13051. ;;
  13052. netbsd* | netbsdelf*-gnu)
  13053. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13054. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  13055. wlarc=
  13056. else
  13057. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13058. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13059. fi
  13060. ;;
  13061. solaris*)
  13062. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  13063. ld_shlibs=no
  13064. cat <<_LT_EOF 1>&2
  13065. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  13066. *** create shared libraries on Solaris systems. Therefore, libtool
  13067. *** is disabling shared libraries support. We urge you to upgrade GNU
  13068. *** binutils to release 2.9.1 or newer. Another option is to modify
  13069. *** your PATH or compiler configuration so that the native linker is
  13070. *** used, and then restart.
  13071. _LT_EOF
  13072. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13073. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13074. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13075. else
  13076. ld_shlibs=no
  13077. fi
  13078. ;;
  13079. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  13080. case `$LD -v 2>&1` in
  13081. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  13082. ld_shlibs=no
  13083. cat <<_LT_EOF 1>&2
  13084. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  13085. *** reliably create shared libraries on SCO systems. Therefore, libtool
  13086. *** is disabling shared libraries support. We urge you to upgrade GNU
  13087. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  13088. *** your PATH or compiler configuration so that the native linker is
  13089. *** used, and then restart.
  13090. _LT_EOF
  13091. ;;
  13092. *)
  13093. # For security reasons, it is highly recommended that you always
  13094. # use absolute paths for naming shared libraries, and exclude the
  13095. # DT_RUNPATH tag from executables and libraries. But doing so
  13096. # requires that you compile everything twice, which is a pain.
  13097. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13098. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  13099. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13100. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13101. else
  13102. ld_shlibs=no
  13103. fi
  13104. ;;
  13105. esac
  13106. ;;
  13107. sunos4*)
  13108. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13109. wlarc=
  13110. hardcode_direct=yes
  13111. hardcode_shlibpath_var=no
  13112. ;;
  13113. *)
  13114. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13115. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13116. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13117. else
  13118. ld_shlibs=no
  13119. fi
  13120. ;;
  13121. esac
  13122. if test no = "$ld_shlibs"; then
  13123. runpath_var=
  13124. hardcode_libdir_flag_spec=
  13125. export_dynamic_flag_spec=
  13126. whole_archive_flag_spec=
  13127. fi
  13128. else
  13129. # PORTME fill in a description of your system's linker (not GNU ld)
  13130. case $host_os in
  13131. aix3*)
  13132. allow_undefined_flag=unsupported
  13133. always_export_symbols=yes
  13134. 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'
  13135. # Note: this linker hardcodes the directories in LIBPATH if there
  13136. # are no directories specified by -L.
  13137. hardcode_minus_L=yes
  13138. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  13139. # Neither direct hardcoding nor static linking is supported with a
  13140. # broken collect2.
  13141. hardcode_direct=unsupported
  13142. fi
  13143. ;;
  13144. aix[4-9]*)
  13145. if test ia64 = "$host_cpu"; then
  13146. # On IA64, the linker does run time linking by default, so we don't
  13147. # have to do anything special.
  13148. aix_use_runtimelinking=no
  13149. exp_sym_flag='-Bexport'
  13150. no_entry_flag=
  13151. else
  13152. # If we're using GNU nm, then we don't want the "-C" option.
  13153. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  13154. # Without the "-l" option, or with the "-B" option, AIX nm treats
  13155. # weak defined symbols like other global defined symbols, whereas
  13156. # GNU nm marks them as "W".
  13157. # While the 'weak' keyword is ignored in the Export File, we need
  13158. # it in the Import File for the 'aix-soname' feature, so we have
  13159. # to replace the "-B" option with "-P" for AIX nm.
  13160. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13161. 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'
  13162. else
  13163. 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 == "L") || (\$ 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'
  13164. fi
  13165. aix_use_runtimelinking=no
  13166. # Test if we are trying to use run time linking or normal
  13167. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13168. # have runtime linking enabled, and use it for executables.
  13169. # For shared libraries, we enable/disable runtime linking
  13170. # depending on the kind of the shared library created -
  13171. # when "with_aix_soname,aix_use_runtimelinking" is:
  13172. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  13173. # "aix,yes" lib.so shared, rtl:yes, for executables
  13174. # lib.a static archive
  13175. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  13176. # lib.a(lib.so.V) shared, rtl:no, for executables
  13177. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  13178. # lib.a(lib.so.V) shared, rtl:no
  13179. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  13180. # lib.a static archive
  13181. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  13182. for ld_flag in $LDFLAGS; do
  13183. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  13184. aix_use_runtimelinking=yes
  13185. break
  13186. fi
  13187. done
  13188. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  13189. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  13190. # so we don't have lib.a shared libs to link our executables.
  13191. # We have to force runtime linking in this case.
  13192. aix_use_runtimelinking=yes
  13193. LDFLAGS="$LDFLAGS -Wl,-brtl"
  13194. fi
  13195. ;;
  13196. esac
  13197. exp_sym_flag='-bexport'
  13198. no_entry_flag='-bnoentry'
  13199. fi
  13200. # When large executables or shared objects are built, AIX ld can
  13201. # have problems creating the table of contents. If linking a library
  13202. # or program results in "error TOC overflow" add -mminimal-toc to
  13203. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13204. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13205. archive_cmds=''
  13206. hardcode_direct=yes
  13207. hardcode_direct_absolute=yes
  13208. hardcode_libdir_separator=':'
  13209. link_all_deplibs=yes
  13210. file_list_spec='$wl-f,'
  13211. case $with_aix_soname,$aix_use_runtimelinking in
  13212. aix,*) ;; # traditional, no import file
  13213. svr4,* | *,yes) # use import file
  13214. # The Import File defines what to hardcode.
  13215. hardcode_direct=no
  13216. hardcode_direct_absolute=no
  13217. ;;
  13218. esac
  13219. if test yes = "$GCC"; then
  13220. case $host_os in aix4.[012]|aix4.[012].*)
  13221. # We only want to do this on AIX 4.2 and lower, the check
  13222. # below for broken collect2 doesn't work under 4.3+
  13223. collect2name=`$CC -print-prog-name=collect2`
  13224. if test -f "$collect2name" &&
  13225. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  13226. then
  13227. # We have reworked collect2
  13228. :
  13229. else
  13230. # We have old collect2
  13231. hardcode_direct=unsupported
  13232. # It fails to find uninstalled libraries when the uninstalled
  13233. # path is not listed in the libpath. Setting hardcode_minus_L
  13234. # to unsupported forces relinking
  13235. hardcode_minus_L=yes
  13236. hardcode_libdir_flag_spec='-L$libdir'
  13237. hardcode_libdir_separator=
  13238. fi
  13239. ;;
  13240. esac
  13241. shared_flag='-shared'
  13242. if test yes = "$aix_use_runtimelinking"; then
  13243. shared_flag="$shared_flag "'$wl-G'
  13244. fi
  13245. # Need to ensure runtime linking is disabled for the traditional
  13246. # shared library, or the linker may eventually find shared libraries
  13247. # /with/ Import File - we do not want to mix them.
  13248. shared_flag_aix='-shared'
  13249. shared_flag_svr4='-shared $wl-G'
  13250. else
  13251. # not using gcc
  13252. if test ia64 = "$host_cpu"; then
  13253. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13254. # chokes on -Wl,-G. The following line is correct:
  13255. shared_flag='-G'
  13256. else
  13257. if test yes = "$aix_use_runtimelinking"; then
  13258. shared_flag='$wl-G'
  13259. else
  13260. shared_flag='$wl-bM:SRE'
  13261. fi
  13262. shared_flag_aix='$wl-bM:SRE'
  13263. shared_flag_svr4='$wl-G'
  13264. fi
  13265. fi
  13266. export_dynamic_flag_spec='$wl-bexpall'
  13267. # It seems that -bexpall does not export symbols beginning with
  13268. # underscore (_), so it is better to generate a list of symbols to export.
  13269. always_export_symbols=yes
  13270. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  13271. # Warning - without using the other runtime loading flags (-brtl),
  13272. # -berok will link without error, but may produce a broken library.
  13273. allow_undefined_flag='-berok'
  13274. # Determine the default libpath from the value encoded in an
  13275. # empty executable.
  13276. if test set = "${lt_cv_aix_libpath+set}"; then
  13277. aix_libpath=$lt_cv_aix_libpath
  13278. else
  13279. if test ${lt_cv_aix_libpath_+y}
  13280. then :
  13281. printf %s "(cached) " >&6
  13282. else case e in #(
  13283. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13284. /* end confdefs.h. */
  13285. int
  13286. main (void)
  13287. {
  13288. ;
  13289. return 0;
  13290. }
  13291. _ACEOF
  13292. if ac_fn_c_try_link "$LINENO"
  13293. then :
  13294. lt_aix_libpath_sed='
  13295. /Import File Strings/,/^$/ {
  13296. /^0/ {
  13297. s/^0 *\([^ ]*\) *$/\1/
  13298. p
  13299. }
  13300. }'
  13301. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13302. # Check for a 64-bit object if we didn't find anything.
  13303. if test -z "$lt_cv_aix_libpath_"; then
  13304. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13305. fi
  13306. fi
  13307. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13308. conftest$ac_exeext conftest.$ac_ext
  13309. if test -z "$lt_cv_aix_libpath_"; then
  13310. lt_cv_aix_libpath_=/usr/lib:/lib
  13311. fi
  13312. ;;
  13313. esac
  13314. fi
  13315. aix_libpath=$lt_cv_aix_libpath_
  13316. fi
  13317. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  13318. 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
  13319. else
  13320. if test ia64 = "$host_cpu"; then
  13321. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  13322. allow_undefined_flag="-z nodefs"
  13323. 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"
  13324. else
  13325. # Determine the default libpath from the value encoded in an
  13326. # empty executable.
  13327. if test set = "${lt_cv_aix_libpath+set}"; then
  13328. aix_libpath=$lt_cv_aix_libpath
  13329. else
  13330. if test ${lt_cv_aix_libpath_+y}
  13331. then :
  13332. printf %s "(cached) " >&6
  13333. else case e in #(
  13334. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13335. /* end confdefs.h. */
  13336. int
  13337. main (void)
  13338. {
  13339. ;
  13340. return 0;
  13341. }
  13342. _ACEOF
  13343. if ac_fn_c_try_link "$LINENO"
  13344. then :
  13345. lt_aix_libpath_sed='
  13346. /Import File Strings/,/^$/ {
  13347. /^0/ {
  13348. s/^0 *\([^ ]*\) *$/\1/
  13349. p
  13350. }
  13351. }'
  13352. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13353. # Check for a 64-bit object if we didn't find anything.
  13354. if test -z "$lt_cv_aix_libpath_"; then
  13355. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13356. fi
  13357. fi
  13358. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13359. conftest$ac_exeext conftest.$ac_ext
  13360. if test -z "$lt_cv_aix_libpath_"; then
  13361. lt_cv_aix_libpath_=/usr/lib:/lib
  13362. fi
  13363. ;;
  13364. esac
  13365. fi
  13366. aix_libpath=$lt_cv_aix_libpath_
  13367. fi
  13368. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  13369. # Warning - without using the other run time loading flags,
  13370. # -berok will link without error, but may produce a broken library.
  13371. no_undefined_flag=' $wl-bernotok'
  13372. allow_undefined_flag=' $wl-berok'
  13373. if test yes = "$with_gnu_ld"; then
  13374. # We only use this code for GNU lds that support --whole-archive.
  13375. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  13376. else
  13377. # Exported symbols can be pulled into shared objects from archives
  13378. whole_archive_flag_spec='$convenience'
  13379. fi
  13380. archive_cmds_need_lc=yes
  13381. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  13382. # -brtl affects multiple linker settings, -berok does not and is overridden later
  13383. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  13384. if test svr4 != "$with_aix_soname"; then
  13385. # This is similar to how AIX traditionally builds its shared libraries.
  13386. 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'
  13387. fi
  13388. if test aix != "$with_aix_soname"; then
  13389. 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'
  13390. else
  13391. # used by -dlpreopen to get the symbols
  13392. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  13393. fi
  13394. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  13395. fi
  13396. fi
  13397. ;;
  13398. amigaos*)
  13399. case $host_cpu in
  13400. powerpc)
  13401. # see comment about AmigaOS4 .so support
  13402. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13403. archive_expsym_cmds=''
  13404. ;;
  13405. m68k)
  13406. 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)'
  13407. hardcode_libdir_flag_spec='-L$libdir'
  13408. hardcode_minus_L=yes
  13409. ;;
  13410. esac
  13411. ;;
  13412. bsdi[45]*)
  13413. export_dynamic_flag_spec=-rdynamic
  13414. ;;
  13415. cygwin* | mingw* | windows* | pw32* | cegcc*)
  13416. # When not using gcc, we currently assume that we are using
  13417. # Microsoft Visual C++ or Intel C++ Compiler.
  13418. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13419. # no search path for DLLs.
  13420. case $cc_basename in
  13421. cl* | icl*)
  13422. # Native MSVC or ICC
  13423. hardcode_libdir_flag_spec=' '
  13424. allow_undefined_flag=unsupported
  13425. always_export_symbols=yes
  13426. file_list_spec='@'
  13427. # Tell ltmain to make .lib files, not .a files.
  13428. libext=lib
  13429. # Tell ltmain to make .dll files, not .so files.
  13430. shrext_cmds=.dll
  13431. # FIXME: Setting linknames here is a bad hack.
  13432. archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  13433. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13434. cp "$export_symbols" "$output_objdir/$soname.def";
  13435. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  13436. else
  13437. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  13438. fi~
  13439. $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13440. linknames='
  13441. # The linker will not automatically build a static lib if we build a DLL.
  13442. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  13443. enable_shared_with_static_runtimes=yes
  13444. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  13445. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  13446. # Don't use ranlib
  13447. old_postinstall_cmds='chmod 644 $oldlib'
  13448. postlink_cmds='lt_outputfile="@OUTPUT@"~
  13449. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13450. case $lt_outputfile in
  13451. *.exe|*.EXE) ;;
  13452. *)
  13453. lt_outputfile=$lt_outputfile.exe
  13454. lt_tool_outputfile=$lt_tool_outputfile.exe
  13455. ;;
  13456. esac~
  13457. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13458. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13459. $RM "$lt_outputfile.manifest";
  13460. fi'
  13461. ;;
  13462. *)
  13463. # Assume MSVC and ICC wrapper
  13464. hardcode_libdir_flag_spec=' '
  13465. allow_undefined_flag=unsupported
  13466. # Tell ltmain to make .lib files, not .a files.
  13467. libext=lib
  13468. # Tell ltmain to make .dll files, not .so files.
  13469. shrext_cmds=.dll
  13470. # FIXME: Setting linknames here is a bad hack.
  13471. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  13472. # The linker will automatically build a .lib file if we build a DLL.
  13473. old_archive_from_new_cmds='true'
  13474. # FIXME: Should let the user specify the lib program.
  13475. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  13476. enable_shared_with_static_runtimes=yes
  13477. ;;
  13478. esac
  13479. ;;
  13480. darwin* | rhapsody*)
  13481. archive_cmds_need_lc=no
  13482. hardcode_direct=no
  13483. hardcode_automatic=yes
  13484. hardcode_shlibpath_var=unsupported
  13485. if test yes = "$lt_cv_ld_force_load"; then
  13486. 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\"`'
  13487. else
  13488. whole_archive_flag_spec=''
  13489. fi
  13490. link_all_deplibs=yes
  13491. allow_undefined_flag=$_lt_dar_allow_undefined
  13492. case $cc_basename in
  13493. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13494. *) _lt_dar_can_shared=$GCC ;;
  13495. esac
  13496. if test yes = "$_lt_dar_can_shared"; then
  13497. output_verbose_link_cmd=func_echo_all
  13498. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  13499. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13500. 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"
  13501. 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"
  13502. else
  13503. ld_shlibs=no
  13504. fi
  13505. ;;
  13506. dgux*)
  13507. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13508. hardcode_libdir_flag_spec='-L$libdir'
  13509. hardcode_shlibpath_var=no
  13510. ;;
  13511. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  13512. # support. Future versions do this automatically, but an explicit c++rt0.o
  13513. # does not break anything, and helps significantly (at the cost of a little
  13514. # extra space).
  13515. freebsd2.2*)
  13516. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  13517. hardcode_libdir_flag_spec='-R$libdir'
  13518. hardcode_direct=yes
  13519. hardcode_shlibpath_var=no
  13520. ;;
  13521. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  13522. freebsd2.*)
  13523. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13524. hardcode_direct=yes
  13525. hardcode_minus_L=yes
  13526. hardcode_shlibpath_var=no
  13527. ;;
  13528. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  13529. freebsd* | dragonfly* | midnightbsd*)
  13530. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13531. hardcode_libdir_flag_spec='-R$libdir'
  13532. hardcode_direct=yes
  13533. hardcode_shlibpath_var=no
  13534. ;;
  13535. hpux9*)
  13536. if test yes = "$GCC"; then
  13537. 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'
  13538. else
  13539. 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'
  13540. fi
  13541. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  13542. hardcode_libdir_separator=:
  13543. hardcode_direct=yes
  13544. # hardcode_minus_L: Not really in the search PATH,
  13545. # but as the default location of the library.
  13546. hardcode_minus_L=yes
  13547. export_dynamic_flag_spec='$wl-E'
  13548. ;;
  13549. hpux10*)
  13550. if test yes,no = "$GCC,$with_gnu_ld"; then
  13551. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13552. else
  13553. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13554. fi
  13555. if test no = "$with_gnu_ld"; then
  13556. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  13557. hardcode_libdir_separator=:
  13558. hardcode_direct=yes
  13559. hardcode_direct_absolute=yes
  13560. export_dynamic_flag_spec='$wl-E'
  13561. # hardcode_minus_L: Not really in the search PATH,
  13562. # but as the default location of the library.
  13563. hardcode_minus_L=yes
  13564. fi
  13565. ;;
  13566. hpux11*)
  13567. if test yes,no = "$GCC,$with_gnu_ld"; then
  13568. case $host_cpu in
  13569. hppa*64*)
  13570. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  13571. ;;
  13572. ia64*)
  13573. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13574. ;;
  13575. *)
  13576. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13577. ;;
  13578. esac
  13579. else
  13580. case $host_cpu in
  13581. hppa*64*)
  13582. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  13583. ;;
  13584. ia64*)
  13585. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13586. ;;
  13587. *)
  13588. # Older versions of the 11.00 compiler do not understand -b yet
  13589. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  13590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  13591. printf %s "checking if $CC understands -b... " >&6; }
  13592. if test ${lt_cv_prog_compiler__b+y}
  13593. then :
  13594. printf %s "(cached) " >&6
  13595. else case e in #(
  13596. e) lt_cv_prog_compiler__b=no
  13597. save_LDFLAGS=$LDFLAGS
  13598. LDFLAGS="$LDFLAGS -b"
  13599. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13600. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13601. # The linker can only warn and ignore the option if not recognized
  13602. # So say no if there are warnings
  13603. if test -s conftest.err; then
  13604. # Append any errors to the config.log.
  13605. cat conftest.err 1>&5
  13606. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13607. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13608. if diff conftest.exp conftest.er2 >/dev/null; then
  13609. lt_cv_prog_compiler__b=yes
  13610. fi
  13611. else
  13612. lt_cv_prog_compiler__b=yes
  13613. fi
  13614. fi
  13615. $RM -r conftest*
  13616. LDFLAGS=$save_LDFLAGS
  13617. ;;
  13618. esac
  13619. fi
  13620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  13621. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  13622. if test yes = "$lt_cv_prog_compiler__b"; then
  13623. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13624. else
  13625. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13626. fi
  13627. ;;
  13628. esac
  13629. fi
  13630. if test no = "$with_gnu_ld"; then
  13631. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  13632. hardcode_libdir_separator=:
  13633. case $host_cpu in
  13634. hppa*64*|ia64*)
  13635. hardcode_direct=no
  13636. hardcode_shlibpath_var=no
  13637. ;;
  13638. *)
  13639. hardcode_direct=yes
  13640. hardcode_direct_absolute=yes
  13641. export_dynamic_flag_spec='$wl-E'
  13642. # hardcode_minus_L: Not really in the search PATH,
  13643. # but as the default location of the library.
  13644. hardcode_minus_L=yes
  13645. ;;
  13646. esac
  13647. fi
  13648. ;;
  13649. irix5* | irix6* | nonstopux*)
  13650. if test yes = "$GCC"; then
  13651. 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'
  13652. # Try to use the -exported_symbol ld option, if it does not
  13653. # work, assume that -exports_file does not work either and
  13654. # implicitly export all symbols.
  13655. # This should be the same for all languages, so no per-tag cache variable.
  13656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  13657. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  13658. if test ${lt_cv_irix_exported_symbol+y}
  13659. then :
  13660. printf %s "(cached) " >&6
  13661. else case e in #(
  13662. e) save_LDFLAGS=$LDFLAGS
  13663. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  13664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13665. /* end confdefs.h. */
  13666. int foo (void) { return 0; }
  13667. _ACEOF
  13668. if ac_fn_c_try_link "$LINENO"
  13669. then :
  13670. lt_cv_irix_exported_symbol=yes
  13671. else case e in #(
  13672. e) lt_cv_irix_exported_symbol=no ;;
  13673. esac
  13674. fi
  13675. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13676. conftest$ac_exeext conftest.$ac_ext
  13677. LDFLAGS=$save_LDFLAGS ;;
  13678. esac
  13679. fi
  13680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  13681. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  13682. if test yes = "$lt_cv_irix_exported_symbol"; then
  13683. 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'
  13684. fi
  13685. else
  13686. 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'
  13687. 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'
  13688. fi
  13689. archive_cmds_need_lc='no'
  13690. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  13691. hardcode_libdir_separator=:
  13692. inherit_rpath=yes
  13693. link_all_deplibs=yes
  13694. ;;
  13695. linux*)
  13696. case $cc_basename in
  13697. tcc*)
  13698. # Fabrice Bellard et al's Tiny C Compiler
  13699. ld_shlibs=yes
  13700. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13701. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  13702. ;;
  13703. esac
  13704. ;;
  13705. *-mlibc)
  13706. ;;
  13707. netbsd* | netbsdelf*-gnu)
  13708. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13709. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  13710. else
  13711. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  13712. fi
  13713. hardcode_libdir_flag_spec='-R$libdir'
  13714. hardcode_direct=yes
  13715. hardcode_shlibpath_var=no
  13716. ;;
  13717. newsos6)
  13718. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13719. hardcode_direct=yes
  13720. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  13721. hardcode_libdir_separator=:
  13722. hardcode_shlibpath_var=no
  13723. ;;
  13724. *nto* | *qnx*)
  13725. ;;
  13726. openbsd*)
  13727. if test -f /usr/libexec/ld.so; then
  13728. hardcode_direct=yes
  13729. hardcode_shlibpath_var=no
  13730. hardcode_direct_absolute=yes
  13731. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  13732. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13733. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  13734. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  13735. export_dynamic_flag_spec='$wl-E'
  13736. else
  13737. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13738. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  13739. fi
  13740. else
  13741. ld_shlibs=no
  13742. fi
  13743. ;;
  13744. os2*)
  13745. hardcode_libdir_flag_spec='-L$libdir'
  13746. hardcode_minus_L=yes
  13747. allow_undefined_flag=unsupported
  13748. shrext_cmds=.dll
  13749. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13750. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13751. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13752. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13753. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13754. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13755. emximp -o $lib $output_objdir/$libname.def'
  13756. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13757. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13758. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13759. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13760. prefix_cmds="$SED"~
  13761. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13762. prefix_cmds="$prefix_cmds -e 1d";
  13763. fi~
  13764. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13765. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13766. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13767. emximp -o $lib $output_objdir/$libname.def'
  13768. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13769. enable_shared_with_static_runtimes=yes
  13770. file_list_spec='@'
  13771. ;;
  13772. osf3*)
  13773. if test yes = "$GCC"; then
  13774. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  13775. 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'
  13776. else
  13777. allow_undefined_flag=' -expect_unresolved \*'
  13778. 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'
  13779. fi
  13780. archive_cmds_need_lc='no'
  13781. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  13782. hardcode_libdir_separator=:
  13783. ;;
  13784. osf4* | osf5*) # as osf3* with the addition of -msym flag
  13785. if test yes = "$GCC"; then
  13786. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  13787. 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'
  13788. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  13789. else
  13790. allow_undefined_flag=' -expect_unresolved \*'
  13791. 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'
  13792. 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~
  13793. $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'
  13794. # Both c and cxx compiler support -rpath directly
  13795. hardcode_libdir_flag_spec='-rpath $libdir'
  13796. fi
  13797. archive_cmds_need_lc='no'
  13798. hardcode_libdir_separator=:
  13799. ;;
  13800. serenity*)
  13801. ;;
  13802. solaris*)
  13803. no_undefined_flag=' -z defs'
  13804. if test yes = "$GCC"; then
  13805. wlarc='$wl'
  13806. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  13807. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13808. $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'
  13809. else
  13810. case `$CC -V 2>&1` in
  13811. *"Compilers 5.0"*)
  13812. wlarc=''
  13813. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13814. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13815. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  13816. ;;
  13817. *)
  13818. wlarc='$wl'
  13819. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13820. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13821. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  13822. ;;
  13823. esac
  13824. fi
  13825. hardcode_libdir_flag_spec='-R$libdir'
  13826. hardcode_shlibpath_var=no
  13827. case $host_os in
  13828. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13829. *)
  13830. # The compiler driver will combine and reorder linker options,
  13831. # but understands '-z linker_flag'. GCC discards it without '$wl',
  13832. # but is careful enough not to reorder.
  13833. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13834. if test yes = "$GCC"; then
  13835. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13836. else
  13837. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  13838. fi
  13839. ;;
  13840. esac
  13841. link_all_deplibs=yes
  13842. ;;
  13843. sunos4*)
  13844. if test sequent = "$host_vendor"; then
  13845. # Use $CC to link under sequent, because it throws in some extra .o
  13846. # files that make .init and .fini sections work.
  13847. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13848. else
  13849. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  13850. fi
  13851. hardcode_libdir_flag_spec='-L$libdir'
  13852. hardcode_direct=yes
  13853. hardcode_minus_L=yes
  13854. hardcode_shlibpath_var=no
  13855. ;;
  13856. sysv4)
  13857. case $host_vendor in
  13858. sni)
  13859. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13860. hardcode_direct=yes # is this really true???
  13861. ;;
  13862. siemens)
  13863. ## LD is ld it makes a PLAMLIB
  13864. ## CC just makes a GrossModule.
  13865. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13866. reload_cmds='$CC -r -o $output$reload_objs'
  13867. hardcode_direct=no
  13868. ;;
  13869. motorola)
  13870. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13871. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  13872. ;;
  13873. esac
  13874. runpath_var='LD_RUN_PATH'
  13875. hardcode_shlibpath_var=no
  13876. ;;
  13877. sysv4.3*)
  13878. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13879. hardcode_shlibpath_var=no
  13880. export_dynamic_flag_spec='-Bexport'
  13881. ;;
  13882. sysv4*MP*)
  13883. if test -d /usr/nec; then
  13884. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13885. hardcode_shlibpath_var=no
  13886. runpath_var=LD_RUN_PATH
  13887. hardcode_runpath_var=yes
  13888. ld_shlibs=yes
  13889. fi
  13890. ;;
  13891. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13892. no_undefined_flag='$wl-z,text'
  13893. archive_cmds_need_lc=no
  13894. hardcode_shlibpath_var=no
  13895. runpath_var='LD_RUN_PATH'
  13896. if test yes = "$GCC"; then
  13897. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13898. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13899. else
  13900. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13901. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13902. fi
  13903. ;;
  13904. sysv5* | sco3.2v5* | sco5v6*)
  13905. # Note: We CANNOT use -z defs as we might desire, because we do not
  13906. # link with -lc, and that would cause any symbols used from libc to
  13907. # always be unresolved, which means just about no library would
  13908. # ever link correctly. If we're not using GNU ld we use -z text
  13909. # though, which does catch some bad symbols but isn't as heavy-handed
  13910. # as -z defs.
  13911. no_undefined_flag='$wl-z,text'
  13912. allow_undefined_flag='$wl-z,nodefs'
  13913. archive_cmds_need_lc=no
  13914. hardcode_shlibpath_var=no
  13915. hardcode_libdir_flag_spec='$wl-R,$libdir'
  13916. hardcode_libdir_separator=':'
  13917. link_all_deplibs=yes
  13918. export_dynamic_flag_spec='$wl-Bexport'
  13919. runpath_var='LD_RUN_PATH'
  13920. if test yes = "$GCC"; then
  13921. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13922. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13923. else
  13924. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13925. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13926. fi
  13927. ;;
  13928. uts4*)
  13929. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13930. hardcode_libdir_flag_spec='-L$libdir'
  13931. hardcode_shlibpath_var=no
  13932. ;;
  13933. *)
  13934. ld_shlibs=no
  13935. ;;
  13936. esac
  13937. if test sni = "$host_vendor"; then
  13938. case $host in
  13939. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  13940. export_dynamic_flag_spec='$wl-Blargedynsym'
  13941. ;;
  13942. esac
  13943. fi
  13944. fi
  13945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  13946. printf "%s\n" "$ld_shlibs" >&6; }
  13947. test no = "$ld_shlibs" && can_build_shared=no
  13948. with_gnu_ld=$with_gnu_ld
  13949. #
  13950. # Do we need to explicitly link libc?
  13951. #
  13952. case "x$archive_cmds_need_lc" in
  13953. x|xyes)
  13954. # Assume -lc should be added
  13955. archive_cmds_need_lc=yes
  13956. if test yes,yes = "$GCC,$enable_shared"; then
  13957. case $archive_cmds in
  13958. *'~'*)
  13959. # FIXME: we may have to deal with multi-command sequences.
  13960. ;;
  13961. '$CC '*)
  13962. # Test whether the compiler implicitly links with -lc since on some
  13963. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13964. # to ld, don't add -lc before -lgcc.
  13965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13966. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  13967. if test ${lt_cv_archive_cmds_need_lc+y}
  13968. then :
  13969. printf %s "(cached) " >&6
  13970. else case e in #(
  13971. e) $RM conftest*
  13972. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13973. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13974. (eval $ac_compile) 2>&5
  13975. ac_status=$?
  13976. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13977. test $ac_status = 0; } 2>conftest.err; then
  13978. soname=conftest
  13979. lib=conftest
  13980. libobjs=conftest.$ac_objext
  13981. deplibs=
  13982. wl=$lt_prog_compiler_wl
  13983. pic_flag=$lt_prog_compiler_pic
  13984. compiler_flags=-v
  13985. linker_flags=-v
  13986. verstring=
  13987. output_objdir=.
  13988. libname=conftest
  13989. lt_save_allow_undefined_flag=$allow_undefined_flag
  13990. allow_undefined_flag=
  13991. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13992. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13993. ac_status=$?
  13994. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13995. test $ac_status = 0; }
  13996. then
  13997. lt_cv_archive_cmds_need_lc=no
  13998. else
  13999. lt_cv_archive_cmds_need_lc=yes
  14000. fi
  14001. allow_undefined_flag=$lt_save_allow_undefined_flag
  14002. else
  14003. cat conftest.err 1>&5
  14004. fi
  14005. $RM conftest*
  14006. ;;
  14007. esac
  14008. fi
  14009. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  14010. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  14011. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  14012. ;;
  14013. esac
  14014. fi
  14015. ;;
  14016. esac
  14017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14018. printf %s "checking dynamic linker characteristics... " >&6; }
  14019. if test yes = "$GCC"; then
  14020. case $host_os in
  14021. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  14022. *) lt_awk_arg='/^libraries:/' ;;
  14023. esac
  14024. case $host_os in
  14025. mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  14026. *) lt_sed_strip_eq='s|=/|/|g' ;;
  14027. esac
  14028. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  14029. case $lt_search_path_spec in
  14030. *\;*)
  14031. # if the path contains ";" then we assume it to be the separator
  14032. # otherwise default to the standard path separator (i.e. ":") - it is
  14033. # assumed that no part of a normal pathname contains ";" but that should
  14034. # okay in the real world where ";" in dirpaths is itself problematic.
  14035. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  14036. ;;
  14037. *)
  14038. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  14039. ;;
  14040. esac
  14041. # Ok, now we have the path, separated by spaces, we can step through it
  14042. # and add multilib dir if necessary...
  14043. lt_tmp_lt_search_path_spec=
  14044. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  14045. # ...but if some path component already ends with the multilib dir we assume
  14046. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  14047. case "$lt_multi_os_dir; $lt_search_path_spec " in
  14048. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  14049. lt_multi_os_dir=
  14050. ;;
  14051. esac
  14052. for lt_sys_path in $lt_search_path_spec; do
  14053. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  14054. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  14055. elif test -n "$lt_multi_os_dir"; then
  14056. test -d "$lt_sys_path" && \
  14057. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  14058. fi
  14059. done
  14060. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  14061. BEGIN {RS = " "; FS = "/|\n";} {
  14062. lt_foo = "";
  14063. lt_count = 0;
  14064. for (lt_i = NF; lt_i > 0; lt_i--) {
  14065. if ($lt_i != "" && $lt_i != ".") {
  14066. if ($lt_i == "..") {
  14067. lt_count++;
  14068. } else {
  14069. if (lt_count == 0) {
  14070. lt_foo = "/" $lt_i lt_foo;
  14071. } else {
  14072. lt_count--;
  14073. }
  14074. }
  14075. }
  14076. }
  14077. if (lt_foo != "") { lt_freq[lt_foo]++; }
  14078. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  14079. }'`
  14080. # AWK program above erroneously prepends '/' to C:/dos/paths
  14081. # for these hosts.
  14082. case $host_os in
  14083. mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  14084. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  14085. esac
  14086. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  14087. else
  14088. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14089. fi
  14090. library_names_spec=
  14091. libname_spec='lib$name'
  14092. soname_spec=
  14093. shrext_cmds=.so
  14094. postinstall_cmds=
  14095. postuninstall_cmds=
  14096. finish_cmds=
  14097. finish_eval=
  14098. shlibpath_var=
  14099. shlibpath_overrides_runpath=unknown
  14100. version_type=none
  14101. dynamic_linker="$host_os ld.so"
  14102. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14103. need_lib_prefix=unknown
  14104. hardcode_into_libs=no
  14105. # when you set need_version to no, make sure it does not cause -set_version
  14106. # flags to be left without arguments
  14107. need_version=unknown
  14108. case $host_os in
  14109. aix3*)
  14110. version_type=linux # correct to gnu/linux during the next big refactor
  14111. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14112. shlibpath_var=LIBPATH
  14113. # AIX 3 has no versioning support, so we append a major version to the name.
  14114. soname_spec='$libname$release$shared_ext$major'
  14115. ;;
  14116. aix[4-9]*)
  14117. version_type=linux # correct to gnu/linux during the next big refactor
  14118. need_lib_prefix=no
  14119. need_version=no
  14120. hardcode_into_libs=yes
  14121. if test ia64 = "$host_cpu"; then
  14122. # AIX 5 supports IA64
  14123. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14124. shlibpath_var=LD_LIBRARY_PATH
  14125. else
  14126. # With GCC up to 2.95.x, collect2 would create an import file
  14127. # for dependence libraries. The import file would start with
  14128. # the line '#! .'. This would cause the generated library to
  14129. # depend on '.', always an invalid library. This was fixed in
  14130. # development snapshots of GCC prior to 3.0.
  14131. case $host_os in
  14132. aix4 | aix4.[01] | aix4.[01].*)
  14133. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14134. echo ' yes '
  14135. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14136. :
  14137. else
  14138. can_build_shared=no
  14139. fi
  14140. ;;
  14141. esac
  14142. # Using Import Files as archive members, it is possible to support
  14143. # filename-based versioning of shared library archives on AIX. While
  14144. # this would work for both with and without runtime linking, it will
  14145. # prevent static linking of such archives. So we do filename-based
  14146. # shared library versioning with .so extension only, which is used
  14147. # when both runtime linking and shared linking is enabled.
  14148. # Unfortunately, runtime linking may impact performance, so we do
  14149. # not want this to be the default eventually. Also, we use the
  14150. # versioned .so libs for executables only if there is the -brtl
  14151. # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
  14152. # To allow for filename-based versioning support, we need to create
  14153. # libNAME.so.V as an archive file, containing:
  14154. # *) an Import File, referring to the versioned filename of the
  14155. # archive as well as the shared archive member, telling the
  14156. # bitwidth (32 or 64) of that shared object, and providing the
  14157. # list of exported symbols of that shared object, eventually
  14158. # decorated with the 'weak' keyword
  14159. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14160. # it being seen by the linker.
  14161. # At run time we better use the real file rather than another symlink,
  14162. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14163. case $with_aix_soname,$aix_use_runtimelinking in
  14164. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14165. # soname into executable. Probably we can add versioning support to
  14166. # collect2, so additional links can be useful in future.
  14167. aix,yes) # traditional libtool
  14168. dynamic_linker='AIX unversionable lib.so'
  14169. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14170. # instead of lib<name>.a to let people know that these are not
  14171. # typical AIX shared libraries.
  14172. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14173. ;;
  14174. aix,no) # traditional AIX only
  14175. dynamic_linker='AIX lib.a(lib.so.V)'
  14176. # We preserve .a as extension for shared libraries through AIX4.2
  14177. # and later when we are not doing run time linking.
  14178. library_names_spec='$libname$release.a $libname.a'
  14179. soname_spec='$libname$release$shared_ext$major'
  14180. ;;
  14181. svr4,*) # full svr4 only
  14182. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14183. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14184. # We do not specify a path in Import Files, so LIBPATH fires.
  14185. shlibpath_overrides_runpath=yes
  14186. ;;
  14187. *,yes) # both, prefer svr4
  14188. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14189. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14190. # unpreferred sharedlib libNAME.a needs extra handling
  14191. 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"'
  14192. 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"'
  14193. # We do not specify a path in Import Files, so LIBPATH fires.
  14194. shlibpath_overrides_runpath=yes
  14195. ;;
  14196. *,no) # both, prefer aix
  14197. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14198. library_names_spec='$libname$release.a $libname.a'
  14199. soname_spec='$libname$release$shared_ext$major'
  14200. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14201. 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)'
  14202. 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"'
  14203. ;;
  14204. esac
  14205. shlibpath_var=LIBPATH
  14206. fi
  14207. ;;
  14208. amigaos*)
  14209. case $host_cpu in
  14210. powerpc)
  14211. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14212. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14213. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14214. ;;
  14215. m68k)
  14216. library_names_spec='$libname.ixlibrary $libname.a'
  14217. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14218. 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'
  14219. ;;
  14220. esac
  14221. ;;
  14222. beos*)
  14223. library_names_spec='$libname$shared_ext'
  14224. dynamic_linker="$host_os ld.so"
  14225. shlibpath_var=LIBRARY_PATH
  14226. ;;
  14227. bsdi[45]*)
  14228. version_type=linux # correct to gnu/linux during the next big refactor
  14229. need_version=no
  14230. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14231. soname_spec='$libname$release$shared_ext$major'
  14232. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14233. shlibpath_var=LD_LIBRARY_PATH
  14234. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14235. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14236. # the default ld.so.conf also contains /usr/contrib/lib and
  14237. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14238. # libtool to hard-code these into programs
  14239. ;;
  14240. cygwin* | mingw* | windows* | pw32* | cegcc*)
  14241. version_type=windows
  14242. shrext_cmds=.dll
  14243. need_version=no
  14244. need_lib_prefix=no
  14245. case $GCC,$cc_basename in
  14246. yes,*)
  14247. # gcc
  14248. library_names_spec='$libname.dll.a'
  14249. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14250. # If user builds GCC with multilib enabled,
  14251. # it should just install on $(libdir)
  14252. # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
  14253. if test xyes = x"$multilib"; then
  14254. postinstall_cmds='base_file=`basename \$file`~
  14255. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14256. dldir=$destdir/`dirname \$dlpath`~
  14257. $install_prog $dir/$dlname $destdir/$dlname~
  14258. chmod a+x $destdir/$dlname~
  14259. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14260. eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
  14261. fi'
  14262. else
  14263. postinstall_cmds='base_file=`basename \$file`~
  14264. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14265. dldir=$destdir/`dirname \$dlpath`~
  14266. test -d \$dldir || mkdir -p \$dldir~
  14267. $install_prog $dir/$dlname \$dldir/$dlname~
  14268. chmod a+x \$dldir/$dlname~
  14269. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14270. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14271. fi'
  14272. fi
  14273. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14274. dlpath=$dir/\$dldll~
  14275. $RM \$dlpath'
  14276. shlibpath_overrides_runpath=yes
  14277. case $host_os in
  14278. cygwin*)
  14279. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14280. soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14281. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  14282. ;;
  14283. mingw* | windows* | cegcc*)
  14284. # MinGW DLLs use traditional 'lib' prefix
  14285. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14286. ;;
  14287. pw32*)
  14288. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14289. library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14290. ;;
  14291. esac
  14292. dynamic_linker='Win32 ld.exe'
  14293. ;;
  14294. *,cl* | *,icl*)
  14295. # Native MSVC or ICC
  14296. libname_spec='$name'
  14297. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14298. library_names_spec='$libname.dll.lib'
  14299. case $build_os in
  14300. mingw* | windows*)
  14301. sys_lib_search_path_spec=
  14302. lt_save_ifs=$IFS
  14303. IFS=';'
  14304. for lt_path in $LIB
  14305. do
  14306. IFS=$lt_save_ifs
  14307. # Let DOS variable expansion print the short 8.3 style file name.
  14308. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14309. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14310. done
  14311. IFS=$lt_save_ifs
  14312. # Convert to MSYS style.
  14313. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14314. ;;
  14315. cygwin*)
  14316. # Convert to unix form, then to dos form, then back to unix form
  14317. # but this time dos style (no spaces!) so that the unix form looks
  14318. # like /cygdrive/c/PROGRA~1:/cygdr...
  14319. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14320. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14321. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14322. ;;
  14323. *)
  14324. sys_lib_search_path_spec=$LIB
  14325. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14326. # It is most probably a Windows format PATH.
  14327. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14328. else
  14329. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14330. fi
  14331. # FIXME: find the short name or the path components, as spaces are
  14332. # common. (e.g. "Program Files" -> "PROGRA~1")
  14333. ;;
  14334. esac
  14335. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14336. postinstall_cmds='base_file=`basename \$file`~
  14337. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14338. dldir=$destdir/`dirname \$dlpath`~
  14339. test -d \$dldir || mkdir -p \$dldir~
  14340. $install_prog $dir/$dlname \$dldir/$dlname'
  14341. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14342. dlpath=$dir/\$dldll~
  14343. $RM \$dlpath'
  14344. shlibpath_overrides_runpath=yes
  14345. dynamic_linker='Win32 link.exe'
  14346. ;;
  14347. *)
  14348. # Assume MSVC and ICC wrapper
  14349. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14350. dynamic_linker='Win32 ld.exe'
  14351. ;;
  14352. esac
  14353. # FIXME: first we should search . and the directory the executable is in
  14354. shlibpath_var=PATH
  14355. ;;
  14356. darwin* | rhapsody*)
  14357. dynamic_linker="$host_os dyld"
  14358. version_type=darwin
  14359. need_lib_prefix=no
  14360. need_version=no
  14361. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14362. soname_spec='$libname$release$major$shared_ext'
  14363. shlibpath_overrides_runpath=yes
  14364. shlibpath_var=DYLD_LIBRARY_PATH
  14365. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14366. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  14367. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14368. ;;
  14369. dgux*)
  14370. version_type=linux # correct to gnu/linux during the next big refactor
  14371. need_lib_prefix=no
  14372. need_version=no
  14373. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14374. soname_spec='$libname$release$shared_ext$major'
  14375. shlibpath_var=LD_LIBRARY_PATH
  14376. ;;
  14377. freebsd* | dragonfly* | midnightbsd*)
  14378. # DragonFly does not have aout. When/if they implement a new
  14379. # versioning mechanism, adjust this.
  14380. if test -x /usr/bin/objformat; then
  14381. objformat=`/usr/bin/objformat`
  14382. else
  14383. case $host_os in
  14384. freebsd[23].*) objformat=aout ;;
  14385. *) objformat=elf ;;
  14386. esac
  14387. fi
  14388. version_type=freebsd-$objformat
  14389. case $version_type in
  14390. freebsd-elf*)
  14391. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14392. soname_spec='$libname$release$shared_ext$major'
  14393. need_version=no
  14394. need_lib_prefix=no
  14395. ;;
  14396. freebsd-*)
  14397. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14398. need_version=yes
  14399. ;;
  14400. esac
  14401. case $host_cpu in
  14402. powerpc64)
  14403. # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
  14404. # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
  14405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14406. /* end confdefs.h. */
  14407. int test_pointer_size[sizeof (void *) - 5];
  14408. _ACEOF
  14409. if ac_fn_c_try_compile "$LINENO"
  14410. then :
  14411. shlibpath_var=LD_LIBRARY_PATH
  14412. else case e in #(
  14413. e) shlibpath_var=LD_32_LIBRARY_PATH ;;
  14414. esac
  14415. fi
  14416. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  14417. ;;
  14418. *)
  14419. shlibpath_var=LD_LIBRARY_PATH
  14420. ;;
  14421. esac
  14422. case $host_os in
  14423. freebsd2.*)
  14424. shlibpath_overrides_runpath=yes
  14425. ;;
  14426. freebsd3.[01]* | freebsdelf3.[01]*)
  14427. shlibpath_overrides_runpath=yes
  14428. hardcode_into_libs=yes
  14429. ;;
  14430. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14431. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14432. shlibpath_overrides_runpath=no
  14433. hardcode_into_libs=yes
  14434. ;;
  14435. *) # from 4.6 on, and DragonFly
  14436. shlibpath_overrides_runpath=yes
  14437. hardcode_into_libs=yes
  14438. ;;
  14439. esac
  14440. ;;
  14441. haiku*)
  14442. version_type=linux # correct to gnu/linux during the next big refactor
  14443. need_lib_prefix=no
  14444. need_version=no
  14445. dynamic_linker="$host_os runtime_loader"
  14446. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14447. soname_spec='$libname$release$shared_ext$major'
  14448. shlibpath_var=LIBRARY_PATH
  14449. shlibpath_overrides_runpath=no
  14450. sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
  14451. sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
  14452. hardcode_into_libs=no
  14453. ;;
  14454. hpux9* | hpux10* | hpux11*)
  14455. # Give a soname corresponding to the major version so that dld.sl refuses to
  14456. # link against other versions.
  14457. version_type=sunos
  14458. need_lib_prefix=no
  14459. need_version=no
  14460. case $host_cpu in
  14461. ia64*)
  14462. shrext_cmds='.so'
  14463. hardcode_into_libs=yes
  14464. dynamic_linker="$host_os dld.so"
  14465. shlibpath_var=LD_LIBRARY_PATH
  14466. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14467. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14468. soname_spec='$libname$release$shared_ext$major'
  14469. if test 32 = "$HPUX_IA64_MODE"; then
  14470. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14471. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14472. else
  14473. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14474. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14475. fi
  14476. ;;
  14477. hppa*64*)
  14478. shrext_cmds='.sl'
  14479. hardcode_into_libs=yes
  14480. dynamic_linker="$host_os dld.sl"
  14481. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14482. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14483. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14484. soname_spec='$libname$release$shared_ext$major'
  14485. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14486. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14487. ;;
  14488. *)
  14489. shrext_cmds='.sl'
  14490. dynamic_linker="$host_os dld.sl"
  14491. shlibpath_var=SHLIB_PATH
  14492. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14493. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14494. soname_spec='$libname$release$shared_ext$major'
  14495. ;;
  14496. esac
  14497. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14498. postinstall_cmds='chmod 555 $lib'
  14499. # or fails outright, so override atomically:
  14500. install_override_mode=555
  14501. ;;
  14502. interix[3-9]*)
  14503. version_type=linux # correct to gnu/linux during the next big refactor
  14504. need_lib_prefix=no
  14505. need_version=no
  14506. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14507. soname_spec='$libname$release$shared_ext$major'
  14508. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14509. shlibpath_var=LD_LIBRARY_PATH
  14510. shlibpath_overrides_runpath=no
  14511. hardcode_into_libs=yes
  14512. ;;
  14513. irix5* | irix6* | nonstopux*)
  14514. case $host_os in
  14515. nonstopux*) version_type=nonstopux ;;
  14516. *)
  14517. if test yes = "$lt_cv_prog_gnu_ld"; then
  14518. version_type=linux # correct to gnu/linux during the next big refactor
  14519. else
  14520. version_type=irix
  14521. fi ;;
  14522. esac
  14523. need_lib_prefix=no
  14524. need_version=no
  14525. soname_spec='$libname$release$shared_ext$major'
  14526. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14527. case $host_os in
  14528. irix5* | nonstopux*)
  14529. libsuff= shlibsuff=
  14530. ;;
  14531. *)
  14532. case $LD in # libtool.m4 will add one of these switches to LD
  14533. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14534. libsuff= shlibsuff= libmagic=32-bit;;
  14535. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14536. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14537. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14538. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14539. *) libsuff= shlibsuff= libmagic=never-match;;
  14540. esac
  14541. ;;
  14542. esac
  14543. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14544. shlibpath_overrides_runpath=no
  14545. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14546. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14547. hardcode_into_libs=yes
  14548. ;;
  14549. # No shared lib support for Linux oldld, aout, or coff.
  14550. linux*oldld* | linux*aout* | linux*coff*)
  14551. dynamic_linker=no
  14552. ;;
  14553. linux*android*)
  14554. version_type=none # Android doesn't support versioned libraries.
  14555. need_lib_prefix=no
  14556. need_version=no
  14557. library_names_spec='$libname$release$shared_ext $libname$shared_ext'
  14558. soname_spec='$libname$release$shared_ext'
  14559. finish_cmds=
  14560. shlibpath_var=LD_LIBRARY_PATH
  14561. shlibpath_overrides_runpath=yes
  14562. # This implies no fast_install, which is unacceptable.
  14563. # Some rework will be needed to allow for fast_install
  14564. # before this can be enabled.
  14565. hardcode_into_libs=yes
  14566. dynamic_linker='Android linker'
  14567. # -rpath works at least for libraries that are not overridden by
  14568. # libraries installed in system locations.
  14569. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  14570. ;;
  14571. # This must be glibc/ELF.
  14572. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14573. version_type=linux # correct to gnu/linux during the next big refactor
  14574. need_lib_prefix=no
  14575. need_version=no
  14576. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14577. soname_spec='$libname$release$shared_ext$major'
  14578. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14579. shlibpath_var=LD_LIBRARY_PATH
  14580. shlibpath_overrides_runpath=no
  14581. # Some binutils ld are patched to set DT_RUNPATH
  14582. if test ${lt_cv_shlibpath_overrides_runpath+y}
  14583. then :
  14584. printf %s "(cached) " >&6
  14585. else case e in #(
  14586. e) lt_cv_shlibpath_overrides_runpath=no
  14587. save_LDFLAGS=$LDFLAGS
  14588. save_libdir=$libdir
  14589. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  14590. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  14591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14592. /* end confdefs.h. */
  14593. int
  14594. main (void)
  14595. {
  14596. ;
  14597. return 0;
  14598. }
  14599. _ACEOF
  14600. if ac_fn_c_try_link "$LINENO"
  14601. then :
  14602. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  14603. then :
  14604. lt_cv_shlibpath_overrides_runpath=yes
  14605. fi
  14606. fi
  14607. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14608. conftest$ac_exeext conftest.$ac_ext
  14609. LDFLAGS=$save_LDFLAGS
  14610. libdir=$save_libdir
  14611. ;;
  14612. esac
  14613. fi
  14614. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14615. # This implies no fast_install, which is unacceptable.
  14616. # Some rework will be needed to allow for fast_install
  14617. # before this can be enabled.
  14618. hardcode_into_libs=yes
  14619. # Add ABI-specific directories to the system library path.
  14620. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  14621. # Ideally, we could use ldconfig to report *all* directories which are
  14622. # searched for libraries, however this is still not possible. Aside from not
  14623. # being certain /sbin/ldconfig is available, command
  14624. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  14625. # even though it is searched at run-time. Try to do the best guess by
  14626. # appending ld.so.conf contents (and includes) to the search path.
  14627. if test -f /etc/ld.so.conf; then
  14628. 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' ' '`
  14629. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  14630. fi
  14631. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14632. # powerpc, because MkLinux only supported shared libraries with the
  14633. # GNU dynamic linker. Since this was broken with cross compilers,
  14634. # most powerpc-linux boxes support dynamic linking these days and
  14635. # people can always --disable-shared, the test was removed, and we
  14636. # assume the GNU/Linux dynamic linker is in use.
  14637. dynamic_linker='GNU/Linux ld.so'
  14638. ;;
  14639. netbsdelf*-gnu)
  14640. version_type=linux
  14641. need_lib_prefix=no
  14642. need_version=no
  14643. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14644. soname_spec='$libname$release$shared_ext$major'
  14645. shlibpath_var=LD_LIBRARY_PATH
  14646. shlibpath_overrides_runpath=no
  14647. hardcode_into_libs=yes
  14648. dynamic_linker='NetBSD ld.elf_so'
  14649. ;;
  14650. netbsd*)
  14651. version_type=sunos
  14652. need_lib_prefix=no
  14653. need_version=no
  14654. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14655. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14656. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14657. dynamic_linker='NetBSD (a.out) ld.so'
  14658. else
  14659. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14660. soname_spec='$libname$release$shared_ext$major'
  14661. dynamic_linker='NetBSD ld.elf_so'
  14662. fi
  14663. shlibpath_var=LD_LIBRARY_PATH
  14664. shlibpath_overrides_runpath=yes
  14665. hardcode_into_libs=yes
  14666. ;;
  14667. *-mlibc)
  14668. version_type=linux # correct to gnu/linux during the next big refactor
  14669. need_lib_prefix=no
  14670. need_version=no
  14671. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14672. soname_spec='$libname$release$shared_ext$major'
  14673. dynamic_linker='mlibc ld.so'
  14674. shlibpath_var=LD_LIBRARY_PATH
  14675. shlibpath_overrides_runpath=no
  14676. hardcode_into_libs=yes
  14677. ;;
  14678. newsos6)
  14679. version_type=linux # correct to gnu/linux during the next big refactor
  14680. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14681. shlibpath_var=LD_LIBRARY_PATH
  14682. shlibpath_overrides_runpath=yes
  14683. ;;
  14684. *nto* | *qnx*)
  14685. version_type=qnx
  14686. need_lib_prefix=no
  14687. need_version=no
  14688. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14689. soname_spec='$libname$release$shared_ext$major'
  14690. shlibpath_var=LD_LIBRARY_PATH
  14691. shlibpath_overrides_runpath=no
  14692. hardcode_into_libs=yes
  14693. dynamic_linker='ldqnx.so'
  14694. ;;
  14695. openbsd*)
  14696. version_type=sunos
  14697. sys_lib_dlsearch_path_spec=/usr/lib
  14698. need_lib_prefix=no
  14699. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  14700. need_version=no
  14701. else
  14702. need_version=yes
  14703. fi
  14704. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14705. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14706. shlibpath_var=LD_LIBRARY_PATH
  14707. shlibpath_overrides_runpath=yes
  14708. ;;
  14709. os2*)
  14710. libname_spec='$name'
  14711. version_type=windows
  14712. shrext_cmds=.dll
  14713. need_version=no
  14714. need_lib_prefix=no
  14715. # OS/2 can only load a DLL with a base name of 8 characters or less.
  14716. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  14717. v=$($ECHO $release$versuffix | tr -d .-);
  14718. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  14719. $ECHO $n$v`$shared_ext'
  14720. library_names_spec='${libname}_dll.$libext'
  14721. dynamic_linker='OS/2 ld.exe'
  14722. shlibpath_var=BEGINLIBPATH
  14723. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14724. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14725. postinstall_cmds='base_file=`basename \$file`~
  14726. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  14727. dldir=$destdir/`dirname \$dlpath`~
  14728. test -d \$dldir || mkdir -p \$dldir~
  14729. $install_prog $dir/$dlname \$dldir/$dlname~
  14730. chmod a+x \$dldir/$dlname~
  14731. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14732. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14733. fi'
  14734. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  14735. dlpath=$dir/\$dldll~
  14736. $RM \$dlpath'
  14737. ;;
  14738. osf3* | osf4* | osf5*)
  14739. version_type=osf
  14740. need_lib_prefix=no
  14741. need_version=no
  14742. soname_spec='$libname$release$shared_ext$major'
  14743. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14744. shlibpath_var=LD_LIBRARY_PATH
  14745. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14746. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14747. ;;
  14748. rdos*)
  14749. dynamic_linker=no
  14750. ;;
  14751. serenity*)
  14752. version_type=linux # correct to gnu/linux during the next big refactor
  14753. need_lib_prefix=no
  14754. need_version=no
  14755. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14756. soname_spec='$libname$release$shared_ext$major'
  14757. shlibpath_var=LD_LIBRARY_PATH
  14758. shlibpath_overrides_runpath=no
  14759. dynamic_linker='SerenityOS LibELF'
  14760. ;;
  14761. solaris*)
  14762. version_type=linux # correct to gnu/linux during the next big refactor
  14763. need_lib_prefix=no
  14764. need_version=no
  14765. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14766. soname_spec='$libname$release$shared_ext$major'
  14767. shlibpath_var=LD_LIBRARY_PATH
  14768. shlibpath_overrides_runpath=yes
  14769. hardcode_into_libs=yes
  14770. # ldd complains unless libraries are executable
  14771. postinstall_cmds='chmod +x $lib'
  14772. ;;
  14773. sunos4*)
  14774. version_type=sunos
  14775. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14776. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14777. shlibpath_var=LD_LIBRARY_PATH
  14778. shlibpath_overrides_runpath=yes
  14779. if test yes = "$with_gnu_ld"; then
  14780. need_lib_prefix=no
  14781. fi
  14782. need_version=yes
  14783. ;;
  14784. sysv4 | sysv4.3*)
  14785. version_type=linux # correct to gnu/linux during the next big refactor
  14786. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14787. soname_spec='$libname$release$shared_ext$major'
  14788. shlibpath_var=LD_LIBRARY_PATH
  14789. case $host_vendor in
  14790. sni)
  14791. shlibpath_overrides_runpath=no
  14792. need_lib_prefix=no
  14793. runpath_var=LD_RUN_PATH
  14794. ;;
  14795. siemens)
  14796. need_lib_prefix=no
  14797. ;;
  14798. motorola)
  14799. need_lib_prefix=no
  14800. need_version=no
  14801. shlibpath_overrides_runpath=no
  14802. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14803. ;;
  14804. esac
  14805. ;;
  14806. sysv4*MP*)
  14807. if test -d /usr/nec; then
  14808. version_type=linux # correct to gnu/linux during the next big refactor
  14809. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  14810. soname_spec='$libname$shared_ext.$major'
  14811. shlibpath_var=LD_LIBRARY_PATH
  14812. fi
  14813. ;;
  14814. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14815. version_type=sco
  14816. need_lib_prefix=no
  14817. need_version=no
  14818. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  14819. soname_spec='$libname$release$shared_ext$major'
  14820. shlibpath_var=LD_LIBRARY_PATH
  14821. shlibpath_overrides_runpath=yes
  14822. hardcode_into_libs=yes
  14823. if test yes = "$with_gnu_ld"; then
  14824. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14825. else
  14826. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14827. case $host_os in
  14828. sco3.2v5*)
  14829. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14830. ;;
  14831. esac
  14832. fi
  14833. sys_lib_dlsearch_path_spec='/usr/lib'
  14834. ;;
  14835. tpf*)
  14836. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  14837. version_type=linux # correct to gnu/linux during the next big refactor
  14838. need_lib_prefix=no
  14839. need_version=no
  14840. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14841. shlibpath_var=LD_LIBRARY_PATH
  14842. shlibpath_overrides_runpath=no
  14843. hardcode_into_libs=yes
  14844. ;;
  14845. uts4*)
  14846. version_type=linux # correct to gnu/linux during the next big refactor
  14847. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14848. soname_spec='$libname$release$shared_ext$major'
  14849. shlibpath_var=LD_LIBRARY_PATH
  14850. ;;
  14851. emscripten*)
  14852. version_type=none
  14853. need_lib_prefix=no
  14854. need_version=no
  14855. library_names_spec='$libname$release$shared_ext'
  14856. soname_spec='$libname$release$shared_ext'
  14857. finish_cmds=
  14858. dynamic_linker="Emscripten linker"
  14859. lt_prog_compiler_wl=
  14860. lt_prog_compiler_pic=
  14861. lt_prog_compiler_static=
  14862. if test yes = "$GCC"; then
  14863. lt_prog_compiler_wl='-Wl,'
  14864. lt_prog_compiler_static='-static'
  14865. case $host_os in
  14866. aix*)
  14867. # All AIX code is PIC.
  14868. if test ia64 = "$host_cpu"; then
  14869. # AIX 5 now supports IA64 processor
  14870. lt_prog_compiler_static='-Bstatic'
  14871. fi
  14872. lt_prog_compiler_pic='-fPIC'
  14873. ;;
  14874. amigaos*)
  14875. case $host_cpu in
  14876. powerpc)
  14877. # see comment about AmigaOS4 .so support
  14878. lt_prog_compiler_pic='-fPIC'
  14879. ;;
  14880. m68k)
  14881. # FIXME: we need at least 68020 code to build shared libraries, but
  14882. # adding the '-m68020' flag to GCC prevents building anything better,
  14883. # like '-m68040'.
  14884. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  14885. ;;
  14886. esac
  14887. ;;
  14888. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14889. # PIC is the default for these OSes.
  14890. ;;
  14891. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  14892. # This hack is so that the source file can tell whether it is being
  14893. # built for inclusion in a dll (and should export symbols for example).
  14894. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  14895. # (--disable-auto-import) libraries
  14896. lt_prog_compiler_pic='-DDLL_EXPORT'
  14897. case $host_os in
  14898. os2*)
  14899. lt_prog_compiler_static='$wl-static'
  14900. ;;
  14901. esac
  14902. ;;
  14903. darwin* | rhapsody*)
  14904. # PIC is the default on this platform
  14905. # Common symbols not allowed in MH_DYLIB files
  14906. lt_prog_compiler_pic='-fno-common'
  14907. ;;
  14908. haiku*)
  14909. # PIC is the default for Haiku.
  14910. # The "-static" flag exists, but is broken.
  14911. lt_prog_compiler_static=
  14912. ;;
  14913. hpux*)
  14914. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  14915. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  14916. # sets the default TLS model and affects inlining.
  14917. case $host_cpu in
  14918. hppa*64*)
  14919. # +Z the default
  14920. ;;
  14921. *)
  14922. lt_prog_compiler_pic='-fPIC'
  14923. ;;
  14924. esac
  14925. ;;
  14926. interix[3-9]*)
  14927. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14928. # Instead, we relocate shared libraries at runtime.
  14929. ;;
  14930. msdosdjgpp*)
  14931. # Just because we use GCC doesn't mean we suddenly get shared libraries
  14932. # on systems that don't support them.
  14933. lt_prog_compiler_can_build_shared=no
  14934. enable_shared=no
  14935. ;;
  14936. *nto* | *qnx*)
  14937. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14938. # it will coredump.
  14939. lt_prog_compiler_pic='-fPIC -shared'
  14940. ;;
  14941. sysv4*MP*)
  14942. if test -d /usr/nec; then
  14943. lt_prog_compiler_pic=-Kconform_pic
  14944. fi
  14945. ;;
  14946. *)
  14947. lt_prog_compiler_pic='-fPIC'
  14948. ;;
  14949. esac
  14950. case $cc_basename in
  14951. nvcc*) # Cuda Compiler Driver 2.2
  14952. lt_prog_compiler_wl='-Xlinker '
  14953. if test -n "$lt_prog_compiler_pic"; then
  14954. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  14955. fi
  14956. ;;
  14957. esac
  14958. else
  14959. # PORTME Check for flag to pass linker flags through the system compiler.
  14960. case $host_os in
  14961. aix*)
  14962. lt_prog_compiler_wl='-Wl,'
  14963. if test ia64 = "$host_cpu"; then
  14964. # AIX 5 now supports IA64 processor
  14965. lt_prog_compiler_static='-Bstatic'
  14966. else
  14967. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  14968. fi
  14969. ;;
  14970. darwin* | rhapsody*)
  14971. # PIC is the default on this platform
  14972. # Common symbols not allowed in MH_DYLIB files
  14973. lt_prog_compiler_pic='-fno-common'
  14974. case $cc_basename in
  14975. nagfor*)
  14976. # NAG Fortran compiler
  14977. lt_prog_compiler_wl='-Wl,-Wl,,'
  14978. lt_prog_compiler_pic='-PIC'
  14979. lt_prog_compiler_static='-Bstatic'
  14980. ;;
  14981. esac
  14982. ;;
  14983. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  14984. # This hack is so that the source file can tell whether it is being
  14985. # built for inclusion in a dll (and should export symbols for example).
  14986. lt_prog_compiler_pic='-DDLL_EXPORT'
  14987. case $host_os in
  14988. os2*)
  14989. lt_prog_compiler_static='$wl-static'
  14990. ;;
  14991. esac
  14992. ;;
  14993. hpux9* | hpux10* | hpux11*)
  14994. lt_prog_compiler_wl='-Wl,'
  14995. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14996. # not for PA HP-UX.
  14997. case $host_cpu in
  14998. hppa*64*|ia64*)
  14999. # +Z the default
  15000. ;;
  15001. *)
  15002. lt_prog_compiler_pic='+Z'
  15003. ;;
  15004. esac
  15005. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  15006. lt_prog_compiler_static='$wl-a ${wl}archive'
  15007. ;;
  15008. irix5* | irix6* | nonstopux*)
  15009. lt_prog_compiler_wl='-Wl,'
  15010. # PIC (with -KPIC) is the default.
  15011. lt_prog_compiler_static='-non_shared'
  15012. ;;
  15013. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  15014. case $cc_basename in
  15015. # old Intel for x86_64, which still supported -KPIC.
  15016. ecc*)
  15017. lt_prog_compiler_wl='-Wl,'
  15018. lt_prog_compiler_pic='-KPIC'
  15019. lt_prog_compiler_static='-static'
  15020. ;;
  15021. *flang* | ftn | f18* | f95*)
  15022. # Flang compiler.
  15023. lt_prog_compiler_wl='-Wl,'
  15024. lt_prog_compiler_pic='-fPIC'
  15025. lt_prog_compiler_static='-static'
  15026. ;;
  15027. # icc used to be incompatible with GCC.
  15028. # ICC 10 doesn't accept -KPIC any more.
  15029. icc* | ifort*)
  15030. lt_prog_compiler_wl='-Wl,'
  15031. lt_prog_compiler_pic='-fPIC'
  15032. lt_prog_compiler_static='-static'
  15033. ;;
  15034. # Lahey Fortran 8.1.
  15035. lf95*)
  15036. lt_prog_compiler_wl='-Wl,'
  15037. lt_prog_compiler_pic='--shared'
  15038. lt_prog_compiler_static='--static'
  15039. ;;
  15040. nagfor*)
  15041. # NAG Fortran compiler
  15042. lt_prog_compiler_wl='-Wl,-Wl,,'
  15043. lt_prog_compiler_pic='-PIC'
  15044. lt_prog_compiler_static='-Bstatic'
  15045. ;;
  15046. tcc*)
  15047. # Fabrice Bellard et al's Tiny C Compiler
  15048. lt_prog_compiler_wl='-Wl,'
  15049. lt_prog_compiler_pic='-fPIC'
  15050. lt_prog_compiler_static='-static'
  15051. ;;
  15052. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  15053. # Portland Group compilers (*not* the Pentium gcc compiler,
  15054. # which looks to be a dead project)
  15055. lt_prog_compiler_wl='-Wl,'
  15056. lt_prog_compiler_pic='-fpic'
  15057. lt_prog_compiler_static='-Bstatic'
  15058. ;;
  15059. ccc*)
  15060. lt_prog_compiler_wl='-Wl,'
  15061. # All Alpha code is PIC.
  15062. lt_prog_compiler_static='-non_shared'
  15063. ;;
  15064. xl* | bgxl* | bgf* | mpixl*)
  15065. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  15066. lt_prog_compiler_wl='-Wl,'
  15067. lt_prog_compiler_pic='-qpic'
  15068. lt_prog_compiler_static='-qstaticlink'
  15069. ;;
  15070. *)
  15071. case `$CC -V 2>&1 | $SED 5q` in
  15072. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  15073. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  15074. lt_prog_compiler_pic='-KPIC'
  15075. lt_prog_compiler_static='-Bstatic'
  15076. lt_prog_compiler_wl=''
  15077. ;;
  15078. *Sun\ F* | *Sun*Fortran*)
  15079. lt_prog_compiler_pic='-KPIC'
  15080. lt_prog_compiler_static='-Bstatic'
  15081. lt_prog_compiler_wl='-Qoption ld '
  15082. ;;
  15083. *Sun\ C*)
  15084. # Sun C 5.9
  15085. lt_prog_compiler_pic='-KPIC'
  15086. lt_prog_compiler_static='-Bstatic'
  15087. lt_prog_compiler_wl='-Wl,'
  15088. ;;
  15089. *Intel*\ [CF]*Compiler*)
  15090. lt_prog_compiler_wl='-Wl,'
  15091. lt_prog_compiler_pic='-fPIC'
  15092. lt_prog_compiler_static='-static'
  15093. ;;
  15094. *Portland\ Group*)
  15095. lt_prog_compiler_wl='-Wl,'
  15096. lt_prog_compiler_pic='-fpic'
  15097. lt_prog_compiler_static='-Bstatic'
  15098. ;;
  15099. esac
  15100. ;;
  15101. esac
  15102. ;;
  15103. newsos6)
  15104. lt_prog_compiler_pic='-KPIC'
  15105. lt_prog_compiler_static='-Bstatic'
  15106. ;;
  15107. *-mlibc)
  15108. lt_prog_compiler_wl='-Wl,'
  15109. lt_prog_compiler_pic='-fPIC'
  15110. lt_prog_compiler_static='-static'
  15111. ;;
  15112. *nto* | *qnx*)
  15113. # QNX uses GNU C++, but need to define -shared option too, otherwise
  15114. # it will coredump.
  15115. lt_prog_compiler_pic='-fPIC -shared'
  15116. ;;
  15117. osf3* | osf4* | osf5*)
  15118. lt_prog_compiler_wl='-Wl,'
  15119. # All OSF/1 code is PIC.
  15120. lt_prog_compiler_static='-non_shared'
  15121. ;;
  15122. rdos*)
  15123. lt_prog_compiler_static='-non_shared'
  15124. ;;
  15125. serenity*)
  15126. ;;
  15127. solaris*)
  15128. lt_prog_compiler_pic='-KPIC'
  15129. lt_prog_compiler_static='-Bstatic'
  15130. case $cc_basename in
  15131. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  15132. lt_prog_compiler_wl='-Qoption ld ';;
  15133. *)
  15134. lt_prog_compiler_wl='-Wl,';;
  15135. esac
  15136. ;;
  15137. sunos4*)
  15138. lt_prog_compiler_wl='-Qoption ld '
  15139. lt_prog_compiler_pic='-PIC'
  15140. lt_prog_compiler_static='-Bstatic'
  15141. ;;
  15142. sysv4 | sysv4.2uw2* | sysv4.3*)
  15143. lt_prog_compiler_wl='-Wl,'
  15144. lt_prog_compiler_pic='-KPIC'
  15145. lt_prog_compiler_static='-Bstatic'
  15146. ;;
  15147. sysv4*MP*)
  15148. if test -d /usr/nec; then
  15149. lt_prog_compiler_pic='-Kconform_pic'
  15150. lt_prog_compiler_static='-Bstatic'
  15151. fi
  15152. ;;
  15153. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  15154. lt_prog_compiler_wl='-Wl,'
  15155. lt_prog_compiler_pic='-KPIC'
  15156. lt_prog_compiler_static='-Bstatic'
  15157. ;;
  15158. unicos*)
  15159. lt_prog_compiler_wl='-Wl,'
  15160. lt_prog_compiler_can_build_shared=no
  15161. ;;
  15162. uts4*)
  15163. lt_prog_compiler_pic='-pic'
  15164. lt_prog_compiler_static='-Bstatic'
  15165. ;;
  15166. *)
  15167. lt_prog_compiler_can_build_shared=no
  15168. ;;
  15169. esac
  15170. fi
  15171. case $host_os in
  15172. # For platforms that do not support PIC, -DPIC is meaningless:
  15173. *djgpp*)
  15174. lt_prog_compiler_pic=
  15175. ;;
  15176. *)
  15177. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  15178. ;;
  15179. esac
  15180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  15181. printf %s "checking for $compiler option to produce PIC... " >&6; }
  15182. if test ${lt_cv_prog_compiler_pic+y}
  15183. then :
  15184. printf %s "(cached) " >&6
  15185. else case e in #(
  15186. e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
  15187. esac
  15188. fi
  15189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  15190. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  15191. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  15192. #
  15193. # Check to make sure the PIC flag actually works.
  15194. #
  15195. if test -n "$lt_prog_compiler_pic"; then
  15196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  15197. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  15198. if test ${lt_cv_prog_compiler_pic_works+y}
  15199. then :
  15200. printf %s "(cached) " >&6
  15201. else case e in #(
  15202. e) lt_cv_prog_compiler_pic_works=no
  15203. ac_outfile=conftest.$ac_objext
  15204. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15205. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  15206. # Insert the option either (1) after the last *FLAGS variable, or
  15207. # (2) before a word containing "conftest.", or (3) at the end.
  15208. # Note that $ac_compile itself does not contain backslashes and begins
  15209. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15210. # The option is referenced via a variable to avoid confusing sed.
  15211. lt_compile=`echo "$ac_compile" | $SED \
  15212. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15213. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15214. -e 's:$: $lt_compiler_flag:'`
  15215. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  15216. (eval "$lt_compile" 2>conftest.err)
  15217. ac_status=$?
  15218. cat conftest.err >&5
  15219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15220. if (exit $ac_status) && test -s "$ac_outfile"; then
  15221. # The compiler can only warn and ignore the option if not recognized
  15222. # So say no if there are warnings other than the usual output.
  15223. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  15224. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15225. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  15226. lt_cv_prog_compiler_pic_works=yes
  15227. fi
  15228. fi
  15229. $RM conftest*
  15230. ;;
  15231. esac
  15232. fi
  15233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  15234. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  15235. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  15236. case $lt_prog_compiler_pic in
  15237. "" | " "*) ;;
  15238. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  15239. esac
  15240. else
  15241. lt_prog_compiler_pic=
  15242. lt_prog_compiler_can_build_shared=no
  15243. fi
  15244. fi
  15245. #
  15246. # Check to make sure the static flag actually works.
  15247. #
  15248. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  15249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  15250. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  15251. if test ${lt_cv_prog_compiler_static_works+y}
  15252. then :
  15253. printf %s "(cached) " >&6
  15254. else case e in #(
  15255. e) lt_cv_prog_compiler_static_works=no
  15256. save_LDFLAGS=$LDFLAGS
  15257. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  15258. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  15259. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  15260. # The linker can only warn and ignore the option if not recognized
  15261. # So say no if there are warnings
  15262. if test -s conftest.err; then
  15263. # Append any errors to the config.log.
  15264. cat conftest.err 1>&5
  15265. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  15266. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15267. if diff conftest.exp conftest.er2 >/dev/null; then
  15268. lt_cv_prog_compiler_static_works=yes
  15269. fi
  15270. else
  15271. lt_cv_prog_compiler_static_works=yes
  15272. fi
  15273. fi
  15274. $RM -r conftest*
  15275. LDFLAGS=$save_LDFLAGS
  15276. ;;
  15277. esac
  15278. fi
  15279. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  15280. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  15281. if test yes = "$lt_cv_prog_compiler_static_works"; then
  15282. :
  15283. else
  15284. lt_prog_compiler_static=
  15285. fi
  15286. ='-fPIC'
  15287. archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
  15288. archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
  15289. archive_cmds_need_lc=no
  15290. no_undefined_flag=
  15291. ;;
  15292. *)
  15293. dynamic_linker=no
  15294. ;;
  15295. esac
  15296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15297. printf "%s\n" "$dynamic_linker" >&6; }
  15298. test no = "$dynamic_linker" && can_build_shared=no
  15299. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15300. if test yes = "$GCC"; then
  15301. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15302. fi
  15303. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15304. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15305. fi
  15306. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15307. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15308. fi
  15309. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15310. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15311. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15312. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15313. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15314. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15316. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15317. hardcode_action=
  15318. if test -n "$hardcode_libdir_flag_spec" ||
  15319. test -n "$runpath_var" ||
  15320. test yes = "$hardcode_automatic"; then
  15321. # We can hardcode non-existent directories.
  15322. if test no != "$hardcode_direct" &&
  15323. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15324. # have to relink, otherwise we might link with an installed library
  15325. # when we should be linking with a yet-to-be-installed one
  15326. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  15327. test no != "$hardcode_minus_L"; then
  15328. # Linking always hardcodes the temporary library directory.
  15329. hardcode_action=relink
  15330. else
  15331. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15332. hardcode_action=immediate
  15333. fi
  15334. else
  15335. # We cannot hardcode anything, or else we can only hardcode existing
  15336. # directories.
  15337. hardcode_action=unsupported
  15338. fi
  15339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  15340. printf "%s\n" "$hardcode_action" >&6; }
  15341. if test relink = "$hardcode_action" ||
  15342. test yes = "$inherit_rpath"; then
  15343. # Fast installation is not supported
  15344. enable_fast_install=no
  15345. elif test yes = "$shlibpath_overrides_runpath" ||
  15346. test no = "$enable_shared"; then
  15347. # Fast installation is not necessary
  15348. enable_fast_install=needless
  15349. fi
  15350. if test yes != "$enable_dlopen"; then
  15351. enable_dlopen=unknown
  15352. enable_dlopen_self=unknown
  15353. enable_dlopen_self_static=unknown
  15354. else
  15355. lt_cv_dlopen=no
  15356. lt_cv_dlopen_libs=
  15357. case $host_os in
  15358. beos*)
  15359. lt_cv_dlopen=load_add_on
  15360. lt_cv_dlopen_libs=
  15361. lt_cv_dlopen_self=yes
  15362. ;;
  15363. mingw* | windows* | pw32* | cegcc*)
  15364. lt_cv_dlopen=LoadLibrary
  15365. lt_cv_dlopen_libs=
  15366. ;;
  15367. cygwin*)
  15368. lt_cv_dlopen=dlopen
  15369. lt_cv_dlopen_libs=
  15370. ;;
  15371. darwin*)
  15372. # if libdl is installed we need to link against it
  15373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  15374. printf %s "checking for dlopen in -ldl... " >&6; }
  15375. if test ${ac_cv_lib_dl_dlopen+y}
  15376. then :
  15377. printf %s "(cached) " >&6
  15378. else case e in #(
  15379. e) ac_check_lib_save_LIBS=$LIBS
  15380. LIBS="-ldl $LIBS"
  15381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15382. /* end confdefs.h. */
  15383. /* Override any GCC internal prototype to avoid an error.
  15384. Use char because int might match the return type of a GCC
  15385. builtin and then its argument prototype would still apply.
  15386. The 'extern "C"' is for builds by C++ compilers;
  15387. although this is not generally supported in C code supporting it here
  15388. has little cost and some practical benefit (sr 110532). */
  15389. #ifdef __cplusplus
  15390. extern "C"
  15391. #endif
  15392. char dlopen (void);
  15393. int
  15394. main (void)
  15395. {
  15396. return dlopen ();
  15397. ;
  15398. return 0;
  15399. }
  15400. _ACEOF
  15401. if ac_fn_c_try_link "$LINENO"
  15402. then :
  15403. ac_cv_lib_dl_dlopen=yes
  15404. else case e in #(
  15405. e) ac_cv_lib_dl_dlopen=no ;;
  15406. esac
  15407. fi
  15408. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15409. conftest$ac_exeext conftest.$ac_ext
  15410. LIBS=$ac_check_lib_save_LIBS ;;
  15411. esac
  15412. fi
  15413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  15414. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  15415. if test "x$ac_cv_lib_dl_dlopen" = xyes
  15416. then :
  15417. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  15418. else case e in #(
  15419. e)
  15420. lt_cv_dlopen=dyld
  15421. lt_cv_dlopen_libs=
  15422. lt_cv_dlopen_self=yes
  15423. ;;
  15424. esac
  15425. fi
  15426. ;;
  15427. tpf*)
  15428. # Don't try to run any link tests for TPF. We know it's impossible
  15429. # because TPF is a cross-compiler, and we know how we open DSOs.
  15430. lt_cv_dlopen=dlopen
  15431. lt_cv_dlopen_libs=
  15432. lt_cv_dlopen_self=no
  15433. ;;
  15434. *)
  15435. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  15436. if test "x$ac_cv_func_shl_load" = xyes
  15437. then :
  15438. lt_cv_dlopen=shl_load
  15439. else case e in #(
  15440. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  15441. printf %s "checking for shl_load in -ldld... " >&6; }
  15442. if test ${ac_cv_lib_dld_shl_load+y}
  15443. then :
  15444. printf %s "(cached) " >&6
  15445. else case e in #(
  15446. e) ac_check_lib_save_LIBS=$LIBS
  15447. LIBS="-ldld $LIBS"
  15448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15449. /* end confdefs.h. */
  15450. /* Override any GCC internal prototype to avoid an error.
  15451. Use char because int might match the return type of a GCC
  15452. builtin and then its argument prototype would still apply.
  15453. The 'extern "C"' is for builds by C++ compilers;
  15454. although this is not generally supported in C code supporting it here
  15455. has little cost and some practical benefit (sr 110532). */
  15456. #ifdef __cplusplus
  15457. extern "C"
  15458. #endif
  15459. char shl_load (void);
  15460. int
  15461. main (void)
  15462. {
  15463. return shl_load ();
  15464. ;
  15465. return 0;
  15466. }
  15467. _ACEOF
  15468. if ac_fn_c_try_link "$LINENO"
  15469. then :
  15470. ac_cv_lib_dld_shl_load=yes
  15471. else case e in #(
  15472. e) ac_cv_lib_dld_shl_load=no ;;
  15473. esac
  15474. fi
  15475. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15476. conftest$ac_exeext conftest.$ac_ext
  15477. LIBS=$ac_check_lib_save_LIBS ;;
  15478. esac
  15479. fi
  15480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  15481. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  15482. if test "x$ac_cv_lib_dld_shl_load" = xyes
  15483. then :
  15484. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  15485. else case e in #(
  15486. e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  15487. if test "x$ac_cv_func_dlopen" = xyes
  15488. then :
  15489. lt_cv_dlopen=dlopen
  15490. else case e in #(
  15491. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  15492. printf %s "checking for dlopen in -ldl... " >&6; }
  15493. if test ${ac_cv_lib_dl_dlopen+y}
  15494. then :
  15495. printf %s "(cached) " >&6
  15496. else case e in #(
  15497. e) ac_check_lib_save_LIBS=$LIBS
  15498. LIBS="-ldl $LIBS"
  15499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15500. /* end confdefs.h. */
  15501. /* Override any GCC internal prototype to avoid an error.
  15502. Use char because int might match the return type of a GCC
  15503. builtin and then its argument prototype would still apply.
  15504. The 'extern "C"' is for builds by C++ compilers;
  15505. although this is not generally supported in C code supporting it here
  15506. has little cost and some practical benefit (sr 110532). */
  15507. #ifdef __cplusplus
  15508. extern "C"
  15509. #endif
  15510. char dlopen (void);
  15511. int
  15512. main (void)
  15513. {
  15514. return dlopen ();
  15515. ;
  15516. return 0;
  15517. }
  15518. _ACEOF
  15519. if ac_fn_c_try_link "$LINENO"
  15520. then :
  15521. ac_cv_lib_dl_dlopen=yes
  15522. else case e in #(
  15523. e) ac_cv_lib_dl_dlopen=no ;;
  15524. esac
  15525. fi
  15526. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15527. conftest$ac_exeext conftest.$ac_ext
  15528. LIBS=$ac_check_lib_save_LIBS ;;
  15529. esac
  15530. fi
  15531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  15532. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  15533. if test "x$ac_cv_lib_dl_dlopen" = xyes
  15534. then :
  15535. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  15536. else case e in #(
  15537. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  15538. printf %s "checking for dlopen in -lsvld... " >&6; }
  15539. if test ${ac_cv_lib_svld_dlopen+y}
  15540. then :
  15541. printf %s "(cached) " >&6
  15542. else case e in #(
  15543. e) ac_check_lib_save_LIBS=$LIBS
  15544. LIBS="-lsvld $LIBS"
  15545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15546. /* end confdefs.h. */
  15547. /* Override any GCC internal prototype to avoid an error.
  15548. Use char because int might match the return type of a GCC
  15549. builtin and then its argument prototype would still apply.
  15550. The 'extern "C"' is for builds by C++ compilers;
  15551. although this is not generally supported in C code supporting it here
  15552. has little cost and some practical benefit (sr 110532). */
  15553. #ifdef __cplusplus
  15554. extern "C"
  15555. #endif
  15556. char dlopen (void);
  15557. int
  15558. main (void)
  15559. {
  15560. return dlopen ();
  15561. ;
  15562. return 0;
  15563. }
  15564. _ACEOF
  15565. if ac_fn_c_try_link "$LINENO"
  15566. then :
  15567. ac_cv_lib_svld_dlopen=yes
  15568. else case e in #(
  15569. e) ac_cv_lib_svld_dlopen=no ;;
  15570. esac
  15571. fi
  15572. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15573. conftest$ac_exeext conftest.$ac_ext
  15574. LIBS=$ac_check_lib_save_LIBS ;;
  15575. esac
  15576. fi
  15577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  15578. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  15579. if test "x$ac_cv_lib_svld_dlopen" = xyes
  15580. then :
  15581. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  15582. else case e in #(
  15583. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  15584. printf %s "checking for dld_link in -ldld... " >&6; }
  15585. if test ${ac_cv_lib_dld_dld_link+y}
  15586. then :
  15587. printf %s "(cached) " >&6
  15588. else case e in #(
  15589. e) ac_check_lib_save_LIBS=$LIBS
  15590. LIBS="-ldld $LIBS"
  15591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15592. /* end confdefs.h. */
  15593. /* Override any GCC internal prototype to avoid an error.
  15594. Use char because int might match the return type of a GCC
  15595. builtin and then its argument prototype would still apply.
  15596. The 'extern "C"' is for builds by C++ compilers;
  15597. although this is not generally supported in C code supporting it here
  15598. has little cost and some practical benefit (sr 110532). */
  15599. #ifdef __cplusplus
  15600. extern "C"
  15601. #endif
  15602. char dld_link (void);
  15603. int
  15604. main (void)
  15605. {
  15606. return dld_link ();
  15607. ;
  15608. return 0;
  15609. }
  15610. _ACEOF
  15611. if ac_fn_c_try_link "$LINENO"
  15612. then :
  15613. ac_cv_lib_dld_dld_link=yes
  15614. else case e in #(
  15615. e) ac_cv_lib_dld_dld_link=no ;;
  15616. esac
  15617. fi
  15618. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15619. conftest$ac_exeext conftest.$ac_ext
  15620. LIBS=$ac_check_lib_save_LIBS ;;
  15621. esac
  15622. fi
  15623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  15624. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  15625. if test "x$ac_cv_lib_dld_dld_link" = xyes
  15626. then :
  15627. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  15628. fi
  15629. ;;
  15630. esac
  15631. fi
  15632. ;;
  15633. esac
  15634. fi
  15635. ;;
  15636. esac
  15637. fi
  15638. ;;
  15639. esac
  15640. fi
  15641. ;;
  15642. esac
  15643. fi
  15644. ;;
  15645. esac
  15646. if test no = "$lt_cv_dlopen"; then
  15647. enable_dlopen=no
  15648. else
  15649. enable_dlopen=yes
  15650. fi
  15651. case $lt_cv_dlopen in
  15652. dlopen)
  15653. save_CPPFLAGS=$CPPFLAGS
  15654. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  15655. save_LDFLAGS=$LDFLAGS
  15656. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  15657. save_LIBS=$LIBS
  15658. LIBS="$lt_cv_dlopen_libs $LIBS"
  15659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  15660. printf %s "checking whether a program can dlopen itself... " >&6; }
  15661. if test ${lt_cv_dlopen_self+y}
  15662. then :
  15663. printf %s "(cached) " >&6
  15664. else case e in #(
  15665. e) if test yes = "$cross_compiling"; then :
  15666. lt_cv_dlopen_self=cross
  15667. else
  15668. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  15669. lt_status=$lt_dlunknown
  15670. cat > conftest.$ac_ext <<_LT_EOF
  15671. #line $LINENO "configure"
  15672. #include "confdefs.h"
  15673. #if HAVE_DLFCN_H
  15674. #include <dlfcn.h>
  15675. #endif
  15676. #include <stdio.h>
  15677. #ifdef RTLD_GLOBAL
  15678. # define LT_DLGLOBAL RTLD_GLOBAL
  15679. #else
  15680. # ifdef DL_GLOBAL
  15681. # define LT_DLGLOBAL DL_GLOBAL
  15682. # else
  15683. # define LT_DLGLOBAL 0
  15684. # endif
  15685. #endif
  15686. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  15687. find out it does not work in some platform. */
  15688. #ifndef LT_DLLAZY_OR_NOW
  15689. # ifdef RTLD_LAZY
  15690. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  15691. # else
  15692. # ifdef DL_LAZY
  15693. # define LT_DLLAZY_OR_NOW DL_LAZY
  15694. # else
  15695. # ifdef RTLD_NOW
  15696. # define LT_DLLAZY_OR_NOW RTLD_NOW
  15697. # else
  15698. # ifdef DL_NOW
  15699. # define LT_DLLAZY_OR_NOW DL_NOW
  15700. # else
  15701. # define LT_DLLAZY_OR_NOW 0
  15702. # endif
  15703. # endif
  15704. # endif
  15705. # endif
  15706. #endif
  15707. /* When -fvisibility=hidden is used, assume the code has been annotated
  15708. correspondingly for the symbols needed. */
  15709. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  15710. int fnord (void) __attribute__((visibility("default")));
  15711. #endif
  15712. int fnord (void) { return 42; }
  15713. int main (void)
  15714. {
  15715. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  15716. int status = $lt_dlunknown;
  15717. if (self)
  15718. {
  15719. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  15720. else
  15721. {
  15722. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  15723. else puts (dlerror ());
  15724. }
  15725. /* dlclose (self); */
  15726. }
  15727. else
  15728. puts (dlerror ());
  15729. return status;
  15730. }
  15731. _LT_EOF
  15732. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  15733. (eval $ac_link) 2>&5
  15734. ac_status=$?
  15735. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15736. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  15737. (./conftest; exit; ) >&5 2>/dev/null
  15738. lt_status=$?
  15739. case x$lt_status in
  15740. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  15741. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  15742. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  15743. esac
  15744. else :
  15745. # compilation failed
  15746. lt_cv_dlopen_self=no
  15747. fi
  15748. fi
  15749. rm -fr conftest*
  15750. ;;
  15751. esac
  15752. fi
  15753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  15754. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  15755. if test yes = "$lt_cv_dlopen_self"; then
  15756. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  15757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  15758. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  15759. if test ${lt_cv_dlopen_self_static+y}
  15760. then :
  15761. printf %s "(cached) " >&6
  15762. else case e in #(
  15763. e) if test yes = "$cross_compiling"; then :
  15764. lt_cv_dlopen_self_static=cross
  15765. else
  15766. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  15767. lt_status=$lt_dlunknown
  15768. cat > conftest.$ac_ext <<_LT_EOF
  15769. #line $LINENO "configure"
  15770. #include "confdefs.h"
  15771. #if HAVE_DLFCN_H
  15772. #include <dlfcn.h>
  15773. #endif
  15774. #include <stdio.h>
  15775. #ifdef RTLD_GLOBAL
  15776. # define LT_DLGLOBAL RTLD_GLOBAL
  15777. #else
  15778. # ifdef DL_GLOBAL
  15779. # define LT_DLGLOBAL DL_GLOBAL
  15780. # else
  15781. # define LT_DLGLOBAL 0
  15782. # endif
  15783. #endif
  15784. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  15785. find out it does not work in some platform. */
  15786. #ifndef LT_DLLAZY_OR_NOW
  15787. # ifdef RTLD_LAZY
  15788. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  15789. # else
  15790. # ifdef DL_LAZY
  15791. # define LT_DLLAZY_OR_NOW DL_LAZY
  15792. # else
  15793. # ifdef RTLD_NOW
  15794. # define LT_DLLAZY_OR_NOW RTLD_NOW
  15795. # else
  15796. # ifdef DL_NOW
  15797. # define LT_DLLAZY_OR_NOW DL_NOW
  15798. # else
  15799. # define LT_DLLAZY_OR_NOW 0
  15800. # endif
  15801. # endif
  15802. # endif
  15803. # endif
  15804. #endif
  15805. /* When -fvisibility=hidden is used, assume the code has been annotated
  15806. correspondingly for the symbols needed. */
  15807. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  15808. int fnord (void) __attribute__((visibility("default")));
  15809. #endif
  15810. int fnord (void) { return 42; }
  15811. int main (void)
  15812. {
  15813. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  15814. int status = $lt_dlunknown;
  15815. if (self)
  15816. {
  15817. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  15818. else
  15819. {
  15820. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  15821. else puts (dlerror ());
  15822. }
  15823. /* dlclose (self); */
  15824. }
  15825. else
  15826. puts (dlerror ());
  15827. return status;
  15828. }
  15829. _LT_EOF
  15830. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  15831. (eval $ac_link) 2>&5
  15832. ac_status=$?
  15833. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15834. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  15835. (./conftest; exit; ) >&5 2>/dev/null
  15836. lt_status=$?
  15837. case x$lt_status in
  15838. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  15839. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  15840. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  15841. esac
  15842. else :
  15843. # compilation failed
  15844. lt_cv_dlopen_self_static=no
  15845. fi
  15846. fi
  15847. rm -fr conftest*
  15848. ;;
  15849. esac
  15850. fi
  15851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  15852. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  15853. fi
  15854. CPPFLAGS=$save_CPPFLAGS
  15855. LDFLAGS=$save_LDFLAGS
  15856. LIBS=$save_LIBS
  15857. ;;
  15858. esac
  15859. case $lt_cv_dlopen_self in
  15860. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  15861. *) enable_dlopen_self=unknown ;;
  15862. esac
  15863. case $lt_cv_dlopen_self_static in
  15864. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  15865. *) enable_dlopen_self_static=unknown ;;
  15866. esac
  15867. fi
  15868. striplib=
  15869. old_striplib=
  15870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  15871. printf %s "checking whether stripping libraries is possible... " >&6; }
  15872. if test -z "$STRIP"; then
  15873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15874. printf "%s\n" "no" >&6; }
  15875. else
  15876. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  15877. old_striplib="$STRIP --strip-debug"
  15878. striplib="$STRIP --strip-unneeded"
  15879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15880. printf "%s\n" "yes" >&6; }
  15881. else
  15882. case $host_os in
  15883. darwin*)
  15884. # FIXME - insert some real tests, host_os isn't really good enough
  15885. striplib="$STRIP -x"
  15886. old_striplib="$STRIP -S"
  15887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15888. printf "%s\n" "yes" >&6; }
  15889. ;;
  15890. freebsd*)
  15891. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  15892. old_striplib="$STRIP --strip-debug"
  15893. striplib="$STRIP --strip-unneeded"
  15894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15895. printf "%s\n" "yes" >&6; }
  15896. else
  15897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15898. printf "%s\n" "no" >&6; }
  15899. fi
  15900. ;;
  15901. *)
  15902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15903. printf "%s\n" "no" >&6; }
  15904. ;;
  15905. esac
  15906. fi
  15907. fi
  15908. # Report what library types will actually be built
  15909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  15910. printf %s "checking if libtool supports shared libraries... " >&6; }
  15911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  15912. printf "%s\n" "$can_build_shared" >&6; }
  15913. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  15914. printf %s "checking whether to build shared libraries... " >&6; }
  15915. test no = "$can_build_shared" && enable_shared=no
  15916. # On AIX, shared libraries and static libraries use the same namespace, and
  15917. # are all built from PIC.
  15918. case $host_os in
  15919. aix3*)
  15920. test yes = "$enable_shared" && enable_static=no
  15921. if test -n "$RANLIB"; then
  15922. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  15923. postinstall_cmds='$RANLIB $lib'
  15924. fi
  15925. ;;
  15926. aix[4-9]*)
  15927. if test ia64 != "$host_cpu"; then
  15928. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  15929. yes,aix,yes) ;; # shared object as lib.so file only
  15930. yes,svr4,*) ;; # shared object as lib.so archive member only
  15931. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  15932. esac
  15933. fi
  15934. ;;
  15935. esac
  15936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  15937. printf "%s\n" "$enable_shared" >&6; }
  15938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  15939. printf %s "checking whether to build static libraries... " >&6; }
  15940. # Make sure either enable_shared or enable_static is yes.
  15941. test yes = "$enable_shared" || enable_static=yes
  15942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  15943. printf "%s\n" "$enable_static" >&6; }
  15944. fi
  15945. ac_ext=c
  15946. ac_cpp='$CPP $CPPFLAGS'
  15947. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15948. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15949. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15950. CC=$lt_save_CC
  15951. ac_config_commands="$ac_config_commands libtool"
  15952. # Only expand once:
  15953. # Checks to compile test suite
  15954. # The cast to long int works around a bug in the HP C Compiler
  15955. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  15956. # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
  15957. # This bug is HP SR number 8606223364.
  15958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
  15959. printf %s "checking size of time_t... " >&6; }
  15960. if test ${ac_cv_sizeof_time_t+y}
  15961. then :
  15962. printf %s "(cached) " >&6
  15963. else case e in #(
  15964. e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default
  15965. #ifdef HAVE_SYS_TIME_H
  15966. #include <sys/time.h>
  15967. #endif
  15968. "
  15969. then :
  15970. else case e in #(
  15971. e) if test "$ac_cv_type_time_t" = yes; then
  15972. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  15973. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  15974. as_fn_error 77 "cannot compute sizeof (time_t)
  15975. See 'config.log' for more details" "$LINENO" 5; }
  15976. else
  15977. ac_cv_sizeof_time_t=0
  15978. fi ;;
  15979. esac
  15980. fi
  15981. ;;
  15982. esac
  15983. fi
  15984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
  15985. printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
  15986. printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
  15987. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print time_t" >&5
  15988. printf %s "checking how to print time_t... " >&6; }
  15989. if test ${ne_cv_fmt_time_t+y}
  15990. then :
  15991. printf %s "(cached) " >&6
  15992. else case e in #(
  15993. e)
  15994. ne_cv_fmt_time_t=none
  15995. if test $ne_fmt_trycompile = yes; then
  15996. oflags="$CPPFLAGS"
  15997. # Consider format string mismatches as errors
  15998. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  15999. for str in d ld lld; do
  16000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16001. /* end confdefs.h. */
  16002. #include <sys/types.h>
  16003. #ifdef HAVE_SYS_TIME_H
  16004. #include <sys/time.h>
  16005. #endif
  16006. #include <stdio.h>
  16007. int
  16008. main (void)
  16009. {
  16010. time_t i = 1; printf("%$str", i);
  16011. ;
  16012. return 0;
  16013. }
  16014. _ACEOF
  16015. if ac_fn_c_try_compile "$LINENO"
  16016. then :
  16017. ne_cv_fmt_time_t=$str; break
  16018. fi
  16019. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16020. done
  16021. CPPFLAGS=$oflags
  16022. else
  16023. # Best guess. Don't have to be too precise since we probably won't
  16024. # get a warning message anyway.
  16025. case $ac_cv_sizeof_time_t in
  16026. $ac_cv_sizeof_int) ne_cv_fmt_time_t="d" ;;
  16027. $ac_cv_sizeof_long) ne_cv_fmt_time_t="ld" ;;
  16028. $ac_cv_sizeof_long_long) ne_cv_fmt_time_t="lld" ;;
  16029. esac
  16030. fi
  16031. ;;
  16032. esac
  16033. fi
  16034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_time_t" >&5
  16035. printf "%s\n" "$ne_cv_fmt_time_t" >&6; }
  16036. if test "x$ne_cv_fmt_time_t" = "xnone"; then
  16037. as_fn_error $? "format string for time_t not found" "$LINENO" 5
  16038. fi
  16039. printf "%s\n" "#define NE_FMT_TIME_T \"$ne_cv_fmt_time_t\"" >>confdefs.h
  16040. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
  16041. "
  16042. if test "x$ac_cv_type_pid_t" = xyes
  16043. then :
  16044. else case e in #(
  16045. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16046. /* end confdefs.h. */
  16047. #if defined _WIN64 && !defined __CYGWIN__
  16048. LLP64
  16049. #endif
  16050. int
  16051. main (void)
  16052. {
  16053. ;
  16054. return 0;
  16055. }
  16056. _ACEOF
  16057. if ac_fn_c_try_compile "$LINENO"
  16058. then :
  16059. ac_pid_type='int'
  16060. else case e in #(
  16061. e) ac_pid_type='__int64' ;;
  16062. esac
  16063. fi
  16064. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16065. printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
  16066. ;;
  16067. esac
  16068. fi
  16069. # Search in /usr/ccs/bin for Solaris
  16070. ne_PATH=$PATH:/usr/ccs/bin
  16071. if test -n "$ac_tool_prefix"; then
  16072. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  16073. set dummy ${ac_tool_prefix}ar; ac_word=$2
  16074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16075. printf %s "checking for $ac_word... " >&6; }
  16076. if test ${ac_cv_prog_AR+y}
  16077. then :
  16078. printf %s "(cached) " >&6
  16079. else case e in #(
  16080. e) if test -n "$AR"; then
  16081. ac_cv_prog_AR="$AR" # Let the user override the test.
  16082. else
  16083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16084. for as_dir in $ne_PATH
  16085. do
  16086. IFS=$as_save_IFS
  16087. case $as_dir in #(((
  16088. '') as_dir=./ ;;
  16089. */) ;;
  16090. *) as_dir=$as_dir/ ;;
  16091. esac
  16092. for ac_exec_ext in '' $ac_executable_extensions; do
  16093. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  16094. ac_cv_prog_AR="${ac_tool_prefix}ar"
  16095. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  16096. break 2
  16097. fi
  16098. done
  16099. done
  16100. IFS=$as_save_IFS
  16101. fi ;;
  16102. esac
  16103. fi
  16104. AR=$ac_cv_prog_AR
  16105. if test -n "$AR"; then
  16106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  16107. printf "%s\n" "$AR" >&6; }
  16108. else
  16109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16110. printf "%s\n" "no" >&6; }
  16111. fi
  16112. fi
  16113. if test -z "$ac_cv_prog_AR"; then
  16114. ac_ct_AR=$AR
  16115. # Extract the first word of "ar", so it can be a program name with args.
  16116. set dummy ar; ac_word=$2
  16117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16118. printf %s "checking for $ac_word... " >&6; }
  16119. if test ${ac_cv_prog_ac_ct_AR+y}
  16120. then :
  16121. printf %s "(cached) " >&6
  16122. else case e in #(
  16123. e) if test -n "$ac_ct_AR"; then
  16124. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  16125. else
  16126. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16127. for as_dir in $ne_PATH
  16128. do
  16129. IFS=$as_save_IFS
  16130. case $as_dir in #(((
  16131. '') as_dir=./ ;;
  16132. */) ;;
  16133. *) as_dir=$as_dir/ ;;
  16134. esac
  16135. for ac_exec_ext in '' $ac_executable_extensions; do
  16136. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  16137. ac_cv_prog_ac_ct_AR="ar"
  16138. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  16139. break 2
  16140. fi
  16141. done
  16142. done
  16143. IFS=$as_save_IFS
  16144. fi ;;
  16145. esac
  16146. fi
  16147. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  16148. if test -n "$ac_ct_AR"; then
  16149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  16150. printf "%s\n" "$ac_ct_AR" >&6; }
  16151. else
  16152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16153. printf "%s\n" "no" >&6; }
  16154. fi
  16155. if test "x$ac_ct_AR" = x; then
  16156. AR="notfound"
  16157. else
  16158. case $cross_compiling:$ac_tool_warned in
  16159. yes:)
  16160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16161. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16162. ac_tool_warned=yes ;;
  16163. esac
  16164. AR=$ac_ct_AR
  16165. fi
  16166. else
  16167. AR="$ac_cv_prog_AR"
  16168. fi
  16169. if test "x$AR" = "xnotfound"; then
  16170. as_fn_error $? "could not find ar tool" "$LINENO" 5
  16171. fi
  16172. if test -n "$ac_tool_prefix"; then
  16173. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  16174. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  16175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16176. printf %s "checking for $ac_word... " >&6; }
  16177. if test ${ac_cv_prog_RANLIB+y}
  16178. then :
  16179. printf %s "(cached) " >&6
  16180. else case e in #(
  16181. e) if test -n "$RANLIB"; then
  16182. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  16183. else
  16184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16185. for as_dir in $ne_PATH
  16186. do
  16187. IFS=$as_save_IFS
  16188. case $as_dir in #(((
  16189. '') as_dir=./ ;;
  16190. */) ;;
  16191. *) as_dir=$as_dir/ ;;
  16192. esac
  16193. for ac_exec_ext in '' $ac_executable_extensions; do
  16194. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  16195. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  16196. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  16197. break 2
  16198. fi
  16199. done
  16200. done
  16201. IFS=$as_save_IFS
  16202. fi ;;
  16203. esac
  16204. fi
  16205. RANLIB=$ac_cv_prog_RANLIB
  16206. if test -n "$RANLIB"; then
  16207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  16208. printf "%s\n" "$RANLIB" >&6; }
  16209. else
  16210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16211. printf "%s\n" "no" >&6; }
  16212. fi
  16213. fi
  16214. if test -z "$ac_cv_prog_RANLIB"; then
  16215. ac_ct_RANLIB=$RANLIB
  16216. # Extract the first word of "ranlib", so it can be a program name with args.
  16217. set dummy ranlib; ac_word=$2
  16218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16219. printf %s "checking for $ac_word... " >&6; }
  16220. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  16221. then :
  16222. printf %s "(cached) " >&6
  16223. else case e in #(
  16224. e) if test -n "$ac_ct_RANLIB"; then
  16225. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  16226. else
  16227. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16228. for as_dir in $ne_PATH
  16229. do
  16230. IFS=$as_save_IFS
  16231. case $as_dir in #(((
  16232. '') as_dir=./ ;;
  16233. */) ;;
  16234. *) as_dir=$as_dir/ ;;
  16235. esac
  16236. for ac_exec_ext in '' $ac_executable_extensions; do
  16237. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  16238. ac_cv_prog_ac_ct_RANLIB="ranlib"
  16239. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  16240. break 2
  16241. fi
  16242. done
  16243. done
  16244. IFS=$as_save_IFS
  16245. fi ;;
  16246. esac
  16247. fi
  16248. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  16249. if test -n "$ac_ct_RANLIB"; then
  16250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  16251. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  16252. else
  16253. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16254. printf "%s\n" "no" >&6; }
  16255. fi
  16256. if test "x$ac_ct_RANLIB" = x; then
  16257. RANLIB=":"
  16258. else
  16259. case $cross_compiling:$ac_tool_warned in
  16260. yes:)
  16261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16262. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16263. ac_tool_warned=yes ;;
  16264. esac
  16265. RANLIB=$ac_ct_RANLIB
  16266. fi
  16267. else
  16268. RANLIB="$ac_cv_prog_RANLIB"
  16269. fi
  16270. ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
  16271. if test "x$ac_cv_header_sys_time_h" = xyes
  16272. then :
  16273. printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
  16274. fi
  16275. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16276. if test "x$ac_cv_header_signal_h" = xyes
  16277. then :
  16278. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16279. fi
  16280. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16281. if test "x$ac_cv_header_stdint_h" = xyes
  16282. then :
  16283. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16284. fi
  16285. ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
  16286. if test "x$ac_cv_header_locale_h" = xyes
  16287. then :
  16288. printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
  16289. fi
  16290. ac_fn_c_check_func "$LINENO" "pipe" "ac_cv_func_pipe"
  16291. if test "x$ac_cv_func_pipe" = xyes
  16292. then :
  16293. printf "%s\n" "#define HAVE_PIPE 1" >>confdefs.h
  16294. fi
  16295. ac_fn_c_check_func "$LINENO" "isatty" "ac_cv_func_isatty"
  16296. if test "x$ac_cv_func_isatty" = xyes
  16297. then :
  16298. printf "%s\n" "#define HAVE_ISATTY 1" >>confdefs.h
  16299. fi
  16300. ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
  16301. if test "x$ac_cv_func_usleep" = xyes
  16302. then :
  16303. printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
  16304. fi
  16305. ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
  16306. if test "x$ac_cv_func_shutdown" = xyes
  16307. then :
  16308. printf "%s\n" "#define HAVE_SHUTDOWN 1" >>confdefs.h
  16309. fi
  16310. ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
  16311. if test "x$ac_cv_func_setlocale" = xyes
  16312. then :
  16313. printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
  16314. fi
  16315. ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
  16316. if test "x$ac_cv_func_gethostname" = xyes
  16317. then :
  16318. printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
  16319. fi
  16320. # Use the libtool-type build.
  16321. NEON_TARGET=libneon.la
  16322. NEON_OBJEXT=lo
  16323. # Using the default set of object files to build.
  16324. # Add the extension to EXTRAOBJS
  16325. ne="$NEON_EXTRAOBJS"
  16326. NEON_EXTRAOBJS=
  16327. for o in $ne; do
  16328. NEON_EXTRAOBJS="$NEON_EXTRAOBJS $o.$NEON_OBJEXT"
  16329. done
  16330. # Was DAV support explicitly turned off?
  16331. if test "x$neon_no_webdav" = "xyes"; then
  16332. # No WebDAV support
  16333. NEONOBJS="$NEONOBJS \$(NEON_BASEOBJS)"
  16334. NE_FLAG_DAV=no
  16335. ne_DAV_message="WebDAV support is not enabled"
  16336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WebDAV support is not enabled" >&5
  16337. printf "%s\n" "$as_me: WebDAV support is not enabled" >&6;}
  16338. if test "x${NE_LIBTOOL_RELEASE}y" = "xy"; then
  16339. NE_LIBTOOL_RELEASE="NODAV"
  16340. else
  16341. NE_LIBTOOL_RELEASE="${NE_LIBTOOL_RELEASE}-NODAV"
  16342. fi
  16343. else
  16344. # WebDAV support
  16345. NEONOBJS="$NEONOBJS \$(NEON_DAVOBJS)"
  16346. NE_FLAG_DAV=yes
  16347. printf "%s\n" "#define NE_HAVE_DAV 1" >>confdefs.h
  16348. ne_DAV_message="WebDAV support is enabled"
  16349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WebDAV support is enabled" >&5
  16350. printf "%s\n" "$as_me: WebDAV support is enabled" >&6;}
  16351. fi
  16352. # Find an XML parser
  16353. # Check whether --with-libxml2 was given.
  16354. if test ${with_libxml2+y}
  16355. then :
  16356. withval=$with_libxml2;
  16357. fi
  16358. # Check whether --with-expat was given.
  16359. if test ${with_expat+y}
  16360. then :
  16361. withval=$with_expat;
  16362. fi
  16363. with_included_expat=no
  16364. if test "$NEON_NEED_XML_PARSER" = "yes"; then
  16365. # Find an XML parser
  16366. neon_xml_parser=none
  16367. # Forced choice of expat:
  16368. case $with_expat in
  16369. yes)
  16370. ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
  16371. if test "x$ac_cv_header_expat_h" = xyes
  16372. then :
  16373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XML_SetXmlDeclHandler in -lexpat" >&5
  16374. printf %s "checking for XML_SetXmlDeclHandler in -lexpat... " >&6; }
  16375. if test ${ac_cv_lib_expat_XML_SetXmlDeclHandler+y}
  16376. then :
  16377. printf %s "(cached) " >&6
  16378. else case e in #(
  16379. e) ac_check_lib_save_LIBS=$LIBS
  16380. LIBS="-lexpat $LIBS"
  16381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16382. /* end confdefs.h. */
  16383. /* Override any GCC internal prototype to avoid an error.
  16384. Use char because int might match the return type of a GCC
  16385. builtin and then its argument prototype would still apply.
  16386. The 'extern "C"' is for builds by C++ compilers;
  16387. although this is not generally supported in C code supporting it here
  16388. has little cost and some practical benefit (sr 110532). */
  16389. #ifdef __cplusplus
  16390. extern "C"
  16391. #endif
  16392. char XML_SetXmlDeclHandler (void);
  16393. int
  16394. main (void)
  16395. {
  16396. return XML_SetXmlDeclHandler ();
  16397. ;
  16398. return 0;
  16399. }
  16400. _ACEOF
  16401. if ac_fn_c_try_link "$LINENO"
  16402. then :
  16403. ac_cv_lib_expat_XML_SetXmlDeclHandler=yes
  16404. else case e in #(
  16405. e) ac_cv_lib_expat_XML_SetXmlDeclHandler=no ;;
  16406. esac
  16407. fi
  16408. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16409. conftest$ac_exeext conftest.$ac_ext
  16410. LIBS=$ac_check_lib_save_LIBS ;;
  16411. esac
  16412. fi
  16413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_SetXmlDeclHandler" >&5
  16414. printf "%s\n" "$ac_cv_lib_expat_XML_SetXmlDeclHandler" >&6; }
  16415. if test "x$ac_cv_lib_expat_XML_SetXmlDeclHandler" = xyes
  16416. then :
  16417. printf "%s\n" "#define HAVE_EXPAT 1" >>confdefs.h
  16418. neon_xml_parser_message="expat"
  16419. NEON_LIBS="$NEON_LIBS -lexpat"
  16420. neon_xml_parser=expat
  16421. ac_fn_c_check_type "$LINENO" "XML_Size" "ac_cv_type_XML_Size" "#include <expat.h>
  16422. "
  16423. if test "x$ac_cv_type_XML_Size" = xyes
  16424. then :
  16425. # The cast to long int works around a bug in the HP C Compiler
  16426. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  16427. # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
  16428. # This bug is HP SR number 8606223364.
  16429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of XML_Size" >&5
  16430. printf %s "checking size of XML_Size... " >&6; }
  16431. if test ${ac_cv_sizeof_XML_Size+y}
  16432. then :
  16433. printf %s "(cached) " >&6
  16434. else case e in #(
  16435. e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (XML_Size))" "ac_cv_sizeof_XML_Size" "$ac_includes_default
  16436. #include <expat.h>
  16437. "
  16438. then :
  16439. else case e in #(
  16440. e) if test "$ac_cv_type_XML_Size" = yes; then
  16441. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  16442. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  16443. as_fn_error 77 "cannot compute sizeof (XML_Size)
  16444. See 'config.log' for more details" "$LINENO" 5; }
  16445. else
  16446. ac_cv_sizeof_XML_Size=0
  16447. fi ;;
  16448. esac
  16449. fi
  16450. ;;
  16451. esac
  16452. fi
  16453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_XML_Size" >&5
  16454. printf "%s\n" "$ac_cv_sizeof_XML_Size" >&6; }
  16455. printf "%s\n" "#define SIZEOF_XML_SIZE $ac_cv_sizeof_XML_Size" >>confdefs.h
  16456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print XML_Size" >&5
  16457. printf %s "checking how to print XML_Size... " >&6; }
  16458. if test ${ne_cv_fmt_XML_Size+y}
  16459. then :
  16460. printf %s "(cached) " >&6
  16461. else case e in #(
  16462. e)
  16463. ne_cv_fmt_XML_Size=none
  16464. if test $ne_fmt_trycompile = yes; then
  16465. oflags="$CPPFLAGS"
  16466. # Consider format string mismatches as errors
  16467. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  16468. for str in d ld lld; do
  16469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16470. /* end confdefs.h. */
  16471. #include <sys/types.h>
  16472. #include <expat.h>
  16473. #include <stdio.h>
  16474. int
  16475. main (void)
  16476. {
  16477. XML_Size i = 1; printf("%$str", i);
  16478. ;
  16479. return 0;
  16480. }
  16481. _ACEOF
  16482. if ac_fn_c_try_compile "$LINENO"
  16483. then :
  16484. ne_cv_fmt_XML_Size=$str; break
  16485. fi
  16486. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16487. done
  16488. CPPFLAGS=$oflags
  16489. else
  16490. # Best guess. Don't have to be too precise since we probably won't
  16491. # get a warning message anyway.
  16492. case $ac_cv_sizeof_XML_Size in
  16493. $ac_cv_sizeof_int) ne_cv_fmt_XML_Size="d" ;;
  16494. $ac_cv_sizeof_long) ne_cv_fmt_XML_Size="ld" ;;
  16495. $ac_cv_sizeof_long_long) ne_cv_fmt_XML_Size="lld" ;;
  16496. esac
  16497. fi
  16498. ;;
  16499. esac
  16500. fi
  16501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_XML_Size" >&5
  16502. printf "%s\n" "$ne_cv_fmt_XML_Size" >&6; }
  16503. if test "x$ne_cv_fmt_XML_Size" = "xnone"; then
  16504. as_fn_error $? "format string for XML_Size not found" "$LINENO" 5
  16505. fi
  16506. printf "%s\n" "#define NE_FMT_XML_SIZE \"$ne_cv_fmt_XML_Size\"" >>confdefs.h
  16507. else case e in #(
  16508. e) printf "%s\n" "#define NE_FMT_XML_SIZE \"d\"" >>confdefs.h
  16509. ;;
  16510. esac
  16511. fi
  16512. else case e in #(
  16513. e) as_fn_error $? "expat library not found, cannot proceed" "$LINENO" 5 ;;
  16514. esac
  16515. fi
  16516. else case e in #(
  16517. e) as_fn_error $? "expat library not found, cannot proceed" "$LINENO" 5 ;;
  16518. esac
  16519. fi
  16520. ;;
  16521. no) ;;
  16522. */libexpat.la)
  16523. # Special case for Subversion
  16524. ne_expdir=`echo $with_expat | sed 's:/libexpat.la$::'`
  16525. printf "%s\n" "#define HAVE_EXPAT 1" >>confdefs.h
  16526. printf "%s\n" "#define NE_FMT_XML_SIZE \"d\"" >>confdefs.h
  16527. CPPFLAGS="$CPPFLAGS -I$ne_expdir"
  16528. if test "x${NEON_TARGET}" = "xlibneon.la"; then
  16529. NEON_LTLIBS=$with_expat
  16530. else
  16531. # no dependency on libexpat => crippled libneon, so do partial install
  16532. ALLOW_INSTALL=lib
  16533. fi
  16534. neon_xml_parser=expat
  16535. neon_xml_parser_message="expat in $ne_expdir"
  16536. ;;
  16537. /*) as_fn_error $? "--with-expat does not take a directory argument" "$LINENO" 5 ;;
  16538. esac
  16539. # If expat wasn't specifically enabled and libxml was:
  16540. if test "${neon_xml_parser}-${with_libxml2}-${with_included_expat}" = "none-yes-no"; then
  16541. if test -n "$ac_tool_prefix"; then
  16542. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  16543. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  16544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16545. printf %s "checking for $ac_word... " >&6; }
  16546. if test ${ac_cv_path_PKG_CONFIG+y}
  16547. then :
  16548. printf %s "(cached) " >&6
  16549. else case e in #(
  16550. e) case $PKG_CONFIG in
  16551. [\\/]* | ?:[\\/]*)
  16552. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16553. ;;
  16554. *)
  16555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16556. for as_dir in $PATH
  16557. do
  16558. IFS=$as_save_IFS
  16559. case $as_dir in #(((
  16560. '') as_dir=./ ;;
  16561. */) ;;
  16562. *) as_dir=$as_dir/ ;;
  16563. esac
  16564. for ac_exec_ext in '' $ac_executable_extensions; do
  16565. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  16566. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  16567. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  16568. break 2
  16569. fi
  16570. done
  16571. done
  16572. IFS=$as_save_IFS
  16573. ;;
  16574. esac ;;
  16575. esac
  16576. fi
  16577. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16578. if test -n "$PKG_CONFIG"; then
  16579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16580. printf "%s\n" "$PKG_CONFIG" >&6; }
  16581. else
  16582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16583. printf "%s\n" "no" >&6; }
  16584. fi
  16585. fi
  16586. if test -z "$ac_cv_path_PKG_CONFIG"; then
  16587. ac_pt_PKG_CONFIG=$PKG_CONFIG
  16588. # Extract the first word of "pkg-config", so it can be a program name with args.
  16589. set dummy pkg-config; ac_word=$2
  16590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16591. printf %s "checking for $ac_word... " >&6; }
  16592. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  16593. then :
  16594. printf %s "(cached) " >&6
  16595. else case e in #(
  16596. e) case $ac_pt_PKG_CONFIG in
  16597. [\\/]* | ?:[\\/]*)
  16598. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  16599. ;;
  16600. *)
  16601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16602. for as_dir in $PATH
  16603. do
  16604. IFS=$as_save_IFS
  16605. case $as_dir in #(((
  16606. '') as_dir=./ ;;
  16607. */) ;;
  16608. *) as_dir=$as_dir/ ;;
  16609. esac
  16610. for ac_exec_ext in '' $ac_executable_extensions; do
  16611. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  16612. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  16613. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  16614. break 2
  16615. fi
  16616. done
  16617. done
  16618. IFS=$as_save_IFS
  16619. ;;
  16620. esac ;;
  16621. esac
  16622. fi
  16623. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  16624. if test -n "$ac_pt_PKG_CONFIG"; then
  16625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  16626. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  16627. else
  16628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16629. printf "%s\n" "no" >&6; }
  16630. fi
  16631. if test "x$ac_pt_PKG_CONFIG" = x; then
  16632. PKG_CONFIG="no"
  16633. else
  16634. case $cross_compiling:$ac_tool_warned in
  16635. yes:)
  16636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16637. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16638. ac_tool_warned=yes ;;
  16639. esac
  16640. PKG_CONFIG=$ac_pt_PKG_CONFIG
  16641. fi
  16642. else
  16643. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  16644. fi
  16645. if test "x$PKG_CONFIG" = "xno"; then
  16646. : Not using pkg-config
  16647. if test -n "$ac_tool_prefix"; then
  16648. # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
  16649. set dummy ${ac_tool_prefix}xml2-config; ac_word=$2
  16650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16651. printf %s "checking for $ac_word... " >&6; }
  16652. if test ${ac_cv_prog_XML2_CONFIG+y}
  16653. then :
  16654. printf %s "(cached) " >&6
  16655. else case e in #(
  16656. e) if test -n "$XML2_CONFIG"; then
  16657. ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
  16658. else
  16659. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16660. for as_dir in $PATH
  16661. do
  16662. IFS=$as_save_IFS
  16663. case $as_dir in #(((
  16664. '') as_dir=./ ;;
  16665. */) ;;
  16666. *) as_dir=$as_dir/ ;;
  16667. esac
  16668. for ac_exec_ext in '' $ac_executable_extensions; do
  16669. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  16670. ac_cv_prog_XML2_CONFIG="${ac_tool_prefix}xml2-config"
  16671. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  16672. break 2
  16673. fi
  16674. done
  16675. done
  16676. IFS=$as_save_IFS
  16677. fi ;;
  16678. esac
  16679. fi
  16680. XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
  16681. if test -n "$XML2_CONFIG"; then
  16682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  16683. printf "%s\n" "$XML2_CONFIG" >&6; }
  16684. else
  16685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16686. printf "%s\n" "no" >&6; }
  16687. fi
  16688. fi
  16689. if test -z "$ac_cv_prog_XML2_CONFIG"; then
  16690. ac_ct_XML2_CONFIG=$XML2_CONFIG
  16691. # Extract the first word of "xml2-config", so it can be a program name with args.
  16692. set dummy xml2-config; ac_word=$2
  16693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16694. printf %s "checking for $ac_word... " >&6; }
  16695. if test ${ac_cv_prog_ac_ct_XML2_CONFIG+y}
  16696. then :
  16697. printf %s "(cached) " >&6
  16698. else case e in #(
  16699. e) if test -n "$ac_ct_XML2_CONFIG"; then
  16700. ac_cv_prog_ac_ct_XML2_CONFIG="$ac_ct_XML2_CONFIG" # Let the user override the test.
  16701. else
  16702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16703. for as_dir in $PATH
  16704. do
  16705. IFS=$as_save_IFS
  16706. case $as_dir in #(((
  16707. '') as_dir=./ ;;
  16708. */) ;;
  16709. *) as_dir=$as_dir/ ;;
  16710. esac
  16711. for ac_exec_ext in '' $ac_executable_extensions; do
  16712. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  16713. ac_cv_prog_ac_ct_XML2_CONFIG="xml2-config"
  16714. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  16715. break 2
  16716. fi
  16717. done
  16718. done
  16719. IFS=$as_save_IFS
  16720. fi ;;
  16721. esac
  16722. fi
  16723. ac_ct_XML2_CONFIG=$ac_cv_prog_ac_ct_XML2_CONFIG
  16724. if test -n "$ac_ct_XML2_CONFIG"; then
  16725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_XML2_CONFIG" >&5
  16726. printf "%s\n" "$ac_ct_XML2_CONFIG" >&6; }
  16727. else
  16728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16729. printf "%s\n" "no" >&6; }
  16730. fi
  16731. if test "x$ac_ct_XML2_CONFIG" = x; then
  16732. XML2_CONFIG=""
  16733. else
  16734. case $cross_compiling:$ac_tool_warned in
  16735. yes:)
  16736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16737. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16738. ac_tool_warned=yes ;;
  16739. esac
  16740. XML2_CONFIG=$ac_ct_XML2_CONFIG
  16741. fi
  16742. else
  16743. XML2_CONFIG="$ac_cv_prog_XML2_CONFIG"
  16744. fi
  16745. if test "x$XML2_CONFIG" != "xno"; then
  16746. # xml2-config in some versions erroneously includes -I/include
  16747. # in the --cflags output.
  16748. NE_LX2_VERSION="`$XML2_CONFIG --version`"
  16749. NE_LX2_CFLAGS="`$XML2_CONFIG --cflags | sed 's| -I/include||g'`"
  16750. NE_LX2_LIBS="`$XML2_CONFIG --libs | sed 's|-L/usr/lib ||g'`"
  16751. fi
  16752. else
  16753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 pkg-config data" >&5
  16754. printf %s "checking for libxml-2.0 pkg-config data... " >&6; }
  16755. if test ${ne_cv_pkg_libxml_2_0+y}
  16756. then :
  16757. printf %s "(cached) " >&6
  16758. else case e in #(
  16759. e) if $PKG_CONFIG libxml-2.0; then
  16760. ne_cv_pkg_libxml_2_0=yes
  16761. else
  16762. ne_cv_pkg_libxml_2_0=no
  16763. fi ;;
  16764. esac
  16765. fi
  16766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_libxml_2_0" >&5
  16767. printf "%s\n" "$ne_cv_pkg_libxml_2_0" >&6; }
  16768. if test "$ne_cv_pkg_libxml_2_0" = "yes"; then
  16769. NE_LX2_CFLAGS=`$PKG_CONFIG --cflags libxml-2.0`
  16770. NE_LX2_LIBS=`$PKG_CONFIG --libs libxml-2.0`
  16771. NE_LX2_VERSION=`$PKG_CONFIG --modversion libxml-2.0`
  16772. : Using provided pkg-config data
  16773. else
  16774. : No pkg-config for libxml-2.0 provided
  16775. if test -n "$ac_tool_prefix"; then
  16776. # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
  16777. set dummy ${ac_tool_prefix}xml2-config; ac_word=$2
  16778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16779. printf %s "checking for $ac_word... " >&6; }
  16780. if test ${ac_cv_prog_XML2_CONFIG+y}
  16781. then :
  16782. printf %s "(cached) " >&6
  16783. else case e in #(
  16784. e) if test -n "$XML2_CONFIG"; then
  16785. ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
  16786. else
  16787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16788. for as_dir in $PATH
  16789. do
  16790. IFS=$as_save_IFS
  16791. case $as_dir in #(((
  16792. '') as_dir=./ ;;
  16793. */) ;;
  16794. *) as_dir=$as_dir/ ;;
  16795. esac
  16796. for ac_exec_ext in '' $ac_executable_extensions; do
  16797. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  16798. ac_cv_prog_XML2_CONFIG="${ac_tool_prefix}xml2-config"
  16799. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  16800. break 2
  16801. fi
  16802. done
  16803. done
  16804. IFS=$as_save_IFS
  16805. fi ;;
  16806. esac
  16807. fi
  16808. XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
  16809. if test -n "$XML2_CONFIG"; then
  16810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  16811. printf "%s\n" "$XML2_CONFIG" >&6; }
  16812. else
  16813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16814. printf "%s\n" "no" >&6; }
  16815. fi
  16816. fi
  16817. if test -z "$ac_cv_prog_XML2_CONFIG"; then
  16818. ac_ct_XML2_CONFIG=$XML2_CONFIG
  16819. # Extract the first word of "xml2-config", so it can be a program name with args.
  16820. set dummy xml2-config; ac_word=$2
  16821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16822. printf %s "checking for $ac_word... " >&6; }
  16823. if test ${ac_cv_prog_ac_ct_XML2_CONFIG+y}
  16824. then :
  16825. printf %s "(cached) " >&6
  16826. else case e in #(
  16827. e) if test -n "$ac_ct_XML2_CONFIG"; then
  16828. ac_cv_prog_ac_ct_XML2_CONFIG="$ac_ct_XML2_CONFIG" # Let the user override the test.
  16829. else
  16830. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16831. for as_dir in $PATH
  16832. do
  16833. IFS=$as_save_IFS
  16834. case $as_dir in #(((
  16835. '') as_dir=./ ;;
  16836. */) ;;
  16837. *) as_dir=$as_dir/ ;;
  16838. esac
  16839. for ac_exec_ext in '' $ac_executable_extensions; do
  16840. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  16841. ac_cv_prog_ac_ct_XML2_CONFIG="xml2-config"
  16842. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  16843. break 2
  16844. fi
  16845. done
  16846. done
  16847. IFS=$as_save_IFS
  16848. fi ;;
  16849. esac
  16850. fi
  16851. ac_ct_XML2_CONFIG=$ac_cv_prog_ac_ct_XML2_CONFIG
  16852. if test -n "$ac_ct_XML2_CONFIG"; then
  16853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_XML2_CONFIG" >&5
  16854. printf "%s\n" "$ac_ct_XML2_CONFIG" >&6; }
  16855. else
  16856. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16857. printf "%s\n" "no" >&6; }
  16858. fi
  16859. if test "x$ac_ct_XML2_CONFIG" = x; then
  16860. XML2_CONFIG=""
  16861. else
  16862. case $cross_compiling:$ac_tool_warned in
  16863. yes:)
  16864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16865. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16866. ac_tool_warned=yes ;;
  16867. esac
  16868. XML2_CONFIG=$ac_ct_XML2_CONFIG
  16869. fi
  16870. else
  16871. XML2_CONFIG="$ac_cv_prog_XML2_CONFIG"
  16872. fi
  16873. if test "x$XML2_CONFIG" != "xno"; then
  16874. # xml2-config in some versions erroneously includes -I/include
  16875. # in the --cflags output.
  16876. NE_LX2_VERSION="`$XML2_CONFIG --version`"
  16877. NE_LX2_CFLAGS="`$XML2_CONFIG --cflags | sed 's| -I/include||g'`"
  16878. NE_LX2_LIBS="`$XML2_CONFIG --libs | sed 's|-L/usr/lib ||g'`"
  16879. fi
  16880. fi
  16881. fi
  16882. if test -n "${NE_LX2_VERSION+set}"; then
  16883. neon_xml_parser_message="libxml $NE_LX2_VERSION"
  16884. printf "%s\n" "#define HAVE_LIBXML 1" >>confdefs.h
  16885. CPPFLAGS="$CPPFLAGS $NE_LX2_CFLAGS"
  16886. NEON_LIBS="$NEON_LIBS $NE_LX2_LIBS"
  16887. for ac_header in libxml/xmlversion.h libxml/parser.h
  16888. do :
  16889. as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
  16890. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16891. if eval test \"x\$"$as_ac_Header"\" = x"yes"
  16892. then :
  16893. cat >>confdefs.h <<_ACEOF
  16894. #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
  16895. _ACEOF
  16896. else case e in #(
  16897. e)
  16898. as_fn_error $? "could not find parser.h, libxml installation problem?" "$LINENO" 5 ;;
  16899. esac
  16900. fi
  16901. done
  16902. neon_xml_parser=libxml2
  16903. else
  16904. as_fn_error $? "libxml2.x library not found, cannot proceed" "$LINENO" 5
  16905. fi
  16906. fi
  16907. # Otherwise, by default search for expat then libxml2:
  16908. if test "${neon_xml_parser}-${with_included_expat}" = "none-no"; then
  16909. ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
  16910. if test "x$ac_cv_header_expat_h" = xyes
  16911. then :
  16912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XML_SetXmlDeclHandler in -lexpat" >&5
  16913. printf %s "checking for XML_SetXmlDeclHandler in -lexpat... " >&6; }
  16914. if test ${ac_cv_lib_expat_XML_SetXmlDeclHandler+y}
  16915. then :
  16916. printf %s "(cached) " >&6
  16917. else case e in #(
  16918. e) ac_check_lib_save_LIBS=$LIBS
  16919. LIBS="-lexpat $LIBS"
  16920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16921. /* end confdefs.h. */
  16922. /* Override any GCC internal prototype to avoid an error.
  16923. Use char because int might match the return type of a GCC
  16924. builtin and then its argument prototype would still apply.
  16925. The 'extern "C"' is for builds by C++ compilers;
  16926. although this is not generally supported in C code supporting it here
  16927. has little cost and some practical benefit (sr 110532). */
  16928. #ifdef __cplusplus
  16929. extern "C"
  16930. #endif
  16931. char XML_SetXmlDeclHandler (void);
  16932. int
  16933. main (void)
  16934. {
  16935. return XML_SetXmlDeclHandler ();
  16936. ;
  16937. return 0;
  16938. }
  16939. _ACEOF
  16940. if ac_fn_c_try_link "$LINENO"
  16941. then :
  16942. ac_cv_lib_expat_XML_SetXmlDeclHandler=yes
  16943. else case e in #(
  16944. e) ac_cv_lib_expat_XML_SetXmlDeclHandler=no ;;
  16945. esac
  16946. fi
  16947. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16948. conftest$ac_exeext conftest.$ac_ext
  16949. LIBS=$ac_check_lib_save_LIBS ;;
  16950. esac
  16951. fi
  16952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_SetXmlDeclHandler" >&5
  16953. printf "%s\n" "$ac_cv_lib_expat_XML_SetXmlDeclHandler" >&6; }
  16954. if test "x$ac_cv_lib_expat_XML_SetXmlDeclHandler" = xyes
  16955. then :
  16956. printf "%s\n" "#define HAVE_EXPAT 1" >>confdefs.h
  16957. neon_xml_parser_message="expat"
  16958. NEON_LIBS="$NEON_LIBS -lexpat"
  16959. neon_xml_parser=expat
  16960. ac_fn_c_check_type "$LINENO" "XML_Size" "ac_cv_type_XML_Size" "#include <expat.h>
  16961. "
  16962. if test "x$ac_cv_type_XML_Size" = xyes
  16963. then :
  16964. # The cast to long int works around a bug in the HP C Compiler
  16965. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  16966. # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
  16967. # This bug is HP SR number 8606223364.
  16968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of XML_Size" >&5
  16969. printf %s "checking size of XML_Size... " >&6; }
  16970. if test ${ac_cv_sizeof_XML_Size+y}
  16971. then :
  16972. printf %s "(cached) " >&6
  16973. else case e in #(
  16974. e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (XML_Size))" "ac_cv_sizeof_XML_Size" "$ac_includes_default
  16975. #include <expat.h>
  16976. "
  16977. then :
  16978. else case e in #(
  16979. e) if test "$ac_cv_type_XML_Size" = yes; then
  16980. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  16981. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  16982. as_fn_error 77 "cannot compute sizeof (XML_Size)
  16983. See 'config.log' for more details" "$LINENO" 5; }
  16984. else
  16985. ac_cv_sizeof_XML_Size=0
  16986. fi ;;
  16987. esac
  16988. fi
  16989. ;;
  16990. esac
  16991. fi
  16992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_XML_Size" >&5
  16993. printf "%s\n" "$ac_cv_sizeof_XML_Size" >&6; }
  16994. printf "%s\n" "#define SIZEOF_XML_SIZE $ac_cv_sizeof_XML_Size" >>confdefs.h
  16995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print XML_Size" >&5
  16996. printf %s "checking how to print XML_Size... " >&6; }
  16997. if test ${ne_cv_fmt_XML_Size+y}
  16998. then :
  16999. printf %s "(cached) " >&6
  17000. else case e in #(
  17001. e)
  17002. ne_cv_fmt_XML_Size=none
  17003. if test $ne_fmt_trycompile = yes; then
  17004. oflags="$CPPFLAGS"
  17005. # Consider format string mismatches as errors
  17006. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  17007. for str in d ld lld; do
  17008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17009. /* end confdefs.h. */
  17010. #include <sys/types.h>
  17011. #include <expat.h>
  17012. #include <stdio.h>
  17013. int
  17014. main (void)
  17015. {
  17016. XML_Size i = 1; printf("%$str", i);
  17017. ;
  17018. return 0;
  17019. }
  17020. _ACEOF
  17021. if ac_fn_c_try_compile "$LINENO"
  17022. then :
  17023. ne_cv_fmt_XML_Size=$str; break
  17024. fi
  17025. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17026. done
  17027. CPPFLAGS=$oflags
  17028. else
  17029. # Best guess. Don't have to be too precise since we probably won't
  17030. # get a warning message anyway.
  17031. case $ac_cv_sizeof_XML_Size in
  17032. $ac_cv_sizeof_int) ne_cv_fmt_XML_Size="d" ;;
  17033. $ac_cv_sizeof_long) ne_cv_fmt_XML_Size="ld" ;;
  17034. $ac_cv_sizeof_long_long) ne_cv_fmt_XML_Size="lld" ;;
  17035. esac
  17036. fi
  17037. ;;
  17038. esac
  17039. fi
  17040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_XML_Size" >&5
  17041. printf "%s\n" "$ne_cv_fmt_XML_Size" >&6; }
  17042. if test "x$ne_cv_fmt_XML_Size" = "xnone"; then
  17043. as_fn_error $? "format string for XML_Size not found" "$LINENO" 5
  17044. fi
  17045. printf "%s\n" "#define NE_FMT_XML_SIZE \"$ne_cv_fmt_XML_Size\"" >>confdefs.h
  17046. else case e in #(
  17047. e) printf "%s\n" "#define NE_FMT_XML_SIZE \"d\"" >>confdefs.h
  17048. ;;
  17049. esac
  17050. fi
  17051. else case e in #(
  17052. e)
  17053. if test -n "$ac_tool_prefix"; then
  17054. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  17055. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  17056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17057. printf %s "checking for $ac_word... " >&6; }
  17058. if test ${ac_cv_path_PKG_CONFIG+y}
  17059. then :
  17060. printf %s "(cached) " >&6
  17061. else case e in #(
  17062. e) case $PKG_CONFIG in
  17063. [\\/]* | ?:[\\/]*)
  17064. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17065. ;;
  17066. *)
  17067. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17068. for as_dir in $PATH
  17069. do
  17070. IFS=$as_save_IFS
  17071. case $as_dir in #(((
  17072. '') as_dir=./ ;;
  17073. */) ;;
  17074. *) as_dir=$as_dir/ ;;
  17075. esac
  17076. for ac_exec_ext in '' $ac_executable_extensions; do
  17077. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  17078. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  17079. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  17080. break 2
  17081. fi
  17082. done
  17083. done
  17084. IFS=$as_save_IFS
  17085. ;;
  17086. esac ;;
  17087. esac
  17088. fi
  17089. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17090. if test -n "$PKG_CONFIG"; then
  17091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17092. printf "%s\n" "$PKG_CONFIG" >&6; }
  17093. else
  17094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17095. printf "%s\n" "no" >&6; }
  17096. fi
  17097. fi
  17098. if test -z "$ac_cv_path_PKG_CONFIG"; then
  17099. ac_pt_PKG_CONFIG=$PKG_CONFIG
  17100. # Extract the first word of "pkg-config", so it can be a program name with args.
  17101. set dummy pkg-config; ac_word=$2
  17102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17103. printf %s "checking for $ac_word... " >&6; }
  17104. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  17105. then :
  17106. printf %s "(cached) " >&6
  17107. else case e in #(
  17108. e) case $ac_pt_PKG_CONFIG in
  17109. [\\/]* | ?:[\\/]*)
  17110. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  17111. ;;
  17112. *)
  17113. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17114. for as_dir in $PATH
  17115. do
  17116. IFS=$as_save_IFS
  17117. case $as_dir in #(((
  17118. '') as_dir=./ ;;
  17119. */) ;;
  17120. *) as_dir=$as_dir/ ;;
  17121. esac
  17122. for ac_exec_ext in '' $ac_executable_extensions; do
  17123. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  17124. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  17125. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  17126. break 2
  17127. fi
  17128. done
  17129. done
  17130. IFS=$as_save_IFS
  17131. ;;
  17132. esac ;;
  17133. esac
  17134. fi
  17135. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  17136. if test -n "$ac_pt_PKG_CONFIG"; then
  17137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  17138. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  17139. else
  17140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17141. printf "%s\n" "no" >&6; }
  17142. fi
  17143. if test "x$ac_pt_PKG_CONFIG" = x; then
  17144. PKG_CONFIG="no"
  17145. else
  17146. case $cross_compiling:$ac_tool_warned in
  17147. yes:)
  17148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17149. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17150. ac_tool_warned=yes ;;
  17151. esac
  17152. PKG_CONFIG=$ac_pt_PKG_CONFIG
  17153. fi
  17154. else
  17155. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  17156. fi
  17157. if test "x$PKG_CONFIG" = "xno"; then
  17158. : Not using pkg-config
  17159. if test -n "$ac_tool_prefix"; then
  17160. # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
  17161. set dummy ${ac_tool_prefix}xml2-config; ac_word=$2
  17162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17163. printf %s "checking for $ac_word... " >&6; }
  17164. if test ${ac_cv_prog_XML2_CONFIG+y}
  17165. then :
  17166. printf %s "(cached) " >&6
  17167. else case e in #(
  17168. e) if test -n "$XML2_CONFIG"; then
  17169. ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
  17170. else
  17171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17172. for as_dir in $PATH
  17173. do
  17174. IFS=$as_save_IFS
  17175. case $as_dir in #(((
  17176. '') as_dir=./ ;;
  17177. */) ;;
  17178. *) as_dir=$as_dir/ ;;
  17179. esac
  17180. for ac_exec_ext in '' $ac_executable_extensions; do
  17181. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  17182. ac_cv_prog_XML2_CONFIG="${ac_tool_prefix}xml2-config"
  17183. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  17184. break 2
  17185. fi
  17186. done
  17187. done
  17188. IFS=$as_save_IFS
  17189. fi ;;
  17190. esac
  17191. fi
  17192. XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
  17193. if test -n "$XML2_CONFIG"; then
  17194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  17195. printf "%s\n" "$XML2_CONFIG" >&6; }
  17196. else
  17197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17198. printf "%s\n" "no" >&6; }
  17199. fi
  17200. fi
  17201. if test -z "$ac_cv_prog_XML2_CONFIG"; then
  17202. ac_ct_XML2_CONFIG=$XML2_CONFIG
  17203. # Extract the first word of "xml2-config", so it can be a program name with args.
  17204. set dummy xml2-config; ac_word=$2
  17205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17206. printf %s "checking for $ac_word... " >&6; }
  17207. if test ${ac_cv_prog_ac_ct_XML2_CONFIG+y}
  17208. then :
  17209. printf %s "(cached) " >&6
  17210. else case e in #(
  17211. e) if test -n "$ac_ct_XML2_CONFIG"; then
  17212. ac_cv_prog_ac_ct_XML2_CONFIG="$ac_ct_XML2_CONFIG" # Let the user override the test.
  17213. else
  17214. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17215. for as_dir in $PATH
  17216. do
  17217. IFS=$as_save_IFS
  17218. case $as_dir in #(((
  17219. '') as_dir=./ ;;
  17220. */) ;;
  17221. *) as_dir=$as_dir/ ;;
  17222. esac
  17223. for ac_exec_ext in '' $ac_executable_extensions; do
  17224. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  17225. ac_cv_prog_ac_ct_XML2_CONFIG="xml2-config"
  17226. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  17227. break 2
  17228. fi
  17229. done
  17230. done
  17231. IFS=$as_save_IFS
  17232. fi ;;
  17233. esac
  17234. fi
  17235. ac_ct_XML2_CONFIG=$ac_cv_prog_ac_ct_XML2_CONFIG
  17236. if test -n "$ac_ct_XML2_CONFIG"; then
  17237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_XML2_CONFIG" >&5
  17238. printf "%s\n" "$ac_ct_XML2_CONFIG" >&6; }
  17239. else
  17240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17241. printf "%s\n" "no" >&6; }
  17242. fi
  17243. if test "x$ac_ct_XML2_CONFIG" = x; then
  17244. XML2_CONFIG=""
  17245. else
  17246. case $cross_compiling:$ac_tool_warned in
  17247. yes:)
  17248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17249. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17250. ac_tool_warned=yes ;;
  17251. esac
  17252. XML2_CONFIG=$ac_ct_XML2_CONFIG
  17253. fi
  17254. else
  17255. XML2_CONFIG="$ac_cv_prog_XML2_CONFIG"
  17256. fi
  17257. if test "x$XML2_CONFIG" != "xno"; then
  17258. # xml2-config in some versions erroneously includes -I/include
  17259. # in the --cflags output.
  17260. NE_LX2_VERSION="`$XML2_CONFIG --version`"
  17261. NE_LX2_CFLAGS="`$XML2_CONFIG --cflags | sed 's| -I/include||g'`"
  17262. NE_LX2_LIBS="`$XML2_CONFIG --libs | sed 's|-L/usr/lib ||g'`"
  17263. fi
  17264. else
  17265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 pkg-config data" >&5
  17266. printf %s "checking for libxml-2.0 pkg-config data... " >&6; }
  17267. if test ${ne_cv_pkg_libxml_2_0+y}
  17268. then :
  17269. printf %s "(cached) " >&6
  17270. else case e in #(
  17271. e) if $PKG_CONFIG libxml-2.0; then
  17272. ne_cv_pkg_libxml_2_0=yes
  17273. else
  17274. ne_cv_pkg_libxml_2_0=no
  17275. fi ;;
  17276. esac
  17277. fi
  17278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_libxml_2_0" >&5
  17279. printf "%s\n" "$ne_cv_pkg_libxml_2_0" >&6; }
  17280. if test "$ne_cv_pkg_libxml_2_0" = "yes"; then
  17281. NE_LX2_CFLAGS=`$PKG_CONFIG --cflags libxml-2.0`
  17282. NE_LX2_LIBS=`$PKG_CONFIG --libs libxml-2.0`
  17283. NE_LX2_VERSION=`$PKG_CONFIG --modversion libxml-2.0`
  17284. : Using provided pkg-config data
  17285. else
  17286. : No pkg-config for libxml-2.0 provided
  17287. if test -n "$ac_tool_prefix"; then
  17288. # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
  17289. set dummy ${ac_tool_prefix}xml2-config; ac_word=$2
  17290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17291. printf %s "checking for $ac_word... " >&6; }
  17292. if test ${ac_cv_prog_XML2_CONFIG+y}
  17293. then :
  17294. printf %s "(cached) " >&6
  17295. else case e in #(
  17296. e) if test -n "$XML2_CONFIG"; then
  17297. ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
  17298. else
  17299. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17300. for as_dir in $PATH
  17301. do
  17302. IFS=$as_save_IFS
  17303. case $as_dir in #(((
  17304. '') as_dir=./ ;;
  17305. */) ;;
  17306. *) as_dir=$as_dir/ ;;
  17307. esac
  17308. for ac_exec_ext in '' $ac_executable_extensions; do
  17309. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  17310. ac_cv_prog_XML2_CONFIG="${ac_tool_prefix}xml2-config"
  17311. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  17312. break 2
  17313. fi
  17314. done
  17315. done
  17316. IFS=$as_save_IFS
  17317. fi ;;
  17318. esac
  17319. fi
  17320. XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
  17321. if test -n "$XML2_CONFIG"; then
  17322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  17323. printf "%s\n" "$XML2_CONFIG" >&6; }
  17324. else
  17325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17326. printf "%s\n" "no" >&6; }
  17327. fi
  17328. fi
  17329. if test -z "$ac_cv_prog_XML2_CONFIG"; then
  17330. ac_ct_XML2_CONFIG=$XML2_CONFIG
  17331. # Extract the first word of "xml2-config", so it can be a program name with args.
  17332. set dummy xml2-config; ac_word=$2
  17333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17334. printf %s "checking for $ac_word... " >&6; }
  17335. if test ${ac_cv_prog_ac_ct_XML2_CONFIG+y}
  17336. then :
  17337. printf %s "(cached) " >&6
  17338. else case e in #(
  17339. e) if test -n "$ac_ct_XML2_CONFIG"; then
  17340. ac_cv_prog_ac_ct_XML2_CONFIG="$ac_ct_XML2_CONFIG" # Let the user override the test.
  17341. else
  17342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17343. for as_dir in $PATH
  17344. do
  17345. IFS=$as_save_IFS
  17346. case $as_dir in #(((
  17347. '') as_dir=./ ;;
  17348. */) ;;
  17349. *) as_dir=$as_dir/ ;;
  17350. esac
  17351. for ac_exec_ext in '' $ac_executable_extensions; do
  17352. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  17353. ac_cv_prog_ac_ct_XML2_CONFIG="xml2-config"
  17354. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  17355. break 2
  17356. fi
  17357. done
  17358. done
  17359. IFS=$as_save_IFS
  17360. fi ;;
  17361. esac
  17362. fi
  17363. ac_ct_XML2_CONFIG=$ac_cv_prog_ac_ct_XML2_CONFIG
  17364. if test -n "$ac_ct_XML2_CONFIG"; then
  17365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_XML2_CONFIG" >&5
  17366. printf "%s\n" "$ac_ct_XML2_CONFIG" >&6; }
  17367. else
  17368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17369. printf "%s\n" "no" >&6; }
  17370. fi
  17371. if test "x$ac_ct_XML2_CONFIG" = x; then
  17372. XML2_CONFIG=""
  17373. else
  17374. case $cross_compiling:$ac_tool_warned in
  17375. yes:)
  17376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17377. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17378. ac_tool_warned=yes ;;
  17379. esac
  17380. XML2_CONFIG=$ac_ct_XML2_CONFIG
  17381. fi
  17382. else
  17383. XML2_CONFIG="$ac_cv_prog_XML2_CONFIG"
  17384. fi
  17385. if test "x$XML2_CONFIG" != "xno"; then
  17386. # xml2-config in some versions erroneously includes -I/include
  17387. # in the --cflags output.
  17388. NE_LX2_VERSION="`$XML2_CONFIG --version`"
  17389. NE_LX2_CFLAGS="`$XML2_CONFIG --cflags | sed 's| -I/include||g'`"
  17390. NE_LX2_LIBS="`$XML2_CONFIG --libs | sed 's|-L/usr/lib ||g'`"
  17391. fi
  17392. fi
  17393. fi
  17394. if test -n "${NE_LX2_VERSION+set}"; then
  17395. neon_xml_parser_message="libxml $NE_LX2_VERSION"
  17396. printf "%s\n" "#define HAVE_LIBXML 1" >>confdefs.h
  17397. CPPFLAGS="$CPPFLAGS $NE_LX2_CFLAGS"
  17398. NEON_LIBS="$NEON_LIBS $NE_LX2_LIBS"
  17399. for ac_header in libxml/xmlversion.h libxml/parser.h
  17400. do :
  17401. as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
  17402. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  17403. if eval test \"x\$"$as_ac_Header"\" = x"yes"
  17404. then :
  17405. cat >>confdefs.h <<_ACEOF
  17406. #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
  17407. _ACEOF
  17408. else case e in #(
  17409. e)
  17410. as_fn_error $? "could not find parser.h, libxml installation problem?" "$LINENO" 5 ;;
  17411. esac
  17412. fi
  17413. done
  17414. neon_xml_parser=libxml2
  17415. else
  17416. :
  17417. fi
  17418. ;;
  17419. esac
  17420. fi
  17421. else case e in #(
  17422. e)
  17423. if test -n "$ac_tool_prefix"; then
  17424. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  17425. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  17426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17427. printf %s "checking for $ac_word... " >&6; }
  17428. if test ${ac_cv_path_PKG_CONFIG+y}
  17429. then :
  17430. printf %s "(cached) " >&6
  17431. else case e in #(
  17432. e) case $PKG_CONFIG in
  17433. [\\/]* | ?:[\\/]*)
  17434. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17435. ;;
  17436. *)
  17437. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17438. for as_dir in $PATH
  17439. do
  17440. IFS=$as_save_IFS
  17441. case $as_dir in #(((
  17442. '') as_dir=./ ;;
  17443. */) ;;
  17444. *) as_dir=$as_dir/ ;;
  17445. esac
  17446. for ac_exec_ext in '' $ac_executable_extensions; do
  17447. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  17448. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  17449. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  17450. break 2
  17451. fi
  17452. done
  17453. done
  17454. IFS=$as_save_IFS
  17455. ;;
  17456. esac ;;
  17457. esac
  17458. fi
  17459. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17460. if test -n "$PKG_CONFIG"; then
  17461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17462. printf "%s\n" "$PKG_CONFIG" >&6; }
  17463. else
  17464. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17465. printf "%s\n" "no" >&6; }
  17466. fi
  17467. fi
  17468. if test -z "$ac_cv_path_PKG_CONFIG"; then
  17469. ac_pt_PKG_CONFIG=$PKG_CONFIG
  17470. # Extract the first word of "pkg-config", so it can be a program name with args.
  17471. set dummy pkg-config; ac_word=$2
  17472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17473. printf %s "checking for $ac_word... " >&6; }
  17474. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  17475. then :
  17476. printf %s "(cached) " >&6
  17477. else case e in #(
  17478. e) case $ac_pt_PKG_CONFIG in
  17479. [\\/]* | ?:[\\/]*)
  17480. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  17481. ;;
  17482. *)
  17483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17484. for as_dir in $PATH
  17485. do
  17486. IFS=$as_save_IFS
  17487. case $as_dir in #(((
  17488. '') as_dir=./ ;;
  17489. */) ;;
  17490. *) as_dir=$as_dir/ ;;
  17491. esac
  17492. for ac_exec_ext in '' $ac_executable_extensions; do
  17493. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  17494. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  17495. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  17496. break 2
  17497. fi
  17498. done
  17499. done
  17500. IFS=$as_save_IFS
  17501. ;;
  17502. esac ;;
  17503. esac
  17504. fi
  17505. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  17506. if test -n "$ac_pt_PKG_CONFIG"; then
  17507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  17508. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  17509. else
  17510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17511. printf "%s\n" "no" >&6; }
  17512. fi
  17513. if test "x$ac_pt_PKG_CONFIG" = x; then
  17514. PKG_CONFIG="no"
  17515. else
  17516. case $cross_compiling:$ac_tool_warned in
  17517. yes:)
  17518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17519. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17520. ac_tool_warned=yes ;;
  17521. esac
  17522. PKG_CONFIG=$ac_pt_PKG_CONFIG
  17523. fi
  17524. else
  17525. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  17526. fi
  17527. if test "x$PKG_CONFIG" = "xno"; then
  17528. : Not using pkg-config
  17529. if test -n "$ac_tool_prefix"; then
  17530. # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
  17531. set dummy ${ac_tool_prefix}xml2-config; ac_word=$2
  17532. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17533. printf %s "checking for $ac_word... " >&6; }
  17534. if test ${ac_cv_prog_XML2_CONFIG+y}
  17535. then :
  17536. printf %s "(cached) " >&6
  17537. else case e in #(
  17538. e) if test -n "$XML2_CONFIG"; then
  17539. ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
  17540. else
  17541. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17542. for as_dir in $PATH
  17543. do
  17544. IFS=$as_save_IFS
  17545. case $as_dir in #(((
  17546. '') as_dir=./ ;;
  17547. */) ;;
  17548. *) as_dir=$as_dir/ ;;
  17549. esac
  17550. for ac_exec_ext in '' $ac_executable_extensions; do
  17551. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  17552. ac_cv_prog_XML2_CONFIG="${ac_tool_prefix}xml2-config"
  17553. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  17554. break 2
  17555. fi
  17556. done
  17557. done
  17558. IFS=$as_save_IFS
  17559. fi ;;
  17560. esac
  17561. fi
  17562. XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
  17563. if test -n "$XML2_CONFIG"; then
  17564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  17565. printf "%s\n" "$XML2_CONFIG" >&6; }
  17566. else
  17567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17568. printf "%s\n" "no" >&6; }
  17569. fi
  17570. fi
  17571. if test -z "$ac_cv_prog_XML2_CONFIG"; then
  17572. ac_ct_XML2_CONFIG=$XML2_CONFIG
  17573. # Extract the first word of "xml2-config", so it can be a program name with args.
  17574. set dummy xml2-config; ac_word=$2
  17575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17576. printf %s "checking for $ac_word... " >&6; }
  17577. if test ${ac_cv_prog_ac_ct_XML2_CONFIG+y}
  17578. then :
  17579. printf %s "(cached) " >&6
  17580. else case e in #(
  17581. e) if test -n "$ac_ct_XML2_CONFIG"; then
  17582. ac_cv_prog_ac_ct_XML2_CONFIG="$ac_ct_XML2_CONFIG" # Let the user override the test.
  17583. else
  17584. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17585. for as_dir in $PATH
  17586. do
  17587. IFS=$as_save_IFS
  17588. case $as_dir in #(((
  17589. '') as_dir=./ ;;
  17590. */) ;;
  17591. *) as_dir=$as_dir/ ;;
  17592. esac
  17593. for ac_exec_ext in '' $ac_executable_extensions; do
  17594. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  17595. ac_cv_prog_ac_ct_XML2_CONFIG="xml2-config"
  17596. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  17597. break 2
  17598. fi
  17599. done
  17600. done
  17601. IFS=$as_save_IFS
  17602. fi ;;
  17603. esac
  17604. fi
  17605. ac_ct_XML2_CONFIG=$ac_cv_prog_ac_ct_XML2_CONFIG
  17606. if test -n "$ac_ct_XML2_CONFIG"; then
  17607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_XML2_CONFIG" >&5
  17608. printf "%s\n" "$ac_ct_XML2_CONFIG" >&6; }
  17609. else
  17610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17611. printf "%s\n" "no" >&6; }
  17612. fi
  17613. if test "x$ac_ct_XML2_CONFIG" = x; then
  17614. XML2_CONFIG=""
  17615. else
  17616. case $cross_compiling:$ac_tool_warned in
  17617. yes:)
  17618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17619. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17620. ac_tool_warned=yes ;;
  17621. esac
  17622. XML2_CONFIG=$ac_ct_XML2_CONFIG
  17623. fi
  17624. else
  17625. XML2_CONFIG="$ac_cv_prog_XML2_CONFIG"
  17626. fi
  17627. if test "x$XML2_CONFIG" != "xno"; then
  17628. # xml2-config in some versions erroneously includes -I/include
  17629. # in the --cflags output.
  17630. NE_LX2_VERSION="`$XML2_CONFIG --version`"
  17631. NE_LX2_CFLAGS="`$XML2_CONFIG --cflags | sed 's| -I/include||g'`"
  17632. NE_LX2_LIBS="`$XML2_CONFIG --libs | sed 's|-L/usr/lib ||g'`"
  17633. fi
  17634. else
  17635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 pkg-config data" >&5
  17636. printf %s "checking for libxml-2.0 pkg-config data... " >&6; }
  17637. if test ${ne_cv_pkg_libxml_2_0+y}
  17638. then :
  17639. printf %s "(cached) " >&6
  17640. else case e in #(
  17641. e) if $PKG_CONFIG libxml-2.0; then
  17642. ne_cv_pkg_libxml_2_0=yes
  17643. else
  17644. ne_cv_pkg_libxml_2_0=no
  17645. fi ;;
  17646. esac
  17647. fi
  17648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_libxml_2_0" >&5
  17649. printf "%s\n" "$ne_cv_pkg_libxml_2_0" >&6; }
  17650. if test "$ne_cv_pkg_libxml_2_0" = "yes"; then
  17651. NE_LX2_CFLAGS=`$PKG_CONFIG --cflags libxml-2.0`
  17652. NE_LX2_LIBS=`$PKG_CONFIG --libs libxml-2.0`
  17653. NE_LX2_VERSION=`$PKG_CONFIG --modversion libxml-2.0`
  17654. : Using provided pkg-config data
  17655. else
  17656. : No pkg-config for libxml-2.0 provided
  17657. if test -n "$ac_tool_prefix"; then
  17658. # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
  17659. set dummy ${ac_tool_prefix}xml2-config; ac_word=$2
  17660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17661. printf %s "checking for $ac_word... " >&6; }
  17662. if test ${ac_cv_prog_XML2_CONFIG+y}
  17663. then :
  17664. printf %s "(cached) " >&6
  17665. else case e in #(
  17666. e) if test -n "$XML2_CONFIG"; then
  17667. ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
  17668. else
  17669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17670. for as_dir in $PATH
  17671. do
  17672. IFS=$as_save_IFS
  17673. case $as_dir in #(((
  17674. '') as_dir=./ ;;
  17675. */) ;;
  17676. *) as_dir=$as_dir/ ;;
  17677. esac
  17678. for ac_exec_ext in '' $ac_executable_extensions; do
  17679. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  17680. ac_cv_prog_XML2_CONFIG="${ac_tool_prefix}xml2-config"
  17681. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  17682. break 2
  17683. fi
  17684. done
  17685. done
  17686. IFS=$as_save_IFS
  17687. fi ;;
  17688. esac
  17689. fi
  17690. XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
  17691. if test -n "$XML2_CONFIG"; then
  17692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  17693. printf "%s\n" "$XML2_CONFIG" >&6; }
  17694. else
  17695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17696. printf "%s\n" "no" >&6; }
  17697. fi
  17698. fi
  17699. if test -z "$ac_cv_prog_XML2_CONFIG"; then
  17700. ac_ct_XML2_CONFIG=$XML2_CONFIG
  17701. # Extract the first word of "xml2-config", so it can be a program name with args.
  17702. set dummy xml2-config; ac_word=$2
  17703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17704. printf %s "checking for $ac_word... " >&6; }
  17705. if test ${ac_cv_prog_ac_ct_XML2_CONFIG+y}
  17706. then :
  17707. printf %s "(cached) " >&6
  17708. else case e in #(
  17709. e) if test -n "$ac_ct_XML2_CONFIG"; then
  17710. ac_cv_prog_ac_ct_XML2_CONFIG="$ac_ct_XML2_CONFIG" # Let the user override the test.
  17711. else
  17712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17713. for as_dir in $PATH
  17714. do
  17715. IFS=$as_save_IFS
  17716. case $as_dir in #(((
  17717. '') as_dir=./ ;;
  17718. */) ;;
  17719. *) as_dir=$as_dir/ ;;
  17720. esac
  17721. for ac_exec_ext in '' $ac_executable_extensions; do
  17722. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  17723. ac_cv_prog_ac_ct_XML2_CONFIG="xml2-config"
  17724. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  17725. break 2
  17726. fi
  17727. done
  17728. done
  17729. IFS=$as_save_IFS
  17730. fi ;;
  17731. esac
  17732. fi
  17733. ac_ct_XML2_CONFIG=$ac_cv_prog_ac_ct_XML2_CONFIG
  17734. if test -n "$ac_ct_XML2_CONFIG"; then
  17735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_XML2_CONFIG" >&5
  17736. printf "%s\n" "$ac_ct_XML2_CONFIG" >&6; }
  17737. else
  17738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17739. printf "%s\n" "no" >&6; }
  17740. fi
  17741. if test "x$ac_ct_XML2_CONFIG" = x; then
  17742. XML2_CONFIG=""
  17743. else
  17744. case $cross_compiling:$ac_tool_warned in
  17745. yes:)
  17746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17747. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17748. ac_tool_warned=yes ;;
  17749. esac
  17750. XML2_CONFIG=$ac_ct_XML2_CONFIG
  17751. fi
  17752. else
  17753. XML2_CONFIG="$ac_cv_prog_XML2_CONFIG"
  17754. fi
  17755. if test "x$XML2_CONFIG" != "xno"; then
  17756. # xml2-config in some versions erroneously includes -I/include
  17757. # in the --cflags output.
  17758. NE_LX2_VERSION="`$XML2_CONFIG --version`"
  17759. NE_LX2_CFLAGS="`$XML2_CONFIG --cflags | sed 's| -I/include||g'`"
  17760. NE_LX2_LIBS="`$XML2_CONFIG --libs | sed 's|-L/usr/lib ||g'`"
  17761. fi
  17762. fi
  17763. fi
  17764. if test -n "${NE_LX2_VERSION+set}"; then
  17765. neon_xml_parser_message="libxml $NE_LX2_VERSION"
  17766. printf "%s\n" "#define HAVE_LIBXML 1" >>confdefs.h
  17767. CPPFLAGS="$CPPFLAGS $NE_LX2_CFLAGS"
  17768. NEON_LIBS="$NEON_LIBS $NE_LX2_LIBS"
  17769. for ac_header in libxml/xmlversion.h libxml/parser.h
  17770. do :
  17771. as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
  17772. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  17773. if eval test \"x\$"$as_ac_Header"\" = x"yes"
  17774. then :
  17775. cat >>confdefs.h <<_ACEOF
  17776. #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
  17777. _ACEOF
  17778. else case e in #(
  17779. e)
  17780. as_fn_error $? "could not find parser.h, libxml installation problem?" "$LINENO" 5 ;;
  17781. esac
  17782. fi
  17783. done
  17784. neon_xml_parser=libxml2
  17785. else
  17786. :
  17787. fi
  17788. ;;
  17789. esac
  17790. fi
  17791. fi
  17792. # If an XML parser still has not been found, fail or use the bundled expat
  17793. if test "$neon_xml_parser" = "none"; then
  17794. as_fn_error $? "no XML parser was found: expat or libxml 2.x required" "$LINENO" 5
  17795. fi
  17796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: XML parser used: $neon_xml_parser_message" >&5
  17797. printf "%s\n" "$as_me: XML parser used: $neon_xml_parser_message" >&6;}
  17798. fi
  17799. # Internationalization support.
  17800. # Check whether --enable-nls was given.
  17801. if test ${enable_nls+y}
  17802. then :
  17803. enableval=$enable_nls;
  17804. else case e in #(
  17805. e) enable_nls=${ac_cv_header_libintl_h} ;;
  17806. esac
  17807. fi
  17808. if test x${enable_nls} = xyes; then
  17809. # presume that dgettext() is available if bindtextdomain() is...
  17810. # checking for dgettext() itself is awkward because gcc has a
  17811. # builtin of that function, which confuses AC_CHECK_FUNCS et al.
  17812. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5
  17813. printf %s "checking for library containing bindtextdomain... " >&6; }
  17814. if test ${ne_cv_libsfor_bindtextdomain+y}
  17815. then :
  17816. printf %s "(cached) " >&6
  17817. else case e in #(
  17818. e)
  17819. case $ne_cv_os_uname in
  17820. MINGW*|MSYS_NT*)
  17821. ;;
  17822. *)
  17823. case bindtextdomain in
  17824. getaddrinfo)
  17825. ne__prologue="#include <netdb.h>"
  17826. ne__code="getaddrinfo(0,0,0,0);"
  17827. ;;
  17828. socket)
  17829. ne__prologue="#include <sys/socket.h>"
  17830. ne__code="socket(0,0,0);"
  17831. ;;
  17832. bindtextdomain)
  17833. ne__prologue="#include <libintl.h>"
  17834. ne__code="bindtextdomain(\"\",\"\");"
  17835. ;;
  17836. *)
  17837. ne__prologue=""
  17838. ne__code="bindtextdomain();"
  17839. ;;
  17840. esac
  17841. ;;
  17842. esac
  17843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17844. /* end confdefs.h. */
  17845. $ne__prologue
  17846. int
  17847. main (void)
  17848. {
  17849. $ne__code
  17850. ;
  17851. return 0;
  17852. }
  17853. _ACEOF
  17854. if ac_fn_c_try_link "$LINENO"
  17855. then :
  17856. ne_cv_libsfor_bindtextdomain="none needed"
  17857. else case e in #(
  17858. e)
  17859. ne_sl_save_LIBS=$LIBS
  17860. ne_cv_libsfor_bindtextdomain="not found"
  17861. for lib in intl; do
  17862. case $ne_cv_os_uname in
  17863. MINGW*|MSYS_NT*)
  17864. case $lib in
  17865. ws2_32)
  17866. ne__prologue="#include <winsock2.h>"
  17867. case bindtextdomain in
  17868. gethostbyname)
  17869. ne__code="gethostbyname(\"\")"
  17870. ;;
  17871. socket)
  17872. ne__code="socket(0,0,0);"
  17873. ;;
  17874. *)
  17875. ne__code="bindtextdomain();"
  17876. ;;
  17877. esac
  17878. ;;
  17879. *)
  17880. ne__prologue=""
  17881. ne__code=""
  17882. ;;
  17883. esac
  17884. ;;
  17885. *)
  17886. ;;
  17887. esac
  17888. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  17889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17890. /* end confdefs.h. */
  17891. $ne__prologue
  17892. int
  17893. main (void)
  17894. {
  17895. $ne__code
  17896. ;
  17897. return 0;
  17898. }
  17899. _ACEOF
  17900. if ac_fn_c_try_link "$LINENO"
  17901. then :
  17902. ne_cv_libsfor_bindtextdomain="-l$lib"; break
  17903. fi
  17904. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17905. conftest$ac_exeext conftest.$ac_ext
  17906. LIBS="$ne_sl_save_LIBS -l$lib -liconv $NEON_LIBS"
  17907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17908. /* end confdefs.h. */
  17909. $ne__prologue
  17910. int
  17911. main (void)
  17912. {
  17913. $ne__code
  17914. ;
  17915. return 0;
  17916. }
  17917. _ACEOF
  17918. if ac_fn_c_try_link "$LINENO"
  17919. then :
  17920. ne_cv_libsfor_bindtextdomain="-l$lib -liconv "; break
  17921. fi
  17922. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17923. conftest$ac_exeext conftest.$ac_ext
  17924. done
  17925. LIBS=$ne_sl_save_LIBS
  17926. ;;
  17927. esac
  17928. fi
  17929. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17930. conftest$ac_exeext conftest.$ac_ext
  17931. ;;
  17932. esac
  17933. fi
  17934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_bindtextdomain" >&5
  17935. printf "%s\n" "$ne_cv_libsfor_bindtextdomain" >&6; }
  17936. ac_fn_c_check_header_compile "$LINENO" "wspiapi.h" "ac_cv_header_wspiapi_h" "$ac_includes_default"
  17937. if test "x$ac_cv_header_wspiapi_h" = xyes
  17938. then :
  17939. printf "%s\n" "#define HAVE_WSPIAPI_H 1" >>confdefs.h
  17940. fi
  17941. if test "$ne_cv_libsfor_bindtextdomain" = "not found"; then
  17942. enable_nls=no
  17943. elif test "$ne_cv_libsfor_bindtextdomain" = "none needed"; then
  17944. :
  17945. else
  17946. NEON_LIBS="$ne_cv_libsfor_bindtextdomain $NEON_LIBS"
  17947. fi
  17948. ne_cf_save_LIBS=$LIBS
  17949. LIBS="$LIBS $NEON_LIBS"
  17950. ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
  17951. if test "x$ac_cv_func_bind_textdomain_codeset" = xyes
  17952. then :
  17953. printf "%s\n" "#define HAVE_BIND_TEXTDOMAIN_CODESET 1" >>confdefs.h
  17954. fi
  17955. LIBS=$ne_cf_save_LIBS
  17956. fi
  17957. if test "$enable_nls" = "no"; then
  17958. NE_FLAG_I18N=no
  17959. ne_I18N_message="Internationalization support not enabled"
  17960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Internationalization support not enabled" >&5
  17961. printf "%s\n" "$as_me: Internationalization support not enabled" >&6;}
  17962. else
  17963. NE_FLAG_I18N=yes
  17964. printf "%s\n" "#define NE_HAVE_I18N 1" >>confdefs.h
  17965. ne_I18N_message="Internationalization support enabled"
  17966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Internationalization support enabled" >&5
  17967. printf "%s\n" "$as_me: Internationalization support enabled" >&6;}
  17968. eval localedir="${datadir}/locale"
  17969. printf "%s\n" "#define LOCALEDIR \"$localedir\"" >>confdefs.h
  17970. fi
  17971. # Extra checks for debugging, compiler warnings
  17972. # Check whether --enable-debug was given.
  17973. if test ${enable_debug+y}
  17974. then :
  17975. enableval=$enable_debug;
  17976. fi
  17977. # default is to enable debugging
  17978. case $enable_debug in
  17979. no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: debugging is disabled" >&5
  17980. printf "%s\n" "$as_me: debugging is disabled" >&6;}
  17981. ;;
  17982. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: debugging is enabled" >&5
  17983. printf "%s\n" "$as_me: debugging is enabled" >&6;}
  17984. printf "%s\n" "#define NE_DEBUGGING 1" >>confdefs.h
  17985. ;;
  17986. esac
  17987. # Leave till last to prevent CFLAGS affecting checks.
  17988. # Check whether --enable-warnings was given.
  17989. if test ${enable_warnings+y}
  17990. then :
  17991. enableval=$enable_warnings;
  17992. fi
  17993. if test "$enable_warnings" = "yes"; then
  17994. case $GCC:`uname` in
  17995. yes:*)
  17996. CFLAGS="$CFLAGS -Wall -Wmissing-declarations -Wshadow -Wreturn-type -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wformat-security"
  17997. if test -z "$with_ssl" -o "$with_ssl" = "no"; then
  17998. # OpenSSL headers fail strict prototypes checks
  17999. CFLAGS="$CFLAGS -Wstrict-prototypes"
  18000. fi
  18001. ;;
  18002. no:OSF1) CFLAGS="$CFLAGS -check -msg_disable returnchecks -msg_disable alignment -msg_disable overflow" ;;
  18003. no:IRIX) CFLAGS="$CFLAGS -fullwarn" ;;
  18004. no:UnixWare) CFLAGS="$CFLAGS -v" ;;
  18005. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: warning flags unknown for compiler on this platform" >&5
  18006. printf "%s\n" "$as_me: WARNING: warning flags unknown for compiler on this platform" >&2;} ;;
  18007. esac
  18008. fi
  18009. CPPFLAGS="$CPPFLAGS -I\${top_builddir}"
  18010. # Check whether --enable-memleak was given.
  18011. if test ${enable_memleak+y}
  18012. then :
  18013. enableval=$enable_memleak;
  18014. fi
  18015. if test "$enable_memleak" = "yes"; then
  18016. CPPFLAGS="$CPPFLAGS -DNEON_MEMLEAK -I\$(top_srcdir)/src"
  18017. # disable 'make install'
  18018. ALLOW_INSTALL=memleak
  18019. fi
  18020. # Check whether --enable-auto-libproxy was given.
  18021. if test ${enable_auto_libproxy+y}
  18022. then :
  18023. enableval=$enable_auto_libproxy;
  18024. fi
  18025. if test "$enable_auto_libproxy" = "yes"; then
  18026. printf "%s\n" "#define NE_ENABLE_AUTO_LIBPROXY 1" >>confdefs.h
  18027. fi
  18028. # Enable tests for optional features
  18029. TESTS="\$(BASIC_TESTS)"
  18030. HELPERS=""
  18031. if test $NE_FLAG_SSL = yes; then
  18032. # Only enable SSL tests if an openssl binary is found (needed to make
  18033. # certs etc).
  18034. # Extract the first word of "openssl", so it can be a program name with args.
  18035. set dummy openssl; ac_word=$2
  18036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18037. printf %s "checking for $ac_word... " >&6; }
  18038. if test ${ac_cv_path_OPENSSL+y}
  18039. then :
  18040. printf %s "(cached) " >&6
  18041. else case e in #(
  18042. e) case $OPENSSL in
  18043. [\\/]* | ?:[\\/]*)
  18044. ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
  18045. ;;
  18046. *)
  18047. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18048. for as_dir in $PATH
  18049. do
  18050. IFS=$as_save_IFS
  18051. case $as_dir in #(((
  18052. '') as_dir=./ ;;
  18053. */) ;;
  18054. *) as_dir=$as_dir/ ;;
  18055. esac
  18056. for ac_exec_ext in '' $ac_executable_extensions; do
  18057. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18058. ac_cv_path_OPENSSL="$as_dir$ac_word$ac_exec_ext"
  18059. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18060. break 2
  18061. fi
  18062. done
  18063. done
  18064. IFS=$as_save_IFS
  18065. test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="notfound"
  18066. ;;
  18067. esac ;;
  18068. esac
  18069. fi
  18070. OPENSSL=$ac_cv_path_OPENSSL
  18071. if test -n "$OPENSSL"; then
  18072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
  18073. printf "%s\n" "$OPENSSL" >&6; }
  18074. else
  18075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18076. printf "%s\n" "no" >&6; }
  18077. fi
  18078. if test "$OPENSSL" != "notfound"; then
  18079. TESTS="$TESTS \$(SSL_TESTS)"
  18080. HELPERS="$HELPERS \$(SSL_HELPERS)"
  18081. else
  18082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no openssl binary in \$PATH: SSL tests disabled" >&5
  18083. printf "%s\n" "$as_me: WARNING: no openssl binary in \$PATH: SSL tests disabled" >&2;}
  18084. fi
  18085. # Extract the first word of "certutil", so it can be a program name with args.
  18086. set dummy certutil; ac_word=$2
  18087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18088. printf %s "checking for $ac_word... " >&6; }
  18089. if test ${ac_cv_path_CERTUTIL+y}
  18090. then :
  18091. printf %s "(cached) " >&6
  18092. else case e in #(
  18093. e) case $CERTUTIL in
  18094. [\\/]* | ?:[\\/]*)
  18095. ac_cv_path_CERTUTIL="$CERTUTIL" # Let the user override the test with a path.
  18096. ;;
  18097. *)
  18098. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18099. for as_dir in $PATH
  18100. do
  18101. IFS=$as_save_IFS
  18102. case $as_dir in #(((
  18103. '') as_dir=./ ;;
  18104. */) ;;
  18105. *) as_dir=$as_dir/ ;;
  18106. esac
  18107. for ac_exec_ext in '' $ac_executable_extensions; do
  18108. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18109. ac_cv_path_CERTUTIL="$as_dir$ac_word$ac_exec_ext"
  18110. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18111. break 2
  18112. fi
  18113. done
  18114. done
  18115. IFS=$as_save_IFS
  18116. test -z "$ac_cv_path_CERTUTIL" && ac_cv_path_CERTUTIL="notfound"
  18117. ;;
  18118. esac ;;
  18119. esac
  18120. fi
  18121. CERTUTIL=$ac_cv_path_CERTUTIL
  18122. if test -n "$CERTUTIL"; then
  18123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CERTUTIL" >&5
  18124. printf "%s\n" "$CERTUTIL" >&6; }
  18125. else
  18126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18127. printf "%s\n" "no" >&6; }
  18128. fi
  18129. # Extract the first word of "pk12util", so it can be a program name with args.
  18130. set dummy pk12util; ac_word=$2
  18131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18132. printf %s "checking for $ac_word... " >&6; }
  18133. if test ${ac_cv_path_PK12UTIL+y}
  18134. then :
  18135. printf %s "(cached) " >&6
  18136. else case e in #(
  18137. e) case $PK12UTIL in
  18138. [\\/]* | ?:[\\/]*)
  18139. ac_cv_path_PK12UTIL="$PK12UTIL" # Let the user override the test with a path.
  18140. ;;
  18141. *)
  18142. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18143. for as_dir in $PATH
  18144. do
  18145. IFS=$as_save_IFS
  18146. case $as_dir in #(((
  18147. '') as_dir=./ ;;
  18148. */) ;;
  18149. *) as_dir=$as_dir/ ;;
  18150. esac
  18151. for ac_exec_ext in '' $ac_executable_extensions; do
  18152. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18153. ac_cv_path_PK12UTIL="$as_dir$ac_word$ac_exec_ext"
  18154. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18155. break 2
  18156. fi
  18157. done
  18158. done
  18159. IFS=$as_save_IFS
  18160. test -z "$ac_cv_path_PK12UTIL" && ac_cv_path_PK12UTIL="notfound"
  18161. ;;
  18162. esac ;;
  18163. esac
  18164. fi
  18165. PK12UTIL=$ac_cv_path_PK12UTIL
  18166. if test -n "$PK12UTIL"; then
  18167. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PK12UTIL" >&5
  18168. printf "%s\n" "$PK12UTIL" >&6; }
  18169. else
  18170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18171. printf "%s\n" "no" >&6; }
  18172. fi
  18173. fi
  18174. if test $NE_FLAG_ZLIB = yes; then
  18175. TESTS="$TESTS \$(ZLIB_TESTS)"
  18176. HELPERS="$HELPERS \$(ZLIB_HELPERS)"
  18177. fi
  18178. if test x$enable_webdav != xno; then
  18179. TESTS="$TESTS \$(DAV_TESTS)"
  18180. fi
  18181. # Check whether --enable-tests-install was given.
  18182. if test ${enable_tests_install+y}
  18183. then :
  18184. enableval=$enable_tests_install;
  18185. else case e in #(
  18186. e) enable_tests_install=no ;;
  18187. esac
  18188. fi
  18189. # If test suite installation is not required, it's more
  18190. # efficient to link the test programs using -no-install:
  18191. if test "$enable_tests_install" = "no"; then
  18192. TEST_LDFLAGS="-no-install"
  18193. fi
  18194. # Extract the first word of "pkg-config", so it can be a program name with args.
  18195. set dummy pkg-config; ac_word=$2
  18196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18197. printf %s "checking for $ac_word... " >&6; }
  18198. if test ${ac_cv_path_PKG_CONFIG+y}
  18199. then :
  18200. printf %s "(cached) " >&6
  18201. else case e in #(
  18202. e) case $PKG_CONFIG in
  18203. [\\/]* | ?:[\\/]*)
  18204. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18205. ;;
  18206. *)
  18207. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18208. for as_dir in $PATH
  18209. do
  18210. IFS=$as_save_IFS
  18211. case $as_dir in #(((
  18212. '') as_dir=./ ;;
  18213. */) ;;
  18214. *) as_dir=$as_dir/ ;;
  18215. esac
  18216. for ac_exec_ext in '' $ac_executable_extensions; do
  18217. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18218. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  18219. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18220. break 2
  18221. fi
  18222. done
  18223. done
  18224. IFS=$as_save_IFS
  18225. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18226. ;;
  18227. esac ;;
  18228. esac
  18229. fi
  18230. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18231. if test -n "$PKG_CONFIG"; then
  18232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18233. printf "%s\n" "$PKG_CONFIG" >&6; }
  18234. else
  18235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18236. printf "%s\n" "no" >&6; }
  18237. fi
  18238. if test "$PKG_CONFIG" != "no"; then
  18239. # pkg-config >= 0.18 will use "Libs.private" iff necessary,
  18240. # older versions which don't recognize that field may always
  18241. # need all libraries in Libs.
  18242. if $PKG_CONFIG --atleast-pkgconfig-version=0.18; then :; else
  18243. NEON_PC_LIBS=${NEON_LIBS}
  18244. fi
  18245. fi
  18246. # Pass the interface version on to libtool when linking libneon.la
  18247. NEON_LINK_FLAGS="-version-info ${NE_LIBTOOL_VERSINFO}"
  18248. # If any non-default ABI variations are used, add them to the SONAME:
  18249. ### disabled for backwards-compat with 0.27.x
  18250. #if test "x${NE_LIBTOOL_RELEASE}y" != "xy"; then
  18251. # NEON_LINK_FLAGS="${NEON_LINK_FLAGS} -release ${NE_LIBTOOL_RELEASE}"
  18252. #fi
  18253. # Check whether --enable-ld-version-script was given.
  18254. if test ${enable_ld_version_script+y}
  18255. then :
  18256. enableval=$enable_ld_version_script; have_ld_version_script=$enableval
  18257. fi
  18258. if test -z "$have_ld_version_script"; then
  18259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
  18260. printf %s "checking if LD -Wl,--version-script works... " >&6; }
  18261. save_LDFLAGS="$LDFLAGS"
  18262. LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
  18263. cat > conftest.map <<EOF
  18264. foo
  18265. EOF
  18266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18267. /* end confdefs.h. */
  18268. int
  18269. main (void)
  18270. {
  18271. ;
  18272. return 0;
  18273. }
  18274. _ACEOF
  18275. if ac_fn_c_try_link "$LINENO"
  18276. then :
  18277. accepts_syntax_errors=yes
  18278. else case e in #(
  18279. e) accepts_syntax_errors=no ;;
  18280. esac
  18281. fi
  18282. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18283. conftest$ac_exeext conftest.$ac_ext
  18284. if test "$accepts_syntax_errors" = no; then
  18285. cat > conftest.map <<EOF
  18286. VERS_1 {
  18287. global: sym;
  18288. };
  18289. VERS_2 {
  18290. global: sym;
  18291. } VERS_1;
  18292. EOF
  18293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18294. /* end confdefs.h. */
  18295. int
  18296. main (void)
  18297. {
  18298. ;
  18299. return 0;
  18300. }
  18301. _ACEOF
  18302. if ac_fn_c_try_link "$LINENO"
  18303. then :
  18304. have_ld_version_script=yes
  18305. else case e in #(
  18306. e) have_ld_version_script=no ;;
  18307. esac
  18308. fi
  18309. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18310. conftest$ac_exeext conftest.$ac_ext
  18311. else
  18312. have_ld_version_script=no
  18313. fi
  18314. rm -f conftest.map
  18315. LDFLAGS="$save_LDFLAGS"
  18316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
  18317. printf "%s\n" "$have_ld_version_script" >&6; }
  18318. fi
  18319. if test "$have_ld_version_script" = "yes"; then
  18320. HAVE_LD_VERSION_SCRIPT_TRUE=
  18321. HAVE_LD_VERSION_SCRIPT_FALSE='#'
  18322. else
  18323. HAVE_LD_VERSION_SCRIPT_TRUE='#'
  18324. HAVE_LD_VERSION_SCRIPT_FALSE=
  18325. fi
  18326. # If ld version scripts are supported, enable symbol versioning.
  18327. # Otherwise, fall back to any libtool-supported symbol export
  18328. # restrictions; ne__* symbols are not exported.
  18329. if test "x$have_ld_version_script" = "xyes"; then
  18330. NEON_LINK_FLAGS="$NEON_LINK_FLAGS -Wl,--version-script=\$(top_srcdir)/src/neon.vers"
  18331. else
  18332. NEON_LINK_FLAGS="$NEON_LINK_FLAGS -export-symbols-regex '^ne_[^_]'"
  18333. fi
  18334. if test x${enable_shared}${pic_mode}z = xnodefaultz; then
  18335. CFLAGS="$CFLAGS -prefer-pic"
  18336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using PIC for static library build" >&5
  18337. printf "%s\n" "$as_me: Using PIC for static library build" >&6;}
  18338. fi
  18339. if test x${enable_shared} = xno; then
  18340. # Defining NE_PRIVATE as the empty string would work; using a
  18341. # non-empty but redundant string 'extern' avoids any possible cpp
  18342. # confusion with from an empty macro.
  18343. CPPFLAGS="$CPPFLAGS -DNE_PRIVATE=extern"
  18344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Private symbol suppression disabled for static library build" >&5
  18345. printf "%s\n" "$as_me: Private symbol suppression disabled for static library build" >&6;}
  18346. fi
  18347. # Bundled language catalogs
  18348. ALL_LINGUAS="cs de fr ja ka nn pl ru tr zh_CN"
  18349. ac_config_files="$ac_config_files neon-config"
  18350. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile neon.pc"
  18351. ac_config_files="$ac_config_files test/makekeys:test/makekeys.sh"
  18352. cat >confcache <<\_ACEOF
  18353. # This file is a shell script that caches the results of configure
  18354. # tests run on this system so they can be shared between configure
  18355. # scripts and configure runs, see configure's option --config-cache.
  18356. # It is not useful on other systems. If it contains results you don't
  18357. # want to keep, you may remove or edit it.
  18358. #
  18359. # config.status only pays attention to the cache file if you give it
  18360. # the --recheck option to rerun configure.
  18361. #
  18362. # 'ac_cv_env_foo' variables (set or unset) will be overridden when
  18363. # loading this file, other *unset* 'ac_cv_foo' will be assigned the
  18364. # following values.
  18365. _ACEOF
  18366. # The following way of writing the cache mishandles newlines in values,
  18367. # but we know of no workaround that is simple, portable, and efficient.
  18368. # So, we kill variables containing newlines.
  18369. # Ultrix sh set writes to stderr and can't be redirected directly,
  18370. # and sets the high bit in the cache file unless we assign to the vars.
  18371. (
  18372. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  18373. eval ac_val=\$$ac_var
  18374. case $ac_val in #(
  18375. *${as_nl}*)
  18376. case $ac_var in #(
  18377. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  18378. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  18379. esac
  18380. case $ac_var in #(
  18381. _ | IFS | as_nl) ;; #(
  18382. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  18383. *) { eval $ac_var=; unset $ac_var;} ;;
  18384. esac ;;
  18385. esac
  18386. done
  18387. (set) 2>&1 |
  18388. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  18389. *${as_nl}ac_space=\ *)
  18390. # 'set' does not quote correctly, so add quotes: double-quote
  18391. # substitution turns \\\\ into \\, and sed turns \\ into \.
  18392. sed -n \
  18393. "s/'/'\\\\''/g;
  18394. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  18395. ;; #(
  18396. *)
  18397. # 'set' quotes correctly as required by POSIX, so do not add quotes.
  18398. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  18399. ;;
  18400. esac |
  18401. sort
  18402. ) |
  18403. sed '
  18404. /^ac_cv_env_/b end
  18405. t clear
  18406. :clear
  18407. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  18408. t end
  18409. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  18410. :end' >>confcache
  18411. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  18412. if test -w "$cache_file"; then
  18413. if test "x$cache_file" != "x/dev/null"; then
  18414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  18415. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  18416. if test ! -f "$cache_file" || test -h "$cache_file"; then
  18417. cat confcache >"$cache_file"
  18418. else
  18419. case $cache_file in #(
  18420. */* | ?:*)
  18421. mv -f confcache "$cache_file"$$ &&
  18422. mv -f "$cache_file"$$ "$cache_file" ;; #(
  18423. *)
  18424. mv -f confcache "$cache_file" ;;
  18425. esac
  18426. fi
  18427. fi
  18428. else
  18429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  18430. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  18431. fi
  18432. fi
  18433. rm -f confcache
  18434. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  18435. # Let make expand exec_prefix.
  18436. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  18437. DEFS=-DHAVE_CONFIG_H
  18438. ac_libobjs=
  18439. ac_ltlibobjs=
  18440. U=
  18441. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  18442. # 1. Remove the extension, and $U if already installed.
  18443. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  18444. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  18445. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  18446. # will be set to the directory where LIBOBJS objects are built.
  18447. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  18448. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  18449. done
  18450. LIBOBJS=$ac_libobjs
  18451. LTLIBOBJS=$ac_ltlibobjs
  18452. if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
  18453. as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
  18454. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18455. fi
  18456. : "${CONFIG_STATUS=./config.status}"
  18457. ac_write_fail=0
  18458. ac_clean_files_save=$ac_clean_files
  18459. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  18460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  18461. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  18462. as_write_fail=0
  18463. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  18464. #! $SHELL
  18465. # Generated by $as_me.
  18466. # Run this file to recreate the current configuration.
  18467. # Compiler output produced by configure, useful for debugging
  18468. # configure, is in config.log if it exists.
  18469. debug=false
  18470. ac_cs_recheck=false
  18471. ac_cs_silent=false
  18472. SHELL=\${CONFIG_SHELL-$SHELL}
  18473. export SHELL
  18474. _ASEOF
  18475. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  18476. ## -------------------- ##
  18477. ## M4sh Initialization. ##
  18478. ## -------------------- ##
  18479. # Be more Bourne compatible
  18480. DUALCASE=1; export DUALCASE # for MKS sh
  18481. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  18482. then :
  18483. emulate sh
  18484. NULLCMD=:
  18485. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18486. # is contrary to our usage. Disable this feature.
  18487. alias -g '${1+"$@"}'='"$@"'
  18488. setopt NO_GLOB_SUBST
  18489. else case e in #(
  18490. e) case `(set -o) 2>/dev/null` in #(
  18491. *posix*) :
  18492. set -o posix ;; #(
  18493. *) :
  18494. ;;
  18495. esac ;;
  18496. esac
  18497. fi
  18498. # Reset variables that may have inherited troublesome values from
  18499. # the environment.
  18500. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  18501. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  18502. # side effect of setting IFS to empty, thus disabling word splitting.)
  18503. # Quoting is to prevent editors from complaining about space-tab.
  18504. as_nl='
  18505. '
  18506. export as_nl
  18507. IFS=" "" $as_nl"
  18508. PS1='$ '
  18509. PS2='> '
  18510. PS4='+ '
  18511. # Ensure predictable behavior from utilities with locale-dependent output.
  18512. LC_ALL=C
  18513. export LC_ALL
  18514. LANGUAGE=C
  18515. export LANGUAGE
  18516. # We cannot yet rely on "unset" to work, but we need these variables
  18517. # to be unset--not just set to an empty or harmless value--now, to
  18518. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  18519. # also avoids known problems related to "unset" and subshell syntax
  18520. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  18521. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  18522. do eval test \${$as_var+y} \
  18523. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  18524. done
  18525. # Ensure that fds 0, 1, and 2 are open.
  18526. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  18527. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  18528. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  18529. # The user is always right.
  18530. if ${PATH_SEPARATOR+false} :; then
  18531. PATH_SEPARATOR=:
  18532. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  18533. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  18534. PATH_SEPARATOR=';'
  18535. }
  18536. fi
  18537. # Find who we are. Look in the path if we contain no directory separator.
  18538. as_myself=
  18539. case $0 in #((
  18540. *[\\/]* ) as_myself=$0 ;;
  18541. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18542. for as_dir in $PATH
  18543. do
  18544. IFS=$as_save_IFS
  18545. case $as_dir in #(((
  18546. '') as_dir=./ ;;
  18547. */) ;;
  18548. *) as_dir=$as_dir/ ;;
  18549. esac
  18550. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  18551. done
  18552. IFS=$as_save_IFS
  18553. ;;
  18554. esac
  18555. # We did not find ourselves, most probably we were run as 'sh COMMAND'
  18556. # in which case we are not to be found in the path.
  18557. if test "x$as_myself" = x; then
  18558. as_myself=$0
  18559. fi
  18560. if test ! -f "$as_myself"; then
  18561. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  18562. exit 1
  18563. fi
  18564. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  18565. # ----------------------------------------
  18566. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  18567. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  18568. # script with STATUS, using 1 if that was 0.
  18569. as_fn_error ()
  18570. {
  18571. as_status=$1; test $as_status -eq 0 && as_status=1
  18572. if test "$4"; then
  18573. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18574. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  18575. fi
  18576. printf "%s\n" "$as_me: error: $2" >&2
  18577. as_fn_exit $as_status
  18578. } # as_fn_error
  18579. # as_fn_set_status STATUS
  18580. # -----------------------
  18581. # Set $? to STATUS, without forking.
  18582. as_fn_set_status ()
  18583. {
  18584. return $1
  18585. } # as_fn_set_status
  18586. # as_fn_exit STATUS
  18587. # -----------------
  18588. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  18589. as_fn_exit ()
  18590. {
  18591. set +e
  18592. as_fn_set_status $1
  18593. exit $1
  18594. } # as_fn_exit
  18595. # as_fn_unset VAR
  18596. # ---------------
  18597. # Portably unset VAR.
  18598. as_fn_unset ()
  18599. {
  18600. { eval $1=; unset $1;}
  18601. }
  18602. as_unset=as_fn_unset
  18603. # as_fn_append VAR VALUE
  18604. # ----------------------
  18605. # Append the text in VALUE to the end of the definition contained in VAR. Take
  18606. # advantage of any shell optimizations that allow amortized linear growth over
  18607. # repeated appends, instead of the typical quadratic growth present in naive
  18608. # implementations.
  18609. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  18610. then :
  18611. eval 'as_fn_append ()
  18612. {
  18613. eval $1+=\$2
  18614. }'
  18615. else case e in #(
  18616. e) as_fn_append ()
  18617. {
  18618. eval $1=\$$1\$2
  18619. } ;;
  18620. esac
  18621. fi # as_fn_append
  18622. # as_fn_arith ARG...
  18623. # ------------------
  18624. # Perform arithmetic evaluation on the ARGs, and store the result in the
  18625. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  18626. # must be portable across $(()) and expr.
  18627. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  18628. then :
  18629. eval 'as_fn_arith ()
  18630. {
  18631. as_val=$(( $* ))
  18632. }'
  18633. else case e in #(
  18634. e) as_fn_arith ()
  18635. {
  18636. as_val=`expr "$@" || test $? -eq 1`
  18637. } ;;
  18638. esac
  18639. fi # as_fn_arith
  18640. if expr a : '\(a\)' >/dev/null 2>&1 &&
  18641. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  18642. as_expr=expr
  18643. else
  18644. as_expr=false
  18645. fi
  18646. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  18647. as_basename=basename
  18648. else
  18649. as_basename=false
  18650. fi
  18651. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  18652. as_dirname=dirname
  18653. else
  18654. as_dirname=false
  18655. fi
  18656. as_me=`$as_basename -- "$0" ||
  18657. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  18658. X"$0" : 'X\(//\)$' \| \
  18659. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  18660. printf "%s\n" X/"$0" |
  18661. sed '/^.*\/\([^/][^/]*\)\/*$/{
  18662. s//\1/
  18663. q
  18664. }
  18665. /^X\/\(\/\/\)$/{
  18666. s//\1/
  18667. q
  18668. }
  18669. /^X\/\(\/\).*/{
  18670. s//\1/
  18671. q
  18672. }
  18673. s/.*/./; q'`
  18674. # Avoid depending upon Character Ranges.
  18675. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  18676. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  18677. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  18678. as_cr_digits='0123456789'
  18679. as_cr_alnum=$as_cr_Letters$as_cr_digits
  18680. # Determine whether it's possible to make 'echo' print without a newline.
  18681. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  18682. # for compatibility with existing Makefiles.
  18683. ECHO_C= ECHO_N= ECHO_T=
  18684. case `echo -n x` in #(((((
  18685. -n*)
  18686. case `echo 'xy\c'` in
  18687. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  18688. xy) ECHO_C='\c';;
  18689. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  18690. ECHO_T=' ';;
  18691. esac;;
  18692. *)
  18693. ECHO_N='-n';;
  18694. esac
  18695. # For backward compatibility with old third-party macros, we provide
  18696. # the shell variables $as_echo and $as_echo_n. New code should use
  18697. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  18698. as_echo='printf %s\n'
  18699. as_echo_n='printf %s'
  18700. rm -f conf$$ conf$$.exe conf$$.file
  18701. if test -d conf$$.dir; then
  18702. rm -f conf$$.dir/conf$$.file
  18703. else
  18704. rm -f conf$$.dir
  18705. mkdir conf$$.dir 2>/dev/null
  18706. fi
  18707. if (echo >conf$$.file) 2>/dev/null; then
  18708. if ln -s conf$$.file conf$$ 2>/dev/null; then
  18709. as_ln_s='ln -s'
  18710. # ... but there are two gotchas:
  18711. # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
  18712. # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
  18713. # In both cases, we have to default to 'cp -pR'.
  18714. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  18715. as_ln_s='cp -pR'
  18716. elif ln conf$$.file conf$$ 2>/dev/null; then
  18717. as_ln_s=ln
  18718. else
  18719. as_ln_s='cp -pR'
  18720. fi
  18721. else
  18722. as_ln_s='cp -pR'
  18723. fi
  18724. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  18725. rmdir conf$$.dir 2>/dev/null
  18726. # as_fn_mkdir_p
  18727. # -------------
  18728. # Create "$as_dir" as a directory, including parents if necessary.
  18729. as_fn_mkdir_p ()
  18730. {
  18731. case $as_dir in #(
  18732. -*) as_dir=./$as_dir;;
  18733. esac
  18734. test -d "$as_dir" || eval $as_mkdir_p || {
  18735. as_dirs=
  18736. while :; do
  18737. case $as_dir in #(
  18738. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  18739. *) as_qdir=$as_dir;;
  18740. esac
  18741. as_dirs="'$as_qdir' $as_dirs"
  18742. as_dir=`$as_dirname -- "$as_dir" ||
  18743. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18744. X"$as_dir" : 'X\(//\)[^/]' \| \
  18745. X"$as_dir" : 'X\(//\)$' \| \
  18746. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  18747. printf "%s\n" X"$as_dir" |
  18748. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18749. s//\1/
  18750. q
  18751. }
  18752. /^X\(\/\/\)[^/].*/{
  18753. s//\1/
  18754. q
  18755. }
  18756. /^X\(\/\/\)$/{
  18757. s//\1/
  18758. q
  18759. }
  18760. /^X\(\/\).*/{
  18761. s//\1/
  18762. q
  18763. }
  18764. s/.*/./; q'`
  18765. test -d "$as_dir" && break
  18766. done
  18767. test -z "$as_dirs" || eval "mkdir $as_dirs"
  18768. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  18769. } # as_fn_mkdir_p
  18770. if mkdir -p . 2>/dev/null; then
  18771. as_mkdir_p='mkdir -p "$as_dir"'
  18772. else
  18773. test -d ./-p && rmdir ./-p
  18774. as_mkdir_p=false
  18775. fi
  18776. # as_fn_executable_p FILE
  18777. # -----------------------
  18778. # Test if FILE is an executable regular file.
  18779. as_fn_executable_p ()
  18780. {
  18781. test -f "$1" && test -x "$1"
  18782. } # as_fn_executable_p
  18783. as_test_x='test -x'
  18784. as_executable_p=as_fn_executable_p
  18785. # Sed expression to map a string onto a valid CPP name.
  18786. as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  18787. as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
  18788. # Sed expression to map a string onto a valid variable name.
  18789. as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  18790. as_tr_sh="eval sed '$as_sed_sh'" # deprecated
  18791. exec 6>&1
  18792. ## ----------------------------------- ##
  18793. ## Main body of $CONFIG_STATUS script. ##
  18794. ## ----------------------------------- ##
  18795. _ASEOF
  18796. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  18797. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18798. # Save the log message, to keep $0 and so on meaningful, and to
  18799. # report actual input values of CONFIG_FILES etc. instead of their
  18800. # values after options handling.
  18801. ac_log="
  18802. This file was extended by neon $as_me 0.35.0, which was
  18803. generated by GNU Autoconf 2.72. Invocation command line was
  18804. CONFIG_FILES = $CONFIG_FILES
  18805. CONFIG_HEADERS = $CONFIG_HEADERS
  18806. CONFIG_LINKS = $CONFIG_LINKS
  18807. CONFIG_COMMANDS = $CONFIG_COMMANDS
  18808. $ $0 $@
  18809. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  18810. "
  18811. _ACEOF
  18812. case $ac_config_files in *"
  18813. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  18814. esac
  18815. case $ac_config_headers in *"
  18816. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  18817. esac
  18818. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18819. # Files that config.status was made for.
  18820. config_files="$ac_config_files"
  18821. config_headers="$ac_config_headers"
  18822. config_commands="$ac_config_commands"
  18823. _ACEOF
  18824. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18825. ac_cs_usage="\
  18826. '$as_me' instantiates files and other configuration actions
  18827. from templates according to the current configuration. Unless the files
  18828. and actions are specified as TAGs, all are instantiated by default.
  18829. Usage: $0 [OPTION]... [TAG]...
  18830. -h, --help print this help, then exit
  18831. -V, --version print version number and configuration settings, then exit
  18832. --config print configuration, then exit
  18833. -q, --quiet, --silent
  18834. do not print progress messages
  18835. -d, --debug don't remove temporary files
  18836. --recheck update $as_me by reconfiguring in the same conditions
  18837. --file=FILE[:TEMPLATE]
  18838. instantiate the configuration file FILE
  18839. --header=FILE[:TEMPLATE]
  18840. instantiate the configuration header FILE
  18841. Configuration files:
  18842. $config_files
  18843. Configuration headers:
  18844. $config_headers
  18845. Configuration commands:
  18846. $config_commands
  18847. Report bugs to the package provider.
  18848. neon home page: <https://notroj.github.io/neon/>."
  18849. _ACEOF
  18850. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  18851. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  18852. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18853. ac_cs_config='$ac_cs_config_escaped'
  18854. ac_cs_version="\\
  18855. neon config.status 0.35.0
  18856. configured by $0, generated by GNU Autoconf 2.72,
  18857. with options \\"\$ac_cs_config\\"
  18858. Copyright (C) 2023 Free Software Foundation, Inc.
  18859. This config.status script is free software; the Free Software Foundation
  18860. gives unlimited permission to copy, distribute and modify it."
  18861. ac_pwd='$ac_pwd'
  18862. srcdir='$srcdir'
  18863. INSTALL='$INSTALL'
  18864. AWK='$AWK'
  18865. test -n "\$AWK" || AWK=awk
  18866. _ACEOF
  18867. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18868. # The default lists apply if the user does not specify any file.
  18869. ac_need_defaults=:
  18870. while test $# != 0
  18871. do
  18872. case $1 in
  18873. --*=?*)
  18874. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18875. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  18876. ac_shift=:
  18877. ;;
  18878. --*=)
  18879. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18880. ac_optarg=
  18881. ac_shift=:
  18882. ;;
  18883. *)
  18884. ac_option=$1
  18885. ac_optarg=$2
  18886. ac_shift=shift
  18887. ;;
  18888. esac
  18889. case $ac_option in
  18890. # Handling of the options.
  18891. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  18892. ac_cs_recheck=: ;;
  18893. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  18894. printf "%s\n" "$ac_cs_version"; exit ;;
  18895. --config | --confi | --conf | --con | --co | --c )
  18896. printf "%s\n" "$ac_cs_config"; exit ;;
  18897. --debug | --debu | --deb | --de | --d | -d )
  18898. debug=: ;;
  18899. --file | --fil | --fi | --f )
  18900. $ac_shift
  18901. case $ac_optarg in
  18902. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18903. '') as_fn_error $? "missing file argument" ;;
  18904. esac
  18905. as_fn_append CONFIG_FILES " '$ac_optarg'"
  18906. ac_need_defaults=false;;
  18907. --header | --heade | --head | --hea )
  18908. $ac_shift
  18909. case $ac_optarg in
  18910. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18911. esac
  18912. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  18913. ac_need_defaults=false;;
  18914. --he | --h)
  18915. # Conflict between --help and --header
  18916. as_fn_error $? "ambiguous option: '$1'
  18917. Try '$0 --help' for more information.";;
  18918. --help | --hel | -h )
  18919. printf "%s\n" "$ac_cs_usage"; exit ;;
  18920. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  18921. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  18922. ac_cs_silent=: ;;
  18923. # This is an error.
  18924. -*) as_fn_error $? "unrecognized option: '$1'
  18925. Try '$0 --help' for more information." ;;
  18926. *) as_fn_append ac_config_targets " $1"
  18927. ac_need_defaults=false ;;
  18928. esac
  18929. shift
  18930. done
  18931. ac_configure_extra_args=
  18932. if $ac_cs_silent; then
  18933. exec 6>/dev/null
  18934. ac_configure_extra_args="$ac_configure_extra_args --silent"
  18935. fi
  18936. _ACEOF
  18937. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18938. if \$ac_cs_recheck; then
  18939. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  18940. shift
  18941. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  18942. CONFIG_SHELL='$SHELL'
  18943. export CONFIG_SHELL
  18944. exec "\$@"
  18945. fi
  18946. _ACEOF
  18947. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18948. exec 5>>config.log
  18949. {
  18950. echo
  18951. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  18952. ## Running $as_me. ##
  18953. _ASBOX
  18954. printf "%s\n" "$ac_log"
  18955. } >&5
  18956. _ACEOF
  18957. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18958. #
  18959. # INIT-COMMANDS
  18960. #
  18961. # The HP-UX ksh and POSIX shell print the target directory to stdout
  18962. # if CDPATH is set.
  18963. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18964. sed_quote_subst='$sed_quote_subst'
  18965. double_quote_subst='$double_quote_subst'
  18966. delay_variable_subst='$delay_variable_subst'
  18967. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  18968. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  18969. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  18970. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  18971. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  18972. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  18973. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  18974. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  18975. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  18976. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  18977. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  18978. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  18979. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  18980. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  18981. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  18982. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  18983. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  18984. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  18985. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  18986. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  18987. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  18988. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  18989. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  18990. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  18991. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  18992. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  18993. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  18994. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  18995. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  18996. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  18997. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  18998. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  18999. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  19000. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  19001. FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
  19002. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  19003. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  19004. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  19005. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  19006. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  19007. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  19008. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  19009. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  19010. lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
  19011. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  19012. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  19013. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  19014. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  19015. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  19016. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  19017. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  19018. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  19019. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  19020. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  19021. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  19022. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  19023. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  19024. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  19025. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  19026. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  19027. 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"`'
  19028. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  19029. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  19030. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  19031. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  19032. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  19033. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  19034. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  19035. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  19036. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  19037. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  19038. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  19039. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  19040. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  19041. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  19042. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  19043. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  19044. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  19045. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  19046. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  19047. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  19048. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  19049. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  19050. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  19051. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  19052. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  19053. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  19054. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  19055. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  19056. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  19057. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  19058. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  19059. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  19060. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  19061. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  19062. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  19063. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  19064. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  19065. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  19066. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  19067. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  19068. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  19069. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  19070. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  19071. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  19072. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  19073. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  19074. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  19075. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  19076. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  19077. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  19078. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  19079. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  19080. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  19081. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  19082. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  19083. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  19084. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  19085. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  19086. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  19087. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  19088. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  19089. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  19090. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  19091. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  19092. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  19093. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  19094. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  19095. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  19096. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  19097. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  19098. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  19099. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  19100. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  19101. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  19102. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  19103. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  19104. LTCC='$LTCC'
  19105. LTCFLAGS='$LTCFLAGS'
  19106. compiler='$compiler_DEFAULT'
  19107. # A function that is used when there is no print builtin or printf.
  19108. func_fallback_echo ()
  19109. {
  19110. eval 'cat <<_LTECHO_EOF
  19111. \$1
  19112. _LTECHO_EOF'
  19113. }
  19114. # Quote evaled strings.
  19115. for var in SHELL \
  19116. ECHO \
  19117. PATH_SEPARATOR \
  19118. SED \
  19119. GREP \
  19120. EGREP \
  19121. FGREP \
  19122. LD \
  19123. NM \
  19124. LN_S \
  19125. lt_SP2NL \
  19126. lt_NL2SP \
  19127. reload_flag \
  19128. FILECMD \
  19129. OBJDUMP \
  19130. deplibs_check_method \
  19131. file_magic_cmd \
  19132. file_magic_glob \
  19133. want_nocaseglob \
  19134. DLLTOOL \
  19135. sharedlib_from_linklib_cmd \
  19136. AR \
  19137. archiver_list_spec \
  19138. STRIP \
  19139. RANLIB \
  19140. CC \
  19141. CFLAGS \
  19142. compiler \
  19143. lt_cv_sys_global_symbol_pipe \
  19144. lt_cv_sys_global_symbol_to_cdecl \
  19145. lt_cv_sys_global_symbol_to_import \
  19146. lt_cv_sys_global_symbol_to_c_name_address \
  19147. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  19148. lt_cv_nm_interface \
  19149. nm_file_list_spec \
  19150. lt_cv_truncate_bin \
  19151. lt_prog_compiler_no_builtin_flag \
  19152. lt_prog_compiler_pic \
  19153. lt_prog_compiler_wl \
  19154. lt_prog_compiler_static \
  19155. lt_cv_prog_compiler_c_o \
  19156. need_locks \
  19157. MANIFEST_TOOL \
  19158. DSYMUTIL \
  19159. NMEDIT \
  19160. LIPO \
  19161. OTOOL \
  19162. OTOOL64 \
  19163. shrext_cmds \
  19164. export_dynamic_flag_spec \
  19165. whole_archive_flag_spec \
  19166. compiler_needs_object \
  19167. with_gnu_ld \
  19168. allow_undefined_flag \
  19169. no_undefined_flag \
  19170. hardcode_libdir_flag_spec \
  19171. hardcode_libdir_separator \
  19172. exclude_expsyms \
  19173. include_expsyms \
  19174. file_list_spec \
  19175. variables_saved_for_relink \
  19176. libname_spec \
  19177. library_names_spec \
  19178. soname_spec \
  19179. install_override_mode \
  19180. finish_eval \
  19181. old_striplib \
  19182. striplib; do
  19183. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19184. *[\\\\\\\`\\"\\\$]*)
  19185. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  19186. ;;
  19187. *)
  19188. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19189. ;;
  19190. esac
  19191. done
  19192. # Double-quote double-evaled strings.
  19193. for var in reload_cmds \
  19194. old_postinstall_cmds \
  19195. old_postuninstall_cmds \
  19196. old_archive_cmds \
  19197. extract_expsyms_cmds \
  19198. old_archive_from_new_cmds \
  19199. old_archive_from_expsyms_cmds \
  19200. archive_cmds \
  19201. archive_expsym_cmds \
  19202. module_cmds \
  19203. module_expsym_cmds \
  19204. export_symbols_cmds \
  19205. prelink_cmds \
  19206. postlink_cmds \
  19207. postinstall_cmds \
  19208. postuninstall_cmds \
  19209. finish_cmds \
  19210. sys_lib_search_path_spec \
  19211. configure_time_dlsearch_path \
  19212. configure_time_lt_sys_library_path; do
  19213. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19214. *[\\\\\\\`\\"\\\$]*)
  19215. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  19216. ;;
  19217. *)
  19218. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19219. ;;
  19220. esac
  19221. done
  19222. ac_aux_dir='$ac_aux_dir'
  19223. # See if we are running on zsh, and set the options that allow our
  19224. # commands through without removal of \ escapes INIT.
  19225. if test -n "\${ZSH_VERSION+set}"; then
  19226. setopt NO_GLOB_SUBST
  19227. fi
  19228. PACKAGE='$PACKAGE'
  19229. VERSION='$VERSION'
  19230. RM='$RM'
  19231. ofile='$ofile'
  19232. _ACEOF
  19233. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19234. # Handling of arguments.
  19235. for ac_config_target in $ac_config_targets
  19236. do
  19237. case $ac_config_target in
  19238. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  19239. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  19240. "neon-config") CONFIG_FILES="$CONFIG_FILES neon-config" ;;
  19241. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  19242. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  19243. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  19244. "neon.pc") CONFIG_FILES="$CONFIG_FILES neon.pc" ;;
  19245. "test/makekeys") CONFIG_FILES="$CONFIG_FILES test/makekeys:test/makekeys.sh" ;;
  19246. *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
  19247. esac
  19248. done
  19249. # If the user did not use the arguments to specify the items to instantiate,
  19250. # then the envvar interface is used. Set only those that are not.
  19251. # We use the long form for the default assignment because of an extremely
  19252. # bizarre bug on SunOS 4.1.3.
  19253. if $ac_need_defaults; then
  19254. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  19255. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  19256. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  19257. fi
  19258. # Have a temporary directory for convenience. Make it in the build tree
  19259. # simply because there is no reason against having it here, and in addition,
  19260. # creating and moving files from /tmp can sometimes cause problems.
  19261. # Hook for its removal unless debugging.
  19262. # Note that there is a small window in which the directory will not be cleaned:
  19263. # after its creation but before its name has been assigned to '$tmp'.
  19264. $debug ||
  19265. {
  19266. tmp= ac_tmp=
  19267. trap 'exit_status=$?
  19268. : "${ac_tmp:=$tmp}"
  19269. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  19270. ' 0
  19271. trap 'as_fn_exit 1' 1 2 13 15
  19272. }
  19273. # Create a (secure) tmp directory for tmp files.
  19274. {
  19275. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  19276. test -d "$tmp"
  19277. } ||
  19278. {
  19279. tmp=./conf$$-$RANDOM
  19280. (umask 077 && mkdir "$tmp")
  19281. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  19282. ac_tmp=$tmp
  19283. # Set up the scripts for CONFIG_FILES section.
  19284. # No need to generate them if there are no CONFIG_FILES.
  19285. # This happens for instance with './config.status config.h'.
  19286. if test -n "$CONFIG_FILES"; then
  19287. ac_cr=`echo X | tr X '\015'`
  19288. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  19289. # But we know of no other shell where ac_cr would be empty at this
  19290. # point, so we can use a bashism as a fallback.
  19291. if test "x$ac_cr" = x; then
  19292. eval ac_cr=\$\'\\r\'
  19293. fi
  19294. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  19295. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  19296. ac_cs_awk_cr='\\r'
  19297. else
  19298. ac_cs_awk_cr=$ac_cr
  19299. fi
  19300. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  19301. _ACEOF
  19302. {
  19303. echo "cat >conf$$subs.awk <<_ACEOF" &&
  19304. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  19305. echo "_ACEOF"
  19306. } >conf$$subs.sh ||
  19307. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19308. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  19309. ac_delim='%!_!# '
  19310. for ac_last_try in false false false false false :; do
  19311. . ./conf$$subs.sh ||
  19312. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19313. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  19314. if test $ac_delim_n = $ac_delim_num; then
  19315. break
  19316. elif $ac_last_try; then
  19317. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19318. else
  19319. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19320. fi
  19321. done
  19322. rm -f conf$$subs.sh
  19323. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19324. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  19325. _ACEOF
  19326. sed -n '
  19327. h
  19328. s/^/S["/; s/!.*/"]=/
  19329. p
  19330. g
  19331. s/^[^!]*!//
  19332. :repl
  19333. t repl
  19334. s/'"$ac_delim"'$//
  19335. t delim
  19336. :nl
  19337. h
  19338. s/\(.\{148\}\)..*/\1/
  19339. t more1
  19340. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  19341. p
  19342. n
  19343. b repl
  19344. :more1
  19345. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19346. p
  19347. g
  19348. s/.\{148\}//
  19349. t nl
  19350. :delim
  19351. h
  19352. s/\(.\{148\}\)..*/\1/
  19353. t more2
  19354. s/["\\]/\\&/g; s/^/"/; s/$/"/
  19355. p
  19356. b
  19357. :more2
  19358. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19359. p
  19360. g
  19361. s/.\{148\}//
  19362. t delim
  19363. ' <conf$$subs.awk | sed '
  19364. /^[^""]/{
  19365. N
  19366. s/\n//
  19367. }
  19368. ' >>$CONFIG_STATUS || ac_write_fail=1
  19369. rm -f conf$$subs.awk
  19370. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19371. _ACAWK
  19372. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  19373. for (key in S) S_is_set[key] = 1
  19374. FS = ""
  19375. }
  19376. {
  19377. line = $ 0
  19378. nfields = split(line, field, "@")
  19379. substed = 0
  19380. len = length(field[1])
  19381. for (i = 2; i < nfields; i++) {
  19382. key = field[i]
  19383. keylen = length(key)
  19384. if (S_is_set[key]) {
  19385. value = S[key]
  19386. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  19387. len += length(value) + length(field[++i])
  19388. substed = 1
  19389. } else
  19390. len += 1 + keylen
  19391. }
  19392. print line
  19393. }
  19394. _ACAWK
  19395. _ACEOF
  19396. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19397. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  19398. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  19399. else
  19400. cat
  19401. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  19402. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  19403. _ACEOF
  19404. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  19405. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  19406. # trailing colons and then remove the whole line if VPATH becomes empty
  19407. # (actually we leave an empty line to preserve line numbers).
  19408. if test "x$srcdir" = x.; then
  19409. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  19410. h
  19411. s///
  19412. s/^/:/
  19413. s/[ ]*$/:/
  19414. s/:\$(srcdir):/:/g
  19415. s/:\${srcdir}:/:/g
  19416. s/:@srcdir@:/:/g
  19417. s/^:*//
  19418. s/:*$//
  19419. x
  19420. s/\(=[ ]*\).*/\1/
  19421. G
  19422. s/\n//
  19423. s/^[^=]*=[ ]*$//
  19424. }'
  19425. fi
  19426. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19427. fi # test -n "$CONFIG_FILES"
  19428. # Set up the scripts for CONFIG_HEADERS section.
  19429. # No need to generate them if there are no CONFIG_HEADERS.
  19430. # This happens for instance with './config.status Makefile'.
  19431. if test -n "$CONFIG_HEADERS"; then
  19432. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  19433. BEGIN {
  19434. _ACEOF
  19435. # Transform confdefs.h into an awk script 'defines.awk', embedded as
  19436. # here-document in config.status, that substitutes the proper values into
  19437. # config.h.in to produce config.h.
  19438. # Create a delimiter string that does not exist in confdefs.h, to ease
  19439. # handling of long lines.
  19440. ac_delim='%!_!# '
  19441. for ac_last_try in false false :; do
  19442. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  19443. if test -z "$ac_tt"; then
  19444. break
  19445. elif $ac_last_try; then
  19446. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  19447. else
  19448. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19449. fi
  19450. done
  19451. # For the awk script, D is an array of macro values keyed by name,
  19452. # likewise P contains macro parameters if any. Preserve backslash
  19453. # newline sequences.
  19454. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  19455. sed -n '
  19456. s/.\{148\}/&'"$ac_delim"'/g
  19457. t rset
  19458. :rset
  19459. s/^[ ]*#[ ]*define[ ][ ]*/ /
  19460. t def
  19461. d
  19462. :def
  19463. s/\\$//
  19464. t bsnl
  19465. s/["\\]/\\&/g
  19466. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19467. D["\1"]=" \3"/p
  19468. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  19469. d
  19470. :bsnl
  19471. s/["\\]/\\&/g
  19472. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19473. D["\1"]=" \3\\\\\\n"\\/p
  19474. t cont
  19475. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  19476. t cont
  19477. d
  19478. :cont
  19479. n
  19480. s/.\{148\}/&'"$ac_delim"'/g
  19481. t clear
  19482. :clear
  19483. s/\\$//
  19484. t bsnlc
  19485. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  19486. d
  19487. :bsnlc
  19488. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  19489. b cont
  19490. ' <confdefs.h | sed '
  19491. s/'"$ac_delim"'/"\\\
  19492. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  19493. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19494. for (key in D) D_is_set[key] = 1
  19495. FS = ""
  19496. }
  19497. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  19498. line = \$ 0
  19499. split(line, arg, " ")
  19500. if (arg[1] == "#") {
  19501. defundef = arg[2]
  19502. mac1 = arg[3]
  19503. } else {
  19504. defundef = substr(arg[1], 2)
  19505. mac1 = arg[2]
  19506. }
  19507. split(mac1, mac2, "(") #)
  19508. macro = mac2[1]
  19509. prefix = substr(line, 1, index(line, defundef) - 1)
  19510. if (D_is_set[macro]) {
  19511. # Preserve the white space surrounding the "#".
  19512. print prefix "define", macro P[macro] D[macro]
  19513. next
  19514. } else {
  19515. # Replace #undef with comments. This is necessary, for example,
  19516. # in the case of _POSIX_SOURCE, which is predefined and required
  19517. # on some systems where configure will not decide to define it.
  19518. if (defundef == "undef") {
  19519. print "/*", prefix defundef, macro, "*/"
  19520. next
  19521. }
  19522. }
  19523. }
  19524. { print }
  19525. _ACAWK
  19526. _ACEOF
  19527. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19528. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  19529. fi # test -n "$CONFIG_HEADERS"
  19530. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  19531. shift
  19532. for ac_tag
  19533. do
  19534. case $ac_tag in
  19535. :[FHLC]) ac_mode=$ac_tag; continue;;
  19536. esac
  19537. case $ac_mode$ac_tag in
  19538. :[FHL]*:*);;
  19539. :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
  19540. :[FH]-) ac_tag=-:-;;
  19541. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  19542. esac
  19543. ac_save_IFS=$IFS
  19544. IFS=:
  19545. set x $ac_tag
  19546. IFS=$ac_save_IFS
  19547. shift
  19548. ac_file=$1
  19549. shift
  19550. case $ac_mode in
  19551. :L) ac_source=$1;;
  19552. :[FH])
  19553. ac_file_inputs=
  19554. for ac_f
  19555. do
  19556. case $ac_f in
  19557. -) ac_f="$ac_tmp/stdin";;
  19558. *) # Look for the file first in the build tree, then in the source tree
  19559. # (if the path is not absolute). The absolute path cannot be DOS-style,
  19560. # because $ac_f cannot contain ':'.
  19561. test -f "$ac_f" ||
  19562. case $ac_f in
  19563. [\\/$]*) false;;
  19564. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  19565. esac ||
  19566. as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
  19567. esac
  19568. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  19569. as_fn_append ac_file_inputs " '$ac_f'"
  19570. done
  19571. # Let's still pretend it is 'configure' which instantiates (i.e., don't
  19572. # use $as_me), people would be surprised to read:
  19573. # /* config.h. Generated by config.status. */
  19574. configure_input='Generated from '`
  19575. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  19576. `' by configure.'
  19577. if test x"$ac_file" != x-; then
  19578. configure_input="$ac_file. $configure_input"
  19579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  19580. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  19581. fi
  19582. # Neutralize special characters interpreted by sed in replacement strings.
  19583. case $configure_input in #(
  19584. *\&* | *\|* | *\\* )
  19585. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  19586. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  19587. *) ac_sed_conf_input=$configure_input;;
  19588. esac
  19589. case $ac_tag in
  19590. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  19591. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  19592. esac
  19593. ;;
  19594. esac
  19595. ac_dir=`$as_dirname -- "$ac_file" ||
  19596. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19597. X"$ac_file" : 'X\(//\)[^/]' \| \
  19598. X"$ac_file" : 'X\(//\)$' \| \
  19599. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  19600. printf "%s\n" X"$ac_file" |
  19601. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19602. s//\1/
  19603. q
  19604. }
  19605. /^X\(\/\/\)[^/].*/{
  19606. s//\1/
  19607. q
  19608. }
  19609. /^X\(\/\/\)$/{
  19610. s//\1/
  19611. q
  19612. }
  19613. /^X\(\/\).*/{
  19614. s//\1/
  19615. q
  19616. }
  19617. s/.*/./; q'`
  19618. as_dir="$ac_dir"; as_fn_mkdir_p
  19619. ac_builddir=.
  19620. case "$ac_dir" in
  19621. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19622. *)
  19623. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  19624. # A ".." for each directory in $ac_dir_suffix.
  19625. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  19626. case $ac_top_builddir_sub in
  19627. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19628. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  19629. esac ;;
  19630. esac
  19631. ac_abs_top_builddir=$ac_pwd
  19632. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  19633. # for backward compatibility:
  19634. ac_top_builddir=$ac_top_build_prefix
  19635. case $srcdir in
  19636. .) # We are building in place.
  19637. ac_srcdir=.
  19638. ac_top_srcdir=$ac_top_builddir_sub
  19639. ac_abs_top_srcdir=$ac_pwd ;;
  19640. [\\/]* | ?:[\\/]* ) # Absolute name.
  19641. ac_srcdir=$srcdir$ac_dir_suffix;
  19642. ac_top_srcdir=$srcdir
  19643. ac_abs_top_srcdir=$srcdir ;;
  19644. *) # Relative name.
  19645. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  19646. ac_top_srcdir=$ac_top_build_prefix$srcdir
  19647. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  19648. esac
  19649. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  19650. case $ac_mode in
  19651. :F)
  19652. #
  19653. # CONFIG_FILE
  19654. #
  19655. case $INSTALL in
  19656. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  19657. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  19658. esac
  19659. _ACEOF
  19660. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19661. # If the template does not know about datarootdir, expand it.
  19662. # FIXME: This hack should be removed a few years after 2.60.
  19663. ac_datarootdir_hack=; ac_datarootdir_seen=
  19664. ac_sed_dataroot='
  19665. /datarootdir/ {
  19666. p
  19667. q
  19668. }
  19669. /@datadir@/p
  19670. /@docdir@/p
  19671. /@infodir@/p
  19672. /@localedir@/p
  19673. /@mandir@/p'
  19674. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  19675. *datarootdir*) ac_datarootdir_seen=yes;;
  19676. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  19677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  19678. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  19679. _ACEOF
  19680. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19681. ac_datarootdir_hack='
  19682. s&@datadir@&$datadir&g
  19683. s&@docdir@&$docdir&g
  19684. s&@infodir@&$infodir&g
  19685. s&@localedir@&$localedir&g
  19686. s&@mandir@&$mandir&g
  19687. s&\\\${datarootdir}&$datarootdir&g' ;;
  19688. esac
  19689. _ACEOF
  19690. # Neutralize VPATH when '$srcdir' = '.'.
  19691. # Shell code in configure.ac might set extrasub.
  19692. # FIXME: do we really want to maintain this feature?
  19693. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19694. ac_sed_extra="$ac_vpsub
  19695. $extrasub
  19696. _ACEOF
  19697. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19698. :t
  19699. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19700. s|@configure_input@|$ac_sed_conf_input|;t t
  19701. s&@top_builddir@&$ac_top_builddir_sub&;t t
  19702. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  19703. s&@srcdir@&$ac_srcdir&;t t
  19704. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  19705. s&@top_srcdir@&$ac_top_srcdir&;t t
  19706. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  19707. s&@builddir@&$ac_builddir&;t t
  19708. s&@abs_builddir@&$ac_abs_builddir&;t t
  19709. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  19710. s&@INSTALL@&$ac_INSTALL&;t t
  19711. $ac_datarootdir_hack
  19712. "
  19713. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  19714. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19715. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  19716. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  19717. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  19718. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  19719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
  19720. which seems to be undefined. Please make sure it is defined" >&5
  19721. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
  19722. which seems to be undefined. Please make sure it is defined" >&2;}
  19723. rm -f "$ac_tmp/stdin"
  19724. case $ac_file in
  19725. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  19726. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  19727. esac \
  19728. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19729. ;;
  19730. :H)
  19731. #
  19732. # CONFIG_HEADER
  19733. #
  19734. if test x"$ac_file" != x-; then
  19735. {
  19736. printf "%s\n" "/* $configure_input */" >&1 \
  19737. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  19738. } >"$ac_tmp/config.h" \
  19739. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19740. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  19741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  19742. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  19743. else
  19744. rm -f "$ac_file"
  19745. mv "$ac_tmp/config.h" "$ac_file" \
  19746. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19747. fi
  19748. else
  19749. printf "%s\n" "/* $configure_input */" >&1 \
  19750. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  19751. || as_fn_error $? "could not create -" "$LINENO" 5
  19752. fi
  19753. ;;
  19754. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  19755. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  19756. ;;
  19757. esac
  19758. case $ac_file$ac_mode in
  19759. "libtool":C)
  19760. # See if we are running on zsh, and set the options that allow our
  19761. # commands through without removal of \ escapes.
  19762. if test -n "${ZSH_VERSION+set}"; then
  19763. setopt NO_GLOB_SUBST
  19764. fi
  19765. cfgfile=${ofile}T
  19766. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  19767. $RM "$cfgfile"
  19768. cat <<_LT_EOF >> "$cfgfile"
  19769. #! $SHELL
  19770. # Generated automatically by $as_me ($PACKAGE) $VERSION
  19771. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  19772. # Provide generalized library-building support services.
  19773. # Written by Gordon Matzigkeit, 1996
  19774. # Copyright (C) 2024 Free Software Foundation, Inc.
  19775. # This is free software; see the source for copying conditions. There is NO
  19776. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  19777. # GNU Libtool is free software; you can redistribute it and/or modify
  19778. # it under the terms of the GNU General Public License as published by
  19779. # the Free Software Foundation; either version 2 of the License, or
  19780. # (at your option) any later version.
  19781. #
  19782. # As a special exception to the GNU General Public License, if you
  19783. # distribute this file as part of a program or library that is built
  19784. # using GNU Libtool, you may include this file under the same
  19785. # distribution terms that you use for the rest of that program.
  19786. #
  19787. # GNU Libtool is distributed in the hope that it will be useful, but
  19788. # WITHOUT ANY WARRANTY; without even the implied warranty of
  19789. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19790. # GNU General Public License for more details.
  19791. #
  19792. # You should have received a copy of the GNU General Public License
  19793. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  19794. # The names of the tagged configurations supported by this script.
  19795. available_tags=''
  19796. # Configured defaults for sys_lib_dlsearch_path munging.
  19797. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  19798. # ### BEGIN LIBTOOL CONFIG
  19799. # Whether or not to build shared libraries.
  19800. build_libtool_libs=$enable_shared
  19801. # Which release of libtool.m4 was used?
  19802. macro_version=$macro_version
  19803. macro_revision=$macro_revision
  19804. # Whether or not to build static libraries.
  19805. build_old_libs=$enable_static
  19806. # What type of objects to build.
  19807. pic_mode=$pic_mode
  19808. # Whether or not to optimize for fast installation.
  19809. fast_install=$enable_fast_install
  19810. # Shared archive member basename,for filename based shared library versioning on AIX.
  19811. shared_archive_member_spec=$shared_archive_member_spec
  19812. # Shell to use when invoking shell scripts.
  19813. SHELL=$lt_SHELL
  19814. # An echo program that protects backslashes.
  19815. ECHO=$lt_ECHO
  19816. # The PATH separator for the build system.
  19817. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  19818. # The host system.
  19819. host_alias=$host_alias
  19820. host=$host
  19821. host_os=$host_os
  19822. # The build system.
  19823. build_alias=$build_alias
  19824. build=$build
  19825. build_os=$build_os
  19826. # A sed program that does not truncate output.
  19827. SED=$lt_SED
  19828. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  19829. Xsed="\$SED -e 1s/^X//"
  19830. # A grep program that handles long lines.
  19831. GREP=$lt_GREP
  19832. # An ERE matcher.
  19833. EGREP=$lt_EGREP
  19834. # A literal string matcher.
  19835. FGREP=$lt_FGREP
  19836. # A BSD- or MS-compatible name lister.
  19837. NM=$lt_NM
  19838. # Whether we need soft or hard links.
  19839. LN_S=$lt_LN_S
  19840. # What is the maximum length of a command?
  19841. max_cmd_len=$max_cmd_len
  19842. # Object file suffix (normally "o").
  19843. objext=$ac_objext
  19844. # Executable file suffix (normally "").
  19845. exeext=$exeext
  19846. # whether the shell understands "unset".
  19847. lt_unset=$lt_unset
  19848. # turn spaces into newlines.
  19849. SP2NL=$lt_lt_SP2NL
  19850. # turn newlines into spaces.
  19851. NL2SP=$lt_lt_NL2SP
  19852. # convert \$build file names to \$host format.
  19853. to_host_file_cmd=$lt_cv_to_host_file_cmd
  19854. # convert \$build files to toolchain format.
  19855. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  19856. # A file(cmd) program that detects file types.
  19857. FILECMD=$lt_FILECMD
  19858. # An object symbol dumper.
  19859. OBJDUMP=$lt_OBJDUMP
  19860. # Method to check whether dependent libraries are shared objects.
  19861. deplibs_check_method=$lt_deplibs_check_method
  19862. # Command to use when deplibs_check_method = "file_magic".
  19863. file_magic_cmd=$lt_file_magic_cmd
  19864. # How to find potential files when deplibs_check_method = "file_magic".
  19865. file_magic_glob=$lt_file_magic_glob
  19866. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  19867. want_nocaseglob=$lt_want_nocaseglob
  19868. # DLL creation program.
  19869. DLLTOOL=$lt_DLLTOOL
  19870. # Command to associate shared and link libraries.
  19871. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  19872. # The archiver.
  19873. AR=$lt_AR
  19874. # Flags to create an archive (by configure).
  19875. lt_ar_flags=$lt_ar_flags
  19876. # Flags to create an archive.
  19877. AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
  19878. # How to feed a file listing to the archiver.
  19879. archiver_list_spec=$lt_archiver_list_spec
  19880. # A symbol stripping program.
  19881. STRIP=$lt_STRIP
  19882. # Commands used to install an old-style archive.
  19883. RANLIB=$lt_RANLIB
  19884. old_postinstall_cmds=$lt_old_postinstall_cmds
  19885. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  19886. # Whether to use a lock for old archive extraction.
  19887. lock_old_archive_extraction=$lock_old_archive_extraction
  19888. # A C compiler.
  19889. LTCC=$lt_CC
  19890. # LTCC compiler flags.
  19891. LTCFLAGS=$lt_CFLAGS
  19892. # Take the output of nm and produce a listing of raw symbols and C names.
  19893. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  19894. # Transform the output of nm in a proper C declaration.
  19895. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  19896. # Transform the output of nm into a list of symbols to manually relocate.
  19897. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  19898. # Transform the output of nm in a C name address pair.
  19899. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  19900. # Transform the output of nm in a C name address pair when lib prefix is needed.
  19901. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  19902. # The name lister interface.
  19903. nm_interface=$lt_lt_cv_nm_interface
  19904. # Specify filename containing input files for \$NM.
  19905. nm_file_list_spec=$lt_nm_file_list_spec
  19906. # The root where to search for dependent libraries,and where our libraries should be installed.
  19907. lt_sysroot=$lt_sysroot
  19908. # Command to truncate a binary pipe.
  19909. lt_truncate_bin=$lt_lt_cv_truncate_bin
  19910. # The name of the directory that contains temporary libtool files.
  19911. objdir=$objdir
  19912. # Used to examine libraries when file_magic_cmd begins with "file".
  19913. MAGIC_CMD=$MAGIC_CMD
  19914. # Must we lock files when doing compilation?
  19915. need_locks=$lt_need_locks
  19916. # Manifest tool.
  19917. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  19918. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  19919. DSYMUTIL=$lt_DSYMUTIL
  19920. # Tool to change global to local symbols on Mac OS X.
  19921. NMEDIT=$lt_NMEDIT
  19922. # Tool to manipulate fat objects and archives on Mac OS X.
  19923. LIPO=$lt_LIPO
  19924. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  19925. OTOOL=$lt_OTOOL
  19926. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  19927. OTOOL64=$lt_OTOOL64
  19928. # Old archive suffix (normally "a").
  19929. libext=$libext
  19930. # Shared library suffix (normally ".so").
  19931. shrext_cmds=$lt_shrext_cmds
  19932. # The commands to extract the exported symbol list from a shared archive.
  19933. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  19934. # Variables whose values should be saved in libtool wrapper scripts and
  19935. # restored at link time.
  19936. variables_saved_for_relink=$lt_variables_saved_for_relink
  19937. # Do we need the "lib" prefix for modules?
  19938. need_lib_prefix=$need_lib_prefix
  19939. # Do we need a version for libraries?
  19940. need_version=$need_version
  19941. # Library versioning type.
  19942. version_type=$version_type
  19943. # Shared library runtime path variable.
  19944. runpath_var=$runpath_var
  19945. # Shared library path variable.
  19946. shlibpath_var=$shlibpath_var
  19947. # Is shlibpath searched before the hard-coded library search path?
  19948. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  19949. # Format of library name prefix.
  19950. libname_spec=$lt_libname_spec
  19951. # List of archive names. First name is the real one, the rest are links.
  19952. # The last name is the one that the linker finds with -lNAME
  19953. library_names_spec=$lt_library_names_spec
  19954. # The coded name of the library, if different from the real name.
  19955. soname_spec=$lt_soname_spec
  19956. # Permission mode override for installation of shared libraries.
  19957. install_override_mode=$lt_install_override_mode
  19958. # Command to use after installation of a shared archive.
  19959. postinstall_cmds=$lt_postinstall_cmds
  19960. # Command to use after uninstallation of a shared archive.
  19961. postuninstall_cmds=$lt_postuninstall_cmds
  19962. # Commands used to finish a libtool library installation in a directory.
  19963. finish_cmds=$lt_finish_cmds
  19964. # As "finish_cmds", except a single script fragment to be evaled but
  19965. # not shown.
  19966. finish_eval=$lt_finish_eval
  19967. # Whether we should hardcode library paths into libraries.
  19968. hardcode_into_libs=$hardcode_into_libs
  19969. # Compile-time system search path for libraries.
  19970. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  19971. # Detected run-time system search path for libraries.
  19972. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  19973. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  19974. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  19975. # Whether dlopen is supported.
  19976. dlopen_support=$enable_dlopen
  19977. # Whether dlopen of programs is supported.
  19978. dlopen_self=$enable_dlopen_self
  19979. # Whether dlopen of statically linked programs is supported.
  19980. dlopen_self_static=$enable_dlopen_self_static
  19981. # Commands to strip libraries.
  19982. old_striplib=$lt_old_striplib
  19983. striplib=$lt_striplib
  19984. # The linker used to build libraries.
  19985. LD=$lt_LD
  19986. # How to create reloadable object files.
  19987. reload_flag=$lt_reload_flag
  19988. reload_cmds=$lt_reload_cmds
  19989. # Commands used to build an old-style archive.
  19990. old_archive_cmds=$lt_old_archive_cmds
  19991. # A language specific compiler.
  19992. CC=$lt_compiler
  19993. # Is the compiler the GNU compiler?
  19994. with_gcc=$GCC
  19995. # Compiler flag to turn off builtin functions.
  19996. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  19997. # Additional compiler flags for building library objects.
  19998. pic_flag=$lt_lt_prog_compiler_pic
  19999. # How to pass a linker flag through the compiler.
  20000. wl=$lt_lt_prog_compiler_wl
  20001. # Compiler flag to prevent dynamic linking.
  20002. link_static_flag=$lt_lt_prog_compiler_static
  20003. # Does compiler simultaneously support -c and -o options?
  20004. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  20005. # Whether or not to add -lc for building shared libraries.
  20006. build_libtool_need_lc=$archive_cmds_need_lc
  20007. # Whether or not to disallow shared libs when runtime libs are static.
  20008. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  20009. # Compiler flag to allow reflexive dlopens.
  20010. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  20011. # Compiler flag to generate shared objects directly from archives.
  20012. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  20013. # Whether the compiler copes with passing no objects directly.
  20014. compiler_needs_object=$lt_compiler_needs_object
  20015. # Create an old-style archive from a shared archive.
  20016. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  20017. # Create a temporary old-style archive to link instead of a shared archive.
  20018. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  20019. # Commands used to build a shared archive.
  20020. archive_cmds=$lt_archive_cmds
  20021. archive_expsym_cmds=$lt_archive_expsym_cmds
  20022. # Commands used to build a loadable module if different from building
  20023. # a shared archive.
  20024. module_cmds=$lt_module_cmds
  20025. module_expsym_cmds=$lt_module_expsym_cmds
  20026. # Whether we are building with GNU ld or not.
  20027. with_gnu_ld=$lt_with_gnu_ld
  20028. # Flag that allows shared libraries with undefined symbols to be built.
  20029. allow_undefined_flag=$lt_allow_undefined_flag
  20030. # Flag that enforces no undefined symbols.
  20031. no_undefined_flag=$lt_no_undefined_flag
  20032. # Flag to hardcode \$libdir into a binary during linking.
  20033. # This must work even if \$libdir does not exist
  20034. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  20035. # Whether we need a single "-rpath" flag with a separated argument.
  20036. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  20037. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  20038. # DIR into the resulting binary.
  20039. hardcode_direct=$hardcode_direct
  20040. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  20041. # DIR into the resulting binary and the resulting library dependency is
  20042. # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
  20043. # library is relocated.
  20044. hardcode_direct_absolute=$hardcode_direct_absolute
  20045. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20046. # into the resulting binary.
  20047. hardcode_minus_L=$hardcode_minus_L
  20048. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20049. # into the resulting binary.
  20050. hardcode_shlibpath_var=$hardcode_shlibpath_var
  20051. # Set to "yes" if building a shared library automatically hardcodes DIR
  20052. # into the library and all subsequent libraries and executables linked
  20053. # against it.
  20054. hardcode_automatic=$hardcode_automatic
  20055. # Set to yes if linker adds runtime paths of dependent libraries
  20056. # to runtime path list.
  20057. inherit_rpath=$inherit_rpath
  20058. # Whether libtool must link a program against all its dependency libraries.
  20059. link_all_deplibs=$link_all_deplibs
  20060. # Set to "yes" if exported symbols are required.
  20061. always_export_symbols=$always_export_symbols
  20062. # The commands to list exported symbols.
  20063. export_symbols_cmds=$lt_export_symbols_cmds
  20064. # Symbols that should not be listed in the preloaded symbols.
  20065. exclude_expsyms=$lt_exclude_expsyms
  20066. # Symbols that must always be exported.
  20067. include_expsyms=$lt_include_expsyms
  20068. # Commands necessary for linking programs (against libraries) with templates.
  20069. prelink_cmds=$lt_prelink_cmds
  20070. # Commands necessary for finishing linking programs.
  20071. postlink_cmds=$lt_postlink_cmds
  20072. # Specify filename containing input files.
  20073. file_list_spec=$lt_file_list_spec
  20074. # How to hardcode a shared library path into an executable.
  20075. hardcode_action=$hardcode_action
  20076. # ### END LIBTOOL CONFIG
  20077. _LT_EOF
  20078. cat <<'_LT_EOF' >> "$cfgfile"
  20079. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  20080. # func_munge_path_list VARIABLE PATH
  20081. # -----------------------------------
  20082. # VARIABLE is name of variable containing _space_ separated list of
  20083. # directories to be munged by the contents of PATH, which is string
  20084. # having a format:
  20085. # "DIR[:DIR]:"
  20086. # string "DIR[ DIR]" will be prepended to VARIABLE
  20087. # ":DIR[:DIR]"
  20088. # string "DIR[ DIR]" will be appended to VARIABLE
  20089. # "DIRP[:DIRP]::[DIRA:]DIRA"
  20090. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  20091. # "DIRA[ DIRA]" will be appended to VARIABLE
  20092. # "DIR[:DIR]"
  20093. # VARIABLE will be replaced by "DIR[ DIR]"
  20094. func_munge_path_list ()
  20095. {
  20096. case x$2 in
  20097. x)
  20098. ;;
  20099. *:)
  20100. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  20101. ;;
  20102. x:*)
  20103. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  20104. ;;
  20105. *::*)
  20106. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  20107. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  20108. ;;
  20109. *)
  20110. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  20111. ;;
  20112. esac
  20113. }
  20114. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  20115. func_cc_basename ()
  20116. {
  20117. for cc_temp in $*""; do
  20118. case $cc_temp in
  20119. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  20120. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  20121. \-*) ;;
  20122. *) break;;
  20123. esac
  20124. done
  20125. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  20126. }
  20127. # ### END FUNCTIONS SHARED WITH CONFIGURE
  20128. _LT_EOF
  20129. case $host_os in
  20130. aix3*)
  20131. cat <<\_LT_EOF >> "$cfgfile"
  20132. # AIX sometimes has problems with the GCC collect2 program. For some
  20133. # reason, if we set the COLLECT_NAMES environment variable, the problems
  20134. # vanish in a puff of smoke.
  20135. if test set != "${COLLECT_NAMES+set}"; then
  20136. COLLECT_NAMES=
  20137. export COLLECT_NAMES
  20138. fi
  20139. _LT_EOF
  20140. ;;
  20141. esac
  20142. ltmain=$ac_aux_dir/ltmain.sh
  20143. # We use sed instead of cat because bash on DJGPP gets confused if
  20144. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  20145. # text mode, it properly converts lines to CR/LF. This bash problem
  20146. # is reportedly fixed, but why not run on old versions too?
  20147. $SED '$q' "$ltmain" >> "$cfgfile" \
  20148. || (rm -f "$cfgfile"; exit 1)
  20149. mv -f "$cfgfile" "$ofile" ||
  20150. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  20151. chmod +x "$ofile"
  20152. ;;
  20153. "neon-config":F) chmod +x neon-config ;;
  20154. "test/makekeys":F) chmod +x test/makekeys ;;
  20155. esac
  20156. done # for ac_tag
  20157. as_fn_exit 0
  20158. _ACEOF
  20159. ac_clean_files=$ac_clean_files_save
  20160. test $ac_write_fail = 0 ||
  20161. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  20162. # configure is writing to config.log, and then calls config.status.
  20163. # config.status does its own redirection, appending to config.log.
  20164. # Unfortunately, on DOS this fails, as config.log is still kept open
  20165. # by configure, so config.status won't be able to write to it; its
  20166. # output is simply discarded. So we exec the FD to /dev/null,
  20167. # effectively closing config.log, so it can be properly (re)opened and
  20168. # appended to by config.status. When coming back to configure, we
  20169. # need to make the FD available again.
  20170. if test "$no_create" != yes; then
  20171. ac_cs_success=:
  20172. ac_config_status_args=
  20173. test "$silent" = yes &&
  20174. ac_config_status_args="$ac_config_status_args --quiet"
  20175. exec 5>/dev/null
  20176. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20177. exec 5>>config.log
  20178. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20179. # would make configure fail if this is the last instruction.
  20180. $ac_cs_success || as_fn_exit 1
  20181. fi
  20182. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  20183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  20184. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  20185. fi
  20186. # for VPATH builds:
  20187. test -d test/common || mkdir test/common
  20188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configured to build neon 0.35.0:
  20189. Install prefix: ${prefix}
  20190. Compiler: ${CC}
  20191. XML Parser: ${neon_xml_parser_message}
  20192. SSL library: ${ne_SSL_message}
  20193. zlib support: ${ne_ZLIB_message}
  20194. GSSAPI support: ${ne_GSSAPI_message}
  20195. Build libraries: Shared=${enable_shared}, Static=${enable_static}
  20196. " >&5
  20197. printf "%s\n" "$as_me: Configured to build neon 0.35.0:
  20198. Install prefix: ${prefix}
  20199. Compiler: ${CC}
  20200. XML Parser: ${neon_xml_parser_message}
  20201. SSL library: ${ne_SSL_message}
  20202. zlib support: ${ne_ZLIB_message}
  20203. GSSAPI support: ${ne_GSSAPI_message}
  20204. Build libraries: Shared=${enable_shared}, Static=${enable_static}
  20205. " >&6;}
  20206. case $ALLOW_INSTALL in
  20207. memleak)
  20208. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configured with development-only flags:
  20209. WARNING: This copy of neon has been configured with memory leak checking
  20210. WARNING: enabled, which should only be used in a development build of neon.
  20211. WARNING: This neon library should not be installed for use by applications.
  20212. " >&5
  20213. printf "%s\n" "$as_me: Configured with development-only flags:
  20214. WARNING: This copy of neon has been configured with memory leak checking
  20215. WARNING: enabled, which should only be used in a development build of neon.
  20216. WARNING: This neon library should not be installed for use by applications.
  20217. " >&6;};;
  20218. esac